/* The front-door website's styles (items 291 and 366), shared by its plain pages: Home
   (welcome.html), games.html, looks.html, about.html, rules.html and guide/*. Tabletop's look. Phone first: Home fits
   one screen at 360x800 and 390x844 with no scrolling. */
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("/site-fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("/site-fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("/site-fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/site-fonts/nunito-latin-800-normal.woff2") format("woff2"); }

:root {
  --bg: #efeaff;
  --ink: #1e1a38;
  --muted: #4f4970;
  --rule: #dad3f4;
  --card-edge: #cfc6f0;
  --tom: #ff6b4a;
  --sun: #ffc93c;
  --teal: #19c2ae;
  --sky: #7ba4ff;
  --berry: #f470a8;
  /* Three games' own colors, the same as their pieces in the game's Tabletop look. The other three
     games' colors are above. The Compendium is purple since item 340. */
  --rift: #ff6058;
  --dictation: #ff9a4a;
  --compendium: #b59bff;
  --edge: rgba(30, 26, 56, 0.25);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.45;
}
/* Nothing is ever underlined (owner, 2026-11-05). This page has no reset from the app, so the
   browser's own link underline has to be switched off here. */
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
main { flex: 1 0 auto; display: flex; flex-direction: column; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.disp { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; letter-spacing: -0.3px; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 26px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--card-edge);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--card-edge); }
.btn-small { min-height: 44px; padding: 0 14px; border-radius: 14px; font-size: 16px; box-shadow: 0 4px 0 var(--card-edge); }
.btn-small:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--card-edge); }
.btn-tom, .btn-sun { box-shadow: 0 6px 0 rgba(30, 26, 56, 0.3); }
.btn-small.btn-sun { box-shadow: 0 4px 0 rgba(30, 26, 56, 0.3); }
.btn-small.btn-sun:active { box-shadow: 0 1px 0 rgba(30, 26, 56, 0.3); }
.btn-tom:active, .btn-sun:active { box-shadow: 0 2px 0 rgba(30, 26, 56, 0.3); }
.btn-tom { min-height: 64px; padding: 0 34px; background: var(--tom); font-size: 22px; }
.btn-sun { background: var(--sun); }
.btn-line { border: 3px solid var(--ink); }
/* A white button disappears on a white popout (owner, 2026-11-05). */
dialog .btn:not(.btn-sun, .btn-tom, .btn-line) { background: var(--bg); }

/* The header: logo, three pages, Install and the only Sign in. One row until a phone, where the
   three pages take a row of their own. */
.head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: block; flex: none; border-radius: 12px; }
.brand img { display: block; width: 44px; height: 44px; border-radius: 12px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 14px;
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
}
.nav a[aria-current="page"] { background: #fff; }
.head-install, .head-signin, .acct { flex: none; }

.tom { background: var(--tom); }
.sun { background: var(--sun); }
.teal { background: var(--teal); }
.sky { background: var(--sky); }
.berry { background: var(--berry); }
.rift { background: var(--rift); }
.dictation { background: var(--dictation); }
.compendium { background: var(--compendium); }

/* Home: the top of the first website and nothing else (owner, 2026-11-05), centred on one screen. */
.hero {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 8px;
  padding-bottom: 32px;
}
.tiles { display: flex; gap: 10px; }
.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 15px;
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 700;
  font-size: 28px;
  box-shadow: 0 5px 0 var(--edge);
}
.tile:nth-child(1) { transform: rotate(-6deg); }
.tile:nth-child(2) { transform: rotate(4deg); }
.tile:nth-child(3) { transform: rotate(-3deg); }
.tile:nth-child(4) { transform: rotate(6deg); }
.hero h1 { margin-top: 30px; font-size: clamp(38px, 12.2vw, 76px); line-height: 1.02; }
.lead { margin-top: 14px; max-width: 560px; font-size: 21px; font-weight: 800; line-height: 1.4; }
.hero-play { width: 100%; max-width: 390px; margin-top: 30px; }
.hero-daily { width: 100%; max-width: 390px; margin-top: 12px; }
.free { margin-top: 16px; font-size: 15px; }
/* Home's motto line under the lead (owner picked it, 2026-11-13). */
.motto { margin-top: 6px; max-width: 560px; color: var(--muted); font-size: 17px; font-weight: 800; }

