/* Type: Helvetica, black weight, for the date, tiles and every button. System fonts only:
   Apple devices use Helvetica Neue, Windows falls back to Arial Black, Android to Roboto. */

/* Neutral defaults. js/themes.js overwrites these on <html> when a theme is applied. */
:root {
  --bg: #F2F4F7;
  --text: #1D2329;
  --muted: #525C67;
  --rule: #1D2329;
  --pill-bg: #FFFFFF;
  --pill-text: #1D2329;
  --pill-border: #9AA3AD;
  --tile-border: #D2D7DD;
  --tile-border-filled: #7C8691;
  --tile-text: #1D2329;
  --key-bg: #E3E6E9;
  --key-bg-2: #E3E6E9;
  --key-bg-3: #E3E6E9;
  --key-text: #1D2329;
  --bg-2: #F2F4F7;
  --sw-0: #1D2329; --sw-1: #1D2329; --sw-2: #1D2329; --sw-3: #1D2329; --sw-4: #1D2329;
  --stripe: linear-gradient(90deg, #1D2329, #1D2329);
  --present-bg: #C9B458;
  --present-text: #1D2329;
  --correct-bg: #387F34;
  --correct-text: #FFFFFF;
  --absent-bg: #26292C;
  --absent-text: #FFFFFF;
  --panel-bg: #FFFFFF;
  --panel-text: #1D2329;
  --button-bg: #1E252C;
  --button-text: #FFFFFF;
  --toast-bg: #1D2329;
  --toast-text: #FFFFFF;

  --black: "Helvetica Neue", "Arial Black", Helvetica, Arial, sans-serif; /* use at 900 only */
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --theme-fade: 0.7s ease;
  --flip: 0.5s;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; height: 100%; }

html { background: var(--bg); }
body {
  background: var(--bg) linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%) fixed;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Smooth re-theme, only while a theme is being applied (class set by app.js),
   so ordinary key and tile updates stay instant. Off under reduced motion, below. */
.theming body, .theming .pill, .theming .icon-btn, .theming .tile, .theming .key, .theming .sheet, .theming .primary, .theming .toast, .theming .mini, .theming .headline, .theming .eyebrow, .theming .wordmark {
  transition: background-color var(--theme-fade), color var(--theme-fade), border-color var(--theme-fade);
}

.app {
  position: relative; z-index: 1; /* above the pixel-art backdrop */
  height: 100%;
  height: 100dvh;
  max-width: 520px;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 16px max(10px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

/* Header */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { font-family: var(--black); font-weight: 900; font-size: 1rem; letter-spacing: 0.02em; }
.bar-actions { display: flex; align-items: center; gap: 8px; }
.bar .pill { white-space: nowrap; }
@media (max-width: 360px) { .bar-actions { gap: 4px; } .bar .pill { padding-inline: 0.8em; } .bar .icon-btn { width: 32px; height: 32px; } }

.pill {
  font: 900 0.95rem/1 var(--black);
  letter-spacing: -0.01em;
  padding: 0.55em 1.1em;
  min-height: 36px;
  border-radius: 999px;
  border: 1.5px solid var(--pill-border);
  background: var(--pill-bg);
  color: var(--pill-text);
  cursor: pointer;
}
.pill:disabled { cursor: default; }
.pill:disabled:not([aria-pressed="true"]) { opacity: 0.55; }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--tile-border);
  background: transparent;
  color: var(--text);
  font: 900 1rem/1 var(--black);
  cursor: pointer;
}

.subbar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-top: 18px; }
.subbar .eyebrow { margin: 0; }
/* daily | unlimited switch */
.modes { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
@media (max-width: 360px) { .modes a { padding: 4px 7px; font-size: 0.78rem; } }
.modes a {
  position: relative;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--pill-border);
  color: var(--text);
  font: 900 0.85rem/1 var(--black);
  text-decoration: none;
}
.modes a[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
/* Dot on "daily" while today's word is unplayed. */
.modes a[data-new]::after {
  content: ""; position: absolute; top: -2px; right: -2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--correct-bg); box-shadow: 0 0 0 2px var(--bg);
}
.eyebrow {
  margin: 18px 0 0;
  font-family: var(--black);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--muted);
}
.headline {
  margin: 2px 0 0;
  font-family: var(--black);
  font-weight: 900;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1;
  letter-spacing: -0.035em;
  padding-bottom: 12px;
}
/* Every palette colour in equal parts, under the date. */
.top::after {
  content: "";
  display: block;
  height: 5px;
  border-radius: 3px;
  background: var(--stripe);
}

