@font-face { font-family: system-local; src: local("Segoe UI"); font-display: swap; }
:root { font-family: system-local, system-ui, sans-serif; color: #2c3c30; background: #eaeade; font-synthesis: none; --muted: #667261; --line: #c5ccba; --accent: #48703a; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { overflow: hidden; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, canvas:focus-visible { outline: 2px solid #52783c; outline-offset: 5px; }
button:hover { background: #dce4ce; }
.playground { height: 100%; height: 100dvh; position: relative; overflow: hidden; min-height: 380px; }
#scene { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.masthead { position: absolute; top: calc(28px + env(safe-area-inset-top, 0px)); left: max(38px, env(safe-area-inset-left, 0px)); right: max(38px, env(safe-area-inset-right, 0px)); display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.wordmark { display: flex; align-items: center; color: inherit; font-size: 32px; font-weight: 800; letter-spacing: -2px; text-decoration: none; pointer-events: auto; }
.wordmark svg { width: 38px; height: 38px; margin-right: 9px; fill: #79964e; }
.wordmark svg circle { fill: #2c3c30; }
.wordmark-dot { color: #739247; }
.edition, .eyebrow, .scene-note, .panel-heading span { font-size: 10px; letter-spacing: 1.8px; font-weight: 650; }
.edition { border: 1px solid #bcc6b2; border-radius: 30px; padding: 9px 13px; }
.score-badge { display: flex; align-items: center; gap: 7px; background: #f3f3e9e8; border: 1px solid #bcc6b2; border-radius: 30px; padding: 7px 14px; font-size: 13px; font-weight: 700; color: #496338; pointer-events: auto; }
.score-badge svg { width: 17px; height: 17px; fill: #ffd13b; stroke: #8f680c; stroke-width: 1.4; }
.intro { position: absolute; top: 132px; left: 42px; pointer-events: none; transition: opacity 0.6s ease, transform 0.6s ease; }
.scene-note { position: absolute; left: 50%; bottom: 132px; transform: translateX(-50%); text-align: center; color: #647557; pointer-events: none; white-space: nowrap; font-size: 8px; transition: opacity 0.6s ease, transform 0.6s ease; }
.intro.fade-out { opacity: 0; transform: translateY(-12px); }
.scene-note.fade-out { opacity: 0; transform: translate(-50%, -12px); }
.eyebrow { color: #687b52; font-size: 9px; letter-spacing: 1.5px; }
h1 { font-size: clamp(32px, 3.6vw, 56px); line-height: 1.07; letter-spacing: -2.8px; font-weight: 550; margin: 18px 0; }
.intro > p:last-child { font-size: 14px; color: var(--muted); line-height: 1.7; }
.state { position: absolute; top: 88px; right: 40px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #57674e; }
.state-dot { width: 6px; height: 6px; background: #738e50; border-radius: 50%; }
.tuning { position: absolute; right: 36px; bottom: calc(128px + env(safe-area-inset-bottom, 0px)); width: 215px; padding: 19px 20px 10px; background: #f3f3e9e8; border: 1px solid #c8cfbc; border-radius: 15px; box-shadow: 0 8px 24px #46563008; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; }
.panel-heading h2 { font-size: 13px; font-weight: 600; margin: 0; }
.panel-heading span { color: #707b65; font-size: 8px; letter-spacing: 1px; }
.shape-picker { padding: 0 0 14px; margin: -5px 0 12px; border: 0; border-bottom: 1px solid #d4d9c9; min-width: 0; }
.shape-picker legend { font-size: 11px; margin-bottom: 9px; padding: 0; }
.shape-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.shape-options button { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 63px; padding: 5px 2px; background: #edf0e3; border: 1px solid #cbd3be; border-radius: 8px; }
.shape-options button:hover { background: #e0e8d2; }
.shape-options button[aria-pressed="true"] { border-color: #63834a; background: #e0e8d2; box-shadow: inset 0 0 0 1px #63834a; }
.shape-options button span { font-size: 8px; white-space: nowrap; }
.shape-options svg { width: 36px; height: 33px; stroke-width: 1.2; }
.shape-options button[data-shape="original"] svg { fill: #a8cd6d; stroke: #486637; }
.shape-options button[data-shape="poring"] svg { fill: #eeabc0; stroke: #88495c; }
.shape-options button[data-shape="droplet"] svg { fill: #a5d2eb; stroke: #426e8a; }
.shape-options svg circle { fill: #384631; stroke: none; }
.shape-options .face-lines { fill: none; stroke-width: 1.5; }
.tuning label { display: flex; align-items: center; justify-content: space-between; font-size: 11px; margin-top: 14px; }
.tuning output { color: #667657; font-variant-numeric: tabular-nums; }
input[type="range"] { display: block; width: 100%; height: 20px; margin: 7px 0 10px; accent-color: #708d49; cursor: pointer; }
.surface-button { border: 0; border-top: 1px solid #d4d9c9; background: transparent; display: flex; gap: 9px; align-items: center; width: 100%; padding: 14px 0 8px; font-size: 11px; margin-top: 14px; }
.surface-button[aria-pressed="true"] { color: #557231; font-weight: 700; }
button svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; width: 18px; height: 18px; }
.toolbar { position: absolute; bottom: calc(25px + env(safe-area-inset-bottom, 0px)); left: max(36px, env(safe-area-inset-left, 0px)); right: max(36px, env(safe-area-inset-right, 0px)); min-height: 64px; border-top: 1px solid #b9c4ac; display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-top: 20px; }
.instructions, .key-group, .actions { display: flex; align-items: center; gap: 9px; }
.instructions { font-size: 11px; gap: 18px; }
.key-group { gap: 4px; }
.key-group > span { margin-left: 7px; color: var(--muted); font-size: 10px; }
kbd { font-family: inherit; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #bcc7af; border-bottom-width: 2px; border-radius: 5px; font-size: 10px; min-width: 23px; height: 25px; padding: 0 5px; background: #f0f1e7; }
.separator { width: 1px; height: 24px; background: #c3ccba; }
.muted { color: var(--muted); }
.actions { gap: 6px; }
.actions button { background: #f3f4ec; border: 1px solid #bdc9b0; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 15px; padding: 0 11px; font-size: 12px; }
.actions button:hover, .actions button[aria-pressed="true"] { background: #dbe5cd; }
.actions kbd { height: 22px; font-size: 9px; border-bottom-width: 1px; }
.scene-note { position: absolute; left: 50%; bottom: 132px; transform: translateX(-50%); text-align: center; color: #647557; pointer-events: none; white-space: nowrap; font-size: 8px; }
.scene-note span { display: block; margin-top: 7px; font-size: 11px; font-weight: 400; letter-spacing: 0; opacity: .75; }
.altar-dialog { position: absolute; left: 50%; bottom: calc(105px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(12px); width: min(92vw, 440px); background: #fdfdf9f5; border: 1px solid #c9d2bf; border-radius: 16px; padding: 13px 18px; box-shadow: 0 10px 28px #3543261a; text-align: center; font-size: 12.5px; line-height: 1.55; color: #384631; opacity: 0; pointer-events: none; transition: opacity 0.45s ease, transform 0.45s ease; z-index: 10; }
.altar-dialog.visible { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.altar-dialog-title { font-size: 9px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 750; color: #688544; margin-bottom: 5px; }
.altar-dialog p { margin: 0; font-size: 12.5px; line-height: 1.55; }
.error { position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%); width: min(90vw, 480px); background: #fff7e9; border: 1px solid #b27c57; padding: 24px; border-radius: 14px; line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1000px) { .intro { top: 108px; left: 28px; } h1 { font-size: 36px; } .tuning { width: 180px; right: 24px; } .key-group > span { display: none; } .instructions { gap: 10px; } .instructions .muted { display: none; } .scene-note { bottom: 110px; } }
@media (max-width: 650px) { .masthead { top: calc(17px + env(safe-area-inset-top, 0px)); left: 20px; right: 20px; } .wordmark { font-size: 27px; } .wordmark svg { width: 30px; } .edition { font-size: 8px; } .intro { top: 87px; left: 22px; } h1 { font-size: 29px; letter-spacing: -1.4px; margin: 9px 0; } .eyebrow { font-size: 7px; } .intro > p:last-child { font-size: 11px; } .state { top: 70px; right: 22px; font-size: 10px; } .tuning { bottom: calc(105px + env(safe-area-inset-bottom, 0px)); right: 16px; width: 153px; padding: 12px 14px 7px; } .panel-heading { margin-bottom: 12px; } .panel-heading h2 { font-size: 11px; } .panel-heading span { display: none; } .tuning label { margin-top: 8px; font-size: 10px; } .surface-button { font-size: 10px; padding-top: 10px; margin-top: 8px; } .toolbar { left: 18px; right: 18px; bottom: calc(15px + env(safe-area-inset-bottom, 0px)); padding-top: 13px; min-height: 60px; align-items: center; } .instructions { max-width: 135px; font-size: 10px; } .key-group, .separator { display: none; } .instructions .muted { display: inline; } .actions { gap: 5px; } .actions button { padding: 0 9px; gap: 5px; } .actions kbd { display: none; } .scene-note { display: none; } }
@media (max-height: 580px) and (min-width: 651px) { .intro { top: 80px; } h1 { font-size: 30px; } .intro > p:last-child { display: none; } .tuning { bottom: 95px; padding: 12px 15px 7px; } .panel-heading { margin-bottom: 8px; } .tuning label { margin-top: 6px; } .toolbar { bottom: 16px; } .scene-note { display: none; } }
@media (max-width: 650px) { .tuning { width: 183px; } .shape-picker { padding-bottom: 9px; margin-bottom: 8px; } .shape-picker legend { font-size: 10px; } .shape-options button { min-height: 57px; } .shape-options svg { width: 31px; height: 29px; } }
@media (max-height: 650px) { .tuning { max-height: calc(100dvh - 200px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; } }