/* Games, Looks and About share a heading and a line under it. */
.page { padding-top: 12px; padding-bottom: 32px; }
.page h1 { font-size: 36px; line-height: 1.1; text-align: center; }
.sub { max-width: 640px; margin: 8px auto 20px; font-size: 17px; text-align: center; }
.sec { font-size: 26px; line-height: 1.1; }

.g3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.game {
  display: block;
  padding: 24px;
  border-radius: 24px;
  color: var(--ink);
  box-shadow: 0 7px 0 var(--edge);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.game:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 9px 0 var(--edge); }
.game:active { transform: translateY(4px); box-shadow: 0 3px 0 var(--edge); }
.game h2 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 28px; line-height: 1.05; text-align: center; }
/* Games page cards: bright colours, all three text levels black (owner, 2026-11-05). */
.game h2, .game-slogan, .game-text { color: #000; }
@media (forced-colors: active) { .game h2, .game-slogan, .game-text { color: inherit; } }
.game-slogan { display: block; margin-top: 4px; font-weight: 800; font-size: 16px; text-align: center; }
.game-text { display: block; margin-top: 10px; font-size: 15px; font-weight: 600; }
/* Games page: a small tilted phone of the game beside the words (owner picked option B, 2026-11-13). */
.game.with-phone { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 16px; align-items: center; }
.game.with-phone h2, .game.with-phone .game-slogan { text-align: left; }
.game-phone { display: block; width: 92px; aspect-ratio: 390 / 844; overflow: hidden; border: 4px solid var(--ink); border-radius: 14px; background: #fff; box-shadow: 0 5px 0 var(--edge); transition: transform 0.2s ease; }
/* Straight at rest so the screen stays sharp; it tilts when the card is pointed at (owner, 2026-11-13). */
.game.with-phone:hover .game-phone, .game.with-phone:focus-visible .game-phone { transform: rotate(4deg); }
@media (prefers-reduced-motion: reduce) { .game-phone { transition: none; } }
.game-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Home's Today's puzzles: one bright tile a game, two across on a phone, three on a wide screen. */
.today { padding-bottom: 8px; }
.today-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; }
@media (min-width: 641px) { .today-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.today-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 96px;
  height: 100%;
  padding: 14px;
  border-radius: 20px;
  text-align: center;
  color: #000;
  box-shadow: 0 6px 0 var(--edge);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.today-tile:hover { color: #000; transform: translateY(-2px); box-shadow: 0 8px 0 var(--edge); }
.today-tile:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--edge); }
.today-tile strong { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 20px; line-height: 1.1; }
.today-tile span { margin-top: 4px; font-size: 14px; font-weight: 600; }
@media (forced-colors: active) { .today-tile { color: inherit; } }
@media (prefers-reduced-motion: reduce) { .today-tile { transition: none; } }

.card { background: #fff; border-radius: 20px; box-shadow: 0 5px 0 var(--card-edge); }
.ways { display: grid; gap: 10px; margin: 0 0 24px; padding: 18px 20px; list-style: none; font-size: 15px; }
.ways strong { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 17px; }
.note { margin-top: 24px; font-size: 16px; }
.note a { font-weight: 800; }

/* Three real phone screenshots per pack: three Gothic, three Modern, then Kapow (Painted). */
.looks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; list-style: none; margin: 0; padding: 0; }
.look-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.look-name { font-size: 26px; }
.look-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--card-edge);
}
.look-play[hidden] { display: none; }
.look-play[aria-pressed="true"] { background: var(--sun); }
.look-play-icon { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.look-play[aria-pressed="true"] .look-play-icon { width: 10px; height: 10px; border: 0; background: currentColor; }
.look-name span { font-size: 16px; color: var(--muted); }
.look-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.look { display: block; }
.look:hover { color: var(--ink); }
.look img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 5px 0 var(--card-edge);
  transition: transform 0.12s ease;
}
.look:hover img { transform: translateY(-2px); }
.look-cap { display: block; margin-top: 8px; text-align: center; font-size: 15px; font-weight: 800; color: var(--muted); }
.look-cap span { font-weight: 600; }
.look-goal { display: block; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--muted); }

.about-part { padding: 22px 24px; }
.about-part p { margin-top: 8px; font-size: 16px; }
.about-part .btn { margin-top: 16px; }
.about-part a:not(.btn) { font-weight: 800; }
.about-part.about-contact { max-width: 640px; margin: 28px auto 0; text-align: center; }

