:root {
  --bg: #000; --surface: #0e0e12; --surface-2: #16161c; --surface-3: #1f1f27;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --text: #f5f5f7; --muted: #9b9ba8; --faint: #6b6b78;
  --c1: #f6d77a; --c2: #d9a521; --c3: #b27e00; --gold: #b27e00; --ok: #32d38a; --err: #ff5a6a;
  --grad: linear-gradient(90deg, var(--c1), var(--c2) 50%, var(--c3));
  --grad-d: linear-gradient(135deg, var(--c1), var(--c2) 50%, var(--c3));
  --r: 18px; --r-sm: 12px;
  --serif: 'Lora', Georgia, serif; --sans: 'Poppins', system-ui, -apple-system, sans-serif;
  --nav-h: 64px; --safe-b: max(0px, calc(env(safe-area-inset-bottom, 0px) - 12px));
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; overscroll-behavior-x: none; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
html, body { overflow-x: hidden; width: 100%; max-width: 100%; }
body { min-height: 100dvh; position: relative; -webkit-tap-highlight-color: transparent; }
img, svg, video, canvas { max-width: 100%; }
h1, h2, h3, p, .t, .name, .notice p { overflow-wrap: break-word; hyphens: manual; }
input, select, textarea, button { font-size: 16px; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.08rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: .84rem; } .tiny { font-size: .74rem; }
.gtext { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ''; width: 28px; height: 3px; border-radius: 3px; background: var(--grad); }
.icon { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 18px; height: 18px; } .icon.lg { width: 28px; height: 28px; }

/* layout */
.app { display: flex; min-height: 100dvh; }
.main { flex: 1; min-width: 0; padding: 0 max(16px, env(safe-area-inset-right)) calc(var(--nav-h) + var(--safe-b) + 28px) max(16px, env(safe-area-inset-left)); max-width: 1100px; margin: 0 auto; width: 100%; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; margin: 0 -16px 8px; background: #000; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 32px; width: auto; display: block; image-rendering: auto; }
.topbar, .topbar * { -webkit-font-smoothing: antialiased; }
.brand b { font-family: var(--serif); font-size: 1.12rem; font-weight: 650; }
.brand small { display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: -2px; }
.topbar .spacer { flex: 1; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: .85rem; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; cursor: pointer; text-decoration: none; }
.avatar.grad { background: var(--grad-d); color: #000; border: 0; }
.nav { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 6px 4px calc(6px + var(--safe-b)); isolation: isolate; }
.nav::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(10,10,14,.82); -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px); border-top: 1px solid var(--line); pointer-events: none; }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; text-decoration: none; color: var(--faint); font-size: .66rem; font-weight: 500; border-radius: 12px; transition: color 150ms ease; -webkit-tap-highlight-color: transparent; }
.nav a.on { color: var(--text); }
.nav a.on .icon { stroke: url(#g); }
.nav .dot { position: absolute; }
.nav .nav-side-title { display: none; }
@media (min-width: 900px) {
  .nav { position: sticky; top: 0; height: 100dvh; width: 230px; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 20px 14px; border-top: 0; border-right: 1px solid var(--line); background: var(--surface); }
  .nav a { flex: none; flex-direction: row; gap: 12px; font-size: .92rem; padding: 11px 14px; color: var(--muted); }
  .nav a.on { background: var(--surface-3); }
  .nav .nav-side-title { display: flex; margin: 0 6px 18px; padding: 0; background: none; }
  .nav .nav-side-title img { height: 34px; }
  .main { padding-bottom: 48px; padding-left: 32px; padding-right: 32px; }
  .topbar { margin: 0 -32px 12px; padding: 14px 32px; }
  .topbar .brand { display: none; }
}

/* blocchi */
.section { margin: 26px 0 12px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.section h2 { font-size: 1.25rem; }
.section a { font-size: .84rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; position: relative; }
.card.pad-lg { padding: 22px; }
.card + .card { margin-top: 12px; }
.grid > .card + .card, .grid > * + .card { margin-top: 0; }
.card.link { text-decoration: none; display: block; transition: transform 160ms var(--ease-out), border-color 150ms ease; }
.card.link:active { transform: scale(.98); }
@media (hover: hover) { .card.link:hover { border-color: var(--line-2); } }
.glow { overflow: hidden; }
.glow::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% 120%, rgba(217,165,33,.30), rgba(178,126,0,.10) 45%, transparent 70%); pointer-events: none; }
.glow > * { position: relative; }
.ring { border: 0; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-d) border-box; border: 1.5px solid transparent; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 700px) { .g-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 699px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3.stack, .g2.stack { grid-template-columns: 1fr; } }
.row { display: flex; align-items: center; gap: 12px; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1; min-width: 0; }
.hr { height: 1px; background: var(--line); margin: 14px 0; border: 0; }
.stat { padding: 14px 16px; }
.stat .v { font-family: var(--serif); font-size: 1.8rem; font-weight: 650; line-height: 1.1; }
.stat .l { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 500; background: var(--surface-3); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge.g { background: var(--grad); color: #000; border: 0; font-weight: 600; }
.badge.ok { color: var(--ok); border-color: rgba(50,211,138,.3); background: rgba(50,211,138,.08); }
.badge.err { color: var(--err); border-color: rgba(255,90,106,.3); background: rgba(255,90,106,.08); }
.badge.warn { color: #ffb347; border-color: rgba(255,179,71,.3); background: rgba(255,179,71,.08); }
.progress { height: 6px; background: var(--surface-3); border-radius: 6px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: 6px; }

/* bottoni e form */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 500; font-size: .92rem; cursor: pointer; text-decoration: none; transition: transform 160ms var(--ease-out), background-color 150ms ease, opacity 150ms ease; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); color: #000; border: 0; font-weight: 600; }
.btn.white { background: #fff; color: #000; border: 0; font-weight: 600; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.danger { color: var(--err); border-color: rgba(255,90,106,.3); background: rgba(255,90,106,.06); }
.btn.sm { padding: 8px 12px; font-size: .82rem; border-radius: 11px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; flex: none; }
label.f { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
label.f > span { display: block; margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); outline: none; font-size: 16px; transition: border-color 150ms ease; }
.input:focus { border-color: var(--c2); }
textarea.input { min-height: 120px; resize: vertical; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.search { position: relative; }
.search .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search .input { padding-left: 42px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: .82rem; white-space: nowrap; cursor: pointer; color: var(--muted); }
.chip.on { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-2); transition: background-color 200ms ease, border-color 200ms ease; cursor: pointer; }
.switch i::after { content: ''; position: absolute; width: 22px; height: 22px; left: 2px; top: 2px; border-radius: 50%; background: #fff; transition: transform 200ms var(--ease-out); }
.switch input:checked + i { background: var(--c2); border-color: var(--c2); }
.switch input:checked + i::after { transform: translateX(20px); }

/* liste */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.li:last-child { border-bottom: 0; }
.li .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); flex: none; }
.li .ic.g { background: var(--grad-d); color: #000; }
.li .t { font-weight: 500; } .li .s { font-size: .8rem; color: var(--muted); }
.rank { width: 30px; text-align: center; font-family: var(--serif); font-weight: 650; color: var(--muted); flex: none; }
.rank.r1 { color: var(--c1); } .rank.r2 { color: #d8d8e0; } .rank.r3 { color: #e0946a; }
.pts { font-family: var(--serif); font-weight: 650; font-size: 1.1rem; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; color: var(--faint); margin-bottom: 8px; }

/* hero */
.hero { padding: 24px 22px; }
.hero h1 { font-size: 1.75rem; margin: 8px 0 6px; }
.week-card .big { font-family: var(--serif); font-size: 2.6rem; font-weight: 650; line-height: 1; }

/* news */
.news { display: flex; gap: 14px; text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.news:last-child { border-bottom: 0; }
.news img, .news .ph { width: 92px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface-3); }
.news .t { font-weight: 600; font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news .m { font-size: .74rem; color: var(--faint); margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.news .x { font-size: .82rem; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 700px) { .news img, .news .ph { width: 150px; height: 100px; } }

/* corsi */
.module { display: flex; gap: 14px; align-items: center; }
.module .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-3); flex: none; }
.module.done .ic { background: var(--grad-d); color: #000; }
.lesson-body { font-size: 1rem; line-height: 1.7; }
.lesson-body p { margin: 0 0 1em; }
.lesson-body ul { margin: 0 0 1em; padding-left: 1.2em; }
.lesson-body li { margin: .35em 0; }
.lesson-body li::marker { color: var(--c2); }
.lesson-body strong { color: #fff; font-weight: 600; }

/* quiz */
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; margin-bottom: 10px; transition: border-color 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out); font-size: .96rem; }
.opt:active { transform: scale(.99); }
.opt .k { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: .8rem; font-weight: 600; flex: none; color: var(--muted); }
.opt.sel { border-color: var(--c2); background: rgba(217,165,33,.1); }
.opt.sel .k { background: var(--c2); color: #000; border-color: var(--c2); }
.opt.right { border-color: var(--ok); background: rgba(50,211,138,.08); }
.opt.right .k { background: var(--ok); color: #000; border-color: var(--ok); }
.opt.wrong { border-color: var(--err); background: rgba(255,90,106,.08); }
.opt.wrong .k { background: var(--err); color: #000; border-color: var(--err); }
.opt[disabled] { cursor: default; }
.timer { font-variant-numeric: tabular-nums; font-weight: 600; }
.timer.low { color: var(--err); }
.qdots { display: flex; gap: 5px; flex-wrap: wrap; }
.qdots i { width: 26px; height: 6px; border-radius: 4px; background: var(--surface-3); }
.qdots i.a { background: var(--muted); } .qdots i.c { background: var(--grad); }
.score-ring { width: 150px; height: 150px; margin: 6px auto 12px; position: relative; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .in { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.score-ring .in b { font-family: var(--serif); font-size: 2.4rem; display: block; line-height: 1; }

/* podio */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; margin: 8px 0 16px; }
.podium > div { text-align: center; }
.podium .av { width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--surface-3); border: 2px solid var(--line-2); }
.podium .p1 .av { width: 66px; height: 66px; background: var(--grad-d); color: #000; border: 0; font-size: 1.2rem; }
.podium .bar { border-radius: 14px 14px 6px 6px; background: var(--surface-2); border: 1px solid var(--line); padding: 10px 4px; }
.podium .p1 .bar { height: 104px; } .podium .p2 .bar { height: 78px; } .podium .p3 .bar { height: 62px; }
.podium .n { font-weight: 600; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* telefoni */
.phone-card { display: flex; flex-direction: column; gap: 10px; }
.phone-card .head { display: flex; gap: 10px; align-items: flex-start; }
.phone-card .brand-s { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.phone-card .name { font-family: var(--serif); font-weight: 650; font-size: 1.12rem; line-height: 1.25; }
.phone-card .price { font-family: var(--serif); font-weight: 650; font-size: 1.05rem; }
.specs-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: .78rem; color: var(--muted); }
.specs-mini span { display: flex; gap: 6px; align-items: center; min-width: 0; }
.specs-mini span b { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-toggle { border: 1px solid var(--line-2); background: transparent; border-radius: 10px; padding: 7px 11px; font-size: .78rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.cmp-toggle.on { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.cmp-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + var(--safe-b) + 12px); z-index: 35; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 18px; background: rgba(28,28,36,.96); border: 1px solid var(--line-2); box-shadow: 0 12px 40px rgba(0,0,0,.6); width: min(560px, calc(100% - 24px)); }
@media (min-width: 900px) { .cmp-bar { bottom: 20px; margin-left: 115px; } }
.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 44%; padding-right: 12px; }
.spec-group { font-family: var(--serif); font-size: 1.02rem; margin: 22px 0 4px; }
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
.cmp { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: .86rem; }
.cmp th, .cmp td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; min-width: 132px; vertical-align: top; }
.cmp th:first-child, .cmp td:first-child { position: sticky; left: 0; background: var(--bg); z-index: 2; min-width: 112px; max-width: 120px; color: var(--muted); font-weight: 500; font-size: .8rem; }
.cmp thead th { position: sticky; top: 0; background: var(--bg); z-index: 3; vertical-align: bottom; }
.cmp thead th:first-child { z-index: 4; }
.cmp td.best { color: #fff; font-weight: 600; }
.cmp td.best::after { content: '★'; margin-left: 6px; font-size: .8rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cmp tr.grp td { font-family: var(--serif); color: var(--text); font-size: .95rem; padding-top: 18px; border-bottom: 0; }
.winner-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.winner-card .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); flex: none; }

/* modal, toast */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.65); display: flex; align-items: flex-end; justify-content: center; animation: fade 250ms var(--ease-out); transition: opacity 200ms var(--ease-out); }
.modal-bg.closing { opacity: 0; pointer-events: none; }
.modal { width: 100%; max-width: 620px; max-height: 92dvh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px)); animation: sheetIn 400ms var(--ease-drawer); transition: transform 200ms var(--ease-out); }
.modal-bg.closing .modal { transform: translateY(100%); }
@media (min-width: 700px) { .modal { animation: modalIn 250ms var(--ease-out); } .modal-bg.closing .modal { transform: scale(.96); } }
@keyframes sheetIn { from { transform: translateY(100%); } }
@keyframes modalIn { from { transform: scale(.96); opacity: 0; } }
@media (min-width: 700px) { .modal-bg { align-items: center; } .modal { border-radius: 22px; } }
.modal .grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: -6px auto 14px; }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; z-index: 200; left: 50%; top: calc(16px + env(safe-area-inset-top, 0px)); translate: -50% 0; padding: 12px 18px; border-radius: 14px; background: #fff; color: #000; font-weight: 500; font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: toastIn 400ms ease; transition: opacity 200ms ease, transform 200ms var(--ease-out); max-width: calc(100% - 32px); }
.toast.err { background: var(--err); color: #000; }
.toast.out { opacity: 0; transform: translateY(-12px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-100%); } }
.fade-in { animation: fadein 200ms var(--ease-out) both; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 120ms !important; animation-duration: 160ms !important; animation-iteration-count: 1 !important; }
  .fade-in, .modal, .toast { animation-name: fade !important; }
  .btn:active, .card.link:active, .opt:active { transform: none; }
  .confetti, .pin-dots.shake { display: contents; animation: none !important; }
  .loader i { animation: spin .8s linear infinite !important; }
  .modal-bg.closing .modal { transform: none; }
}
@media (prefers-reduced-transparency: reduce) { .nav::before { background: #000; backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* login */
.auth { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(28px + env(safe-area-inset-top, 0px)) 18px calc(28px + env(safe-area-inset-bottom, 0px)); position: relative; overflow: hidden; }
.auth::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 45% at 50% 0%, rgba(217,165,33,.26), rgba(178,126,0,.08) 50%, transparent 75%); pointer-events: none; }
.auth-box { width: 100%; max-width: 420px; position: relative; }
.auth-logo { width: 230px; max-width: 70%; height: auto; display: block; margin: 0 auto 22px; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; font-size: .84rem; font-weight: 500; text-align: center; }
.person .av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font-weight: 600; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 18px 0 22px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: background-color 120ms ease, border-color 120ms ease, transform 160ms var(--ease-out); }
.pin-dots i.on { background: var(--grad-d); border-color: transparent; transform: scale(1.1); }
.pin-dots.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 300px; margin: 0 auto; }
.keypad button { height: 66px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); font-size: 1.5rem; font-weight: 500; cursor: pointer; aspect-ratio: 1; justify-self: center; width: 66px; }
.keypad button { transition: background-color 100ms ease, transform 160ms var(--ease-out); }
.keypad button:active { background: var(--surface-3); transform: scale(.94); }
.keypad button.fn { background: transparent; border: 0; font-size: .9rem; color: var(--muted); }

