:root { color-scheme: light; font-family: 'Trebuchet MS', Arial, sans-serif; color: #112941; background: #edf3f8; --ink: #112941; --accent: #89dfed; --hot: #f5a75d; --surface: #dce8f1; --muted: #516779; }
* { box-sizing: border-box; }
body { margin: 0; }
body.echo { --ink: #302445; --accent: #ddcbff; --hot: #ffb5a0; --surface: #e9e1f2; --muted: #6c587a; background: #f6f1fa; color: var(--ink); }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 4px; }
button, select, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 3px solid #d36a23; outline-offset: 4px; }
header, main, footer { max-width: 1220px; margin: auto; padding: 0 32px; }
header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 800; text-decoration: none; font-size: 20px; letter-spacing: -.6px; }
.brand span { color: var(--muted); font-weight: 400; }
.top-tools { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.quiet { background: transparent; border: 0; color: inherit; padding: 10px 0; text-decoration: underline; text-underline-offset: 4px; }
.hero { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; padding: 40px 0 56px; align-items: center; }
.intro h1 { font-size: clamp(48px, 5.8vw, 78px); line-height: .98; letter-spacing: -4px; margin: 22px 0; max-width: 7ch; }
.echo .intro h1 { max-width: 9ch; }
.intro p { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 36ch; }
.intro .eyebrow { font-size: 14px; color: var(--ink); font-weight: 700; }
.motif { display: flex; gap: 10px; margin-top: 32px; }
.motif i { height: 8px; width: 42px; background: var(--ink); border-radius: 8px; }
.motif i:nth-child(2) { opacity: .6; }.motif i:nth-child(3) { opacity: .25; }
.invitation { background: var(--surface); border-left: 4px solid var(--ink); padding: 14px 18px; font-size: 14px !important; }
.console { border-radius: 28px; background: var(--ink); color: white; padding: 24px; box-shadow: 0 16px 0 var(--surface); }
.console-bar, .metrics, .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.console-bar { font-size: 13px; padding-bottom: 18px; border-bottom: 1px solid #ffffff26; }
select { border-radius: 8px; background: white; color: var(--ink); padding: 8px; border: 0; max-width: 170px; }
.metrics { margin: 20px 0 12px; }
.metrics div { display: grid; gap: 5px; }.metrics span { font-size: 11px; color: #d5dbe4; }.metrics strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.arena { position: relative; }
#radar { display: block; width: 100%; max-height: 320px; }
.track { fill: none; stroke: #ffffff15; stroke-width: 19; }
.target { fill: none; stroke: var(--accent); stroke-width: 19; }
.needle { stroke: var(--hot); stroke-width: 5; stroke-linecap: round; }
.radar-label { fill: white; text-anchor: middle; font-size: 13px; }
.radar-number { fill: white; text-anchor: middle; font-size: 40px; font-weight: 700; }
.status { min-height: 46px; text-align: center; font-size: 15px; line-height: 1.5; margin: 12px 0; }
.primary { border: 0; border-radius: 12px; background: var(--accent); color: var(--ink); padding: 16px 22px; font-weight: 800; width: 100%; font-size: 18px; touch-action: manipulation; }
.primary:hover { filter: brightness(1.08); }
.toolbar { margin-top: 12px; font-size: 13px; }
.toolbar button { color: white; }
.hint { font-size: 12px; opacity: .75; text-align: center; margin: 15px 0 0; }
.pad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px 8px; max-width: 430px; width: 100%; margin: auto; }
.pad { aspect-ratio: 1.5; min-height: 62px; border-radius: 16px; border: 2px solid #ffffff30; background: #ffffff0c; color: #ece1ff; font-size: 28px; font-weight: 700; transition: background .12s, color .12s; }
.pad:disabled { opacity: 1; }
.pad.lit { background: var(--accent); color: var(--ink); border-color: white; box-shadow: 0 0 0 4px #ffffff25; }
.pad.wrong { background: #d5634f; color: white; }
.sequence-progress { display: flex; justify-content: center; gap: 7px; min-height: 12px; }
.sequence-progress i { width: 10px; height: 10px; background: #ffffff30; border-radius: 50%; }.sequence-progress i.done { background: var(--hot); }
.result { background: var(--surface); border-radius: 24px; padding: 32px; margin: 8px 0 48px; }
.result h2 { font-size: 26px; margin: 0; }.result .score { font-size: 70px; font-weight: 800; letter-spacing: -3px; margin: 12px 0; }
.result p { line-height: 1.6; }.result-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.result-actions button { padding: 12px 22px; border-radius: 10px; border: 1px solid var(--ink); background: var(--ink); color: white; font-weight: 700; }
.result-actions button + button { color: var(--ink); background: transparent; }
#copy-link { width: 100%; padding: 12px; margin: 8px 0; } #share-status, #record-status { min-height: 24px; }
#round-log { columns: 2; line-height: 1.8; padding-left: 24px; }
.guide { border-top: 1px solid #77889940; padding: 36px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 42px; }
.guide h2 { font-size: 26px; }.guide h3 { margin-top: 26px; }.guide p, .guide li { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 66ch; }
.guide ol { padding-left: 20px; }
footer { border-top: 1px solid #77889940; padding-top: 24px; padding-bottom: 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--muted); }
@media(max-width: 760px) { header, main, footer { padding-left: 20px; padding-right: 20px; }.hero { grid-template-columns: 1fr; gap: 26px; padding: 12px 0 40px; }.intro h1, .echo .intro h1 { font-size: 48px; letter-spacing: -2px; max-width: none; margin: 14px 0; }.intro p { font-size: 16px; max-width: none; }.motif { display: none; }.console { padding: 20px; }.guide { grid-template-columns: 1fr; gap: 10px; }#round-log { columns: 1; }.brand span { display: none; }.result { padding: 24px; } }
@media(prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media(max-width: 760px) {
    header { min-height: 72px; }
    .intro h1, .echo .intro h1 { font-size: 42px; margin: 10px 0; }
    .intro p { line-height: 1.5; margin: 10px 0; }
    .intro .eyebrow:last-child { display: none; }
    .metrics { margin: 14px 0 8px; }
    .pad-grid { gap: 8px; padding: 10px 0; }
    .status { font-size: 14px; }
}
