/* Tech6Sense Play — professional light UI. Mobile-first, no framework, no build step.
   Type: Inter (UI) + JetBrains Mono (code). Scale: 12 / 13 / 14 / 15 / 17 / 22. Brand: Tech6Sense teal. */
:root {
  color-scheme: light;
  /* neutrals (slate) */
  --bg: #f5f7fa; --surface: #ffffff; --surface2: #f1f4f9; --line: #e2e8f0; --line-strong: #cbd5e1;
  --text: #0f172a; --muted: #52627a; --faint: #8492a8;
  /* brand + semantic */
  --primary: #0e8a69; --primary-hover: #0b7458; --primary-ink: #ffffff; --primary-soft: #e6f5f0; --primary-line: #a9dccd;
  --accent: #b7791f; --accent-soft: #fdf3dc;
  --danger: #d1344a; --danger-soft: #fdeaed; --danger-line: #f3b3bd;
  --info: #2563eb; --info-soft: #e8effd; --info-line: #b7ccf7;
  --next: #6d5bd0;
  --hero: linear-gradient(135deg, #e3f5ee 0%, #e8f1fb 58%, #efeafb 100%); --hero-line: #cfe3ea;
  --code-bg: #0f172a; --code-text: #e2e8f0;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 24px -14px rgba(15,23,42,.18);
  --shadow-lg: 0 2px 4px rgba(15,23,42,.05), 0 18px 40px -16px rgba(15,23,42,.28);
  --r: 14px; --r-sm: 10px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; font-size: clamp(13.5px, 9.6px + 1.2vw, 16px); }
body { font-family: var(--font); font-size: .9375rem; font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; background: var(--bg); color: var(--text);
  min-height: 100vh; line-height: 1.5; -webkit-tap-highlight-color: transparent; padding-bottom: calc(64px + var(--safe-b)); }
a { color: inherit; text-decoration: none; } button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: 600px; margin: 0 auto; padding: 16px 16px 32px; }
@media (min-width: 900px) { .wrap { max-width: 680px; padding-top: 24px; } }
h1 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 1rem; font-weight: 650; letter-spacing: -.01em; } h3 { font-size: .9375rem; font-weight: 650; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: .8125rem; } .center { text-align: center; }
.row { display: flex; align-items: center; gap: 8px; } .between { justify-content: space-between; } .wrapx { flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; } .mt { margin-top: 14px; } .mt-s { margin-top: 6px; }
.grid { display: grid; gap: 10px; } .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); }
[hidden] { display: none !important; }

/* ── header / nav ── */
.top { position: sticky; top: 0; z-index: 30; height: 60px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { height: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; } .brand img { height: 26px; width: auto; }
.top-nav { display: flex; gap: 2px; margin-left: 22px; flex: 1; }
.top-nav a { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 550; font-size: .875rem; }
.top-nav a svg { width: 17px; height: 17px; } .top-nav a:hover { color: var(--text); background: var(--surface2); } .top-nav a.on { color: var(--primary); background: var(--primary-soft); }
.top-user { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 5px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); transition: background .15s, border-color .15s; }
.acct-btn:hover, .acct-btn[aria-expanded="true"] { background: var(--surface2); border-color: var(--line-strong); }
.acct-name { font-size: .875rem; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-chev { width: 16px; height: 16px; color: var(--faint); transition: transform .18s; } .acct-btn[aria-expanded="true"] .acct-chev { transform: rotate(180deg); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 256px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; animation: popIn .16s ease-out both; transform-origin: top right; }
.acct-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; min-width: 0; }
.acct-head div { min-width: 0; } .acct-head b { display: block; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .acct-head small { display: block; color: var(--faint); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-menu a, .acct-out { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; font-size: .875rem; font-weight: 550; color: var(--text); text-align: left; }
.acct-menu a svg, .acct-out svg { width: 17px; height: 17px; color: var(--muted); }
.acct-menu a:hover, .acct-out:hover { background: var(--surface2); } .acct-out { color: var(--danger); } .acct-out svg { color: var(--danger); }
.acct-sep { height: 1px; background: var(--line); margin: 5px 4px; }
@media (max-width: 760px) { .top-nav, .acct-name, .acct-chev { display: none; } .acct-btn { padding: 0; border: 0; height: auto; background: none; } .top { height: 54px; } .brand img { height: 24px; } }
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; color: var(--faint); font-size: .6875rem; font-weight: 600; }
  .tabbar a svg { width: 22px; height: 22px; } .tabbar a.on { color: var(--primary); }
}
.is-playing .tabbar, .is-playing .top-nav { display: none; } .is-playing { padding-bottom: calc(16px + var(--safe-b)); }

.flash { max-width: 600px; margin: 12px auto 0; padding: 10px 14px; border-radius: 10px; font-size: .875rem; width: calc(100% - 32px); font-weight: 500; }
.flash-err { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger-line); } .flash-ok { background: var(--primary-soft); color: var(--primary-hover); border: 1px solid var(--primary-line); }
.av { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 650; flex: none; overflow: hidden; position: relative; background: var(--surface2); }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  padding: 0 16px; min-height: 44px; border-radius: 10px; font-weight: 600; font-size: .9375rem; transition: background .15s, border-color .15s, box-shadow .15s; text-align: center; box-shadow: 0 1px 1px rgba(15,23,42,.04); }
.btn:hover { background: var(--surface2); } .btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: 0 1px 2px rgba(14,138,105,.3), inset 0 1px 0 rgba(255,255,255,.15); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); } .btn-lg { min-height: 50px; font-size: 1rem; border-radius: 12px; }
.btn-ghost { background: transparent; box-shadow: none; } .btn-danger { background: transparent; color: var(--danger); border-color: var(--danger-line); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .8125rem; border-radius: 8px; } .btn-block { width: 100%; } .btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 38px; height: 38px; padding: 0; }

/* ── cards ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.card + .card, .card + .sec, .sec + .card { margin-top: 12px; }
.hero { background: var(--hero); border-color: var(--hero-line); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='180' viewBox='0 0 260 180' fill='none'%3E%3Cg stroke='%230e8a69' stroke-opacity='.13' stroke-width='1.2'%3E%3Ccircle cx='222' cy='34' r='58'/%3E%3Ccircle cx='222' cy='34' r='38'/%3E%3Ccircle cx='222' cy='34' r='18'/%3E%3Cpath d='M164 34h116M222-24v116'/%3E%3C/g%3E%3Cg fill='%230e8a69' fill-opacity='.16'%3E%3Ccircle cx='222' cy='34' r='3.2'/%3E%3Ccircle cx='184' cy='34' r='2.2'/%3E%3Ccircle cx='222' cy='72' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right -30px top -22px; background-size: 260px 180px; }
.hero > * { position: relative; z-index: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--surface2); color: var(--muted); }
.pill.live { background: var(--danger-soft); color: var(--danger); } .pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); animation: pulse 1.3s infinite; }
.pill.soon { background: var(--accent-soft); color: var(--accent); } .pill.done { background: var(--primary-soft); color: var(--primary-hover); }
@keyframes pulse { 50% { opacity: .4; transform: scale(.8); } }
.meta { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--muted); font-size: .8125rem; margin-top: 4px; }
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 2px 10px; } .sec h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.sec a { color: var(--primary); font-size: .8125rem; font-weight: 600; }
.list > * + * { border-top: 1px solid var(--line); }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 2px; }
.item .grow { flex: 1; min-width: 0; } .item .t { font-weight: 600; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* illustrations */
.illus { display: block; margin: 0 auto 8px; width: 88px; height: 88px; }
.badge-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.badge-ic svg { width: 24px; height: 24px; }

