:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --paper: #f8f0e7; --ink: #392820; --muted: #725d4f; --rust: #a35436; --deep: #653b2d; --line: #e0cbb8; --white: #fffdf9; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 0, #fffdf9, var(--paper) 68%); color: var(--ink); }
a { color: inherit; }
.skip { position: absolute; left: -9999px; top: 1rem; z-index: 3; padding: .7rem 1rem; border-radius: .5rem; background: var(--white); }
.skip:focus { left: 1rem; }
.scale-header, .scale-footer { width: min(100%, 54rem); margin: 0 auto; padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; }
.scale-brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 900; text-decoration: none; }
.scale-mark { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: .65rem; background: var(--deep); color: #fff; }
.scale-home { min-height: 44px; display: inline-flex; align-items: center; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; }
.scale-home:hover, .scale-home:focus-visible { border-color: var(--rust); color: var(--deep); }
.scale-main { width: min(100%, 54rem); margin: auto; padding: .7rem 1.2rem 2rem; }
.scale-intro { padding: .6rem 0 1.1rem; }
.scale-kicker { margin: 0 0 .35rem; color: var(--rust); font-size: .73rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 40rem; margin: 0; font-size: clamp(2.4rem, 8vw, 4rem); letter-spacing: -.06em; line-height: 1.02; }
h1 span { color: var(--rust); }
.scale-intro > p:last-child { max-width: 37rem; margin: .65rem 0 0; color: var(--muted); line-height: 1.55; }
.scale-card { padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--line); border-radius: 1.3rem; background: var(--white); box-shadow: 0 18px 48px #39282012; }
.round-meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .85rem; font-weight: 750; }
.progress-track { height: .5rem; margin: .55rem 0 1.3rem; overflow: hidden; border-radius: 999px; background: #f1e2d2; }
.progress-track span { display: block; width: 20%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d18b57, var(--rust)); transition: width .2s ease; }
h2 { margin: 0 0 1rem; font-size: clamp(1.5rem, 5vw, 2.2rem); letter-spacing: -.04em; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.object-card { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; min-height: 12rem; padding: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: linear-gradient(150deg, #fff, #fbf3e9); color: var(--ink); font: inherit; cursor: pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.object-card:hover:not(:disabled), .object-card:focus-visible { transform: translateY(-2px); border-color: var(--rust); outline: 3px solid #a3543630; outline-offset: 2px; }
.object-card:disabled { cursor: default; }
.object-letter { align-self: flex-start; color: var(--muted); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.object-icon { font-size: clamp(3rem, 12vw, 5.5rem); line-height: 1.15; }
.object-name { font-size: clamp(.95rem, 3vw, 1.2rem); font-weight: 850; text-align: center; }
.object-value { width: 100%; margin-top: .35rem; color: var(--rust); font-weight: 850; text-align: center; }
.size-track { width: 100%; height: .6rem; overflow: hidden; border-radius: 99px; background: #eee1d4; }
.size-fill { display: block; width: var(--size); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d18b57, var(--rust)); transform-origin: left; animation: reveal .35s ease-out both; }
@keyframes reveal { from { transform: scaleX(.05); } to { transform: scaleX(1); } }
.object-card.is-correct { border-color: #407650; background: #edf7ec; }
.object-card.is-incorrect { border-color: #aa5148; background: #fff1ec; }
.feedback { margin: .9rem 0 .2rem; padding: .8rem 1rem; border-radius: .75rem; background: #f6e9db; color: var(--deep); font-weight: 750; line-height: 1.5; }
.sources { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.source { display: inline-flex; min-height: 44px; align-items: center; margin-top: .25rem; color: var(--deep); font-size: .88rem; font-weight: 750; text-underline-offset: .2em; }
.scale-button { min-height: 48px; margin-top: .8rem; padding: .7rem 1.15rem; border: 0; border-radius: 999px; background: var(--deep); color: #fff; font: inherit; font-weight: 850; cursor: pointer; }
.scale-button:hover { background: var(--rust); }
.result-card { text-align: center; }
.result-score { margin: .5rem 0; color: var(--rust); font-size: clamp(3.5rem, 18vw, 5.5rem); font-weight: 950; letter-spacing: -.07em; line-height: 1; }
.result-note { max-width: 32rem; margin: .5rem auto; color: var(--muted); line-height: 1.5; }
.scale-footer { margin-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
[hidden] { display: none !important; }
@media (max-width: 34rem) { .scale-header, .scale-footer { padding-right: .9rem; padding-left: .9rem; } .scale-main { padding: .45rem .7rem 1.2rem; } .scale-card { padding: .8rem; border-radius: 1rem; } .pair { gap: .5rem; } .object-card { min-height: 10rem; padding: .65rem .45rem; border-radius: .8rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