/* About's FAQ: one row per question, opened with a tap, so the page stays short on a phone. */
.faq-title { margin-bottom: 14px; text-align: center; }
.faq { display: grid; gap: 12px; max-width: 640px; margin: 0 auto; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 18px;
  border-radius: 20px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq p { padding: 0 18px 16px; font-size: 16px; }
.faq a { font-weight: 800; }

/* Privacy and Terms on every page. Google sign-in asks that Home links to them. */
.foot { display: flex; justify-content: center; gap: 12px; padding-bottom: 6px; }
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
}

/* Popouts sit centred (the owner's rule), which a modal <dialog> does on its own. */
dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 22px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  overflow: auto;
}
dialog::backdrop { background: rgba(30, 26, 56, 0.6); }
dialog h2 { font-size: 24px; }
dialog p { margin-top: 10px; font-size: 16px; }
.signin-btns { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.dialog-actions { display: flex; justify-content: center; margin-top: 18px; }
.dialog-actions .btn { min-width: 120px; }
/* As wide as its picture, not the screen (site audit 2026-11-11: a white slab on tablet and PC). */
#shot { width: fit-content; max-width: calc(100vw - 32px); padding: 14px; }
#shot img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 176px);
  margin: 0 auto;
  border-radius: 14px;
}
/* A picture taller than the screen opens at full width, and the popout scrolls. */
#shot.shot-tall img { max-height: none; }
#shot p { margin-top: 10px; text-align: center; font-weight: 800; }

/* Under the six games: the other things worth explaining. */
.centered { text-align: center; }
/* Flex rather than grid: a last row that isn't full sits in the centre, not on the left (owner, 2026-11-05). */
.more { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 16px; }
.more > .btn { flex: 0 0 100%; min-width: 0; }
@media (min-width: 536px) { .more > .btn { flex-basis: calc(50% - 8.1px); } }
@media (min-width: 792px) { .more > .btn { flex-basis: calc(33.333% - 10.8px); } }
@media (min-width: 1048px) { .more > .btn { flex-basis: calc(25% - 12.1px); } }

/* A guide page: a picture and its words, one card a mode. */
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; font-size: 15px; color: var(--muted); }
.modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.modes > .mode { flex: 0 0 100%; min-width: 0; }
@media (min-width: 980px) { .modes:not(.narrow) > .mode { flex-basis: calc(50% - 10.1px); } }
.mode { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px; }
.mode .look img, .guide-pic img { border-radius: 12px; box-shadow: 0 3px 0 var(--card-edge); }
.mode h2 { font-size: 23px; line-height: 1.1; }
.mode p { margin-top: 8px; font-size: 15px; }
.guide-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 28px; }
.split { display: grid; gap: 20px; align-items: start; }
.guide-pic { max-width: 240px; margin: 0 auto; width: 100%; }
.split-text .sec { margin: 22px 0 10px; }
.split-text .sec:first-child { margin-top: 0; }
.rows { display: grid; gap: 12px; margin: 0; padding: 16px 18px; list-style: none; font-size: 15px; }
.rows strong { display: block; font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 17px; }
.narrow { max-width: 480px; margin: 0 auto; }
/* A row with a real badge beside it. */
.badges li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; }
.badges img { display: block; width: 56px; height: 56px; object-fit: contain; }
h2.centered { margin-top: 32px; }
h2.centered + .card { margin-top: 12px; }
h2.centered + .sub { margin-bottom: 14px; }

/* The rules: one game at a time, picked from the chips. The app's words, so its tags and class
   names are styled here rather than rewritten. */
