
/* Layout: one phone-sized app, centred on a dark stage on desktop, full-bleed on phones. Single dark look by choice. */
:root {
  color-scheme: dark;
  --stage: #0B0908;
  --bg: #14110F;
  --surface: #1E1A17;
  --surface-2: #2A2521;
  --bar: #181412;
  --line: #342E29;
  --fg: #F4F1EC;
  --soft: #CFC8BD;
  --muted: #B9B2A8;
  --ink: #14110F;
  --accent: #F2A900;        /* IETEM gold (the "t") */
  --lilac: #F7C6D9;         /* IETEM blush */
  --lilac-deep: #3B1F4A;    /* IETEM plum */
  --yellow: #E4572E;        /* IETEM chilli */
  --green: #1F4D3A;         /* IETEM forest */
  --cobalt: #2340D9;
  --win: #7FD6A4;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* Full-screen app. No pinch or double-tap zoom. */
html, body { height: 100%; margin: 0; -webkit-text-size-adjust: 100%; touch-action: pan-x pan-y; }
body { background: var(--stage); color: var(--fg); font-family: var(--body); overflow: hidden; }
/* No pull-to-refresh or bounce on phones (computers keep normal mouse-wheel scrolling) */
@media (pointer: coarse) { html, body { overscroll-behavior-y: none; } }
button, a, label, input { touch-action: manipulation; }
* { box-sizing: border-box; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; }


#phone { position: relative; height: 100%; max-width: 560px; margin: 0 auto; background: var(--bg); display: flex; flex-direction: column; overflow: hidden; padding-top: env(safe-area-inset-top, 0px); }
@media (min-width: 600px) { #phone { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
#app { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.scroll::-webkit-scrollbar { display: none; }
.pad { padding: 24px max(20px, env(safe-area-inset-right, 0px)) 28px max(20px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 22px; }
.pad.tight { padding-top: 6px; }
/* Header that shrinks once you scroll */
.page-head { position: sticky; top: 0; z-index: 4; background: var(--bg); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px max(20px, env(safe-area-inset-right, 0px)) 12px max(20px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid transparent; transition: padding .2s, border-color .2s; }
.page-head h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.05; letter-spacing: -1px; transition: font-size .2s; }
.screen.shrunk .page-head { padding-block: 8px; border-bottom-color: var(--line); }
.screen.shrunk .page-head h1 { font-size: 20px; letter-spacing: -.3px; }
/* Tabs */
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface); border-radius: 14px; }
.seg button { flex: 1; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; }
.seg button.on { background: var(--fg); color: var(--ink); }
.seg.dark { background: rgba(15,14,13,.12); }
.seg.dark button { color: var(--ink); opacity: .75; }
.seg.dark button.on { background: var(--ink); color: var(--fg); opacity: 1; }
.seg-wrap { position: sticky; top: 0; z-index: 3; background: var(--bg); padding: 12px max(20px, env(safe-area-inset-right, 0px)) 8px max(20px, env(safe-area-inset-left, 0px)); }
.tip { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--lilac-deep); font-size: 13px; line-height: 1.4; }
/* Flat lists: hairlines instead of boxes */
.stack.flat { gap: 0; }
.stack.flat > * { border-bottom: 1px solid var(--line); }
.stack.flat > *:last-child { border-bottom: 0; }
.song-chip { flex: none; width: 128px; border: 0; background: var(--surface); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.song-chip b { font-size: 13px; line-height: 1.2; }
.art { border-radius: 8px; display: grid; place-items: center; flex: none; }
.person-card { width: 104px; align-items: center; text-align: center; }
.thumb.sm { width: 44px; height: 44px; border-radius: 12px; }
.grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); align-self: center; margin-top: -6px; }
@keyframes sheetUp { from { transform: translateY(60px); opacity: .6; } to { transform: none; opacity: 1; } }
.stack { display: flex; flex-direction: column; gap: 10px; }
.fwd { animation: inR .28s cubic-bezier(.2,.8,.2,1); }
.back { animation: inL .28s cubic-bezier(.2,.8,.2,1); }
@keyframes inR { from { transform: translateX(28px); } to { transform: none; } }
@keyframes inL { from { transform: translateX(-28px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .fwd, .back, .sheet > div { animation: none; } .page-head, .page-head h1 { transition: none; } }

.wordmark { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.5px; }
.h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.04; letter-spacing: -1px; }
.h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 18px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 12px; line-height: 1.5; }
.body { font-size: 14px; line-height: 1.55; color: var(--soft); margin: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.num { font-variant-numeric: tabular-nums; }

.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; flex: none; position: relative; }
.icon-btn.dark { background: var(--ink); border-color: transparent; color: var(--fg); }
.icon-btn svg { width: 20px; height: 20px; }
.dot { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 4px; background: var(--accent); }
.chip { min-height: 36px; padding: 6px 16px; border-radius: 18px; border: 1px solid var(--line); background: transparent; font-size: 13px; font-weight: 500; flex: none; text-align: left; }
.chip.on { background: var(--fg); color: var(--ink); border-color: var(--fg); font-weight: 600; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { min-height: 28px; padding: 5px 11px; border-radius: 14px; background: var(--surface); font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.tag.out { background: transparent; border: 1px solid var(--line); }
.tier { font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 3px 7px; border-radius: 8px; display: inline-block; }
.tier.reg { background: var(--yellow); color: var(--ink); }
.tier.new { background: var(--surface-2); color: var(--soft); }
.tier.found { background: var(--lilac); color: var(--ink); }
.btn { height: 54px; border-radius: 27px; border: 0; font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.btn.primary { background: var(--accent); color: var(--ink); }
.btn.light { background: var(--fg); color: var(--ink); }
.btn.lilac { background: var(--lilac); color: var(--ink); }
.btn.ghost { background: var(--surface); border: 1px solid var(--line); color: var(--fg); height: 50px; font-size: 14px; }
.btn.sm { height: 40px; font-size: 13px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; }
.link { background: none; border: 0; color: var(--accent); font-weight: 600; font-size: 13px; padding: 10px 0; }
.bar { background: var(--bar); border-top: 1px solid var(--line); padding: 14px max(20px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }

.feature { position: relative; height: 230px; border-radius: 24px; overflow: hidden; border: 0; width: 100%; text-align: left; padding: 0; }
.feature .glyph-bg { position: absolute; right: -30px; top: -20px; opacity: .14; }
.feature .badge { position: absolute; top: 16px; left: 16px; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--ink); color: var(--fg); font-size: 11px; font-weight: 600; letter-spacing: .6px; display: flex; align-items: center; }
.feature .inner { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; }
.feature .title { font-family: var(--display); font-weight: 800; font-size: 38px; line-height: .95; letter-spacing: -1.2px; }
.list-card { display: flex; gap: 12px; align-items: center; padding: 12px 0; background: transparent; border: 0; width: 100%; text-align: left; }
.thumb { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; flex: none; font-family: var(--display); font-weight: 800; font-size: 22px; }
.list-card .t { font-size: 15px; font-weight: 600; display: block; }
.price { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.avatars { display: flex; }
.av { width: 30px; height: 30px; border-radius: 15px; display: grid; place-items: center; font-size: 10px; font-weight: 600; border: 2px solid var(--bg); flex: none; }
.av.lg { width: 44px; height: 44px; border-radius: 22px; font-size: 14px; }
.avatars .av + .av { margin-left: -9px; }
.panel { padding: 14px; border-radius: 18px; background: var(--surface); }
.outline { padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); }
.empty { text-align: center; padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.banner { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; border: 0; width: 100%; text-align: left; background: var(--lilac); color: var(--ink); }
.live-dot { width: 10px; height: 10px; border-radius: 5px; background: var(--ink); flex: none; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.hscroll::-webkit-scrollbar { display: none; }
.mini-card { flex: none; width: 130px; padding: 14px; border-radius: 18px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; border: 0; text-align: left; }
.unlock { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; }
.unlock.on { background: var(--green); color: var(--fg); }
.unlock.off { border: 1px dashed var(--line); color: var(--soft); }

.tabs { display: flex; justify-content: space-around; background: var(--bar); border-top: 1px solid var(--line); padding: 8px max(4px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-left, 0px)); }
.tab { width: 68px; height: 50px; border: 0; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; font-weight: 500; position: relative; }
.tab.on { color: var(--fg); font-weight: 600; }
.tab svg { width: 22px; height: 22px; }
.tab .count { position: absolute; top: -2px; right: 14px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--accent); color: var(--ink); font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .lbl { font-size: 13px; font-weight: 500; color: var(--soft); }
.input { height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 0 16px; font-size: 16px; outline: none; width: 100%; }
.input:focus { border-color: var(--lilac); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--soft); }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin: 0; }
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); cursor: pointer; }
.toggle-row input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.choice { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--surface); border: 2px solid transparent; width: 100%; text-align: left; }
.choice.on { border-color: var(--accent); }
.choice .ci { width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; flex: none; }

