/* Riddling, look "Champagne 3" (chosen 11/11/2026): ivory ground, black button with gold lettering, gold details. */
:root {
  --ground: #F8F5EC; --ink: #141310; --muted: #5E594C; --line: #E2DCC9; --card: #FFFFFF;
  --gold: #B08E3A; --gold-on-black: #EBD49A; --right: #2F6B3F; --right-bg: #E7F1E6; --wrong: #9B2C2C; --wrong-bg: #F7E6E3;
  --serif: 'Newsreader', Georgia, serif; --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
#app { max-width: 520px; margin: 0 auto; min-height: 100dvh; padding: calc(24px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 20px; }
.loading { color: var(--muted); margin-top: 40vh; text-align: center; }
h1, h2, .wordmark, .big { font-family: var(--serif); font-weight: 500; margin: 0; }
h1 { font-size: 38px; line-height: 1.08; }
h2 { font-size: 26px; line-height: 1.15; }
.wordmark { font-size: 26px; font-weight: 600; }
.eyebrow { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 6px; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.cta { height: 64px; border: 0; border-radius: var(--r); background: var(--ink); color: var(--gold-on-black); font-family: var(--serif); font-size: 20px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.cta:disabled { opacity: .45; cursor: default; }
.btn { min-height: 48px; padding: 10px 16px; border-radius: var(--r); border: 1.5px solid var(--ink); background: transparent; font-weight: 600; }
.btn.quiet { border-color: var(--line); font-weight: 400; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.tile .big { font-size: 30px; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 6px; border-radius: 3px; background: var(--gold); }
.list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.list button { min-height: 60px; background: transparent; border: 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 8px 2px; text-align: left; }
.list button[disabled] { opacity: .5; cursor: default; }
.list b { display: block; font-weight: 600; }
.foot { margin-top: auto; }
.progress { display: flex; align-items: center; gap: 12px; }
.progress .bar { flex: 1; }
.qcard { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.qtext { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { min-height: 56px; padding: 12px 16px; text-align: left; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--card); }
.opt[disabled] { cursor: default; color: var(--ink); }
.opt.right { border-color: var(--right); background: var(--right-bg); }
.opt.wrong { border-color: var(--wrong); background: var(--wrong-bg); }
.fb { border-radius: var(--r); padding: 16px; border: 1.5px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 8px; }
.fb.right { border-color: var(--right); }
.fb.wrong { border-color: var(--wrong); }
.fb .verdict { font-weight: 600; }
.fb.right .verdict { color: var(--right); }
.fb.wrong .verdict { color: var(--wrong); }
.fb .answer { font-family: var(--serif); font-size: 20px; }
.mn { border-left: 0; border-top: 1px dashed var(--line); padding-top: 10px; }
input[type=text], input[type=date], select { min-height: 48px; padding: 10px 12px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--card); width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 14px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--card); }
.chip.on { border-color: var(--ink); background: var(--ink); color: var(--gold-on-black); }
.missed { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.missed li { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.preview { border: 1px dashed var(--gold); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.opt.sel { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.plainopts { margin: 4px 0 0; padding-left: 26px; color: var(--muted); }
.plainopts li { padding: 2px 0; }
.btn:disabled { opacity: .45; cursor: default; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.tbl th { font-size: 13px; color: var(--muted); font-weight: 400; }
.tbl td:last-child, .tbl th:last-child { text-align: right; }
.tilebtn { text-align: left; width: 100%; cursor: pointer; }
.tilebtn svg { vertical-align: middle; }
.pipebar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--line); }
.pipebar i { display: block; height: 100%; }
.st-locked { background: var(--gold); } .st-confirmed { background: var(--ink); } .st-once { background: #8A867B; } .st-missed { background: var(--wrong); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }
.catbar { display: block; position: relative; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 6px; }
.catbar i { position: absolute; left: 0; top: 0; height: 6px; } .catbar .h { background: var(--ink); } .catbar .g { background: var(--gold); }
.spark { display: block; width: 100%; height: 44px; } .spark polyline { fill: none; stroke: var(--ink); stroke-width: 2; } .spark .goal { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 3; }
.snav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.btn.small { min-height: 40px; padding: 6px 14px; }
.mapwrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 6px; }
.mapwrap svg { width: 100%; height: auto; display: block; max-height: 62vh; }
.mapwrap .ol { fill: #F1ECDD; stroke: var(--line); stroke-width: .5; } .mapwrap .ln { fill: none; stroke: var(--muted); stroke-width: .7; opacity: .55; }
.mapwrap .cty { font-size: 2.8px; fill: var(--muted); font-family: var(--sans); letter-spacing: .05em; text-transform: uppercase; } .nocty .cty { display: none; }
.mapwrap .rg { fill: var(--card); stroke: var(--ink); stroke-width: .9; } .mapwrap .rg.hl { fill: var(--gold); } .mapwrap .gch { fill: none; stroke: var(--gold); }
.mapwrap .lb { font-size: 3.1px; fill: var(--ink); font-family: var(--sans); pointer-events: none; paint-order: stroke; stroke: var(--card); stroke-width: .8; } .mapwrap svg.mg .lb { font-size: 3.6px; }
.mapwrap .lb.h, .mapwrap .ld.h { display: none; } .mapwrap .ld { fill: none; stroke: var(--muted); stroke-width: .45; opacity: .8; } .mapwrap .ah { fill: var(--muted); } .mapwrap .hit { fill: transparent; pointer-events: none; }
h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 6px 0 0; }
.chains { border-bottom: 1px solid var(--line); padding: 10px 2px; } .chains summary { cursor: pointer; font-weight: 600; min-height: 32px; } .ch { margin: 10px 0; display: flex; flex-direction: column; gap: 4px; }
.tilebtn:disabled { opacity: .5; cursor: default; }
.gridbox { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; font-size: 15px; }
.gridbox dt { color: var(--muted); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; padding-top: 3px; } .gridbox dd { margin: 0; }
.chip.ok { border-color: var(--right); background: var(--right-bg); color: var(--ink); } .chip.no { border-color: var(--wrong); background: var(--wrong-bg); color: var(--ink); } .chip.ans { border: 2px dashed var(--right); }
.chip[disabled] { cursor: default; color: var(--ink); }
.sheet { gap: 14px; } .sheet .chip { min-height: 40px; padding: 6px 12px; } .sheetgrp { margin-top: 6px; }
.nfrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .nfrow > span:first-child { flex: 1; }
[data-line].blank > .small, .nfrow.blank > span:first-child { color: var(--wrong); font-weight: 600; }
.ch.struck b, .ch.struck .chain { text-decoration: line-through; color: var(--muted); }
.tblwrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 8px; } .vt { font-size: 12px; table-layout: fixed; width: 100%; } .vt td, .vt th { padding: 6px 3px; text-align: right; overflow-wrap: anywhere; } .vt th:first-child { width: 34%; } .vt b { color: var(--wrong); font-size: 15px; } .vt td:first-child, .vt th:first-child { text-align: left; }
input[type=range] { width: 100%; }
.missed li.okli { border-left: 3px solid var(--right); padding-left: 10px; } .missed li.noli { border-left: 3px solid var(--wrong); padding-left: 10px; } .missed li.nearli { border-left: 3px solid var(--gold); padding-left: 10px; }
@media (min-width: 700px) { #app { padding-top: 48px; } h1 { font-size: 44px; } }

/* The question mark inside a mnemonic and the explanation it opens */
.mnhelp { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; order: 99; }
.mnq { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; flex: none; }
.mnq[aria-expanded="true"] { background: var(--ink, #14130f); color: var(--gold-on-black); }
#mnhelp { align-self: stretch; border: 1px dashed var(--line); border-radius: 12px; padding: 12px; }
/* Sign-in screens and the account block on Home */
input[type=email], input[type=password] { min-height: 48px; padding: 10px 12px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; width: 100%; box-sizing: border-box; }
.acct { gap: 10px; }
.bad { color: var(--wrong); }
a.btn { color: inherit; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