.rules-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px; }
.rules-chips a[aria-current] { background: var(--ink); color: #fff; }
.rules { max-width: 760px; margin: 0 auto; display: grid; gap: 20px; }
.rules-part { padding: 20px 20px 24px; scroll-margin-top: 12px; font-size: 16px; overflow-wrap: anywhere; }
.rules-part > .sec { text-align: center; }
.rules-part h3 { margin: 18px 0 6px; font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 21px; line-height: 1.15; }
.rules-part h4 { margin: 16px 0 4px; font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 17px; }
.rules-part p { margin: 8px 0 0; }
.rules-part ul, .rules-part ol { margin: 8px 0 0; padding-left: 22px; }
.rules-part li { margin-top: 5px; }
.rules-part a { font-weight: 800; }
.rules-part code { font-family: inherit; font-weight: 800; }
.rules-part .help-fleuron { margin: 18px 0 0; text-align: center; color: var(--muted); }
.rules-part .rel-table { margin-top: 10px; display: grid; gap: 8px; }
/* The name sits in its own column and the rest of the row flows as one paragraph, so a bold word
   inside the text stays in it (a grid made every text run and <b> a cell of its own). */
.rules-part .rel-table > div { position: relative; padding-left: calc(34% + 10px); }
.rules-part .rel-k { position: absolute; left: 0; top: 0; width: 34%; font-weight: 800; }
.rules-part .strat, .rules-part .core-rule { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--bg); }
.rules-part .tile-swatch { display: inline-block; width: 14px; height: 14px; margin-right: 6px; border-radius: 4px; vertical-align: -2px; background: var(--rule); }
.rules-part .help-credit { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Contact us. Inputs at 16px, or a phone zooms the page when one is tapped. */
.contact-mail { font-weight: 800; overflow-wrap: anywhere; }
.contact-form { display: grid; gap: 12px; margin-top: 14px; }
.contact-form label { display: grid; gap: 4px; font-size: 15px; font-weight: 800; }
.contact-form label span { font-weight: 600; }
.contact-form .contact-label { font-weight: 800; }
.contact-or { margin-top: 14px; text-align: center; font-size: 15px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--card-edge);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
}
.contact-form textarea { resize: vertical; }
.contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-status { margin: 0; min-height: 22px; font-weight: 800; font-size: 15px; text-align: center; }
.contact-status:empty { min-height: 0; }
.contact-actions { gap: 12px; margin-top: 4px; }
.contact-actions .btn { min-width: 110px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .game, .look img { transition: none; }
}
@media (min-width: 760px) {
  .split { grid-template-columns: 240px minmax(0, 1fr); }
  .guide-pic { position: sticky; top: 16px; margin: 0; }
}
@media (max-width: 860px) {
  .looks { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .look-shots { gap: 8px; }
  .look-shots img { border-radius: 10px; }
  .look-cap { font-size: 14px; }
}
@media (max-width: 520px) {
  .head-install { margin-left: auto; }
  .nav { order: 1; width: 100%; margin-left: 0; justify-content: space-between; }
  /* Five tabs since Boards joined (owner, 2026-11-17): a little tighter, so they fit at 360. */
  .nav a { padding: 0 6px; font-size: 15px; }
}
@media (max-width: 400px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 641px) {
  .hero-play { width: auto; }
  .hero-daily { width: auto; }
}

/* The public boards (item 256), from the web-boards design boards: the tabs, then one card of ranked
   rows, a table on a wide screen and stacked rows on a phone. A wrapped row of tabs centres what's
   left over. */
.board-page h1 { font-size: 44px; line-height: 1.05; }
.board-page .sub { max-width: 620px; margin: 10px auto 0; font-size: 16px; font-weight: 700; line-height: 1.45; }
.board-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.board-tabs.is-clock { margin-top: 12px; }
.board-tab {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 0 var(--card-edge);
  color: var(--ink);
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}
.board-tab[aria-pressed="true"] { background: var(--teal); box-shadow: 0 4px 0 #0e8f80; }
.is-clock .board-tab[aria-pressed="true"] { background: var(--sun); box-shadow: 0 4px 0 #d69a12; }
.board-tab:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--card-edge); }
.board { margin-top: 22px; overflow: hidden; text-align: center; }
.board-status { padding: 30px 20px; font-size: 17px; font-weight: 800; line-height: 1.4; }
.board-retry { margin: -16px auto 30px; background: var(--tom); box-shadow: 0 4px 0 rgba(30, 26, 56, 0.3); }
.board-retry[hidden], .board-head[hidden], .board-status[hidden] { display: none; }
.board-rows { margin: 0; padding: 0 0 6px; list-style: none; text-align: left; }
.board-grid {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 120px 110px 130px 110px;
  align-items: center;
  column-gap: 12px;
  min-height: 64px;
  padding: 0 20px;
  border-top: 2px solid #f1edff;
}
.board-rows .board-grid:first-child { border-top: 0; }
.board-head { min-height: 44px; margin-top: 6px; border-top: 0; color: var(--muted); font-size: 13px; font-weight: 800; text-align: left; }
.board-head-report { text-align: right; }
.board-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #f1edff;
  box-shadow: 0 3px 0 var(--card-edge);
  font-family: "Fredoka", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
}
.board-rank.is-top-1 { background: var(--tom); box-shadow: 0 3px 0 #c9472b; }
.board-rank.is-top-2 { background: var(--sun); box-shadow: 0 3px 0 #d69a12; }
.board-rank.is-top-3 { background: var(--teal); box-shadow: 0 3px 0 #0e8f80; }
.board-name { font-family: "Fredoka", system-ui, sans-serif; font-size: 20px; font-weight: 600; line-height: 1.15; overflow-wrap: anywhere; }
/* House scores (item 463): our own targets, drawn lighter than a player's row and tagged. */
.board-rank.is-house { background: transparent; box-shadow: none; border: 2px dashed var(--card-edge); color: var(--muted); }
.is-house .board-name { color: var(--muted); }
.board-house-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1edff;
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  vertical-align: 3px;
}
.board-facts { display: contents; }
.board-cell { font-size: 16px; font-weight: 800; }
.board-date { color: var(--muted); font-weight: 700; }
.board-unit { display: none; }
.board-page .sub.board-what { margin-top: 8px; font-size: 15px; }
.board-report {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.board-report svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .board-head, .board-head[hidden] { display: none; }
  .board-rows .board-grid {
    grid-template-columns: 52px minmax(0, 1fr) 44px;
    grid-template-rows: auto auto;
    column-gap: 10px;
    padding: 10px 12px;
  }
  .board-rank { grid-row: 1 / span 2; }
  .board-name { grid-column: 2; font-size: 19px; }
  .board-facts { display: block; grid-column: 2; grid-row: 2; margin-top: 2px; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--muted); }
  .board-cell { display: inline; font-size: 14px; font-weight: 700; color: var(--muted); }
  .board-cleared::after { content: ", "; }
  .board-left::after { content: "."; }
  .board-date { display: block; }
  .board-report { grid-column: 3; grid-row: 1 / span 2; justify-content: center; }
  .board-report-word { display: none; }
  .board-unit { display: inline; }
}

/* The full app (2026-11-11): what members get, free against full, then a tour of every feature.
   The price is a placeholder ($—) until the money plan is settled. */
.fa-more { display: inline-block; margin-top: 10px; font-weight: 800; font-size: 15px; }
.fa-buy { max-width: 560px; margin: 32px auto 0; padding: 26px 22px; text-align: center; }
.fa-buy h2 { font-size: 28px; }
.fa-price { margin-top: 6px; font-size: 44px; line-height: 1; }
.fa-price span { font-family: "Nunito", system-ui, sans-serif; font-weight: 800; font-size: 18px; color: var(--muted); }
.fa-buy p.muted { margin-top: 8px; font-size: 15px; }
.fa-terms { max-width: 440px; margin: 14px auto 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; line-height: 1.4; }
.fa-terms a { color: inherit; font-weight: 800; }
.fa-buy-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 18px; }
.fa-vs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 860px; margin: 0 auto; }
@media (min-width: 700px) { .fa-vs { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: stretch; } }
.fa-col { display: flex; flex-direction: column; padding: 22px; }
.fa-col h2 { font-size: 26px; text-align: center; }
.fa-col .fa-colsub { margin-top: 2px; text-align: center; font-size: 15px; font-weight: 800; color: var(--muted); }
.fa-col.full { background: var(--sun); box-shadow: 0 7px 0 var(--edge); }
.fa-col.full .fa-colsub { color: #000; }
.fa-ticks { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 16px; font-weight: 800; }
.fa-ticks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 8px; }
.fa-ticks li::before { content: "\2713"; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; background: var(--teal); font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; }
.fa-col.full .fa-ticks li::before { background: #fff; }
.fa-col .fa-ticks { margin-bottom: 18px; }
.fa-col .btn { width: 100%; margin-top: auto; }
.fa-tour { display: grid; gap: 22px; max-width: 900px; margin: 0 auto; padding: 0; list-style: none; }
.fa-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px; }
.fa-row .fa-pic { display: flex; justify-content: center; }
.fa-row .fa-pic img:not(.fa-badge) { width: 100%; max-width: 200px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 14px; box-shadow: 0 4px 0 var(--card-edge); }
.fa-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #000; }
.fa-row h2 { margin-top: 8px; font-size: 26px; line-height: 1.1; }
.fa-row p { margin-top: 8px; font-size: 16px; }
@media (min-width: 700px) {
.fa-row { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; padding: 22px 28px; }
.fa-row:nth-child(even) { grid-template-columns: minmax(0, 1fr) 200px; }
.fa-row:nth-child(even) .fa-pic { order: 2; }
}
.fa-tour-title { margin-bottom: 16px; }
/* A white button disappears on a white card; and on a phone, what members get comes first. */
.fa-col:not(.full) .btn { background: var(--bg); }
@media (max-width: 699px) { .fa-col.full { order: -1; } }