.hero { position: relative; height: 230px; overflow: hidden; flex: none; }
.hero .glyph-bg { position: absolute; right: -60px; top: 10px; opacity: .12; }
.hero .top { position: absolute; top: 20px; left: 16px; right: 16px; display: flex; justify-content: space-between; }
.hero .copy { position: absolute; left: 20px; right: 20px; bottom: 22px; }
.hero h1 { margin: 6px 0 0; font-family: var(--display); font-weight: 800; font-size: 38px; line-height: .92; letter-spacing: -1.6px; }
.info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.info div { padding: 12px; border-radius: 16px; background: var(--surface); }
.info b { display: block; font-size: 14px; line-height: 1.4; font-weight: 600; }

.ticket-type { padding: 16px; border-radius: 18px; background: var(--surface); border: 2px solid transparent; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticket-type.sel { border-color: var(--accent); }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: transparent; font-size: 20px; }
.stepper button.plus { background: var(--fg); color: var(--ink); border: 0; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper span { width: 16px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.sum { display: flex; flex-direction: column; gap: 10px; font-variant-numeric: tabular-nums; }
.sum .line { display: flex; justify-content: space-between; font-size: 14px; color: var(--soft); }
.sum .total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 600; padding-top: 10px; border-top: 1px solid var(--line); }
.processing { position: absolute; inset: 0; background: rgba(15,14,13,.9); display: grid; place-items: center; z-index: 5; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

.ticket { border-radius: 26px; background: var(--fg); color: var(--ink); overflow: hidden; }
.ticket .head { padding: 18px 20px 20px; }
.ticket .t { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: .95; letter-spacing: -1px; margin-top: 8px; }
.ticket .meta { padding: 16px 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ticket .meta span { display: block; font-size: 11px; font-weight: 500; color: #5E584F; }
.ticket .meta b { font-size: 14px; font-weight: 600; }
.ticket .perf { border-top: 2px dashed #CFC8BD; margin: 0 20px; }
.ticket .qr { padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
canvas.qr { background: #fff; border-radius: 12px; padding: 10px; width: 188px; height: 188px; }
.code { font-size: 12px; font-weight: 500; color: #5E584F; font-variant-numeric: tabular-nums; letter-spacing: .5px; }

.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); flex: none; }
.chat-head .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; font-family: var(--display); font-weight: 800; }
.msgs { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.pin { padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; gap: 10px; font-size: 13px; line-height: 1.45; }
.msg { display: flex; gap: 8px; align-items: flex-end; }
.msg .who { font-size: 11px; font-weight: 500; color: var(--muted); margin: 0 0 3px 4px; display: flex; gap: 6px; align-items: center; }
.bubble { max-width: 250px; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.msg.me { justify-content: flex-end; }
.msg.me .bubble { background: var(--accent); color: var(--ink); border-radius: 18px 18px 6px 18px; }
.opt { position: relative; height: 42px; border-radius: 12px; background: var(--surface-2); overflow: hidden; border: 0; width: 100%; text-align: left; padding: 0; }
.opt .fill { position: absolute; inset: 0 auto 0 0; background: var(--lilac-deep); transition: width .4s; }
.opt .lbl { position: relative; height: 42px; padding: 0 12px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 500; }
.opt.mine .lbl { font-weight: 700; }
.composer { display: flex; gap: 8px; align-items: center; padding: 10px max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); background: var(--bar); border-top: 1px solid var(--line); }
.composer .input, .inline-form .input { height: 44px; border-radius: 22px; font-size: 16px; }
.inline-form { display: flex; gap: 8px; }
.send { width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--accent); color: var(--ink); display: grid; place-items: center; flex: none; }
.chat-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; background: transparent; border: 0; width: 100%; text-align: left; }
.chat-row .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; font-family: var(--display); font-weight: 800; font-size: 20px; }
.preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* Game night mode: music bingo */
.live-head { background: var(--lilac); color: var(--ink); padding: 14px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px)); flex: none; }
.now-playing { display: flex; align-items: center; gap: 14px; }
.disc { width: 76px; height: 76px; border-radius: 38px; background: repeating-radial-gradient(circle, #1F1C19 0 2px, #2A2622 2px 4px); display: grid; place-items: center; flex: none; animation: spinr 3s linear infinite; }
.disc span { width: 26px; height: 26px; border-radius: 13px; background: var(--accent); }
@keyframes spinr { to { transform: rotate(360deg); } }
.eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--accent); border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; } .eq i:nth-child(4) { animation-delay: .1s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
@media (prefers-reduced-motion: reduce) { .disc, .eq i { animation: none; } .eq i { height: 10px; } }
.history { display: flex; flex-direction: column; gap: 4px; }
.history div { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard { border-radius: 18px; background: var(--fg); padding: 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.cell { min-height: 74px; border-radius: 10px; border: 0; padding: 6px 5px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; text-align: center; color: var(--ink); background: #E6E0D5; position: relative; min-width: 0; }
.cell b { font-size: 11px; line-height: 1.15; font-weight: 700; overflow-wrap: anywhere; }
.cell i { font-style: normal; font-size: 10px; line-height: 1.1; color: #5E584F; overflow-wrap: anywhere; }
.cell.called { box-shadow: inset 0 0 0 2px var(--accent); background: #FFEFC2; }
.cell.dabbed { background: var(--accent); box-shadow: none; }
.cell.dabbed i { color: var(--ink); }
.cell.mine::before { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 3px; background: var(--lilac-deep); }
.bingo-btn { height: 60px; border-radius: 30px; border: 0; background: var(--yellow); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 1px; width: 100%; }
.bingo-btn:disabled { opacity: .4; }
.prizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.prizes div { padding: 10px; border-radius: 14px; background: var(--surface); font-size: 12px; line-height: 1.4; }
.prizes div.now { background: var(--yellow); color: var(--ink); }
.prizes div.won { opacity: .55; text-decoration: line-through; }
.prizes b { display: block; font-size: 13px; }
.timer { font-family: var(--display); font-weight: 800; font-size: 22px; font-variant-numeric: tabular-nums; color: var(--accent); }

/* People bingo */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.psq { min-height: 104px; border-radius: 14px; border: 0; padding: 10px 8px; background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 8px; text-align: left; font-size: 12px; line-height: 1.3; font-weight: 500; min-width: 0; }
.psq.done { background: var(--lilac-deep); }
.psq .who-tag { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; }
.sheet { position: absolute; inset: 0; background: rgba(15,14,13,.7); z-index: 6; display: flex; align-items: flex-end; }
.sheet > div { animation: sheetUp .25s cubic-bezier(.2,.8,.2,1); background: var(--bar); border-top: 1px solid var(--line); border-radius: 24px 24px 0 0; padding: 20px max(20px, env(safe-area-inset-right, 0px)) 26px max(20px, env(safe-area-inset-left, 0px)); width: 100%; display: flex; flex-direction: column; gap: 14px; max-height: 80%; overflow-y: auto; }
.pick { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--surface); border: 0; width: 100%; text-align: left; }

/* Playlist */
.song { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.vote-btn { min-width: 52px; height: 36px; border-radius: 18px; border: 1px solid var(--line); background: transparent; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 4px; font-variant-numeric: tabular-nums; }
.vote-btn.on { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* Passport */
.passport { border-radius: 22px; background: var(--fg); color: var(--ink); padding: 16px; overflow: hidden; }
.stamps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stamp { flex: none; width: 92px; height: 92px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 8px; font-size: 10px; font-weight: 700; line-height: 1.15; letter-spacing: .3px; text-transform: uppercase; max-width: 100%; }
.stamp.got { border: 3px double currentColor; transform: rotate(-8deg); }
.stamp.booked { border: 2px dashed #8B8378; color: #5E584F; }
.stamp.locked { border: 2px dashed #CFC8BD; color: #A39C92; }
.stamp b { display: block; font-family: var(--display); font-size: 15px; letter-spacing: 0; text-transform: none; }

/* Recap */
.champ { border-radius: 22px; background: var(--accent); color: var(--ink); padding: 18px; }
.rep-btn { height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: transparent; font-size: 13px; font-weight: 500; }
.rep-btn.on { background: var(--win); color: var(--ink); border-color: var(--win); font-weight: 600; }

.guide-hero { border-radius: 22px; padding: 18px; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.steps li { display: flex; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--soft); counter-increment: s; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 13px; background: var(--surface-2); color: var(--fg); font-weight: 700; font-size: 12px; display: grid; place-items: center; flex: none; }

/* Welcome */
.welcome { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 28px max(24px, env(safe-area-inset-right, 0px)) 26px max(24px, env(safe-area-inset-left, 0px)); position: relative; overflow-y: auto; }
.shapes { position: relative; flex: 1 1 300px; min-height: 120px; max-height: 300px; overflow: hidden; }
.shape { position: absolute; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--ink); }
.welcome h1 { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: .95; letter-spacing: -1.6px; margin: 0; }

.avatar-lg { width: 96px; height: 96px; border-radius: 48px; background: var(--lilac); color: var(--ink); border: 3px solid var(--accent); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 34px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats div { padding: 14px 8px; border-radius: 16px; background: var(--surface); text-align: center; }
.stats b { display: block; font-family: var(--display); font-size: 22px; font-variant-numeric: tabular-nums; }
.stats span { font-size: 11px; font-weight: 500; color: var(--muted); }
.menu-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; background: transparent; border: 0; width: 100%; text-align: left; font-size: 14px; font-weight: 500; cursor: pointer; }
.menu-row .mi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 800; font-family: var(--display); }
.progress { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--yellow); border-radius: 4px; }

.vote-card { border-radius: 22px; border: 1px solid var(--line); background: var(--bar); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.pitch { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; border: 2px solid transparent; background: var(--surface); width: 100%; text-align: left; }
.pitch.mine { border-color: var(--accent); }
.pitch .pfill { position: absolute; inset: 0 auto 0 0; background: var(--surface-2); transition: width .5s; }
.pitch .thumb { position: relative; }

.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.media-item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); max-width: 100%; }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-item .rm { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 12px; border: 0; background: rgba(15,14,13,.8); color: var(--fg); display: grid; place-items: center; padding: 0; }
.media-item .vbadge { position: absolute; left: 5px; bottom: 5px; color: var(--fg); display: flex; }

.reel-card { position: relative; border: 0; padding: 0; width: 100%; height: 240px; border-radius: 22px; overflow: hidden; text-align: left; color: var(--fg); background: var(--surface); }
.reel-mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.reel-mosaic > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel-over { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 12px; padding: 16px; background: linear-gradient(to top, rgba(15,14,13,.92), rgba(15,14,13,.15) 70%); }
.play-btn { width: 52px; height: 52px; border-radius: 26px; background: var(--accent); color: var(--ink); display: grid; place-items: center; flex: none; }
.reel { position: relative; flex: 1; min-height: 0; background: #000; display: flex; flex-direction: column; overflow: hidden; }
.reel-bars { display: flex; gap: 4px; padding: 14px 14px 0; position: relative; z-index: 3; }
.reel-bars .seg { flex: 1; height: 3px; border-radius: 2px; background: rgba(245,241,234,.3); overflow: hidden; }
.reel-bars .seg i { display: block; height: 100%; background: var(--fg); }
.reel-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; position: relative; z-index: 3; color: var(--fg); }
.reel-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.reel-stage img, .reel-stage video { width: 100%; height: 100%; object-fit: cover; }
.reel-card-frame { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 32px; }
.reel-cap { position: absolute; left: 16px; bottom: 28px; background: rgba(15,14,13,.75); color: var(--fg); padding: 8px 14px; border-radius: 16px; font-size: 13px; }
.reel-end { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 32px; background: var(--bg); z-index: 1; }
.reel-tap { position: absolute; top: 90px; bottom: 0; width: 35%; border: 0; background: transparent; z-index: 2; }
.reel-tap.left { left: 0; } .reel-tap.right { right: 0; }
@media (prefers-reduced-motion: reduce) { .reel-bars .seg i { transition: none !important; } }

/* Host view */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kpis div { padding: 14px; border-radius: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpis span { font-size: 12px; color: var(--muted); }
.kpis b { font-family: var(--display); font-size: 30px; line-height: 1.1; }
.kpis b small { font-size: 15px; color: var(--muted); font-weight: 600; }
.kpis i { font-style: normal; font-size: 12px; color: var(--win); }
.hbar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 40px; align-items: center; gap: 10px; font-size: 13px; }
.hbar .hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--soft); }
.hbar .track { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.hbar .track span { display: block; height: 100%; border-radius: 5px; background: var(--lilac); }
.hbar .hv { text-align: right; font-weight: 600; }
.vbars { height: 150px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; align-items: end; padding-top: 4px; }
.vbars > div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.vb { width: 100%; max-width: 28px; border-radius: 6px 6px 2px 2px; background: var(--lilac); }
.vb-n { font-size: 11px; font-weight: 600; color: var(--soft); }
.vb-l { font-size: 10px; color: var(--muted); }
.host-event { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.approve-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.approve { display: flex; flex-direction: column; gap: 6px; }
.approve .am { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-2); max-width: 100%; }
.approve .am > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.approve.rejected .am { opacity: .35; }
/* First-timer reassurance */
.first-timer { border-radius: 18px; border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.first-timer ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--soft); }
.seg button { padding: 0 6px; }

/* Profile */
.profile-card { border-radius: 22px; background: var(--surface); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.pstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 14px; border-top: 1px solid var(--line); }
.pstats div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pstats div + div { border-left: 1px solid var(--line); }
.pstats b { font-family: var(--display); font-size: 22px; font-variant-numeric: tabular-nums; }
.pstats span { font-size: 11px; color: var(--muted); }
.switch { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--surface-2); position: relative; flex: none; cursor: pointer; transition: background .2s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 11px; background: var(--soft); transition: transform .2s, background .2s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(18px); background: var(--ink); }
@media (prefers-reduced-motion: reduce) { .switch, .switch::after { transition: none; } }

/* Push prompt */
.push-ic { width: 56px; height: 56px; border-radius: 18px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--soft); }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--accent); margin-top: 6px; flex: none; }
/* Save-to-phone walkthrough */
.howto { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ht-bars { display: flex; gap: 4px; width: 100%; }
.ht-bars span { flex: 1; height: 3px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.ht-bars i { display: block; height: 100%; width: 0; background: var(--accent); }
.mini-phone { width: 200px; height: 380px; border-radius: 32px; background: #000; padding: 10px; border: 2px solid var(--line); max-width: 100%; }
.mp-screen { position: relative; width: 100%; height: 100%; border-radius: 24px; overflow: hidden; background: #F2F2F7; color: #111; font-size: 11px; }
.mp-url { margin: 22px 10px 0; height: 26px; border-radius: 9px; background: #E3E3E8; display: grid; place-items: center; font-size: 10px; color: #333; }
.mp-url.a { display: flex; justify-content: space-between; align-items: center; padding: 0 10px; border-radius: 13px; }
.mp-page { margin: 10px; border-radius: 12px; background: var(--bg); padding: 12px; display: flex; flex-direction: column; gap: 8px; height: 230px; }
.mp-word { font-family: var(--display); font-weight: 800; color: var(--fg); font-size: 13px; }
.mp-hero { height: 90px; border-radius: 10px; background: var(--accent); }
.mp-line { height: 8px; border-radius: 4px; background: var(--surface-2); }
.mp-line.short { width: 60%; }
.mp-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: #F9F9F9; border-top: 1px solid #DDD; display: flex; justify-content: space-around; align-items: center; color: #0A60FF; font-size: 14px; }
.mp-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #FFF; border-radius: 16px 16px 0 0; padding: 8px 10px 14px; box-shadow: 0 -8px 20px rgba(0,0,0,.2); animation: sheetUp .3s ease-out; }
.mp-menu { position: absolute; right: 8px; top: 50px; width: 140px; background: #FFF; border-radius: 10px; padding: 4px 0; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.mp-row { padding: 9px 10px; border-bottom: 1px solid #EEE; display: flex; justify-content: space-between; font-size: 11px; }
.mp-row:last-child { border-bottom: 0; }
.mp-confirm { background: #FFF; padding: 22px 12px 14px; }
.mp-dialog { position: absolute; left: 14px; right: 14px; top: 110px; background: #FFF; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.mp-add { color: #0A60FF; font-weight: 700; }
.app-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; flex: none; }
.mp-home { position: absolute; inset: 0; background: linear-gradient(160deg, #2B2340, #12101A); padding: 36px 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 52px; gap: 10px; }
.mp-app { border-radius: 11px; width: 38px; height: 38px; justify-self: center; position: relative; }
.mp-app.mine { background: var(--accent); display: grid; place-items: center; }
.mp-app.mine i { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 8px; color: #FFF; white-space: nowrap; }
.mp-screen .tap { position: relative; }
.mp-screen .tap::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(242,169,0,.35); border: 2px solid var(--accent); animation: tapPulse 1.1s ease-out infinite; pointer-events: none; }
.mp-row.tap { background: #FFE9DE; }
@keyframes tapPulse { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.ht-cap { text-align: center; display: flex; flex-direction: column; gap: 2px; min-height: 44px; }
.ht-cap b { font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .mp-screen .tap::after { animation: none; } .mp-sheet { animation: none; } }

/* Home top cards */
.join-card, .install-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; border: 0; width: 100%; text-align: left; }
.join-card { background: var(--lilac); color: var(--ink); }
.join-arrow { width: 40px; height: 40px; border-radius: 20px; background: var(--ink); color: var(--lilac); display: grid; place-items: center; flex: none; }
.install-card { background: var(--surface); color: var(--fg); border: 1px solid var(--line); }
.ic-phone { width: 40px; height: 64px; border-radius: 10px; border: 2px solid var(--soft); display: grid; place-items: center; position: relative; flex: none; }
.ic-dot { position: absolute; top: 4px; width: 10px; height: 3px; border-radius: 2px; background: var(--soft); }

#toast { position: absolute; left: 50%; bottom: 104px; transform: translate(-50%, 12px); background: var(--fg); color: var(--ink); font-size: 13px; font-weight: 600; padding: 12px 18px; border-radius: 22px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; z-index: 20; max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Real-app extras */
.loading { flex: 1; display: grid; place-items: center; }
.code-input { font-size: 28px; letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.err { color: #FF9B8A; font-size: 13px; min-height: 18px; margin: 0; }
.results { display: flex; flex-direction: column; }
.result { display: flex; align-items: center; gap: 12px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: none; width: 100%; text-align: left; }
.result img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.scan-box { position: relative; width: 100%; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #000; max-width: 100%; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; }
.scan-box::after { content: ""; position: absolute; inset: 18%; border: 3px solid var(--accent); border-radius: 18px; }
.big-screen { position: fixed; inset: 0; background: var(--bg); z-index: 50; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4vh; padding: 5vw; text-align: center; }
.big-screen h1 { font-family: var(--display); font-size: 8vw; margin: 0; line-height: 1; }
.big-screen .hbar { grid-template-columns: 30vw minmax(0, 1fr) 8vw; font-size: 3vw; width: 80vw; }
.big-screen .hbar .track { height: 3vw; border-radius: 1.5vw; }
.big-screen .hbar .track span { border-radius: 1.5vw; }
canvas.qr, img.qr { background: #fff; border-radius: 12px; padding: 10px; width: 188px; height: 188px; image-rendering: pixelated; }
.hidden-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.welcome-dict { flex: 1 1 300px; min-height: 160px; max-height: 320px; display: flex; align-items: center; }
.welcome-dict .pron, .welcome-dict .def { font-size: 20px; }
.welcome-dict .dict { gap: 10px; width: 100%; }
.inl-mir { display: inline-block; transform: scaleX(-1); }
/* ---------- IETEM logo ---------- */
/* Wordmark: lowercase, first "e" mirrored to face the "t", "t" always in the accent colour. Never "correct" the mirrored e. */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--fg); }
.logo .lw { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.logo .mir { display: inline-block; transform: scaleX(-1); }
.logo .t, .mark .t { color: var(--accent); }
.logo-tag { font-family: var(--display); font-weight: 500; font-size: max(11px, .2em); letter-spacing: 0; opacity: .85; margin-top: .25em; }
.logo.left { align-items: flex-start; }
.dict { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; color: var(--fg); }
.dict .pron { font-family: var(--serif); font-size: 15px; }
.dict .pron i { font-style: italic; }
.dict hr { width: 100%; border: 0; border-top: 1px solid currentColor; opacity: .35; margin: 4px 0; }
.dict .def { font-family: var(--serif); font-size: 15px; }
.mark { display: inline-grid; place-items: center; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1; flex: none; overflow: hidden; }
.mark .mir { display: inline-block; transform: scaleX(-1); }

/* Live: the song wheel (running order, next song in the middle) */
.wheel { position: relative; height: 280px; overflow-y: auto; scroll-snap-type: y mandatory; padding: 112px 0; border-radius: 18px; background: linear-gradient(transparent 112px, var(--surface-2) 112px, var(--surface-2) 168px, transparent 168px) var(--surface); border: 1px solid var(--line); -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); overscroll-behavior: contain; }
.wheel-row { display: flex; align-items: center; gap: 12px; width: 100%; height: 56px; padding: 0 16px; border: 0; background: none; color: var(--muted); text-align: left; scroll-snap-align: center; transition: transform .15s, color .15s; }
.wheel-row .num { width: 24px; font-size: 13px; flex: none; }
.wheel-row .wr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wheel-row .wr-t b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wheel-row .wr-t i { font-style: normal; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wheel-row.on { color: var(--fg); transform: scale(1.04); }
.wheel-row.on .wr-t b { font-family: var(--display); font-size: 18px; font-weight: 700; }
.wheel-row.done .wr-t b { text-decoration: line-through; text-decoration-color: var(--accent); }
.wheel-row .wr-tick { color: var(--accent); flex: none; width: 18px; height: 18px; }
.prizes div.won { opacity: .45; }
