/* ===== Heat Check: account, paywall, profile, admin. Uses each theme's own variables. ===== */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.acct-sheet { max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; }
.acct-sheet .input { margin-top: 12px; }
.acct-sheet h2 + .muted { margin-top: 4px; }
.acct-sheet a, .sheet-full a, .pw-foot a { color: var(--accent2); }
.form-err { margin: 12px 0 0; color: #ff8a8a; font-size: 14px; font-weight: 600; line-height: 1.4; }
.shake { animation: errShake .4s cubic-bezier(.36,.07,.19,.97); }
@keyframes errShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.ts-box { margin-top: 12px; min-height: 65px; }
.ts-box:empty { min-height: 0; }
.si-step .btn.block { margin-top: 12px; }
.si-row { margin-top: 16px; justify-content: space-between; flex-wrap: wrap; }
.pro-tag { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #140a10; vertical-align: middle; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.saved-names { margin-top: 12px; }
.btn.danger { color: #ff8a8a; border-color: #ff8a8a55; }
.btn.danger-solid { background: #d92d3a !important; background-image: none !important; color: #fff !important; box-shadow: 0 12px 28px -14px #d92d3a !important; }

/* ---------- OTP boxes ---------- */
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 16px; }
.otp-box { width: 100%; aspect-ratio: 4 / 5; min-height: 52px; border-radius: 14px; border: 1px solid var(--line); background: #ffffff0d; color: var(--fg);
  text-align: center; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; -webkit-user-select: text; user-select: text; caret-color: var(--accent);
  box-shadow: inset 0 2px 6px #00000059; }
.otp-box:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 2px 6px #00000059, 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.otp-box:disabled { opacity: .5; }

/* ---------- Paywall ---------- */
.pw-benefits { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.pw-benefits li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.35; }
.pw-benefits li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.pw-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.pw-opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 14px; border-radius: 20px; text-align: left;
  background: #ffffff0a; border: 1px solid var(--line); color: var(--fg); min-height: 132px; transition: transform .15s ease;
  box-shadow: inset 0 1px 0 #ffffff1a, 0 10px 24px -16px #000; }
.pw-opt:active { transform: scale(.97); }
.pw-opt:disabled { opacity: .55; }
.pw-opt.best { border: 1.5px solid var(--accent); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, transparent), #ffffff08 70%);
  box-shadow: inset 0 1px 0 #ffffff2a, 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent), 0 16px 34px -16px var(--accent); }
.pw-name { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.pw-opt.best .pw-name { color: var(--fg); }
.pw-price { font-size: 32px; font-weight: 900; font-style: italic; letter-spacing: -.03em; line-height: 1.05; }
.pw-desc { font-size: 13px; color: var(--muted); line-height: 1.35; }
.pw-opt.loading::after { content: ""; position: absolute; right: 12px; top: 12px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pw-soon { margin: 16px 0 0; padding: 14px; border-radius: 16px; background: #ffffff0a; border: 1px dashed var(--line); color: var(--muted); }
.pw-foot { margin: 16px 0 8px; }

.pw-success { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: #000c; animation: fade .2s both; padding: 24px; }
.pw-success.out { opacity: 0; transition: opacity .25s ease; }
.pw-ok { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; animation: popIn .5s cubic-bezier(.34,1.5,.64,1) both; }
.pw-ok h2 { font-size: 40px; }
.pw-ok p { margin: 0 0 12px; color: var(--muted); font-size: 17px; }
.pw-check { width: 88px; height: 88px; border-radius: 50%; position: relative; background: linear-gradient(135deg, #ffd166, #ff7a3c 50%, #ff2e63); box-shadow: 0 0 40px #ff2e6380; }
.pw-check::after { content: ""; position: absolute; left: 30px; top: 24px; width: 18px; height: 34px; border-right: 6px solid #140a10; border-bottom: 6px solid #140a10; transform: rotate(45deg); border-radius: 2px; }
.pw-burst { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; background: radial-gradient(closest-side, #ff2e6366, transparent); animation: burst 1.2s ease-out both; }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } }
@keyframes burst { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* ---------- Chips: pass countdown, HUD lock ---------- */
.pass-chip { flex: none; min-height: 36px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #140a10; box-shadow: 0 6px 16px -8px var(--accent); }
.hud-top .pass-chip { min-height: 32px; font-size: 12px; padding: 0 10px; }
.hot-lock { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px; padding: 8px 12px; border-radius: 14px; text-align: left; color: var(--fg);
  background: #00000059; border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); }
.hl-badge { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: linear-gradient(135deg, #ff7a3c, #ff2e63); color: #fff; }
.hl-text { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-mini { display: grid; gap: 12px; margin-top: 12px; }
.acct-mini div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.acct-mini b { text-align: right; word-break: break-all; }
.lbl { color: var(--muted); font-size: 13px; }

/* ---------- Full-screen sheets (profile, admin) ---------- */
.modal-wrap.full { place-items: stretch center; background: #000d; }
.sheet-full { width: 100%; max-width: 560px; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); color: var(--fg);
  padding: env(safe-area-inset-top) 0 calc(24px + env(safe-area-inset-bottom)); animation: sheetUp .35s cubic-bezier(.2,.9,.3,1.1) both; }
.sf-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px;
  background: linear-gradient(var(--bg) 75%, transparent); }
.sf-head h1 { font-size: 34px; }
.sf-body { display: flex; flex-direction: column; gap: 12px; padding: 0 16px 24px; }
.pf-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 16px; display: flex; flex-direction: column; gap: 8px;
  background-image: linear-gradient(180deg, #ffffff0d, #ffffff02 60%); box-shadow: inset 0 1px 0 #ffffff14, 0 14px 30px -22px #000; }
.pf-card h2 { font-size: 26px; }
.pf-card h3 { margin: 0 0 4px; font-size: 13px; font-weight: 600; font-style: italic; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: inherit; }
.pf-card .muted { margin: 0; line-height: 1.45; }
.pf-card .btn.block { margin-top: 4px; }
.pf-account { flex-direction: row; align-items: center; gap: 14px; }
.pf-avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 900; color: #140a10;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.pf-email { font-weight: 700; font-size: 17px; word-break: break-all; }
.plan-badge { align-self: flex-start; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #ffffff14; border: 1px solid var(--line); }
.plan-badge.pass { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #140a10; border-color: transparent; }
.plan-badge.life { background: linear-gradient(135deg, #ffd166, #ff7a3c 50%, #ff2e63); color: #140a10; border-color: transparent; }
.pf-count { font-size: 44px; font-weight: 900; font-style: italic; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.taste-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.taste { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 16px; border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); background: #ffffff06; }
.taste .ti { font-size: 22px; }
.taste .tn { font-size: 12px; font-weight: 600; }
.taste .ts { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent2); }
.taste.used { border-style: solid; border-color: var(--line); opacity: .55; }
.taste.used .ts { color: var(--muted); }
.pf-purchases { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pf-purchases li { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pf-purchases li > div { display: flex; flex-direction: column; gap: 2px; }
.pf-purchases .pp-right { align-items: flex-end; text-align: right; }
.pf-purchases .btn { grid-column: 1 / -1; justify-self: start; }
.pp-status { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pp-status.paid { color: #3ee08a; } .pp-status.failed { color: #ff8a8a; }
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pf-stats > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 8px; border-radius: 16px; background: #ffffff08; text-align: center; }
.pf-stats b { font-size: 16px; font-weight: 800; line-height: 1.2; word-break: break-word; }
.pf-stats span { font-size: 11px; color: var(--muted); }
.seg.locked { opacity: .55; }

/* ---------- Admin ---------- */
.ad-stats { grid-template-columns: repeat(3, 1fr); }
.ad-row { flex-wrap: wrap; margin-top: 8px; }
.ad-row .input { flex: 1; min-width: 160px; margin: 0; }
.ad-form { display: grid; gap: 8px; margin: 8px 0 12px; }
.ad-form textarea.input { min-height: 0; padding: 12px 16px; resize: vertical; line-height: 1.4; }
.ad-cards { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.ad-cards li { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.ad-cards li.off span { opacity: .45; text-decoration: line-through; }
select.input { appearance: none; -webkit-appearance: none; }

/* ---------- Receipt (printable) ---------- */
.receipt-wrap { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: #000d; overflow-y: auto; }
.receipt { width: 100%; max-width: 480px; background: #fff; color: #1a1a1a; border-radius: 16px; padding: 24px; font-size: 14px; }
.rc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 2px solid #1a1a1a; padding-bottom: 12px; margin-bottom: 12px; }
.rc-brand { font-size: 22px; font-weight: 900; font-style: italic; letter-spacing: -.02em; }
.rc-sub { font-size: 12px; color: #555; }
.rc-title { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.rc-table { width: 100%; border-collapse: collapse; }
.rc-table th, .rc-table td { text-align: left; padding: 8px 0; border-bottom: 1px solid #e5e5e5; vertical-align: top; word-break: break-all; }
.rc-table th { width: 38%; color: #555; font-weight: 600; }
.rc-note { color: #555; font-size: 12px; margin: 12px 0 0; }
.rc-actions { display: flex; gap: 8px; margin-top: 16px; }
.receipt .btn.ghost { color: #1a1a1a; border-color: #ccc; }
@media print {
  body.printing #app > *:not(.receipt-wrap), body.printing #pause, body.printing #splash, body.printing #amb { display: none !important; }
  body.printing, body.printing #app { background: #fff !important; }
  body.printing .receipt-wrap { position: static; background: none; padding: 0; }
  body.printing .receipt { box-shadow: none; border-radius: 0; max-width: none; }
  body.printing .rc-actions { display: none; }
}

/* ===== v11 ===== */
/* Perks with icons (paywall + profile) */
.perk-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.perk-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; }
.perk-list svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Profile hero ring */
.pf-hero { align-items: center; text-align: center; gap: 12px; }
.pf-ring { position: relative; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto; }
.pf-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 5px;
  background: conic-gradient(#ffd166, #ff7a3c, #ff2e63, #ffd166);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.pf-ring::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, #ff7a3c66, transparent); opacity: .8; }
.pf-ring span { font-size: 44px; font-weight: 900; font-style: italic; letter-spacing: -.03em; }
.pf-ring.dim::before { background: conic-gradient(#ffffff26, #ffffff55, #ffffff26); }
.pf-ring.dim::after { background: radial-gradient(closest-side, #ffffff1f, transparent); animation: ringPulse 2.4s ease-in-out infinite alternate; }
.pf-ring.dim span { font-size: 20px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
@keyframes ringPulse { from { opacity: .35; } to { opacity: 1; } }
.pf-cta { min-height: 60px; font-size: 18px; }
.pf-hero .perk-list { justify-items: start; text-align: left; width: 100%; }
.pf-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pf-buy .btn { min-height: 52px; padding: 0 12px; font-size: 15px; }
.pf-buy .best { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent2) 35%, transparent), 0 14px 30px -12px var(--accent2) !important; }
.pro-active { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pro-active > b { font-size: 20px; font-weight: 900; font-style: italic; }

/* "Hot is locked" chip: once per session, auto-dismisses */
.hot-chip { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 75; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 16px; border-radius: 99px; background: #1e121df2; border: 1px solid var(--line);
  box-shadow: 0 14px 30px -12px #000; font-size: 14px; white-space: nowrap; animation: chipIn var(--dur-m) var(--spring) both; }
.hot-chip.out { opacity: 0; transform: translate(-50%, 12px); transition: opacity var(--dur-s) var(--ease-out), transform var(--dur-s) var(--ease-out); }
.hot-chip .hc-x { width: 32px; height: 32px; border-radius: 50%; color: var(--muted); }
@keyframes chipIn { from { opacity: 0; transform: translate(-50%, 16px) scale(.96); } }
.hot-lock { cursor: default; }
.hot-lock .hl-badge { background: #ffffff1a; }
.hot-lock .hl-text { color: var(--fg); }

/* HUD heat chip: mini ring in the level's colour, pulses on auto-ramp */
.hchip { display: inline-flex; align-items: center; gap: 6px; }
.mring { width: 14px; height: 14px; border-radius: 50%; display: inline-block; border: 3px solid #ffd166; transition: border-color var(--dur-m) var(--ease-out); }
#app[data-heat="2"] .mring { border-color: #ff7a3c; }
#app[data-heat="3"] .mring { border-color: #ff2e63; }
.hchip.ramp { animation: rampPulse var(--dur-l) var(--spring); }
.hchip.ramp .mring { animation: rampSweep var(--dur-l) var(--ease-out); }
@keyframes rampPulse { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes rampSweep { from { transform: rotate(-270deg) scale(.6); } to { transform: none; } }

/* Charades card meta */
.ch-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ch-chip { padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .04em; background: #d4af3726; border: 1px solid #d4af3780; color: #ffe7a0; }
.ch-chip.alt { background: #ff2e6326; border-color: #ff2e6380; color: #ffd0dc; }

/* Group games */
.vote-seg button:disabled, .rf-mode button:disabled { opacity: .45; }
.who-grid button.on { background: #ff4f9a; color: #fff; transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.tally { display: grid; gap: 8px; }
.tally-row { display: grid; grid-template-columns: minmax(70px, 30%) 1fr 32px; align-items: center; gap: 8px; font-weight: 700; }
.tally-row i { height: 14px; border-radius: 99px; background: #ffe14d; transform-origin: left; transform: scaleX(var(--w)); animation: tallyIn var(--dur-l) var(--spring) both; border: 2px solid #000; }
.tally-row.top span, .tally-row.top b { color: #ffe14d; }
@keyframes tallyIn { from { transform: scaleX(0); } }
.finger-rows { display: grid; gap: 8px; }
.finger-row { display: grid; grid-template-columns: 1fr repeat(3, 48px); gap: 6px; align-items: center; }
.finger-row button { min-height: 44px; border-radius: 12px; background: #ffffff12; border: 1px solid var(--line); font-weight: 800; color: var(--fg); }
.finger-row button.on { background: var(--accent); color: #140a10; }
.playing .cap { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8a6d1e; font-weight: 700; }
.modal-wrap.full { -webkit-backdrop-filter: none; backdrop-filter: none; }
