﻿:root { color-scheme: light; font-family: 'Malgun Gothic','Apple SD Gothic Neo',system-ui,sans-serif; color: #263d37; background: #f7f5ed; line-height: 1.6; font-synthesis: none; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible, [tabindex='-1']:focus-visible { outline: 3px solid #ad5632; outline-offset: 4px; }
button:disabled { opacity: .55; cursor: default; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 10; padding: 12px; background: #fff; color: #1f4435; }
.skip-link:focus { top: 12px; }
.topbar { max-width: 1350px; height: 76px; padding: 0 48px; margin: auto; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #dfe5db; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: inline-block; width: 26px; height: 24px; border: 3px solid #3e6d5c; border-radius: 6px; position: relative; }
.brand-mark::before { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #3e6d5c; left: 3px; top: 3px; }
.brand-mark::after { content: ''; position: absolute; width: 9px; height: 7px; border-left: 2px solid #3e6d5c; border-top: 2px solid #3e6d5c; transform: rotate(45deg); bottom: 2px; right: 2px; }
.topbar p, .footer { color: #4b6659; font-size: 13px; font-weight: 600; }
.page { max-width: 1200px; min-height: calc(100vh - 145px); margin: auto; padding: 50px 30px 70px; }
.intro { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 8%; min-height: 555px; }
.intro-copy { padding: 10px 0 25px 28px; }
.eyebrow, .panel-kicker { margin: 0 0 16px; color: #3e6b57; font-size: 12px; font-weight: 800; letter-spacing: .07em; }
h1, h2, p { overflow-wrap: break-word; }
h1 { margin: 0; font-size: clamp(36px,4.8vw,62px); line-height: 1.24; letter-spacing: -.055em; }
h1 span { color: #a47841; }
.lead { color: #4b6558; font-size: 17px; line-height: 1.9; margin: 23px 0 0; }
.intro-note { border-left: 3px solid #bd9b65; padding-left: 14px; margin: 22px 0; color: #4b6558; font-size: 14px; }
.practice summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-size: 14px; font-weight: 800; color: #294a3a; }
fieldset { border: 0; padding: 0; margin: 21px 0; min-width: 0; }
legend { margin-bottom: 8px; font-size: 14px; font-weight: 800; }
.settings { display: flex; flex-wrap: wrap; gap: 9px; }
.settings label { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 9px 14px; border: 1px solid #c3d2c4; border-radius: 9px; background: #fffefa; font-size: 14px; font-weight: 700; cursor: pointer; }
.settings input { width: 18px; height: 18px; margin: 0; accent-color: #386a53; }
.button { min-height: 52px; display: inline-flex; justify-content: center; align-items: center; gap: 16px; border: 1px solid transparent; border-radius: 10px; padding: 12px 20px; font-weight: 800; transition: background-color .15s; }
.primary { background: #315e4c; color: #fff; }
.primary:hover { background: #234b3b; }
.secondary, .outline { background: #fffefa; color: #315747; border-color: #a8bdad; }
.secondary:hover, .outline:hover { background: #edf5ec; }
.arrow { display: inline-block; position: relative; width: 15px; height: 10px; }
.arrow::before { content: ''; position: absolute; width: 13px; height: 2px; background: currentColor; top: 4px; left: 0; }
.arrow::after { content: ''; position: absolute; width: 6px; height: 6px; border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg); top: 1px; right: 1px; }
.intro-art { min-height: 470px; position: relative; display: flex; align-items: center; justify-content: center; border-radius: 28px; background: #edf2e9; overflow: hidden; }
.intro-art svg { display: block; width: min(100%, 500px); }
.intro-art > span { position: absolute; bottom: 25px; color: #4b6659; font-size: 12px; letter-spacing: .05em; }
.game-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.game-heading .eyebrow { margin-bottom: 10px; }
.game-heading h1 { font-size: clamp(28px,3.5vw,42px); }
.separator { color: #4f695b; padding: 0 6px; }
.subtitle { margin: 7px 0 0; color: #4b6558; }
.layout { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(0,1.8fr); gap: 20px; align-items: start; }
.guide-card { border: 1px solid #d4e1d3; border-radius: 17px; background: #eaf2e8; padding: 25px; }
.panel-kicker { margin-bottom: 5px; }
.guide-card h2, .work-card h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.effect-card { display: flex; align-items: center; gap: 13px; min-height: 75px; margin: 20px 0; padding: 12px 15px; background: #fffefa; border: 1px solid #d4e3d3; border-radius: 11px; }
.effect-card strong, .effect-card small { display: block; }
.effect-card small { color: #4b6558; font-size: 12px; }
.effect-icon { width: 36px; height: 36px; flex: none; border: 3px solid #4b7a64; border-radius: 50%; position: relative; }
.effect-icon::before, .effect-icon::after { content: ''; position: absolute; border-radius: 50%; background: #4b7a64; }
.effect-icon::before { width: 5px; height: 5px; left: 7px; top: 8px; }
.effect-icon::after { width: 5px; height: 5px; right: 7px; bottom: 8px; }
.guide-copy, .guide-note { color: #4b6558; font-size: 13px; line-height: 1.75; }
.sound-toggle { display: flex; align-items: start; gap: 10px; margin: 19px 0 0; padding: 15px 0; border-top: 1px solid #cbdcce; border-bottom: 1px solid #cbdcce; font-size: 14px; font-weight: 800; cursor: pointer; }
.sound-toggle input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: #386a53; }
.sound-toggle small { display: block; color: #4b6558; font-size: 12px; font-weight: 400; }
.guide-note { margin: 13px 0 0; }
.work-area { display: grid; gap: 14px; }
.work-card { border: 1px solid #dfe6dc; border-radius: 16px; padding: 24px 27px; background: #fffefa; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge { padding: 5px 10px; background: #edf4ea; color: #365c48; border-radius: 18px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.scenes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.scene { min-width: 0; min-height: 190px; padding: 9px; display: flex; flex-direction: column; align-items: start; text-align: left; border: 1.5px solid #c5d6c5; border-radius: 11px; color: #294a3a; background: #fffefa; }
.scene:hover { border-color: #56816a; background: #f8fbf5; }
.scene[aria-pressed='true'] { border: 2px solid #386c50; background: #eff7ed; }
.scene.playing { box-shadow: inset 0 0 0 2px #bf9a62; }
.scene-image { display: block; width: 100%; }
.scene-image svg { display: block; width: 100%; height: auto; }
.scene-number { margin-top: 9px; color: #665531; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.scene-label { margin-top: 3px; font-size: 13px; font-weight: 800; }
.scene-tag { margin-top: auto; padding-top: 7px; color: #456c50; font-size: 12px; font-weight: 700; }
.hint { margin: 12px 0 0; color: #4d6558; font-size: 13px; }
.preview-screen { margin-top: 17px; padding: 18px; background: #f1f5ec; border: 1px solid #dae7d7; border-radius: 11px; }
.preview-screen p { margin: 0; }
.preview-screen .cue { margin-top: 8px; color: #315e49; font-size: 14px; font-weight: 800; }
.preview-actions, .actions, .finish-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.preview-actions { margin-top: 14px; }
.text-button { min-height: 48px; padding: 10px; border: 0; background: transparent; color: #486358; text-decoration: underline; text-underline-offset: 4px; font-weight: 700; }
.status { min-height: 1.6em; margin: 0; padding: 0 4px; color: #315a45; font-size: 14px; font-weight: 700; }
.finish { max-width: 620px; margin: 55px auto; padding: 65px 25px; text-align: center; border: 1px solid #dfe6dc; border-radius: 23px; background: #fffefa; }
.finish h1 { font-size: clamp(32px,4vw,46px); }
.finish > p:not(.eyebrow) { color: #4b6558; }
.finish-actions { justify-content: center; margin-top: 25px; }
.finish-note { margin-top: 24px; font-size: 13px; }
.finish-mark { width: 58px; height: 58px; margin: 0 auto 22px; border-radius: 50%; background: #e5f0e5; position: relative; }
.finish-mark::after { content: ''; position: absolute; width: 24px; height: 13px; border-left: 3px solid #47775c; border-bottom: 3px solid #47775c; transform: rotate(-45deg); left: 17px; top: 17px; }
.footer { max-width: 1200px; margin: auto; padding: 20px 30px 28px; border-top: 1px solid #e0e6dc; display: flex; justify-content: space-between; gap: 10px; }
dialog { width: min(420px,calc(100vw - 32px)); border: 0; border-radius: 18px; padding: 0; color: #263d37; box-shadow: 0 24px 80px #182c2460; }
dialog::backdrop { background: #15271dbc; }
.dialog-content { padding: 35px; }
.dialog-content h2 { margin: 0; font-size: 25px; }
.dialog-content p:not(.eyebrow) { color: #4b6558; margin: 14px 0 24px; }
@media (max-width: 760px) { .topbar { padding: 0 18px; height: 64px; } .topbar p { font-size: 11px; } .page { padding: 34px 18px 48px; } .intro, .layout { grid-template-columns: 1fr; } .intro { gap: 28px; } .intro-copy { padding: 0 4px; } .intro-art { min-height: 300px; } .intro-art svg { max-height: 340px; } .game-heading { align-items: start; flex-direction: column; } .guide-card, .work-card { padding: 20px; } .footer { padding: 18px; } }
@media (max-width: 500px) { .scenes { grid-template-columns: 1fr; } .scene { display: grid; grid-template-columns: 100px 1fr; column-gap: 12px; min-height: 100px; align-items: center; } .scene-image { grid-row: 1 / span 3; } .scene-number, .scene-label, .scene-tag { margin: 0; padding: 0; } .scene-tag { align-self: end; } .actions .primary { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
