@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bg: #061830;
  --bg-2: #071D3A;
  --card: #0B2445;
  --card-2: #081F3D;
  --line: #16365F;
  --line-2: #1D4374;
  --line-3: #2A4C78;
  --text: #F3F7FD;
  --text-2: #C5D3E6;
  --muted: #A3B6D1;
  --faint: #8DA2C0;
  --blue: #0094FF;
  --blue-btn: #0B6FD8;
  --blue-btn-hover: #0A5FBA;
  --blue-soft: #10305A;
  --blue-today: #0B3B73;
  --link: #7CC4FF;
  --gold: #FFC83D;
  --gold-soft: #2A230B;
  --gold-line: #5C4A16;
  --gold-text: #F3E2B0;
  --join-bg: #3A2E0A;
  --join-fg: #FFD771;
  --error: #FFB199;
  --error-bg: #2E1A17;
  --error-line: #5A3530;
  --ok: #9FE3C1;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Outfit', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); }
body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--link); }
a:hover { color: #B8DEFF; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
button { font-family: var(--sans); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; width: 100%; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 48px 24px 80px; width: 100%; }
main { flex: 1; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); position: relative; z-index: 1; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-name .of { color: var(--muted); font-weight: 500; }
.logo { position: relative; display: block; width: 36px; height: 36px; flex: none; }
.logo img { width: 100%; height: 100%; display: block; }
.logo .hat { position: absolute; top: -42%; left: -14%; width: 83%; height: auto; transform: rotate(-18deg); }
.logo-lg { width: 56px; height: 56px; }
.me-pill { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; }
.me-stars { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-weight: 700; color: var(--gold); font-size: 15px; }
.avatar { width: 32px; height: 32px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--bg); flex: none; text-transform: uppercase; }
.avatar.me { background: var(--blue-btn); color: #fff; }
.header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.link-btn { background: none; border: 0; padding: 10px 0; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.link-btn:hover { color: var(--text); }

/* Shared bits */
.eyebrow { font-family: var(--mono); font-size: 14px; color: var(--link); letter-spacing: 0.08em; text-transform: uppercase; }
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: 20px; padding: 24px; }
.chip { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.chip.quiz { background: var(--blue-soft); color: var(--link); }
.chip.join { background: var(--join-bg); color: var(--join-fg); }
.chip.lg { font-size: 13px; padding: 8px 14px; }
.btn { height: 56px; padding: 0 28px; border: 0; border-radius: 14px; background: var(--blue-btn); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn:hover { background: var(--blue-btn-hover); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.sm { height: 48px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn.gold { background: var(--gold); color: var(--gold-soft); }
.ghost { height: 44px; padding: 0 16px; border: 1px solid var(--line-3); border-radius: 12px; background: transparent; color: var(--text-2); font-size: 15px; font-weight: 600; cursor: pointer; }
.ghost:hover { background: var(--blue-soft); }
.danger { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--error-line); background: transparent; color: var(--error); font-size: 14px; font-weight: 600; cursor: pointer; }
.danger:hover { background: var(--error-bg); }
.danger:disabled, .ghost:disabled { opacity: 0.35; cursor: not-allowed; background: transparent; }
.field { height: 52px; width: 100%; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-3); background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; }
textarea.field { height: auto; padding: 12px 16px; line-height: 1.5; resize: vertical; }
.field::placeholder { color: #7F96B8; }
.field.invalid, .field-group.invalid { border-color: var(--error); }
.field.mono { font-family: var(--mono); }
.field.pin { width: 160px; font-family: var(--mono); font-size: 22px; letter-spacing: 0.4em; }
label.lbl { font-size: 14px; font-weight: 600; color: var(--text-2); }
.help { font-size: 13px; color: var(--muted); line-height: 1.5; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.err { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--error); }
.err:empty { display: none; }
.hidden { display: none !important; }
.loading { padding: 80px 24px; text-align: center; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.starfield { position: absolute; inset: 0 0 auto 0; height: 560px; pointer-events: none; }

/* Calendar page */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; padding-top: 72px; padding-bottom: 48px; position: relative; }
.hero-text { flex: 999 1 560px; min-width: 0; }
.hero h1 { font-size: clamp(48px, 8vw, 76px); line-height: 0.98; font-weight: 800; letter-spacing: -0.035em; margin-top: 16px; }
.hero h1 span { color: var(--blue); }
.hero-lede { margin-top: 24px; max-width: 560px; font-size: 20px; line-height: 1.5; color: var(--text-2); }
.hero-card { flex: 1 1 320px; min-width: 0; }
.countdown { margin-top: 6px; font-family: var(--mono); font-size: 44px; font-weight: 700; letter-spacing: -0.02em; }
.divider { height: 1px; background: var(--line-2); margin: 20px 0; }
.progress { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.progress svg { width: 100%; height: auto; display: block; }
.cal-section { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 8px; padding-bottom: 72px; position: relative; }
.cal-main { flex: 999 1 640px; min-width: 0; }
.cal-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.cal-head h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; min-height: 148px; padding: 14px; border-radius: 16px; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line-2); transition: transform .15s ease, border-color .15s ease; }
a.tile:hover { transform: translateY(-3px); border-color: var(--blue); color: var(--text); }
.tile .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile .num { font-family: var(--mono); font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.tile .status { font-size: 13px; font-weight: 600; color: var(--muted); }
.tile.today { background: var(--blue-today); border-color: var(--blue); }
.tile.today .status { color: var(--link); }
.tile.solved { background: #0E2A4D; border-color: var(--gold-line); }
.tile.solved .status { color: var(--gold); }
.tile.locked, .tile.empty { background: var(--card-2); border: 1px dashed var(--line-3); color: var(--faint); }
.tile.locked .num, .tile.empty .num { color: #6F87A8; }
.tile.locked .status, .tile.empty .status { color: var(--faint); font-weight: 400; }
.aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.aside h2 { font-size: 20px; font-weight: 700; }
.leaders { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.leaders li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.leaders li.you { background: var(--blue-soft); }
.leaders .rank { width: 22px; font-family: var(--mono); font-size: 14px; color: var(--muted); }
.leaders .name { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.how { border-top: 1px solid var(--line); background: var(--bg-2); }
.how .wrap { padding-top: 72px; padding-bottom: 72px; }
.how h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 32px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.how-grid .card { padding: 28px; }
.how-grid .n { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--blue); }
.how-grid h3 { margin: 12px 0 8px; font-size: 22px; font-weight: 700; }
.how-grid p { font-size: 16px; line-height: 1.55; color: var(--text-2); }

/* Day page */
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; text-decoration: none; padding: 10px 0; }
.day-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 20px 0 28px; }
.day-head h1 { font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -0.035em; margin-top: 8px; }
.q-card { background: var(--card); border: 1px solid var(--line-2); border-radius: 24px; padding: 40px; position: relative; overflow: hidden; }
.q-card .bigstar { position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; opacity: 0.08; }
.q-label { font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.q-text { font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; max-width: 620px; position: relative; white-space: pre-line; }
.q-help { margin-top: 16px; font-size: 16px; line-height: 1.55; color: var(--text-2); max-width: 620px; }
.answer-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.answer-row .stack { flex: 1 1 280px; min-width: 0; }
.answer-row .field { height: 56px; font-family: var(--mono); font-size: 18px; border-radius: 14px; }
.wrong-row { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.success { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 24px; border-radius: 18px; background: var(--gold-soft); border: 1px solid var(--gold-line); }
.success .t { font-size: 26px; font-weight: 800; color: var(--gold); letter-spacing: -0.01em; }
.success p.s { margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--gold-text); }
.gaveup { margin-top: 32px; padding: 20px 24px; border-radius: 18px; background: var(--card-2); border: 1px solid var(--line-3); }
.answers { margin-top: 24px; background: var(--card); border: 1px solid var(--line-2); border-radius: 24px; padding: 32px; }
.answers-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.answers-head h2 { font-size: 24px; font-weight: 700; }
.correct-box { padding: 10px 16px; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--gold-line); font-size: 13px; color: var(--gold-text); }
.correct-box b { margin-left: 8px; font-family: var(--mono); font-size: 18px; color: var(--gold); }
.ans-list { list-style: none; margin: 0; padding: 0; }
.ans-list li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 8px; border-top: 1px solid var(--line); }
.ans-list li.you { background: var(--blue-today); border-radius: 12px; }
.ans-list .who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.ans-list .who b { font-size: 16px; font-weight: 600; }
.ans-list .who span { font-size: 13px; color: var(--muted); }
.ans-list .a { margin-top: 4px; font-size: 16px; line-height: 1.5; color: #E0E8F3; overflow-wrap: anywhere; white-space: pre-line; }
.ans-list .a.mono { font-size: 17px; }
.mark { flex: none; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 999px; }
.mark.ok { background: var(--gold-soft); color: var(--gold); }
.mark.no { background: var(--error-bg); color: var(--error); }
.day-nav { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.day-nav a, .day-nav div { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line-2); text-decoration: none; min-width: 180px; }
.day-nav div { border-style: dashed; border-color: var(--line-3); }
.day-nav .small { font-size: 13px; color: var(--muted); }
.day-nav .big { font-size: 17px; font-weight: 700; color: var(--text); }
.day-nav div .big { color: var(--faint); }
.day-nav .right { text-align: right; margin-left: auto; }

/* Leaderboard */
.lb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.lb-head h1 { font-size: 60px; line-height: 1; font-weight: 800; letter-spacing: -0.035em; margin-top: 10px; }
.stat { padding: 14px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); }
.stat p:first-child { font-size: 13px; color: var(--muted); }
.stat p:last-child { margin-top: 4px; font-family: var(--mono); font-size: 26px; font-weight: 700; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px; background: var(--gold-soft); border: 1px solid var(--gold-line); margin-bottom: 24px; color: var(--gold-text); font-size: 16px; }
.banner strong { color: var(--gold); }
.table-box { background: var(--card); border: 1px solid var(--line-2); border-radius: 20px; overflow-x: auto; }
table.lb { width: 100%; min-width: 860px; border-collapse: collapse; }
table.lb th { text-align: left; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; padding: 18px 12px; }
table.lb th:first-child, table.lb td:first-child { padding-left: 20px; width: 56px; }
table.lb th:last-child, table.lb td:last-child { padding-right: 20px; text-align: right; }
table.lb td { padding: 14px 12px; border-top: 1px solid var(--line); }
table.lb tr.you td { background: var(--blue-today); }
.strip { display: grid; grid-template-columns: repeat(24, 16px); gap: 4px; }
.who-cell { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; white-space: nowrap; }

/* Login */
.login-body { position: relative; overflow: hidden; align-items: center; justify-content: center; padding: 48px 16px; }
.login-body .starfield { height: 100%; inset: 0; }
.login { position: relative; width: 100%; max-width: 440px; }
.login-top { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 32px; }
.login-top h1 { margin-top: 20px; font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.login-top h1 .of { color: var(--muted); font-weight: 600; }
.login-top h1 .bl { color: var(--blue); }
.login-top .sub { margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--text-2); }
.login-top .steps { margin-top: 14px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); }
.login-card { background: var(--card); border: 1px solid var(--line-2); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.login-card .btn { height: 54px; width: 100%; }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.tabs button { height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 15px; font-weight: 600; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--blue-soft); color: var(--text); }
.email-group { display: flex; align-items: stretch; height: 52px; border-radius: 12px; border: 1px solid var(--line-3); background: var(--bg); overflow: hidden; }
.email-group:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.email-group input { flex: 1 1 auto; min-width: 0; padding: 0 4px 0 16px; border: 0; background: transparent; color: var(--text); font-family: var(--sans); font-size: 17px; outline: none; }
.email-group input::placeholder { color: #7F96B8; }
.email-group span { display: flex; align-items: center; padding: 0 16px 0 12px; border-left: 1px solid var(--line); background: var(--card); color: var(--text-2); font-size: 17px; white-space: nowrap; }
.center { text-align: center; }

/* Admin */
.admin-badge { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--gold); color: var(--gold-soft); }
.admin-who { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.admin-who strong { color: var(--text); font-weight: 600; }
.admin-main { max-width: 1280px; margin: 0 auto; padding: 48px 24px 80px; width: 100%; }
.admin-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.admin-col-l { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.admin-col-r { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.kind-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.kind-pick button { height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-3); background: transparent; color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; }
.kind-pick button[data-kind="quiz"][aria-pressed="true"] { background: var(--blue-soft); border-color: var(--blue); }
.kind-pick button[data-kind="join"][aria-pressed="true"] { background: var(--join-bg); border-color: var(--gold); }
.bank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bank li { padding: 16px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.bank .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.bank .meta .un { color: var(--faint); }
.bank .q { font-size: 16px; line-height: 1.45; white-space: pre-line; }
.bank .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.bank .ans { font-family: var(--mono); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.sched { list-style: none; margin: 0; padding: 0; }
.sched li { display: grid; grid-template-columns: 168px minmax(0, 1fr) 44px 84px; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.sched .d { display: flex; flex-direction: column; gap: 2px; }
.sched .d b { font-family: var(--mono); font-size: 16px; }
.sched .d span { font-size: 14px; color: var(--text-2); }
.sched select { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-3); background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; }
.sched select.empty { border-color: var(--error-line); }
.sched select:disabled { color: var(--faint); }
.clear-day { width: 44px; height: 44px; flex: none; border-radius: 10px; border: 1px solid var(--line-3); background: transparent; color: var(--text-2); font-size: 22px; line-height: 1; cursor: pointer; }
.clear-day:hover { background: var(--error-bg); border-color: var(--error-line); color: var(--error); }
.clear-day-spacer { width: 44px; flex: none; }
.sched .st { text-align: right; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.day-select { height: 44px; min-width: 0; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-3); background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; }
.day-select.none { border-color: var(--error-line); color: var(--text-2); }
.day-select:disabled { color: var(--faint); }
.day-pick { display: flex; align-items: center; gap: 8px; flex: 1 1 240px; min-width: 0; max-width: 340px; }
.day-pick .day-select { flex: 1 1 auto; }
.bank li .st { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-left: auto; }
.bank li.flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 40% { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 200, 61, 0.25); } 100% { border-color: var(--line); box-shadow: none; } }
.glance { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.glance .cell { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--text); min-height: 52px; }
.glance .cell b { font-family: var(--mono); font-size: 16px; }
.glance .cell span { font-size: 12px; color: var(--muted); }
.glance .cell.filled { background: #0E2E3A; border: 1px solid #2F6B5A; }
.glance a.cell:hover { border-color: var(--blue); color: var(--text); }
.glance .cell.empty { border: 1px dashed var(--error-line); color: var(--error); }
.glance .cell.opened { background: var(--card-2); border: 1px solid var(--line); color: var(--faint); }
.players { width: 100%; border-collapse: collapse; font-size: 15px; }
.players th { text-align: left; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; padding: 8px 8px; }
.players td { padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.players td.email { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.newpin { font-family: var(--mono); font-weight: 700; color: var(--gold); font-size: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--card); border: 1px solid var(--line-3); padding: 12px 18px; border-radius: 12px; font-size: 15px; z-index: 10; max-width: calc(100% - 32px); }
.toast.bad { border-color: var(--error-line); color: var(--error); }

@media (max-width: 600px) {
  .q-card { padding: 24px; }
  .q-text { font-size: 26px; }
  .day-head h1, .lb-head h1 { font-size: 44px; }
  .answers { padding: 20px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
  .tile { min-height: 118px; }
  .tile .num { font-size: 34px; }
  .sched li { grid-template-columns: minmax(0, 1fr) 44px; }
  .sched .d { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: baseline; }
  .sched .st { grid-column: 1 / -1; text-align: left; }
}
