@font-face{font-family:"Dela Gothic One";src:url("/assets/fonts/DelaGothicOne-Latin.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Figtree";src:url("/assets/fonts/Figtree-Latin.woff2") format("woff2");font-weight:400 900;font-display:swap}
/* -------------------------------------------------------------
   Gulper.io - Premium Zadely Neo-Brutalist Sticker Style Sheet
   ------------------------------------------------------------- */

:root {
  color-scheme: light;
  --sheet: #e8eeff;
  --sheet-line: #d2dcfa;
  --ink: #141832;
  --ink-soft: #4b5278;
  --paper: #ffffff;

  /* Zadely Core Pop Palette */
  --tomato: #ff4747;
  --yolk: #ffd026;
  --pool: #38a5ff;
  --leaf: #10b981;
  --grape: #845ef7;
  --pink: #ff6b9d;
  --orange: #ff7024;
  --neon-cyan: #00f7ff;

  /* Typography */
  --display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --body: "Figtree", system-ui, -apple-system, sans-serif;

  /* Hard offset ink drop shadows */
  --lift-xl: 0 8px 0 var(--ink);
  --lift-lg: 0 6px 0 var(--ink);
  --lift-md: 0 4px 0 var(--ink);
  --lift-sm: 0 3px 0 var(--ink);
  --lift-xs: 0 2px 0 var(--ink);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--body);
  background-color: var(--sheet);
  background-image:
    linear-gradient(var(--sheet-line) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--sheet-line) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 14px 56px;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--yolk);
  color: var(--ink);
  padding: 8px 14px;
  font-weight: 800;
  border: 2px solid var(--ink);
  border-radius: 8px;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 10px;
}

.page-wrapper {
  width: 100%;
  max-width: 940px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Header & Brand Tags */
.game-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

@media (min-width: 640px) {
  .game-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.brand-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

@media (min-width: 640px) {
  .brand-group {
    align-items: flex-start;
  }
}

.site-title {
  display: flex;
  gap: 6px;
  align-items: center;
  font-family: var(--display);
}

.sticker-tag {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.25rem;
  padding: 5px 12px;
  border: 3px solid var(--ink);
  box-shadow: var(--lift-sm);
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.tag-gulper {
  background: var(--neon-cyan);
  color: var(--ink);
  transform: rotate(-1.5deg);
}

.tag-io {
  background: var(--grape);
  color: #ffffff;
  transform: rotate(1.2deg);
}

.tag-unblocked {
  background: var(--yolk);
  color: var(--ink);
  transform: rotate(-0.5deg);
  font-size: 1rem;
}

.site-tagline {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  box-shadow: var(--lift-sm);
  border-radius: 12px;
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  transition: transform 80ms, box-shadow 80ms, background 80ms;
}

.btn-icon:hover {
  transform: translateY(-2px);
  box-shadow: var(--lift-md);
  background: var(--sheet);
}

.btn-icon:active {
  transform: translateY(2px);
  box-shadow: var(--lift-xs);
}

.btn-icon.active {
  background: var(--tomato);
  color: #ffffff;
}

/* Game Stage Card */
.game-stage-wrapper {
  width: 100%;
  position: relative;
  background: #050811;
  border: 3.5px solid var(--ink);
  box-shadow: var(--lift-xl);
  border-radius: 24px;
  overflow: hidden;
  height: 620px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 680px) {
  .game-stage-wrapper {
    height: 500px;
  }
}

#gameContainer:fullscreen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

/* In-Game Modern HUD Overlay Bar */
.hud-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  pointer-events: none;
  z-index: 5;
}

.hud-tile {
  background: rgba(7, 12, 22, 0.82);
  border: 2px solid rgba(0, 247, 255, 0.4);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  padding: 6px 12px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  min-width: 72px;
}

.hud-label {
  font-size: 0.62rem;
  color: var(--neon-cyan);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.hud-val {
  font-family: var(--display);
  font-size: 1.05rem;
  color: #ffffff;
}

/* Start Game Overlay Card */
.start-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 17, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}

.start-card {
  background: var(--paper);
  border: 3.5px solid var(--ink);
  box-shadow: var(--lift-xl);
  border-radius: 24px;
  padding: 28px 24px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.start-title {
  font-family: var(--display);
  font-size: 1.45rem;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.input-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.input-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.player-input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 700;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  background: #f8faff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.player-input:focus {
  border-color: var(--neon-cyan);
  background: #ffffff;
}

.skin-chips-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.skin-chip {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  cursor: pointer;
  transition: transform 100ms, box-shadow 100ms;
}

.skin-chip:hover {
  transform: scale(1.15);
}

.skin-chip.selected {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  transform: scale(1.22);
}

.btn-play {
  width: 100%;
  background: var(--neon-cyan);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: var(--lift-md);
  font-family: var(--display);
  font-size: 1.25rem;
  padding: 14px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 80ms, box-shadow 80ms, background 80ms;
}

.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: var(--lift-lg);
  background: #38ffff;
}

.btn-play:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--ink);
}

