:root {
  color-scheme: dark;
  --bg: #14222e;
  --panel: #1b2d3b;
  --blue: #9fcbdc;
  --orange: #f0b17d;
  --text: #f3eee4;
  --muted: #a5b4bc;
  --line: #ffffff1c;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: grid; place-items: center; background: radial-gradient(ellipse at 28% 0, #4b352927, transparent 60%), #0b1219; color: var(--text); }
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
button { border: 0; }
button:active { transform: translateY(1px); }
[hidden] { display: none !important; }
p, h1, h2, button, legend, .scene-placeholder { word-break: auto-phrase; text-wrap: pretty; }
.phone { width: 100%; max-width: 430px; height: 100svh; height: 100dvh; max-height: 1000px; position: relative; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px #c7d9e312, 0 25px 100px #0006; }
.screen { width: 100%; height: 100%; min-height: 0; }
.eyebrow { font-size: 10px; letter-spacing: .16em; color: var(--blue); }
.title-screen { display: flex; flex-direction: column; overflow-y: auto; padding: max(26px, env(safe-area-inset-top)) 29px max(20px, env(safe-area-inset-bottom)); background: radial-gradient(ellipse at 100% 0, #a6663b40, transparent 52%), radial-gradient(ellipse at 0 65%, #35627b22, transparent 65%), var(--bg); }
.title-top { display: flex; justify-content: space-between; align-items: center; }
.edition { border: 1px solid #d8af8d55; border-radius: 30px; padding: 7px 10px; color: var(--orange); font-size: 9px; letter-spacing: .1em; }
.title-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 30px 0 24px; }
.title-time { display: flex; align-items: center; gap: 13px; color: #c7b4a2; font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .12em; margin-bottom: 22px; }
.time-line { height: 1px; background: #ddba9744; flex: 1; position: relative; }
.time-line i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); position: absolute; top: -2px; left: 0; box-shadow: 0 0 10px #f0b17d88; }
h1 { font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; margin: 0 0 22px; font-weight: 700; letter-spacing: -.045em; line-height: 1.45; }
h1 span { display: block; font-size: clamp(39px, 11.8vw, 51px); white-space: nowrap; }
h1 span:last-child { color: var(--orange); }
.title-hook { margin: 0; font-size: 14px; line-height: 1.95; white-space: pre-line; letter-spacing: .03em; }
.intro { font-size: 11px; line-height: 1.9; color: var(--muted); margin: 15px 0 0; white-space: pre-line; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; margin: 0 0 10px; font-size: 11px; color: #c6d4db; letter-spacing: .04em; }
.birthday-fields { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 8px; }
.birthday-fields label { display: flex; align-items: center; min-width: 0; border: 1px solid #b2c9d332; background: #0d1a2480; border-radius: 5px; padding-right: 10px; }
.birthday-fields input { min-width: 0; width: 100%; height: 49px; background: transparent; border: 0; color: var(--text); text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; border-radius: 5px; }
.birthday-fields input::placeholder { font-size: 11px; color: #8296a2; letter-spacing: .08em; }
.birthday-fields label span { font-size: 10px; color: var(--muted); }
.privacy { color: var(--muted); font-size: 10px; line-height: 1.6; margin: 9px 0 16px; }
.privacy::before { content: '◇'; margin-right: 5px; color: var(--blue); }
.form-error { color: #ffc6b0; font-size: 12px; line-height: 1.7; margin: 0 0 12px; }
.primary-button { width: 100%; min-height: 54px; background: var(--orange); color: #1e252b; border-radius: 5px; padding: 14px 19px; font-size: 14px; font-weight: 700; line-height: 1.6; position: relative; }
.primary-button::after { content: '→'; position: absolute; right: 19px; font-weight: 400; }
.text-button { width: 100%; background: transparent; color: #becbd2; font-size: 12px; line-height: 1.6; padding: 13px 6px; min-height: 44px; }
.skip-button { margin: 3px 0 10px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #a5b4bc55; }
.title-footer { border-top: 1px solid var(--line); padding-top: 13px; }
.collection { text-align: center; font-size: 11px; color: var(--blue); margin: 0; letter-spacing: .06em; }
.small-note, .numerology-note { text-align: center; font-size: 9px; line-height: 1.8; color: var(--muted); margin: 7px 0 0; }
.numerology-note { margin-top: 10px; }
.welcome-screen { display: flex; flex-direction: column; padding: max(30px, env(safe-area-inset-top)) 30px max(30px, env(safe-area-inset-bottom)); overflow-y: auto; background: radial-gradient(circle at 100% 30%, #88624333, transparent 60%), var(--bg); }
.welcome-center { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 30px 0; }
.welcome-number { font-family: Georgia, serif; font-size: 130px; color: var(--orange); line-height: 1.2; }
.welcome-screen h2 { font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 24px; line-height: 1.8; white-space: pre-line; font-weight: 500; outline: none; }
.welcome-screen .intro { font-size: 13px; line-height: 2; }
.game-screen { display: flex; flex-direction: column; overflow-y: auto; position: relative; isolation: isolate; }
.status-bar { position: relative; z-index: 5; flex-shrink: 0; padding: calc(11px + env(safe-area-inset-top)) 17px 13px; background: #14222ef5; border-bottom: 1px solid var(--line); }
.clock-row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; }
.clock-row .eyebrow { width: 85px; letter-spacing: .05em; }
.clock-row time { color: var(--orange); font-size: 25px; letter-spacing: .07em; font-weight: 500; font-variant-numeric: tabular-nums; }
.choice-progress { color: var(--muted); font-size: 10px; width: 85px; text-align: right; }
.gauges { display: flex; gap: 20px; }
.gauge { flex: 1; min-width: 0; }
.gauge-label { display: flex; justify-content: space-between; font-size: 10px; color: var(--blue); margin-bottom: 7px; }
.floating .gauge-label { color: #ddbd9f; }
.gauge-label output { font-variant-numeric: tabular-nums; }
.gauge-track { height: 4px; border-radius: 4px; background: #ffffff19; overflow: hidden; }
.gauge-track span { display: block; height: 100%; background: var(--blue); transition: width .6s ease, background .6s ease; }
.floating .gauge-track span { background: var(--orange); }
.game-screen.is-low .oxygen .gauge-track span { background: #e6a58c; }
.scene { position: relative; width: 100%; aspect-ratio: 3/2; flex-shrink: 0; overflow: hidden; margin: 0; background: #302a29; }
.scene-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 15px 25px 88px; text-align: center; background: radial-gradient(ellipse at 78% 12%, #b67b4466, transparent 65%), linear-gradient(135deg, #262d32, #344a5655), #222c35; color: #ead8c4; }
.scene[data-quiet="true"] .scene-placeholder { background: radial-gradient(ellipse at 60% 0, #7eafc233, transparent 70%), #192f3d; color: #c7e3ed; }
.scene-placeholder::before { content: ''; position: absolute; inset: 14px; border: 1px solid #ffffff16; pointer-events: none; }
.placeholder-mark { font-family: Georgia, serif; color: #e8c39c66; font-size: 47px; line-height: 1; }
.placeholder-caption { font-size: 8px; color: #b5b8b3; letter-spacing: .12em; }
#scene-label, #result-scene-label { font-size: 12px; line-height: 1.7; }
.scene-image-layer { position: absolute; inset: 0; }
.scene-image-layer img { width: 100%; height: 100%; object-fit: cover; display: block; animation: scene-in .3s ease both; }
.scene.is-changing .scene-placeholder { animation: scene-in .3s ease both; }
@keyframes scene-in { from { opacity: .3; } to { opacity: 1; } }
.thought { position: absolute; z-index: 6; bottom: 0; left: 0; right: 0; padding: 10px 17px 12px; background: #10212ded; border-top: 1px solid #9fcbdc3b; }
.thought-label { font-size: 8px; color: var(--blue); letter-spacing: .13em; }
.thought p { margin: 4px 0 0; color: #eef4f7; font-size: 13px; line-height: 1.75; white-space: pre-line; }
.log-heading { display: flex; justify-content: space-between; flex-shrink: 0; padding: 10px 17px; position: relative; z-index: 5; background: #192b37; border-bottom: 1px solid var(--line); }
.log-heading span:first-child { font-size: 10px; color: #c7d9e2; }
.log-heading span:last-child { font-size: 8px; color: #9fb0bb; }
.chat-log { position: relative; z-index: 5; flex: 1 0 100px; min-height: 100px; overflow-y: auto; overscroll-behavior: contain; padding: 15px 15px 2px; background: #14222ee8; scrollbar-width: thin; scrollbar-color: #526471 transparent; outline-offset: -2px; }
.chat-row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 13px; animation: scene-in .2s ease both; }
.avatar { width: 26px; height: 26px; flex-shrink: 0; border: 1px solid #c6a88a66; background: #7a5e483d; color: #e3b993; font-size: 10px; border-radius: 50%; display: grid; place-items: center; margin-top: 17px; }
.chat-row.me { justify-content: flex-end; }
.chat-row.me .avatar { order: 1; background: #3e6a7e44; color: var(--blue); border-color: #9fcbdc55; }
.chat-content { max-width: calc(100% - 45px); }
.speaker { display: block; font-size: 9px; color: #c3b7aa; margin: 0 0 5px 2px; }
.chat-row.me .speaker { text-align: right; color: var(--blue); }
.bubble { margin: 0; padding: 10px 12px; border-radius: 2px 12px 12px; background: #e6d4bf; color: #2e2926; font-size: 12px; line-height: 1.85; white-space: pre-line; }
.chat-row.me .bubble { border-radius: 12px 2px 12px 12px; background: #aecedb; color: #18303c; }
.chat-system { text-align: center; color: #a8b9c2; font-size: 10px; line-height: 1.9; margin: 7px 9px 16px; }
.history-thought { font-size: 11px; line-height: 1.9; color: #c0dce8; padding: 8px 12px; margin: 5px 0 15px 34px; border-left: 1px solid #9fcbdc55; white-space: pre-line; }
.history-time { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 9px; color: #a1b0b8; margin: 7px 0 15px; font-variant-numeric: tabular-nums; }
.history-time::before, .history-time::after { content: ''; height: 1px; width: 28px; background: var(--line); }
.controls { position: relative; z-index: 7; flex-shrink: 0; background: #13212efc; border-top: 1px solid #9fcbdc33; padding: 11px 15px max(14px, env(safe-area-inset-bottom)); }
.control-label { color: #c4d7e2; margin: 0 0 9px; font-size: 11px; line-height: 1.7; }
.control-label:empty { display: none; }
.choices { display: flex; flex-direction: column; gap: 7px; }
.choice-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 47px; padding: 11px 13px; border: 1px solid #9fcbdc60; border-radius: 5px; background: #244151; color: #f0f6f8; font-size: 12px; line-height: 1.65; text-align: left; gap: 12px; }
.choice-button::after { content: '›'; color: var(--blue); font-size: 20px; line-height: 1; }
.choice-button:hover { background: #325467; border-color: var(--blue); }
.next-button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 46px; padding: 10px 2px; background: transparent; color: var(--blue); font-size: 12px; }
.next-button::after { content: '↓'; font-size: 19px; }
.atmosphere { --pressure: 0; position: absolute; z-index: 4; inset: 0; overflow: hidden; pointer-events: none; }
.vignette { position: absolute; inset: 0; opacity: var(--pressure); background: radial-gradient(ellipse at 50% 37%, transparent 8%, #03091255 28%, #030912df 62%, #02050aff 100%); box-shadow: inset 0 0 55px 28px #02050ac9; transition: opacity .8s ease; }
.noise-field { position: absolute; z-index: 1; inset: 0; transition: opacity .6s ease; }
.noise-bubble { position: absolute; width: max-content; max-width: 78%; border: 1px solid #dbad7899; background: #efd3adeb; color: #4c382a; padding: 7px 11px; border-radius: 12px 12px 12px 2px; font-size: 11px; line-height: 1.4; box-shadow: 0 4px 15px #0003; opacity: 0; animation: chatter var(--duration) ease-in-out var(--delay) infinite; transform: rotate(var(--tilt)); }
@keyframes chatter { 0%, 100% { opacity: 0; translate: 0 5px; } 20%, 65% { opacity: .92; translate: 0 -3px; } 85% { opacity: 0; translate: 0 -9px; } }
.game-screen.is-quiet .noise-field { opacity: 0; }
.result-screen { overflow-y: auto; background: radial-gradient(ellipse at 100% 70%, #45687d22, transparent 65%), var(--bg); }
.result-capture { padding-bottom: 2px; }
.result-art .scene-placeholder { padding-bottom: 45px; }
.result-art-shade { position: absolute; inset: 0; background: linear-gradient(transparent 45%, var(--bg)); }
.result-brand { position: absolute; bottom: 19px; left: 25px; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; color: #d7c0a7; font-size: 12px; letter-spacing: .08em; }
.result-card { position: relative; padding: 0 25px 9px; }
.result-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ending-code { font-size: 9px; color: var(--orange); letter-spacing: .12em; }
.result-card h2 { font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 28px; letter-spacing: .01em; line-height: 1.6; font-weight: 500; margin: 0; }
.result-tagline { color: #c2d1d9; font-size: 12px; line-height: 1.9; margin: 9px 0 18px; white-space: pre-line; }
.score-card { padding: 18px 20px; background: linear-gradient(120deg, #28455366, #1b2c39); border: 1px solid #9fcbdc55; border-radius: 5px; overflow: hidden; }
.score-label { font-size: 11px; color: var(--blue); }
.score-value { font-family: Georgia, serif; font-size: 69px; line-height: 1.25; color: #d5eaf2; position: relative; font-variant-numeric: tabular-nums; }
.score-value small { font-family: -apple-system, sans-serif; font-size: 22px; margin-left: 5px; }
.score-ring { position: absolute; right: -5px; top: 10px; width: 65px; height: 65px; border-radius: 50%; border: 1px solid #9fcbdc55; box-shadow: 0 0 0 8px #9fcbdc09, 0 0 0 17px #9fcbdc06; }
.score-ring::after { content: ''; position: absolute; inset: 9px; border: 1px dashed #9fcbdc44; border-radius: 50%; }
.score-card p { position: relative; margin: 5px 0 0; font-size: 11px; line-height: 1.85; color: #d4e1e7; white-space: pre-line; }
.result-story { font-size: 12px; color: #bdcbd2; line-height: 2; white-space: pre-line; margin: 18px 0 14px; }
.result-number { text-align: center; font-size: 11px; letter-spacing: .05em; color: var(--orange); padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.collection-block { margin: 19px 0 14px; }
.ending-dots { display: flex; justify-content: center; gap: 9px; margin-top: 12px; }
.ending-dot { display: grid; place-items: center; width: 25px; height: 25px; font-size: 10px; border: 1px solid #9fcbdc40; color: #8da2af; border-radius: 50%; }
.ending-dot.seen { background: #a9cddd; border-color: #a9cddd; color: #18323f; }
.ending-dot.current { outline: 1px solid var(--orange); outline-offset: 3px; }
.result-actions { padding: 10px 25px max(20px, env(safe-area-inset-bottom)); }
.noscript { position: absolute; inset: 0; z-index: 20; background: var(--bg); padding: 40px 25px; line-height: 2; }
@media (min-width: 600px) { body { padding: 16px; } .phone { height: calc(100dvh - 32px); border-radius: 12px; } }
@media (max-height: 730px) { .title-screen { padding-top: max(19px, env(safe-area-inset-top)); } .title-body { padding: 20px 0; } .title-time { margin-bottom: 13px; } h1 { margin-bottom: 13px; } h1 span { font-size: clamp(37px, 10.8vw, 47px); } .title-hook { font-size: 12px; } .intro { font-size: 10px; margin-top: 11px; } .skip-button { margin-bottom: 4px; } .title-footer { padding-top: 10px; } .status-bar { padding-top: calc(7px + env(safe-area-inset-top)); padding-bottom: 9px; } .clock-row { padding-bottom: 8px; } .clock-row time { font-size: 22px; } .controls { padding-top: 8px; padding-bottom: max(9px, env(safe-area-inset-bottom)); } .choices { gap: 5px; } .control-label { margin-bottom: 6px; } .choice-button { padding: 9px 12px; min-height: 44px; font-size: 11px; } .thought { padding: 7px 14px 9px; } .thought p { font-size: 12px; line-height: 1.65; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .noise-field { display: none !important; } }
