/* AR Secret Gifts — GorbaTech βάση + κλασική χριστουγεννιάτικη παλέτα. Άλλαξε μόνο τις μεταβλητές για άλλο 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 {
  --red: #C8102E;
  --red-2: #8E0B20;
  --green: #0B6E4F;
  --gold: #E5B842;
  --cream: #FFF8EE;
  --navy: #1B1B24;
  --bg: #0A0D14;
  --cyan: #3FF2FF;
  --glass: rgba(27, 27, 36, .82);
  --line: rgba(255, 248, 238, .14);
  --text: #FFF8EE;
  --muted: rgba(255, 248, 238, .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 15% 0%, rgba(200, 16, 46, .28), transparent 70%),
    radial-gradient(60% 40% at 90% 100%, rgba(11, 110, 79, .32), transparent 70%),
    linear-gradient(rgba(255, 248, 238, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 248, 238, .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(10, 13, 20, .85), rgba(10, 13, 20, 0)); }
.brand { display: flex; align-items: center; gap: 9px; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); }
.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(--gold); }
.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: .45; }

/* screens */
.screen { position: fixed; inset: 0; display: none; }
.screen.active { display: block; }
#start, #reveal, #mobileGate { overflow-y: auto; padding: calc(70px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
.start-card, .reveal-card { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.qr-card { max-width: 960px; }
.qr-layout { width: 100%; display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; margin-top: 6px; }
.qr-panel, .triggers-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; }
@media (min-width: 820px) {
  .qr-layout { grid-template-columns: 340px 1fr; }
}
.qr-title { margin: 0; font-size: 20px; font-weight: 800; color: var(--gold); line-height: 1.25; }
.qr-box { width: min(62vw, 220px); aspect-ratio: 1; padding: 12px; border-radius: 20px; background: #FFFFFF;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 0 2px rgba(229, 184, 66, .55); display: grid; place-items: center; }
.qr-box svg { width: 100%; height: 100%; display: block; border-radius: 8px; }
.qr-hint { margin: 0; font-size: 12.5px; color: var(--muted); font-family: var(--mono); line-height: 1.45; }
.triggers-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.trigger-item { padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 248, 238, .05); color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; transition: transform .15s, border-color .15s; }
.trigger-item:hover { transform: translateY(-2px); border-color: rgba(229, 184, 66, .65); }
.trigger-item img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: #FFFFFF; padding: 6px; display: block; }
.trigger-item b { font-size: 14px; }
.trigger-zoom { position: fixed; inset: 0; z-index: 60; background: rgba(10, 13, 20, .88); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px; }
.trigger-zoom[hidden] { display: none; }
.trigger-zoom-card { position: relative; max-width: min(90vw, 520px); width: 100%; padding: 18px; border-radius: 22px; background: var(--glass);
  border: 1px solid rgba(229, 184, 66, .6); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.trigger-zoom-close { position: absolute; top: 12px; right: 12px; }
.trigger-zoom-card img { width: 100%; max-height: 70vh; aspect-ratio: 1; object-fit: contain; border-radius: 14px; background: #FFFFFF; padding: 10px; }
.trigger-zoom-card b { font-size: 18px; color: var(--gold); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(229, 184, 66, .45); background: rgba(229, 184, 66, .1);
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.title { margin: 0; font-size: clamp(38px, 11vw, 56px); line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.title span { background: linear-gradient(90deg, var(--red), var(--gold), #3FCF8E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subtitle { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.roster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.mate { padding: 10px 6px 8px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mate img { width: 64px; height: 64px; border-radius: 50%; filter: grayscale(1) brightness(.5); transition: filter .3s; }
.mate.got img { filter: none; }
.mate b { font-size: 14px; }
.mate small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mate.got small { color: var(--gold); }
.mate.gift small::after { content: " 🎁"; }
.mate.coal small::after { content: " ⚫"; }
.howto { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; }
.howto li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: rgba(255, 248, 238, .05); border: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.howto b { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--red); font-size: 13px; }
.btn { display: block; width: 100%; padding: 15px 18px; border-radius: 14px; border: 1px solid rgba(229, 184, 66, .6); cursor: pointer; text-decoration: none;
  background: linear-gradient(135deg, var(--red), var(--red-2)); color: var(--cream); font-size: 16px; font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 10px 30px rgba(200, 16, 46, .35), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn.ghost { background: rgba(255, 248, 238, .06); border-color: var(--line); box-shadow: none; font-weight: 700; }
.link { background: none; border: 0; color: var(--gold); text-decoration: underline; cursor: pointer; padding: 4px; font-size: 14px; }
.note { margin: 0; font-size: 12px; color: var(--muted); }

/* play */
#play { background: #000; }
.ar-host, .cam { position: absolute; inset: 0; width: 100%; height: 100%; }
.cam { object-fit: cover; }
.ar-host video { object-fit: cover; }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; z-index: 5; }
.hud { position: absolute; z-index: 10; left: 0; right: 0; top: calc(64px + env(safe-area-inset-top)); display: flex; align-items: center; gap: 8px; padding: 0 12px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.close { flex: none; }
.chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); min-width: 0; }
.chip img { width: 36px; height: 36px; border-radius: 50%; }
.chip span { display: flex; flex-direction: column; min-width: 0; }
.chip b { font-size: 14px; }
.chip small { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boxes { margin-left: auto; padding: 8px 12px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); font-weight: 800; white-space: nowrap; }
.scan { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; pointer-events: none; transition: opacity .3s; }
.scan.hide { opacity: 0; }
.scan-frame { width: min(68vw, 46vh); aspect-ratio: 1; border-radius: 22px; border: 3px dashed rgba(229, 184, 66, .85); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .25); animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(.96); } }
.scan-thumbs { display: flex; gap: 10px; }
.scan-thumbs img { width: 54px; height: 54px; border-radius: 10px; border: 2px solid var(--cream); opacity: .9; }
.hint { position: absolute; z-index: 10; left: 16px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); margin: 0; text-align: center; font-weight: 700; font-size: 15px; text-shadow: 0 2px 6px rgba(0, 0, 0, .8); pointer-events: none; }
.pop { position: absolute; z-index: 11; left: 0; right: 0; top: 30%; margin: 0; text-align: center; font-size: 30px; font-weight: 800; color: var(--gold); opacity: 0; pointer-events: none;
  text-shadow: 0 3px 0 var(--red-2), 0 6px 18px rgba(0, 0, 0, .7); }
.pop.show { animation: pop 1.3s ease-out; }
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 15% { opacity: 1; transform: scale(1.12); } 30% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }

/* reveal */
.reveal-card { padding: 22px 18px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.reveal-card.gift { border-color: rgba(229, 184, 66, .7); box-shadow: 0 0 60px rgba(229, 184, 66, .25); }
.reveal-label { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.reveal-card h2 { margin: 0; font-size: 30px; line-height: 1.1; }
.reveal-img { width: min(78vw, 300px); aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--cream); border: 4px solid var(--gold); animation: unwrap .7s cubic-bezier(.2, 1.4, .4, 1); }
.reveal-card.coal .reveal-img { background: radial-gradient(circle, #2b2b36, #101016); border-color: #444; }
.reveal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reveal-card.coal .reveal-img img { object-fit: contain; }
@keyframes unwrap { from { transform: scale(.3) rotate(-12deg); opacity: 0; } }
.reveal-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.code { font-family: var(--mono); padding: 10px 16px; border-radius: 12px; border: 1px dashed var(--gold); background: rgba(229, 184, 66, .08); }
.code b { color: var(--gold); font-size: 20px; letter-spacing: .08em; }

.toast { position: fixed; z-index: 50; left: 50%; top: calc(120px + env(safe-area-inset-top)); transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--line); font-size: 14px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.toast.show { opacity: 1; }

/* MindAR UI που δεν χρειαζόμαστε */
.mindar-ui-overlay { display: none !important; }
