/* Magic Portal Hunt — GorbaTech theme (gorbatech.com). Άλλαξε μόνο τις μεταβλητές για άλλο 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;
  --purple: #A855F7;
  --pink: #EC4899;
  --gold: #FDE68A;
  --glass: rgba(15, 23, 42, .75);
  --line: rgba(255, 255, 255, .1);
  --text: #F8FAFC;
  --muted: rgba(226, 232, 240, .7);
  --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; }

/* 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 var(--sky); }
.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: .6; }

/* screens */
.screen { position: fixed; inset: 0; display: none; }
.screen.active { display: block; }
#start, #result, #mobileGate, #blocked { overflow-y: auto; padding: calc(70px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); }
.card { max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.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, .08);
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--sky); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 10px var(--sky); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero { width: 150px; height: 190px; border-radius: 50%; display: grid; place-items: center; margin: 4px 0;
  background: radial-gradient(circle at 50% 55%, #7a4426, #2a1630 70%);
  box-shadow: 0 0 0 4px var(--sky), 0 0 0 9px rgba(168, 85, 247, .55), 0 0 50px rgba(56, 189, 248, .7); animation: glow 3s ease-in-out infinite; }
.hero img { width: 70%; animation: float 3s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px var(--pink), 0 0 0 9px rgba(99, 102, 241, .6), 0 0 70px rgba(168, 85, 247, .8); } }
@keyframes float { 50% { transform: translateY(-8px) rotate(4deg); } }
.title { margin: 0; font-size: clamp(36px, 10.5vw, 54px); line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.title span { background: linear-gradient(90deg, var(--sky), var(--purple), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subtitle { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.panel { width: 100%; padding: 20px 18px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.panel-title { margin: 0; font-size: 20px; font-weight: 800; color: var(--sky); line-height: 1.25; }
.panel-title.big { font-size: 26px; }
.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(56, 189, 248, .55); display: grid; place-items: center; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.mono-hint { margin: 0; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.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: var(--glass); 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: linear-gradient(135deg, var(--sky), var(--blue)); font-size: 13px; }
.btn { display: block; width: 100%; padding: 15px 18px; border-radius: 14px; border: 0; cursor: pointer; text-decoration: none;
  background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff; font-size: 16px; font-weight: 800; letter-spacing: .02em; box-shadow: 0 10px 30px rgba(37, 99, 235, .4), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.ghost { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); box-shadow: none; font-weight: 700; }
.link { background: none; border: 0; color: var(--sky); text-decoration: underline; cursor: pointer; padding: 4px; font-size: 14px; }
.note, .req-note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.req-note { font-size: 13px; color: var(--text); }
.req-list { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.req-list li { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.req-list li b { font-size: 22px; }
.req-list li span { display: flex; flex-direction: column; gap: 2px; }
.req-list li small { font-size: 12.5px; color: var(--muted); }
.req-list li.ok { border-color: rgba(34, 197, 94, .5); } .req-list li.ok small { color: #4ADE80; }
.req-list li.no { border-color: rgba(239, 68, 68, .6); } .req-list li.no small { color: #F87171; }

/* play */
#play { background: #000; }
#play .cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body.drag-mode #play { background: var(--bg); background-image: radial-gradient(50% 40% at 50% 50%, rgba(99, 102, 241, .3), transparent 70%), linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: auto, 60px 60px, 60px 60px; }
body.drag-mode #fx { cursor: grab; }
.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(62px + env(safe-area-inset-top)); display: flex; align-items: flex-start; gap: 10px; padding: 0 12px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.stat { flex: 1; max-width: 170px; padding: 10px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px); display: flex; flex-direction: column; gap: 2px; }
.stat.right { margin-left: auto; text-align: right; }
.stat small { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--sky); }
.stat b { font-size: 26px; font-weight: 800; line-height: 1.05; }
.stat b i { font-style: normal; font-size: 15px; color: var(--muted); }
.stat.low b { color: #F87171; animation: pulse .6s infinite; }
.close { flex: none; margin-top: 8px; }
.hint-bubble { position: absolute; z-index: 10; left: 50%; transform: translateX(-50%); top: calc(140px + env(safe-area-inset-top)); margin: 0; padding: 6px 12px; border-radius: 99px; background: rgba(253, 230, 138, .15); border: 1px solid rgba(253, 230, 138, .5); color: var(--gold); font-size: 13px; font-weight: 700; white-space: nowrap; }
.bottom { position: absolute; z-index: 10; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.tray { display: flex; gap: 6px; padding: 6px 8px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.tray i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); }
.tray img { width: 28px; height: 28px; filter: grayscale(1) brightness(.35); transition: filter .3s, transform .3s; }
.tray i.got { background: rgba(56, 189, 248, .2); box-shadow: 0 0 0 1px var(--sky); }
.tray i.got img { filter: none; transform: scale(1.12); }
.hint { margin: 0; max-width: 460px; padding: 10px 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; line-height: 1.35; text-align: center; font-weight: 600; }

/* result */
.res-found { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.res-found span { padding: 8px 4px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.res-found img { width: 48px; height: 48px; filter: grayscale(1) brightness(.35); }
.res-found small { font-size: 10.5px; color: var(--muted); }
.res-found span.got { border-color: rgba(56, 189, 248, .6); } .res-found span.got img { filter: none; } .res-found span.got small { color: var(--text); }
#result.win .panel-title { background: linear-gradient(90deg, var(--sky), var(--purple), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.code { padding: 12px 16px; border-radius: 14px; border: 1px dashed var(--sky); background: rgba(56, 189, 248, .08); font-size: 15px; }
.code b { font-family: var(--mono); letter-spacing: .08em; color: var(--sky); }
.code[hidden] { display: none; }

.toast { position: fixed; z-index: 40; left: 50%; top: calc(150px + env(safe-area-inset-top)); transform: translate(-50%, -10px); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
  padding: 10px 16px; border-radius: 99px; background: linear-gradient(135deg, var(--sky), var(--blue)); font-weight: 800; box-shadow: 0 10px 30px rgba(37, 99, 235, .5); white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.loader { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; background: rgba(6, 9, 14, .92); }
.loader.show { display: grid; }
.loader-card { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); }
.loader-logo { border-radius: 50%; box-shadow: 0 0 0 2px var(--sky), 0 0 30px rgba(56, 189, 248, .6); }
.loader-bar { width: 180px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sky), var(--purple)); transition: width .2s; }
[hidden] { display: none !important; }