/* Feature Tag Cloud (Zadely sticker pill style) */
.tag-cloud {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
}

.tag-pill {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.78rem;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
  padding: 5px 12px;
  border-radius: 999px;
  cursor: default;
  transition: transform 80ms, background 80ms;
}

.tag-pill:hover {
  transform: translateY(-1px);
  background: var(--yolk);
}

/* Content Sections (Guides, Strategy, FAQs) */
.content-section {
  width: 100%;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-block {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  box-shadow: var(--lift-md);
  border-radius: 20px;
  padding: 18px 22px;
}

.guide-heading {
  font-family: var(--display);
  font-size: 1.18rem;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 400;
}

.guide-para {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 12px;
}

.guide-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--ink);
}

.guide-list strong {
  color: var(--ink);
  font-weight: 800;
}

.strategy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .strategy-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.strategy-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--lift-sm);
  border-radius: 14px;
  padding: 14px;
  transition: transform 100ms ease, box-shadow 100ms ease;
}

.strategy-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--lift-md);
}

.strategy-card-title {
  font-family: var(--display);
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.strategy-card-desc {
  font-size: 0.84rem;
  line-height: 1.48;
  color: var(--ink-soft);
}

.pro-tip-callout {
  background: #fef9e7;
  border: 2px solid var(--yolk);
  box-shadow: var(--lift-sm);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 12px 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #78350f;
}

.pro-tip-callout strong {
  color: #b45309;
}

/* FAQ Accordion */
details.faq-item {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  box-shadow: var(--lift-sm);
  border-radius: 16px;
  padding: 14px 18px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: box-shadow 80ms, transform 80ms;
}

details.faq-item:hover {
  box-shadow: var(--lift-md);
  transform: translateY(-1px);
}

details.faq-item summary {
  font-weight: 800;
  color: var(--ink);
  font-size: 0.96rem;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--ink);
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* More Games & Recommendations */
.more-games-section {
  width: 100%;
  margin-top: 12px;
}

.section-title {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.more-games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 580px) {
  .more-games-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.game-rec-card {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  box-shadow: var(--lift-md);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: transform 120ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 120ms ease;
}

.game-rec-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lift-lg);
}

.game-rec-card.zadely-special {
  background: linear-gradient(135deg, #fffbeb 0%, #f5f3ff 100%);
  border-color: var(--ink);
}

.rec-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--display);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  margin-bottom: 8px;
}

.rec-badge.badge-ai {
  background: var(--grape);
  color: #ffffff;
}

.rec-title {
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.rec-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-bottom: 14px;
  flex-grow: 1;
}

.rec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--display);
  font-size: 0.84rem;
  padding: 9px 16px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--yolk);
  color: var(--ink);
  box-shadow: var(--lift-sm);
  font-weight: 800;
  text-align: center;
  transition: background 100ms ease;
}

.game-rec-card:hover .rec-btn {
  background: var(--tomato);
  color: #ffffff;
}

