.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* ---------- top bar ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.mark { width: 36px; height: 36px; border-radius: 10px; background: var(--pine); position: relative; flex: none; }
.mark::after { content: ""; position: absolute; inset: 0; background: no-repeat center / 76% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 56C32 56 50 38 50 25a18 18 0 0 0-36 0c0 13 18 31 18 31z' fill='%23F2B01E'/%3E%3Ccircle cx='32' cy='25' r='7' fill='%23ffffff'/%3E%3C/svg%3E"); }
.brand-text { display: grid; line-height: 1.1; min-width: 0; }
.brand-text b { font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.brand-text small { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.wallet-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); flex: none; }
.wallet-btn .count { background: var(--gold); color: var(--on-gold); border-radius: 999px; font-size: 12px; min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 6px; }
@media (max-width: 420px) { .wallet-btn span:not(.count) { display: none; } }

main { padding-block: 24px 56px; min-height: 60vh; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-radius: 24px; background: var(--pine); color: var(--on-pine); padding: 32px 24px 28px; display: grid; gap: 14px; }
.hero .eyebrow { color: color-mix(in srgb, var(--on-pine) 72%, transparent); }
.hero h1 { font-size: clamp(32px, 6.4vw, 58px); font-weight: 800; letter-spacing: -0.03em; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lede { font-size: 17px; max-width: 46ch; color: color-mix(in srgb, var(--on-pine) 86%, transparent); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 600; margin-top: 6px; }
.hero-stats span { display: inline-flex; align-items: center; gap: 8px; }
.hero-stats span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.postmark { position: absolute; right: -30px; top: 18px; width: 230px; height: 230px; opacity: .22; pointer-events: none; }
@media (min-width: 760px) { .hero { padding: 48px 44px 40px; } .postmark { right: 30px; top: 30px; width: 280px; height: 280px; opacity: .3; } }

/* ---------- filters ---------- */
.tools { display: grid; gap: 12px; margin: 22px 0 8px; }
.search { position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search .input { padding-left: 46px; border-radius: 999px; min-height: 52px; font-size: 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.section-head h2 { font-size: 24px; font-weight: 800; }
.section-head span { color: var(--ink-3); font-size: 14px; font-weight: 600; }

/* ---------- coupon stub (signature object) ---------- */
.stub {
  --notch: 11px;
  position: relative; display: grid; grid-template-columns: 1fr auto; text-decoration: none; color: var(--ink);
  background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow);
  -webkit-mask: radial-gradient(circle var(--notch) at calc(100% - 96px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - 96px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at calc(100% - 96px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - 96px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  transition: transform .15s ease;
}
.stub:hover { transform: translateY(-2px); }
.stub-main { padding: 18px 18px 18px 20px; display: grid; gap: 6px; min-width: 0; border-left: 6px solid var(--biz, var(--pine)); border-radius: var(--r) 0 0 var(--r); }
.stub-cat { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.stub-offer { font-family: var(--display); font-size: 21px; font-weight: 800; line-height: 1.12; letter-spacing: -0.015em; }
.stub-biz { font-weight: 600; color: var(--ink-2); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stub-side { width: 96px; border-left: 2px dashed var(--line); display: grid; place-items: center; text-align: center; padding: 12px 8px; gap: 2px; }
.stub-side b { font-family: var(--display); font-size: 15px; font-weight: 800; color: var(--pine); line-height: 1.1; }
.stub-side small { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.stub.lead .stub-side b { color: var(--ink); }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid { grid-template-columns: 1fr 1fr; } }
.featured { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .featured { grid-template-columns: repeat(3, 1fr); } }
.feat { position: relative; border-radius: 20px; padding: 20px; min-height: 190px; display: grid; align-content: space-between; gap: 18px; text-decoration: none; color: #fff; background: var(--biz); overflow: hidden; box-shadow: var(--shadow); }
.feat::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 150px; height: 150px; border-radius: 50%; border: 18px solid rgba(255,255,255,.12); }
.feat .stub-cat { color: rgba(255,255,255,.8); }
.feat h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; max-width: 12ch; }
.feat-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 600; position: relative; z-index: 1; }
.feat-foot span:last-child { background: #fff; color: #10241D; padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 700; flex: none; }

.empty { text-align: center; color: var(--ink-2); padding: 40px 16px; border: 2px dashed var(--line); border-radius: var(--r); }

/* ---------- business page ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; color: var(--ink-2); margin-bottom: 14px; }
.biz-hero { border-radius: 24px; padding: 26px 22px; color: #fff; background: var(--biz); position: relative; overflow: hidden; }
.biz-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 26px solid rgba(255,255,255,.1); }
.biz-hero .stub-cat { color: rgba(255,255,255,.82); }
.biz-hero h1 { font-size: clamp(28px, 6vw, 44px); font-weight: 800; letter-spacing: -0.025em; margin: 6px 0 6px; max-width: 18ch; }
.biz-hero p { color: rgba(255,255,255,.88); font-size: 17px; }
.biz-layout { display: grid; gap: 18px; margin-top: -18px; position: relative; z-index: 2; padding: 0 8px; }
@media (min-width: 860px) { .biz-layout { grid-template-columns: 1.15fr .85fr; align-items: start; padding: 0 18px; } }

.offer-card { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.offer-top { padding: 22px; display: grid; gap: 8px; }
.offer-top h2 { font-size: clamp(26px, 5vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.offer-top p { color: var(--ink-2); }
.offer-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.pill.gold { background: color-mix(in srgb, var(--gold) 22%, var(--surface)); color: var(--ink); }
.perf { height: 22px; position: relative; }
.perf::before { content: ""; position: absolute; left: 22px; right: 22px; top: 50%; border-top: 2px dashed var(--line); }
.perf::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle 11px at 0 50%, var(--bg) 98%, transparent), radial-gradient(circle 11px at 100% 50%, var(--bg) 98%, transparent); }
.offer-bottom { padding: 6px 22px 22px; display: grid; gap: 14px; }
.form { display: grid; gap: 12px; }
.fine { font-size: 13px; color: var(--ink-3); }

/* revealed coupon */
.ticket { display: grid; gap: 14px; text-align: center; }
.ticket .code { font-family: var(--mono); font-weight: 700; font-size: clamp(38px, 11vw, 54px); letter-spacing: .14em; padding: 14px 8px; border-radius: 14px; background: var(--surface-2); border: 2px dashed var(--pine); color: var(--ink); }
.ticket .code.used { border-color: var(--line); color: var(--ink-3); text-decoration: line-through; }
.live-dot { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: var(--good); font-size: 14px; }
.live-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--good); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.clock { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.redeemed-badge { display: grid; place-items: center; gap: 8px; padding: 18px; border-radius: 14px; background: var(--good-bg); color: var(--good); font-weight: 800; }
.redeemed-badge svg { width: 46px; height: 46px; }
.staff { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; text-align: left; }
.pin-row { display: flex; gap: 8px; }
.pin-row .input { font-family: var(--mono); letter-spacing: .3em; text-align: center; font-size: 20px; }
.err { color: var(--bad); font-weight: 600; font-size: 14px; }

.about { background: var(--surface); border-radius: 20px; padding: 22px; display: grid; gap: 16px; border: 1px solid var(--line); }
.about h3 { font-size: 18px; }
.about p { color: var(--ink-2); }
.facts { display: grid; gap: 10px; font-size: 15px; }
.facts div { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--ink-2); }
.facts svg { color: var(--ink-3); margin-top: 3px; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 8px; }
.act { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 13px; background: var(--surface); }
.act:hover { background: var(--surface-2); }
.act svg { color: var(--pine); }

.success-pop { animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }

/* wallet + redeem */
.page-title { font-size: clamp(30px, 6vw, 42px); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 6px; }
.page-sub { color: var(--ink-2); margin-bottom: 22px; max-width: 52ch; }
.wallet-item .stub-side b { font-family: var(--mono); font-size: 16px; letter-spacing: .06em; }
.wallet-item.used { opacity: .6; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; max-width: 460px; display: grid; gap: 14px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding-block: 28px 20px; }
.foot-in { display: grid; gap: 16px; }
@media (min-width: 760px) { .foot-in { grid-template-columns: 1.6fr 1fr; align-items: end; } }
.foot-title { font-family: var(--display); font-weight: 800; font-size: 22px; }
.foot-sub { color: var(--ink-2); max-width: 52ch; margin-top: 6px; }
.foot-contact { display: grid; gap: 4px; font-weight: 700; }
@media (min-width: 760px) { .foot-contact { justify-items: end; } }
.foot-legal { margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.foot-legal a { color: var(--ink-3); }

.fade-in { animation: fade .35s ease both; }
@keyframes fade { from { opacity: .001; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ===================== v2 additions ===================== */
.hero { background: var(--hero, var(--pine)); }
.mark { background: var(--hero, var(--pine)); }

/* town picker */
.towns { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .towns { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.town { position: relative; overflow: hidden; border-radius: 20px; padding: 22px; min-height: 170px; display: grid; align-content: space-between; gap: 18px; text-decoration: none; color: #fff; background: var(--tc); box-shadow: var(--shadow); }
.town::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 170px; height: 170px; border-radius: 50%; border: 20px solid rgba(255,255,255,.12); }
.town h3 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.town small { font-weight: 600; color: rgba(255,255,255,.82); }
.town .go { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.town .go span:last-child { background: #fff; color: #10241D; padding: 7px 13px; border-radius: 999px; font-size: 14px; }
.town.soon { filter: saturate(.55); cursor: default; }
.town.soon .go span:last-child { background: rgba(255,255,255,.2); color: #fff; }
.pitch { margin-top: 28px; border: 2px dashed var(--line); border-radius: 20px; padding: 22px; display: grid; gap: 8px; }
.pitch h2 { font-size: 22px; font-weight: 800; }
.pitch p { color: var(--ink-2); max-width: 60ch; }

/* stub extras */
.stub-side .left { font-size: 11px; font-weight: 700; color: var(--warn); }
.stub.sold { opacity: .62; }
.stub.sold .stub-side b { color: var(--ink-3); }
.ends-soon { display: inline-flex; width: fit-content; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--bad-bg); color: var(--bad); padding: 2px 8px; border-radius: 999px; }
.soon-list { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .soon-list { grid-template-columns: 1fr 1fr; } }
.soon-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line); text-decoration: none; }
.soon-item b { display: block; font-family: var(--display); font-weight: 800; }
.soon-item small { color: var(--ink-3); font-weight: 600; }
.soon-item .pill { flex: none; }

/* offers stack on business page */
.offers-stack { display: grid; gap: 18px; min-width: 0; }
.scarcity { display: grid; gap: 6px; margin-top: 6px; }
.scarcity-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.scarcity-bar span { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.scarcity small { font-weight: 700; color: var(--ink-2); font-size: 13px; }
.state-msg { display: grid; gap: 10px; text-align: center; padding: 8px 0 4px; color: var(--ink-2); }
.state-msg b { color: var(--ink); font-family: var(--display); font-size: 20px; }

/* ticket extras */
.ticket-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; text-align: left; }
.qr-mini { width: 104px; height: 104px; background: #fff; border-radius: 12px; padding: 6px; border: 1px solid var(--line); }
.qr-mini svg, .qr-mini img { width: 100%; height: 100%; display: block; }
.expiry { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.expiry.urgent { color: var(--bad); }
.staff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.staff-note { font-size: 13px; font-weight: 600; color: var(--good); }
.expired-badge { display: grid; place-items: center; gap: 6px; padding: 16px; border-radius: 14px; background: var(--surface-2); color: var(--ink-2); font-weight: 800; }

/* wallet groups */
.wallet-group { display: grid; gap: 12px; margin-bottom: 22px; }
.wallet-group h2 { font-size: 18px; font-weight: 800; }

/* redeem page */
.lookup { display: grid; gap: 6px; padding: 16px; border-radius: 14px; background: var(--surface-2); }
.lookup b { font-family: var(--display); font-size: 20px; }
.lookup .row2 { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.neutral { background: var(--surface-2); color: var(--ink-2); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.ticket-row .code { font-size: clamp(30px, 9vw, 46px); letter-spacing: .1em; padding: 12px 6px; }
@media (max-width: 520px) { .ticket-row { grid-template-columns: 1fr; justify-items: center; text-align: center; } .ticket-row > div:first-child { width: 100%; justify-items: center; } }

/* ===================== games ===================== */
.top-actions { display: flex; gap: 8px; flex: none; }
.play-btn { background: var(--gold); color: var(--on-gold); border-color: transparent; }
@media (max-width: 420px) { .play-btn span { display: inline !important; } }

.play-banner { margin-top: 14px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; text-decoration: none; background: var(--ink); color: var(--bg); box-shadow: var(--shadow); }
.play-banner .eyebrow { color: var(--gold); }
.play-banner b { display: block; font-family: var(--display); font-size: 19px; font-weight: 800; line-height: 1.15; }
.play-banner small { display: block; color: color-mix(in srgb, var(--bg) 70%, transparent); font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-text { min-width: 0; }
.pb-dice { width: 46px; height: 46px; border-radius: 12px; background: var(--gold); position: relative; transform: rotate(-8deg); flex: none; }
.pb-dice i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #2A1D00; }
.pb-dice i:nth-child(1) { left: 8px; top: 8px; } .pb-dice i:nth-child(2) { right: 8px; top: 8px; } .pb-dice i:nth-child(3) { left: 19px; top: 19px; } .pb-dice i:nth-child(4) { left: 8px; bottom: 8px; } .pb-dice i:nth-child(5) { right: 8px; bottom: 8px; }
@media (max-width: 460px) { .play-banner .btn { display: none; } .play-banner { grid-template-columns: auto 1fr; } }

.play-hero { background: var(--ink); color: var(--bg); }
.play-hero .eyebrow { color: var(--gold); }
.play-hero p.lede { color: color-mix(in srgb, var(--bg) 82%, transparent); }

.games-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 760px) { .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.game-card { display: grid; text-decoration: none; border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); transition: transform .15s ease; min-width: 0; }
.game-card:hover { transform: translateY(-3px); }
.gc-art { background: var(--gc); display: grid; place-items: center; padding: 22px; position: relative; overflow: hidden; }
.gc-art::after { content: ""; position: absolute; left: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; border: 18px solid rgba(255,255,255,.1); }
.g-art { width: 130px; height: auto; max-width: 100%; position: relative; z-index: 1; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
.gc-body { padding: 18px; display: grid; gap: 6px; }
.gc-body h3 { font-size: 22px; font-weight: 800; }
.gc-body p { color: var(--ink-2); font-size: 15px; }
.gc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }

.game-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 30px 24px 26px; display: grid; gap: 10px; color: #fff; background: var(--hero, var(--pine)); }
.game-hero .eyebrow { color: rgba(255,255,255,.8); position: relative; z-index: 1; }
.game-hero h1 { font-size: clamp(32px, 6.4vw, 56px); font-weight: 800; letter-spacing: -0.03em; position: relative; z-index: 1; max-width: 16ch; }
.game-hero .lede { color: rgba(255,255,255,.88); font-size: 17px; max-width: 46ch; position: relative; z-index: 1; }
.game-hero .hero-stats { position: relative; z-index: 1; }
.gh-town { position: absolute; right: -10px; bottom: -0.18em; font-family: var(--display); font-weight: 800; font-size: clamp(80px, 18vw, 190px); line-height: 1; letter-spacing: -0.05em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.16); white-space: nowrap; pointer-events: none; z-index: 0; }

.game-layout { display: grid; gap: 18px; margin-top: 18px; }
@media (min-width: 900px) { .game-layout { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: start; } }
.stage { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 24px; min-height: 360px; display: grid; }
.stage-in { display: grid; gap: 14px; align-content: start; }
.stage-in h2 { font-size: clamp(24px, 5vw, 32px); font-weight: 800; letter-spacing: -0.02em; }
.big-play { min-height: 56px; font-size: 18px; }
.linkish { background: none; border: 0; padding: 0; color: var(--pine); font-weight: 700; cursor: pointer; text-decoration: underline; }
.muted { color: var(--ink-2); }

.prizes { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: grid; gap: 14px; }
.prizes h3 { font-size: 17px; font-weight: 800; }
.prize-rows { display: grid; gap: 8px; }
.prize-row { display: grid; grid-template-columns: 12px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.prize-row .pdot { width: 12px; height: 12px; border-radius: 4px; background: var(--biz); }
.prize-row b { display: block; font-size: 15px; line-height: 1.2; }
.prize-row small { color: var(--ink-3); font-weight: 600; }
.how { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.sponsor { display: grid; gap: 2px; padding: 14px; border-radius: 14px; text-decoration: none; border-left: 6px solid var(--biz); background: var(--surface-2); }
.sponsor b { font-family: var(--display); font-size: 18px; }
.sponsor small { color: var(--ink-3); font-weight: 600; }

/* scratch */
.scratch-wrap { position: relative; width: 100%; max-width: 440px; aspect-ratio: 16 / 9; margin: 0 auto; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 6px var(--surface-2), var(--shadow); user-select: none; }
.scratch-under { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 4px; text-align: center; padding: 16px; background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 12px, var(--surface-2) 12px, var(--surface-2) 24px); }
.scratch-under b { font-family: var(--display); font-size: clamp(22px, 5vw, 30px); font-weight: 800; line-height: 1.1; }
.scratch-under small { font-weight: 700; color: var(--ink-2); }
#sc { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity .8s ease; }
#sc.gone { opacity: 0; pointer-events: none; }

/* wheel */
.wheel-wrap { position: relative; width: 100%; max-width: 360px; margin: 6px auto 0; }
.wheel { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 22px rgba(0,0,0,.18)); }
.wheel-pointer { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid var(--gold); z-index: 2; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }

/* trivia */
.dots { display: flex; gap: 6px; }
.dots i { width: 28px; height: 6px; border-radius: 99px; background: var(--surface-2); }
.dots i.done { background: var(--pine); } .dots i.now { background: var(--gold); }
.choices { display: grid; gap: 10px; }
.choice { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; text-align: left; padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); font-weight: 700; font-size: 16px; cursor: pointer; transition: border-color .15s, transform .1s; }
.choice:hover { border-color: var(--pine); }
.choice span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); font-family: var(--display); font-weight: 800; }
.choice.picked { border-color: var(--pine); transform: scale(.98); }
.choice.picked span { background: var(--pine); color: var(--on-pine); }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 5px solid var(--surface-2); border-top-color: var(--gold); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* result */
.result { text-align: center; justify-items: center; }
.result .btn { width: 100%; }
.big-icon { color: var(--warn); }
.prize-ticket { width: 100%; max-width: 380px; display: grid; gap: 4px; padding: 18px; border-radius: 18px; background: var(--surface); border: 2px dashed var(--biz); box-shadow: inset 8px 0 0 var(--biz); }
.prize-ticket b { font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1.1; }
.prize-ticket small { font-weight: 700; color: var(--ink-2); }
.prize-ticket .code { font-size: 34px; letter-spacing: .14em; margin-top: 8px; padding: 10px; }
.btn.fb { background: #1877F2; color: #fff; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; }

/* ===================== town arcade ===================== */
.gc-venue { position: absolute; left: 14px; top: 12px; z-index: 2; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.9); }
.passport { border-radius: 18px; padding: 16px; background: var(--surface); border: 2px dashed color-mix(in srgb, var(--gold) 70%, var(--line)); display: grid; gap: 12px; margin-bottom: 14px; }
.prizes .passport { margin: 0; }
.pp-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.pp-head b { display: block; font-size: 15px; line-height: 1.3; margin-top: 2px; }
.pp-count { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--warn); flex: none; }
.stamps { display: flex; gap: 10px; flex-wrap: wrap; }
.stampc { display: grid; justify-items: center; gap: 4px; text-decoration: none; width: 58px; }
.stampc span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 20px; border: 3px dashed var(--line); color: var(--ink-3); transform: rotate(-8deg); }
.stampc.ok span { border: 3px solid var(--biz); background: var(--biz); color: #fff; }
.stampc small { font-size: 11px; font-weight: 700; color: var(--ink-2); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 58px; }

.arcade-stage { padding: 16px; gap: 14px; align-content: start; }
.cab { width: 100%; max-width: 400px; margin: 0 auto; border-radius: 22px; padding: 10px; background: #10241D; box-shadow: 0 0 0 4px var(--gold), var(--shadow); }
.cab canvas { display: block; width: 100%; aspect-ratio: 390 / 690; height: auto; border-radius: 14px; touch-action: none; cursor: pointer; }
.board { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; counter-reset: none; }
.board li { display: grid; grid-template-columns: 26px 1fr auto 16px; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: 15px; }
.board li:nth-child(odd) { background: var(--surface-2); }
.board li.me { outline: 2px solid var(--gold); }
.board .rk { font-family: var(--display); font-weight: 800; color: var(--ink-3); }
.board li:first-child .rk { color: var(--warn); }
.board .sc { font-variant-numeric: tabular-nums; font-weight: 800; }
.board i { color: var(--gold); font-style: normal; font-size: 13px; }
.ok-line { font-weight: 700; color: var(--good); }
.small { font-size: 14px; }

body.tv-mode .topbar, body.tv-mode .foot { display: none; }
body.tv-mode main { padding: 0; max-width: none; }
.tv { min-height: 100vh; background: #0B1411; color: #fff; padding: clamp(16px, 4vw, 48px); display: grid; gap: 28px; align-content: start; background-image: radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--biz) 55%, transparent), transparent 55%); }
.tv-top { display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap; }
.tv-eyebrow { font-size: clamp(12px, 1.4vw, 18px); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #F2B01E; }
.tv h1 { font-size: clamp(44px, 8vw, 120px); font-weight: 800; letter-spacing: -0.035em; }
.tv-top p { font-size: clamp(18px, 2.4vw, 32px); color: rgba(255,255,255,.85); }
.tv-qr { display: grid; justify-items: center; gap: 8px; }
.tv-qr-box { width: clamp(120px, 16vw, 220px); aspect-ratio: 1; background: #fff; border-radius: 16px; padding: 10px; }
.tv-qr-box svg { width: 100%; height: 100%; display: block; }
.tv-qr b { font-size: clamp(14px, 1.6vw, 22px); color: #F2B01E; }
.tv-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .tv-board { grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(5, auto); } }
.tv-board li { display: grid; grid-template-columns: 60px 1fr auto; gap: 16px; align-items: center; padding: 14px 20px; border-radius: 14px; background: rgba(255,255,255,.06); font-size: clamp(18px, 2.2vw, 32px); }
.tv-board li:first-child { background: color-mix(in srgb, #F2B01E 22%, transparent); }
.tv-board .rk { font-family: var(--display); font-weight: 800; color: #F2B01E; }
.tv-board .sc { font-variant-numeric: tabular-nums; font-weight: 800; font-family: var(--display); }
.tv-exit { color: rgba(255,255,255,.4); font-size: 13px; }

/* ===================== arcade cabinet ===================== */
.cab { max-width: 430px; padding: 0; background: linear-gradient(180deg, #1A1A1F, #0B0B0E); border-radius: 26px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--biz) 70%, #000), 0 0 0 7px #0B0B0E, 0 24px 60px rgba(0,0,0,.35); overflow: hidden; }
.cab-marquee { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px 16px; background: linear-gradient(180deg, color-mix(in srgb, var(--biz) 85%, #fff 15%), color-mix(in srgb, var(--biz) 70%, #000)); color: #fff; overflow: hidden; }
.cab-marquee::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 45%, transparent 60%); background-size: 250% 100%; animation: sheen 3.5s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.cab-marquee span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.cab-marquee b { display: block; font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.bulbs { position: absolute; left: 0; right: 0; bottom: 4px; height: 6px; background-image: radial-gradient(circle, #FFD66B 0 2px, transparent 2.5px); background-size: 16px 6px; animation: bulbs 0.8s steps(2) infinite; }
@keyframes bulbs { 50% { opacity: .35; } }
.cab-screen { padding: 10px; background: #050506; }
.cab-screen canvas { display: block; width: 100%; aspect-ratio: 390 / 690; height: auto; border-radius: 12px; touch-action: none; cursor: pointer; box-shadow: inset 0 0 30px rgba(0,0,0,.6); }
.cab-panel { display: flex; align-items: center; gap: 12px; padding: 12px 16px 14px; background: linear-gradient(180deg, #232329, #141418); border-top: 1px solid rgba(255,255,255,.06); }
.stick { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FF6B6B, #A31D1D); box-shadow: 0 4px 0 #5A0E0E; }
.pbtn { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 3px 0 rgba(0,0,0,.5); }
.pbtn.r { background: radial-gradient(circle at 35% 30%, #7FD1F3, #1F6E8C); }
.pbtn.y { background: radial-gradient(circle at 35% 30%, #FFE08A, #C99A2E); }
.cab-full { margin-left: auto; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px; cursor: pointer; }

body.no-scroll { overflow: hidden; }
.logo-badge { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: #fff; overflow: hidden; box-shadow: 0 0 0 2px rgba(255,255,255,.85), 0 3px 10px rgba(0,0,0,.25); }
.logo-badge img { width: 86%; height: 86%; object-fit: contain; }
.logo-badge.mono { background: color-mix(in srgb, var(--biz) 70%, #000); color: #fff; font-family: var(--display); font-weight: 800; box-shadow: 0 0 0 2px #F2B01E, 0 3px 10px rgba(0,0,0,.25); }
.stub-biz { display: flex; align-items: center; gap: 7px; min-width: 0; }
.stub-biz > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stub-biz .logo-badge { box-shadow: 0 0 0 1px var(--line); }
.stub-biz .logo-badge.mono { box-shadow: none; font-size: 9px !important; }
.biz-hero-logo { position: relative; z-index: 1; margin-bottom: 10px; }
.feat-biz { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.gc-venue { display: flex; align-items: center; gap: 8px; }
.tv-logo { flex: none; }

/* town switcher */
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand a { text-decoration: none; }
a.mark { display: block; }
.brand-text a#brandLink b { display: block; }
.town-switch { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--pine); padding: 2px 8px 2px 6px; border-radius: 999px; background: color-mix(in srgb, var(--pine) 10%, transparent); width: fit-content; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.town-switch:hover { background: color-mix(in srgb, var(--pine) 18%, transparent); }
@media (max-width: 420px) { .brand-text b { font-size: 17px; } .town-switch { font-size: 11px; } }
.rival-strip { max-width: 430px; margin: 0 auto 12px; display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px; background: #1877F2; color: #fff; text-align: center; }
.rival-strip b { font-family: var(--display); font-size: 18px; }
.rival-strip span { font-weight: 600; font-size: 14px; opacity: .9; }
.challenge-box { width: 100%; display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, #1877F2 9%, var(--surface)); border: 1px solid color-mix(in srgb, #1877F2 30%, var(--line)); text-align: left; }
.challenge-box b { font-family: var(--display); font-size: 18px; }
body.pitch-mode .topbar, body.pitch-mode .foot { display: none; }
body.pitch-mode main#app { max-width: none; padding: 0; }
body.pitch-mode { background: #FBF8F1; }
.pulse { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.pulse b { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pulse-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--good); }
.pulse-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: pulse 1.6s infinite; }
.me-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface-2); }
.me-row b { display: block; }
.me-row small { color: var(--ink-3); font-weight: 600; }
.me-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--pine); color: var(--on-pine); font-family: var(--display); font-weight: 800; }
.big-claim { min-height: 56px; font-size: 18px; }
.find-panel { margin-top: 26px; max-width: 560px; }
.find-panel > div { display: grid; gap: 4px; }
.find-panel > div span { color: var(--ink-2, #555); font-size: 15px; }
.find-form { display: flex; gap: 8px; flex-wrap: wrap; }
.find-form .input { flex: 1 1 200px; min-width: 0; }
.setup-note { margin-top: 22px; display: grid; gap: 8px; justify-items: start; background: var(--surface, #fff); border: 1px dashed var(--line, #ccc); border-radius: 16px; padding: 18px; max-width: 560px; }
.setup-note span { color: var(--ink-2, #555); }
.town-switch[hidden] { display: none; }

/* ---------- sharing ---------- */
button.act { font: inherit; font-weight: 700; font-size: 13px; color: inherit; cursor: pointer; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.hero-share { margin-top: 18px; position: relative; z-index: 1; }
.ticket-share { margin-top: 12px; }
.ticket-share .share-btn { width: 100%; }
.share-sheet { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.share-scrim { position: absolute; inset: 0; background: rgba(8, 18, 14, .45); animation: shFade .15s ease; }
.share-panel { position: relative; width: min(520px, 100%); background: var(--surface); color: var(--ink); border-radius: 22px 22px 0 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -12px 40px rgba(0,0,0,.25); animation: shUp .2s ease; }
@media (min-width: 640px) { .share-sheet { align-items: center; } .share-panel { border-radius: 22px; } }
.share-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.share-head b { font-family: var(--display, inherit); font-size: 18px; }
.share-x { border: 0; background: var(--surface-2); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.share-preview { margin: 10px 0 14px; padding: 12px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.share-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.share-opt { display: grid; justify-items: center; gap: 6px; padding: 14px 4px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; min-height: 44px; }
.share-opt:hover { background: var(--surface-2); }
.share-opt.fb svg { color: #1877F2; } .share-opt.sms svg { color: #16A34A; } .share-opt.mail svg { color: var(--pine); } .share-opt.copy svg { color: var(--ink-2); }
@keyframes shUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes shFade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- ask for a business / town ---------- */
.ask { margin: 34px 0 10px; border-radius: 24px; background: var(--surface); border: 2px dashed var(--line); padding: 26px; }
.ask-hot { border: 3px solid var(--gold); box-shadow: 0 14px 40px rgba(242, 176, 30, .25); }
.ask-in { display: grid; gap: 10px; max-width: 640px; }
.ask h2 { margin: 0; font-family: var(--display, inherit); font-size: clamp(24px, 4vw, 32px); line-height: 1.1; }
.ask h2 em { font-style: normal; color: var(--pine); }
.ask p { margin: 0; color: var(--ink-2); }
.ask-form { display: grid; gap: 10px; margin-top: 6px; }
.ask-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ask-row .input { flex: 1 1 200px; min-width: 0; }
.ask-row .ask-st { flex: 0 1 90px; }
.ask-form .btn { justify-self: start; }
.ask-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.invite { margin-top: 26px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.invite > div { display: grid; gap: 4px; }
.invite span { color: var(--ink-2); }

/* ===================== phone polish ===================== */
.brand-text b { overflow: hidden; text-overflow: ellipsis; }
.town-switch { padding: 4px 0; }
.back { min-height: 44px; margin-bottom: 6px; }
.foot-legal a { display: inline-block; padding: 8px 2px; }
.cab-full { min-height: 40px; }
@media (max-width: 420px) {
  .topbar-in { gap: 8px; }
  .brand { gap: 8px; }
  .brand-text b { font-size: 16.5px; }
  .wallet-btn { padding: 9px 11px; min-height: 42px; }
  .play-btn { padding: 9px 12px; }
}
@media (max-width: 600px) {
  /* the game gets the whole width on a phone */
  .stage.arcade-stage { padding: 0; background: transparent; box-shadow: none; margin: 0 -8px; }
  .cab { border-radius: 18px; }
  .cab-marquee { padding: 10px 14px 12px; }
  .cab-marquee b { font-size: 20px; }
  .cab-screen { padding: 4px; }
  .cab-screen canvas { width: min(100%, calc((100svh - 16px) * 0.5652)); margin: 0 auto; border-radius: 10px; }
  .cab-panel { padding: 10px 14px 12px; }
  .stage { padding: 18px; border-radius: 18px; }
  .linkish { display: inline-flex; align-items: center; min-height: 40px; }
  p .linkish, li .linkish { min-height: 0; display: inline; }
}
@media (max-width: 420px) { .brand-text a, .town-switch { display: inline-flex; align-items: center; min-height: 26px; } }
@media (max-width: 420px) { .pin-row { flex-direction: column; } .pin-row .input { width: 100%; } }

/* ===================== full screen game ===================== */
.cab.immersive { position: fixed; inset: 0; z-index: 400; width: 100%; max-width: none; height: 100vh; height: 100dvh; margin: 0; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; background: #050506; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.cab.immersive .cab-marquee { display: none; }
.cab.immersive .cab-screen { flex: 1 1 auto; min-height: 0; padding: 0; display: block; }
.cab.immersive .cab-screen canvas { width: 100%; height: 100%; max-width: none; margin: 0; aspect-ratio: auto; object-fit: contain; border-radius: 0; box-shadow: none; }
.cab.immersive .cab-panel { flex: none; padding: 6px 12px; }
.cab.immersive .stick, .cab.immersive .pbtn { display: none; }
.cab.immersive .cab-full { margin: 0 auto; min-width: 140px; }
.cab:fullscreen { width: 100%; height: 100%; }
#arcOut { scroll-margin-top: 84px; }