/* Word picker (unlimited mode) */
/* One row that scrolls sideways; it opens centred on the current word. The padding
   leaves room for the current word's focus ring at either end. */
.picker {
  display: flex;
  gap: 5px;
  margin-top: 12px;
  padding: 4px;
  margin-inline: -4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.picker a {
  flex: 0 0 34px;
  scroll-snap-align: center;
  display: grid; place-items: center;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid var(--tile-border);
  color: var(--text);
  font: 900 0.95rem/1 var(--black);
  text-decoration: none;
}
.picker a:not([data-result]) { border-color: var(--chip, var(--tile-border)); border-width: 2px; }
.picker a[data-result="won"] { background: var(--correct-bg); color: var(--correct-text); border-color: transparent; }
.picker a[data-result="lost"] { background: var(--absent-bg); color: var(--absent-text); border-color: transparent; }
.picker a[data-result="playing"] { border-color: var(--tile-border-filled); }
.picker a[aria-current="page"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }

/* Board */
.play {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  min-height: 0;
  /* The board sizes itself to whatever height is left between the header and the keyboard. */
  container-type: size;
}
.board {
  /* 6 rows and --cols columns (5, or 6 in the six-letter mode) with 6px gaps:
     width = (height - 30px) * cols/6 + (cols - 1) * 6px */
  --size: min(calc(70px * var(--cols, 5)), 100cqw, calc((100cqh - 30px - var(--reserve, 0px)) * var(--cols, 5) / 6 + (var(--cols, 5) - 1) * 6px));
  width: var(--size);
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  gap: 6px;
}
.row { display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); gap: 6px; }
.tile {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--tile-border);
  border-radius: 10px;
  font: 900 min(2rem, calc(var(--size) * 0.525 / var(--cols, 5)))/1 var(--black);
  text-transform: uppercase;
  color: var(--tile-text);
  user-select: none;
}
.tile.filled { border-color: var(--tile-border-filled); }
.tile.pop { animation: pop 0.12s ease-out; }
.tile[data-state] { border-color: transparent; }
.tile[data-state="correct"], .key[data-state="correct"], .mini[data-state="correct"] { background: var(--correct-bg); color: var(--correct-text); }
.tile[data-state="present"], .key[data-state="present"], .mini[data-state="present"] { background: var(--present-bg); color: var(--present-text); }
.tile[data-state="absent"], .key[data-state="absent"], .mini[data-state="absent"] { background: var(--absent-bg); color: var(--absent-text); }
.tile.flip { animation: flip var(--flip) ease-in-out both; }
.row.shake { animation: shake 0.4s; }
.tile.win { animation: hop 0.5s ease both; }

@keyframes pop { 50% { transform: scale(1.08); } }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}
@keyframes hop { 40% { transform: translateY(-14px); } 70% { transform: translateY(2px); } }

.notice { text-align: center; max-width: 30ch; color: var(--text); font-size: 1rem; line-height: 1.5; }
/* Once a word is finished, the board leaves room for "see result" under it. */
.play.done .board { --reserve: 44px; }
.link-btn {
  margin-top: 12px;
  background: none; border: 0; padding: 6px 4px;
  font: 900 1rem/1 var(--black); letter-spacing: -0.01em;
  color: var(--text); text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}

/* Keyboard */
.keyboard { display: grid; gap: 7px; padding-bottom: 4px; user-select: none; }
.krow { display: flex; gap: 5px; justify-content: center; }
.key {
  flex: 1 1 0;
  min-width: 0;
  max-width: 46px;
  height: 56px;
  border: 0;
  border-radius: 9px;
  background: var(--key-bg);
  color: var(--key-text);
  font: 900 1.05rem/1 var(--black);
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  padding: 0;
}
/* Each keyboard row takes a pale tint of a different palette colour. */
.krow:nth-child(2) .key:not([data-state]) { background: var(--key-bg-2); }
.krow:nth-child(3) .key:not([data-state]) { background: var(--key-bg-3); }
.key.wide { flex: 1.6 1 0; max-width: 74px; font-size: 0.95rem; letter-spacing: -0.01em; text-transform: none; }
.key svg { width: 22px; height: 22px; vertical-align: middle; }
.spacer { flex: 0.5 1 0; max-width: 23px; }
.key:active { filter: brightness(0.94); }

