:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; color: #eef1f2; background: #15191c; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; touch-action: manipulation; }
body { -webkit-tap-highlight-color: transparent; }
button, input, a { font: inherit; touch-action: manipulation; }
button, a { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #eebc63; outline-offset: 4px; }
[hidden] { display: none !important; }
.page { width: min(100% - 32px, 500px); height: 100svh; height: 100dvh; margin: auto; padding: max(12px, env(safe-area-inset-top)) 0 max(10px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 44px; font-size: 16px; font-weight: 500; letter-spacing: .1em; color: #c6cdd1; }
.header h1 { margin: 0; font: inherit; letter-spacing: inherit; }
.title-lamp { color: #ffcb5d; text-shadow: 0 0 5px #ffc361b3, 0 0 12px #ffb74480; }
.page.check-failed { animation: check-shake 360ms ease-out; }
.icon-button { width: 44px; height: 44px; border: 0; background: transparent; color: #9ca7ad; font-size: 23px; }
.play { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 22px; padding-top: clamp(16px, 4dvh, 32px); }
.stage-nav { width: 140px; height: 128px; padding: 9px; display: grid; grid-template-rows: repeat(3, 32px); gap: 6px; border: 1px solid #46525a; border-radius: 3px; background: #1b2125; box-shadow: inset 0 0 0 3px #111619; }
.stage-slot { position: relative; width: 120px; height: 32px; border-radius: 2px; background: #0f1418; box-shadow: inset 0 0 0 1px #2b343b, inset 0 2px 4px #0005; }
.stage-tab { position: relative; display: grid; grid-template-columns: repeat(3, 12px); align-items: center; justify-content: center; gap: 9px; width: 120px; height: 32px; padding: 0 10px; border: 1px solid #404c54; border-radius: 2px; background: #252d32; box-shadow: inset 0 0 0 2px #1d252a; }
.stage-tab[aria-current="step"] { border-color: #9aa7b0; box-shadow: inset 0 0 0 2px #323c44; }
.plate-enter { animation: plate-seat 400ms cubic-bezier(.2,.8,.2,1) both; }
.mini-light { display: block; width: 9px; height: 9px; border: 1px solid #68747a; border-radius: 50%; background: #3a444b; }
.mini-light[data-lit="true"] { background: #ffcf64; border-color: #f8c056; box-shadow: 0 0 5px #ffbc6599, 0 0 11px #f6a73940; }
.board { width: min(100%, 400px); }
.panel { position: relative; min-width: 0; padding: 34px 24px; border: 1px solid #596770; border-radius: 3px; background: #181e22; }
.lights { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.lights::before { content: ""; position: absolute; top: 50%; left: 16%; right: 16%; border-top: 1px solid #47545d; }
.light { position: relative; display: grid; place-items: center; padding: 0; width: 100%; min-height: 44px; aspect-ratio: 1; border: 1px solid transparent; border-radius: 50%; }
.switch { border-color: #9aa7af; background: #1e262c; }
.indicator { background: transparent; }
.bulb { position: relative; display: block; width: 74%; aspect-ratio: 1; border: 1px solid #66757f; border-radius: 50%; background: #39454d; }
.switch .bulb::after { content: ""; position: absolute; left: calc(50% - 1px); top: 27%; width: 2px; height: 25%; border-radius: 1px; background: #b0bdc5; }
.light[data-lit="true"] .bulb { background: #ffcb5d; border-color: #ffdb87; box-shadow: 0 0 12px #ffc36180, 0 0 28px #ffb74440, inset 0 0 10px #ffedb72e; }
.light[data-lit="true"] .bulb::before { content: ""; position: absolute; top: 13%; left: 24%; width: 30%; height: 9%; border-radius: 50%; background: #fff8d942; }
.light[data-lit="true"] .bulb::after { background: #6b4c24; }
.just-lit .bulb, .mini-light.just-lit { animation: lamp-strike 260ms ease-out; }
.switch:active .bulb { transform: scale(.96); }
.confirmation { min-height: 44px; display: flex; align-items: center; }
.confirmation:has([hidden]) { display: none; }
#confirm { width: 136px; height: 44px; padding: 0; background: #2b343a; box-shadow: inset 0 1px 0 #ffffff14, 0 2px 0 #0e1316; }
#confirm:active { background: #343f46; box-shadow: inset 0 1px 3px #0005; }
.actions { display: flex; justify-content: center; gap: 24px; padding-top: 9px; margin-top: auto; margin-bottom: clamp(10px, 4dvh, 30px); }
.actions .text-button { min-width: 100px; padding: 8px 10px; border-bottom: 1px solid #4e5b65; }
.text-button { min-height: 44px; padding: 8px 4px; border: 0; background: transparent; color: #a6b1b8; font-size: 12px; }
.outline-button, .solid-button { display: inline-flex; align-items: center; justify-content: center; min-width: 136px; min-height: 44px; padding: 9px 20px; border: 1px solid #788790; border-radius: 3px; background: #1b2329; color: #e5ecef; text-decoration: none; font-size: 13px; }
.solid-button { background: #e9b259; border-color: #e9b259; color: #151c20; }
.notice { min-height: 18px; margin: 0; color: #a8b3b9; font-size: 12px; text-align: center; }
.notice:empty { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
dialog { width: min(100% - 32px, 350px); max-height: calc(100dvh - 32px); padding: 36px 25px 25px; border: 1px solid #66747d; border-radius: 4px; color: #e8edef; background: #1b2227; text-align: center; overflow-y: auto; overscroll-behavior: contain; }
dialog::backdrop { background: #080d14a6; }
dialog h2 { margin: 0 0 23px; font-size: 20px; font-weight: 500; line-height: 1.6; }
.close { position: absolute; top: 3px; right: 4px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #a9b4ba; font-size: 24px; }
#finish-dialog #share { width: 100%; min-height: 56px; margin-top: 4px; font-size: 16px; font-weight: 600; }
.volume-heading { display: flex; justify-content: space-between; font-size: 13px; }
input[type="range"] { width: 100%; height: 44px; accent-color: #e9b259; margin: 7px 0 10px; }
#mute[aria-pressed="true"] { background: #e9b259; border-color: #e9b259; color: #151c20; }
.setting-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; margin-top: 25px; }
.hint-link .small-note { margin-top: 9px; text-align: left; font-size: 10px; }
.setting-links a { min-height: 44px; display: grid; place-items: center; border: 1px solid #53616b; border-radius: 3px; color: #d0d9de; text-decoration: none; font-size: 12px; }
.small-note, .disclaimer { font-size: 11px; line-height: 1.8; color: #a3afb6; }
.small-note { margin: 16px 0 0; }
.disclaimer { margin: 23px 0 0; }
.record-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.record-item { padding: 13px 0; border: 1px solid #46535c; font-size: 12px; }
.record-item strong { display: block; margin-top: 8px; font-size: 23px; font-weight: 500; }
.record-item:last-child { grid-column: 1 / -1; }
.rate { margin: 10px 0 0; padding: 16px 12px; border-color: #e9b259; background: #22282b; font-size: 13px; }
.rate strong { color: #ffcf64; font-size: 32px; font-weight: 600; }
@keyframes plate-seat { 0% { opacity: 0; transform: translate(-7px, -12px) rotate(-2deg); } 65% { opacity: 1; transform: translate(0, -2px); } 80% { transform: translateY(1px); } 100% { opacity: 1; transform: none; } }
@keyframes lamp-strike { 0% { filter: brightness(.65); } 35% { filter: brightness(1.15); } 100% { filter: none; } }
@keyframes check-shake { 0%, 100% { transform: translateX(0); } 15%, 55% { transform: translateX(-7px); } 35%, 75% { transform: translateX(7px); } 90% { transform: translateX(-3px); } }
@media (max-height: 650px) { .play { gap: 10px; padding-top: 14px; } .panel { padding: 23px 18px; } .board { width: min(100%, 350px); } .actions { padding-top: 6px; margin-bottom: 12px; } }
@media (max-height: 480px) { .header { flex-basis: 40px; } .play { display: grid; grid-template-columns: 140px minmax(0, 1fr); justify-content: center; align-content: center; gap: 5px 12px; padding-top: 0; } .stage-nav { grid-row: 1 / 5; grid-column: 1; align-self: center; } .board, .confirmation, .notice, .actions, #reconnect { grid-column: 2; } .panel { padding: 16px 15px; } .board { max-width: 265px; justify-self: center; } .confirmation { min-height: 0; } .actions { gap: 10px; padding-top: 5px; margin-top: 0; margin-bottom: 0; } .actions .text-button { min-width: 0; flex: 1; padding: 8px 5px; } }
@media (prefers-reduced-motion: reduce) { .plate-enter, .just-lit .bulb, .mini-light.just-lit { animation: none; } .page.check-failed { animation: check-feedback 360ms ease-out; } @keyframes check-feedback { 0%, 100% { opacity: 1; } 50% { opacity: .7; } } .switch:active .bulb { transform: none; } }
