/* Shared look for every Deep Cut Daily page: the silver turntable plinth, type, buttons and the sign-up box. */
:root {
  --plinth: #c8c6c0;
  --plinth-deep: #b2b0a9;
  --rim: #8e8c86;
  --mat: #252527;
  --ink: #131313;
  --ink-soft: #4a4945;
  --card: #e8e7e3;
  --line: rgba(19, 19, 19, 0.2);
  --strobe: #ff4d14;
  --label: #ff4d14;
  --label-ink: #1a0802;
  --good: #2f8f5b;
  --near: #d9a21b;
  --miss: #6f6e69;
  --g1: #e8c547;
  --g2: #6fbf73;
  --g3: #6f9ae8;
  --g4: #b07ad9;
  --display: "Anybody", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --plinth: #1e1e20; --plinth-deep: #141416; --rim: #4a4a4e; --mat: #0c0c0d; --ink: #efeee9; --ink-soft: #aaa8a2;
    --card: #2b2b2e; --line: rgba(239, 238, 233, 0.18); --strobe: #ff5a26; --label: #ff5a26; --miss: #4b4a47;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background-color: var(--plinth-deep); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--plinth);
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, rgba(0, 0, 0, 0.022) 1px 2px, transparent 2px 4px),
    linear-gradient(172deg, var(--plinth) 0%, var(--plinth-deep) 100%);
  font: 400 17px/1.5 var(--body);
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--strobe); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.shell { max-width: 760px; margin: 0 auto; padding: 14px clamp(16px, 4vw, 32px) 28px; display: flex; flex-direction: column; gap: 20px; }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-bottom: 12px; border-bottom: 1.5px solid var(--line); }
.brand { margin: 0; font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 150; font-size: clamp(22px, 5.4vw, 34px); line-height: 1; }
.brand a { text-decoration: none; }
.brand small { display: block; margin-top: 4px; font-family: var(--body); font-variation-settings: normal; font-weight: 400; font-size: 14px; color: var(--ink-soft); }
.crumb { font-size: 15px; color: var(--ink-soft); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding-top: 12px; border-top: 1.5px solid var(--line); font-size: 14px; color: var(--ink-soft); }
.foot button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

h2.title { margin: 0; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 80; font-size: clamp(30px, 6vw, 42px); line-height: 1.04; text-wrap: balance; }
.lede { margin: 0; max-width: 52ch; }
.muted { color: var(--ink-soft); }

.btn {
  appearance: none; min-height: 48px; padding: 14px 20px; border: 0; border-radius: 12px;
  background: var(--ink); color: var(--plinth); font: 700 17px/1 var(--body); cursor: pointer; transition: transform 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-small { min-height: 40px; padding: 10px 14px; font-size: 15px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }

.practice-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px; border: 1.5px dashed var(--ink-soft); border-radius: 12px; font-size: 15px; }
.practice-bar p { flex: 1 1 260px; margin: 0; }

/* End-of-game: how everyone did */
.spread { width: 100%; }
.spread h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 90; font-size: 20px; }
.bars { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: 6.8em minmax(0, 1fr); align-items: center; gap: 8px; font-size: 14px; }
.bars .bar { height: 22px; min-width: 22px; padding: 0 7px; border-radius: 5px; background: var(--miss); color: #fff; font-weight: 700; font-size: 13px; line-height: 22px; text-align: right; font-variant-numeric: tabular-nums; }
.bars li.is-you .bar { background: var(--strobe); }
.spread-note { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; }
.countdown b { font-variant-numeric: tabular-nums; }
.share-text { width: 100%; max-width: 420px; min-height: 96px; padding: 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--card); color: var(--ink); font: 400 15px/1.4 var(--body); }

/* "All games" button in each game's top bar */
.all-games { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 11px; border-radius: 99px; background: var(--ink); color: var(--plinth); font: 700 15px/1 var(--body); text-decoration: none; white-space: nowrap; transition: transform 0.12s ease; }
.all-games:hover { transform: translateY(-1px); }
.all-games-icon { display: grid; grid-template-columns: repeat(2, 6px); gap: 2px; }
.all-games-icon i { width: 6px; height: 6px; border-radius: 1.5px; background: var(--label); }
.all-games-icon i:nth-child(2) { background: var(--g2); } .all-games-icon i:nth-child(3) { background: var(--g3); } .all-games-icon i:nth-child(4) { background: var(--g1); }

/* "Keep playing" on every end screen */
.more-games { display: grid; gap: 10px; width: 100%; padding: 16px; border-radius: 18px; background: var(--mat); color: #efeee9; }
.more-games h3 { margin: 0; font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 100; font-size: 22px; color: #efeee9; }
.more-games > p { margin: -4px 0 0; color: #c9c8c3; font-size: 15px; }
.mg-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .mg-list { grid-template-columns: 1fr 1fr; } }
.mg-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; min-height: 100%; padding: 12px 14px; border-radius: 12px; background: #2b2b2e; color: #efeee9; text-decoration: none; transition: transform 0.12s ease, background 0.12s ease; }
.mg-card:hover { transform: translateY(-1px); background: #353539; }
.mg-name { margin: 0; font-family: var(--display); font-weight: 900; font-variation-settings: "wdth" 110; font-size: 18px; line-height: 1.1; }
.mg-blurb { grid-column: 1; margin: 0; font-size: 14px; color: #c9c8c3; }
.mg-tag { grid-column: 2; grid-row: 1 / span 2; padding: 6px 11px; border-radius: 99px; background: var(--label); color: var(--label-ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.mg-card.played { opacity: 0.6; }
.mg-card.played .mg-tag { background: var(--good); color: #fff; }

/* Sign-up box shown before a first game */
.dc-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(10, 10, 10, 0.55); }
.dc-card { width: 100%; max-width: 440px; padding: 22px; border-radius: 16px; background: var(--plinth); color: var(--ink); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); }
.dc-card h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 85; font-size: 26px; line-height: 1.1; }
.dc-card p { margin: 0 0 14px; }
.dc-card label.field { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; }
.dc-card input[type="email"] { width: 100%; padding: 12px 13px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); color: var(--ink); font: 400 18px/1.2 var(--body); }
.dc-error { min-height: 1.4em; margin: 6px 0 10px; color: #c8102e; font-size: 14px; }
.dc-fine { margin: 12px 0 0 !important; font-size: 14px; line-height: 1.4; color: var(--ink); }
.dc-skip { padding: 8px 4px; border: 0; background: none; color: var(--ink); font: 400 16px var(--body); text-decoration: underline; cursor: pointer; }

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