/* The web Daily (index.html) and friend challenges (challenge.html) share this sheet — the APP's look. */
/* The APP's look (2026-12-02, user: the web must be consistent with the app): Playfair Display titles, Lato for
   everything else, the app's light top bar, 4px Stamp buttons, 16px cards, letter tiles and hint buttons — the colours
   are theme/Color.kt's. Fonts are the app's own TTFs, subset to Latin + Latin Extended as woff2 (~70 KB). */
@font-face { font-family: Lato; src: url(fonts/lato_regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Lato; src: url(fonts/lato_bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Playfair; src: url(fonts/playfair_display_bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --paper: #F5F0E8; --surface: #E8E2D9; --charcoal: #1C1A17; --gold: #C9A84C; --gold-soft: #F2E4B8;
  --muted: #5C5651; --faint: #B5AFA6; --card: #FAF7F2; --edge: #DDD7CE; --slot: #E9E6DB;
  --wrong: #8B2635; --ok: #4A7C59;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); }
body {
  font-family: Lato, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: var(--charcoal);
  min-height: 100vh; -webkit-tap-highlight-color: transparent;
}
.num { font-variant-numeric: lining-nums tabular-nums; }
.serif { font-family: Playfair, Georgia, serif; font-weight: 700; }

/* the app's top bar: Playfair title, a gold pill on the right (the coin pill's place) */
header { background: var(--surface); min-height: 64px; padding: 8px 14px 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
header h1 { font-family: Playfair, Georgia, serif; font-weight: 700; font-size: 22px; line-height: 1.15; }
header .sub { font-size: 12px; color: var(--muted); }
header .sub a { color: inherit; text-decoration: none; }
.pill { background: var(--gold); color: var(--charcoal); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
main { max-width: 560px; margin: 0 auto; padding: 12px 12px 24px; }
.clock { text-align: right; font-weight: 700; font-size: 15px; margin: 6px 2px -6px; font-variant-numeric: tabular-nums; }
.tie { margin-top: 6px; font-weight: 700; font-size: 15px; }
.rows .r.time .st { font-weight: 700; color: var(--charcoal); letter-spacing: 0; }
.prompt { text-align: center; font-family: Playfair, Georgia, serif; font-weight: 700; font-size: 19px; margin: 2px 0 10px; }

.board { display: grid; grid-template-columns: 52% minmax(0, 1fr); gap: 8px; align-items: stretch; }
.shirt { background: var(--card); border-radius: 10px; padding: 6px; box-shadow: 0 2px 6px rgba(28,26,23,.18); }
.shirt img { width: 100%; height: auto; aspect-ratio: 896 / 1200; display: block; border-radius: 6px; }
.timeline { position: relative; display: flex; flex-direction: column; justify-content: space-around; padding-left: 18px; min-height: 0; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 8%; bottom: 8%; width: 1px; background: var(--faint); }
.row { position: relative; line-height: 1.15; min-width: 0; }
.row::before { content: ''; position: absolute; left: -17px; top: .38em; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--muted); }
.row.on::before { background: var(--gold); border-color: var(--gold); }
.row .label { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.row .label.unknown { color: var(--muted); }
.row .yrs { font-size: 12px; color: var(--muted); }
.row.country .label { font-style: italic; }
/* Long careers: name and years share one line, as the app's compact rows do */
.timeline.tight .row { display: flex; align-items: baseline; gap: 5px; }
.timeline.tight .row .label { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.timeline.tight .row .yrs { font-size: 11px; white-space: nowrap; flex-shrink: 0; }
.timeline.tight .row::before { top: .3em; width: 7px; height: 7px; left: -16px; }

/* answer slots and letter tiles: the app's AnswerRow / LetterTile */
.answer { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 16px 0 8px; }
.word { display: flex; gap: 5px; }
.slot {
  width: var(--slot-size, 32px); height: calc(var(--slot-size, 32px) * 1.15); border-radius: 4px; border: 1.5px solid var(--edge);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: calc(var(--slot-size, 32px) * .52);
  background: var(--slot); color: var(--charcoal); cursor: pointer; user-select: none;
}
.slot.filled { background: var(--card); border-color: var(--faint); }
.slot.locked { border-color: var(--gold); background: var(--gold-soft); cursor: default; }
.slot.fixed { border: none; background: none; width: calc(var(--slot-size, 32px) * .45); cursor: default; }
.answer.shake { animation: shake .42s; }
.answer.wrong .slot.filled { border-color: var(--wrong); color: var(--wrong); }
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-10px); } 40%,80% { transform: translateX(10px); } }

.msg { text-align: center; min-height: 1.4em; font-size: 14px; color: var(--muted); }
.msg.bad { color: var(--wrong); }
.pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 16px; }
.tile {
  width: 44px; height: 46px; border-radius: 8px; border: 1px solid var(--edge); background: var(--card);
  box-shadow: 0 2px 3px rgba(28,26,23,.18); font: 400 19px Lato, sans-serif; color: var(--charcoal); cursor: pointer;
  transition: transform .08s;
}
.tile:active { transform: scale(.88); }
.tile.used { visibility: hidden; }

/* hint buttons: the app's HintButton — gold outline, 12px corners, the cost line in gold */
.hints { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hint {
  height: 48px; border: 1px solid var(--gold); background: transparent; border-radius: 12px;
  font: 400 12px Lato, sans-serif; color: var(--charcoal); cursor: pointer; line-height: 1.25;
}
.hint small { display: block; color: var(--gold); font-size: 12px; font-weight: 700; }
.hint:disabled { opacity: .45; cursor: default; }

/* Stamp buttons: 4px corners, Lato bold letter-spaced; gold = primary, charcoal outline = secondary */
.stamp {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; border-radius: 4px;
  font: 700 14px Lato, sans-serif; letter-spacing: 1.25px; text-decoration: none; cursor: pointer;
}
.stamp.outline { background: transparent; border: 1.5px solid var(--charcoal); color: var(--charcoal); }
.giveup { margin-top: 12px; }

/* the small dark "in the app" card under the game */
.inapp {
  margin-top: 18px; background: var(--charcoal); color: var(--paper); border-radius: 16px; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.inapp .k { display: block; font-weight: 700; font-size: 12px; letter-spacing: 1.5px; color: var(--faint); }
.inapp .v { font-size: 13px; }
.inapp a { background: var(--gold); color: var(--charcoal); border-radius: 4px; padding: 0 14px; height: 40px; display: flex; align-items: center; font-weight: 700; font-size: 13px; letter-spacing: 1.25px; text-decoration: none; white-space: nowrap; }

.result { text-align: center; }
.stars { font-size: 32px; color: var(--gold); letter-spacing: .12em; }
.stars .off { color: var(--faint); }
.result .was { color: var(--muted); font-size: 14px; }
.result h2 { font-family: Playfair, Georgia, serif; font-weight: 700; font-size: 26px; margin: 2px 0 2px; }
.result h2.ok { color: var(--ok); }
.result .board { margin-top: 14px; text-align: left; }
.bio { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; text-align: left; }
/* the store card: dark, as the app's Arcade card */
.cta { margin-top: 18px; background: var(--charcoal); color: var(--paper); border-radius: 16px; padding: 16px; text-align: left; }
.cta h3 { font-weight: 700; font-size: 12px; letter-spacing: 1.5px; color: var(--faint); margin-bottom: 8px; text-transform: uppercase; }
.cta ul { list-style: none; margin-bottom: 14px; }
.cta li { padding-left: 1.3em; position: relative; margin: 5px 0; font-size: 14px; }
.cta li::before { content: '★'; position: absolute; left: 0; color: var(--gold); }
/* The official badges (self-hosted copies, so the page does not depend on Google's or Apple's CDN) */
.stores { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; align-items: center; }
.store { display: block; line-height: 0; }
.store img { height: 46px; width: auto; }
.empty .stores { margin-top: 4px; }
.after { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; margin-top: 16px; }
.share { height: 48px; }
.next { color: var(--muted); font-size: 13px; text-align: center; }
.empty { text-align: center; padding: 30px 0; }
.empty h2 { font-family: Playfair, Georgia, serif; font-weight: 700; font-size: 22px; }
.empty p { color: var(--muted); margin: 8px 0 18px; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 0 16px 30px; }
footer a { color: var(--muted); }
@media (max-width: 359px) { .board { grid-template-columns: 1fr; } .shirt { max-width: 240px; margin: 0 auto; } }
@media (prefers-reduced-motion: reduce) { .answer.shake { animation: none; } }