/* Leaderboard */
.icon-btn svg { width: 18px; height: 18px; display: block; margin: auto; }
.end-lb { margin-top: 10px; text-align: center; }
.end-lb p { margin: 0 0 2px; font-weight: 700; }
.end-lb .link-btn, #lb-rename { margin-top: 0; color: inherit; }
.lb-tabs { display: flex; gap: 4px; margin: 0 0 12px; }
.lb-tabs button {
  padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--pill-border);
  background: transparent; color: var(--text); font: 900 0.85rem/1 var(--black); cursor: pointer;
}
.lb-tabs button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.lb-me { margin: 0 0 12px; font-weight: 700; font-size: 1.05rem; }
.lb-join { margin: 0 0 12px; display: grid; gap: 6px; }
.lb-join label { font-weight: 900; font-family: var(--black); font-size: 1rem; }
.lb-field { display: flex; gap: 8px; }
.lb-field input {
  flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 14px;
  border-radius: 12px; border: 2px solid var(--panel-text); background: transparent; color: var(--panel-text);
  font: 700 1.05rem/1 var(--sans);
}
.lb-field .primary { width: auto; min-height: 48px; padding: 0 22px; }
.lb-rules { margin: 0; font-size: 0.85rem; }
.lb-error { margin: 0; min-height: 1.2em; font-weight: 700; }
.lb-status { margin: 4px 0; font-size: 0.9rem; }
.lb-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 2px; max-height: 46dvh; overflow-y: auto; }
.lb-list li {
  display: grid; grid-template-columns: 2rem 1fr auto; gap: 10px; align-items: baseline;
  padding: 8px 10px; border-radius: 10px; font-variant-numeric: tabular-nums;
}
.lb-list li.me { outline: 2px solid var(--panel-text); outline-offset: -2px; }
.lb-list .r { font-family: var(--black); font-weight: 900; }
.lb-list .n { font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.lb-list .n small { display: block; font-weight: 500; font-size: 0.8rem; margin-top: 2px; }
.lb-list .p { font-family: var(--black); font-weight: 900; }

/* Suggest a word */
.suggest-open { display: block; margin: 10px auto 0; color: inherit; }
.sheet .suggest-open[hidden] { display: none; }
.sg-form { display: grid; gap: 6px; margin-top: 4px; }
.sg-form label { font-family: var(--black); font-weight: 900; }
.sg-form .opt { font-family: var(--sans); font-weight: 400; font-size: 0.85rem; }
.sg-form input {
  height: 48px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--panel-text);
  background: transparent; color: var(--panel-text); font: 700 1.05rem/1 var(--sans);
}
#sg-word { text-transform: uppercase; letter-spacing: 0.2em; font-family: var(--black); font-weight: 900; }
.sg-form .primary { margin-top: 8px; }
.sg-done { font-weight: 700; font-size: 1.05rem; }

/* Credit, small and quiet under the keyboard */
.credit {
  margin: 6px 0 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}
.credit a { color: inherit; }
.support { display: block; width: fit-content; margin: 0 auto 8px; padding: 5px 12px; border-radius: 999px; background: #00b9fe; color: #fff; font: 900 0.78rem/1 var(--black); text-decoration: none; }
.support:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }

/* Toast */
.toast-wrap { position: fixed; top: 22%; left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; z-index: 10; }
.toast {
  background: var(--toast-bg); color: var(--toast-text);
  font-weight: 700; font-size: 0.95rem;
  padding: 12px 18px; border-radius: 10px;
}

