/* Bricolage Grotesque, SIL Open Font License 1.1, see fonts/OFL.txt. */
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-opsz-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --night: #2a24c4;
  --deep: #1a1580;
  --ink: #14112e;
  --butter: #ffe88a;
  --paper: #fff6d8;
  --hot: #ff5fa2;
  --line: rgba(255, 232, 138, .28);
  --ring: var(--hot);
  /* --night, --butter, --paper, --line and --ring follow the chosen background.
     These stay put: they sit on the dark board or the paper sheets. */
  --brand: #2a24c4;
  --brand-on: #ffe88a;
  --sheet: #fff6d8;
  --on-ink: #ffe88a;
  --on-ink-soft: #fff6d8;
  /* All 0 in a normal tab, so none of this moves anything there. */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --x-inset: 12.5%;
  --x-color: #fff;
  --x-edge: rgba(20, 17, 46, .75);
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
/* The document never scrolls. iOS blurs whatever a page scrolls under its status
   bar, so all scrolling happens in .app-scroll, which starts below it, and the
   body's padding is a solid strip in the page color. */
html, body { height: 100dvh; overflow: hidden; overscroll-behavior: none; background: var(--night); }
body { margin: 0; color: var(--butter); padding-top: var(--safe-top); }
.app-scroll {
  position: relative; height: 100%; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: none;
  padding: 0 var(--safe-right) var(--safe-bottom) var(--safe-left);
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

.svg-defs { position: absolute; }

.top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  max-width: 1160px; margin: 0 auto; padding: 22px 24px 8px;
}
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
h1 span { font-weight: 400; }
.who { display: flex; align-items: baseline; gap: 16px; font-size: .95rem; white-space: nowrap; }
.journey-badge { font-weight: 800; }
.mode-minor { font-size: .85rem; }
.seg button.mode-minor { font-weight: 500; }
.free-lock { margin-right: .3em; }
.free-lock[hidden] { display: none; }
.free-note { flex: 1 1 100%; margin: 0; font-size: .82rem; opacity: .85; }
.free-note[hidden] { display: none; }
.sizes button.size-locked { font-weight: 500; line-height: 1.05; }
.sizes button.size-locked::after { content: "🔒\FE0E " attr(data-progress); display: block; font-size: .62rem; opacity: .85; white-space: nowrap; }
.win-progress { margin: 0 0 8px; font-weight: 800; white-space: pre-line; }
.win-progress[hidden] { display: none; }
.hint-warn-stop { display: block; margin: 12px auto 0; }
.win-size { margin: 0 0 8px; font-weight: 700; }
.win-size[hidden] { display: none; }
.win-unlock { margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: var(--brand); color: var(--brand-on); font-weight: 800; }
.win-unlock[hidden] { display: none; }
.journey-badge[hidden] { display: none; }
.plain { padding: 0; text-decoration: underline; text-underline-offset: 3px; }

main {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px;
  max-width: 1160px; margin: 0 auto; padding: 16px 24px 40px; align-items: start;
}
.controls { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between; }
.seg { display: flex; border: 2px solid var(--butter); border-radius: 12px; overflow: hidden; }
.seg[hidden] { display: none; }
.seg button:disabled { opacity: .4; cursor: default; }
.seg button { padding: 7px 13px; min-height: 38px; font-weight: 600; }
.seg button + button { border-left: 2px solid var(--butter); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--butter); color: var(--night); }
.sizes button.size-played::after { content: " ✓"; }

