/* Snack Attack — GorbaTech theme (gorbatech.com). Για άλλο brand άλλαξε μόνο τις μεταβλητές του :root. */
@font-face { font-family: "Ubuntu Sans"; font-weight: 400 800; font-display: swap; src: url("assets/fonts/ubuntu-sans-greek-wght-normal.woff2") format("woff2"); unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "Ubuntu Sans"; font-weight: 400 800; font-display: swap; src: url("assets/fonts/ubuntu-sans-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212; }

:root {
  --bg: #06090E;
  --sky: #38BDF8;
  --blue: #2563EB;
  --indigo: #6366F1;
  --purple: #A855F7;
  --pink: #EC4899;
  --gold: #FACC15;
  --danger: #EF4444;
  --glass: rgba(15, 23, 42, .75);
  --line: rgba(255, 255, 255, .1);
  --text: #F8FAFC;
  --muted: #94A3B8;
  --font: "Ubuntu Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(60% 40% at 15% 0%, rgba(56, 189, 248, .18), transparent 70%),
    radial-gradient(60% 40% at 90% 100%, rgba(99, 102, 241, .22), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: auto, auto, 60px 60px, 60px 60px;
  color: var(--text); font-family: var(--font);
  overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
button { font: inherit; }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* top bar */
.bar { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 14px 8px; background: linear-gradient(rgba(6, 9, 14, .85), rgba(6, 9, 14, 0)); }
.brand { display: flex; align-items: center; gap: 9px; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(56, 189, 248, .6); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-size: 17px; font-weight: 800; }
.brand-text b span { color: var(--sky); }
.brand-text small { font-family: var(--mono); font-size: 8.5px; letter-spacing: .22em; color: var(--muted); }
.bar-tools { display: flex; gap: 8px; align-items: center; }
.tool { min-width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); color: var(--text); cursor: pointer; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); padding: 3px; gap: 2px; }
.lang button { border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 13px; padding: 7px 9px; border-radius: 9px; cursor: pointer; }
.lang button.on { background: var(--blue); color: #fff; }
.playing .bar { display: none; }

/* screens */
.screen { position: fixed; inset: 0; display: none; }
.screen.active { display: block; }
#intro, #blocked, #card { overflow-y: auto; padding: calc(66px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
.card-col { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.center-col { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; }
.mono-tag { font-family: var(--mono); letter-spacing: .3em; font-size: 11px; color: var(--sky); }
.title { margin: 0; font-size: clamp(42px, 13vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -.02em;
  background: linear-gradient(90deg, #38BDF8, #A855F7, #EC4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subtitle { margin: 0; color: #CBD5E1; font-size: 18px; }
.how { margin: 4px 0; padding: 14px 16px 14px 34px; text-align: left; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.35; color: #E2E8F0; width: 100%; }
.how li::marker { color: var(--sky); font-weight: 800; }
.needs { margin: 0; font-size: 13px; color: #CBD5E1; line-height: 1.4; }
.note { margin: 0; font-size: 12px; color: var(--muted); }
.best { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.best b { color: var(--gold); }

.btn { border: 1px solid var(--line); background: var(--glass); color: var(--text); padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 15px; cursor: pointer; }
.btn.primary { border: 0; background: linear-gradient(135deg, #38BDF8, #2563EB); box-shadow: 0 10px 30px rgba(37, 99, 235, .35); }
.btn.big { font-size: 18px; padding: 16px 26px; width: 100%; }
.btn.ghost { background: transparent; }
.btn:active { transform: scale(.97); }
.row { display: flex; gap: 10px; width: 100%; }
.row .btn { flex: 1; }

/* hero */
.hero { position: relative; width: 220px; height: 170px; }
.hero img { position: absolute; width: 64px; animation: fall 2.4s ease-in-out infinite; }
.hero .f1 { left: 4px; top: 0; } .hero .f2 { right: 6px; top: 6px; animation-delay: -.6s; }
.hero .f3 { left: 78px; top: -6px; animation-delay: -1.2s; } .hero .f4 { right: 52px; top: 60px; width: 44px; animation-delay: -1.8s; }
.hero-mouth { position: absolute; left: 60px; bottom: 0; width: 100px; height: 72px; border-radius: 50%; background: radial-gradient(60% 40% at 50% 85%, var(--pink) 60%, transparent 62%), #5B0F1A;
  border: 6px solid #F9A8D4; box-shadow: inset 0 10px 0 #fff, 0 0 0 4px rgba(56, 189, 248, .6), 0 0 30px rgba(56, 189, 248, .5); animation: chomp 1.2s ease-in-out infinite; }
@keyframes fall { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(14px) rotate(8deg); } }
@keyframes chomp { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }

/* loading */
.loader-logo { border-radius: 50%; box-shadow: 0 0 0 3px rgba(56, 189, 248, .5), 0 0 40px rgba(56, 189, 248, .4); }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .12); border-top-color: var(--sky); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#loadText { margin: 0; color: #CBD5E1; }

/* «σοφές» ατάκες στη φόρτωση */
.quote { margin: 8px 0 0; max-width: 420px; padding: 18px 20px; text-align: center; transition: opacity .35s, transform .35s; }
.quote.out { opacity: 0; transform: translateY(6px); }
.quote blockquote { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.35;
  background: linear-gradient(90deg, #38BDF8, #A855F7, #EC4899); -webkit-background-clip: text; background-clip: text; color: transparent; }
.quote figcaption { margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }

/* blocked */
.blocked-icon { font-size: 54px; margin-top: 10px; }
#blocked h2 { margin: 0; }
.blocked-msg { margin: 0; padding: 14px 16px; line-height: 1.45; color: #FECACA; border-color: rgba(239, 68, 68, .45); }
.err-detail { font-size: 10px; color: var(--muted); word-break: break-all; opacity: .7; }

/* game */
#game { background: #000; }
#video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.hud { position: absolute; z-index: 5; top: calc(10px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; justify-content: space-between; padding: 10px 16px; }
.hud div { display: flex; flex-direction: column; gap: 2px; min-width: 70px; }
.hud .mid { align-items: center; } .hud .right { align-items: flex-end; }
.hud small { font-family: var(--mono); letter-spacing: .14em; font-size: 10px; color: var(--sky); }
.hud b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hud .combo { color: var(--pink); transition: transform .15s; }
.hud .combo.pop { transform: scale(1.35); }
.hud .low { color: var(--danger); }
.hud-players { position: absolute; z-index: 5; top: calc(84px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; pointer-events: none; }
.hud-players span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; background: rgba(6, 9, 14, .75); border: 2px solid var(--pc); }
.hud-players i { width: 8px; height: 8px; border-radius: 50%; background: var(--pc); }
.hud-players[hidden] { display: none; }
.sim-badge { position: absolute; z-index: 5; bottom: calc(96px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  padding: 4px 10px; border-radius: 999px; background: rgba(168, 85, 247, .3); border: 1px solid rgba(168, 85, 247, .6); }
.center-msg { position: absolute; z-index: 6; left: 16px; right: 16px; top: 40%; transform: translateY(-50%); text-align: center; font-weight: 800; font-size: 26px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8); pointer-events: none; }
.center-msg.count { font-size: 120px; background: linear-gradient(180deg, #38BDF8, #A855F7); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hint { position: absolute; z-index: 5; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); padding: 12px 14px; text-align: center; display: flex; flex-direction: column; gap: 4px; transition: opacity .4s; }
.hint b { font-size: 16px; } .hint small { color: var(--muted); font-size: 12px; }
.hint.fade { opacity: 0; }
.flash { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .25s; }
.flash.bad { background: radial-gradient(circle, transparent 40%, rgba(239, 68, 68, .55)); opacity: 1; transition: none; }
.flash.white { background: #fff; opacity: .9; transition: none; }

/* card */
#cardImg { width: 100%; max-width: 400px; border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6), 0 0 0 1px var(--line); }
.new-best { font-weight: 800; font-size: 20px; color: var(--gold); }

/* «Επικοινωνήστε μαζί μας» (../shared/contact.js — υπάρχει μόνο στο website) */
.gt-contact { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.gt-contact[hidden] { display: none; }
.gt-contact-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 12, 0.78); backdrop-filter: blur(6px); }
.gt-contact-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.97), rgba(10, 15, 29, 0.97));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 50px rgba(56, 189, 248, 0.12);
  user-select: text;
}
.gt-contact-card h2 { font-size: 26px; line-height: 1.2; }
.gt-contact-intro { color: var(--muted); font-size: 14.5px; }
.gt-contact-tag {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 999px;
  font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sky); background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.3);
}
.gt-contact-tag b { color: var(--text); }
.gt-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gt-contact-card label { display: flex; flex-direction: column; gap: 6px; font: 600 11.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky); }
.gt-contact-card input:not([type="checkbox"]), .gt-contact-card textarea {
  font: 400 15px var(--font);
  color: var(--text);
  background: rgba(6, 9, 14, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  resize: vertical;
}
.gt-contact-card input:focus, .gt-contact-card textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2); }
.gt-contact-card .gt-contact-consent { flex-direction: row; align-items: flex-start; gap: 10px; font: 400 13px var(--font); text-transform: none; letter-spacing: 0; color: var(--muted); }
.gt-contact-consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--sky); flex-shrink: 0; }
.gt-contact-consent a { color: var(--sky); }
.gt-contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gt-contact-status { font-size: 14px; min-height: 1.2em; color: var(--muted); }
.gt-contact-status[data-state="error"] { color: var(--danger); }
.gt-contact-status[data-state="ok"] { color: #34D399; }
.gt-contact-card .gt-btn { align-self: flex-start; font-size: 14px; }
.gt-contact-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: rgba(15, 23, 42, 0.9); color: var(--muted); cursor: pointer; font-size: 16px; }
.gt-contact-x:hover { color: var(--sky); border-color: var(--sky); }
@media (max-width: 520px) {
  .gt-contact-card { padding: 22px 18px; }
  .gt-contact-grid { grid-template-columns: 1fr; }
  .gt-contact-card h2 { font-size: 22px; }
}

.gt-contact-card h2 { margin: 0; }
.gt-contact-card p { margin: 0; }
.gt-contact-card .gt-btn { border: 0; color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 14px; cursor: pointer; background: linear-gradient(135deg, #38BDF8, #2563EB); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 8px var(--sky); }
#contactBtn[hidden] { display: none; }