/* Dialogs */
.sheet {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  border: 0;
  border-radius: 18px;
  padding: 28px 24px 22px;
  background: var(--panel-bg);
  color: var(--panel-text);
  box-shadow: 0 20px 60px rgb(0 0 0 / 0.3);
}
.sheet::backdrop { background: rgb(10 12 14 / 0.45); }
.sheet .eyebrow { margin-top: 0; color: inherit; opacity: 1; }
.sheet-title { font-family: var(--black); font-weight: 900; font-size: 2.2rem; letter-spacing: -0.03em; line-height: 1; margin: 4px 0 16px; }
.close {
  font-family: var(--black); font-weight: 900;
  position: absolute; top: 10px; right: 10px;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.streak { margin: -10px 0 14px; font-family: var(--black); font-weight: 900; font-size: 0.95rem; color: var(--panel-text); }
/* "★ FAN PICK": a little sticker for words players suggested. */
.headrow { display: flex; align-items: center; gap: 12px; }
.headrow .headline { min-width: 0; }
.fanpick {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  padding: 6px 10px 5px; border-radius: 6px;
  background: var(--text); color: var(--bg);
  font: 900 0.8rem/1 var(--black); letter-spacing: 0.08em; white-space: nowrap;
  transform: rotate(-4deg);
  box-shadow: 2px 2px 0 var(--present-bg);
}
.headrow .fanpick { margin-bottom: 10px; }
/* Shown while the hint is on, so it always visibly does something, even over a matching theme. */
.hint-banner { margin: 0 0 10px; padding: 7px 12px 7px 16px; border-radius: 8px; position: relative; overflow: hidden;
  background: var(--pill-bg); color: var(--pill-text); font-size: 0.85rem; font-weight: 700; line-height: 1.2; }
.hint-banner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--stripe); }
.hint-banner[hidden] { display: none; }
.end-fanpick { display: flex; align-items: center; gap: 10px; margin: -4px 0 16px; }
.end-fanpick .fanpick { background: var(--panel-text); color: var(--panel-bg); }
.fanpick-note { font-size: 0.85rem; color: var(--panel-text); opacity: 0.75; }
.answer { display: flex; gap: 5px; margin-bottom: 16px; }
.answer .mini { width: 42px; height: 42px; font-size: 1.25rem; }
.mini {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 7px;
  font: 900 1rem/1 var(--black); text-transform: uppercase;
}
.facts { margin: 0 0 16px; display: grid; gap: 8px; }
.facts div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 8px; align-items: baseline; }
.facts dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.facts dd { margin: 0; font-size: 1.05rem; font-weight: 600; }
.lyric { margin: 0 0 18px; padding-left: 14px; border-left: 3px solid var(--rule); }
.lyric blockquote { margin: 0; }
.lyric p { margin: 0; font-size: 1.3rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.lyric figcaption { margin-top: 6px; font-size: 0.85rem; }
.primary {
  width: 100%;
  min-height: 50px;
  border: 0; border-radius: 999px;
  background: var(--button-bg); color: var(--button-text);
  font: 900 1.1rem/1 var(--black); letter-spacing: -0.01em;
  cursor: pointer;
}
.secondary {
  width: 100%;
  min-height: 46px;
  margin-top: 8px;
  border: 2px solid var(--panel-text); border-radius: 999px;
  background: transparent; color: var(--panel-text);
  font: 900 1.05rem/1 var(--black); letter-spacing: -0.01em;
  cursor: pointer;
}
.status { min-height: 1.4em; margin: 8px 0 0; text-align: center; font-weight: 700; }
.small { font-size: 0.85rem; line-height: 1.5; margin: 6px 0 0; }
.sheet p { line-height: 1.5; }
.how-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.how-list li { display: flex; align-items: center; gap: 10px; }

:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
.sheet :focus-visible { outline-color: var(--panel-text); }
.sheet-title:focus { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Short screens (iPhone SE, small Androids, landscape): trim the chrome so the board gets the room. */
@media (max-height: 720px) {
  .eyebrow { margin-top: 6px; font-size: 0.9rem; }
  .subbar { margin-top: 6px; }
  .headline { font-size: 1.7rem; padding-bottom: 6px; }
  .top::after { height: 4px; }
  .picker { margin-top: 8px; }
  .picker a { height: 28px; flex-basis: 30px; font-size: 0.85rem; }
  .play { padding: 6px 0; }
  .keyboard { gap: 5px; }
  .key { height: 46px; }
  .credit { margin-top: 3px; }
}
/* Phone held sideways: not enough height to fit everything, so let the page scroll. */
@media (max-height: 460px) {
  .app { height: auto; min-height: 100dvh; }
  .play { flex: none; height: 300px; }
}
@media (max-height: 600px) {
  .eyebrow { display: none; }
  .headline { font-size: 1.4rem; }
  .key { height: 40px; }
}

/* Pixel-art backdrop for albums that have one (js/scenery.js). Empty tiles get a frosted
   fill so typed letters stay readable over the art. */
.scenery {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0;
  image-rendering: pixelated; image-rendering: crisp-edges;
  opacity: 0; transition: opacity 0.8s ease; pointer-events: none;
}
.scenery.on { opacity: 0.82; }
.scenery-on .tile:not([data-state]) { background: color-mix(in srgb, var(--bg) 80%, transparent); }
.scenery-on .credit { align-self: center; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 85%, transparent); }
.scenery-on .picker a:not([data-result]) { background: color-mix(in srgb, var(--bg) 80%, transparent); }

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

/* Easy daily: the song-title clue under the date */
.easy-clue { margin: 6px 0 0; font-weight: 700; font-size: 0.95rem; color: var(--muted); }
.end-easy { margin: 10px 0 0; font-weight: 700; font-size: 0.95rem; }
.end-easy a { color: inherit; }

/* Google's translator (js/translate.js): small box above the credit; hide its top banner and popups. */
.translate-box { text-align: center; font-size: 0.8rem; color: var(--muted); }
.translate-box select { font: inherit; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 6px; padding: 3px 6px; }
.translate-box .goog-te-gadget { color: var(--muted); font-size: 0.7rem; }
.translate-box .goog-te-gadget a { color: inherit; }
iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* Badges: graphite coins with line icons; album badges are records in the album's colours. */
.end-badge { margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--panel-text); display: grid; gap: 8px; }
.end-badge p { margin: 0; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; }
.end-badge .coin, .end-badge .disc { width: 34px; height: 34px; }
.end-badge .coin svg { width: 18px; height: 18px; }
.end-badge .link-btn { justify-self: start; }
/* Themes: plain plus one per album; the chosen one shows when no hint is on. */
.themes-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.themes-list button { width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px 12px; border: 1.5px solid var(--tile-border); border-radius: 12px; background: transparent; color: var(--panel-text);
  font: 900 1rem/1.15 var(--black); text-align: left; cursor: pointer; }
