/* Flashcards look. Everyone gets the same daily palette, set before paint.
   These are the no-script fallbacks (Matcha). */
:root {
  color-scheme: only light;
  --bg: #EEF3E2;
  --ink: #1F2A14;
  --muted: #55604A;
  --surface: #FFFFFF;
  --c1: #D6E8B0;
  --c2: #F4E3B5;
  --c3: #E9D3C5;
  --c4: #C9DCC6;
  --card-ink: #1F2A14;
  --button: #3E5F1E;
  --button-ink: #FFFFFF;
  --outline: transparent;
  --error: #b13427;
  --page: var(--bg);
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --accent: var(--button);
  --radius: 28px;
  --button-radius: 18px;
  --card-border: 0;
  --button-border: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}
:root[data-cards="sticker"] {
  --radius: 26px;
  --card-border: 2.5px solid var(--outline);
  --button-border: 2.5px solid var(--outline);
}
:root[data-cards="tab"] {
  --radius: 14px;
  --button-radius: 12px;
  --card-border: 1px solid var(--line);
  --button-border: 1px solid var(--line);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid transparent; border-radius: 8px; padding: 12px 18px; font-size: 16px; font-weight: 600; line-height: 1.4; text-decoration: none; }
footer a { color: inherit; text-underline-offset: 3px; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; box-shadow: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.shell { width: 100%; max-width: 512px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; }
.shell > main { flex: 1; display: flex; flex-direction: column; }
.masthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0 18px; }
.wordmark { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font-family: Georgia, "Times New Roman", serif; font-size: 22px; letter-spacing: -.9px; font-weight: 700; min-height: 44px; }
.wordmark-dot { color: inherit; }
/* The standalone symbol is made of vector paths. Its name is separate HTML text. */
.brand-symbol, .brand-lockup {
  display: block; flex-shrink: 0; aspect-ratio: 1216 / 1028;
  color: var(--ink); background-color: currentColor;
  -webkit-mask: url("assets/mindmeld-logo.svg") center / contain no-repeat;
  mask: url("assets/mindmeld-logo.svg") center / contain no-repeat;
  mask-mode: alpha;
}
/* Keep the image's intrinsic sizing; the vector alpha mask paints in --ink. */
.brand-art { display: block; width: 100%; height: auto; visibility: hidden; pointer-events: none; }
.brand-symbol { width: 38px; margin-right: 10px; }
.brand-lockup { font-size: var(--home-brand-size); width: 3.333333em; max-width: 100%; margin: 0 auto; }
.home-wordmark { display: inline-block; margin-top: .222222em; font-family: Georgia, "Times New Roman", serif; font-size: var(--home-brand-size); font-weight: 700; letter-spacing: -.034722em; line-height: 1.05; }
.wordmark .brand-symbol { width: 36px; }

/* Cards: each takes a --tone from the day's palette */
.question-card, .score-row, .answer-card, .tutorial-prompt, .tutorial-match-example {
  background: var(--tone, var(--c1)); color: var(--card-ink);
  border: var(--card-border); border-radius: var(--radius);
}
.question-card { --tone: var(--c3); }
.question-card[data-tone="1"] { --tone: var(--c1); }
.question-card[data-tone="2"] { --tone: var(--c2); }
.question-card[data-tone="3"] { --tone: var(--c3); }
.question-card[data-tone="4"] { --tone: var(--c4); }
:is(.score-row, .answer-card):nth-child(4n + 1) { --tone: var(--c1); }
:is(.score-row, .answer-card):nth-child(4n + 2) { --tone: var(--c2); }
:is(.score-row, .answer-card):nth-child(4n + 3) { --tone: var(--c3); }
:is(.score-row, .answer-card):nth-child(4n + 4) { --tone: var(--c4); }
:root[data-cards="tab"] :is(.question-card, .answer-card, .tutorial-prompt, .tutorial-match-example) { background: var(--surface); --card-ink: var(--ink); border-top: 12px solid var(--tone); }
:root[data-cards="tab"] .score-row { background: var(--surface); --card-ink: var(--ink); border-left: 10px solid var(--tone); }