/* The rows with no screenshot show a small group of the real art instead: four badges, four
   faces, the Sixth Shelf's three spines. */
.fa-row .fa-pic.fa-cluster { display: grid; grid-template-columns: repeat(2, 72px); gap: 10px; justify-content: center; }
.fa-row .fa-pic.fa-cluster img { width: 72px; max-width: none; height: auto; aspect-ratio: 213 / 320; object-fit: contain; border-radius: 0; box-shadow: none; }
.fa-row .fa-pic.fa-cluster img:nth-child(odd) { transform: rotate(-4deg); }
.fa-row .fa-pic.fa-cluster img:nth-child(even) { transform: rotate(4deg) translateY(10px); }
.fa-row .fa-pic.fa-faces { display: grid; grid-template-columns: repeat(2, 80px); gap: 12px; justify-content: center; }
.fa-row .fa-pic.fa-faces img { width: 80px; height: 80px; max-width: none; aspect-ratio: 1; border-radius: 50%; background: var(--bg); box-shadow: 0 4px 0 var(--card-edge); }
.fa-row .fa-pic.fa-spines { align-items: flex-end; gap: 6px; height: 170px; }
.fa-row .fa-pic.fa-spines img { width: auto; max-width: none; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.fa-row .fa-pic.fa-spines img:nth-child(2) { height: 90%; }
.fa-row .fa-pic.fa-spines img:nth-child(3) { height: 94%; }

/* Hidden on screen, read aloud: the rules page's "How to play" headings, the music buttons' names. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* A link inside running text looks like one: a deep tomato, never underlined (owner's rule; bold
   alone read as emphasis, site audit 2026-11-11). Darker than --tom so it reads on white. A soft
   tomato tint behind it marks it as a link by more than colour (2026-11-29 accessibility sweep). */
main p a:not(.btn):not(.fa-more):not(.back), main .rows span a, .faq a {
  color: #a8321a;
  font-weight: 700;
  background: #fde4dc;
  border-radius: 4px;
  padding: 0 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
main p a:not(.btn):not(.fa-more):not(.back):hover, main .rows span a:hover, .faq a:hover { background: #fbcbbd; color: #8a2812; }

/* A mode card with no picture yet: the text fills the card. */
.mode.no-pic { display: block; }

/* Looks, About, Rules and Boards end on the way to play. */
.page-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }

/* Tablet: two guide cards a row from 700px, so a long guide is about 1.5 screens, not 4.6 (site
   audit 2026-11-11, owner picked this over one card a row with a small picture). */
@media (min-width: 700px) and (max-width: 979px) {
  .modes:not(.narrow) > .mode { flex-basis: calc(50% - 10.1px); }
  .mode { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); }
}

/* The Account chip and its menu, for a signed-in account (site.js; owner, 2026-11-14). */
.acct { position: relative; flex: none; }
.acct-chip { gap: 8px; padding: 0 12px 0 8px; }
.acct-face {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: grid; place-items: center; flex: none;
}
.acct-face svg { width: 18px; height: 18px; }
.acct-caret { font-size: 13px; transition: transform 0.15s; }
.acct-chip[aria-expanded="true"] .acct-caret { transform: rotate(180deg); }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 20;
  min-width: 210px; padding: 8px;
  background: #fff; border: 2px solid var(--rule); border-radius: 16px;
  box-shadow: 0 6px 0 var(--card-edge);
  display: grid; gap: 2px;
}
.acct-menu[hidden] { display: none; }
.acct-menu a {
  display: block; padding: 11px 12px; border-radius: 10px;
  color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: none;
}
.acct-menu a:hover, .acct-menu a:focus-visible { background: var(--bg); }
.acct-menu a:active { background: var(--rule); }
.acct-menu .acct-who {
  margin: 0 0 4px; padding: 8px 12px 10px;
  font-size: 14px; color: var(--muted); border-bottom: 2px solid var(--rule);
}
.acct-menu .acct-out { color: #c2412a; }

/* How to play's drawn examples (owner's pick, 2026-11-21): a worked example per mode on the
   guide pages, a small one on each /games card, and on /rules a game-colored tab, a banner and
   the glance over the full text, which folds into "Read every rule". Class prefix hx-. */
:root { --hx-absent: #c9c3e3; --hx-on: #1e1a38; }
.hx { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; min-width: 0; }
.hx-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; max-width: 100%; }
.hx-sq { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font: 700 20px/1 "Fredoka", system-ui, sans-serif; background: var(--hx-absent); color: var(--hx-on); box-shadow: 0 4px 0 var(--edge); }
.hx-sq.m { background: var(--teal); }
.hx-sq.n { background: var(--sun); }
.hx-sq.c { background: var(--c, var(--sky)); }
.hx-sq.b { background: transparent; box-shadow: inset 0 0 0 2px var(--rule); color: var(--muted); }
.hx-sq.x { background: #fff; box-shadow: inset 0 0 0 2px var(--rule), 0 3px 0 var(--edge); }
.hx-sq.k { background: var(--hx-on); }
.hx-side { flex: 1 1 8em; min-width: 0; font-size: 14px; line-height: 1.3; color: var(--muted); }
.hx-ladder { flex-direction: column-reverse; gap: 6px; }
.hx-ladder .hx-row { flex-wrap: nowrap; }
.hx-key { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--muted); }
.hx-key span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; background: var(--k); }
.hx-speech { display: flex; gap: 10px; align-items: center; background: color-mix(in srgb, var(--c, var(--dictation)) 18%, #fff); border-radius: 16px; padding: 10px 14px; font-weight: 800; }
.hx-speech svg { flex: none; width: 22px; height: 22px; }
.hx-sentence { font-size: 18px; }
.hx-gap { display: inline-block; min-width: 6ch; border-bottom: 3px solid var(--c, var(--hx-on)); }
.hx-answer { display: inline-flex; gap: 8px; align-items: center; border-radius: 12px; padding: 8px 14px; background: #fff; font-weight: 800; box-shadow: 0 3px 0 var(--edge); }
.hx-ok { color: #0b7a6c; }
.hx-ranks { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.hx-rank { display: grid; grid-template-columns: minmax(5em, auto) 1fr auto; gap: 10px; align-items: center; font-variant-numeric: tabular-nums; }
.hx-bar { height: 14px; border-radius: 99px; background: var(--rule); overflow: hidden; }
.hx-bar i { display: block; height: 100%; width: var(--w); background: var(--bc); border-radius: 99px; }
.hx-rank em { font-style: normal; text-align: right; color: var(--muted); }
.hx-note { font-size: 14px; color: var(--muted); }
.hx-call { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hx-letter { width: 56px; height: 56px; border-radius: 16px; background: var(--c, var(--compendium)); display: grid; place-items: center; font: 700 32px/1 "Fredoka", system-ui, sans-serif; color: var(--hx-on); box-shadow: 0 5px 0 var(--edge); }
.hx-cat { border-radius: 14px; padding: 8px 14px; background: #fff; font-weight: 800; box-shadow: 0 3px 0 var(--edge); }
.hx-lines { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 26em; }
.hx-lines > span { display: flex; justify-content: space-between; gap: 16px; }
.hx-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hx-w { font: 700 16px/1 "Fredoka", system-ui, sans-serif; letter-spacing: 0.04em; background: #fff; color: var(--hx-on); border-radius: 8px; padding: 6px 8px; box-shadow: 0 3px 0 var(--edge); }
.hx-w b { color: #0b5f8a; }
.hx-w.done { background: var(--teal); }
.hx-w.burnt { background: transparent; box-shadow: inset 0 0 0 2px var(--rule); color: var(--muted); text-decoration: line-through; }
.hx-arrow { color: var(--muted); font-weight: 800; }
.hx-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-pill { font-weight: 800; font-size: 14px; border-radius: 999px; padding: 4px 12px; background: #fff; box-shadow: 0 3px 0 var(--edge); }
.hx-pill.hot { background: var(--c, var(--sky)); }
.hx-typo { text-decoration-color: var(--tom); text-decoration-thickness: 2px; }
.hx-grid { display: grid; grid-template-columns: repeat(var(--n), 34px); gap: 4px; }
.hx-grid .hx-sq { width: 34px; height: 34px; font-size: 17px; border-radius: 8px; }
.hx-found { display: flex; flex-direction: column; gap: 2px; width: 100%; border-radius: 14px; padding: 10px 14px; background: var(--c, var(--berry)); color: var(--hx-on); font-weight: 700; }
.hx-crypt { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hx-crypt > span { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 700 18px/1.1 "Fredoka", system-ui, sans-serif; letter-spacing: 0.12em; }
.hx-crypt em { font-style: normal; color: var(--muted); font-size: 14px; }
.hx-crypt b { min-width: 2ch; border-bottom: 2px solid var(--rule); text-align: center; }
.hx-wheel { display: grid; grid-template-columns: repeat(3, 40px); gap: 5px; flex: none; }

/* On a guide page the example runs under the screenshot and the text, the card's full width. */
.mode > .hx-mode { grid-column: 1 / -1; padding: 14px; border-radius: 14px; background: var(--bg); }
.mode > .hx-mode .hx-sq { width: 34px; height: 34px; font-size: 17px; border-radius: 8px; box-shadow: 0 3px 0 var(--edge); }
.mode > .hx-mode .hx-grid .hx-sq { width: 30px; height: 30px; }

/* The /games cards: a small example under the words in place of the phone. */
.game.with-ex h2, .game.with-ex .game-slogan { text-align: left; }
.hx-mini { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.55); color: #000; }
.hx-mini .hx-row { gap: 5px; }
.hx-mini .hx-sq { width: 30px; height: 30px; font-size: 16px; border-radius: 8px; border: 2px solid var(--hx-on); background: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18); }
.hx-mini .hx-sq.m { background: var(--teal); }
.hx-mini .hx-sq.n { background: var(--sun); }
.hx-mini .hx-sq.c { background: var(--hx-on); color: #fff; }
.hx-mini .hx-speech { background: #fff; padding: 8px 12px; font-size: 14px; }
.hx-mini .hx-speech svg { width: 18px; height: 18px; }
.hx-mini .hx-gap { border-bottom-color: var(--hx-on); min-width: 5ch; }
.hx-mini .hx-rank { font-size: 13px; gap: 6px; }
.hx-mini .hx-bar { height: 10px; background: rgba(0, 0, 0, 0.12); }
.hx-mini .hx-rank em, .hx-mini .hx-side, .hx-mini .hx-arrow { color: var(--hx-on); }
.hx-mini .hx-letter { width: 40px; height: 40px; font-size: 24px; border-radius: 12px; background: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18); }
.hx-mini .hx-cat { padding: 6px 10px; font-size: 14px; border-radius: 10px; }
.hx-mini .hx-chips { gap: 4px; }
.hx-mini .hx-w { font-size: 14px; padding: 5px 6px; }
.hx-mini .hx-w b { color: #b0005a; }

/* /rules: game-colored tabs, a banner, the glance, then the full text folded. */
.rules-chips a[data-c] { background: var(--c); color: var(--hx-on); box-shadow: 0 5px 0 var(--edge); }
.rules-chips a[data-c][aria-current] { transform: translateY(3px); box-shadow: 0 2px 0 var(--edge); outline: 3px solid var(--ink); outline-offset: 2px; }
.rules-part > .sec { display: none; }
.hx-banner { display: grid; gap: 4px; padding: 20px 22px; border-radius: 22px; background: var(--c); color: var(--hx-on); box-shadow: 0 6px 0 var(--edge); font-weight: 800; }
.hx-banner h2 { font-size: clamp(28px, 6vw, 40px); line-height: 1.05; }
.hx-idea { margin-top: 16px; font-size: 19px; font-weight: 800; }
.hx-pair { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 14px; }
@media (max-width: 680px) { .hx-pair { grid-template-columns: minmax(0, 1fr); } }
.hx-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px 20px; border-radius: 20px; background: var(--bg); }
.hx-label { font: 800 13px/1 "Nunito", system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
ul.hx-rules { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 20px; }
.hx-modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.hx-chip { border: 2px solid var(--rule); border-radius: 999px; padding: 3px 11px; font-weight: 800; font-size: 14px; }
.hx-chip.hx-free { border-color: var(--c); background: color-mix(in srgb, var(--c) 22%, transparent); }
.hx-modes-note { margin-top: 6px; text-align: center; font-size: 14px; color: var(--muted); }
details.hx-all { margin-top: 18px; padding-top: 12px; border-top: 2px dashed var(--rule); }
details.hx-all > summary { cursor: pointer; list-style: none; padding: 10px; border-radius: 14px; background: var(--bg); text-align: center; font: 700 19px/1.2 "Fredoka", system-ui, sans-serif; }
details.hx-all > summary::-webkit-details-marker { display: none; }
details.hx-all > summary::after { content: " +"; }
details.hx-all[open] > summary::after { content: " −"; }
details.hx-all > summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
@media (max-width: 420px) { .hx-sq { width: 36px; height: 36px; font-size: 18px; } }