.themes-list button[aria-pressed="true"] { border-color: var(--panel-text); }
.themes-list .chip { height: 22px; border-radius: 6px; border: 1px solid #0003; }
.themes-list .tick { width: 18px; height: 18px; visibility: hidden; }
.themes-list button[aria-pressed="true"] .tick { visibility: visible; }
.badges-count { margin: 0 0 10px; font-weight: 700; }
.badges-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 60dvh; overflow-y: auto; }
.badges-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; }
.badges-list li.locked .badge-text { opacity: 0.55; }
.badges-list .badge-text { display: grid; }
.badges-list b { font-family: var(--black); font-weight: 900; }
.badges-list small { font-size: 0.85rem; color: var(--muted); }
.coin { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-text); color: var(--panel-bg); }
.coin svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.coin text { fill: currentColor; stroke: none; font: 900 10px var(--black); }
.coin.off { background: transparent; color: var(--muted); border: 1.5px dashed var(--pill-border); }
.disc { flex: none; width: 44px; height: 44px; border-radius: 50%; position: relative;
  background: radial-gradient(circle, var(--panel-bg) 0 3px, var(--c4) 3.5px 30%, transparent calc(30% + 0.5px)), conic-gradient(var(--c1) 0 25%, var(--c2) 0 50%, var(--c3) 0 75%, var(--c4) 0); }
.disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 2px, rgba(0, 0, 0, 0.12) 2px 2.5px); -webkit-mask: radial-gradient(circle, transparent 30%, #000 calc(30% + 1px)); mask: radial-gradient(circle, transparent 30%, #000 calc(30% + 1px)); }
.disc.off { background: transparent; border: 1.5px dashed var(--pill-border); }
.disc.off::after { display: none; }
