:root {
  color-scheme: dark;
  --ink: #112c24;
  --forest: #102c25;
  --forest-dark: #0b211c;
  --paper: #fff1d5;
  --gold: #f4c65a;
  --gold-soft: #e8cd8b;
  --muted: #ced8ca;
  --line: #536447;
  --display: Georgia, 'Times New Roman', serif;
  --body: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--paper);
  background: radial-gradient(ellipse at 50% 28%, #1a392e 0%, var(--forest-dark) 70%);
  line-height: 1.5;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #ffe49b; outline-offset: 4px; }
.rules:focus-visible { outline-color: #1c6948; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.06; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip {
  position: absolute; z-index: 3; top: 8px; left: 8px; padding: .6rem 1rem;
  background: var(--paper); color: var(--ink); transform: translateY(-150%);
}
.skip:focus { transform: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.masthead { border-bottom: 1px solid #e7c16a30; }
.masthead-inner {
  min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { flex: none; }
.brand b { display: block; font: bold 1.4rem/.96 var(--display); color: var(--gold-soft); }
.brand span { font-size: .63rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.header-link {
  display: flex; align-items: center; gap: .45em; min-height: 44px; padding: 0 .2em;
  font-size: .83rem; color: var(--paper); text-underline-offset: .27em;
}
.header-link span { color: var(--gold); }
.hero {
  isolation: isolate; position: relative; display: grid; align-items: center; grid-template-columns: 1.32fr 1fr;
  min-height: 362px; margin-block: 24px 22px; padding: clamp(23px, 2.8vw, 36px) clamp(23px, 4vw, 52px);
  border: 1px solid #8e8053; border-radius: 24px; overflow: hidden;
  background: #183a2a url('assets/hero.webp') 50% 52% / cover no-repeat;
  box-shadow: 0 20px 45px #070f0d4d, inset 0 0 36px #142c24b3;
}
.hero::before {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, #0b211bf7 0%, #102a22ed 32%, #173528a1 58%, #122b2355);
}
.hero::after {
  content: ''; pointer-events: none; position: absolute; inset: 8px;
  border: 1px solid #ead9a44d; border-radius: 17px;
}
.eyebrow {
  color: var(--gold-soft); font-size: .68rem; font-weight: 750; letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow span { margin-right: .35em; color: var(--gold); }
h1 { margin-top: 12px; font-size: clamp(3rem, 6.1vw, 5.1rem); letter-spacing: -.052em; }
h1 em { color: var(--gold); font-weight: inherit; }
.intro { max-width: 34ch; margin-top: 16px; color: #f4ebd7; font-size: clamp(.98rem, 1.65vw, 1.13rem); }
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 7px 14px; padding: 0; margin: 22px 0 0;
  list-style: none; color: #f6edda; font-size: .8rem;
}
.hero-tags span { color: var(--gold); margin-right: .15em; }
.hero-play { margin-top: 18px; text-decoration: none; }
.hero-art { position: relative; justify-self: end; width: min(100%, 347px); height: 260px; }
.sample {
  position: absolute; display: flex; flex-direction: column; width: 48%; padding: 6px;
  background: #f8e4b6; border: 1px solid #fff2c6; border-radius: 13px;
  box-shadow: 0 12px 24px #0009, 0 0 0 2px #664a28; color: #244537; text-align: center;
}
.sample img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5.1; object-fit: cover; border-radius: 8px; }
.sample span { font: bold clamp(.65rem, 1.4vw, 1rem) var(--display); padding: 7px 0 3px; }
.sample-place { top: 3%; right: 11%; transform: rotate(11deg); }
.sample-friend { top: 12%; right: 43%; transform: rotate(-11deg); }
.sparkle { position: absolute; color: #ffe5a0; font-size: 2rem; line-height: 1; text-shadow: 0 0 14px #f4c65a; }
.sparkle-top { top: -2%; left: 8%; }
.sparkle-bottom { right: 1%; bottom: 11%; font-size: 1.3rem; }
.game {
  padding: clamp(16px, 3.4vw, 34px); border: 1px solid #5e6d50; border-radius: 22px;
  background: linear-gradient(158deg, #244333, #132f27 68%);
  box-shadow: 0 14px 30px #081a1459;
}
.game-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.game h2, .rules h2 { margin-top: 5px; font-size: clamp(1.85rem, 3.4vw, 2.65rem); letter-spacing: -.026em; }
.mode-help { margin-top: 6px; color: var(--muted); font-size: .84rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px;
  padding: 8px 14px; border-radius: 9px; border: 1px solid transparent; font-size: .86rem; font-weight: 750;
}
.button-outline { color: var(--paper); background: #173429; border-color: #879476; }
.button-outline:hover { background: #2e4e3e; }
.button-outline span { color: var(--gold); }
.button-gold { color: #243427; background: var(--gold); border-color: #ffe5a0; }
.button-gold:hover { background: #ffdb84; }
.decks { display: flex; gap: 9px; min-width: 0; border: 0; padding: 0; margin: 18px 0 12px; }
.deck-choice {
  flex: 0 1 178px; display: flex; gap: 4px 12px; flex-wrap: wrap; align-items: baseline;
  min-height: 48px; padding: 9px 13px; color: var(--paper); text-align: left; background: #102820;
  border: 1px solid #7d8b6d; border-radius: 9px;
}
.deck-choice span { color: var(--muted); font-size: .76rem; }
.deck-choice[aria-pressed="true"] {
  color: #ffe29e; background: #3c4630; border-color: var(--gold); box-shadow: inset 0 -2px 0 #c59b44;
}
.deck-choice:hover { border-color: var(--gold); }
.scoreboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.scoreboard div {
  display: flex; align-items: center; justify-content: center; gap: 5px 11px;
  min-height: 48px; padding: 6px; border: 1px solid #657658; border-radius: 9px; background: #0e2720;
}
.scoreboard dt { color: var(--muted); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; }
.scoreboard dd { color: #ffe09a; font-size: 1.04rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.turn-line {
  position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between;
  min-height: 59px; gap: 6px 12px; padding: 6px 8px; margin-inline: -8px;
  border-radius: 8px; background: #1c3b30;
}
.turn-line p { color: #f7efd8; font-size: .89rem; }
.next-button { flex: none; }
.board { --columns: 6; display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); gap: clamp(7px, 1.15vw, 14px); }
.board[data-mode="quest"] { --columns: 5; }
.card {
  position: relative; display: block; width: 100%; aspect-ratio: 1 / 1.19; min-width: 0;
  padding: 0; overflow: hidden; isolation: isolate; scroll-margin-top: 92px; border-radius: 11px; border: 1px solid #b39659;
  color: #ffe5a9; background: radial-gradient(ellipse at 46% 39%, #346144, #143a2e 59%, #102c24);
  box-shadow: 0 4px 6px #061a1499; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.board[data-mode="quest"] .card { aspect-ratio: 1 / 1.08; }
.card::before {
  content: ''; position: absolute; inset: 5px; z-index: -1; border-radius: 7px; pointer-events: none;
  border: 1px solid #ddbb6b69;
  background: repeating-linear-gradient(45deg, transparent 0 9px, #d2c5800d 9px 10px),
              repeating-linear-gradient(-45deg, transparent 0 9px, #d2c5800d 9px 10px);
}
.card:hover:not([aria-disabled="true"]) {
  border-color: #ffe8a8; box-shadow: 0 0 0 1px #f4c65a, 0 6px 10px #061a1499; transform: translateY(-2px);
}
.card:focus-visible { z-index: 1; }
.card[aria-disabled="true"] { cursor: default; }
.card-back {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: url('assets/card-back.svg') center 46% / min(67%, 92px) no-repeat;
}
.card-number {
  position: absolute; top: 7px; left: 8px; font-family: var(--display); font-size: .72rem; color: #ffe6a4;
}
.card-face { position: absolute; inset: 0; background: #193a2e; }
.card-face img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
.card-friend .card-face { background: #f8eedb; }
.card-friend .card-face img { height: 80%; object-fit: contain; }
.card[data-state="open"] { border-color: #fff1c1; }
.card[data-state="matched"] { border: 2px solid #e5cc83; }
.card-name {
  position: absolute; bottom: 0; left: 0; right: 0; display: grid; place-items: center;
  min-height: 25%; padding: 4px; background: #10251ef2; color: #fff3d6;
  font: bold clamp(.68rem, 1.15vw, .9rem)/1.05 var(--display); overflow-wrap: anywhere;
}
.match-mark {
  position: absolute; top: 5px; right: 5px; min-width: 22px; padding: 0 4px;
  border-radius: 99px; background: #ffe09a; color: #1e422c; font: bold .78rem/1.65 var(--body);
}
.rules {
  margin-top: 22px; padding: clamp(19px, 3vw, 32px); border: 1px solid #e0bb69; border-radius: 20px;
  color: #243a2e; background: radial-gradient(ellipse at top left, #fff7e5, #f5e5c5);
}
.rules .eyebrow, .rules .eyebrow span { color: #65501f; }
.rule-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  padding: 0; margin: 20px 0 0; list-style: none;
}
.rule-steps li { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.rule-steps h3 { font-size: 1.16rem; margin: 3px 0 5px; }
.rule-steps p, .keyboard { font-size: .88rem; }
.step {
  display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #9a7a3a;
  border-radius: 50%; background: #ffebaf; font: bold 1rem var(--display);
}
.keyboard { border-top: 1px solid #b09963; margin-top: 18px; padding-top: 12px; }
.finish {
  overflow: hidden; position: relative; isolation: isolate; text-align: center; margin-top: 14px;
  border: 1px solid #ba9b54; border-radius: 13px; padding: clamp(24px, 5vw, 50px) 15px;
  background: #182f23 url('assets/hero.webp') center 62% / cover;
}
.finish::before { content: ''; position: absolute; z-index: -1; inset: 0; background: #0c251be6; }
.finish-crystal { display: block; margin: 0 auto 10px; filter: drop-shadow(0 0 12px #dfc4748c); }
.finish h2 { color: #ffe0a0; }
.finish p:not(.eyebrow) { margin-top: 12px; }
.finish button { margin-top: 19px; }
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  padding-block: 23px 28px; font-size: .79rem; color: var(--muted);
}
.footer span { color: var(--gold-soft); }

@media (max-width: 760px) {
  .shell { width: calc(100% - 30px); }
  .hero { min-height: 290px; }
  h1 { font-size: clamp(2.5rem, 7.1vw, 3.8rem); }
  .hero-art { height: clamp(125px, 30vw, 230px); }
  .hero-tags { margin-top: 15px; }
  .board { --columns: 4; }
  .board[data-mode="quest"] { --columns: 4; }
}
@media (max-width: 530px) {
  .shell { width: calc(100% - 24px); }
  .masthead-inner { min-height: 60px; }
  .hero {
    min-height: 0; margin-block: 13px; padding: 19px 15px 18px;
    grid-template-columns: minmax(0, 1fr) minmax(0, .38fr); border-radius: 16px;
  }
  .hero::after { inset: 5px; border-radius: 11px; }
  .hero::before { background: linear-gradient(90deg, #0b211bf5, #112c24eb 55%, #112d2470); }
  h1 { font-size: clamp(2.15rem, 8.25vw, 2.9rem); margin-top: 8px; }
  .hero .eyebrow { font-size: .6rem; }
  .intro { margin-top: 11px; font-size: .88rem; }
  .hero-tags { margin-top: 11px; font-size: .72rem; gap: 4px 8px; }
  .hero-play { margin-top: 12px; }
  .hero-art { align-self: center; }
  .sample { width: 82%; padding: 4px; border-radius: 7px; }
  .sample img { border-radius: 4px; }
  .sample span { padding: 3px 0 1px; }
  .sample-place { right: 2%; top: 9%; transform: rotate(12deg); }
  .sample-friend { right: 9%; top: 26%; transform: rotate(-10deg); }
  .sparkle-top { left: 5%; top: -6%; font-size: 1.4rem; }
  .sparkle-bottom { display: none; }
  .game { padding: 13px; border-radius: 16px; }
  .game h2 { font-size: 1.73rem; }
  .game-heading { gap: 6px; }
  .decks { margin-top: 13px; gap: 6px; }
  .deck-choice { flex: 1; min-height: 44px; padding: 7px 9px; gap: 2px 7px; font-size: .84rem; }
  .scoreboard { gap: 5px; }
  .scoreboard div { min-height: 44px; gap: 3px 6px; }
  .scoreboard dt { font-size: .62rem; letter-spacing: .035em; }
  .scoreboard dd { font-size: .91rem; }
  .board { --columns: 3; }
  .board[data-mode="quest"] { --columns: 4; }
  .board[data-mode="quest"] .card { aspect-ratio: 1 / 1.26; }
  .card { border-radius: 8px; }
  .card::before { inset: 3px; border-radius: 5px; }
  .card-number { top: 5px; left: 6px; font-size: .65rem; }
  .turn-line { min-height: 47px; gap: 5px; }
  .turn-line p { font-size: .81rem; }
  .next-button { padding-inline: 8px; font-size: .75rem; }
  .rule-steps { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 355px) {
  .brand { gap: 7px; }
  .brand span { font-size: .53rem; }
  .header-link { font-size: .76rem; white-space: nowrap; }
  .hero { grid-template-columns: minmax(0, 1fr) 51px; column-gap: 5px; }
  .sample { width: 86%; }
  .sample-place { top: 15%; right: 0; }
  .sample-friend { right: 4%; }
  .card-name { font-family: var(--body); font-size: .625rem; padding-inline: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* World Diabetes Day edition: preserves the approved game artwork and palette. */
.brand { text-decoration: none; }
.hero { min-height: 385px; }
.occasion { display: inline-flex; align-items: center; gap: 7px; color: #c7e7ff; font-size: .72rem; font-weight: 700; letter-spacing: .035em; }
.occasion span { color: #82caff; font-size: 1.12rem; }
.hero-subtitle { color: #f8df9d; margin-top: 15px; font: italic 1.16rem/1.4 var(--display); }
.intro { margin-top: 8px; max-width: 37ch; }
.hero-tags li + li::before { content: '·'; color: var(--gold); margin-right: 12px; }
.together-seal { position: absolute; z-index: 1; right: 5%; bottom: -6%; display: grid; place-content: center; width: 85px; height: 85px; transform: rotate(9deg); border: 2px solid #b6deff; border-radius: 50%; color: #eff9ff; background: #1b5273; text-align: center; font: bold .84rem/1.15 var(--display); box-shadow: 0 6px 18px #08180d88; }
.together-seal span { font-size: 1rem; color: #abd9ff; margin-top: 3px; }
.game h2 { font-size: clamp(1.65rem, 2.8vw, 2.35rem); }
.game-heading .eyebrow { color: #b6dcf4; font-size: .63rem; }
.game-heading .button { flex: none; }
.progress-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; margin-top: 18px; border: 1px solid #657658; border-radius: 12px; background: #102c24; }
.star-trail { display: flex; gap: clamp(5px, 1vw, 11px); }
.star-trail span { font-size: clamp(1.35rem, 2.5vw, 1.9rem); color: #74836b; line-height: 1.2; }
.star-trail .earned { color: #f4c65a; text-shadow: 0 0 12px #f4c65a66; }
.progress-text { font-size: .83rem; color: #dce3d4; }
.progress-text strong { color: #ffe0a0; margin-right: 4px; }
.turn-line { gap: 12px; padding-block: 12px; min-height: 73px; }
.turn-actions { flex: none; }
.button:disabled { cursor: default; opacity: .5; }
.card-back { background-image: url('assets/card-back.svg'); }
.card-back::after { content: '♥'; position: absolute; bottom: 8%; color: #a8d8ff; font-size: .95rem; }
.card { border-color: #8fa59a; }
.card[data-state='hint'] { border: 2px dashed #a2d7ff; }
.card-friend .card-face .portrait { display: block; height: 80%; }
.card-friend .card-face .portrait img { height: 100%; }
.friends-mosaic { height: 78%; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: 1fr 1fr; align-items: end; padding: 4px; background: #fff0d4; }
.card-friend .card-face .friends-mosaic img, .friends-mosaic img { grid-column: span 2; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.friends-mosaic img:nth-child(4) { grid-column: 2 / 4; }
.friends-mosaic img:nth-child(5) { grid-column: 4 / 6; }
.board-note { font-size: .77rem; color: #ced8ca; text-align: center; margin-top: 15px; }
.discoveries { padding: 30px 3px 7px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.section-heading h2 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); margin-top: 8px; }
#collection-count { color: #b5d9ef; white-space: nowrap; font-size: .8rem; }
.collection-help { color: var(--muted); margin-top: 10px; font-size: .85rem; }
.collection-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.discovery-tile { display: grid; justify-items: center; gap: 7px; padding: 18px 7px; border: 1px solid #7e9e85; border-radius: 13px; color: var(--paper); background: #274c3c; }
.discovery-tile b { font: bold 1rem var(--display); }
.discovery-icon { color: #f4c65a; font-size: 1.4rem; line-height: 1; }
.discovery-detail { font-size: .65rem; color: #d9e2d1; }
.discovery-tile:disabled { background: #142f26; border-color: #405b49; cursor: default; }
.discovery-tile:disabled .discovery-icon { color: #a7b7a3; }
.discovery-tile:not(:disabled):hover { background: #365e47; border-color: var(--gold); }
.finish .celebration-friends { display: flex; align-items: end; justify-content: center; max-width: 510px; margin: 20px auto 0; padding: 12px 12px 0; border-radius: 20px; overflow: hidden; background: #fff0d4; box-shadow: 0 8px 30px #0005; }
.celebration-friends img { width: 20%; min-width: 0; object-fit: contain; }
.finish-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.finish-actions .button { margin: 0; text-decoration: none; }
.finish-link { display: inline-block; margin-top: 22px; text-underline-offset: 4px; font-size: .9rem; }
.grown-ups { margin-top: 22px; border: 1px solid #537c8e; border-radius: 20px; padding: clamp(20px,3vw,32px); background: linear-gradient(120deg,#173d45,#15333a); }
.adult-heading { display: flex; gap: 15px; align-items: center; }
.adult-heading .eyebrow { color: #aad7f9; }
.adult-heading h2 { margin-top: 8px; font-size: clamp(1.5rem,2.6vw,2rem); }
.heart-symbol { font-size: 2.3rem; color: #97d2ff; }
.grown-ups > p { margin-top: 17px; max-width: 85ch; font-size: .87rem; color: #e2edf0; }
.grown-ups details { border-top: 1px solid #42666d; margin-top: 18px; }
.grown-ups summary { padding: 14px 0 0; min-height: 44px; font-weight: 700; font-size: .9rem; cursor: pointer; }
.adult-detail { font-size: .88rem; color: #dcebf0; }
.adult-detail p { margin-top: 12px; }
.adult-detail a { display: inline-block; padding-block: 8px; text-underline-offset: 3px; color: #bde4ff; }
.adult-detail ul { padding-left: 20px; }
.adult-detail li a { padding-block: 6px; }

dialog { color-scheme: light; color: #193d31; background: #fff4dc; width: min(510px,calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 1px solid #e4c478; border-radius: 22px; box-shadow: 0 25px 100px #0009; overflow-y: auto; }
body:has(dialog[open]) { overflow: hidden; }
dialog::backdrop { background: #071b17ce; backdrop-filter: blur(5px); }
.message-body, .restart-body { padding: 26px; text-align: center; }
dialog .eyebrow { color: #36644d; letter-spacing: .1em; }
dialog h2 { font-size: 2rem; margin-top: 12px; }
dialog p:not(.eyebrow) { margin-top: 15px; line-height: 1.6; font-size: .98rem; }
.message-art { width: 125px; height: 145px; margin: 15px auto 0; border-radius: 18px; overflow: hidden; background: #fff0d4; }
.message-art .portrait { display: block; height: 100%; }
.message-art .portrait img { width: 100%; height: 100%; object-fit: contain; }
.message-art .friends-mosaic { height: 100%; }
dialog .button { min-height: 48px; }
#message-continue { margin-top: 22px; width: 100%; }
.four-ts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; text-align: left; }
.four-ts div { padding: 10px 12px; border: 1px solid #b4c9cc; background: #e9f4f8; border-radius: 10px; }
.four-ts dt { font-weight: 800; color: #15475a; }
.four-ts dd { margin-top: 3px; font-size: .78rem; line-height: 1.35; }
dialog p.adult-note { font-size: .8rem; line-height: 1.45; text-align: left; border-left: 3px solid #2785a9; padding-left: 12px; }
.dialog-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
dialog :focus-visible { outline-color: #1c6d8a; outline-offset: 3px; }
@media (max-width:760px) {
  .hero { min-height: 330px; }
  .hero-subtitle { font-size: 1rem; }
  .collection-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .together-seal { width: 70px; height: 70px; font-size: .72rem; }
}
@media (max-width:530px) {
  .hero { grid-template-columns: minmax(0,1fr); padding: 23px 20px; min-height: 0; }
  .hero-copy { position: relative; z-index: 1; }
  .hero-art { width: 135px; height: 165px; position: absolute; right: 14px; top: 62px; z-index: 0; opacity: .95; }
  .sample { width: 68%; }
  .sample-friend { right: 28%; top: 24%; }
  .sample-place { top: 0; right: 0; }
  .hero h1 { font-size: clamp(2.1rem,8vw,2.8rem); max-width: 65%; line-height: 1.05; }
  .hero h1 em { display: block; max-width: 4.8em; }
  .occasion { font-size: .61rem; letter-spacing: 0; }
  .hero-subtitle { max-width: 65%; font-size: .96rem; line-height: 1.35; margin-top: 15px; }
  .intro { max-width: 34ch; font-size: .88rem; margin-top: 14px; }
  .together-seal { right: 0; bottom: -12%; width: 59px; height: 59px; font-size: .61rem; }
  .together-seal span { margin-top: 0; font-size: .8rem; }
  .hero-tags { font-size: .74rem; }
  .game-heading { align-items: start; }
  .game-heading h2 { font-size: 1.6rem; line-height: 1.07; max-width: 14ch; }
  .game-heading .eyebrow { max-width: 25ch; font-size: .57rem; line-height: 1.5; }
  .game-heading .button { padding: 8px; font-size: .75rem; }
  .progress-row { padding: 10px; margin-top: 14px; }
  .progress-text { font-size: .7rem; }
  .turn-line { flex-wrap: wrap; gap: 8px; padding: 10px 8px; min-height: 92px; }
  .turn-line p { flex: 1 1 160px; }
  .turn-actions .button { font-size: .75rem; padding: 7px 9px; }
  .section-heading { display: block; }
  #collection-count { display: inline-block; margin-top: 9px; }
  .collection-grid { gap: 7px; }
  .discovery-tile { padding: 13px 4px; }
  .discovery-tile b { font-size: .85rem; }
  .discovery-detail { font-size: .59rem; }
  .message-body, .restart-body { padding: 22px 18px; }
  .message-art { width: 100px; height: 115px; margin-top: 12px; }
  dialog h2 { font-size: 1.7rem; }
  dialog p:not(.eyebrow) { font-size: .9rem; }
  .dialog-actions { flex-wrap: wrap; }
  .dialog-actions .button { flex: 1 1 150px; }
}
@media (max-width:355px) {
  .hero { padding: 20px 14px; }
  .hero-art { width: 100px; height: 140px; right: 14px; top: 70px; }
  .hero-subtitle { max-width: 64%; font-size: .88rem; }
  .hero-tags { gap: 4px 6px; }
  .hero-tags li + li::before { margin-right: 6px; }
  .star-trail { gap: 4px; }
  .progress-text { font-size: .65rem; }
  .collection-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