/* home */
.cta-time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 2rem; letter-spacing: -.02em; margin: 10px 0 2px; }
.join-box { display: flex; gap: 8px; } .join-box .in { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .22em; font-family: var(--mono); font-weight: 600; text-align: center; }
.quick { margin-top: 12px; }
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chip-card { flex: none; width: 176px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.chip-card b { font-size: .875rem; line-height: 1.3; font-weight: 650; } .chip-card .meta { margin: 0; }

/* rooms / quiz picker */
.tabs2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.tabs2 a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; border-radius: 9px; font-weight: 600; font-size: .875rem; color: var(--muted); }
.tabs2 a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); } .tabs2 svg { width: 17px; height: 17px; }
.search { position: relative; } .search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--faint); }
.search .in { padding-left: 40px; }
.fchips { display: flex; gap: 6px; overflow-x: auto; margin: 10px -16px 0; padding: 0 16px 2px; scrollbar-width: none; } .fchips::-webkit-scrollbar { display: none; }
.fchip { flex: none; background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted); border-radius: 99px; padding: 6px 13px; font-size: .8125rem; font-weight: 600; }
.fchip.on { background: var(--text); border-color: var(--text); color: #fff; }
.picks { display: grid; gap: 8px; margin-top: 12px; }
.pick { display: block; cursor: pointer; } .pick input { position: absolute; opacity: 0; pointer-events: none; }
.qrow { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); padding: 11px 13px; transition: border-color .12s, background .12s; }
.qrow:hover { border-color: var(--line-strong); }
.pick input:checked + .qrow { border-color: var(--primary); background: var(--primary-soft); }
.pick input:focus-visible + .qrow { outline: 2px solid var(--primary); outline-offset: 2px; }
.qrow .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface2); color: var(--primary); flex: none; font-weight: 700; font-size: .8125rem; }
.pick input:checked + .qrow .ic { background: #fff; }
.qrow .tx { flex: 1; min-width: 0; } .qrow .tx b { display: block; font-size: .9375rem; line-height: 1.3; font-weight: 650; } .qrow .tx .meta { margin-top: 2px; }
.qrow .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; flex: none; color: transparent; }
.qrow .tick svg { width: 13px; height: 13px; stroke-width: 3; }
.pick input:checked + .qrow .tick { background: var(--primary); border-color: var(--primary); color: #fff; }
.dif { display: inline-flex; align-items: center; gap: 5px; } .dif::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.dif.easy::before { background: var(--primary); } .dif.medium::before { background: #e0a100; } .dif.hard::before { background: var(--danger); }
.dock { position: sticky; bottom: calc(66px + var(--safe-b)); margin-top: 14px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); z-index: 5; }
@media (min-width: 761px) { .dock { bottom: 12px; } }
.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .mode label { cursor: pointer; } .mode input { position: absolute; opacity: 0; }
.mode span { display: flex; flex-direction: column; align-items: center; padding: 8px 6px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: .875rem; line-height: 1.25; }
.mode small { font-weight: 500; font-size: .75rem; color: var(--faint); }
.mode input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-hover); } .mode input:checked + span small { color: var(--primary); }
.dock .opts-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.dock .opts-row select { min-height: 44px; width: auto; flex: none; padding: 0 10px; font-size: .875rem; }
.dock .opts-row .btn { flex: 1; }
.no-results { text-align: center; color: var(--muted); padding: 24px 0; font-size: .875rem; }

