/* Guessmint — "Antique Gold" visual system (adopted 2 Oct 2026 from the /style2/ study; the earlier
   "Museum Specimen" look is archived on QA at /style1/). Palette from the brand sheet: deep slate,
   antique gold, silver, parchment, forest green, ivory. The second half of this file is the brand layer,
   which restyles the base components above. */
/* Marcellus's figure 1 reads as a capital I ("No. II"), so digits come from the next serif in the
   stack: the font is only used for everything except U+0030–0039. */
@font-face {
  font-family: "Marcellus";
  src: url("/fonts/marcellus-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-002F, U+003A-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --slate: #1B2A34;
  --gold: #C69A45;
  --gold-deep: #8F6A2C;
  --silver: #D7D4C8;
  --parchment: #E9DFC8;
  --forest: #4F7775;
  --ivory: #F5F0E5;

  --ground: var(--ivory);
  --plate: #FBF8F1;
  --card: #FFFDF8;
  --ink: var(--slate);
  --muted: #65706F;
  --line: #E4D9C2;
  --verdigris: var(--forest);
  --deep: #34504E;
  --tint: #E4ECE9;
  --bronze: var(--gold-deep);
  --amber: #F3E9D1;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(27, 42, 52, .06), 0 8px 22px rgba(27, 42, 52, .07);
  --caps: .14em;
  --gutter: 16px;
  --display: "Marcellus", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--deep); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--verdigris); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- header */
