:root {
  --bg: #0B0B0C;
  --surface: #141416;
  --text: #F4F4F1;
  --mute: #8A8A86;
  --line: #2A2A2E;
  --heat: #C8F135;
  --dead: #FF4D4D;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
html { scroll-padding-top: calc(64px + var(--safe-top) + var(--update-space, 0px)); scroll-padding-bottom: calc(108px + var(--safe-bot)); }
body.vk {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--heat); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
button, input { font-family: inherit; }
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  background: var(--bg);
}
.word { font-weight: 800; letter-spacing: 0.14em; font-size: 13px; }
.pill {
  background: var(--surface); border: 1px solid var(--line);
  color: var(--heat); font-weight: 800; font-size: 14px;
  padding: 6px 10px; border-radius: 999px;
}
.app-update {
  position: sticky; top: calc(52px + var(--safe-top)); z-index: 35;
  display: flex; align-items: center; gap: 12px;
  margin: 8px 16px 12px; padding: 12px;
  background: var(--surface); border: 1px solid var(--heat); border-radius: 14px;
}
.app-update p { margin: 0; flex: 1; font-size: 14px; line-height: 1.4; }
.app-update button {
  flex: 0 0 auto; min-height: 44px; padding: 10px 12px;
  background: var(--heat); color: var(--bg); border: 0; border-radius: 10px;
  font-size: 14px; font-weight: 800; cursor: pointer;
}
.app-update button:disabled { cursor: wait; }
@media (max-width: 340px) { .app-update { flex-direction: column; align-items: stretch; } }
.tabs {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: 430px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #0B0B0C; border-top: 1px solid var(--line);
  padding: 8px 8px calc(8px + var(--safe-bot));
  z-index: 30;
}
.tab {
  display: flex; align-items: center; justify-content: center;
  color: var(--mute); font-size: 12px; font-weight: 600;
  min-height: 44px;
}
.tab.on { color: var(--heat); }
.page { padding: 8px 16px calc(108px + var(--safe-bot)); }
.chip {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute);
  margin: 8px 0 14px;
}
.h { font-size: 28px; font-weight: 900; letter-spacing: -0.03em; margin: 0 0 8px; line-height: 1.05; }
.lede { font-size: 16px; line-height: 1.4; color: var(--mute); margin: 0 0 16px; }
.match { text-align: center; margin: 4px 0 18px; }
.match .nm {
  font-weight: 900; letter-spacing: -0.04em; line-height: 0.92;
  font-size: clamp(40px, 12vw, 64px);
}
.match .at { color: var(--mute); font-weight: 800; font-size: 18px; margin: 8px 0; }
.locks { display: flex; flex-direction: column; gap: 12px; }
.lock {
  width: 100%; min-height: 72px;
  border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text);
  font-size: 22px; font-weight: 700; letter-spacing: 0.04em;
  cursor: pointer;
}
.lock:active { transform: scale(0.97); }
.lock.on { background: var(--heat); color: var(--bg); border-color: var(--heat); }
.lock:disabled { cursor: default; }
.lock.dim, .lock:disabled:not(.on) { opacity: 0.38; }
.line { text-align: center; color: var(--mute); font-size: 16px; margin: 16px 0 0; }
.share, .cta {
  width: 100%; min-height: 72px; margin-top: 14px; border: 0; border-radius: 14px;
  background: var(--heat); color: var(--bg); font-size: 22px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.ghost {
  width: 100%; min-height: 52px; margin-top: 10px; border-radius: 14px;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  font-size: 16px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.legal { color: var(--mute); font-size: 12px; line-height: 1.45; margin-top: 28px; }
.legal a { text-decoration: underline; color: var(--mute); }
.row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px; margin-bottom: 10px;
}
.av {
  width: 40px; height: 40px; border-radius: 50%; background: #1c1c20;
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex: 0 0 auto;
}
.dots { display: flex; gap: 5px; margin-left: auto; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2A2A2E; }
.dot.hit { background: var(--heat); }
.dot.miss { background: var(--dead); }
.input {
  width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line);
  background: #0B0B0C; color: var(--text); font-size: 16px; padding: 0 14px;
}
.sheet {
  position: fixed; inset: 0; margin: 0; border: 0; padding: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  background: transparent; color: var(--text); z-index: 50;
  display: none; align-items: flex-end; justify-content: center;
}
.sheet::backdrop { background: rgba(0,0,0,.6); }
.sheet.on { display: flex; }
.sheet .box {
  width: 100%; max-width: 430px; background: var(--surface);
  max-height: 100%; overflow-y: auto;
  border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + var(--safe-bot));
}
.muted { color: var(--mute); }
.err { color: var(--dead); font-weight: 600; }
.code {
  font-size: 36px; font-weight: 900; letter-spacing: 0.14em;
  text-align: center; margin: 4px 0 12px;
}
/* 12 characters, not 6: keep it on one line on a small phone. */
.code.long { font-size: 22px; letter-spacing: 0.1em; }
.hrow { display: flex; justify-content: space-between; gap: 10px; margin: 8px 0; font-size: 15px; }
.hrow .res { font-weight: 800; flex: 0 0 auto; }
.hrow .res.hit { color: var(--heat); }
.hrow .res.dead { color: var(--dead); }
/* One game on a multi-game day. */
.game {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px; margin-bottom: 10px;
}
.gh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 16px; }
.gh .muted { font-size: 13px; }
.gs { margin: 10px 0 0; font-size: 14px; text-align: center; }
.gs .res { font-weight: 800; }
.gs .res.hit { color: var(--heat); }
.gs .res.dead { color: var(--dead); }
.locks.two { flex-direction: row; gap: 10px; margin-top: 10px; }
.locks.two .lock { flex: 1 1 0; min-width: 0; min-height: 56px; font-size: 18px; }

