/* Produced by: builder agent, 2026-10-16 — the daily's sheet, started from the
   free-play page's (site/style.css, 2026-10-15) so the two read as one game.
   Its own look on purpose: warm paper, ink and one vermilion accent. NOT Wells
   (navy, sky blue, rounded system sans) and NOT a Puzzle Press book page.
   Daily-only rules are at the end of the file. */

@font-face { font-family: "Fraunces"; src: url(fonts/Fraunces-var.woff) format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/IBMPlexMono-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/IBMPlexMono-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f5efe4;
  --sheet: #fbf8f2;
  --ink: #1d1a15;
  --pencil: #6b5a40;
  --rule: #c9bfae;
  --dim: #8a8070;
  --lie: #b5301a;        /* vermilion: suppositions and accusations only */
  --sel: #efd9a6;
  --peer: #f1e8d6;
  --same: #e6d2a8;
  --cell: min(calc((100vw - 28px) / 9), 52px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Fraunces", Georgia, serif; font-optical-sizing: auto;
  font-kerning: normal;
}
main { width: calc(var(--cell) * 9 + 4px); margin: 0 auto; padding: 18px 0 40px; }

header h1 {
  margin: 0; font-size: 38px; line-height: 1; font-weight: 750;
  font-variation-settings: "SOFT" 30, "WONK" 1; letter-spacing: -0.01em;
}
.tag { margin: 6px 0 14px; font-size: 16px; color: #4a443a; font-style: normal; }

button { font: inherit; color: inherit; cursor: pointer; }
.mono, .caseno, .status, .log, .keys, .seg button, .plain, .accuse, .pad .erase {
  font-family: "Plex Mono", ui-monospace, monospace;
}
.bar, .tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bar { margin-bottom: 8px; }
.caseno { font-size: 12px; color: var(--dim); letter-spacing: 0.06em; text-transform: uppercase; margin-left: auto; }

.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 3px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 6px 10px; font-size: 13px; }
.seg button + button { border-left: 1.5px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--sheet); }
.plain { border: 1.5px solid var(--rule); background: var(--sheet); border-radius: 3px; padding: 6px 10px; font-size: 13px; }
.plain[aria-pressed="true"] { border-color: var(--ink); }
.accuse {
  margin-left: auto; border: 1.5px solid var(--lie); background: var(--lie); color: #fff;
  border-radius: 3px; padding: 6px 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.accuse:disabled { background: transparent; color: var(--dim); border-color: var(--rule); cursor: default; }

.status { min-height: 2.6em; margin: 4px 0 8px; font-size: 13px; line-height: 1.35; }
.status .bad { color: var(--lie); }
.status .good { color: #2f5d34; font-weight: 600; }

.board {
  display: grid; grid-template-columns: repeat(9, var(--cell));
  border: 2px solid var(--ink); background: var(--sheet); width: max-content;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.cell {
  width: var(--cell); height: var(--cell); position: relative;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-size: calc(var(--cell) * 0.64); line-height: 1; cursor: pointer;
  font-variant-numeric: lining-nums;
}
.cell.c2, .cell.c5 { border-right: 2px solid var(--ink); }
.cell.c8 { border-right: 0; }
.cell.r2, .cell.r5 { border-bottom: 2px solid var(--ink); }
.cell.r8 { border-bottom: 0; }
.cell.peer { background: var(--peer); }
.cell.same { background: var(--same); }
.cell.sel { background: var(--sel); box-shadow: inset 0 0 0 2px var(--ink); }
.cell.given { font-weight: 760; font-variation-settings: "SOFT" 0, "WONK" 0; }
.cell.entry { font-weight: 380; color: var(--pencil); }
.cell.conflict .v { text-decoration: underline wavy var(--lie) 1.5px; text-underline-offset: 3px; }
.cell.suppose .v { color: var(--lie); font-weight: 760; }
.cell .was {
  position: absolute; top: 2px; left: 4px; font-size: calc(var(--cell) * 0.26);
  color: var(--dim); text-decoration: line-through; font-weight: 500;
}
/* A given already accused at least once. Deliberately NOT "innocent": a wrong
   accusation may have named the right cell with the wrong digit, so the dot
   only says "you tried this one"; the log says which digits. */
.cell.tried::after {
  content: ""; position: absolute; right: 4px; bottom: 4px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--dim);
}
.cell.caught { box-shadow: inset 0 0 0 3px var(--lie); }
.cell.caught .v { color: var(--lie); }
.marks {
  position: absolute; inset: 2px; display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr); font-size: calc(var(--cell) * 0.24); color: var(--pencil);
  font-weight: 450; text-align: center; align-items: center; line-height: 1;
}

.tools { margin: 10px 0 8px; flex-wrap: nowrap; }
.tools .accuse { white-space: nowrap; padding: 6px 10px; }
.pad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pad button {
  border: 1.5px solid var(--rule); background: var(--sheet); border-radius: 3px;
  height: 46px; font-size: 24px; font-weight: 500;
}
.pad button:active { background: var(--sel); }
.pad .erase { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.notes-mode .pad button:not(.erase) { font-size: 15px; color: var(--pencil); }

.log { list-style: none; padding: 0; margin: 12px 0 0; font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px; }
.log li { border: 1px solid var(--rule); padding: 2px 6px; border-radius: 2px; }
.log li.right { border-color: var(--lie); color: var(--lie); font-weight: 600; }

.rules { margin-top: 16px; font-size: 15px; line-height: 1.45; border-top: 1.5px solid var(--ink); padding-top: 8px; }
.rules summary { cursor: pointer; font-weight: 650; font-size: 16px; }
.rules ol { padding-left: 1.2em; }
.promise { border-left: 3px solid var(--lie); padding-left: 10px; }
.keys { font-size: 11.5px; color: var(--dim); }
footer { margin-top: 14px; display: flex; gap: 8px; }

@media (min-width: 700px) {
  main { padding-top: 32px; }
  header h1 { font-size: 46px; }
}

/* ---------------------------------------------------------------- daily only */
.titlerow { display: flex; align-items: center; gap: 8px; }
.hbtns { margin-left: auto; display: flex; gap: 6px; }
.hbtns .plain { min-width: 34px; }
.bar .caseno { margin-left: 0; }
/* 17 Oct: the clock (the score) sits in the title row; the tries are tokens, as
   Wells shows its drops - filled vermilion for a try left, hollow once spent. */
.clock { margin-left: auto; font-family: "Plex Mono", ui-monospace, monospace; font-size: 20px; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.titlerow .hbtns { margin-left: 10px; }
.tokens { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; }
.tok { width: 12px; height: 12px; border-radius: 50%; background: var(--lie); border: 1.5px solid var(--lie); }
.tok.gone { background: transparent; border-color: var(--rule); }
/* Picking the digit to accuse: the pad turns vermilion so a tap reads as an accusation, not a test. */
.pad.picking button:not(.erase) { border-color: var(--lie); color: var(--lie); font-weight: 650; }
.pad.picking button:disabled { border-color: var(--rule); color: var(--rule); font-weight: 400; cursor: default; }
.times { grid-template-columns: repeat(2, 1fr); }
.log li.drop { color: var(--dim); }
.log li.wrong { border-color: var(--lie); color: var(--lie); text-decoration: line-through; }
.end { margin-top: 16px; border-top: 1.5px solid var(--ink); padding-top: 12px; }
.share {
  font-family: "Plex Mono", ui-monospace, monospace; font-size: 14px; line-height: 1.5;
  background: var(--sheet); border: 1px solid var(--rule); padding: 10px 12px; margin: 0 0 10px;
  white-space: pre-wrap; word-break: break-word;
}
.endrow { display: flex; align-items: center; gap: 10px; }
.endrow .accuse { margin-left: 0; }
.copied { font-family: "Plex Mono", ui-monospace, monospace; font-size: 12.5px; color: #2f5d34; }
.next { font-family: "Plex Mono", ui-monospace, monospace; font-size: 13px; color: var(--pencil); margin: 10px 0 0; }

dialog {
  border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); color: var(--ink);
  width: min(420px, calc(100vw - 32px)); padding: 16px 18px; font-size: 15px; line-height: 1.45;
}
dialog::backdrop { background: rgba(29, 26, 21, 0.45); }
dialog h2 { margin: 0 0 8px; font-size: 24px; font-weight: 720; font-variation-settings: "SOFT" 30, "WONK" 1; }
dialog p { margin: 0 0 8px; }
dialog form { margin-top: 12px; display: flex; justify-content: flex-end; }
dialog form .accuse { margin-left: 0; }
.statnums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; margin-bottom: 12px; }
.statnums b { display: block; font-size: 28px; font-weight: 700; line-height: 1.1; }
.statnums span { font-family: "Plex Mono", ui-monospace, monospace; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.dist { display: grid; grid-template-columns: 2.4em 1fr; gap: 4px 8px; font-family: "Plex Mono", ui-monospace, monospace; font-size: 12.5px; align-items: center; }
.dist .barw { background: var(--ink); color: var(--sheet); padding: 1px 6px; min-width: 1.6em; text-align: right; border-radius: 2px; width: max-content; }
.dist .barw.today { background: var(--lie); }
.disthead { font-family: "Plex Mono", ui-monospace, monospace; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 6px; }
/* The Ko-fi BUTTON (Rod, 17 Oct: "more catchy, a button that is the link"). An
   outlined ink button - visibly secondary to the filled vermilion Copy result,
   which stays the primary action. The page's own Plex Mono; no new face. */
.support { margin: 22px 0 0; }
/* AT MOST ONE support button on screen (Rod, 17 Oct: "probably shouldn't ever have more than one button").
   In progress: only this foot one (the result panel is hidden). Once the day ends - caught, out of tries,
   given up, or reopened finished - app.js puts .done on <body> and only the result panel's button shows. */
.done .support { display: none; }
.endsupport { margin: 10px 0 0; }
.kofi {
  display: inline-block; font-family: "Plex Mono", ui-monospace, monospace; font-size: 13px; font-weight: 600;
  color: var(--ink); background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 3px;
  padding: 7px 14px; text-decoration: none; letter-spacing: 0.02em;
}
.kofi:hover, .kofi:focus-visible { background: var(--sel); }