.top {
  position: relative; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px;
  padding: 8px var(--gutter);
  background: rgba(241, 242, 238, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--display); font-size: 24px; letter-spacing: .02em;
  color: var(--ink); text-decoration: none; line-height: 1;
}
h1.wordmark { margin: 0; font-weight: 400; font-size: clamp(17px, 4.6vw, 26px); letter-spacing: .01em; line-height: 1.2; }
.top .tools { display: inline-flex; gap: 2px; }
@media (max-width: 719px) {
  .top { gap: 2px 8px; }
  .top .iconbtn { width: 34px; height: 34px; }
}
h1.wordmark a { color: inherit; text-decoration: none; }
.dayno { font-family: var(--display); color: var(--muted); font-size: clamp(16px, 4.4vw, 20px); }
.top .spacer { flex: 1; }
@media (min-width: 720px) { .top { position: sticky; top: 0; } }
.iconbtn {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-grid; place-items: center;
  background: transparent; border: 1px solid transparent; color: var(--ink);
}
.iconbtn:hover { background: var(--card); border-color: var(--line); }
.iconbtn svg { width: 22px; height: 22px; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

.banner {
  margin: 12px 0 0; padding: 10px 14px; border-radius: 12px;
  background: var(--amber); border: 1px solid #E6D6B8; font-size: 15px;
}
.banner.qa { background: #EDE7F6; border-color: #D5C8EC; }

/* ---------------------------------------------------------------- board layout */
/* Reserve roughly the board's height before the puzzle arrives, so nothing below it jumps. */
#app { min-height: calc(127vw + 560px); }
@media (min-width: 720px) { #app { min-height: 640px; } }
@media (min-width: 1024px) { #app { min-height: 760px; } }
/* Phones: one column. Tablets and desktops: coin | controls, and once the second side of the coin
   appears, front | back | controls (.three). */
.board { display: grid; gap: 20px; padding: 14px 0 32px; }
@media (min-width: 720px) {
  .board { grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
  .board.three { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(300px, 1fr); }
  .stage { position: sticky; top: 64px; }
}
@media (min-width: 1024px) {
  .board { grid-template-columns: 44% 1fr; gap: 28px; }
  .board.three { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(360px, 1.15fr); }
}

/* ---------------------------------------------------------------- coin stage */
.stage { display: grid; gap: 12px; min-width: 0; }
.plate {
  background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px;
}
@media (max-width: 719px) {
  .stage .plate.lead, .stage .plate.second.open {
    width: 95vw; margin-left: calc(50% - 47.5vw); padding: 0; border-radius: 16px; overflow: hidden;
  }
  .stage .plate.lead .face, .stage .plate.second.open .face { border-radius: 16px; }
}
.face {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  background: #E9EBE4; border-radius: 10px; overflow: hidden;
  touch-action: manipulation;
}
.face .view { position: absolute; overflow: hidden; }
.face img {
  position: absolute; max-width: none; height: auto; display: block;
  visibility: hidden; user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.face.ready img { visibility: visible; }
.face svg.seals { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.face .zoomhint {
  position: absolute; right: 8px; bottom: 8px; padding: 4px 8px; border-radius: 999px;
  font-size: 12px; background: rgba(250, 250, 248, .9); color: var(--muted); border: 1px solid var(--line);
  pointer-events: none;
}
.face button.open { position: absolute; inset: 0; background: transparent; border: 0; padding: 0; cursor: zoom-in; }
.seal-shape { fill: url(#gm-hatch); stroke: var(--deep); stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: help; }
.lifting .seal-shape { transition: opacity .6s ease; opacity: 0; }
.lifted .seal-shape { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 14px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); white-space: nowrap;
}
.chip.ok { background: var(--tint); border-color: #C6DDD5; color: var(--deep); }
.chip.close { background: var(--amber); border-color: #E6D6B8; color: #6A4A22; }
.chip.tier-hard { border-color: var(--bronze); color: var(--bronze); }

@media (min-width: 720px) { .stage .plate.second.placeholder { display: none; } }
.second .locked {
  display: grid; place-items: center; text-align: center; gap: 6px;
  aspect-ratio: 3 / 1; border: 1px dashed #C9CEC1; border-radius: 10px; color: var(--muted);
  padding: 12px; font-size: 15px; background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(221, 225, 214, .45) 10px 12px);
}
.second .clue { padding: 6px 4px; }
.second .clue h3 { margin: 0 0 4px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.second .clue p { margin: 0; }

details.credit { font-size: 13px; color: var(--muted); }
details.credit summary { cursor: pointer; width: max-content; }
details.credit p { margin: 6px 0 0; }
details.credit a { color: inherit; }

/* ---------------------------------------------------------------- play column */
.play { display: grid; gap: 14px; min-width: 0; align-content: start; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.guesscount { font-family: var(--display); font-size: 20px; margin: 0; }
.field { display: grid; gap: 6px; }
.field > label, .fieldlabel { font-size: 14px; color: var(--muted); }
.issuerrow { display: flex; gap: 8px; align-items: stretch; }
.ta { position: relative; flex: 1; min-width: 0; }
.ta input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid #C9CEC1; background: var(--plate); font-size: 17px;
}
.ta input:focus { border-color: var(--verdigris); outline: none; box-shadow: 0 0 0 3px rgba(46, 125, 108, .18); }
.ta ul {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30;
  list-style: none; margin: 0; padding: 6px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(33, 37, 30, .14);
  max-height: 340px; overflow: auto;
}
.ta li { padding: 9px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.ta li small { color: var(--muted); }
.ta li[aria-selected="true"] { background: var(--tint); }
.ta li.head { cursor: default; color: var(--muted); font-size: 13px; padding: 4px 10px; }
.ta li.dis { opacity: .5; cursor: not-allowed; }
.btn {
  height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--deep);
  background: var(--verdigris); color: #fff; font-weight: 600; letter-spacing: .01em;
}
.btn:hover { background: var(--deep); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: var(--card); color: var(--deep); border-color: #C6DDD5; }
.btn.ghost:hover { background: var(--tint); }
.lockchip {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; min-height: 48px;
  align-content: center; padding: 8px 14px; border-radius: 12px;
  background: var(--tint); color: var(--deep); border: 1px solid #C6DDD5; font-weight: 600;
}
.lockchip .lk-note { font-weight: 400; font-size: 14px; }
/* Right issuer, year still open: a celebration, and the timeline is flagged as the next step. */
.issuerrow.cheered { flex-wrap: wrap; }
.issuerrow.cheered .ta-slot { flex: 3 1 260px; min-width: 0; }
.issuerrow.cheered .btn { flex: 1 0 auto; align-self: center; }
.lockchip.cheer {
  display: grid; gap: 3px; padding: 12px 16px; border: 2px solid var(--verdigris);
  background: linear-gradient(135deg, var(--tint), #F5F9F7);
  box-shadow: 0 4px 14px rgba(46, 125, 108, .16);
}
.lockchip.cheer .lk-cheer { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.2; color: var(--deep); }
.lockchip.cheer .lk-name { font-size: 17px; }
.lockchip.cheer .lk-note { font-size: 15px; line-height: 1.4; color: var(--ink); }
.lockchip.cheer.fresh { animation: gm-cheer .55s cubic-bezier(.2, .9, .3, 1.35) both; }
@keyframes gm-cheer { from { transform: scale(.93); opacity: 0; } to { transform: none; opacity: 1; } }
.field.nextstep .fieldlabel { color: var(--deep); font-weight: 600; }
.field.nextstep .slider .thumb { animation: gm-nudge 1.2s ease-in-out .5s 3; }
@keyframes gm-nudge { 50% { box-shadow: 0 0 0 8px rgba(46, 125, 108, .28), 0 2px 6px rgba(33, 37, 30, .2); } }
.hint { font-size: 14px; color: #8A3B2B; margin: 0; }
.hint:empty { display: none; }

/* date slider */
.datehead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.readout {
  font-family: var(--display); font-size: 24px; background: none; border: 0; padding: 0 2px;
  border-bottom: 1px dashed #B9C0B1; line-height: 1.2; color: var(--ink);
}
.readout.unset { font-family: var(--sans); font-size: 15px; color: var(--muted); }
.yearinput {
  width: 9em; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--verdigris);
  font-size: 18px; background: var(--plate);
}
.slider { position: relative; height: 70px; touch-action: none; user-select: none; margin: 4px 12px 0; cursor: pointer; }
.slider .track {
  position: absolute; left: 0; right: 0; top: 24px; height: 8px; border-radius: 999px;
  background: #E3E6DD; overflow: hidden;
}
.slider .rule {
  position: absolute; top: 0; bottom: 0;
  background: repeating-linear-gradient(135deg, #C9CEC1 0 3px, transparent 3px 7px);
}
.slider .divider { position: absolute; top: 14px; height: 28px; width: 2px; background: var(--bronze); opacity: .7; }
.slider .divider span {
  position: absolute; top: -16px; transform: translateX(-50%); font-size: 11px; color: var(--bronze); white-space: nowrap;
}
/* The handle is a vertical oval, like a coin seen edge-on, centred on the track (track centre 28px). */
.slider .thumb {
  position: absolute; top: 8px; width: 24px; height: 40px; margin-left: -12px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--verdigris); box-shadow: 0 2px 6px rgba(33, 37, 30, .2);
}
.slider .thumb::after {
  content: ""; position: absolute; left: 50%; top: 9px; bottom: 9px; width: 2px; margin-left: -1px;
  border-radius: 1px; background: #B7D2C8;
}
.slider.unset .thumb { border-style: dashed; opacity: .75; }
.slider:focus-visible { outline: none; }
.slider:focus-visible .thumb { box-shadow: 0 0 0 4px rgba(46, 125, 108, .35); }
.slider.locked { opacity: .5; pointer-events: none; }
/* The two end years say how far the timeline reaches (it zooms as guesses rule years out), so they
   are set larger and darker than the other captions. */
.slider .marks { position: absolute; left: 0; right: 0; top: 48px; font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.slider .marks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.slider .marks span:first-child { transform: none; }
.slider .marks span:last-child { transform: translateX(-100%); }
.zoomnote { font-size: 13px; color: var(--muted); margin: 0; }

/* tips */
.tips { display: grid; gap: 8px; }
.tips ol { margin: 0; padding-left: 20px; }

/* atlas */
details.atlas > summary {
  display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none;
  padding: 10px 12px; border-radius: 12px; border: 1px solid #C6DDD5; background: var(--tint);
  color: var(--deep); font-size: 15px; font-weight: 600; line-height: 1.3;
}
details.atlas > summary:hover { border-color: var(--verdigris); background: #D8E9E2; }
details.atlas > summary::-webkit-details-marker { display: none; }
details.atlas > summary .globe { width: 22px; height: 22px; flex: none; }
details.atlas > summary .lbl { flex: 1; min-width: 0; }
details.atlas > summary .act {
  flex: none; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--verdigris); color: #fff;
}
details.atlas[open] > summary .act { background: var(--card); color: var(--deep); border: 1px solid #C6DDD5; }
.atlasmap {
  position: relative; margin-top: 10px; border-radius: 12px; overflow: hidden;
  background: #D5E2DF; border: 1px solid #C3CFC7; touch-action: none; aspect-ratio: 2 / 1; cursor: grab;
}
.atlasmap svg { width: 100%; height: 100%; display: block; }
.atlasmap .land { fill: #FBFAF4; stroke: #7F9185; stroke-width: 1; vector-effect: non-scaling-stroke; }
.atlasmap .borders { fill: none; stroke: #97A598; stroke-width: .8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.atlasmap .grat { fill: none; stroke: #C4D3CF; stroke-width: .5; vector-effect: non-scaling-stroke; }
.atlasmap circle { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: pointer; }
.atlasmap circle.on { stroke: var(--ink); stroke-width: 2; }
.atlasmap .ctl { position: absolute; right: 8px; top: 8px; display: grid; gap: 6px; }
.atlasmap .ctl button {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 18px; line-height: 1;
}
.atlasmap .ctl button.reset { width: auto; padding: 0 8px; font-size: 12px; }
.atlasinfo { font-size: 14px; min-height: 1.5em; margin: 8px 0 2px; }
.atlascap { font-size: 12px; color: var(--muted); margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.c-empire { fill: #2E7D6C; background: #2E7D6C; }
.c-country { fill: #8A6134; background: #8A6134; }
.c-city-state { fill: #4F6D9A; background: #4F6D9A; }
.c-tribe { fill: #A24E5F; background: #A24E5F; }

/* feedback */
.rows { display: grid; gap: 8px; }
.row {
  display: grid; gap: 6px 8px; padding: 10px 12px; border-radius: 12px;
  background: var(--plate); border: 1px solid var(--line);
}
.row .what { font-weight: 600; }
.row .what small { font-weight: 400; color: var(--muted); }
.row .res { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.row .pct { margin-left: auto; font-family: var(--display); font-size: 18px; }
.rowshead { display: none; }
/* The four-column table layout follows the width of the play column, not the window. */
.play { container-type: inline-size; }
@container (min-width: 520px) {
  .rowshead, .row { grid-template-columns: 1.6fr 1fr 1fr 64px; align-items: center; }
  .rowshead { display: grid; gap: 8px; padding: 0 12px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
  .row .res { display: contents; }
  .row .pct { margin-left: 0; text-align: right; }
}
.unitsbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); }
.unitsbar .grp { display: inline-flex; align-items: center; gap: 8px; }
.row .what .gn {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-right: 8px; padding: 0 5px;
  border-radius: 999px; background: var(--ground); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--muted); vertical-align: 1px;
}
.unitsbar .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--card); }
.unitsbar .seg button { border: 0; background: transparent; padding: 3px 12px; font-size: 13px; color: var(--muted); }
.unitsbar .seg button[aria-pressed="true"] { background: var(--tint); color: var(--deep); font-weight: 600; }
button.chip.dist { cursor: pointer; font: inherit; font-size: 14px; }
button.chip.dist:hover { border-color: var(--verdigris); }
.row .chip { justify-self: start; }

/* reveal */
.reveal { display: grid; gap: 12px; }
.reveal .verdict { font-family: var(--display); font-size: 26px; margin: 0; }
.reveal .line { font-family: var(--display); font-size: 20px; margin: 0; line-height: 1.35; }
.reveal .intro { margin: 0; }
.reveal .under { margin: 0; font-size: 15px; color: var(--bronze); }
.reveal .also { margin: -6px 0 0; font-size: 15px; color: var(--deep); }
.reveal h3 { margin: 4px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.reveal ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.sharebox { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sharebox textarea { width: 100%; font: 14px/1.4 ui-monospace, Menlo, monospace; border-radius: 10px; border: 1px solid var(--line); padding: 8px; }
.statline { display: flex; gap: 24px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--display); font-size: 28px; font-weight: 400; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }
.small { font-size: 13px; color: var(--muted); margin: 0; }
.countdown { font-family: var(--display); font-size: 18px; margin: 0; }
.adslot { min-height: 250px; border: 1px dashed var(--line); border-radius: 12px; }
@media (min-width: 1024px) { .adslot { min-height: 90px; } }

/* ---------------------------------------------------------------- sheets, toast, zoom */
dialog {
  border: 1px solid var(--line); border-radius: 18px; padding: 0; max-width: min(520px, calc(100vw - 32px));
  background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(33, 37, 30, .25);
}
dialog::backdrop { background: rgba(33, 37, 30, .35); }
.sheet { padding: 20px; display: grid; gap: 12px; }
.sheet h2 { font-family: var(--display); font-weight: 400; margin: 0; font-size: 24px; }
.sheet p { margin: 0; }
.sheet .actions { display: flex; justify-content: flex-end; gap: 8px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  max-width: min(460px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.zoomer {
  position: fixed; inset: 0; z-index: 50; background: rgba(20, 22, 18, .94);
  display: grid; place-items: center; touch-action: none; overscroll-behavior: contain;
}
.zoomer .stagebox { position: relative; width: min(96vw, 92vh); aspect-ratio: 1; overflow: hidden; border-radius: 12px; }
.zoomer .mover { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.zoomer .face { border-radius: 0; background: #1c1f1a; }
.zoomer .close {
  position: fixed; top: 12px; right: 12px; z-index: 51; height: 44px; padding: 0 16px; border-radius: 999px;
  border: 0; background: #fff; color: var(--ink); font-weight: 600;
}
.zoomer .zhint { position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; color: #cfd3ca; font-size: 13px; }
/* the Front/Back switch inside the zoom: top left, opposite Close, the card's switch in the Close button's colours */
.zoomer .zsides { position: fixed; top: 12px; left: 12px; z-index: 51; display: grid; justify-items: start; gap: 6px; }
.zoomer .zseg { display: inline-flex; height: 44px; padding: 4px; gap: 2px; border-radius: 999px; background: var(--ivory); }
.zoomer .zseg button {
  border: 0; border-radius: 999px; background: transparent; padding: 0 14px; font: inherit; font-size: 13px; font-weight: 600;
  letter-spacing: var(--caps); text-transform: uppercase; color: var(--slate); cursor: pointer;
}
.zoomer .zseg button[aria-pressed="true"] { background: var(--slate); color: var(--ivory); }
.zoomer .zseg button:disabled { color: #9AA19A; cursor: not-allowed; }
.zoomer .zlock { max-width: 28ch; padding: 4px 10px; border-radius: 999px; background: rgba(27, 42, 52, .88); color: #E4E7DF; font-size: 12px; line-height: 1.35; }

/* ---------------------------------------------------------------- about + footer + static pages */
.about { border-top: 1px solid var(--line); padding: 20px 0; color: var(--ink); }
.about p { max-width: 70ch; margin: 0 0 10px; }
.foot { border-top: 1px solid var(--line); padding: 18px 0 40px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--muted); }
.page { max-width: 760px; margin: 0 auto; padding: 24px var(--gutter) 40px; }
.page h1 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 8px 0 12px; line-height: 1.2; }
.page h2 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 26px 0 8px; }
.page p, .page li { max-width: 70ch; }
.page .updated { color: var(--muted); }
.page ul.cols { columns: 2 260px; column-gap: 28px; padding-left: 18px; }
.page ul.cols li { break-inside: avoid; margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* formerly inline styles (the CSP allows no inline style) */
.top .playlink { display: inline-flex; align-items: center; height: 40px; text-decoration: none; }
.card.loaderr { margin: 16px 0; }

/* ================================================================ brand layer */

body { background: var(--ivory); }
a { color: var(--deep); }
:focus-visible { outline-color: var(--gold); }

/* ---------------------------------------------------------------- header: slate band, gold hairline */
.top {
  background: rgba(27, 42, 52, .97);
  border-bottom: 1px solid var(--gold);
  box-shadow: 0 1px 0 rgba(198, 154, 69, .35), 0 6px 18px rgba(27, 42, 52, .18);
  color: var(--ivory);
  padding-top: 10px; padding-bottom: 10px;
}
.top .wordmark { color: var(--ivory); text-transform: uppercase; letter-spacing: .12em; font-size: clamp(17px, 4.6vw, 24px); }
a.wordmark, h1.wordmark a { display: inline-flex; align-items: center; gap: 10px; }
.wordmark .emblem { width: 36px; height: 36px; flex: none; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.dayno { color: var(--gold); letter-spacing: .06em; }
.top .iconbtn { color: var(--ivory); border-radius: 8px; }
.top .iconbtn:hover { background: rgba(245, 240, 229, .08); border-color: rgba(198, 154, 69, .6); }
.top :focus-visible { outline-color: var(--gold); }

.banner { background: var(--amber); border-color: #DCC48E; border-radius: 8px; }

/* ---------------------------------------------------------------- coin stage */
.plate {
  background: var(--plate); border-color: var(--line);
  box-shadow: inset 0 0 0 1px rgba(198, 154, 69, .18), var(--shadow);
}
.face { background: #EFE7D6; border-radius: 8px; }
.face .zoomhint { background: rgba(255, 253, 248, .92); border-color: var(--line); letter-spacing: .04em; }
#gm-hatch rect:first-child { fill: #F1E6CA; }
#gm-hatch rect:last-child { fill: #DCC48E; }
.seal-shape { stroke: var(--gold-deep); }

.chip { border-color: var(--line); background: var(--card); }
.chip.ok { background: var(--tint); border-color: #BCD0CB; color: var(--deep); }
.chip.close { background: var(--amber); border-color: #DCC48E; color: #6E4B18; }
.chip.tier-hard { border-color: var(--gold); color: var(--gold-deep); }

.second .locked {
  border-color: #D9CBA8; color: var(--muted);
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(233, 223, 200, .55) 10px 12px);
}
.second .clue h3, .reveal h3, .rowshead,
.field > label, .fieldlabel {
  text-transform: uppercase; letter-spacing: var(--caps); font-size: 12px; font-weight: 600; color: var(--muted);
}

/* ---------------------------------------------------------------- play column */
.card { border-color: var(--line); }
.guesscount { color: var(--ink); letter-spacing: .02em; }
.ta input { border-color: var(--silver); background: var(--plate); border-radius: 8px; }
.ta input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(198, 154, 69, .22); }
.ta ul { border-color: var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgba(27, 42, 52, .16); }
.ta li { border-radius: 6px; }
.ta li[aria-selected="true"] { background: var(--amber); }
.ta li.head { text-transform: uppercase; letter-spacing: var(--caps); font-size: 11px; }

.btn {
  border-radius: 8px; border-color: var(--slate); background: var(--slate); color: var(--ivory);
  text-transform: uppercase; letter-spacing: var(--caps); font-size: 14px;
}
.btn:hover { background: #263B48; border-color: var(--gold); }
.btn.ghost { background: var(--card); color: var(--slate); border-color: var(--silver); }
.btn.ghost:hover { background: var(--amber); border-color: #DCC48E; }
.lockchip { border-radius: 8px; background: var(--tint); border-color: #BCD0CB; color: var(--deep); }
/* right issuer: a gold medal moment, with the emblem beside it */
.lockchip.cheer {
  grid-template-columns: 52px 1fr; column-gap: 14px; align-items: center;
  border: 2px solid var(--gold); color: var(--slate);
  background: linear-gradient(135deg, #FBF2DA 0%, #F3E4BD 55%, #EAD39C 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, .7), 0 6px 18px rgba(143, 106, 44, .22);
}
.lockchip.cheer::before {
  content: ""; grid-row: 1 / span 3; width: 52px; height: 52px;
  background: url("/brand/emblem-v1.svg") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(110, 75, 24, .35));
}
.lockchip.cheer .lk-cheer { color: var(--slate); text-transform: uppercase; letter-spacing: .06em; font-size: 20px; }
.lockchip.cheer .lk-name { color: #6E4B18; }
.lockchip.cheer .lk-note { color: var(--slate); }
.field.nextstep .fieldlabel { color: var(--gold-deep); }
.field.nextstep .slider .thumb { animation-name: gm-nudge-gold; }
@keyframes gm-nudge-gold { 50% { box-shadow: 0 0 0 8px rgba(198, 154, 69, .35), 0 2px 6px rgba(27, 42, 52, .28); } }

/* date slider: an antique-gold coin seen edge-on */
.readout { border-bottom-color: var(--gold); }
.yearinput { border-color: var(--gold); border-radius: 8px; }
.slider .track { background: #E8DFCB; }
.slider .rule { background: repeating-linear-gradient(135deg, #D6C49A 0 3px, transparent 3px 7px); }
.slider .divider { background: var(--gold); opacity: .8; }
.slider .divider span { color: var(--gold-deep); letter-spacing: .04em; }
.slider .marks { color: var(--slate); letter-spacing: .04em; }
.slider .thumb {
  background: linear-gradient(90deg, #8E6526 0%, #E7C46F 38%, #C69A45 62%, #7A5620 100%);
  border: 1px solid #6E4B18; box-shadow: 0 2px 6px rgba(27, 42, 52, .28);
}
.slider .thumb::after { background: rgba(244, 223, 166, .85); }
.slider:focus-visible .thumb { box-shadow: 0 0 0 4px rgba(198, 154, 69, .4); }

/* atlas */
details.atlas > summary { border-color: #DCC48E; background: var(--amber); color: var(--slate); border-radius: 8px; }
details.atlas > summary:hover { border-color: var(--gold); background: #EFE2C2; }
details.atlas > summary .act { background: var(--slate); color: var(--ivory); letter-spacing: .06em; }
details.atlas[open] > summary .act { background: var(--card); color: var(--slate); border-color: #DCC48E; }
.atlasmap { background: #D9E3E0; border-color: #C9D3CC; border-radius: 8px; }
.atlasmap .land { fill: #FBF7EC; stroke: #8C9A90; }
.atlasmap .ctl button { border-radius: 6px; }

/* feedback rows */
.row { background: var(--plate); border-color: var(--line); border-radius: 8px; }
.row .pct { color: var(--slate); }
.row .what .gn { background: var(--parchment); border-color: #DCC48E; color: #6E4B18; }
.unitsbar .seg button[aria-pressed="true"] { background: var(--slate); color: var(--ivory); }
button.chip.dist:hover { border-color: var(--gold); }

/* reveal */
.reveal .verdict { color: var(--slate); letter-spacing: .02em; }
.reveal .under { color: var(--gold-deep); }
.reveal .also { color: var(--deep); }
.stat b { color: var(--slate); }
.countdown { color: var(--slate); }

/* ---------------------------------------------------------------- sheets, toast, zoom */
dialog { border-color: var(--line); border-radius: 12px; background: var(--card); }
dialog::backdrop { background: rgba(27, 42, 52, .45); }
.sheet h2 { text-transform: uppercase; letter-spacing: .08em; font-size: 22px; }
.toast { background: var(--slate); border-left: 3px solid var(--gold); border-radius: 8px; }
.zoomer { background: rgba(27, 42, 52, .96); }
.zoomer .close { background: var(--ivory); color: var(--slate); text-transform: uppercase; letter-spacing: var(--caps); font-size: 13px; }

/* ---------------------------------------------------------------- about + footer: the gold rule with a diamond */
.about { border-top: 0; padding-top: 8px; }
.about::before {
  content: ""; display: block; width: min(360px, 70%); height: 14px; margin: 4px auto 22px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M5 0L9 7L5 14L1 7Z' fill='%23C69A45'/%3E%3C/svg%3E") center / 10px 14px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left center / calc(50% - 16px) 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right center / calc(50% - 16px) 1px no-repeat;
}
.about p strong { font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--slate); }
.foot { border-top-color: var(--line); }
.foot nav a { text-transform: uppercase; letter-spacing: var(--caps); font-size: 12px; color: var(--slate); text-decoration: none; }
.foot nav a:hover { color: var(--gold-deep); }
.foot p { letter-spacing: .06em; }

/* ---------------------------------------------------------------- yesterday's coin, on the About page
   Each photograph at its own aspect ratio, never cropped: a coin photographed with both faces side
   by side (73 of the 180 launch coins) is one wide image, shown whole. */
.page .yesterday { margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--line); }
.page .yesterday:empty { display: none; }
.page .coin-day { margin: 0 0 4px; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; }
.page .coin-line { font-family: var(--display); font-size: 24px; line-height: 1.25; margin: 0 0 12px; }
.coin-photos { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 16px; }
.coin-photo { flex: 0 1 300px; margin: 0; min-width: 0; }
.coin-photo.wide { flex-basis: 100%; max-width: 640px; }
.coin-photo img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--card); box-shadow: 0 6px 18px rgba(27, 42, 52, .18); }
.coin-photo figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }
.page .yesterday .intro { font-size: 17px; line-height: 1.55; }
.coin-facts { padding-left: 20px; }
.coin-details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 14px 0; }
.coin-details dt { color: var(--muted); }
.coin-details dd { margin: 0; }