.score {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px; margin-top: 6px;
}
.score.on { border-color: var(--heat); }
.score .pct { font-size: 40px; font-weight: 900; letter-spacing: -0.03em; margin: 0; }
.score .verdict { font-weight: 800; font-size: 16px; margin: 12px 0 0; color: var(--dead); }
.score.on .verdict { color: var(--heat); }
/* The bar fills to your win rate; the tick is the 52.4% break-even line. */
.bar {
  position: relative; height: 8px; border-radius: 999px;
  background: #0B0B0C; border: 1px solid var(--line); margin: 14px 0 0;
}
.bar span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--dead); }
.score.on .bar span { background: var(--heat); }
.bar i { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); }
/* Placeholder shapes while the real card loads. */
.skel { display: inline-block; border-radius: 8px; background: #17171A; color: transparent; }
.skel-row { opacity: 0.6; }
.locks.two .lock.skel { border-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .skel { animation: pulse 1.4s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
}

.rowmain { min-width: 0; flex: 1 1 auto; }
.rowmain .pl { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-link { color: var(--text); background: none; border: 0; padding: 0; text-align: left; font: inherit; min-height: 48px; cursor: pointer; }
.member-link span { display: block; }
.member-link b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recap-person { display:grid; gap:6px; padding:12px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.recap-person span { color:var(--mute); font-size:14px; line-height:1.6; }
#board-history { padding:14px; border:1px solid var(--line); border-radius:14px; margin-bottom:24px; }
#board-history summary { font-weight:700; min-height:44px; }
#history-sport { margin:8px 0; }
#history-body .hrow { gap:12px; align-items:flex-start; }
#history-body .hrow b { flex:0 1 35%; min-width:0; overflow-wrap:anywhere; }
#history-body .hrow span { flex:1; min-width:0; overflow-wrap:anywhere; }
@media (max-width:540px) {
  #board .row { display:grid; grid-template-columns:40px minmax(0,1fr) auto; gap:8px 12px; }
  #board .member-link { grid-column:2 / 4; width:100%; }
  #board .member-link b { white-space:normal; overflow-wrap:anywhere; }
  #board .member-link .pl { white-space:normal; overflow:visible; line-height:1.5; }
  #board .row .dots { grid-column:2; margin-left:0; }
  #board .row .kick { grid-column:2 / 4; justify-self:start; min-height:44px !important; }
}
.member-hint { color: var(--heat); font-size: 12px; margin: 4px 0; }
.member-box .chip { overflow-wrap: anywhere; }
.member-box h2 { overflow-wrap: anywhere; }
.member-picks { list-style: none; padding: 0; margin: 0; }
.member-pick { display: grid; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.member-pick .muted { font-size: 13px; }
.pick-result.hit { color: var(--heat); }
.pick-result.miss { color: var(--dead); }
.pick-reminder { border: 1px solid var(--heat); border-radius: 16px; padding: 16px; margin: 0 0 18px; background: var(--surface); }
.pick-reminder .chip { color: var(--heat); margin: 0 0 8px; }
.pick-reminder p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.pick-reminder .cta { min-height: 48px; margin: 12px 0 0; font-size: 17px; }

@media (prefers-reduced-motion: reduce) {
  .lock:active { transform: none; }
}

/* Multi-sport slate: day and sport headers, the odds line. */
.dayh { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); margin: 22px 0 4px; }
.sporth { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--heat); margin: 14px 0 6px; }
.odds { font-size: 13px; margin: 2px 0 6px; }
.sports { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 10px; margin: 0 0 10px; }
.sports legend { font-size: 13px; padding: 0 4px; }
.sport { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 16px; font-weight: 700; }
.sport input { width: 20px; height: 20px; accent-color: var(--heat); }
.wl { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; line-height: 1.2; flex: 0 0 auto; }
.slate-mini { margin: 0 0 10px; }
.mini { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.mini span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edit-sports { margin: 16px 0 0; }
.edit-sports summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; }

/* Sport first: buttons wrap onto a second row at phone width, never scroll sideways. */
.sportbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.sportbtn {
  flex: 1 1 calc(50% - 4px); min-height: 48px; display: flex; justify-content: space-between; align-items: center;
  padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
}
.sportbtn .n { color: var(--mute); font-weight: 700; font-size: 13px; }
.sportbtn.on { border-color: var(--heat); background: var(--heat); color: var(--bg); }
.sportbtn.on .n { color: var(--bg); }
.sportbtn:disabled { opacity: 0.4; cursor: default; }

/* Board switcher: your boards, then + Board. Wraps at phone width. */
.boardbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.boardbtn {
  flex: 1 1 calc(50% - 4px); min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; min-width: 0;
}
.boardbtn span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boardbtn .n { color: var(--mute); font-weight: 700; font-size: 12px; }
.boardbtn.on { border-color: var(--heat); background: var(--heat); color: var(--bg); }
.boardbtn.on .n { color: var(--bg); }
.boardbtn.add { justify-content: center; color: var(--heat); border-style: dashed; width: 100%; margin-bottom: 14px; }
.board-history, .link-here { margin: 16px 0 0; }
.board-history summary, .link-here summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; }
.ghost.danger { color: var(--dead); border-color: var(--dead); }

/* clear-labels-stats: time slots, per-sport recap, you-on-this-board. */
.sloth { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); margin: 14px 0 6px; }
.recap { margin: 0 0 12px; }
.you-board { margin: 0 0 14px; }
.you-board .overall a { color: var(--mute); text-decoration: underline; }

/* Board page order: you, standings, games, invite. */
.board-name { margin: 2px 0 12px; }
.sectionh { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); margin: 22px 0 8px; }
.inline-form { display: flex; gap: 8px; margin: 0 0 10px; }
.inline-form .input { flex: 1 1 auto; min-width: 0; }
.inline-form .ghost { width: auto; margin: 0; padding: 0 16px; }
.linkbtn { display: flex; align-items: center; justify-content: center; text-decoration: none; margin-top: 10px; }
.codeline { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0 0; }
.code.small { font-size: 22px; letter-spacing: 0.18em; margin: 0; }
.ghost.tiny { width: auto; min-height: 36px; padding: 0 12px; margin: 0; }
/* launch-reliability: loading, failure and feed notes */
.loading-note { text-align: center; margin: 14px 0 0; }
.loaderr { text-align: center; padding: 28px 0 8px; }
.loaderr .line { margin: 0 0 14px; color: var(--text); }
.feednote { color: var(--mute); font-size: 13px; font-weight: 600; margin: -4px 0 12px; }
.sportbtn.down .n { color: var(--dead); }
.sportbtn.down.on .n { color: var(--bg); }
/* First-run guidance and legal-page lists. Landing styles live in landing.css. */
.steps { padding-left: 22px; margin: 6px 0 18px; line-height: 1.45; }
.steps li { margin: 0 0 10px; }
.tips { background: var(--surface); border: 1px solid var(--heat); border-radius: 16px; padding: 14px 16px; margin: 4px 0 16px; }
.tips .sectionh { margin-top: 0; }
.tips .steps { margin-bottom: 8px; }
.ask-name { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 4px 0 16px; }
.ask-name .row-btns { display: flex; gap: 8px; margin-top: 10px; }
.ask-name .row-btns .ghost { margin: 0; }
.legalpage .sectionh { margin-top: 24px; }
.legalpage .muted, .legalpage .steps { line-height: 1.5; }
.legalpage .muted { margin: 0 0 10px; }
/* accounts-and-limits: saving progress with a passkey */
.passkey { margin-top: 12px; }
.passkey .cta { margin-top: 12px; }
.ghost.focus { border-color: var(--heat); color: var(--heat); }
.journey-start .steps{margin:24px 0}.journey-link{text-decoration:underline;text-underline-offset:3px}.journey-board,.journey-recap,.journey-access,.journey-help{margin:22px 0;padding:18px 0;border-top:1px solid var(--line,#29292c)}.journey-board .sectionh,.journey-recap .sectionh,.journey-access .sectionh,.journey-help .sectionh{margin-top:0}.journey-actions{display:flex;flex-wrap:wrap;gap:12px 22px;margin:16px 0}.journey-actions a{display:inline-flex;align-items:center;min-height:44px}.journey-totals{font-weight:700;line-height:1.6}

.tabs.tabs-four { grid-template-columns: repeat(4, 1fr); }

/* The four app pages share a compact, responsive shell. Public web/legal
   pages retain their own layout. View panels keep their full data and forms. */
.app-shell { --mute:#aaa9a5; }
body.vk.app-shell { max-width:960px; font-size:15px; line-height:1.5; }
.app-shell [hidden] { display:none !important; }
.app-shell button,.app-shell select { font-family:inherit; }
.app-shell .top { min-height:calc(56px + var(--safe-top)); border-bottom:1px solid var(--line); padding-inline:20px; }
.app-shell .app-update { top:calc(56px + var(--safe-top)); }
.app-shell .view-tabs { position:sticky; top:calc(56px + var(--safe-top) + var(--update-space, 0px)); z-index:15; background:var(--bg); }
.app-shell main :is(button,input,select,a,summary) { scroll-margin-top:calc(112px + var(--safe-top) + var(--update-space, 0px)); }
.app-shell .word { font-size:15px; }
.app-label { font-size:12px; color:var(--mute); }
.app-shell .page { padding:20px 20px calc(100px + var(--safe-bot)); }
.app-shell .tabs { max-width:960px; padding-top:6px; }
.app-shell .tab { font-size:13px; border-top:2px solid transparent; }
.app-shell .tab.on { border-top-color:var(--heat); }
.app-shell .h { font-size:28px; line-height:1.15; overflow-wrap:anywhere; }
.app-shell .chip { margin:0 0 5px; font-size:11px; }
.app-shell .cta,.app-shell .share { min-height:48px; font-size:17px; border-radius:10px; }
.app-shell .ghost { min-height:44px; border-radius:10px; font-size:15px; }
.app-shell .input { border-radius:8px; }
.app-shell p { overflow-wrap:anywhere; }
.page-heading { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:16px; }
.page-heading>div { min-width:0; }
.page-heading .text-action { flex-shrink:0; }
.text-action { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; padding:6px 8px; border:0; background:transparent; color:var(--heat); font:inherit; font-size:13px; font-weight:650; cursor:pointer; }
.view-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; border-bottom:1px solid var(--line); margin:0 0 18px; }
.view-tabs button { display:flex; align-items:center; justify-content:center; gap:5px; min-height:48px; min-width:0; padding:9px 5px; margin:0; border:0; border-bottom:2px solid transparent; border-radius:0; background:var(--bg); color:var(--mute); font:inherit; font-size:14px; font-weight:700; cursor:pointer; overflow-wrap:anywhere; }
.view-tabs button[aria-selected="true"],.view-tabs button[aria-pressed="true"] { color:var(--heat); border-bottom-color:var(--heat); }
.view-intro { font-size:13px; margin:12px 0; }
.panel-title { font-size:22px; line-height:1.25; margin:10px 0 18px; }
.panel-back { padding-left:0; }
.board-switcher { position:relative; }
.board-switcher>summary { display:flex; align-items:center; gap:12px; list-style:none; cursor:pointer; min-height:44px; }
.board-switcher>summary::-webkit-details-marker { display:none; }
.app-shell .board-name { margin:0; }
.board-switcher>summary>span { color:var(--mute); font-size:22px; }
.board-switcher-body { padding:14px; margin-top:10px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.board-switcher .boardbar { display:grid; grid-template-columns:1fr; margin-bottom:10px; }
.board-switcher .boardbtn { padding:10px 12px; }
.board-switcher .boardbtn span:first-child { white-space:normal; overflow-wrap:anywhere; }
.board-switcher .boardbtn.add { margin:0; }
.board-meta { display:flex; justify-content:space-between; align-items:center; gap:6px 12px; margin:0 0 12px; }
.board-meta>p { font-size:12px; margin:0; }
.header-actions { display:flex; flex-shrink:0; }
.header-actions .text-action { padding:6px; }
.compact-record { display:flex; align-items:baseline; flex-wrap:wrap; gap:6px 10px; padding:12px 0; margin:0 0 8px; font-size:13px; }
.compact-record>strong { font-size:20px; }
.record-streak { margin-left:auto; color:var(--mute); }
.record-streak b { color:var(--text); margin-left:4px; }
.app-shell #board .standings-row { display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:12px; padding:14px 0; background:none; border:0; border-bottom:1px solid var(--line); border-radius:0; margin:0; }
.app-shell #board .standings-row .av { width:32px; height:32px; font-size:13px; }
.app-shell #board .standings-row .member-link { grid-column:2; width:100%; min-height:56px; }
.app-shell #board .standings-row .member-link b { font-size:16px; white-space:normal; overflow-wrap:anywhere; }
.app-shell #board .standings-row .member-link .pl { white-space:normal; overflow:visible; font-size:12px; line-height:1.4; margin-top:3px; }
.app-shell #board .standings-row .wl { grid-column:3; gap:4px; }
.app-shell #board .standings-row .wl b { font-size:17px; }
.app-shell .member-hint { font-size:12px; margin:3px 0 0; }
.recent-form { display:flex; gap:6px; flex-wrap:wrap; margin:8px 0 20px; }
.form-result { display:inline-grid; place-items:center; width:30px; height:30px; font-size:13px; font-weight:750; border-radius:5px; background:var(--bg); }
.form-result.hit { background:#263011; color:var(--heat); }
.form-result.miss { background:#382021; color:#ffb5b5; }
.board-games-list { display:grid; gap:12px; }
.board-game { padding:14px; background:var(--surface); border:1px solid var(--line); border-radius:10px; min-width:0; }
.board-game>div { display:flex; justify-content:space-between; flex-wrap:wrap; gap:5px 12px; }
.board-game>div b { font-size:16px; }
.board-game .muted { font-size:13px; }
.board-game p { margin:10px 0 0; }
.app-shell #board-history { border:0; padding:0; margin:0; }
.app-shell #board-history>summary { padding:8px 0; }
.app-shell #board-history[open]>summary { color:var(--mute); font-size:13px; }
.option-row { display:flex; width:100%; align-items:center; justify-content:space-between; gap:15px; padding:16px 0; min-height:52px; color:var(--text); font:inherit; font-weight:650; border:0; border-bottom:1px solid var(--line); background:none; cursor:pointer; text-align:left; }
.option-row span { color:var(--mute); font-size:12px; font-weight:400; }
.manage-member { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 0; border-bottom:1px solid var(--line); }
.manage-member b { overflow-wrap:anywhere; min-width:0; }
.manage-member .kick { width:auto; padding:8px 14px; margin:0; }
.action-panel { max-width:640px; }
.app-shell .journey-board { margin:12px 0; padding:14px; background:var(--surface); border:1px solid var(--line); border-radius:10px; }
.app-shell .journey-board .journey-actions { margin:6px 0 0; }
.app-shell .journey-board p { font-size:14px; margin:8px 0; }
.app-shell .pick-reminder { padding:12px 14px; border:0; border-left:3px solid var(--heat); border-radius:0 8px 8px 0; background:#1a2010; margin:0 0 10px; }
.app-shell .pick-reminder .chip { display:none; }
.app-shell .pick-reminder .cta { width:auto; display:inline-flex; padding:10px 16px; font-size:15px; margin-top:4px; }
.app-shell .pick-reminder p { font-size:13px; margin:0 0 6px; }
.app-shell .pick-reminder .saved-picks { margin:0; }
.saved-picks span { display:block; color:var(--mute); font-size:12px; margin-top:3px; }
.pending-picks { color:#f3cd91; }
.sync-caption { font-size:12px; padding-top:14px; border-top:1px solid var(--line); margin-top:22px; }
#board-refresh-status:not([hidden]) { border:1px solid var(--line); border-left:3px solid var(--heat); border-radius:8px; padding:12px; font-size:14px; }
.app-shell #board-status:empty { display:none; }
.pick-context { display:flex; align-items:center; gap:12px; }
.pick-context label { font-size:13px; color:var(--mute); flex-shrink:0; }
.pick-context select { width:auto; flex:1; min-width:0; font-weight:700; }
.context-note { font-size:13px; margin:8px 0 18px; }
.app-shell .sportbar { gap:6px; margin:14px 0; }
.app-shell .sportbtn { min-height:44px; padding:8px 12px; border-radius:8px; font-size:14px; }
.app-shell .game { padding:14px; border-radius:10px; }
.slate-list { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
.slate-list .game { margin:0; }
.slate-list .dayh,.slate-list .sloth,.slate-list .sporth { grid-column:1/-1; margin:10px 0 0; }
.solo-game { display:contents; }
.compact-details { border-top:1px solid var(--line); margin-top:22px; padding:8px 0; }
.compact-details>summary { cursor:pointer; min-height:44px; padding:10px 0; font-weight:700; }
.compact-details .journey-recap { border:0; margin:0; padding:8px 0; }
.compact-details .journey-recap .sectionh { display:none; }
.app-shell .hrow { border-bottom:1px solid var(--line); padding:12px 0; margin:0; overflow-wrap:anywhere; }
.app-shell .hrow>span { min-width:0; }
.app-shell .hrow .res { min-width:fit-content; }
.app-shell #me-view-profile,.app-shell #me-view-access { max-width:640px; }
.app-shell #me .journey-help,.app-shell #me .journey-access { margin:20px 0; }
.app-shell .sheet .box { max-width:640px; max-height:calc(100dvh - 16px); }
.app-shell .member-box>#member-close { position:sticky; top:-18px; z-index:1; background:var(--surface); margin:0 0 16px; }
.app-shell .legal { font-size:12px; margin-top:28px; }
.app-skip { position:absolute; top:-100px; left:12px; padding:12px; z-index:100; background:var(--heat); color:var(--bg); }
.app-skip:focus { top:8px; }
@media(min-width:700px) {
  .app-shell .page { padding-inline:32px; }
  .app-shell .top { padding-inline:32px; }
  .app-shell .slate-list,.app-shell .board-games-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .app-shell .page-heading { justify-content:flex-start; gap:32px; }
  .app-shell .pick-context { max-width:440px; }
  .app-shell .sportbtn { flex:0 0 auto; min-width:112px; gap:24px; }
  .app-shell .view-tabs { display:flex; }
  .app-shell .view-tabs button { flex:0 0 auto; min-width:112px; padding-inline:20px; }
  .board-switcher-body { max-width:520px; }
  .app-shell .pick-reminder { display:flex; flex-wrap:wrap; align-items:center; gap:6px 16px; max-width:560px; }
  .app-shell .pick-reminder .cta { margin:0 0 0 auto; }
  .app-shell .slate-list .locks { max-width:320px; }
  .app-shell .slate-list .lock { min-height:48px; font-size:16px; }
  .app-shell .solo-game { display:block; max-width:640px; padding:24px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
  .app-shell .solo-game .match { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:16px; margin:0 0 18px; }
  .app-shell .solo-game .nm { font-size:30px; line-height:1.1; overflow-wrap:anywhere; }
  .app-shell .solo-game .locks { flex-direction:row; max-width:400px; margin:18px auto 0; }
  .app-shell .solo-game .lock { flex:1 1 0; min-width:0; width:auto; min-height:52px; font-size:18px; }
  .app-shell .solo-game .line { font-size:14px; }
  .app-shell .solo-game .share { max-width:400px; margin-inline:auto; }
}
@media(max-width:360px) {
  .app-shell .page { padding-inline:14px; }
  .app-shell .top { padding-inline:14px; }
  .app-shell .h { font-size:25px; }
  .page-heading { flex-wrap:wrap; gap:0; }
  .board-meta { align-items:flex-start; }
  .board-meta>p { padding-top:10px; }
  .header-actions .text-action { font-size:12px; }
}