#home { text-align: center; padding: 48px 0 24px; margin-block: auto; }
/* Size the text to the buttons; em-based symbol sizing preserves the brand proportions. */
#home-title { --home-brand-size: 19.784cqw; width: min(100%, 300px); container-type: inline-size; margin: 0 auto 24px; line-height: 1; }
.home-description { max-width: 31ch; margin: 0 auto; font-size: 17px; line-height: 1.6; color: var(--muted); }
.home-description strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 19px; font-weight: 800; line-height: 1.35; }
.home-actions { display: grid; gap: 12px; max-width: 300px; margin: 30px auto 0; }
/* Accounts are optional, so Log in stays a quiet link and Play stands alone. */
.home-account { margin: 8px 0 18px; font-size: 14px; font-weight: 700; }
.home-account a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-underline-offset: 4px; }
.home-date { margin: 0 0 7px; font-size: 14px; font-weight: 700; }
.home-number { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: 1px; font-weight: 700; }
.home-next { margin-top: 10px; letter-spacing: .4px; }
#home-countdown { color: var(--ink); font-variant-numeric: tabular-nums; }
.account-panel { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 24px; }
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-heading h2 { font-family: inherit; font-size: 23px; font-weight: 600; letter-spacing: -.6px; line-height: 1.3; margin: 0; }
.account-panel p { font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.account-panel label { display: block; margin: 16px 0 8px; font-size: 14px; font-weight: 600; }
.account-panel #account-submit { width: 100%; margin-top: 20px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
.account-actions button { font-size: 13px; padding: 10px 4px; }
.account-note, #account-description { color: var(--muted); }
.account-email-display { font-weight: 600; }
.account-panel .error:empty, .account-note:empty { display: none; }
.home-status { font-size: 13px; color: var(--muted); }
.home-status:empty { display: none; }
.today-panel { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.today-panel p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.today-panel button { width: 100%; }
.scores-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#refresh-results { font-size: 13px; padding: 10px 14px; min-height: 44px; }
.connection-panel { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: 480px; z-index: 2; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); }
.connection-panel p { font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
.icon-button { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; font-size: 20px; line-height: 1; flex-shrink: 0; }
.edition { display: flex; align-items: center; gap: 8px; padding: 20px 0 0; }
.edition h1 { font-size: 14px; font-weight: 800; margin: 0; }
.edition-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--button); }
.edition-tag { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: 1.1px; }
.intro { padding: 30px 0 24px; }
/* Phones: the prompt card is the game, so it starts right under the header (the guide covers the intro). */
@media (max-width: 899px) { #play > .intro { display: none; } #play > .prompt-stack { margin-top: 20px; } }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; margin: 0 0 12px; color: var(--muted); }
h2 { font-weight: 800; font-size: clamp(40px, 10vw, 54px); line-height: 1.02; letter-spacing: -1.6px; margin: 0 0 16px; }
.accent { color: inherit; }
.intro > p:last-child, .results-intro > p:last-child { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
.question-card { padding: 24px 22px 22px; }
.prompt-stack { position: relative; isolation: isolate; min-width: 0; margin: 8px 12px 72px; }
.prompt-layers { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.prompt-stack > .question-card { position: relative; z-index: 2; }
.prompt-stack .stack-card { position: absolute; inset: 0; padding: 0; transform-origin: 50% 70%; }
.stack-card[data-depth="1"] { z-index: 6; transform: translate(-4px, 9px) rotate(-1.4deg) scale(.994); }
.stack-card[data-depth="2"] { z-index: 5; transform: translate(5px, 18px) rotate(1.8deg) scale(.988); }
.stack-card[data-depth="3"] { z-index: 4; transform: translate(-5px, 27px) rotate(-2.2deg) scale(.982); }
.stack-card[data-depth="4"] { z-index: 3; transform: translate(6px, 36px) rotate(2.3deg) scale(.976); }
.stack-card[data-depth="5"] { z-index: 2; transform: translate(-3px, 45px) rotate(-1.3deg) scale(.97); }
.stack-card[data-depth="6"] { z-index: 1; transform: translate(5px, 54px) rotate(1.4deg) scale(.964); }
.prompt-stack > .card-flight { position: absolute; inset: 0; z-index: 3; pointer-events: none; will-change: transform; transform-origin: 50% 50%; }
/* The finish moment: the last card leaves, the seven answers are dealt back as a hand, then the table lifts. */
.deal-table { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; flex-direction: column; padding: 4px 16px 20px; background: var(--page); overflow: hidden; }
.deal-caption { flex-shrink: 0; margin: 6px 0 14px; text-align: center; }
.deal-hand { flex: 1; min-height: 0; width: 100%; max-width: 480px; margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 10px; }
.deal-hand .deal-card { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow: hidden; padding: 12px 14px; will-change: transform; }
.deal-hand .deal-card:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); }
.deal-card .card-number { margin: 0; }
.deal-prompt, .deal-answer { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.deal-prompt { font-size: 12px; font-weight: 700; line-height: 1.3; }
.deal-answer { margin-top: auto; font-size: clamp(16px, 4.6vw, 22px); font-weight: 800; line-height: 1.15; }
.deal-ghost { position: fixed; z-index: 1; margin: 0; pointer-events: none; will-change: transform; }
#results[data-dealing] :is(.score-row.is-new, .score-row.is-new .match-dot) { animation-play-state: paused; }
.prompt-stack > .card-underlay { z-index: 1; }
/* A card going back into the pile drops its buttons at once; only the returning card has controls. */
.prompt-stack > .card-underlay .form-actions { visibility: hidden; }
.prompt-stack .card-flight button:disabled { opacity: 1; }
.question-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; }
.progress-text { font-variant-numeric: tabular-nums; }
.progress-dots { display: flex; gap: 6px; margin: 14px 0 24px; }
.progress-dot { height: 8px; flex: 1; border-radius: 4px; background: color-mix(in srgb, var(--card-ink) 20%, transparent); }
.progress-dot.complete { background: var(--card-ink); }
.progress-dot.current { background: color-mix(in srgb, var(--card-ink) 55%, transparent); }
:root[data-cards="sticker"] .progress-dot { height: 12px; border: 2px solid var(--card-ink); }
.prompt-text { display: block; min-height: 58px; font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.6px; margin-bottom: 18px; }
.prompt-heading, .prompt-size-guide { display: grid; grid-template-columns: minmax(0, 1fr); }
.prompt-heading { margin-bottom: 18px; }
.prompt-heading > *, .prompt-size-guide > * { grid-area: 1 / 1; min-width: 0; }
.prompt-heading .prompt-text { margin-bottom: 0; }
.prompt-size-guide { visibility: hidden; pointer-events: none; }
.answer-hint, .hint-size-guide { display: grid; min-width: 0; }
.answer-hint > *, .hint-size-guide > * { grid-area: 1 / 1; }
.hint-size-guide { visibility: hidden; pointer-events: none; }
input, textarea { display: block; width: 100%; max-width: 100%; min-width: 0; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 15px 14px; font-size: 18px; line-height: 1.4; }
.question-card input { color: var(--card-ink); background: color-mix(in srgb, var(--tone), var(--card-ink) 8%); border-color: var(--card-ink); font-weight: 700; font-size: 20px; }
:root[data-cards="tab"] .question-card input { background: color-mix(in srgb, var(--surface), var(--ink) 6%); }
input::placeholder { color: inherit; opacity: .6; font-size: 15px; font-weight: 500; }
input[aria-invalid="true"] { border-color: var(--error); }
.answer-details { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13px; font-weight: 600; }
.character-count { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.error { min-height: 16px; color: var(--error); font-size: 13px; font-weight: 700; margin: 6px 0 12px; }
.question-card .error { color: var(--card-ink); min-height: 2.5em; }
.form-actions { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.form-actions .next-answer { flex: 1; min-width: 0; white-space: nowrap; }
button { min-height: 52px; border-radius: var(--button-radius); font-size: 16px; font-weight: 800; padding: 12px 20px; border: var(--button-border); box-shadow: none; }
.button-primary { color: var(--button-ink); background: var(--button); display: inline-flex; justify-content: center; align-items: center; gap: 12px; }
.button-primary:hover { filter: brightness(1.08); }
.button-secondary { background: var(--surface); color: var(--ink); box-shadow: none; }
:root:not([data-cards="sticker"]) .button-secondary { border: 1px solid var(--line); }
.button-secondary:hover:enabled { filter: brightness(.97); }
footer { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 21px 0 28px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.footer-mark { width: 26px; margin: 0; }
.results-intro { padding: 26px 0 22px; }
h3 { font-size: 20px; font-weight: 800; letter-spacing: -.4px; margin: 0; }
.score-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.score-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.player-label { overflow-wrap: anywhere; font-weight: 800; font-size: 17px; }
.player-emoji { font-size: 28px; }
.score-value { font-size: 26px; font-weight: 800; margin-left: auto; white-space: nowrap; }
.score-value small { opacity: .7; font-size: 14px; }
.match-dots { display: flex; gap: 5px; margin-top: 7px; }
/* 65% keeps the hollow ring at 3:1 or better on every daily palette. */
.match-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; opacity: .65; forced-color-adjust: none; }
.match-dot.is-match { background: currentColor; opacity: 1; }
/* A friend's first appearance: the row lands, then the matches pop in order, like Wordle's tile flips. */
@media (prefers-reduced-motion: no-preference) {
  .score-row.is-new { animation: row-in .5s cubic-bezier(.16, 1, .3, 1) both; }
  .score-row.is-new .match-dot { animation: dot-pop .4s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: .25s; }
  .score-row.is-new .match-dot:nth-child(2) { animation-delay: .34s; }
  .score-row.is-new .match-dot:nth-child(3) { animation-delay: .43s; }
  .score-row.is-new .match-dot:nth-child(4) { animation-delay: .52s; }
  .score-row.is-new .match-dot:nth-child(5) { animation-delay: .61s; }
  .score-row.is-new .match-dot:nth-child(6) { animation-delay: .7s; }
  .score-row.is-new .match-dot:nth-child(7) { animation-delay: .79s; }
}
@keyframes row-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes dot-pop { from { transform: scale(0); } }
.closest { font-size: 16px; font-weight: 800; line-height: 1.5; margin: 14px 0 0; overflow-wrap: anywhere; }
.share-panel { margin: 18px 0 28px; }
#comparison-context:empty { display: none; }
.share-actions { display: grid; gap: 10px; }
.share-actions button { width: 100%; min-height: 52px; font-size: 16px; }
.share-note { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 12px 0 0; }
.share-status { font-size: 14px; font-weight: 700; text-align: center; color: var(--ink); min-height: 18px; margin: 10px 0 0; }
#manual-share label { display: block; font-size: 13px; margin: 10px 0; }
#share-text { font-size: 13px; resize: vertical; overflow-wrap: anywhere; }
.next-puzzle { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .4px; }
.streak-note { display: block; margin-bottom: 10px; color: var(--ink); font-size: 15px; }
#next-countdown { display: block; margin-top: 2px; color: var(--ink); font-size: 26px; font-weight: 800; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.answers-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.answers-heading > span { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.answer-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.answer-card { padding: 18px; border-radius: calc(var(--radius) - 6px); }
.card-number { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; margin: 0 0 6px; }
.answer-card h4 { font-size: 18px; line-height: 1.2; font-weight: 800; letter-spacing: -.3px; margin: 0 0 12px; }
.prompt-answers { list-style: none; padding: 0; margin: 0; }
.prompt-answer { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 5px; padding: 8px 10px; font-size: 14px; line-height: 1.5; border-radius: 10px; background: color-mix(in srgb, var(--card-ink) 8%, transparent); }
.answer-player { flex: 0 0 37%; font-size: 13px; overflow-wrap: anywhere; }
.answer-value { text-align: right; overflow-wrap: anywhere; min-width: 0; }
.prompt-answer.is-match { background: var(--card-ink); color: var(--tone); font-weight: 800; }
:root[data-cards="tab"] .prompt-answer.is-match { color: var(--surface); }
.match-check { margin-left: 6px; white-space: nowrap; font-weight: 800; }
.favorite { padding-top: 10px; margin: 10px 0 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.favorite strong { font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

html:has(.how-to-play-dialog[open]), body:has(.how-to-play-dialog[open]) { overflow: hidden; }
.how-to-play-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 2px solid var(--ink); border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: none; }
.how-to-play-dialog[open] { display: flex; flex-direction: column; }
.how-to-play-dialog::backdrop { background: rgb(0 0 0 / .4); }
.how-to-play-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 26px 26px 18px; flex-shrink: 0; }
.how-to-play-header h2 { font-size: 34px; letter-spacing: -1px; margin: 0; }
.tutorial-close { min-width: 44px; min-height: 44px; padding: 0; border: 0 !important; font-size: 32px; font-weight: 400; line-height: 1; flex-shrink: 0; }
.how-to-play-body { padding: 0 26px 8px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.tutorial-intro { font-size: 18px; line-height: 1.5; margin: 0 0 24px; }
.tutorial-sections { display: grid; gap: 26px; }
.tutorial-sections h3 { font-size: 17px; letter-spacing: -.3px; line-height: 1.4; }
.tutorial-sections p { font-size: 14px; line-height: 1.6; margin: 10px 0; }
.tutorial-prompt { --tone: var(--c1); border-radius: 16px; padding: 16px; margin-top: 12px; }
.tutorial-prompt .tutorial-caption { font-size: 10px; font-weight: 800; letter-spacing: 1.1px; margin: 0 0 6px; }
.tutorial-prompt .tutorial-question { font-size: 18px; font-weight: 800; line-height: 1.3; margin: 0 0 12px; }
.tutorial-answer { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 1.5; }
.tutorial-prompt .tutorial-answer { margin: 0; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--card-ink) 20%, transparent); }
.tutorial-match-example { --tone: var(--c3); padding: 14px 16px; border-radius: 16px; margin: 12px 0; }
.tutorial-match-example .tutorial-answer + .tutorial-answer { margin-top: 8px; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--card-ink) 20%, transparent); }
.tutorial-match-mark { display: inline-flex; justify-content: center; align-items: center; width: 22px; height: 22px; margin-left: 5px; border-radius: 50%; background: #367140; color: #fff; }
.tutorial-sharing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.tutorial-sharing > div { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.tutorial-people { display: block; font-size: 20px; white-space: nowrap; }
.tutorial-sharing h4 { margin: 8px 0 5px; font-size: 14px; }
.tutorial-sharing p { margin: 0; font-size: 13px; line-height: 1.5; }
.how-to-play-footer { display: block; flex-shrink: 0; padding: 16px 26px 22px; margin: 0; border-top: 1px solid var(--line); }
.how-to-play-footer button { width: 100%; }
@media (max-width: 359px) {
  .how-to-play-header { padding: 20px 18px 16px; }
  .how-to-play-header h2 { font-size: 29px; }
  .how-to-play-body { padding-inline: 18px; }
  .how-to-play-footer { padding: 14px 18px 18px; }
  .tutorial-sharing { grid-template-columns: 1fr; }
}

@media (max-width: 359px) {
  .masthead { gap: 6px; }
  .wordmark { font-size: 20px; }
  .question-card { padding: 22px 17px 18px; }
  .prompt-text { font-size: 22px; }
  .prompt-stack .form-actions button { padding-inline: 12px; font-size: 14px; }
  .prompt-stack .next-answer { gap: 6px; }
  .answer-card { padding: 16px 12px; }
}

/* Computer: two columns for playing and results, answer cards in a grid */
@media (min-width: 900px) {
  .shell { max-width: 1080px; padding: 0 32px; }
  #play { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; align-items: center; }
  #play > .edition { grid-column: 1 / -1; }
  #play > .intro { grid-row: 2; }
  #play > .prompt-stack { grid-column: 2; }
  #results { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; align-items: start; }
  #results > :is(.edition, .answers-heading, .answer-cards) { grid-column: 1 / -1; }
  #results > .score-panel { grid-column: 2; grid-row: 2 / span 2; padding-top: 26px; }
  #results > .share-panel { grid-column: 1; }
  #results[data-solo="true"] > .share-panel { grid-column: 2; grid-row: 2; padding-top: 26px; margin-top: 0; }
  /* Four over three, centered, like a hand laid on the table. */
  .deal-table { padding: 8px 32px 40px; }
  .deal-hand { max-width: 1016px; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-rows: minmax(0, 250px); align-content: center; gap: 16px; }
  .deal-hand .deal-card { grid-column: span 2; padding: 20px; }
  .deal-hand .deal-card:nth-child(5) { grid-column: 2 / span 2; }
  .deal-hand .deal-card:last-child { grid-column: span 2; justify-self: stretch; width: auto; }
  .deal-prompt { font-size: 15px; -webkit-line-clamp: 3; }
  .deal-answer { font-size: 26px; }
  .answer-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
