/* DevFest Kochi 2026 · DevQuest
   Palette and type follow devfestkochi.in */
:root {
  --blue: #4285f4; --green: #34a853; --yellow: #f9ab00; --red: #ea4335;
  --accent: #f9ab00; --on-accent: #1e1e1e;
  --paper: #f0f0f0; --surface: #ffffff; --surface-2: #f6f6f6;
  --ink: #1e1e1e; --ink-2: #5f6368; --hair: #d6d6d6; --grid: #e7e7e7;
  --water: #e6e6e6; --win: #ffe7a5; --glass: #f0f0f0e6;
  --on-ink: #f0f0f0; --shadow: 0 1px 0 #1e1e1e14, 0 8px 24px #1e1e1e12;
  --blue-soft: #c3ecf6; --green-soft: #ccf6c5; --yellow-soft: #ffe7a5; --red-soft: #f8d8d8;
  --font: "Google Sans Flex", "Google Sans", "Noto Sans Malayalam", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "Google Sans Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 22px; --pill: 999px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141414; --surface: #1e1e1e; --surface-2: #262626;
    --ink: #f0f0f0; --ink-2: #a8abb0; --hair: #343434; --grid: #1b1b1b;
    --water: #222222; --win: #3a2e08; --glass: #141414e6;
    --on-ink: #141414; --shadow: 0 1px 0 #00000040, 0 8px 24px #00000059;
    --blue-soft: #10303a; --green-soft: #15331a; --yellow-soft: #3a2e08; --red-soft: #3d1c1c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #141414; --surface: #1e1e1e; --surface-2: #262626;
  --ink: #f0f0f0; --ink-2: #a8abb0; --hair: #343434; --grid: #1b1b1b;
  --water: #222222; --win: #3a2e08; --glass: #141414e6;
  --on-ink: #141414; --shadow: 0 1px 0 #00000040, 0 8px 24px #00000059;
  --blue-soft: #10303a; --green-soft: #15331a; --yellow-soft: #3a2e08; --red-soft: #3d1c1c;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); color: var(--ink); background-color: var(--paper);
  background-image: linear-gradient(90deg, var(--grid) 1px, transparent 1px), linear-gradient(var(--grid) 1px, transparent 1px);
  background-size: 60px 60px; font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; overscroll-behavior: none;
}
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 520px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }

/* ── top bar ── */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--hair);
}
.brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.brand small { display: block; font-size: 11px; letter-spacing: .16em; color: var(--ink-2); text-transform: uppercase; }
.pts { font-weight: 700; font-variant-numeric: tabular-nums; padding: 6px 12px; border: 1px solid var(--hair); border-radius: var(--pill); font-size: 14px; white-space: nowrap; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hair); background: var(--surface); display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn svg { width: 18px; height: 18px; }

main { flex: 1; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); display: grid; gap: 14px; align-content: start; }

/* ── bottom nav ── */
.nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  width: min(488px, calc(100vw - 24px)); display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hair); border-radius: var(--pill); padding: 6px; box-shadow: var(--shadow);
}
.nav button { border: 0; background: none; padding: 8px 4px; border-radius: var(--pill); display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--ink-2); cursor: pointer; position: relative; min-width: 0; }
.nav button svg { width: 22px; height: 22px; }
.nav button.on { background: var(--ink); color: var(--paper); }
.nav .dot { position: absolute; top: 6px; right: calc(50% - 18px); width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--paper); }

/* ── atoms ── */
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); padding: 16px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.h1 { font-size: clamp(30px, 9vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
.h2 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.stack { display: grid; gap: 10px; }
.btn {
  appearance: none; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  border-radius: var(--pill); padding: 13px 20px; font-weight: 650; font-size: 15px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; transition: transform .15s var(--ease), opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.blue { background: var(--accent); border-color: var(--ink); color: var(--on-accent); }
.btn.small { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--pill); border: 1px solid var(--hair); font-size: 13px; font-weight: 600; background: var(--surface); white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, textarea.input {
  width: 100%; padding: 13px 16px; border-radius: 16px; border: 1px solid var(--hair); background: var(--surface);
  outline: none; font-size: 16px; transition: border-color .2s;
}
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow-soft); }
textarea.input { min-height: 96px; resize: vertical; }
.c-blue { --c: var(--blue); --cs: var(--blue-soft); } .c-green { --c: var(--green); --cs: var(--green-soft); }
.c-yellow { --c: var(--yellow); --cs: var(--yellow-soft); } .c-red { --c: var(--red); --cs: var(--red-soft); }
.bar { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--c, var(--blue)); border-radius: 8px; transition: width .6s var(--ease); }