/* leaderboard */
.lb { list-style: none; } .lb li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); } .lb li:last-child { border: 0; }
.lb li.me { background: var(--primary-soft); border-radius: 10px; padding-left: 8px; padding-right: 8px; border-bottom-color: transparent; }
.lb .rk { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .8125rem; flex: none; }
.lb .rk.m1 { background: linear-gradient(145deg, #fde68a, #f2b01e); color: #6b4300; box-shadow: inset 0 0 0 1px rgba(160,100,0,.25); }
.lb .rk.m2 { background: linear-gradient(145deg, #eef2f7, #bcc6d4); color: #3b4658; box-shadow: inset 0 0 0 1px rgba(60,70,90,.2); }
.lb .rk.m3 { background: linear-gradient(145deg, #f6d2b0, #d4915a); color: #5a3210; box-shadow: inset 0 0 0 1px rgba(110,60,20,.25); }
.lb .nm { flex: 1; min-width: 0; font-weight: 600; font-size: .9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb .sc { text-align: right; font-weight: 700; font-size: .9375rem; font-variant-numeric: tabular-nums; } .lb .sc small { display: block; font-weight: 500; color: var(--faint); font-size: .75rem; }

/* forms */
.in, select.in { width: 100%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); padding: 0 13px; font: inherit; font-size: 1rem; min-height: 46px; }
.in:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: var(--primary); }
.in::placeholder { color: var(--faint); }
.code-in { text-align: center; letter-spacing: .3em; font-size: 1.5rem; font-weight: 600; text-transform: uppercase; font-family: var(--mono); min-height: 58px; }
.auth-card { margin: 16px auto; } .divider { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: .75rem; margin: 14px 0; text-transform: uppercase; letter-spacing: .08em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { background: #fff; color: #1f2937; border-color: var(--line-strong); }
.link-btn { background: none; border: 0; color: var(--muted); font-size: .8125rem; font-weight: 500; } .link-btn:hover { color: var(--text); }

/* ═════════ quiz screen — one fixed layout for question, locked and reveal ═════════ */
.quiz { max-width: 640px; margin: 0 auto; }
.is-playing .wrap { max-width: 720px; }
.q-top { display: flex; align-items: center; gap: 8px; height: 48px; margin-bottom: 10px; }
.q-top .qn { font-weight: 700; font-size: .9375rem; white-space: nowrap; } .q-top .qn small { color: var(--faint); font-weight: 600; }
.q-top .sp { flex: 1; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; font-size: .75rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tag b { color: var(--text); font-variant-numeric: tabular-nums; }
.ring { position: relative; width: 44px; height: 44px; flex: none; }
.ring svg { width: 44px; height: 44px; transform: rotate(-90deg); } .ring circle { fill: none; stroke-width: 4; }
.ring .bg { stroke: var(--line); } .ring .fg { stroke: var(--primary); stroke-linecap: round; transition: stroke .3s; }
.ring.warn .fg { stroke: #e0a100; } .ring.crit .fg { stroke: var(--danger); } .ring.next .fg { stroke: var(--next); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.ring.crit span { color: var(--danger); }
.q-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.q-body { font-size: 1.0625rem; font-weight: 600; line-height: 1.5; white-space: pre-wrap; word-break: break-word; letter-spacing: -.005em; }
.q-clock { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; color: var(--accent); }
.q-img { margin-top: 10px; max-width: 100%; border-radius: 10px; }
pre.code { margin-top: 12px; background: var(--code-bg); border-radius: 10px; padding: 12px 14px; overflow-x: auto; font-family: var(--mono); font-size: .8125rem; line-height: 1.65; color: var(--code-text); tab-size: 4; -webkit-overflow-scrolling: touch; }
.opts { display: grid; gap: 8px; margin-top: 10px; }
@media (min-width: 720px) { .opts { grid-template-columns: 1fr 1fr; } }
.opt-btn { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 54px; font-weight: 550; font-size: .9375rem; overflow: hidden; transition: border-color .12s, background .12s; box-shadow: var(--shadow); }
button.opt-btn:hover:not([disabled]) { border-color: var(--line-strong); background: var(--surface2); } button.opt-btn:active:not([disabled]) { transform: translateY(1px); }
.opt-btn .k { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--surface2); display: grid; place-items: center; font-size: .8125rem; font-weight: 700; color: var(--muted); z-index: 1; }
.opt-btn .t { flex: 1; min-width: 0; z-index: 1; white-space: pre-wrap; word-break: break-word; }
.opt-btn .t.mono { font-family: var(--mono); font-size: .875rem; }
/* fixed right-hand slots so text never reflows between states */
.opt-btn .ind { flex: none; width: 22px; height: 22px; display: grid; place-items: center; z-index: 1; border-radius: 50%; }
.opt-btn .ind svg { width: 14px; height: 14px; stroke-width: 2.6; }
.opt-btn .pc { flex: none; width: 38px; text-align: right; z-index: 1; font-weight: 700; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.opt-btn.sel { border-color: var(--info); background: var(--info-soft); } .opt-btn.sel .k { background: var(--info); color: #fff; } .opt-btn.sel .ind { background: var(--info); color: #fff; }
.opt-btn.right { border-color: var(--primary); background: var(--primary-soft); } .opt-btn.right .k { background: var(--primary); color: #fff; } .opt-btn.right .ind { background: var(--primary); color: #fff; } .opt-btn.right .pc { color: var(--primary-hover); }
.opt-btn.wrong { border-color: var(--danger); background: var(--danger-soft); } .opt-btn.wrong .k { background: var(--danger); color: #fff; } .opt-btn.wrong .ind { background: var(--danger); color: #fff; } .opt-btn.wrong .pc { color: var(--danger); }
.opt-btn.dim { opacity: .6; box-shadow: none; }
.opt-btn .bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(15,23,42,.045); z-index: 0; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.opt-btn.right .bar { background: rgba(14,138,105,.14); } .opt-btn.wrong .bar { background: rgba(209,52,74,.12); }
.explain { margin-top: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--info); border-radius: 10px; font-size: .875rem; color: var(--muted); white-space: pre-wrap; }
.explain b { color: var(--text); display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.mini-lb { margin-top: 10px; } .mini-lb .lb li { padding: 6px 4px; }

/* wait / lobby / finish */
.waitbox { text-align: center; padding: 24px 16px; }
.big-num { font-size: clamp(4.5rem, 24vw, 7rem); font-weight: 700; color: var(--primary); line-height: 1; font-variant-numeric: tabular-nums; margin: 12px 0; letter-spacing: -.03em; }
.room-code { font-family: var(--mono); font-size: 1.9rem; letter-spacing: .22em; font-weight: 600; color: var(--primary); text-align: center; padding: 6px 0 0; }
.members { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; } .members.c { justify-content: center; }
.member { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); padding: 3px 11px 3px 3px; border-radius: 99px; font-size: .8125rem; font-weight: 550; }
.score-ring { width: 124px; height: 124px; margin: 4px auto 12px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--line) 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface); }
.score-ring div { position: relative; text-align: center; } .score-ring b { font-size: 2.1rem; line-height: 1; display: block; font-weight: 700; letter-spacing: -.02em; } .score-ring span { color: var(--muted); font-size: .8125rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; } .stat b { display: block; font-size: 1.0625rem; font-weight: 700; font-variant-numeric: tabular-nums; } .stat span { font-size: .6875rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.review-item { border-top: 1px solid var(--line); padding: 14px 0; } .review-item:first-child { border-top: 0; }
.review-opt { font-size: .875rem; padding: 7px 10px; border-radius: 8px; margin-top: 4px; background: var(--surface2); }
.review-opt.right { background: var(--primary-soft); color: var(--primary-hover); font-weight: 600; } .review-opt.wrong { background: var(--danger-soft); color: var(--danger); }
.spinner { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 30px auto; } @keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 24px 12px; color: var(--muted); font-size: .9375rem; }
.toast { position: fixed; left: 50%; bottom: calc(80px + var(--safe-b)); transform: translateX(-50%); background: var(--text); color: #fff; padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: .8125rem; z-index: 99; box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ── waiting room: radar "searching" animation ── */
.radar { position: relative; width: 104px; height: 104px; margin: 8px auto 4px; display: grid; place-items: center; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary); opacity: 0; animation: radar 2.4s ease-out infinite; }
.radar i:nth-of-type(2) { animation-delay: .8s; } .radar i:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes radar { 0% { transform: scale(.4); opacity: .6; } 100% { transform: scale(1.2); opacity: 0; } }
.radar .sweep { position: absolute; inset: 4px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(14,138,105,0) 0deg, rgba(14,138,105,.3) 80deg, rgba(14,138,105,0) 82deg); animation: spin 2.2s linear infinite; }
.radar .core { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px -8px rgba(14,138,105,.7); }
.radar .core svg { width: 24px; height: 24px; }
.dots::after { content: ""; animation: dots 1.4s steps(1) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.member { animation: popin .35s ease-out both; }
@keyframes popin { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── result: badge + comment + score as ONE element ── */
.result { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); text-align: left; }
.result-badge { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(145deg, #19a883, #0b7458); box-shadow: 0 8px 16px -8px rgba(14,138,105,.7); }
.result-badge svg { width: 28px; height: 28px; stroke-width: 1.7; }
.result-badge.r1 { background: linear-gradient(145deg, #fcd34d, #e29a0b); box-shadow: 0 8px 16px -8px rgba(226,154,11,.7); }
.result-badge.r2 { background: linear-gradient(145deg, #cbd5e1, #8a99ad); box-shadow: 0 8px 16px -8px rgba(100,116,139,.7); }
.result-badge.r3 { background: linear-gradient(145deg, #e8a974, #b86a30); box-shadow: 0 8px 16px -8px rgba(184,106,48,.7); }
.result-main { flex: 1; min-width: 0; } .result-title { font-size: 1.125rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.result-sub { margin-top: 3px; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.result-score { text-align: right; flex: none; line-height: 1; } .result-score b { font-size: 2.25rem; font-weight: 700; letter-spacing: -.03em; color: var(--primary); } .result-score span { font-size: 1rem; color: var(--faint); font-weight: 600; }
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.acts form { display: contents; }
.acts .a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 58px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; font-size: .75rem; font-weight: 600; color: var(--text); padding: 6px 2px; box-shadow: 0 1px 1px rgba(15,23,42,.04); }
.acts .a:hover { background: var(--surface2); } .acts .a svg { width: 20px; height: 20px; color: var(--primary); }

/* ── points / rewards / referrals ── */
.pts-balance { display: flex; align-items: baseline; gap: 8px; margin: 12px 0 2px; } .pts-balance b { font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; color: var(--primary); line-height: 1; font-variant-numeric: tabular-nums; } .pts-balance span { color: var(--muted); font-weight: 600; }
.hdr-pts { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 99px; background: var(--primary-soft); color: var(--primary-hover); font-weight: 700; font-size: .8125rem; font-variant-numeric: tabular-nums; border: 1px solid var(--primary-line); }
.hdr-pts svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.refbox { margin-top: 14px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.reflink { font-family: var(--mono); font-size: .8125rem; word-break: break-all; margin-top: 2px; color: var(--text); }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 8px 8px 8px 12px; background: var(--surface2); border: 1px dashed var(--line-strong); border-radius: 10px; font-family: var(--mono); font-weight: 600; letter-spacing: .08em; font-size: .9375rem; word-break: break-all; }
.tnc { margin-top: 8px; font-size: .8125rem; color: var(--muted); } .tnc summary { cursor: pointer; font-weight: 600; } .tnc p { margin-top: 4px; line-height: 1.55; }
.rk-pill { min-width: 46px; text-align: center; padding: 4px 8px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-hover); font-weight: 700; font-size: .8125rem; }
.tile-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.tile-links a { display: flex; flex-direction: column; gap: 2px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.tile-links a b { font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; } .tile-links a span { font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.ann { flex: none; width: 250px; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: var(--r); box-shadow: var(--shadow); }
.ann.ann-winners { border-left-color: #e29a0b; } .ann.ann-info { border-left-color: var(--info); }
.ann b { font-size: .9375rem; line-height: 1.3; } .ann p { font-size: .8125rem; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ann small { color: var(--faint); font-size: .75rem; margin-top: auto; } .ann .pill { align-self: flex-start; }
.rw-list > * + * { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.rw-row { display: flex; align-items: center; gap: 12px; } .rw-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; }
.rw-ic svg { width: 20px; height: 20px; } .rw-main { flex: 1; min-width: 0; } .rw-main b { display: block; font-size: .9375rem; } .rw-main small { color: var(--muted); font-size: .8125rem; }
.rw-link { font-size: .8125rem; font-weight: 600; color: var(--primary); white-space: nowrap; }
.rw-title { font-weight: 650; font-size: .9375rem; } .rw-tiers { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.rw-tier { font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 8px; background: var(--surface2); color: var(--muted); } .rw-tier b { color: var(--text); }
.rw-me { font-size: .8125rem; color: var(--muted); } .rw-me.win { color: var(--primary-hover); font-weight: 600; }

/* ═════════ floating toasts (never move the layout) ═════════ */
.toasts { position: fixed; top: calc(62px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast-item { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--info); border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .875rem; font-weight: 550; animation: toastIn .28s cubic-bezier(.2,.9,.3,1.2) both; }
.toast-item.out { animation: toastOut .22s ease-in both; }
.toast-item svg { width: 18px; height: 18px; margin-top: 1px; color: var(--info); }
.toast-item.ok { border-left-color: var(--primary); } .toast-item.ok svg { color: var(--primary); }
.toast-item.err { border-left-color: var(--danger); } .toast-item.err svg { color: var(--danger); }
.toast-item.pts { border-left-color: #e29a0b; } .toast-item.pts svg { color: #e29a0b; fill: #e29a0b; stroke: none; }
.toast-item span { flex: 1; line-height: 1.4; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px) scale(.97); } }
.toast { display: none; }

/* ═════════ motion (short and purposeful) ═════════ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.92); } 60% { transform: scale(1.02); } 100% { opacity: 1; transform: none; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.wrap > * { animation: fadeUp .26s ease-out both; } .wrap > *:nth-child(2) { animation-delay: .04s; } .wrap > *:nth-child(3) { animation-delay: .08s; } .wrap > *:nth-child(4) { animation-delay: .12s; }
.quiz.enter .q-card { animation: fadeUp .22s ease-out both; }
.quiz.enter .opt-btn { animation: fadeUp .22s ease-out both; } .quiz.enter .opt-btn:nth-child(1) { animation-delay: .04s; } .quiz.enter .opt-btn:nth-child(2) { animation-delay: .08s; } .quiz.enter .opt-btn:nth-child(3) { animation-delay: .12s; } .quiz.enter .opt-btn:nth-child(4) { animation-delay: .16s; } .quiz.enter .opt-btn:nth-child(5) { animation-delay: .2s; } .quiz.enter .opt-btn:nth-child(6) { animation-delay: .24s; }
.opt-btn.right { animation: popIn .32s ease-out both; } .opt-btn.wrong { animation: shake .3s ease-out both; }
@keyframes shake { 0%,100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.result.enter, .quiz .result { animation: popIn .4s ease-out both; }
.result-badge { animation: badgePop .55s cubic-bezier(.2,1.4,.4,1) .1s both; } @keyframes badgePop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.acts .a { animation: fadeUp .3s ease-out both; } .acts > *:nth-child(1) .a, .acts > .a:nth-child(1) { animation-delay: .18s; } .acts > *:nth-child(2) .a, .acts > .a:nth-child(2) { animation-delay: .24s; } .acts > *:nth-child(3) .a, .acts > .a:nth-child(3) { animation-delay: .3s; } .acts > *:nth-child(4) .a, .acts > .a:nth-child(4) { animation-delay: .36s; }
.lb li { animation: fadeUp .28s ease-out both; } .lb li:nth-child(2) { animation-delay: .04s; } .lb li:nth-child(3) { animation-delay: .08s; } .lb li:nth-child(4) { animation-delay: .12s; } .lb li:nth-child(5) { animation-delay: .16s; } .lb li:nth-child(n+6) { animation-delay: .2s; }
.rw-list > * { animation: fadeUp .3s ease-out both; }
.hdr-pts.bump { animation: bump .5s ease-out; } @keyframes bump { 30% { transform: scale(1.18); background: #fde68a; } 100% { transform: none; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 110; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; opacity: 0; animation: fall 1.6s ease-in forwards; }
@keyframes fall { 0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); } 100% { opacity: 0; transform: translate3d(var(--dx), 100vh, 0) rotate(var(--rot)); } }

/* ═════════ skeleton loading ═════════ */
.skel { position: relative; overflow: hidden; background: var(--surface2); border-radius: 8px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel-line { height: 14px; margin: 6px 0; } .skel-line.w30 { width: 30%; } .skel-line.w40 { width: 40%; } .skel-line.w60 { width: 60%; } .skel-line.w80 { width: 80%; } .skel-line.w90 { width: 90%; }
.skel-ring { width: 44px; height: 44px; border-radius: 50%; } .skel-opt { height: 54px; border-radius: 12px; }
.skel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.skel-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; } .skel-row .skel-ring { width: 30px; height: 30px; } .skel-row .skel-line { flex: 1; margin: 0; }

/* ═════════ session card ═════════ */
.sc-hero { padding: 18px; }
.kind { font-size: .75rem; font-weight: 600; color: var(--muted); }
.sc-title { margin-top: 10px; font-size: 1.5rem; letter-spacing: -.025em; }
.mrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 99px; font-size: .78rem; font-weight: 600; color: var(--muted); backdrop-filter: blur(4px); }
.mchip svg { width: 14px; height: 14px; color: var(--primary); }
.mchip-live { background: var(--primary-soft); border-color: var(--primary-line); color: var(--primary-hover); } .mchip-live b { font-variant-numeric: tabular-nums; }
.sc-action { margin-top: 16px; }
.share-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; min-height: 42px; border-radius: 12px; border: 1.5px dashed var(--primary-line); background: rgba(255,255,255,.55); color: var(--primary-hover); font-weight: 650; font-size: .875rem; }
.share-cta:hover { background: #fff; border-style: solid; } .share-cta svg { width: 17px; height: 17px; }

/* ═════════ waiting room ═════════ */
.waitcard { text-align: center; padding: 22px 16px 18px; }
.wait-count { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.wait-count b { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--primary); }
.wait-count span { color: var(--muted); font-weight: 600; font-size: .875rem; }
.radar { width: 120px; height: 120px; margin: 4px auto; }
.radar .core { width: 52px; height: 52px; }
.avstack { display: flex; justify-content: center; align-items: center; margin-top: 8px; min-height: 36px; }
.avstack > span { margin-left: -9px; animation: popIn .35s ease-out both; } .avstack > span:first-child { margin-left: 0; }
.avstack .av { border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(15,23,42,.12); }
.avstack em { margin-left: -9px; display: grid; place-items: center; height: 34px; min-width: 34px; padding: 0 8px; border-radius: 99px; background: var(--text); color: #fff; font-style: normal; font-size: .75rem; font-weight: 700; border: 2.5px solid #fff; }

/* ═════════ share sheet ═════════ */
.sheet-wrap { position: fixed; inset: 0; z-index: 130; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(15,23,42,.45); animation: fadeIn .2s ease-out both; backdrop-filter: blur(2px); }
.sheet { position: relative; width: min(100%, 460px); background: var(--surface); border-radius: 20px 20px 0 0; padding: 8px 18px calc(18px + env(safe-area-inset-bottom, 0px)); box-shadow: var(--shadow-lg); animation: slideUp .26s cubic-bezier(.2,.9,.3,1) both; }
@media (min-width: 560px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 20px; animation-name: popIn; } }
.sheet-grab { width: 38px; height: 4px; border-radius: 99px; background: var(--line-strong); margin: 4px auto 8px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; } .sheet-head h2 { font-size: 1.125rem; }
.sheet-text { margin: 4px 0 12px; color: var(--muted); font-size: .875rem; }
.sheet-link { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; }
.sheet-link span { flex: 1; min-width: 0; font-family: var(--mono); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.sheet-apps .app { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; border: 0; background: none; font-size: .75rem; font-weight: 600; color: var(--text); }
.sheet-apps .app i { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: #fff; transition: transform .12s; } .sheet-apps .app:active i { transform: scale(.94); }
.sheet-apps .app i svg { width: 24px; height: 24px; }
.app.tg i { background: linear-gradient(145deg, #3aa8e6, #1d88c8); } .app.wa i { background: linear-gradient(145deg, #35d067, #1aa84a); } .app.em i { background: linear-gradient(145deg, #8a99ad, #5d6b7f); } .app.mo i { background: linear-gradient(145deg, #34405a, #1b2438); }

/* Waiting-room knowledge line: part of the card, not a separate box */
.tipcard { margin: 18px -4px 0; padding: 14px 6px 0; border-top: 1px solid var(--line); text-align: center; min-height: 86px; }
.tipcard::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--primary); opacity: .55; margin: -15px auto 12px; }
.tipcard h3 { font-size: .9375rem; color: var(--ink, #0f172a); }
.tipcard p { margin-top: 4px; font-size: .875rem; color: var(--muted); line-height: 1.55; }
.tipcard a { display: inline-block; margin-top: 6px; font-size: .8125rem; font-weight: 650; color: var(--primary); }
.tipcard .tip-body { animation: tipIn .5s ease-out both; } .tipcard .tip-body.leave { animation: tipOut .22s ease-in both; }
@keyframes tipIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } } @keyframes tipOut { to { opacity: 0; } }

/* ── Home: fixed section layout (mobile → tablet → desktop) ── */
.is-home .wrap { max-width: 1120px; }
.home-hi { margin: 2px 2px 16px; order: 0; } .home-hi h1 { font-size: 1.5rem; } .home-hi p { font-size: .9375rem; margin-top: 2px; }
.home { display: grid; }
.home-main, .home-side { display: contents; }
.hs { margin-top: 22px; min-width: 0; } .hs-now { margin-top: 0; }
.hs-now { order: 1; } .hs-today { order: 2; } .hs-rooms { order: 3; } .hs-ann { order: 4; } .hs-practice { order: 5; } .hs-last { order: 6; }
.hs-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 10px; }
.hs-head h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.hs-head a { color: var(--primary); font-size: .8125rem; font-weight: 600; }
.hs-body > * + * { margin-top: 12px; }
@media (min-width: 640px) { .hs-rooms .rooms-card { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; } .hs-rooms .rooms-card .join-box { margin: 0; } }
@media (min-width: 1000px) {
  .home { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 24px; align-items: start; }
  .home-hi { grid-column: 1 / -1; }
  .home-main, .home-side { display: block; }
  .home-main > .hs:first-child, .home-side > .hs:first-child { margin-top: 0; }
  .hs-rooms .rooms-card { display: block; } .hs-rooms .rooms-card .btn-block { margin-top: 8px; }
  .home-side { position: sticky; top: 76px; }
}
.now-card { display: flex; flex-direction: column; gap: 4px; }
.now-card h3 { font-size: 1.25rem; letter-spacing: -.02em; margin-top: 8px; }
.now-card .meta { margin-top: 6px; } .now-card .btn { margin-top: 14px; }
.now-card.hl { background: #fff; border-color: var(--line); border-left: 4px solid var(--primary); }
.now-card.hl h3 { font-size: 1.0625rem; } .now-card.hl p { color: var(--muted); font-size: .875rem; margin-top: 4px; }
.empty-card { text-align: center; padding: 22px 18px; } .empty-card .eic { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 50%; background: var(--surface2); display: grid; place-items: center; color: var(--faint); }
.empty-card .eic svg { width: 22px; height: 22px; } .empty-card h3 { font-size: 1rem; } .empty-card p { color: var(--muted); font-size: .875rem; margin-top: 4px; } .empty-card .btn { margin-top: 12px; }
.today-list { padding: 4px 14px; }
.today-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; } .today-row + .today-row { border-top: 1px solid var(--line); }
.today-time { width: 66px; flex: none; font-weight: 700; font-size: .9375rem; font-variant-numeric: tabular-nums; } .today-time small { display: block; font-weight: 500; font-size: .6875rem; color: var(--faint); }
.today-info { flex: 1; min-width: 0; } .today-info b { display: block; font-size: .9375rem; line-height: 1.3; } .today-info span { font-size: .8125rem; color: var(--muted); }
.today-act { flex: none; display: flex; align-items: center; gap: 8px; }
.cd-chip { font-variant-numeric: tabular-nums; font-weight: 700; font-size: .8125rem; color: var(--accent); background: var(--accent-soft); padding: 4px 9px; border-radius: 99px; }
@media (max-width: 520px) { .today-row { flex-wrap: wrap; } .today-info { flex-basis: calc(100% - 82px); } .today-act { width: 100%; justify-content: space-between; padding-left: 80px; } }
.hs-ann .ann { width: auto; }
.last-card .lb { margin-top: 4px; } .last-card .ttl { font-size: .8125rem; color: var(--muted); }

/* ── Quiz thumbnails: always 16:9, never cropped. Only the width changes by context. ── */
.thumb { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 10px; overflow: hidden; color: #fff; isolation: isolate; container-type: inline-size; flex: none;
  background: linear-gradient(135deg, hsl(var(--h) 62% 44%), hsl(calc(var(--h) + 48) 68% 33%)); }
.thumb::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.thumb.p0::before { background: radial-gradient(circle at 18% 118%, rgba(255,255,255,.30) 0 36%, transparent 37%), radial-gradient(circle at 108% -8%, rgba(255,255,255,.20) 0 30%, transparent 31%); }
.thumb.p1::before { background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px); background-size: 16px 16px; }
.thumb.p2::before { background: repeating-linear-gradient(135deg, rgba(255,255,255,.13) 0 2px, transparent 2px 13px); }
/* uploaded image: shown whole (contain) on a neutral frame, no overlay text */
.thumb.has-img { background: #0f172a; box-shadow: inset 0 0 0 1px rgba(15,23,42,.08); }
.thumb.has-img::before, .thumb.has-img::after, .thumb.has-img .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* placement: the same thumbnail, three widths */
.now-grid { display: grid; gap: 14px; align-items: center; }
.now-grid .thumb { border-radius: 12px; }
.now-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 600px) { .now-grid { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 20px; } }
.today-row .thumb { width: 96px; border-radius: 8px; }
.qrow .thumb { width: 88px; border-radius: 8px; }
.sc-thumb { width: min(100%, 320px); margin: 0 auto 14px; }
@media (max-width: 420px) { .today-row .thumb { width: 80px; } .today-info { flex-basis: calc(100% - 100px); } .today-act { padding-left: 94px; } }

/* ── Home v3: today rows, friends card, practice cards, quiz intro, small screens ── */
.today-row .thumb { width: 104px; }
.today-info b { display: block; font-size: .9375rem; line-height: 1.3; }
.today-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 3px; font-size: .8125rem; color: var(--muted); }
.today-meta em { font-style: normal; } .today-meta .tm { font-style: normal; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; padding: 1px 8px; border-radius: 6px; background: var(--surface2); }
.friends-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.fr-top { display: flex; align-items: center; gap: 12px; }
.fr-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; } .fr-ic svg { width: 22px; height: 22px; }
.fr-top b { display: block; font-size: .9375rem; } .fr-top small { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.35; }
.fr-join { display: flex; gap: 8px; }
.fr-join .in { flex: 1; min-width: 0; height: 46px; text-align: center; font-family: var(--mono); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; border-radius: 12px; }
.fr-join .btn { height: 46px; padding: 0 22px; border-radius: 12px; }
.fr-or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.fr-or::before, .fr-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fr-create { height: 44px; border-radius: 12px; } .fr-create svg { width: 18px; height: 18px; }
.hs-rooms .rooms-card { display: none; }
/* quiz intro + countdown */
.intro { max-width: 460px; margin: 6px auto 0; text-align: center; padding: 18px; }
.intro-thumb { width: min(100%, 300px); margin: 0 auto 14px; } .intro h1 { font-size: 1.25rem; } .intro .meta { margin-top: 6px; }
.rules { list-style: none; text-align: left; margin: 16px 0 18px; display: grid; gap: 10px; }
.rules li { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; color: var(--muted); line-height: 1.45; }
.rules li span { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-hover); font-size: .75rem; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.rules p b { color: var(--text); }
.intro-back { display: inline-block; margin-top: 12px; font-size: .875rem; color: var(--muted); font-weight: 600; }
.intro-cd { max-width: 460px; margin: 40px auto 0; text-align: center; padding: 34px 20px 30px; }
.cd-num { font-size: 6rem; font-weight: 800; line-height: 1; color: var(--primary); margin: 14px 0 8px; font-variant-numeric: tabular-nums; }
.cd-num.pop { animation: cdPop .5s ease-out; } @keyframes cdPop { 0% { transform: scale(1.35); opacity: .3; } 100% { transform: none; opacity: 1; } }
/* small screens */
@media (max-width: 600px) {
  .wrap { padding: 12px 12px 28px; }
  .card { padding: 14px; } .hero { padding: 14px; }
  .hs { margin-top: 18px; } .home-hi h1 { font-size: 1.3rem; }
  .now-grid { gap: 12px; } .now-card h3 { font-size: 1.0625rem; }
  .today-list { padding: 2px 12px; }
  .today-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px 12px; align-items: start; padding: 12px 0; }
  .today-row .thumb { width: 88px; grid-row: span 2; }
  .today-act { grid-column: 2; width: auto; padding: 0; justify-content: space-between; margin-top: 2px; }
  .today-act .btn { flex: none; }
  }
@media (max-width: 380px) {
  .top-in { padding: 0 12px; gap: 8px; } .hdr-pts { height: 30px; padding: 0 9px; }
  .today-row { grid-template-columns: 72px minmax(0, 1fr); } .today-row .thumb { width: 72px; }
  .fr-join .btn { padding: 0 16px; }
  .intro { padding: 14px; } .cd-num { font-size: 5rem; }
}
@media (max-width: 600px) {
  .qrow:has(form) { flex-wrap: wrap; row-gap: 10px; }
  .qrow:has(form) .tx { flex: 1 1 calc(100% - 104px); }
  .qrow:has(form) > form { flex: 1; } .qrow:has(form) > form .btn { width: 100%; }
  .qrow:has(form) > .icon-btn { width: 40px; }
}

/* ── v4: today rows + practice cards, final (overrides earlier experiments) ── */
.today-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 12px 0; }
.today-row .thumb { width: 104px; grid-row: 1; grid-column: 1; }
.today-info { grid-column: 2; grid-row: 1; min-width: 0; }
.today-act { grid-column: 3; grid-row: 1; display: flex; align-items: center; gap: 10px; padding: 0; width: auto; }
.today-st { display: flex; align-items: center; gap: 8px; } .today-st em { font-style: normal; font-size: .75rem; color: var(--muted); white-space: nowrap; }
.today-act .btn { flex: none; }
@media (max-width: 600px) {
  .today-row { grid-template-columns: 92px minmax(0, 1fr); gap: 10px 12px; align-items: start; padding: 12px 0; }
  .today-row .thumb { width: 92px; grid-row: 1; margin-top: 2px; }
  .today-info b { font-size: .9375rem; }
  .today-meta { gap: 4px 8px; font-size: .75rem; }
  .today-act { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; margin-top: 0; padding-left: 0; width: 100%; }
}
@media (max-width: 380px) { .today-row { grid-template-columns: 80px minmax(0, 1fr); } .today-row .thumb { width: 80px; } }


/* ── Practice quiz card ─────────────────────────────────────────────
   Phone: a list row  — thumbnail · text · round play button.
   ≥600px: a tile     — inset thumbnail on top, text, meta + actions in the footer.
   --h (from the topic) tints the topic label so it matches the generated thumbnail. */
.pq-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
.pq { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; grid-template-areas: "media body act"; align-items: center; gap: 0 12px;
  padding: 10px 12px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.pq:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: hsl(var(--h) 45% 82%); }
.pq-media { grid-area: media; } .pq-media .thumb { border-radius: 10px; }
.pq-body { grid-area: body; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pq-topic { align-self: flex-start; max-width: 100%; padding: 2px 8px; border-radius: 6px; font-size: .625rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: hsl(var(--h) 60% 30%); background: hsl(var(--h) 70% 94%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pq-title { font-size: .9375rem; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pq-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: .75rem; color: var(--muted); font-weight: 500; }
.pq-meta span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; } .pq-meta svg { width: 13px; height: 13px; color: var(--faint); }
.pq-dif::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.pq-dif.easy::before { background: var(--primary); } .pq-dif.medium::before { background: #e0a100; } .pq-dif.hard::before { background: var(--danger); }
.pq-act { grid-area: act; display: flex; align-items: center; gap: 8px; } .pq-act form { display: block; }
.pq-play { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #12a37c, var(--primary-hover)); box-shadow: 0 8px 16px -6px rgba(14,138,105,.55), inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .15s ease, box-shadow .15s ease; }
.pq-play svg { width: 16px; height: 16px; fill: currentColor; stroke: none; margin-left: 2px; }
.pq-play:hover { transform: scale(1.07); box-shadow: 0 10px 20px -6px rgba(14,138,105,.6), inset 0 1px 0 rgba(255,255,255,.22); } .pq-play:active { transform: scale(.95); }
.pq-room { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); background: var(--surface); transition: all .15s ease; }
.pq-room svg { width: 17px; height: 17px; } .pq-room:hover { color: var(--primary); background: var(--primary-soft); border-color: var(--primary-line); }
.pq-skel .pq-body { gap: 6px; }
@media (max-width: 599px) { .pq-room { display: none; } }
@media (max-width: 360px) { .pq { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 0 10px; } .pq-play { width: 38px; height: 38px; } }
@media (min-width: 600px) {
  .pq-grid { grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 14px; }
  .pq { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "media media" "topic topic" "title title" "meta act"; align-items: end; gap: 0; padding: 8px 8px 12px; }
  .pq-body { display: contents; }
  .pq-media { margin-bottom: 12px; }
  .pq-topic { grid-area: topic; margin: 0 6px 6px; }
  .pq-title { grid-area: title; margin: 0 6px; min-height: 2.6em; }
  .pq-meta { grid-area: meta; margin: 10px 6px 0; align-self: center; }
  .pq-act { grid-area: act; margin: 10px 4px 0 0; }
}
@media (min-width: 600px) {
  .pq-grid { grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); }
  .pq-topic { justify-self: start; }
  .pq-meta { gap: 2px 8px; flex-wrap: nowrap; overflow: hidden; }
}
.pq-dif2 { display: none; }
.pq-dif { display: inline-flex; align-items: center; gap: 5px; }
@media (min-width: 600px) {
  .pq { grid-template-areas: "media media" "topic dif" "title title" "meta act"; }
  .pq-dif1 { display: none !important; }
  .pq-dif2 { display: inline-flex; grid-area: dif; justify-self: end; align-self: center; margin: 0 6px 6px 0; font-size: .75rem; font-weight: 600; color: var(--muted); }
}
@media (max-width: 599px) { .pq .pq-dif2 { display: none; } }

/* ── Wide pages (practice library) ── */
.is-wide .wrap { max-width: 1120px; }
.page-head { margin: 2px 2px 14px; } .page-head h1 { font-size: 1.5rem; } .page-head p { font-size: .9375rem; margin-top: 2px; }
.lib-grid { margin-top: 14px; }
@media (max-width: 599px) {
  .lib-grid .pq-act { flex-direction: column-reverse; gap: 6px; }
  .lib-grid .pq-room { display: grid; width: 34px; height: 34px; }
}

/* ── Refer & earn ── */
.pill.off { background: var(--surface2); color: var(--faint); }
.rf-hero { text-align: center; padding: 22px 18px 18px; }
.rf-badge { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #12a37c, var(--primary-hover)); box-shadow: 0 10px 22px -8px rgba(14,138,105,.6); }
.rf-badge svg { width: 26px; height: 26px; }
.rf-hero h1 { font-size: 1.375rem; }
.rf-gets { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.rf-gets div { min-width: 104px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.75); border: 1px solid var(--hero-line); }
.rf-gets b { display: block; font-size: 1.625rem; font-weight: 800; letter-spacing: -.02em; color: var(--primary); line-height: 1.1; font-variant-numeric: tabular-nums; }
.rf-gets span { font-size: .75rem; color: var(--muted); font-weight: 600; } .rf-gets i { font-style: normal; font-size: 1.25rem; color: var(--faint); font-weight: 700; }
.rf-sub { margin-top: 10px; font-size: .8125rem; color: var(--muted); }
.rf-share { margin-top: 16px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: left; display: grid; gap: 10px; }
.rf-link { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 5px 0 12px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); }
.rf-link-ic svg { width: 17px; height: 17px; color: var(--faint); }
.rf-url { flex: 1; min-width: 0; font-family: var(--mono); font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-copy { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: var(--primary); color: #fff; font-size: .8125rem; font-weight: 650; }
.rf-copy:hover { background: var(--primary-hover); } .rf-copy svg { width: 15px; height: 15px; }
.rf-course { height: 42px; font-size: .875rem; border-radius: 12px; }
.rf-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.rf-app { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: .8125rem; font-weight: 650; transition: background .15s, border-color .15s; }
.rf-app svg { width: 17px; height: 17px; } .rf-app:hover { background: var(--surface2); }
.rf-app.tg svg { color: #229ed9; } .rf-app.wa svg { color: #25d366; } .rf-app.mo svg { color: var(--muted); }
.rf-code { display: flex; align-items: center; gap: 8px; padding-top: 2px; font-size: .8125rem; color: var(--muted); }
.rf-code b { margin-left: auto; font-family: var(--mono); letter-spacing: .2em; color: var(--text); font-size: .9375rem; }
.rf-code button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--muted); }
.rf-code button svg { width: 15px; height: 15px; }
.rf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.rf-stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; box-shadow: var(--shadow); }
.rf-stats b { display: block; font-size: 1.25rem; font-weight: 750; margin-top: 4px; font-variant-numeric: tabular-nums; } .rf-stats small { font-size: .6875rem; color: var(--muted); font-weight: 600; }
.ri { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; } .ri svg { width: 17px; height: 17px; }
.rf-stats .ri { width: 30px; height: 30px; border-radius: 9px; } .rf-stats .ri svg { width: 15px; height: 15px; }
@media (max-width: 480px) { .rf-stats { gap: 6px; } .rf-stats > div { padding: 10px 4px; border-radius: 12px; } .rf-stats .ri { display: none; } .rf-stats b { margin-top: 0; font-size: 1.125rem; } .rf-stats small { font-size: .625rem; line-height: 1.2; display: block; } }
.rf-steps { list-style: none; display: grid; gap: 8px; }
.rf-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.rf-steps b { font-size: .9375rem; } .rf-steps p { font-size: .8125rem; color: var(--muted); margin-top: 1px; }
@media (min-width: 720px) { .rf-steps { grid-template-columns: repeat(3, 1fr); } .rf-steps li { flex-direction: column; align-items: flex-start; } }
.rf-list { padding: 4px 14px; }
.rf-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; } .rf-row + .rf-row { border-top: 1px solid var(--line); }
.rf-row .grow { flex: 1; min-width: 0; } .rf-row b { display: block; font-size: .9375rem; } .rf-row small { display: block; font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-pts { font-weight: 750; color: var(--primary); font-variant-numeric: tabular-nums; }
.faq { padding: 4px 16px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 650; font-size: .9375rem; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--faint); transition: transform .2s; } .faq details[open] summary svg { transform: rotate(180deg); color: var(--primary); }
.faq details p { padding: 0 0 14px; font-size: .875rem; color: var(--muted); line-height: 1.6; } .faq details p b { color: var(--text); } .faq details p a { color: var(--primary); font-weight: 600; }
.faq details[open] p { animation: fadeUp .22s ease-out both; }

.rf-share { grid-template-columns: minmax(0, 1fr); } .rf-share > * { min-width: 0; }
.rf-course { width: 100%; min-width: 0; text-overflow: ellipsis; }
.rf-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rf-apps:has(> [hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 380px) { .rf-copy span { display: none; } .rf-copy { padding: 0 11px; } .rf-gets div { min-width: 92px; padding: 8px 10px; } }

/* ── Points + rewards pages ── */
.pt-big { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-top: 2px; }
.pt-big b { font-size: 2.75rem; font-weight: 800; letter-spacing: -.03em; color: var(--primary); line-height: 1.05; font-variant-numeric: tabular-nums; }
.pt-big span { font-size: .875rem; color: var(--muted); font-weight: 600; }
.pt-stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.rf-hero .pt-stats > div { background: rgba(255,255,255,.75); box-shadow: none; border-color: var(--hero-line); }
@media (max-width: 480px) { .pt-stats .ri { display: none; } }
.pt-spend { display: grid; gap: 12px; }
.pt-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pt-rules > div { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface2); min-width: 0; }
.pt-rules b { display: block; font-size: .875rem; } .pt-rules small { display: block; font-size: .75rem; color: var(--muted); }
@media (max-width: 380px) { .pt-rules { grid-template-columns: 1fr; } }
.pt-example { font-size: .8125rem; color: var(--muted); padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 12px; line-height: 1.55; } .pt-example b { color: var(--text); }
.pt-spend .btn svg { width: 18px; height: 18px; }
.ri.neg { background: var(--danger-soft); color: var(--danger); } .rf-pts.neg { color: var(--danger); }
.rw-live { display: grid; gap: 8px; }
.rw-live-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; transition: border-color .15s, transform .15s; }
.rw-live-card:hover { border-color: var(--primary-line); transform: translateY(-1px); }
.rw-live-card .grow { flex: 1; min-width: 0; } .rw-live-card b { display: block; font-size: .9375rem; } .rw-live-card small { display: block; font-size: .75rem; color: var(--muted); }
.rw-live-card .ri { background: #fdf3dc; color: #b7791f; } .rw-live-card .chev { width: 18px; height: 18px; color: var(--faint); }
.rw-grants { display: grid; gap: 10px; }
.rw-grant { padding: 14px; } .rw-grant__top { display: flex; align-items: center; gap: 12px; }
.rw-grant__top .grow { flex: 1; min-width: 0; } .rw-grant__top b { display: block; font-size: .9375rem; line-height: 1.3; }
.rw-grant__top small { display: block; font-size: .75rem; color: var(--muted); } .rw-grant__top small a { text-decoration: underline; }
.rw-grant .code-box { margin-top: 12px; }