.status { display: flex; align-items: baseline; gap: 14px; margin: 18px 0 10px; }
#timer { font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1; }
#meta { flex: 1; }
#lives { display: inline-flex; gap: 2px; align-self: center; }
#lives svg { width: 24px; height: 24px; }
#lives svg.gone { opacity: .22; filter: grayscale(1); }
.score-box { font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.score-box b { font-size: 1.35rem; font-weight: 800; }
.streak-count { color: var(--paper); font-weight: 600; }
.cell.miss { animation: miss .32s ease-out; box-shadow: inset 0 0 0 4px var(--hot); }
@keyframes miss { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
#hint { border: 2px solid var(--butter); border-radius: 10px; padding: 5px 12px; font-weight: 600; }
#hint:disabled { opacity: .45; cursor: default; }

.board {
  --n: 8;
  display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px;
  width: min(100%, 780px, calc(100dvh - 270px)); min-width: min(100%, 300px); aspect-ratio: 1;
  padding: 10px; background: var(--ink); border-radius: 18px; touch-action: none; user-select: none;
}
.board.empty { grid-template-columns: 1fr; place-items: center; padding: 20px; color: var(--on-ink); text-align: center; }
.daily-done .big-cat { width: 104px; height: 104px; padding: 10px; border-radius: 50%; background: var(--on-ink); }
.daily-done h2 { margin: 10px 0 6px; font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: -.02em; line-height: 1.1; }
.daily-done p { margin: 0 0 18px; font-size: 1.1rem; color: var(--on-ink-soft); }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.done-actions button { padding: 10px 16px; border: 2px solid var(--on-ink); border-radius: 12px; font-weight: 700; }
.done-actions button:first-child { background: var(--on-ink); color: var(--ink); }
.start-panel .big-cat { width: 84px; height: 84px; padding: 8px; border-radius: 50%; background: var(--on-ink); }
.start-panel h2 { margin: 8px 0 4px; font-size: clamp(1.4rem, 4vw, 2rem); letter-spacing: -.02em; line-height: 1.1; }
.start-panel p { margin: 0 0 14px; color: var(--on-ink-soft); }
.start-go { padding: 10px 34px; border-radius: 12px; background: var(--on-ink); color: var(--ink); font-size: 1.15rem; font-weight: 800; }
.cell {
  position: relative; display: grid; place-items: center; padding: 0; aspect-ratio: 1;
  border-radius: 12%; background: var(--c); color: var(--ink); overflow: hidden;
}
.cell svg { width: 88%; height: 88%; }
.cell.x::before {
  content: ""; position: absolute; inset: var(--x-inset);
  background: linear-gradient(45deg, transparent 41%, var(--x-color) 41% 59%, transparent 59%),
    linear-gradient(-45deg, transparent 41%, var(--x-color) 41% 59%, transparent 59%);
  filter: drop-shadow(0 0 1px var(--x-edge));
}
.cell.clash { box-shadow: inset 0 0 0 4px var(--hot); }
.cell.focus { box-shadow: inset 0 0 0 3px var(--on-ink-soft); }
.cell.spot { box-shadow: inset 0 0 0 5px var(--hot); }
/* What an explanation points at. Cleared when it's dismissed or the board moves. */
.cell.why-unit::after { content: ""; position: absolute; inset: 0; border: 2px dashed var(--ink); border-radius: inherit; pointer-events: none; }
.cell.why-cell::after { content: ""; position: absolute; inset: 0; border: 4px solid var(--ink); border-radius: inherit; pointer-events: none; }

/* Cat life. Only transform and opacity move, so phones can run it on the
   compositor. Cats may leave their cell while they're animating. */
.cat-art { display: block; transform-origin: 50% 85%; }
.cat-lids { opacity: 0; }
.cat-ear { visibility: hidden; transform-box: fill-box; transform-origin: 20% 90%; }
.cell.cat-landing, .cell.cat-active { overflow: visible; z-index: 2; }
.cell.cat-landing .cat-art { animation: cat-land .42s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes cat-land {
  0% { transform: translateY(-34%) scale(.5, 1.25); opacity: .4; }
  45% { transform: translateY(4%) scale(1.22, .72); opacity: 1; }
  70% { transform: scale(.92, 1.12); }
  100% { transform: none; }
}
.cell .cat-art.cat-cheer { animation: cat-cheer .34s ease-out; }
@keyframes cat-cheer {
  40% { transform: scale(var(--cheer, 1.1)); }
  100% { transform: none; }
}
.cell .cat-art.cat-happy { animation: cat-happy .46s ease-in-out; }
.cat-art.cat-happy .cat-lids { opacity: 1; }
@keyframes cat-happy {
  20% { transform: rotate(-12deg) scale(1.06); }
  45% { transform: rotate(11deg) scale(1.06); }
  70% { transform: rotate(-6deg); }
  100% { transform: none; }
}
.cat-art.cat-blink .cat-lids { animation: cat-blink .26s linear; }
@keyframes cat-blink {
  0%, 100% { opacity: 0; }
  30%, 70% { opacity: 1; }
}
.cat-art.cat-flick .cat-ear { visibility: visible; animation: cat-flick .34s ease-in-out; }
@keyframes cat-flick {
  30% { transform: rotate(16deg); }
  60% { transform: rotate(-6deg); }
  100% { transform: none; }
}
.cell .cat-art.cat-sad { animation: cat-sad .36s ease-in-out forwards; }
@keyframes cat-sad {
  15% { transform: translateX(-9%) rotate(-6deg); }
  35% { transform: translateX(9%) rotate(6deg); }
  55% { transform: translateX(-6%) rotate(-3deg); }
  75% { transform: translateX(5%) translateY(5%) rotate(3deg); opacity: 1; }
  100% { transform: translateY(12%) scale(.88); opacity: .35; }
}
.cell .cat-art.cat-wave { animation: cat-wave .34s ease-out var(--wave-delay, 0ms); }
@keyframes cat-wave {
  45% { transform: translateY(-26%) rotate(-7deg) scale(1.1); }
  75% { transform: translateY(3%) scale(1.06, .92); }
  100% { transform: none; }
}
/* The win: the last cat drops in slowly, the rest of the board steps back. */
.cell .cat-art.cat-finale { animation: cat-finale .7s cubic-bezier(.3, .7, .35, 1); }
@keyframes cat-finale {
  0% { transform: translateY(-120%) scale(2.6); opacity: .5; }
  55% { transform: translateY(0) scale(1.9, 1.3); opacity: 1; }
  72% { transform: translateY(-18%) scale(1.25, 1.45); }
  88% { transform: scale(1.3, .95); }
  100% { transform: none; }
}
.cell.win-last { z-index: 3; }
#board.win-dim .cell { transition: opacity .25s ease-out; }
#board.win-dim .cell:not(.win-last) { opacity: .55; }
.win-confetti { position: fixed; z-index: 18; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cat-burst {
  position: fixed; z-index: 15; width: var(--cell); height: var(--cell); margin: calc(var(--cell) / -2) 0 0 calc(var(--cell) / -2);
  border: 3px solid var(--on-ink-soft); border-radius: 50%; pointer-events: none; opacity: 0;
  animation: cat-burst .42s ease-out;
}
.cat-burst::before {
  content: ""; position: absolute; inset: -32%;
  background:
    radial-gradient(circle, var(--on-ink) 0 3px, transparent 4px) 50% 0 / 10px 10px no-repeat,
    radial-gradient(circle, var(--on-ink-soft) 0 3px, transparent 4px) 100% 50% / 10px 10px no-repeat,
    radial-gradient(circle, var(--hot) 0 3px, transparent 4px) 50% 100% / 10px 10px no-repeat,
    radial-gradient(circle, var(--on-ink) 0 3px, transparent 4px) 0 50% / 10px 10px no-repeat;
  transform: rotate(40deg);
}
@keyframes cat-burst {
  0% { transform: scale(.45); opacity: .95; }
  100% { transform: scale(1.3); opacity: 0; }
}
.gain-float {
  position: fixed; z-index: 16; margin: -1em 0 0 -1.6em; width: 3.2em; text-align: center; pointer-events: none;
  font-weight: 800; font-size: .95rem; color: var(--on-ink-soft); text-shadow: 0 1px 0 var(--ink), 0 0 3px var(--ink);
  opacity: 0; animation: gain-rise .75s ease-out;
}
.gain-float.gain-hot { font-size: 1.2rem; color: var(--on-ink); }
@keyframes gain-rise {
  0% { transform: translateY(8px) scale(.7); opacity: 0; }
  20% { transform: translateY(-6px) scale(1.1); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateY(-34px); opacity: 0; }
}

.hintpop {
  position: fixed; z-index: 20; transform: translate(-50%, -50%);
  top: calc(50% + (var(--safe-top) - var(--safe-bottom)) / 2); left: calc(50% + (var(--safe-left) - var(--safe-right)) / 2);
  width: min(92vw - var(--safe-left) - var(--safe-right), 420px);
  max-height: calc(100dvh - 24px - var(--safe-top) - var(--safe-bottom)); overflow: auto; padding: 18px;
  background: var(--sheet); color: var(--ink); border-radius: 16px;
  box-shadow: 0 0 0 3px var(--hot), 0 14px 34px rgba(20, 17, 46, .5);
}
.hintpop[hidden] { display: none; }
.say { line-height: 1.45; }
.say .step { display: block; }
.say .step + .step { margin-top: 8px; }
.hintpop .say { margin-bottom: 14px; font-size: 1.05rem; }
.hintpop .primary { padding: 10px; }
.check-marks { display: block; width: 100%; margin-bottom: 10px; padding: 8px; border: 2px solid var(--ink); border-radius: 12px; font-weight: 700; }
.check-marks[hidden] { display: none; }
.note { min-height: 3em; margin: 12px 0 0; max-width: 64ch; color: var(--paper); }
.note b { color: var(--butter); }
.account-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0 0; }
/* The only rules text there is: three small pictures and one line. */
.rule-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 420px; margin-top: 8px; }
.rule-card { margin: 0; text-align: center; }
.rule-card svg { display: block; width: 100%; max-width: 92px; margin: 0 auto 4px; border-radius: 10px; }
.rule-card figcaption { font-size: .78rem; line-height: 1.15; }
.rule-tap { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; font-size: .95rem; font-weight: 600; }
.rule-help-open { width: 26px; height: 26px; border: 2px solid var(--butter); border-radius: 50%; font-weight: 800; line-height: 1; }
.rule-help .rule-cards { margin: 0 0 12px; }
.rule-help p { margin: 0 0 6px; }
.rule-help .primary { margin-top: 8px; }

.ranks h2 { margin: 0; font-size: 1.8rem; letter-spacing: -.02em; }
.real { margin: 4px 0 14px; color: var(--paper); line-height: 1.4; }
.tabs { display: grid; grid-template-columns: repeat(5, auto); }
.tabs button { padding: 7px 4px; }
.fast-levels { margin-top: 8px; }
#fastSizes button { padding: 3px 0; min-width: 0; }
.fast-levels button { flex: 1; min-height: 32px; padding: 3px 4px; }
.caption { margin: 12px 0 6px; font-size: .9rem; opacity: .82; }
.list { list-style: none; margin: 0; padding: 0; }
.list li {
  display: grid; grid-template-columns: 2.2em 1fr auto; gap: 6px; align-items: baseline;
  padding: 8px 2px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.list li.me { color: var(--paper); font-weight: 800; }
.list .rank { opacity: .75; }
.list .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .dot { display: inline-block; width: .55em; height: .55em; margin-left: .4em; border-radius: 50%; background: #66f0a6; }
.list .none { display: block; border: 0; opacity: .85; }

dialog {
  inset: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  width: min(92vw - var(--safe-left) - var(--safe-right), 380px);
  max-height: calc(100dvh - 24px - var(--safe-top) - var(--safe-bottom)); overflow: auto;
  padding: 26px; border: 0; border-radius: 22px; text-align: center;
  background: var(--sheet); color: var(--ink);
}
dialog::backdrop { background: rgba(26, 21, 128, .78); }
dialog h2 { margin: 6px 0 10px; font-size: 1.8rem; letter-spacing: -.02em; }
.big-cat { display: block; width: 92px; height: 92px; margin: 0 auto; }
dialog label { display: block; margin-bottom: 6px; }
dialog input {
  width: 100%; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 10px;
  background: #fff; color: var(--ink); font-size: 1.1rem;
}
dialog h3 { margin: 0 0 4px; font-size: 1.15rem; }
dialog p { line-height: 1.4; }
.join-lead { margin: 0 0 12px; }
.join-lead:empty { display: none; }
#joinCodeRow, #joinNameRow { margin-bottom: 10px; }
#joinCodeRow[hidden], #joinNameRow[hidden] { display: none; }
#joinCode { font-size: .95rem; }
.join-switch { margin-top: 12px; }
.account-dialog { text-align: left; }
.account-dialog h2 { text-align: center; overflow-wrap: anywhere; }
.account-part { padding: 12px 0; border-top: 2px solid rgba(20, 17, 46, .14); }
.account-part p { margin: 0 0 10px; font-size: .95rem; }
.primary:disabled { opacity: .5; cursor: default; }
.share-box { display: flex; gap: 8px; margin-top: 10px; }
.share-box[hidden] { display: none; }
.share-box input { flex: 1; min-width: 0; padding: 7px 8px; font-size: .9rem; }
.share-copy { flex: none; padding: 7px 12px; border-radius: 10px; background: var(--brand); color: var(--brand-on); font-weight: 700; }
.share-list { list-style: none; margin: 10px 0 0; padding: 0; }
.share-list:empty { display: none; }
.share-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: .92rem; border-top: 1px solid rgba(20, 17, 46, .14); }
.share-list button { flex: none; color: #b5004e; }
.account-part .device-code {
  margin: 10px 0 6px; text-align: center; font-size: 1.6rem; font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: .04em; overflow-wrap: anywhere; user-select: all;
}
#signOut, #signOutAll { display: block; margin: 12px auto; color: #b5004e; }
.settings-gear { font-size: 1.15rem; line-height: 1; text-decoration: none; min-width: 24px; }
.settings-dialog { text-align: left; }
.settings-dialog h2 { text-align: center; }
.settings-note { margin: 0 0 8px; text-align: center; font-size: .9rem; }
.settings-part { padding: 10px 0; border-top: 2px solid rgba(20, 17, 46, .14); }
.swatch-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 6px 0; }
.swatch-pick { height: 34px; border: 2px solid rgba(20, 17, 46, .4); border-radius: 10px; background: var(--swatch); }
.swatch-pick[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--sheet); }
.settings-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; margin: 0; }
dialog .settings-line input { flex: none; width: 44px; height: 30px; padding: 0; }
dialog .settings-line input[type="checkbox"] { width: 22px; height: 22px; }
.choice-row { display: flex; margin: 6px 0; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; }
.choice-row button { flex: 1; min-height: 36px; padding: 4px; font-weight: 600; color: var(--ink); }
.choice-row button + button { border-left: 2px solid var(--ink); }
.choice-row button[aria-pressed="true"] { background: var(--brand); color: var(--brand-on); }
.settings-reset { display: block; margin: 10px auto; color: #b5004e; }
.settings-dialog :focus-visible, .account-dialog :focus-visible, .hintpop :focus-visible { outline-color: var(--hot); }
html[data-no-timer] #timer { visibility: hidden; }
.error { min-height: 1.4em; margin: 6px 0; color: #b5004e; font-size: .92rem; }
#winBody { line-height: 1.5; }
.primary {
  width: 100%; padding: 12px; border-radius: 12px; background: var(--brand); color: var(--brand-on); font-weight: 800;
}

@media (max-width: 900px) {
  main { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-inline: 14px; }
  .top { padding-inline: 14px; }
  .board { width: 100%; }
}
@media (max-width: 480px) {
  .top { padding: 12px 8px 2px; }
  h1 { font-size: 1.55rem; }
  h1 span { display: none; }
  .who { min-width: 0; gap: 10px; }
  #player { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; }
  main { padding: 8px 8px 28px; }
  .controls { gap: 6px; }
  .controls .seg { flex: 1 1 100%; }
  .controls .seg button { flex: 1; min-width: 0; min-height: 34px; padding: 4px 0; }
  .tabs button { min-width: 0; }
  .status { flex-wrap: wrap; gap: 2px 10px; margin: 8px 0 6px; }
  #timer { font-size: 1.7rem; flex: 1; }
  #meta { order: 3; flex: 1 1 100%; font-size: .88rem; }
  .score-box { font-size: .9rem; }
  .score-box b { font-size: 1.1rem; }
  #timer { flex: 0 1 auto; }
  #lives { flex: 1; }
  .board { gap: 2px; padding: 4px; border-radius: 12px; }
}
/* No room for all three here, and the count is the one that can go. */
@media (max-width: 400px) {
  #install:not([hidden]) ~ #online, .journey-badge:not([hidden]) ~ #online { display: none; }
  .tabs button { padding: 6px 2px; font-size: .84rem; }
}
/* 14×14 cells would fall under a tappable size here. */
@media (max-width: 349px) {
  [data-size="14"] { display: none; }
}
/* Phones on their side: board at full height, controls beside it. */
@media (max-height: 520px) and (orientation: landscape) {
  .top { position: absolute; top: 6px; right: calc(14px + var(--safe-right)); padding: 0; }
  h1 { display: none; }
  main { grid-template-columns: minmax(0, 1fr); padding: 8px 14px 24px; }
  .play { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-content: start; }
  .board {
    grid-column: 1; grid-row: 1 / span 5; align-self: start;
    width: calc(100dvh - 16px); min-width: 0; gap: 2px; padding: 4px; border-radius: 12px;
  }
  .controls { grid-column: 2; padding-top: 24px; gap: 6px; }
  .controls .seg button { min-height: 32px; padding: 4px 8px; }
  .status { grid-column: 2; flex-wrap: wrap; gap: 2px 10px; margin: 8px 0 0; }
  #timer { font-size: 1.6rem; }
  .rule-cards { display: none; }
  .rule-help .rule-cards { display: grid; }
  .rule-tap { grid-column: 2; }
  .note { grid-column: 2; min-height: 0; margin-top: 6px; font-size: .9rem; }
  .account-links { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .cell.miss { animation: none; }
  .cat-art, .cat-art * { animation: none !important; }
  .cat-art.cat-happy .cat-lids { opacity: 0; }
  .cat-burst { display: none; }
  .gain-float { animation: none; opacity: 1; }
}
/* The same again for the in-app setting. */
html[data-calm] .cell.miss { animation: none; }
html[data-calm] .cat-art, html[data-calm] .cat-art * { animation: none !important; }
html[data-calm] .cat-art.cat-happy .cat-lids { opacity: 0; }
html[data-calm] .cat-burst { display: none; }
html[data-calm] .gain-float { animation: none; opacity: 1; }
