:root {
  color-scheme: light;
  --ink: #151515;
  --paper: #f7f7f5;
  --muted: #5c5c58;
  --line: #d5d5d0;
  --header-height: 106px;
  --controls-height: 164px;
  font-family: 'Hiragino Sans', 'Yu Gothic UI', 'Yu Gothic', Meiryo, system-ui, sans-serif;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 20px); }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.65; }
button, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
button:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
button:disabled { opacity: .65; }
button, a, summary { -webkit-user-select: none; user-select: none; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--paper); border-bottom: 2px solid var(--ink); padding-top: env(safe-area-inset-top, 0px); }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 15px 28px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px 22px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; width: clamp(6.5rem, 28vw, 9rem); min-height: 44px; color: inherit; text-decoration: none; }
.wordmark:focus-visible { outline-color: currentColor; }
/* Frame the approved artwork without its surrounding white presentation margins. */
.brand-art { display: block; position: relative; width: 100%; aspect-ratio: 1606 / 378; overflow: hidden; }
.brand-art img { position: absolute; width: 110.460772%; height: auto; max-width: none; left: -5.479452%; top: -62.962963%; mix-blend-mode: multiply; }
.clock { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.clock-label { font-size: .9375rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.clock-value { font-family: Arial, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.045em; font-size: 3.35rem; font-weight: 800; line-height: 1.15; min-width: 4.75ch; text-align: right; }
.topbar.urgent { background: var(--ink); color: white; }
.topbar.urgent .clock-label { color: #e1e1dd; }
.topbar.urgent .brand-art img { filter: invert(1); mix-blend-mode: screen; }
#app { max-width: 800px; margin: 0 auto; padding: calc(var(--header-height) + 30px) 24px 50px; }
body.is-playing #app { padding-bottom: calc(var(--controls-height) + 34px); }
.eyebrow { font-size: .9375rem; font-weight: 700; letter-spacing: .05em; }
.home { padding: 20px 0 10px; }
.home-title { max-width: 40rem; line-height: 1; margin: 14px 0 22px; }
/* Keep both sentences on one line each from 320px; allow enlarged text to reflow. */
.intro { font-size: clamp(1rem, calc(5.6vw - 2px), 1.375rem); line-height: 1.85; font-weight: 500; }
.intro strong { font-weight: 800; }
.intro-line { display: block; }
.play-note { font-size: 1.125rem; font-weight: 700; line-height: 1.7; text-align: center; margin-bottom: 14px; }
.rules-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 30px 0; padding: 20px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.rule-number { padding-left: 20px; border-left: 1px solid var(--line); }
.rule-number:first-child { padding-left: 0; border-left: 0; }
.rule-number span { display: block; font-size: .9375rem; font-weight: 600; color: var(--muted); }
.rule-number strong { font-size: 1.5rem; line-height: 1.3; font-weight: 800; }
.rule-number b { font-family: Arial, sans-serif; font-size: 3rem; letter-spacing: -.06em; margin-right: 3px; }
.primary-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 78px; padding: 18px 25px; border: 2px solid var(--ink); border-radius: 3px; background: var(--ink); color: #fff; font-size: 1.5rem; font-weight: 800; gap: 12px; }
.primary-button .symbol { font-size: 1.75rem; line-height: 1; font-family: Arial, sans-serif; }
.start-button { justify-content: center; text-align: center; }
.secondary-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 60px; background: transparent; border: 1px solid var(--ink); border-radius: 3px; color: var(--ink); font-size: 1.125rem; font-weight: 700; padding: 12px 18px; margin-top: 12px; }
.home-foot { color: var(--muted); font-size: 1rem; text-align: center; margin-top: 20px; }
.creator-credit { color: var(--ink); font-size: 1rem; font-weight: 600; text-align: center; margin-top: 22px; }
.load-error { font-size: 1.125rem; margin-top: 20px; font-weight: 600; }
.round-strip { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.player-turn { font-size: 1.125rem; font-weight: 800; }
.player-turn b { font-family: Arial, sans-serif; font-size: 1.5rem; }
.guesser { color: var(--muted); font-size: .9375rem; margin-top: 2px; }
.round-counts { display: flex; align-items: center; gap: 14px; font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.round-count { padding-right: 14px; border-right: 1px solid var(--line); }
.score-count b { font-family: Arial, sans-serif; font-size: 1.5rem; margin-left: 3px; }
.message-card { background: #fff; border: 1.5px solid var(--ink); border-radius: 3px; overflow: hidden; }
.message-heading { display: flex; align-items: center; gap: 14px; padding: 24px 26px 20px; border-bottom: 1px solid var(--line); }
.sender { font-size: 1.5rem; line-height: 1.5; font-weight: 800; overflow-wrap: anywhere; }
.message-meta { font-size: .875rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
.message-body { font-size: clamp(1.375rem, 1.2rem + .35vw, 1.625rem); line-height: 1.9; font-weight: 500; padding: 24px 26px 28px; overflow-wrap: anywhere; line-break: strict; word-break: normal; white-space: pre-wrap; }
.answer-box { padding: 23px 4px 0; }
.answer-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.answer-label::before { content: ''; display: inline-block; width: 16px; height: 2px; background: var(--muted); }
.answer-text { font-size: 1.1875rem; line-height: 1.85; font-weight: 700; overflow-wrap: anywhere; }
.incoming { animation: incoming .2s ease-out; }
@keyframes incoming { from { opacity: .25; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.action-bar { position: fixed; inset: auto 0 0; z-index: 40; padding: 15px 24px max(18px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--ink); background: var(--paper); }
.action-inner { max-width: 752px; margin: 0 auto; }
.handoff-label { font-size: 1.0625rem; font-weight: 700; text-align: center; margin-bottom: 11px; }
.action-buttons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; }
.result-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 74px; border: 2px solid var(--ink); border-radius: 3px; font-size: 1.5rem; line-height: 1.5; font-weight: 800; padding: 13px 12px; flex-wrap: wrap; }
.result-button.pass { color: var(--ink); background: var(--paper); }
.result-button.correct { color: #fff; background: var(--ink); }
.result-button .symbol { font-size: 1.65rem; font-family: Arial, sans-serif; font-weight: 600; line-height: 1; }
.result-button:disabled { opacity: 1; cursor: default; }
.result-button:active:not(:disabled), .primary-button:active:not(:disabled) { transform: translateY(2px); }
.rules-page h1 { font-size: 2.2rem; letter-spacing: -.04em; margin: 12px 0 26px; }
.rules-section { padding: 25px 0; border-top: 1px solid var(--line); }
.rules-section h2 { font-size: 1.4rem; line-height: 1.6; margin-bottom: 12px; }
.rules-section p, .rules-section li { font-size: 1.1875rem; line-height: 1.9; }
.rules-section p + p { margin-top: 12px; }
.rules-section ol { padding-left: 1.7em; margin: 0; }
.rules-section li + li { margin-top: 14px; }
.example { margin-top: 18px; padding: 18px 20px; background: #eaeae7; border-left: 3px solid var(--ink); font-size: 1.125rem; line-height: 1.9; }
.example p + p { margin-top: 9px; }
.results { padding-top: 10px; }
.result-kicker { font-family: Arial, sans-serif; font-weight: 900; font-size: clamp(2.6rem, 10vw, 5rem); letter-spacing: -.06em; line-height: 1.1; margin: 8px 0 12px; overflow-wrap: anywhere; }
.result-description { font-size: 1.25rem; font-weight: 700; line-height: 1.6; }
.result-score { display: flex; align-items: baseline; gap: 12px; padding: 14px 0 24px; border-bottom: 2px solid var(--ink); font-size: 1.5rem; font-weight: 700; }
.result-score .big { font-family: Arial, sans-serif; font-size: 7rem; font-weight: 900; letter-spacing: -.08em; line-height: 1.15; }
.result-score .denominator { font-family: Arial, sans-serif; font-size: 2.6rem; font-weight: 700; color: var(--muted); }
.result-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 1.125rem; margin: 18px 0 28px; }
.review { margin-top: 38px; }
.review h2 { font-size: 1.5rem; margin-bottom: 16px; }
.review details { border-top: 1px solid var(--line); }
.review details:last-child { border-bottom: 1px solid var(--line); }
.review summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 12px; padding: 20px 0; }
.review summary::-webkit-details-marker { display: none; }
.review summary::after { content: '+'; font-size: 1.5rem; font-family: Arial, sans-serif; line-height: 1.1; }
.review details[open] summary::after { content: '−'; }
.status-badge { background: #e4e4df; font-size: .9375rem; font-weight: 800; padding: 3px 7px; white-space: nowrap; }
.status-badge.correct { background: var(--ink); color: white; }
.review-sender { font-size: 1rem; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.review-answer { font-size: 1.1875rem; line-height: 1.75; font-weight: 700; }
.review-body { padding: 0 0 24px; font-size: 1.1875rem; line-height: 1.9; white-space: pre-wrap; }
.noscript { font-size: 1.25rem; padding: 30px; }
@media (min-width: 900px) { .home { padding-top: 34px; } #app { padding-top: calc(var(--header-height) + 40px); } }
@media (max-width: 480px) {
  .topbar-inner { padding: 12px 19px; gap: 10px 16px; }
  .clock { gap: 10px; }
  .clock-label { font-size: .875rem; }
  .clock-value { font-size: 2.75rem; }
  #app { padding-left: 18px; padding-right: 18px; padding-top: calc(var(--header-height) + 22px); }
  .home { padding-top: 8px; }
  .home-title { margin-top: 10px; margin-bottom: 18px; }
  .rules-numbers { margin: 25px 0; padding: 17px 0; }
  .rule-number { padding-left: 12px; }
  .rule-number span { font-size: .875rem; }
  .rule-number b { font-size: 2.5rem; }
  .rule-number strong { font-size: 1.25rem; }
  .round-strip { gap: 12px; padding-bottom: 18px; margin-bottom: 18px; }
  .round-counts { gap: 10px; }
  .round-count { padding-right: 10px; }
  .message-heading { padding: 19px 19px 16px; gap: 12px; }
  .message-body { padding: 20px 19px 24px; }
  .answer-box { padding-top: 20px; }
  .action-bar { padding: 12px 18px max(15px, env(safe-area-inset-bottom, 0px)); }
  .result-button { min-height: 72px; gap: 9px; }
  .handoff-label { font-size: 1rem; }
}
@media (max-width: 350px) {
  .clock-label { display: none; }
  .round-counts { font-size: 1rem; }
  .player-turn { font-size: 1rem; }
  .review summary { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
