:root {
  --cork: #c8102e;
  --green: #17703a;
  --page: #f2efe9;
  --ink: #17181a;
  --muted: #6b675f;
  --line: #d9d3c8;
  --card: #fff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
}

body {
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
}

a { color: var(--cork); }

.wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

/* ---------- header ---------- */

.top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.brand {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
}

.brand em {
  font-style: normal;
  color: var(--cork);
}

/* The logo is the way home on the two inner pages. A link that looks like a heading is only
   invisible as a link if it never behaves like one, so it gets a real hover and focus ring. */
.brand a {
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
}

.brand a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.brand a:focus-visible { outline: 3px solid var(--cork); outline-offset: 3px; }

.top .spacer { flex: 1; }

.daytag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- the board ---------- */

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: var(--ink);
  padding: 3px;
  border-radius: 2px;
}

.tile {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: #d8d4cc;
  cursor: pointer;
  overflow: hidden;
  display: block;
  width: 100%;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Picked is ink, never a colour. A coloured pick reads as a verdict, and the game
   never grades a tile - only the go. */
.tile[aria-pressed="true"] {
  box-shadow: inset 0 0 0 5px var(--ink);
}

.tile[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 24, 26, 0.42);
}

.tile[aria-pressed="true"]::before {
  content: "\2713";
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.tile:focus-visible {
  outline: 3px solid var(--cork);
  outline-offset: -3px;
}

.tile:disabled { cursor: default; }

.tile.locked { cursor: default; }

/* ---------- hint bar ---------- */

.hint {
  margin: 12px 0 0;
  min-height: 22px;
  font-size: 14px;
  color: var(--muted);
}

.hint b { color: var(--ink); }

/* ---------- buttons ---------- */

.btn {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.btn:disabled {
  background: #cfcac1;
  border-color: #cfcac1;
  color: #7c786f;
  cursor: default;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

.btn + .btn { margin-top: 8px; }

.pad { margin-top: 12px; }

/* Two full-width buttons stacked 8px apart read as one control with a seam. The gap is what
   says they are two different offers. */
#askhint + #peek { margin-top: 14px; }

/* ---------- history ---------- */

/* A horizontal strip under the board, newest first. The label stays put while the goes
   scroll beside it, so TRIES is always readable no matter how far back you look. */
.history {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 0 12px;
  border-top: 2px solid var(--ink);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* A soft right edge says "there are more goes" without a scrollbar. */
  mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
}

.history::-webkit-scrollbar { display: none; }

.history-label {
  position: sticky;
  left: 0;
  z-index: 2;
  flex: none;
  background: var(--page);
  padding-right: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.history-list {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: none;
  padding-right: 14px;
}

.attempt {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 3px;
  font: inherit;
  color: inherit;
}

/* The 3x3 board for that go. It has to keep the shape of the board above it, or the
   squares cannot be read back against the photographs. */
.mini {
  display: grid;
  grid-template-columns: repeat(3, 15px);
  grid-template-rows: repeat(3, 15px);
  gap: 2.5px;
}

.mini i {
  display: block;
  background: #ddd8ce;
  border-radius: 2px;
}

.mini i.on { background: var(--ink); }

/* The latest go is ringed, so you know which end is now. */
.attempt.is-latest .mini {
  outline: 2px solid var(--cork);
  outline-offset: 4px;
  border-radius: 3px;
}

/* An old go being shown on the board gets a quieter ring than the live one. */
.attempt.showing .mini {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 3px;
}

.attempt-score {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #9a958c;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.attempt-score b {
  color: var(--ink);
  font-weight: 800;
}

.none {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ---------- result ---------- */

/* Finishing a day replaces the board instead of appending a sheet under it. Scrolling
   down to discover your own result made a finished day feel like nothing happened. */
.sheet.screen-enter {
  margin-top: 6px;
  padding: 24px 20px 22px;
}

.sheet.screen-enter h2 { font-size: 28px; }

.sheet {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 20px;
  margin-top: 16px;
}

.sheet .kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 6px;
}

.sheet h2 {
  margin: 0 0 14px;
  font-size: 25px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sheet p { margin: 0 0 12px; font-size: 15px; }

/* The sheet's children set their own rhythm. The generic .sheet p rule outranks a bare
   class selector, so each of these is written as .sheet .x to actually win. */
.sheet .answers {
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin: 0 0 22px;
}

/* The one line on the last door that is allowed to look forward. Written as .sheet .promise
   for the same specificity reason as everything else in here. */
.sheet .promise {
  font-size: 14px;
  line-height: 1.45;
  color: var(--green);
  background: #eef4ef;
  border-left: 3px solid var(--green);
  border-radius: 0 6px 6px 0;
  padding: 11px 13px;
  margin: 0 0 22px;
}

.sheet .shareline {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: #f6f4ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  margin: 30px 0 0;
  /* The line break in the share text is deliberate, so honour it. Wrapping on top of that
     is fine; hiding the end of the message is not. */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

/* The red card. Rendered from canvas at 1080x1080 and shrunk to fit the sheet. */
.card {
  display: block;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  margin: 20px auto 0;
  border-radius: 12px;
  background: #e9e5dd;
  height: auto;
}

.share-row {
  display: flex;
  flex-wrap: wrap;   /* three 13px buttons do not fit one line on a 320px phone */
  gap: 10px;
  margin-top: 20px;
}

/* What the copy buttons just did, and what to do with it. Quiet, but it is the line that
   answers "copied to where?" without shifting the buttons around under your thumb. */
.share-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* Opt-in, quiet, and remembered. Deliberately not a big toggle: it is a small kindness
   for people sending this to each other, not a feature of the game. */
.hearts {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.hearts input {
  width: 16px;
  height: 16px;
  accent-color: var(--cork);
  cursor: pointer;
  margin: 0;
}

.btn.small {
  width: auto;
  flex: 1;
  padding: 10px 8px;
  font-size: 13px;
  border-width: 2px;
  white-space: nowrap;
}

.btn + .btn { margin-top: 0; }

.share-row .btn + .btn { margin-top: 0; }

/* Running total, at the top of every result. Three cells, no fractions - a lower score
   is better here, so anything that reads like a mark is misleading. */
.sheet .season {
  display: flex;
  align-items: stretch;
  background: #f6f4ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 4px;
  margin: 0 0 18px;
}

.sheet .season .stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 0;
  /* 2px, not 4px: at three cells across a 360px sheet "goes of 216 max" overran the cell by
     2px and lost its last letter to the ellipsis. */
  padding: 0 2px;
}

.sheet .season .stat + .stat {
  border-left: 1px solid var(--line);
}

.sheet .season b {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sheet .season span {
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* The red card. Rendered from canvas at 1080x1080 and shrunk to fit the sheet. */
.card {
  display: block;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  margin: 20px auto 0;
  border-radius: 12px;
  background: #e9e5dd;
}

.share-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

/* Opt-in, quiet, and remembered. Deliberately not a big toggle: it is a small kindness
   for people sending this to each other, not a feature of the game. */
.hearts {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.hearts input {
  width: 16px;
  height: 16px;
  accent-color: var(--cork);
  cursor: pointer;
  margin: 0;
}

.btn.small {
  width: auto;
  flex: 1;
  padding: 10px 8px;
  font-size: 13px;
  border-width: 2px;
  white-space: nowrap;
}

.btn + .btn { margin-top: 0; }

.share-row .btn + .btn { margin-top: 0; }

/* Running total, at the top of every result. Cumulative leads, average follows. */
.sheet .season {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: -0.015em;
  color: var(--muted);
  background: #f6f4ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 8px;
  margin: 0 0 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: center;
}

/* One line down to 360px. Below that there is not room for the whole sentence at a
   readable size, so it wraps rather than shrinking to 9px or losing words to an ellipsis. */
@media (max-width: 340px) {
  .sheet .season {
    white-space: normal;
    line-height: 1.45;
  }
}

/* Confetti sits over the whole column, and must not eat taps on the result. */
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
}

/* Before the season. One line, no ticking clock - an animated countdown invites the
   question of whether it is broken, and adds movement to a page with nothing to do. */
.opens {
  margin: 4px 0 0;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.opens b { color: var(--ink); }

/* ---------- door grid ---------- */

.doors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.door {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--card);
  font: inherit;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0;
}

.door small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* A finished door is green, not black. Black read as "switched off" rather than
   "done", which is the opposite of what it means. */
.door.done {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.door.done small { color: #d3e6da; }

.door.today {
  border-color: var(--cork);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.18);
}

.door.locked {
  border-color: var(--line);
  background: #e9e5dd;
  color: #a9a49b;
  cursor: default;
}

.door.locked small { color: #a9a49b; }

/* On the Christmas page the season strip sits under the toy, so it needs room above it. */
#season {
  /* On this page the strip stands alone, so the card around it is pure waste - a border and
     20px of padding wrapped round three numbers. Strip it back to the strip itself. */
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-top: 16px;
}

/* ---------- the season, closed ---------- */

/* Reads as a card that has been put away rather than an error. No red: nothing has gone wrong. */
.closed {
  margin: 4px 0 18px;
  padding: 16px 18px;
  background: #f6f4ef;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
}

.closed h2 {
  margin: 0 0 5px;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.closed p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.doors .door:disabled.done {
  cursor: default;
  opacity: 0.85;
}

/* ---------- the 25th door, full width under the calendar ---------- */

/* Not a 25th cell. A wide card reads as a different kind of thing - which it is: it opens
   once, on one day, and it is not a Corkcha board. */
.xmas-door {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 16px;
  align-items: center;
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  border: 0;
  text-align: left;
}

.xmas-door[hidden] { display: none; }

.xmas-badge {
  grid-row: 1 / span 2;
  align-self: start;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 0.75;
  padding-top: 2px;
}

.xmas-copy h2 {
  margin: 0 0 3px;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: #fff;
}

.xmas-copy p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34em;
}

/* The description sits under the call to action, one step quieter, so the card reads as a
   promise and then as a thing. */
.xmas-door .xmas-what {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

#xmasLink {
  grid-column: 2;
  justify-self: start;
  margin-top: 2px;
  background: #fff;
  color: var(--green);
  border-color: #fff;
}

/* Earned but not yet Christmas: the promise is real, so the card stops being wallpaper. */
.xmas-door.is-earned { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35); }

/* Today: it is live. */
.xmas-door.is-open { background: var(--cork); }
.xmas-door.is-open #xmasLink { color: var(--cork); }

/* ---------- Christmas Day: the band, the garland, the frame ---------- */

/* One evergreen band is the whole difference between "a page in the game" and "the Christmas
   page". The rest of the site stays as it is - a themed skin on every screen would make the
   photos compete with the furniture. */
.xmas-band {
  margin: 4px 0 18px;
  padding: 16px 18px 13px;
  background: var(--green);
  border-radius: 10px;
  color: #fff;
}

.xmas-greet {
  margin: 0 0 14px;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: #fff;
}

/* The garland is drawn as SVG (see garland.js) so the wire can sag and the bulbs can hang off
   it. The wrapper just gives it a little room. */
.garland {
  margin: 0 -4px -8px;
}

/* On the calendar it sits on cream rather than evergreen, so the wire takes the ink colour and
   the bulbs have to be a touch more definite to read against paper. */
.garland-calendar {
  color: var(--ink);
  margin: 10px -6px 18px;
}

.garland-calendar[hidden] { display: none; }

.garland-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* ---------- the Christmas sliding puzzle ---------- */

/* Read by a screen reader, invisible on screen. The page needs a heading; the reader does not
   need to scroll past one to reach the puzzle. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The one line of explanation, kept under the board where it answers a question instead of
   delaying one. */
/* The two ways out, under the picture peek and quieter than it. */
.puzzle-help {
  margin: 12px 0 4px;
  display: flex;
  flex-wrap: wrap;          /* stack the two rather than let a label break mid-phrase */
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  font-size: 13px;
  min-height: 30px;
}

.puzzle-help .linkish { white-space: nowrap; }

.puzzle-help .linkish { color: var(--muted); }

/* The green button, used for the two things worth doing on this page: ask for help, and send
   the result to someone. Green rather than gold - a filled yellow button reads as a payment
   button - and rather than red, which belongs to the brand and to a wrong answer. */
.btn.green {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn.green:hover { background: #125c30; border-color: #125c30; }

/* Beats the base disabled rule on specificity, which would otherwise leave a disabled green
   button looking perfectly pressable. */
.btn.green:disabled { background: #cfcac1; border-color: #cfcac1; color: #7c786f; }
/* An evergreen button in a fixed place still goes unnoticed, so after ten goes it gives itself
   a bounce. Twice, then it settles - a control that never stops moving is a control that gets
   ignored, or worse, looks broken. */
.btn.green.nudge { animation: hint-wobble 620ms ease-in-out 2; }

@keyframes hint-wobble {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.045); }
  70% { transform: scale(0.985); }
}

@media (prefers-reduced-motion: reduce) {
  .btn.green.nudge { animation: none; }
}

.puzzle-note {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* The board is the present, so it arrives wrapped: an evergreen frame around the whole
   puzzle, tiles and peek image alike, so the two can never sit 5px out of step. */
.puzzle {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 2px auto 0;
  --frame: 5px;
  padding: var(--frame);
  background: var(--green);
  border-radius: 9px;
  box-shadow: 0 10px 22px rgba(23, 24, 26, 0.18);
}

/* The board is the frame. Tiles sit inside at a quarter width each, so a translate of 100%
   moves exactly one cell and nothing needs recalculating on resize. */
.puzzle-board {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #d8d4cc;
  border-radius: 4px;
  overflow: hidden;
  touch-action: manipulation;
}

.ptile {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% / var(--n, 3));
  height: calc(100% / var(--n, 3));
  padding: 0;
  border: 0;
  margin: 0;
  background-image: url("../assets.2000e10e/xmas.webp");
  /* One slice per cell, so the photograph is divided exactly the way the board is. */
  background-size: calc(var(--n, 3) * 100%) calc(var(--n, 3) * 100%);
  background-repeat: no-repeat;
  /* The clunk: quick out of the finger, a slight overshoot into place. */
  transition: transform 150ms cubic-bezier(0.2, 0.85, 0.3, 1.15);
  will-change: transform;
  box-shadow: inset 0 0 0 1px rgba(23, 24, 26, 0.35);
  cursor: pointer;
}

.ptile.can-slide { box-shadow: inset 0 0 0 2px var(--cork); }

/* The tile that wants tapping, which is always one of the ones that can slide - so this has to
   outrank the red affordance above it. Gold, because it is a light and not an error. */
.puzzle .ptile.hint {
  box-shadow: inset 0 0 0 3px #ffd166, 0 0 14px 2px rgba(255, 209, 102, 0.85);
  z-index: 2;
}
.ptile:focus-visible { outline: 3px solid var(--cork); outline-offset: -3px; }
.ptile:disabled { cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .ptile { transition-duration: 1ms; }
}

/* The peek lays the finished picture behind the tiles and fades them off it. */
.puzzle-ref {
  position: absolute;
  inset: 0;
  /* A replaced element with auto width keeps its intrinsic size, so inset alone will not
     stretch it - the 768px photograph has to be told to fill its box. */
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.puzzle.peeking .puzzle-ref { opacity: 1; }
.puzzle.peeking .ptile { opacity: 0.15; }

.puzzle-stats {
  display: flex;
  margin-top: 22px;
  border-top: 2px solid var(--ink);
  padding-top: 12px;
}

/* display:flex above outranks the browser's [hidden] rule, so the strip needs its own.
   It stays out of the way until the first move rather than sitting there reading zero. */
.puzzle-stats[hidden] { display: none; }

.puzzle-stats .stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.puzzle-stats .stat + .stat { border-left: 1px solid var(--line); }

.puzzle-stats b {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.puzzle-stats span {
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- misc ---------- */

.foot {
  margin-top: 26px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.foot a { color: var(--muted); }

/* The photograph credit, kept quiet and at the very bottom - it is someone's work being lent,
   not a feature of the game. */
.credit {
  margin: 26px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* A button that reads as text, for destructive-ish actions that should not shout. */
.linkish {
  font: inherit;
  font-size: 12px;
  background: none;
  border: 0;
  padding: 4px 2px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.linkish:hover { color: var(--cork); }

.err {
  background: #fdecee;
  border: 1px solid #f5c6cd;
  color: #8a1023;
  border-radius: 10px;
  padding: 14px;
  font-size: 14px;
}

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

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