:root {
  color-scheme: light;
  --paper: #faf8f2;
  --card: #fffefa;
  --ink: #231e25;
  --muted: #625761;
  --plum: #312236;
  --plum-deep: #241a2a;
  --plum-soft: #ede2f2;
  --lavender: #9a7cad;
  --lime: #d4ed91;
  --line: #dfd5dd;
  --berry: #a33550;
  --berry-tint: #f4dce4;
  --moss: #526832;
  --yellow: #f1d771;
  --blue: #a7c8ed;
  --focus: #815096;
  --lime-hover: color-mix(in srgb, var(--lime) 77%, white);
  --quiet-plum: color-mix(in srgb, var(--muted) 53%, var(--plum));
  --plum-border: color-mix(in srgb, var(--lavender) 47%, var(--line));
  --on-dark: color-mix(in srgb, var(--plum-soft) 45%, white);
  --radius: 24px;
  --font: "Segoe UI", system-ui, sans-serif;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 1rem; line-height: 1.55; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.19em; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.037em; text-wrap: balance; }
ul, ol { padding-inline-start: 1.2em; }
li + li { margin-top: 0.45rem; }
main { display: block; }
main > :last-child { margin-bottom: 0; }
.shell { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { border-bottom: 1px solid var(--line); }
.header-row { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px 30px; }
.brand { display: inline-flex; align-items: center; gap: 0.64rem; font-weight: 800; letter-spacing: -0.035em; white-space: nowrap; text-decoration: none; }
.brand-mark { flex: 0 0 22px; aspect-ratio: 1; border-radius: 8px 8px 8px 2px; background: var(--plum); position: relative; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 9px; height: 3px; left: 6px; border-radius: 3px; background: var(--lime); }
.brand-mark::before { top: 7px; }
.brand-mark::after { top: 12px; width: 6px; }
.header-row nav { display: flex; align-items: center; gap: 0.3rem 1.3rem; flex-wrap: wrap; }
.header-row nav a { padding-block: 11px; color: var(--muted); font-size: 0.88rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.header-row nav a:hover, .header-row nav a[aria-current] { color: var(--ink); text-decoration: underline; }

.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.45fr 1fr; align-items: center; min-height: 360px; overflow: hidden; margin-top: 25px; border-radius: var(--radius); background: var(--plum-soft); }
.hero-copy { z-index: 1; padding: clamp(1.5rem, 5vw, 4.25rem); padding-right: 0; }
.hero h1 { max-width: 12ch; font-size: clamp(3rem, 6.2vw, 6.2rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.055em; text-wrap: initial; }
.hero p { max-width: 32rem; margin-top: 1.2rem; color: var(--quiet-plum); font-size: clamp(1rem, 1.5vw, 1.17rem); line-height: 1.5; }
.button-row, .game-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.button-row { margin-top: 1.45rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0.64rem 1.03rem; border: 1px solid transparent; border-radius: 11px; font-size: 0.94rem; font-weight: 750; line-height: 1.2; text-align: center; text-decoration: none; }
.primary { color: white; background: var(--plum); }
.primary:hover { background: var(--focus); }
.secondary { color: var(--ink); border-color: var(--plum-border); background: transparent; }
.secondary:hover { background: var(--card); border-color: var(--lavender); }
.lime { color: var(--ink); background: var(--lime); }
.lime:hover { background: var(--lime-hover); }

.hero-art { position: relative; place-self: stretch; min-height: 220px; margin-right: clamp(1rem, 4vw, 4rem); }
.hero-art::before { content: ""; position: absolute; inset: 13% 1% 10% 5%; border-radius: 50%; background: radial-gradient(circle, var(--plum-border), transparent 68%); }
.slip { position: absolute; top: 49%; left: 54%; width: clamp(120px, 15vw, 196px); height: clamp(152px, 19vw, 244px); border-radius: 21px; border: 1px solid color-mix(in srgb, white 42%, transparent); box-shadow: 0 14px 26px color-mix(in srgb, var(--plum) 16%, transparent); }
.slip-back { transform: translate(-35%, -53%) rotate(19deg); background: #9a7cad; }
.slip-middle { transform: translate(-64%, -45%) rotate(-16deg); background: var(--plum-border); }
.slip-front { transform: translate(-49%, -50%) rotate(-3deg); display: grid; align-content: center; gap: 10%; padding: 19% 14%; background: var(--lime); }
.slip-front i { height: 4px; border-radius: 5px; background: color-mix(in srgb, var(--moss) 57%, transparent); }
.slip-front i:first-child { width: 26%; height: 18px; margin-bottom: 7px; background: var(--moss); }
.slip-front i:nth-child(2) { width: 84%; }
.slip-front i:nth-child(3) { width: 68%; }
.slip-front i:last-child { width: 46%; }

.ad-slot { width: 100%; text-align: center; }
.ad-slot--banner { min-height: 50px; display: flex; flex-direction: column; align-items: center; }
.ad-slot--banner:has(.ad-label) { min-height: 70px; }
.ad-slot--native { min-height: 144px; }
.ad-label { display: block; color: var(--muted); font-size: 0.7rem; line-height: 20px; }
.ad-frame { display: block; border: 0; flex: none; }
@media (min-width: 768px) {
  .ad-slot--banner { min-height: 90px; }
  .ad-slot--banner:has(.ad-label) { min-height: 110px; }
  .ad-slot--native { min-height: 180px; }
}
.practice-stage { min-height: var(--frame-height, 340px); position: relative; isolation: isolate; border-radius: var(--radius); overflow: hidden; scroll-margin-top: 0.85rem; background: var(--plum-deep); }
.practice-stage[data-practice-state="playing"] { background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.practice-stage iframe { display: block; width: 100%; height: var(--frame-height, 340px); border: 0; }
.stage-cover, .stage-loading { min-height: 340px; display: grid; place-items: center; position: relative; overflow: hidden; }
.stage-copy { position: relative; z-index: 1; padding: 32px 20px; color: var(--on-dark); text-align: center; }
.stage-copy h2, .game-start h1 { font-size: clamp(2.3rem, 5vw, 4rem); letter-spacing: -0.052em; font-weight: 790; }
.stage-copy p, .game-start p { margin: 0.8rem 0 1.2rem; color: var(--plum-soft); }
.stage-copy .button, .game-start .button { min-width: 7rem; }
.stage-pattern { position: absolute; pointer-events: none; inset: 0; background: repeating-linear-gradient(128deg, transparent 0 40px, color-mix(in srgb, var(--lavender) 28%, transparent) 41px 42px, transparent 42px 61px); mask-image: radial-gradient(ellipse at center, transparent 0 29%, black 88%); }
.stage-loading span { width: 36px; height: 36px; border: 3px solid color-mix(in srgb, var(--plum-soft) 35%, transparent); border-top-color: var(--lime); border-radius: 50%; animation: spin 0.85s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.home-info { display: grid; grid-template-columns: 1.1fr 1fr; align-items: start; gap: 22px; }
.how-panel, .official-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--card); }
.home h2, .article-section h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
.home .stage-copy h2 { font-size: clamp(2.3rem, 5vw, 4rem); }
.home-info ul, .home-info p { margin-top: 0.95rem; color: var(--muted); }
.official-panel .button { margin-top: 1.05rem; }
.more { margin: 3.25rem 0 2.5rem; }
.more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 1.05rem; }
.more-card { position: relative; display: block; min-height: 128px; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; background: var(--card); text-decoration: none; }
.more-card:hover { border-color: var(--lavender); }
.more-card h3 { margin-right: 1.3rem; font-size: 1.08rem; }
.more-card p { margin-top: 0.65rem; color: var(--muted); font-size: 0.93rem; }
.more-card span { position: absolute; right: 1rem; top: 0.8rem; font-size: 1.1rem; }

.reading { width: min(100% - 2rem, 56rem); min-height: 48vh; }
.page-hero { padding: clamp(1.5rem, 4.6vw, 3.55rem); margin: 25px 0 1.2rem; border-radius: var(--radius); background: var(--plum-soft); }
.page-hero h1 { margin-bottom: 0.85rem; font-size: clamp(2.5rem, 5.7vw, 4.75rem); letter-spacing: -0.055em; text-wrap: initial; font-weight: 800; }
.page-hero p { max-width: 48rem; color: var(--quiet-plum); }
.page-hero p + p { margin-top: 0.75rem; }
.mission-date { display: block; margin-top: 0.95rem; color: var(--quiet-plum); font-size: 0.9rem; font-weight: 750; }
.answer-card { margin: 0 0 0.75rem; border: 1px solid var(--line); border-radius: 17px; padding: clamp(1rem, 2.8vw, 1.45rem); background: var(--card); }
.answer-card h2 { margin-bottom: 0.6rem; font-size: clamp(1.2rem, 2.6vw, 1.52rem); letter-spacing: -0.025em; }
.answer-card strong { color: var(--ink); }
.answer-card p { color: var(--muted); }
details { overflow: clip; }
summary { min-height: 45px; display: list-item; padding: 0.62rem 0.8rem; cursor: pointer; font-weight: 720; border-radius: 9px; }
summary::marker { color: var(--focus); }
.answer-card details { margin-top: 0.7rem; }
.answer-card details summary { width: fit-content; background: var(--plum-soft); }
.answer-card details[open] summary { margin-bottom: 0.6rem; }
details p + p { margin-top: 0.4rem; }
.faq { margin: 2rem 0; }
.faq details { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.faq details p { padding: 0 0.9rem 0.9rem; color: var(--muted); }
.article-section { margin: 1.5rem 0; padding: 1.3rem; border-left: 3px solid var(--plum-border); }
.article-section h2 { margin-bottom: 0.7rem; }
.article-section p + p { margin-top: 0.7rem; }
.article-section ul, .article-section ol { margin-top: 0.65rem; }
.comparison { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.comparison table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.comparison th, .comparison td { padding: 0.7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.comparison thead { background: var(--plum-soft); }
.comparison tbody tr:last-child > * { border-bottom: 0; }
.after-table { margin-top: 1.1rem; }
.mission-list, .content-links { padding: 0; list-style: none; }
.mission-list li, .content-links li { margin: 0.55rem 0; padding: 0.8rem 1rem; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.site-footer { margin-top: clamp(2.6rem, 6vw, 4.4rem); padding: 1.8rem 0 2rem; border-top: 1px solid var(--line); color: var(--muted); }
.footer-row { display: grid; gap: 0.85rem; font-size: 0.88rem; }
.footer-row p { max-width: 70ch; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.05rem; }
.footer-row nav a { padding-block: 5px; }

.embed-body { background: var(--card); }
.game { width: 100%; margin: 0; }
.game-screen { padding: clamp(1rem, 4vw, 2.3rem); min-height: 340px; }
.game-start { display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; color: var(--on-dark); background: var(--plum-deep); }
.game-start > div:not(.stage-pattern) { position: relative; }
.game-start .best { font-size: 0.9rem; margin-bottom: 0; }
.game-bar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.45rem; align-items: center; font-size: clamp(0.82rem, 2.8vw, 1rem); font-weight: 760; font-variant-numeric: tabular-nums; }
.game-bar > :last-child { text-align: right; }
.timer { display: inline-flex; justify-content: center; min-width: 3.5rem; padding: 0.35rem 0.6rem; border-radius: 7px; background: color-mix(in srgb, var(--lime) 53%, var(--card)); color: var(--moss); }
.timer.urgent { color: var(--berry); background: var(--berry-tint); }
.timer-track { height: 4px; border-radius: 4px; background: var(--line); margin-top: 0.75rem; overflow: hidden; }
.timer-track span { display: block; width: 100%; height: 100%; background: var(--moss); transform-origin: left; }
.timer-track .urgent { background: var(--berry); }
.prompt, .game-result h2, .complete-title h2 { color: var(--ink); font-size: clamp(1.6rem, 4vw, 2.75rem); margin: 1.15rem 0 0.85rem; outline: none; text-wrap: initial; }
.prompt { max-width: 40ch; }
.game-question input { width: min(100%, 43rem); min-height: 50px; padding: 0.64rem 0.8rem; border: 1px solid var(--plum-border); border-radius: 10px; background: white; color: var(--ink); font-size: 1rem; scroll-margin-bottom: 1rem; }
.game-question input[aria-invalid] { border-color: var(--berry); }
.game-actions { margin-top: 0.75rem; }
.feedback { min-height: 1.5rem; margin-top: 0.55rem; color: var(--berry); font-weight: 650; font-size: 0.91rem; }
.game-result { display: grid; align-content: center; justify-items: start; gap: 1.1rem; }
.game-result h2 { margin: 0 0 0.6rem; }
.tier { display: inline-block; width: fit-content; padding: 0.2rem 0.65rem; border-radius: 14px; background: var(--line); font-weight: 800; font-size: 0.9rem; }
.tier[data-points="25"] { background: color-mix(in srgb, var(--yellow) 58%, var(--card)); }
.tier[data-points="50"] { background: var(--lime-hover); }
.tier[data-points="75"] { background: color-mix(in srgb, var(--blue) 54%, var(--card)); }
.tier[data-points="100"] { background: var(--plum-soft); }
.rare-answers { margin-top: 0.8rem; color: var(--muted); }
.complete-title h2 { margin: 0; }
.complete-title > p { margin-top: 0.35rem; }
.record, .copy-status { color: var(--moss); font-weight: 800; }
.round-results { list-style: none; padding: 0; margin-top: 0.95rem; border-block: 1px solid var(--line); }
.round-results li { padding: 0.48rem 0; font-size: 0.92rem; overflow-wrap: anywhere; }
.round-results li + li { margin-top: 0; border-top: 1px solid color-mix(in srgb, var(--line) 65%, var(--card)); }
.copy-status, .share-fallback { margin-top: 0.6rem; }
.share-fallback { width: min(100%, 34rem); min-height: 86px; border: 1px solid var(--plum-border); border-radius: 9px; padding: 0.5rem; color: var(--ink); background: var(--paper); }

@media (max-width: 740px) {
  .home-info { grid-template-columns: 1fr; gap: 0.85rem; }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header .header-row { flex-wrap: wrap; gap: 0; padding: 0.65rem 0 0.13rem; }
  .header-row nav { width: 100%; }
  .hero { grid-template-columns: 1.65fr 1fr; }
}

@media (max-width: 500px) {
  .shell, .reading { width: calc(100% - 1.5rem); }
  .header-row nav { gap: 0.36rem 0.86rem; }
  .header-row nav a { min-height: 44px; }
  .hero, .page-hero { margin-top: 12px; border-radius: 17px; }
  .hero { display: block; min-height: 0; }
  .hero-copy { padding: 1.35rem 0.98rem; position: relative; }
  .hero h1 { width: 100%; max-width: 9ch; font-size: clamp(2.65rem, 11.8vw, 3.85rem); }
  .hero p { margin-top: 0.9rem; }
  .button-row { margin-top: 1rem; }
  .button { padding-inline: 0.72rem; }
  .hero-art { position: absolute; z-index: -1; top: -14px; right: -20px; width: 173px; min-height: 0; height: 182px; opacity: 0.85; }
  .slip { width: 76px; height: 101px; border-radius: 11px; box-shadow: 0 6px 16px color-mix(in srgb, var(--plum) 15%, transparent); }
  .slip-front { gap: 9%; padding: 14% 9%; }
  .slip-front i { height: 3px; }
  .slip-front i:first-child { height: 8px; margin-bottom: 3px; }
  .hero h1, .hero p { position: relative; }
  .practice-stage, .how-panel, .official-panel { border-radius: 16px; }
  .more { margin-top: 2rem; }
  .more-grid { gap: 0.5rem; }
  .more-card { min-height: 128px; padding: 0.8rem; }
  .more-card span { right: 0.55rem; top: 0.62rem; }
  .article-section { padding: 0.9rem 0.7rem; }
  .game-screen { padding: 1rem; }
  .game-question input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