/* misc */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars i { width: 100%; max-width: 38px; border-radius: 8px 8px 4px 4px; background: var(--grad-d); min-height: 4px; }
.bars span { font-size: .66rem; color: var(--faint); }
.hbar { height: 8px; background: var(--surface-3); border-radius: 6px; overflow: hidden; }
.hbar i { display: block; height: 100%; border-radius: 6px; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th { text-align: left; font-weight: 500; color: var(--faint); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 8px 11px 0; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.bdg { text-align: center; padding: 14px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: .74rem; color: var(--faint); }
.bdg .e { font-size: 1.7rem; display: block; margin-bottom: 4px; filter: grayscale(1); opacity: .35; }
.bdg.on { color: var(--text); border-color: rgba(217,165,33,.45); }
.bdg.on .e { filter: none; opacity: 1; }
.tip { border-left: 3px solid var(--c2); padding: 2px 0 2px 14px; }
.card.tip { border-left: 3px solid var(--c2); padding-left: 16px; }
.notice { padding: 16px; }
.notice h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.notice p { color: var(--muted); font-size: .9rem; white-space: pre-line; margin: 0; }
.loader { display: grid; place-items: center; padding: 60px 0; }
.loader i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--c2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 150; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: .88rem; margin: 6px 0 4px; }
details.faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
details.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--muted); font-size: 1.2rem; line-height: 1; }
details.faq[open] summary::after { content: '–'; }
details.faq p { color: var(--muted); margin: 10px 0 0; }
.kbd { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; background: var(--surface-3); padding: 2px 6px; border-radius: 6px; }
pre.code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; overflow-x: auto; font-size: .76rem; color: var(--muted); }

@media (max-width: 380px) {
  .main { padding-left: 12px; padding-right: 12px; }
  .topbar { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
  h1 { font-size: 1.6rem; } .hero h1 { font-size: 1.5rem; }
  .stat { padding: 12px; } .stat .v { font-size: 1.45rem; }
  .card { padding: 15px; }
  .keypad button { width: 60px; height: 60px; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .nav a { font-size: .6rem; }
  .cmp-wrap { margin: 0 -12px; padding: 0 12px; }
}
.table-wrap { -webkit-overflow-scrolling: touch; max-width: 100%; }
.modal { overscroll-behavior: contain; }

.row > div, .module > div, .li > .grow { min-width: 0; }
.quick .card { padding: 14px 16px; }
@media (max-width: 699px) { .quick { grid-template-columns: 1fr; gap: 8px; } }