/* ── four-colour stripe (site motif) ── */
.stripe { display: grid; grid-template-columns: repeat(4, 1fr); height: 6px; border-radius: 6px; overflow: hidden; }
.stripe i:nth-child(1) { background: var(--blue); } .stripe i:nth-child(2) { background: var(--green); }
.stripe i:nth-child(3) { background: var(--yellow); } .stripe i:nth-child(4) { background: var(--red); }

/* ── onboarding ── */
.hero { padding: 28px 16px 8px; display: grid; gap: 14px; }
.hero-art { display: grid; place-items: center; padding: 10px 0; }
.hero-art svg { width: min(56vw, 220px); height: auto; }
.glyph-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.glyph-pick button { aspect-ratio: 1; border-radius: 20px; border: 1px solid var(--hair); background: var(--surface); display: grid; place-items: center; cursor: pointer; padding: 14px; }
.glyph-pick button.on { border: 2px solid var(--ink); background: var(--surface-2); }
.glyph-pick svg { width: 100%; height: 100%; }

/* ── map ── */
.status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--hair); background: var(--surface); }
.status .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 var(--green); animation: ping 2s infinite; flex: none; }
.status.off .pulse { background: var(--ink-2); animation: none; }
.status b { font-weight: 650; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 #34a85366; } 100% { box-shadow: 0 0 0 12px #34a85300; } }
.map { position: relative; border-radius: var(--r); border: 1px solid var(--hair); background: var(--surface); overflow: hidden; }
.map svg { display: block; width: 100%; height: auto; }
.map .room-label { font: 700 13px var(--font); fill: var(--ink); letter-spacing: -.01em; }
.map .room-sub { font: 600 9px var(--font); fill: var(--ink-2); letter-spacing: .14em; text-transform: uppercase; }
.map .drop { cursor: pointer; }
.map .drop .halo { transform-box: fill-box; transform-origin: center; animation: halo 2.4s var(--ease) infinite; }
.map .drop.far { opacity: .55; }
@keyframes halo { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes zone { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── encounter banner ── */
.enc-banner { position: relative; overflow: hidden; border-radius: var(--r); padding: 16px; color: var(--on-accent); background: var(--accent); display: grid; gap: 10px; cursor: pointer; border: 1.5px solid var(--ink); text-align: left; width: 100%; }
.enc-banner::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 2px solid #ffffff55; animation: zone 2s ease-in-out infinite; }
.enc-banner .eyebrow { color: #1e1e1ecc; }
.enc-banner .h2 { color: #1e1e1e; }
.enc-banner::after { border-color: #1e1e1e33 !important; }

/* ── task card ── */
.task-card { border-left: 6px solid var(--c); }
.pglyph { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--cs); flex: none; }
.pglyph svg { width: 26px; height: 26px; }

/* ── blueprints ── */
.bp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bp {
  position: relative; border-radius: var(--r); border: 1px solid var(--hair); padding: 12px; display: grid; gap: 10px;
  background-color: var(--surface);
  background-image: linear-gradient(90deg, var(--water) 1px, transparent 1px), linear-gradient(var(--water) 1px, transparent 1px);
  background-size: 14px 14px;
}
.bp.done { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.bp-art { aspect-ratio: 1; display: grid; place-items: center; }
.bp-art svg { width: 100%; height: 100%; overflow: visible; }
.bp-art .piece { fill: none; stroke: var(--blue); stroke-width: 1.4; stroke-dasharray: 4 3; opacity: .55; }
.bp-art .piece.got { fill: var(--c); stroke: var(--ink); stroke-dasharray: none; stroke-width: 1.4; opacity: 1; }
.bp-art .piece.wild { fill: url(#wildfill); stroke: var(--ink); stroke-dasharray: none; opacity: 1; }
.bp-name { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.bp-dots { display: flex; gap: 4px; }
.bp-dots i { width: 18px; height: 6px; border-radius: 3px; background: var(--hair); }
.bp-dots i.on { background: var(--c); }
.reward { display: flex; gap: 12px; align-items: center; }
.reward .medal { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px dashed var(--ink-2); }
.reward.ok .medal { border: 0; background: var(--yellow); }
.reward .medal svg { width: 30px; height: 30px; }

/* ── leaderboard ── */
.lb { display: grid; }
.lb-row { display: grid; grid-template-columns: 30px 36px 1fr auto; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--hair); }
.lb-row:last-child { border-bottom: 0; }
.lb-row.me { background: var(--win); border-radius: 14px; padding-left: 8px; padding-right: 8px; border-bottom-color: transparent; }
.lb-rank { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: center; }
.lb-av { width: 36px; height: 36px; }
.lb-name { min-width: 0; } .lb-name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.lb-pts { font-weight: 700; font-variant-numeric: tabular-nums; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; align-items: end; }
.podium > div { text-align: center; display: grid; justify-items: center; gap: 4px; }
.podium .block { width: 100%; border-radius: 16px 16px 6px 6px; border: 1px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff; }
.podium .av { width: 46px; height: 46px; }
.podium b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── sheets & overlay ── */
.scrim { position: fixed; inset: 0; z-index: 50; background: #0b0f1a80; display: flex; align-items: flex-end; justify-content: center; }
.scrim.anim { animation: fade .2s; } .scrim.anim .sheet { animation: up .35s var(--ease); }
.sheet {
  width: min(520px, 100vw); max-height: 92vh; overflow: auto; background: var(--paper); border-radius: 28px 28px 0 0;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 14px;
  border: 1px solid var(--hair); border-bottom: 0;
}
.sheet .grab { width: 40px; height: 5px; border-radius: 5px; background: var(--hair); margin: 2px auto 4px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.full {
  position: fixed; inset: 0; z-index: 60; background: var(--paper); overflow: auto;
  background-image: linear-gradient(90deg, var(--grid) 1px, transparent 1px), linear-gradient(var(--grid) 1px, transparent 1px); background-size: 60px 60px;
}
.full.anim { animation: fade .2s; }
.full .inner { max-width: 520px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }

/* ── encounter ── */
.target { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 22px 16px; position: relative; overflow: hidden; }
.target .radar { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.target .radar i { position: absolute; width: 140px; height: 140px; border-radius: 50%; border: 2px solid var(--blue); opacity: 0; animation: radar 3s linear infinite; }
.target .radar i:nth-child(2) { animation-delay: 1s; } .target .radar i:nth-child(3) { animation-delay: 2s; }
@keyframes radar { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
.target .av { width: 84px; height: 84px; position: relative; }
.target .name { font-size: 30px; font-weight: 750; letter-spacing: -.03em; position: relative; }
.code { font-size: 54px; font-weight: 800; letter-spacing: .18em; font-variant-numeric: tabular-nums; text-align: center; padding: 8px 0 0 .18em; }
.code-in { font-size: 28px; letter-spacing: .4em; text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; }
.presence { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.presence > div { border: 1px solid var(--hair); border-radius: 16px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; background: var(--surface); }
.presence i { width: 10px; height: 10px; border-radius: 50%; background: var(--hair); flex: none; }
.presence .on i { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; }
.steps { display: grid; gap: 8px; counter-reset: s; }
.steps > div { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.steps > div::before { counter-increment: s; content: counter(s); width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.steps > div.ok::before { content: "✓"; background: var(--green); color: #fff; border-color: var(--green); }

/* games */
.rps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rps button { aspect-ratio: 1; border-radius: 22px; border: 1px solid var(--hair); background: var(--surface); font-size: 40px; cursor: pointer; display: grid; place-items: center; gap: 0; padding: 6px; transition: transform .15s var(--ease); }
.rps button span { font-size: 12px; font-weight: 650; color: var(--ink-2); }
.rps button:active { transform: scale(.94); }
.rps button.on { border: 2px solid var(--blue); background: var(--blue-soft); }
.rps[aria-disabled="true"] button:not(.on) { opacity: .4; }
.score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; }
.score b { font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.rounds { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ttt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(100%, 320px); margin: 0 auto; }
.ttt button { aspect-ratio: 1; border-radius: 18px; border: 1px solid var(--hair); background: var(--surface); font-size: 44px; font-weight: 800; cursor: pointer; display: grid; place-items: center; }
.ttt button.me { color: var(--blue); } .ttt button.them { color: var(--red); }
.ttt button.win { background: var(--yellow-soft); border-color: var(--yellow); }
.result { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 18px 0; }
.result .big { font-size: 46px; font-weight: 800; letter-spacing: -.04em; }

/* ── toasts ── */
#toasts { position: fixed; top: calc(70px + env(safe-area-inset-top)); left: 0; right: 0; z-index: 80; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; max-width: 480px; width: 100%; background: var(--ink); color: var(--paper); border-radius: 18px; padding: 12px 16px; font-weight: 600; font-size: 14px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); animation: drop .4s var(--ease); }
.toast svg { width: 22px; height: 22px; flex: none; }
.toast.out { opacity: 0; transform: translateY(-10px); transition: .3s; }
@keyframes drop { from { transform: translateY(-16px); opacity: 0; } }

/* ── confetti burst ── */
.burst { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.burst i { position: absolute; top: 40%; left: 50%; width: 12px; height: 12px; border-radius: 3px; animation: fly 1.2s var(--ease) forwards; }
@keyframes fly { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--hair); border-radius: var(--pill); padding: 4px; gap: 4px; background: var(--surface); }
.seg button { border: 0; background: none; border-radius: var(--pill); padding: 9px 4px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: var(--paper); }
.switch { width: 52px; height: 32px; border-radius: 32px; background: var(--hair); border: 0; position: relative; cursor: pointer; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 1px 3px #0003; }
.switch.on { background: var(--accent); } .switch.on::after { transform: translateX(20px); }
.howto { display: grid; gap: 12px; }
.howto > div { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.howto svg { width: 40px; height: 40px; }
details summary { cursor: pointer; font-weight: 650; list-style: none; }
details summary::-webkit-details-marker { display: none; }
.empty { text-align: center; padding: 18px; color: var(--ink-2); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── handshake code ── */
.hs-card { text-align: center; display: grid; gap: 12px; justify-items: center; }
.hs-code { display: flex; gap: 10px; justify-content: center; }
.hs-code span { flex: 0 1 58px; min-width: 0; width: 58px; height: 74px; display: grid; place-items: center; font-size: 42px; font-weight: 800; font-variant-numeric: tabular-nums; border-radius: 16px; border: 2px solid var(--blue); background: var(--surface-2); color: var(--ink); }
.hs-code span:nth-child(2) { border-color: var(--red); } .hs-code span:nth-child(3) { border-color: var(--yellow); } .hs-code span:nth-child(4) { border-color: var(--green); }
.hs-bar { width: 100%; } .hs-bar i { background: var(--blue); transition: width .5s linear; }
.code-in.big { font-size: 34px; font-weight: 800; letter-spacing: .45em; padding-left: .45em; text-align: center; height: 68px; font-variant-numeric: tabular-nums; }

/* ── profile button in the top bar ── */
button.brand { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }

/* ── camera layer and AR blueprints ── */
#app { position: relative; z-index: 1; min-height: 100%; }
#ar {
  position: fixed; inset: 0; z-index: 0; display: none; overflow: hidden; background-color: var(--water);
  background-image: linear-gradient(90deg, #4285f426 1px, transparent 1px), linear-gradient(#4285f426 1px, transparent 1px);
  background-size: 30px 30px;
}
body.hunting { overflow: hidden; }
body.hunting #ar { display: block; }
#cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
body.cam-on #cam { display: block; }
#arSprites { position: absolute; inset: 0; }
body.hunting #app { pointer-events: none; }
body.hunting .top, body.hunting .nav, body.hunting .hud-top > *, body.hunting .hud-bot > *, body.hunting .scrim, body.hunting .full { pointer-events: auto; }

.spr {
  position: absolute; border: 0; background: none; padding: 0; cursor: pointer; --s: 1; --tilt: 0deg; --delay: 0s;
  transform: translate(-50%, -50%) scale(var(--s)); transition: left .5s var(--ease), top .5s var(--ease), transform .5s var(--ease), opacity .3s;
}
.spr-in { display: grid; justify-items: center; gap: 8px; animation: pop .55s var(--ease) both; }
.spr-card {
  width: 92px; height: 112px; border-radius: 12px; position: relative; display: grid; place-items: center;
  background-color: var(--blue);
  background-image: linear-gradient(90deg, #ffffff3d 1px, transparent 1px), linear-gradient(#ffffff3d 1px, transparent 1px);
  background-size: 12px 12px; border: 2px solid #fff; box-shadow: 0 14px 30px #0b0f1a73, 0 0 0 6px #4285f440;
  animation: bob 3s ease-in-out infinite; animation-delay: var(--delay);
}
.spr-card::after { content: ""; position: absolute; inset: 6px; border: 1.5px dashed #ffffffb3; border-radius: 7px; pointer-events: none; }
.spr-card i { position: absolute; top: 11px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 8px; font-weight: 700; letter-spacing: .22em; color: #fff; }
.spr-card b { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; margin-top: 12px; }
.spr-card b svg { width: 34px; height: 34px; }
.spr-tag { background: #202124; color: #fff; font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: var(--pill); white-space: nowrap; border: 1px solid #ffffff40; }
.spr.off { visibility: hidden; pointer-events: none; }
.ar-turn { position: absolute; top: 42%; left: 50%; transform: translateX(-50%); max-width: 78%; text-align: center; background: #202124e6; color: #fff; font-size: 14px; font-weight: 650; padding: 10px 16px; border-radius: 18px; border: 1px solid #ffffff40; pointer-events: none; }
.ar-turn[data-side=left]::before { content: "‹ "; } .ar-turn[data-side=right]::after { content: " ›"; }
.spr:active .spr-card { filter: brightness(1.15); }
@keyframes pop { 0% { transform: scale(.2) translateY(40px); opacity: 0; } 70% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--tilt)); } 50% { transform: translateY(-10px) rotate(calc(var(--tilt) * -1)); } }

/* ── hunt screen overlays ── */
.glass { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
main.hunt { padding: 12px 16px 0; display: block; }
.hud-top { display: grid; gap: 8px; justify-items: start; }
.hud-top > .card, .hud-top > .enc-banner { width: 100%; }
.hud-top .card { padding: 12px 14px; }
.hud-bot {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 25;
  width: min(488px, calc(100vw - 24px)); display: grid; gap: 8px;
}
.hud-bot .task-card { background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 10px 12px; }
.radar { display: flex; gap: 12px; align-items: center; padding: 10px; }
.mini { flex: none; width: 108px; border-radius: 14px; border: 1px solid var(--hair); background: var(--surface); padding: 0; overflow: hidden; cursor: pointer; display: block; }
.mini svg { display: block; width: 100%; height: auto; }
.radar-txt { display: grid; gap: 3px; justify-items: start; min-width: 0; flex: 1; font-size: 15px; line-height: 1.25; }
.radar-txt .btn { margin-top: 4px; }

/* ── venue plan ── */
.zone { fill: var(--surface-2); stroke: var(--ink); stroke-width: 1.5; transition: fill .3s; }
.zone.here { fill: var(--yellow-soft); stroke: var(--ink); stroke-width: 2.5; }
.mini .zone { stroke-width: 3; } .mini .zone.here { stroke-width: 5; }
.mini-drop { stroke: var(--surface); stroke-width: 3; }
.me-dot { fill: var(--ink); stroke: var(--paper); stroke-width: 3; }
.mini .me-dot { stroke-width: 6; }
.me-acc { fill: #4285f424; stroke: none; }
.me-catch { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 5 4; }
.mini .me-catch { stroke-width: 3.5; stroke-dasharray: 10 8; }
.me-cone path { fill: var(--blue); opacity: .35; }
.map svg[data-map] { touch-action: manipulation; cursor: crosshair; }

/* ── people quest ── */
.quest { border: 2px solid var(--ink); }
.qtext { font-size: clamp(26px, 8vw, 34px); }
label.btn { user-select: none; -webkit-user-select: none; }

.walkbar{display:block;height:6px;border-radius:99px;background:color-mix(in srgb,currentColor 18%,transparent);overflow:hidden;margin-top:8px;width:100%}
.walkbar i{display:block;height:100%;border-radius:99px;background:var(--accent);transition:width .4s}

.proofpic{display:flex;align-items:center;gap:10px;margin:0 0 10px;padding:8px;border:1px solid var(--line);border-radius:14px}
.proofpic img{width:56px;height:56px;object-fit:cover;border-radius:10px;flex:none}
.proofpic span{flex:1;min-width:0}
.hs-code.locked span{opacity:.45;border-style:dashed;height:56px;font-size:28px}

/* ── DevFest brand ── */
.pts, .chip, .hs-code span, .timer { font-family: var(--mono); }
.df-hero { display: grid; justify-items: center; gap: 14px; padding: 8px 0 4px; text-align: center; }
.df-mark { font-size: clamp(48px, 17vw, 76px); font-weight: 500; letter-spacing: -.03em; line-height: 1; display: flex; align-items: center; gap: .06em; }
.df-mark .br { color: var(--accent); -webkit-text-stroke: 2px var(--ink); font-weight: 700; transform: translateY(-.04em); }
.df-pill { display: inline-flex; align-items: stretch; border: 1.5px solid var(--ink); border-radius: var(--pill); overflow: hidden; background: var(--surface); font-size: 17px; }
.df-pill > span { padding: 6px 16px; }
.df-pill b { padding: 6px 16px; background: var(--accent); color: var(--on-accent); font-weight: 500; border-left: 1.5px solid var(--ink); font-family: var(--mono); }
.df-pill [lang=ml] { font-family: "Noto Sans Malayalam", var(--font); }
.df-when { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.df-when b { color: var(--ink); font-weight: 600; }
.df-load { display: grid; place-items: center; gap: 14px; min-height: 70vh; }
.df-load .df-mark { animation: dfpulse 1.6s ease-in-out infinite; }
@keyframes dfpulse { 50% { opacity: .45; } }
.brand small { font-family: var(--mono); letter-spacing: .08em; }
