/* Magic Snow Globe — GorbaTech theme (σκούρο φόντο, grid 60px, glass κάρτες, sky/indigo). Άλλαξε μόνο τις μεταβλητές για άλλο look. */
@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;
  --violet: #A855F7;
  --pink: #EC4899;
  --glass: rgba(15, 23, 42, .78);
  --line: rgba(255, 255, 255, .1);
  --text: #F1F5F9;
  --muted: rgba(226, 232, 240, .68);
  --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 12% 0%, rgba(56, 189, 248, .22), transparent 70%),
    radial-gradient(60% 40% at 92% 100%, rgba(99, 102, 241, .26), 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; }

/* 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, .88), rgba(6, 9, 14, 0)); pointer-events: none; }
.bar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(56, 189, 248, .7); }
.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; }
.tool { min-width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); color: var(--text); font-weight: 700; cursor: pointer; }
.tool.off { opacity: .55; }

/* screens */
.screen { position: fixed; inset: 0; display: none; }
.screen.active { display: block; }
#start, #reveal, #mobileGate, #unsupported { overflow-y: auto; padding: calc(70px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
#unsupported, #reveal { background: rgba(6, 9, 14, .86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 20; }
.card { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.card.wide { max-width: 900px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(56, 189, 248, .4); background: rgba(56, 189, 248, .1);
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 10px var(--sky); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.title { margin: 0; font-size: clamp(34px, 11vw, 54px); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.title span { background: linear-gradient(90deg, var(--sky), var(--violet), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subtitle { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.hero { width: 100%; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(56, 189, 248, .15); }
.hero img { width: 100%; display: block; aspect-ratio: 800 / 420; object-fit: cover; }
.howto { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.howto li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); font-size: 14.5px; }
.howto b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff; font-size: 14px; }
.needs { margin: 0; font-size: 12.5px; color: var(--sky); font-family: var(--mono); line-height: 1.5; }
.btn { width: 100%; max-width: 360px; padding: 15px 20px; border: 0; border-radius: 14px; cursor: pointer; text-decoration: none; text-align: center;
  background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff; font-weight: 800; font-size: 16.5px; box-shadow: 0 10px 30px rgba(37, 99, 235, .4); }
.btn.ghost { background: transparent; border: 1px solid rgba(56, 189, 248, .45); color: var(--sky); box-shadow: none; font-size: 14.5px; padding: 12px 18px; }
.btn[hidden] { display: none; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 4px; }
.note { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* desktop gate */
.gate-grid { width: 100%; display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 820px) { .gate-grid { grid-template-columns: 1fr 1fr; } }
.panel { padding: 20px 18px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.panel-title { margin: 0; font-size: 20px; font-weight: 800; color: var(--sky); line-height: 1.25; }
.qr-box { width: min(62vw, 230px); aspect-ratio: 1; padding: 12px; border-radius: 20px; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px rgba(56, 189, 248, .5), 0 20px 50px rgba(0, 0, 0, .5); }
.qr-box svg { width: 100%; height: 100%; display: block; }
.mono-hint { margin: 0; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.flyer-btn { padding: 8px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: zoom-in; width: min(62vw, 260px); }
.flyer-btn img { width: 100%; display: block; aspect-ratio: 1; object-fit: contain; }
.zoom { position: fixed; inset: 0; z-index: 60; background: rgba(6, 9, 14, .9); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.zoom[hidden] { display: none; }
.zoom img { max-width: min(92vw, 92vh); max-height: 92vh; background: #fff; padding: 10px; border-radius: 16px; }

/* play */
#play { background: #000; }
.cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam[hidden] { display: none; }
.ar-host { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.ar-host canvas { touch-action: none; }
.ar-host video { object-fit: cover; }
.hud { position: absolute; z-index: 5; top: calc(62px + env(safe-area-inset-top)); left: 14px; right: 14px; display: flex; justify-content: flex-start; }
.scan { position: absolute; z-index: 3; left: 50%; top: 46%; width: min(66vw, 340px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; transition: opacity .3s; }
.scan img { width: 100%; height: 100%; opacity: .22; border-radius: 12px; }
.scan::before { content: ""; position: absolute; inset: -12px; border: 4px solid rgba(56, 189, 248, .9); border-radius: 18px;
  clip-path: polygon(0 0, 22% 0, 22% 6%, 6% 6%, 6% 22%, 0 22%, 0 78%, 6% 78%, 6% 94%, 22% 94%, 22% 100%, 78% 100%, 78% 94%, 94% 94%, 94% 78%, 100% 78%, 100% 22%, 94% 22%, 94% 6%, 78% 6%, 78% 0, 100% 0, 100% 100%, 0 100%);
  animation: pulse 1.6s ease-in-out infinite; }
.scan.hide { opacity: 0; }
@keyframes pulse { 50% { transform: scale(1.04); opacity: .6; } }
.meter { position: absolute; z-index: 5; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(86vw, 380px);
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.meter[hidden] { display: none; }
.meter-icon { font-size: 20px; animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.meter-bar { flex: 1; height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--sky), var(--violet), var(--pink)); box-shadow: 0 0 14px rgba(56, 189, 248, .7); transition: width .1s linear; }
.meter b { font-family: var(--mono); font-size: 13px; min-width: 40px; text-align: right; }
.meter.full { border-color: rgba(56, 189, 248, .8); box-shadow: 0 0 30px rgba(56, 189, 248, .5); }
.hint { position: absolute; z-index: 5; left: 16px; right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); margin: 0; text-align: center; font-weight: 800; font-size: 18px; text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }
.hint:empty { display: none; }
.pop { position: absolute; z-index: 6; left: 0; right: 0; top: 28%; margin: 0; text-align: center; font-size: 26px; font-weight: 800; opacity: 0; pointer-events: none; text-shadow: 0 4px 20px rgba(0, 0, 0, .8); }
.pop.show { animation: pop 1.6s ease-out; }
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 15% { opacity: 1; transform: scale(1.08); } 30% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }
.shaking .meter { animation: wobble .18s infinite; }
@keyframes wobble { 25% { transform: translateX(-50%) rotate(-1.5deg); } 75% { transform: translateX(-50%) rotate(1.5deg); } }

/* unsupported */
.unsup-icon { font-size: 54px; filter: drop-shadow(0 0 18px rgba(56, 189, 248, .6)); }
.reqs { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 8px; }
.reqs li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); text-align: left; font-size: 14.5px; }
.reqs li b { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.reqs li.ok b { color: #34D399; }
.reqs li.bad { border-color: rgba(236, 72, 153, .6); }
.reqs li.bad b { color: var(--pink); }

/* reveal */
.reveal-label { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); }
.prize-big { margin: 0; font-size: clamp(64px, 24vw, 110px); font-weight: 800; line-height: 1;
  background: linear-gradient(90deg, var(--sky), var(--violet), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 24px rgba(56, 189, 248, .35)); }
.prize-name { margin: 0; font-size: 19px; font-weight: 700; }
.code { padding: 12px 18px; border-radius: 14px; border: 1px dashed rgba(56, 189, 248, .6); background: rgba(56, 189, 248, .08); font-size: 15px; }
.code b { font-family: var(--mono); font-size: 20px; letter-spacing: .12em; color: var(--sky); }
.cta { margin: 0; font-size: 14px; color: var(--text); }

/* loader */
.loader { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; background: rgba(6, 9, 14, .82); }
.loader.show { display: grid; }
.loader-card { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.loader-logo { border-radius: 50%; box-shadow: 0 0 0 3px rgba(56, 189, 248, .6), 0 0 40px rgba(56, 189, 248, .5); animation: blink 1.4s infinite; }
.loader-bar { width: 200px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.loader-bar i { display: block; width: 40%; height: 100%; background: linear-gradient(90deg, var(--sky), var(--indigo)); animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
