.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  inset: 5px auto auto 10px;
  z-index: 4;
  transform: translateY(-160%);
  border-radius: 6px;
  padding: 9px 16px;
  background: white;
}
.skip:focus { transform: none; }
.navlinks { gap: clamp(14px, 2.8vw, 36px); }
.menu-button { display: none; }
main section[id] { scroll-margin-block-start: 16px; }
.arcade-bottom { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 26px; }
.record-tools { margin-left: auto; max-width: 420px; }
.record-tools summary, .storage summary { padding-block: 8px; cursor: pointer; font-weight: 720; }
.record-tools .actions { gap: 6px; }
.record-tools button {
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #a9beb0;
  color: #fff4df;
  border-radius: 8px;
  background: transparent;
}
.record-tools button:hover:enabled { background: #25454a; }
.record-tools button:disabled { opacity: .56; cursor: default; }
.record-tools p { font-size: .94rem; margin: 4px 0 12px; }
.record-tools p:empty { display: none; }
.record-tools #record-status { margin-top: 9px; }
.intro .actions { align-items: center; }
.text-link { font-weight: 750; text-decoration: underline; text-underline-offset: .21em; padding: 9px 2px; }
.text-link:hover { color: #8e3e1a; }
.postcards, .bingo {
  display: grid;
  align-items: center;
  gap: clamp(26px, 4vw, 55px);
  margin-block: clamp(32px, 5vw, 68px);
  padding: clamp(22px, 4.5vw, 58px);
  border-radius: 25px;
}
.postcards { grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); background: #dce8df; color: #173a35; }
.postcards h2, .bingo h2 { font-size: clamp(2.4rem, 4.7vw, 4.3rem); line-height: 1.02; }
.post-copy h2 em { display: block; font-family: Georgia, serif; font-weight: 650; letter-spacing: -.06em; }
.post-copy > p, .bingo-copy > p:not(.note) { max-width: 43ch; line-height: 1.55; font-size: 1.06rem; }
.post-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 22px 15px; }
.post-choices button {
  min-height: 44px;
  border: 1px solid #7d9788;
  border-radius: 22px;
  padding: 6px 12px;
  color: #1c3e36;
  background: transparent;
  font-weight: 700;
}
.post-choices button:hover { background: #c9dbc9; }
.post-choices button[aria-pressed="true"] { border-color: #244b3e; background: #244b3e; color: #fffaf0; }
.post-stage { min-width: 0; padding: 9px 3px; }
.post-paper { position: relative; z-index: 0; margin: 0; transform: rotate(1.7deg); }
.post-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #f5ebd6;
  transform: rotate(-4deg) translate(-2px, 3px);
  box-shadow: 1px 5px 12px #24372d30;
}
.post-paper img { display: block; width: 100%; height: auto; box-shadow: 0 4px 9px #24372d2b; }
.postcards + .hero { padding-block: 0; }
.bingo { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: #f4e3bf; }
.bingo .note { margin: 0 0 20px; }
.bingo-copy h2 { max-width: 10ch; }
.bingo .actions { margin-top: 18px; }
.bingo #bingo-status { font-weight: 750; color: #354b37; margin: 12px 0 0; min-height: 1.65rem; }
.bingo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  gap: 2px;
  border: 2px solid #456653;
  background: #78907a;
  border-radius: 15px;
  box-shadow: 3px 4px 0 #c6ba96;
}
.bingo-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 74px;
  min-width: 0;
  padding: 7px 2px 6px;
  border: 0;
  border-radius: 0;
  background: #fffcf0;
  color: #19372c;
  font-weight: 750;
  font-size: clamp(.86rem, 1.3vw, 1.02rem);
  line-height: 1.2;
  touch-action: manipulation;
}
.bingo-cell img { display: block; width: min(78%, 94px); height: auto; aspect-ratio: 200/156; }
.bingo-cell::after {
  content: "";
  position: absolute;
  inset: 6px 6px auto auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid transparent;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  line-height: 20px;
}
@media (hover: hover) { .bingo-cell:hover { background: #edebd4; } }
.bingo-cell[aria-pressed="true"] { background: #d7e7cd; }
.bingo-cell[aria-pressed="true"]::after { content: "✓"; background: #27563e; color: white; }
.bingo-cell.in-line { background: #bad5ad; }
.bingo-cell:focus-visible { z-index: 1; outline-offset: -4px; }
.print-sign { display: none; }
.site-foot { display: block; padding-block: 18px 28px; border-top: 1px solid var(--line); }
.footline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 15px; }
.footline > a:last-child { margin-left: auto; text-decoration: underline; text-underline-offset: .18em; }
.foot-brand { font-size: 1.25rem; font-weight: 900; color: var(--ink); letter-spacing: -.05em; }
.storage { margin-top: 10px; max-width: 72ch; font-size: .93rem; }
.storage summary { width: fit-content; }
.storage p { margin: 6px 0 10px; }
@media (max-width: 760px) {
  nav.wrap { flex-wrap: wrap; justify-content: space-between; gap: 0 12px; padding-block: 7px; min-height: 58px; }
  .menu-button:not([hidden]) { display: block; padding: 6px 14px; min-height: 44px; border: 1px solid var(--line); background: transparent; border-radius: 9px; font-weight: 750; color: var(--ink); }
  .navlinks { width: 100%; display: flex; gap: 2px 15px; flex-wrap: wrap; }
  nav.menu-ready .navlinks { display: none; }
  nav.menu-ready.menu-open .navlinks { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 7px; padding-block: 5px 2px; }
  .postcards, .bingo { grid-template-columns: minmax(0, 1fr); }
  .postcards { grid-template-areas: "title" "intro" "preview" "choices" "save"; gap: 12px; }
  .post-copy { display: contents; }
  .post-copy h2 { grid-area: title; }
  .post-copy h2 em { display: inline; }
  .post-copy > p { grid-area: intro; margin: 0; }
  .post-choices { grid-area: choices; margin: 4px 0 0; }
  .post-copy > a { grid-area: save; justify-self: start; }
  .post-stage { grid-area: preview; padding: 12px 9px; }
  .record-tools { margin-left: 0; }
  .bingo-copy h2 { max-width: none; }
  .bingo-copy > p:not(.note) { margin-block: 10px; }
}
@media (max-width: 520px) {
  .postcards, .bingo { padding: 20px 16px; }
  .post-choices { gap: 5px; }
  .post-choices button { font-size: .9rem; padding-inline: 9px; }
  .bingo-grid { border-radius: 11px; }
  .bingo-cell::after { inset: 3px 3px auto auto; }
  .footline { gap: 4px 10px; }
}
@page { size: A4 portrait; margin: 16mm; }
@media print {
  html, body { margin: 0; color: #172a21; background: white; }
  body > header, body > footer, main > :not(#turbingo), #turbingo .actions, #bingo-status, #turbingo .note { display: none !important; }
  main.wrap { max-width: none; margin: 0; padding: 0; }
  #turbingo { display: block; margin: 0; padding: 0; color: #172a21; background: white; border-radius: 0; break-inside: avoid; }
  #turbingo h2 { max-width: none; font-size: 34pt; }
  #turbingo .bingo-copy > p:not(.note) { max-width: 100%; margin: 4mm 0 6mm; font-size: 13pt; }
  #turbingo .bingo-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1pt solid #536353; border-radius: 0; gap: 0; background: white; box-shadow: none; }
  #turbingo .bingo-cell { min-height: 38mm; border: .5pt solid #889586; background: white; color: #172a21; font-size: 12pt; }
  #turbingo .bingo-cell img { width: 30mm; }
  #turbingo .bingo-cell[aria-pressed="true"]::after { color: #172a21; background: white; border-color: #172a21; }
  .print-sign { display: block; margin: 6mm 0 0; font-size: 11pt; font-weight: 700; }
}
