main {
  width: min(100%, 420px);
  padding: 17px clamp(12px, 4vw, 20px) 28px;
  background: repeating-conic-gradient(from 8deg at 50% 22%, #b7ddfd78 0deg 15deg, transparent 15deg 30deg),
    radial-gradient(ellipse at 50% 18%, #e3f5ff, #a9d5f8 65%, #a2cff1);
}
header, [data-view="board"] h1, .score, .ribbon {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px 19px;
  color: #103486;
  background: linear-gradient(#fff9e9, #f8dfaa);
  border: 2px solid white;
  border-radius: 21px;
  box-shadow: inset 0 -3px #dfbb7c, 0 4px 6px #21558645;
  text-align: center;
  font-weight: 900;
}
header { font-size: 22px; letter-spacing: -.035em; }
main:has([data-view="board"]) header,
main:has([data-view="results"]) header { display: none; }
[data-view="home"] { text-align: center; }
[data-view="home"] h1, [data-view="results"] h1 {
  font-size: clamp(42px, 13vw, 63px);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  color: #103486;
  margin: 36px 0 25px;
  paint-order: stroke fill;
  -webkit-text-stroke: 8px #fff6df;
  text-shadow: 0 6px #dfb46b, 0 9px 9px #1348844d;
}
.intro, .feedback {
  background: linear-gradient(#fffaf0,#f9e9c8);
  border: 2px solid white;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 3px #dbb777, 0 6px 8px #24588730;
  color: #102f76;
}
[data-view="home"] .intro { margin: 24px auto 34px; font-weight: 650; }
.example { display: grid; grid-template-columns: 1fr 68px 1fr; gap: 0; margin: 30px 0 40px; }
.example span, .tile, .result li, .secondary {
  background: linear-gradient(#fffaf0,#f9eacb);
  border: 2px solid white;
  box-shadow: inset 0 -3px #e9cc96, 0 4px #be995e, 0 7px 8px #24588745;
  color: #102f76;
}
.example span { padding: 20px 8px; font-weight: 900; font-size: 18px; line-height: 1.13; }
.example svg { width: 100%; overflow: visible; filter: drop-shadow(0 0 4px #ffab12); }
.example path, .example circle { stroke: #e69506; stroke-width: 3; fill: #fff49b; }
.example path { fill: none; }
.ribbon { border-radius: 13px; color: #793000; font-size: 19px; }
.primary {
  color: #351803;
  min-height: 58px;
  background: linear-gradient(#ffb467,#ff8b36);
  border: 3px solid #fff5e5;
  border-radius: 22px;
  box-shadow: inset 0 -4px #dc6217, 0 4px #a64c10, 0 8px 12px #23558a42;
  font-size: 21px;
}
[data-view="home"] .primary { margin-top: 26px; }
[data-view="board"] h1 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 12px; }
.score { margin-bottom: 14px; padding: 4px 13px; font-size: 16px; }
.score strong { color: #a84308; }
.board { gap: 12px clamp(19px, 7vw, 30px); padding: 13px 10px 16px; background: #a9d7fb; border: 3px solid #f6fbff; box-shadow: 0 4px #669ed0, 0 8px 12px #22558830, inset 0 0 0 2px #7eb8e9; }
.board b { padding: 4px; border-radius: 13px; background: #8dc7f2; }
.tile { min-height: clamp(65px, 20vw, 82px); padding: 7px; font-size: clamp(14px, 4.15vw, 17px); font-weight: 820; }
.tile[aria-pressed=true] { background: #ffdf8b; outline: 2px solid #a76700; }
.tile.matching { background: #fff1a5; box-shadow: 0 0 12px 3px #ffd146; }
.feedback { margin: 16px 0 2px; font-size: 14px; }
[data-view="results"] .ribbon { margin-bottom: 18px; }
.result { display: grid; gap: 9px; }
.result li { border-radius: 13px; padding: 9px 13px; }
.result li span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.35; }
.hint-count { text-align: center; font-size: 14px; }
.secondary { margin-top: 14px; width: 100%; }
h1:focus { outline: none; }
[data-view="home"] h1 { margin-top: clamp(32px, 7dvh, 64px); transform: rotate(-4deg); }
[data-view="home"] .intro { margin-top: clamp(25px, 5dvh, 48px); }
[data-view="home"] .example { margin-bottom: clamp(34px, 7dvh, 64px); }
[data-view="home"] .example span { padding-block: 24px; }
[data-view="home"] .primary, [data-view="results"] .primary {
  color: #fff;
  text-shadow: 0 2px #a2480e;
  background: linear-gradient(#f4933d,#e67120 47%,#c7540f);
}
[data-view="results"] h1 { transform: rotate(-3deg); }
.line path { stroke: #fff5a4; filter: drop-shadow(0 0 2px #b86000) drop-shadow(0 0 5px #ffb600); }

/* Cloud bank stays behind the game and out of its hit targets. */
main { isolation: isolate; }
main:has([data-view="home"], [data-view="results"]) { padding-bottom: 76px; }
main::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 88px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 0 111%, #f8fdff 0 27%, #d8edff 54%, transparent 55%) 0 100% / 23% 100% no-repeat,
    radial-gradient(ellipse at 50% 110%, #f8fdff 10%, #e8f5ff 56%, transparent 57%) 12% 100% / 28% 58% no-repeat,
    radial-gradient(ellipse at 48% 113%, #eff9ff 12%, #dcefff 57%, transparent 58%) 33% 100% / 32% 43% no-repeat,
    radial-gradient(ellipse at 53% 115%, #fff 12%, #e0f2ff 57%, transparent 58%) 68% 100% / 36% 63% no-repeat,
    radial-gradient(circle at 100% 102%, #f9fdff 0 29%, #d9edff 60%, transparent 61%) 100% 100% / 25% 100% no-repeat;
}
main:has([data-view="board"])::after { opacity: .63; }

.line { inset: 0; z-index: 3; }
.line path {
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: trace .25s ease-out both, glow-out .24s .58s forwards;
}
.line .beam { stroke: #ffad18; stroke-width: 9; filter: drop-shadow(0 0 4px #ff9510) drop-shadow(0 0 9px #fff17a); }
.line .beam-core { stroke: #fff9cb; stroke-width: 4; filter: none; }
.endpoint.from { animation: glow-out .24s .58s forwards; }
.endpoint.to { animation: spark-in .18s .20s both, glow-out .24s .58s forwards; }
.node-halo { fill: #ffd114; opacity: .54; filter: blur(3px); }
.node-core { fill: #fffee8; stroke: #ffad0b; stroke-width: 2; }
.spark {
  fill: #fff9d2;
  filter: drop-shadow(0 0 3px #ffa000);
  animation: spark-in .24s .20s both;
}
.tile.matching {
  background: #fff1b9;
  border-color: #fffbd7;
  outline: 2px solid #ffbf24;
  box-shadow: inset 0 0 15px #fffbe7, 0 0 9px #ffad13, 0 0 22px #ffdb6c;
  animation: clear .3s .55s both;
}
[data-view="home"] .example svg { filter: drop-shadow(0 0 3px #ff9e09) drop-shadow(0 0 7px #fff063); }
[data-view="home"] .example path { stroke: #fff5b7; stroke-width: 5; stroke-linecap: round; }
[data-view="home"] .example circle { fill: #fffbed; stroke: #ffae13; }
@keyframes spark-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes glow-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .line path, .endpoint.from, .endpoint.to, .spark, .tile.matching { animation: none; }
}

header, [data-view="board"] h1 { position: relative; }
header::before, header::after,
[data-view="board"] h1::before, [data-view="board"] h1::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 25px;
  height: 36px;
  pointer-events: none;
  background: center / contain no-repeat var(--title-rays);
}
header::before, [data-view="board"] h1::before {
  right: calc(100% + 5px);
  transform: translateY(-50%);
}
header::after, [data-view="board"] h1::after {
  left: calc(100% + 5px);
  transform: translateY(-50%) scaleX(-1);
}
@media (max-width: 340px) {
  [data-view="board"] h1 { font-size: 22px; }
}

main:has([data-view="board"]) { padding-inline: 9px; padding-bottom: 46px; }
[data-view="board"] { margin-top: 8px; }
[data-view="board"] h1 { padding: 9px 16px; margin-bottom: 13px; }
[data-view="board"] .score { margin-bottom: 15px; }
.board {
  background: linear-gradient(#a3d1f6, #bce2ff);
  border: 4px solid #eff9ff;
  box-shadow: inset 0 0 0 2px #77b1df, 0 4px 0 #76a9d1, 0 7px 11px #224d793d;
}
.board b { background: linear-gradient(#abd9fa,#8dc4ec); box-shadow: inset 0 1px 1px #e7f6ff; }
.board .tile { background: linear-gradient(#fff8e9,#faeacb); box-shadow: inset 0 -2px #daba7d, 0 4px #ab8b5d, 0 7px 8px #24588738; }
.board .tile[aria-pressed=true], .board .tile.matching {
  background: #fff0b7;
  border-color: #fffbed;
  box-shadow: inset 0 0 13px #fffdf3, 0 0 8px #ffc545, 0 0 17px #ffd169;
}
.line .spark { animation-delay: .12s; }
.hint-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  margin: 11px auto 0;
  padding: 6px 14px;
  font-size: 14px;
  background: linear-gradient(#eef9ff,#c6e5ff);
  box-shadow: 0 3px #75a7d4;
}
.hint-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  background: #225a9c;
  color: white;
  font-size: 16px;
}
#guide {
  padding: 0;
  width: min(94%, 390px);
  max-height: 88dvh;
  border: 3px solid #fff;
  border-radius: 24px;
  background: linear-gradient(#eef9ff,#c4e5ff);
  box-shadow: 0 7px #77a5cb, 0 18px 38px #05295365;
}
.hint-sheet { padding: 20px 17px 22px; }
.hint-close {
  float: right;
  margin: -7px -5px 0 8px;
  width: 48px;
  border-radius: 50%;
  font-size: 24px;
}
.hint-label { font-size: 14px; font-weight: 800; color: #245a95; }
#hint-title { margin: 5px 0 10px; font-size: 26px; letter-spacing: -.025em; }
#hint-copy { margin: 13px 0; }
.hint-details {
  padding: 0 12px;
  border: 2px solid white;
  border-radius: 15px;
  background: #fff4dd;
}
.hint-details summary { padding: 13px 0; font-weight: 750; cursor: pointer; }
.hint-details img { max-height: 46dvh; object-fit: contain; }
.hint-details small { display: block; padding: 8px 0; }
#guide .primary { font-size: 17px; min-height: 52px; margin-top: 16px; }
[data-view="results"] { position: relative; }
[data-view="results"] h1 { position: relative; z-index: 1; margin: 60px 0 28px; }
[data-view="results"] .ribbon {
  background: linear-gradient(#fff4cf, #ffd785);
  border-radius: 11px;
  box-shadow: inset 0 -3px #e8ad4f, 0 4px #d79030, 0 8px 12px #36638b40;
  transform: rotate(-2deg);
}
.celebration { position: absolute; inset: -37px 0 auto; height: 187px; pointer-events: none; }
.celebration i { position: absolute; width: 12px; height: 20px; background: #ffad28; border-radius: 3px; border: 1px solid #fff9cf; }
.celebration i:nth-child(1) { left: 3%; top: 43%; transform: rotate(-33deg); }
.celebration i:nth-child(2) { left: 14%; top: 13%; transform: rotate(23deg); }
.celebration i:nth-child(3) { left: 5%; top: 81%; transform: rotate(45deg); }
.celebration i:nth-child(4) { right: 4%; top: 72%; transform: rotate(35deg); }
.celebration i:nth-child(5) { right: 13%; top: 10%; transform: rotate(38deg); }
.celebration i:nth-child(6) { right: 2%; top: 37%; transform: rotate(-35deg); }
.result {
  gap: 7px;
  padding: 8px;
  border: 3px solid #f4faff;
  border-radius: 20px;
  background: #add6f5;
  box-shadow: inset 0 0 0 2px #83b8df, 0 4px #749ec4;
}
.result li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; }
.result li .recap-check {
  flex: 0 0 26px;
  height: 26px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ca5814;
  color: white;
  font-weight: 850;
}

main { --title-rays: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 36'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M18 9 9 4 M16 18H4 M18 26 9 32' stroke='white' stroke-width='8'/%3E%3Cpath d='M18 9 9 4 M16 18H4 M18 26 9 32' stroke='%23ff841f' stroke-width='5'/%3E%3C/g%3E%3C/svg%3E"); }

[data-view="home"] h1 {
  position: relative;
  width: max-content;
  margin-inline: auto;
  font-size: clamp(38px, 13vw, 63px);
}
[data-view="home"] .ribbon, [data-view="home"] .example, #start { position: relative; }
[data-view="home"] :is(h1, .ribbon)::before,
[data-view="home"] :is(h1, .ribbon, .example)::after {
  content: "";
  position: absolute;
  width: clamp(19px, 6vw, 29px);
  height: clamp(28px, 9vw, 40px);
  background: center / contain no-repeat var(--title-rays);
  pointer-events: none;
}
[data-view="home"] :is(h1, .ribbon)::before {
  right: calc(100% + 3px);
  top: 50%;
  transform: translateY(-50%);
}
[data-view="home"] :is(h1, .ribbon)::after {
  left: calc(100% + 3px);
  top: 50%;
  transform: translateY(-50%) scaleX(-1);
}
[data-view="home"] .example::after {
  left: 50%;
  top: -6px;
  transform: translateX(-50%) rotate(90deg);
}
#start { padding-inline: 58px; }
#start::after {
  content: "";
  position: absolute;
  right: 25px;
  top: 50%;
  width: 25px;
  height: 28px;
  transform: translateY(-50%);
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 28'%3E%3Cpath d='M4 4Q4 2 6 3L23 12Q26 14 23 16L6 25Q4 26 4 24Z' fill='%23fff3d5' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E");
  filter: drop-shadow(0 2px 1px #9f4109);
  pointer-events: none;
}

[data-view="home"] .ribbon {
  padding: 12px 23px 14px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: center / 100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 58' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='gold' x2='0' y2='1'%3E%3Cstop stop-color='%23fff3d5'/%3E%3Cstop offset='1' stop-color='%23ffd68b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M10 12Q110 -6 210 12Q218 14 216 22L209 47Q207 54 199 54Q110 39 21 54Q13 54 11 47L4 22Q2 14 10 12Z' fill='url(%23gold)' stroke='%23fff9e9' stroke-width='3'/%3E%3C/svg%3E");
  filter: drop-shadow(0 3px 0 #d39a4d) drop-shadow(0 5px 5px #24588742);
}

.site-nav {display:flex;justify-content:space-between;gap:8px;margin-bottom:12px}
.site-nav a,.practice-link {display:inline-flex;align-items:center;justify-content:center;min-height:44px;color:#103486;font-weight:800}
.practice-link {display:flex;margin-top:8px;text-align:center}
.offer {margin-top:24px}
.offer h2 {margin:0 0 6px}
.offer button {width:100%}
.offer [role="status"]:empty {display:none}

main:has([data-view="blanks"], [data-view="chapters"]) {
  padding: 22px clamp(12px, 3.65vw, 20px) 76px;
  background:
    repeating-conic-gradient(from 8deg at 50% 20%, #f4fcff21 0deg 14deg, transparent 14deg 30deg),
    radial-gradient(ellipse at 50% 18%, #d5efff 0%, #acd8f7 42%, #b5dff9 100%);
}
main:has([data-view="blanks"], [data-view="chapters"]) header {
  font-size: 23px;
  padding: 8px 19px 10px;
  margin-top: 23px;
}
main:has([data-view="blanks"], [data-view="chapters"]) .site-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
}
main:has([data-view="blanks"]) .site-nav {
  padding: 2px;
  background: #fffaf1;
  border: 2px solid white;
  border-radius: 30px;
  box-shadow: 0 2px #dfc89c;
}
main:has([data-view="blanks"], [data-view="chapters"]) .site-nav a {
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 30px;
  white-space: nowrap;
  font-size: clamp(13px, 4.05vw, 17px);
}
[data-view="blanks"] h1, [data-view="chapters"] h1 {
  text-align: center;
  font-size: clamp(27px, 9vw, 38px);
  letter-spacing: -.045em;
  margin: 24px 0 16px;
}
[data-view="blanks"] .challenge-copy {
  font-size: clamp(15px, 4.35vw, 18px);
  text-align: center;
  margin: 0 auto 20px;
}
.status-sheet, .chapter-card {
  background: linear-gradient(135deg, #fcf5e7, #fbf1db);
  border: 2px solid white;
  border-radius: 24px;
  box-shadow: 0 5px 10px #356b9530;
}
.status-sheet { padding: 13px 17px; }
.status-sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.status-sheet th { text-align: left; padding-left: 7px; }
.status-sheet thead th { font-size: 19px; padding-bottom: 10px; }
.status-sheet tbody th { font-weight: 500; font-size: 18px; }
.status-sheet tbody tr { border-top: 1px solid #ebdfc9; }
.status-sheet td { padding: 6px 2px; }
.status-cell {
  width: 100%;
  min-height: 44px;
  border-radius: 17px;
  font-size: 18px;
  box-shadow: 0 2px 4px #24466824;
}
.status-paid { background: linear-gradient(#e9f9df, #d5edc5); color: #205913; }
.status-sent { background: linear-gradient(#e4f4ff, #c9e7fe); }
.status-pending { background: #fff0cb; color: #7b430a; }
.status-blank { border: 1px dashed #a99d88; background: transparent; color: #776e61; box-shadow: none; }
.status-cell[aria-pressed="true"]:not(:disabled) {
  border-color: #a96709;
  background: #ffe3a3;
  outline: 2px solid #a96709;
  outline-offset: 1px;
}
.status-cell:disabled { cursor: default; }
[data-view="blanks"] #fill { margin-top: 23px; }
[data-view="blanks"] #fill:disabled { display: none; }
[data-view="blanks"] .feedback:empty { display: none; }
[data-view="blanks"] .hint-entry { margin: 17px auto 0; border-radius: 30px; min-height: 48px; }
[data-view="blanks"] .hint-icon { background: transparent; border: 2px solid currentColor; color: #103486; }
main:has([data-view="chapters"]) .site-nav [aria-current="page"] {
  background: linear-gradient(#fff8e9, #f8e5ba);
  border-color: white;
  box-shadow: 0 3px #dfc28e, 0 5px 8px #21558632;
}
.chapter-card { display: grid; align-items: center; gap: 12px; margin-top: 13px; }
.chapter-featured { grid-template-columns: 30% minmax(0, 1fr); padding: 20px 14px; }
.chapter-card h2 { font-size: clamp(15px, 4.5vw, 19px); margin: 0; letter-spacing: -.035em; }
.chapter-featured h2 { font-size: clamp(20px, 6.25vw, 27px); }
.chapter-featured p { margin: 5px 0 0; }
.chapter-featured .primary { min-height: 48px; font-size: clamp(15px, 4.5vw, 20px); margin-top: 12px; }
.chapter-featured .primary::before {
  content: "";
  display: inline-block;
  margin-right: 9px;
  border: 7px solid transparent;
  border-left: 10px solid #fff9eb;
  border-right: 0;
}
.chapter-upcoming { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 14px 10px; gap: 8px; }
.chapter-status {
  padding: 7px 8px;
  border-radius: 30px;
  background: #eae0ce;
  color: #68513b;
  font-size: clamp(11px, 3.25vw, 14px);
  font-weight: 700;
  white-space: nowrap;
}
.chapter-art {
  position: relative;
  display: block;
  border: 3px solid #fff;
  border-radius: 10px;
  box-shadow: 0 3px #d5c39e, 0 5px 7px #54391528;
  transform: rotate(-7deg);
}
.art-sheet {
  aspect-ratio: 1 / 1.1;
  overflow: hidden;
  background:
    linear-gradient(#16834b 0 18%, transparent 18%),
    repeating-linear-gradient(90deg, transparent 0 30%, #cad9cb 31% 34%),
    repeating-linear-gradient(#fafff7 0 17%, #d5e3d5 18% 20%);
}
.art-sheet i { position: absolute; inset: 48% 0 0 64%; background: #8ddd9a66; }
.art-sheet i::after { content: '✓'; position: absolute; top: 20%; left: 19%; color: #187843; font-size: 20px; font-style: normal; font-weight: 850; }
.art-chart { height: 36px; background: #e9f4fc; display: flex; align-items: end; justify-content: center; gap: 2px; padding: 4px; }
.art-chart i { width: 6px; height: 40%; background: #388dcc; border-radius: 2px; }
.art-chart i:nth-child(2) { height: 65%; }
.art-chart i:nth-child(3) { height: 95%; }
.art-mail { height: 33px; background: linear-gradient(34deg, transparent 49%, #d8a842 50%, transparent 53%), linear-gradient(-34deg, transparent 49%, #d8a842 50%, transparent 53%), #ffdc79; }
.art-mail i { position: absolute; inset: -4px 5px 10px; background: repeating-linear-gradient(#fff8ec 0 4px,#c0b6a2 5px,#fff8ec 6px); clip-path: polygon(0 0,100% 0,100% 52%,50% 100%,0 52%); }
main:has([data-view="chapters"]) .chapter-featured { min-height: 174px; }
.chapter-upcoming { min-height: 85px; }
.art-sheet { overflow: visible; }
.art-sheet::after {
  content: '✦';
  position: absolute;
  right: 3%;
  top: -22%;
  color: #f6a21c;
  font-size: 34px;
  paint-order: stroke fill;
  -webkit-text-stroke: 4px white;
}
.art-sheet i { border-radius: 0 0 6px 0; }
[data-view="blanks"] .hint-entry { padding-inline: 18px; font-size: 16px; }

/* Match board and compact spreadsheet examples. */
main:has([data-view="board"], [data-view="split"], [data-view="predict"]) .site-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 2px;
  background: #fffaf1;
  border: 2px solid white;
  border-radius: 30px;
  box-shadow: 0 2px #dfc89c;
}
main:has([data-view="board"], [data-view="split"], [data-view="predict"]) .site-nav a {
  text-decoration: none;
  font-size: clamp(13px, 4.05vw, 17px);
}
[data-view="board"] .score { display: flex; align-items: center; gap: 5px; }
.match-dots { display: inline-flex; gap: 5px; margin-left: 6px; }
.match-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dec697;
  box-shadow: inset 0 1px 2px #6e4a1638;
}
.match-dots .filled { background: #247746; }
.board { grid-auto-rows: minmax(0, auto); row-gap: 10px; }
.board .tile {
  min-height: 73px;
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  text-align: left;
  font-size: clamp(13px, 3.7vw, 16px);
  overflow-wrap: anywhere;
}
.board .tile[data-side="task"]:not(.matching) {
  background: linear-gradient(#edf9ff, #d5edfc);
  border-color: #f7fcff;
  box-shadow: inset 0 -2px #abd0e8, 0 4px #7eb0d5, 0 7px 8px #24588738;
  font-weight: 730;
}
.tile-icon {
  display: block;
  width: 19px;
  height: 17px;
  border: 2px solid #258852;
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, transparent 0 4px, #258852 4px 5px),
    repeating-linear-gradient(0deg, #d6f3dd 0 4px, #258852 4px 5px);
}
[data-side="task"] .tile-icon {
  border-color: #6a8294;
  background: linear-gradient(90deg, transparent 46%, #6a8294 46% 54%, transparent 54%),
    linear-gradient(transparent 46%, #6a8294 46% 54%, transparent 54%), #f4fbff;
}
[data-view="board"] .feedback {
  min-height: 0;
  padding: 9px 11px;
  background: #eef8ffc9;
  border-color: #ffffffaa;
  box-shadow: none;
  text-align: center;
}
[data-view="board"] .hint-entry { border-radius: 30px; }
.home-copy, .result-note { text-align: center; margin: 20px auto; }
.sheet-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.mini-sheet {
  border-spacing: 0;
  border: 3px solid #f7fcff;
  box-shadow: 0 3px #76a9ce, 0 6px 12px #21558628;
  border-radius: 12px;
  overflow: hidden;
  background: #f7fcff;
  font-size: clamp(13px, 3.7vw, 16px);
  text-align: center;
}
.mini-sheet :is(th, td) { padding: 6px 8px; border-right: 1px solid #aac7da; }
.mini-sheet thead { background: #badcf3; }
.mini-sheet tbody th { background: #dceef9; }
.mini-sheet tbody :is(th, td) { border-top: 1px solid #aac7da; }
.mini-sheet tr > :last-child { border-right: 0; }
.mini-sheet strong { color: #784209; }
.sheet-arrow { color: #a84308; font-size: 21px; font-weight: 900; }
.format-chip {
  padding: 8px 14px;
  background: #e0f3ff;
  border: 2px solid white;
  border-radius: 14px;
  font-weight: 850;
}
.choice-list {
  background: #fff8e9;
  border: 2px solid white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px #c6a56d;
  margin: 14px 0;
}
.choice-list button {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.choice-list button + button { border-top: 1px solid #eadbc0; }
.choice-list button:focus-visible { outline-offset: -3px; }
.choice-list button:active { transform: none; background: #ffe4ad; }
.split-choices button:disabled, .predict-choices button[data-answer="0"]:disabled {
  background: #e8f6e8;
  color: #1e603c;
}
.step-number, .answer-dot {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
}
.step-number { display: grid; place-items: center; background: #247746; color: white; font-size: 13px; }
.answer-dot { border: 2px solid #6584a9; }
.predict-choices button[data-answer="0"]:disabled .answer-dot { background: #247746; border-color: #247746; }
[data-view="split"] .feedback:empty, [data-view="predict"] .feedback:empty { display: none; }
.offer { background: linear-gradient(#fff8e9, #faebcb); }
.offer-heading { display: flex; align-items: center; gap: 11px; }
.offer-heading h2 { margin: 0; }
.offer-heading .art-chart { flex: 0 0 42px; }
.result li + li { border-top: 1px solid #d6e6f1; }
[data-view="results"] .result li { box-shadow: none; }
.guide-list a {
  display: block;
  background: #fff8e8;
  padding: 6px;
  border: 2px solid white;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 3px #80abc8;
}
.guide-list a span { display: block; padding: 4px; }
#guide .sheet-preview { margin: 12px 0; }
#hint-copy { padding: 9px 11px; background: #fff6e1; border-radius: 10px; }
.hint-cell { display: block; min-width: 54px; height: 17px; border: 2px solid #df8015; border-radius: 4px; }
@media (min-width: 360px) {
  .board .tile { min-height: 80px; }
}
[data-view="results"] .result li .recap-check { background: #247746; }
@media (max-width: 480px) {
  #guide {
    margin: auto auto 10px;
    border-radius: 24px;
    max-height: 87dvh;
  }
}