/* Footer */
.site-footer {
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.disclaimer-text {
  font-size: 0.72rem;
  color: #64748b;
  max-width: 620px;
  line-height: 1.4;
  margin: 0 auto;
}

/* -------------------------------------------------------------
   Redesigned Symmetrical Game Over Dialog (HTML5 Dialog)
   ------------------------------------------------------------- */
.game-dialog {
  border: 3.5px solid var(--ink);
  box-shadow: 0 12px 0 var(--ink);
  border-radius: 26px;
  padding: 26px;
  max-width: 420px;
  width: 92%;
  margin: auto;
  background: var(--paper);
  text-align: center;
}

.game-dialog::backdrop {
  background: rgba(20, 24, 50, 0.75);
  backdrop-filter: blur(5px);
}

.modal-badge-row {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.modal-badge {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.78rem;
  padding: 4px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--tomato);
  color: #ffffff;
  letter-spacing: 0.5px;
}

.modal-title {
  font-family: var(--display);
  font-size: 1.75rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.modal-desc {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

/* Perfectly balanced 2x2 symmetrical grid */
.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
  width: 100%;
}

.modal-stat-card {
  border: 2.5px solid var(--ink);
  box-shadow: var(--lift-sm);
  border-radius: 14px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-stat-card.card-score {
  background: #fffbeb;
}

.modal-stat-card.card-length {
  background: #ecfeff;
}

.modal-stat-card.card-kills {
  background: #fff1f2;
}

.modal-stat-card.card-best {
  background: #faf5ff;
}

.modal-stat-card .stat-label {
  font-size: 0.68rem;
  color: var(--ink-soft);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.modal-stat-card .stat-value {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.btn-primary {
  background: var(--leaf);
  color: #ffffff;
  border: 3px solid var(--ink);
  box-shadow: var(--lift-md);
  font-family: var(--display);
  font-size: 1.25rem;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 80ms, box-shadow 80ms, background 80ms;
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--lift-lg);
  background: #059669;
}

.btn-primary:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--ink);
}

/* 2026-10-23 usability and visual pass */
:root{--sheet:#f7f5ee;--sheet-line:#ece9df}
body{background-size:36px 36px;line-height:1.6}
button,input,summary,a{touch-action:manipulation}
button:focus-visible,[role="button"]:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #286baf;outline-offset:4px}
.btn-icon{min-width:44px;min-height:44px}.site-tagline{line-height:1.55;font-weight:600}
.guide-block{border-width:2px}.guide-para,.guide-list{font-size:15px;line-height:1.8}
.content-section{user-select:text}.content-section a,.site-footer a{color:#245790;text-underline-offset:4px}
.faq-item summary{min-height:48px;display:flex;align-items:center;padding-right:24px}
.game-dialog,dialog{max-height:88dvh;overflow:auto}
.play-help,.product-note{font:500 12px/1.6 var(--body);color:var(--ink-soft);text-align:center;margin:0;max-width:440px}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

:root{--sheet:#0d1727;--sheet-line:#17253a;--paper:#fbfcfe}
body{background-size:44px 44px}.site-tagline{color:#b8c8da}.game-header{gap:18px}.game-stage-wrapper{background:#07101e url('/assets/arena-preview.svg') center/cover;border:2px solid #33455b;box-shadow:0 10px 30px #02091455}
.start-overlay{background:rgba(5,8,17,.17);backdrop-filter:none}.start-card{gap:14px;box-shadow:0 7px 0 #020a16aa}.arena-note{font:500 13px/1.5 var(--body);color:var(--ink-soft);margin-top:-4px}
.skin-chips-bar{justify-content:center;gap:8px;max-width:232px;align-self:center}.skin-chip{width:44px;height:44px;flex:0 0 44px}.input-group{gap:9px}.start-title{line-height:1.4}.btn-play{min-height:50px}
.tag-cloud{gap:8px}.tag-pill{font-family:var(--body);font-weight:650;font-size:12px;border-width:1.5px;box-shadow:none}
.content-section{background:transparent}.guide-block{box-shadow:none}.site-footer{color:#b8c8da}.site-footer a{color:#89c9f1}
#gameCanvas{touch-action:none}#gameCanvas:focus-visible{outline:3px solid #00d9cf;outline-offset:-4px}
.skip-link{top:0;transform:translateY(calc(-100% - 12px))}.skip-link:focus{top:10px;transform:none}
@media(max-width:680px){.sticker-tag{font-size:clamp(12px,3.8vw,17px);padding:5px 8px;border-width:2px}.tag-unblocked{font-size:clamp(10px,3.1vw,14px)}.header-actions{gap:7px;flex-wrap:wrap;justify-content:center}.btn-icon{font-family:var(--body);font-size:12px;padding:8px 11px}.game-stage-wrapper{height:min(650px,calc(100svh - 170px));min-height:520px}.start-overlay{padding:18px}.start-card{padding:22px 18px}.start-title{font-size:20px}.tag-cloud .tag-pill:nth-child(n+4){display:none}.hud-bar{gap:6px;padding:8px}.hud-tile{padding:5px 8px}.hud-val{font-size:15px}.hud-label{font-size:9px}}

/* Decorative intro trails are not opponents; remove them during a real run. */
.game-stage-wrapper.is-playing{background-image:none}
@media(max-width:680px){.hud-bar{top:10px;left:10px;right:10px;gap:5px;padding:0}.hud-tile{min-width:0;flex:1;padding:5px 6px}}
