:root { color-scheme: dark; font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; background: #101112; color: #f2f0eb; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:focus-visible { outline: 2px solid #e3d6b9; outline-offset: 7px; border-radius: 2px; }
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 500; }
h2:focus { outline: none; }
.scene { width: 100%; min-height: 100svh; padding: max(40px, env(safe-area-inset-top)) 24px max(40px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; opacity: 1; transition: opacity 250ms ease; }
.scene.leaving { opacity: 0; }
.entrance .intro { animation: arrival 900ms ease both; }
h1 { font-size: clamp(2.5rem, 10vw, 3.25rem); letter-spacing: .1em; line-height: 1.7; }
.invitation { margin-top: 28px; font-size: 1.15rem; letter-spacing: .1em; line-height: 2; color: #c6c4bf; }
.choices { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 76px; }
.choices button { min-height: 48px; padding: 10px 0; font-size: .9375rem; letter-spacing: .025em; line-height: 1.7; border-bottom: 1px solid #595957; }
.choices button:hover, #accept:hover { color: #fff; border-bottom-color: #ddd5c5; }
.small { color: #a6a5a0; font-size: .8125rem; line-height: 1.9; letter-spacing: .055em; }
.fallback { margin-top: 60px; }
.request { gap: 88px; }
.request h2 { font-size: clamp(1.65rem, 7.5vw, 2.6rem); line-height: 1.95; letter-spacing: .045em; }
.request-status { margin-top: 26px; }
#accept { min-height: 48px; padding: 12px 4px; font-size: 1rem; letter-spacing: .08em; line-height: 1.8; border-bottom: 1px solid #646461; }
.handoff { gap: 32px; }
.handoff h2 { font-size: clamp(1.45rem, 6.1vw, 2rem); line-height: 1.85; letter-spacing: .06em; }
#qr-block { width: 100%; }
#qr { width: min(256px, 100%); aspect-ratio: 1; background: white; margin: 0 auto; }
#qr svg { display: block; width: 100%; height: 100%; }
.qr-caption { margin-top: 22px; font-size: .9375rem; letter-spacing: .045em; line-height: 1.8; }
.exit-copy { margin-top: 18px; }
.appear { animation: arrival 450ms ease both; }
/* Reserve space while waiting, without exposing invisible focus targets. */
.choices[hidden] { display: flex !important; visibility: hidden; }
#accept[hidden] { display: block !important; visibility: hidden; }
@keyframes arrival { from { opacity: 0; } to { opacity: 1; } }
@media (max-height: 650px) { .scene { padding-top: 28px; padding-bottom: 28px; } .handoff { gap: 22px; } .request { gap: 60px; } .choices { margin-top: 52px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.outer-footer { max-width: 700px; margin: 0 auto; padding: 44px 24px max(40px, env(safe-area-inset-bottom)); text-align: center; color: #a6a5a0; font-size: .76rem; line-height: 1.9; }
.outer-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; }
.outer-footer a { color: inherit; text-underline-offset: .3em; }
.outer-footer a:hover { color: #f2f0eb; }
.outer-footer .copyright { margin-top: 28px; }
.outer-footer .copyright span { display: inline-block; white-space: nowrap; }
.outer-footer :focus-visible { outline: 2px solid #e3d6b9; outline-offset: 5px; }
.reading { max-width: 690px; margin: 0 auto; padding: 76px 24px 28px; line-height: 2.05; font-size: 1rem; }
.reading h1 { font-size: clamp(1.7rem, 6.6vw, 2.5rem); line-height: 1.6; margin: 0 0 52px; }
.reading h2 { font-size: 1.22rem; line-height: 1.8; margin: 72px 0 24px; }
.reading h3 { font-size: 1rem; line-height: 1.8; margin: 50px 0 18px; }
.reading p { margin: 0 0 1.3em; }
.reading strong { font-weight: 600; color: #fff; }
.reading a { color: #f2f0eb; text-underline-offset: .3em; }
.reading a:hover { color: #fff; }
.reading .back { display: inline-block; color: #a6a5a0; margin-bottom: 48px; }
.reading .try { display: inline-block; margin: 44px 0; padding: 12px 0; border-bottom: 1px solid #807e79; text-decoration: none; }
.reading .byline { margin-top: 56px; }
#analytics-consent { max-width: 690px; margin: 0 auto; padding: 0 24px; --mo-consent-background:#1b1c1d; --mo-consent-foreground:#f2f0eb; --mo-consent-border:#706f6b; --mo-consent-focus:#e3d6b9; }
