:root { font-family: 'Segoe UI', system-ui, sans-serif; color: #202338; background: #f6f2e9; --blue: #5437a1; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: radial-gradient(ellipse at 5% 0%, #e6dff8, transparent 45%); }
a { color: var(--blue); text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
:is(button, a, select, input):focus-visible { outline: 3px solid #0d8677; outline-offset: 4px; }
button:disabled { opacity: .45; cursor: default; }
.site-header { display: flex; justify-content: space-between; gap: 16px; padding: 24px max(24px, calc((100% - 1600px) / 2)); border-bottom: 1px solid #d9d2e3; }
.brand { color: #24243e; text-decoration: none; }.brand strong { color: var(--blue); }
main { width: min(1600px, calc(100% - 64px)); margin: auto; padding: 38px 0 50px; }
.intro { max-width: 900px; margin-bottom: 30px; }
.eyebrow { color: #66439a; font-size: .88rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 10px 0 14px; font-size: clamp(2.7rem, 4.8vw, 5rem); line-height: 1.05; letter-spacing: -.05em; }h1 em { color: var(--blue); font-style: normal; }
.intro > p:last-child, .how-to p { font-size: 1.18rem; line-height: 1.65; color: #535367; }
.laboratory { border: 1px solid #d4c9e7; border-radius: 26px; padding: clamp(20px, 2.5vw, 40px); background: #fffdf9; box-shadow: 0 18px 50px #35234c14; }
.toolbar, .progress-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.toolbar label { display: flex; align-items: center; gap: 12px; font-weight: 700; }
select { min-width: 0; max-width: 320px; padding: 12px; border: 1px solid #c8bdd8; border-radius: 10px; background: #f4effa; color: #39205c; }
.progress-row { margin: 24px 0 9px; font-weight: 700; color: #645772; }
progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 8px; overflow: hidden; accent-color: #6343a0; background: #e7deee; }progress::-webkit-progress-bar { background: #e7deee; }progress::-webkit-progress-value { background: #6343a0; }progress::-moz-progress-bar { background: #6343a0; }
.mission-heading { margin: 26px 0; }.mission-heading h2 { margin: 0; font-size: 2rem; letter-spacing: -.03em; }.mission-heading p { font-size: 1.13rem; line-height: 1.5; color: #666075; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
h3 { font-size: 1.25rem; margin: 0 0 20px; }
.experiment, .clue-panel, .answer-panel { min-width: 0; border-radius: 18px; padding: 24px; }
.experiment { grid-row: span 2; background: linear-gradient(150deg, #ede7f7, #e3f2ed); border: 1px solid #d8d2e5; }
.object-picker { display: flex; gap: 10px; flex-wrap: wrap; }.object-choice { padding: 9px; border: 2px solid transparent; border-radius: 10px; background: #ffffff99; }.object-choice[aria-pressed=true] { border-color: #7254c9; background: #fff; }
.object-token { display: inline-block; color: var(--object-color); font-weight: 800; white-space: nowrap; }
.scale { position: relative; width: 88%; height: 240px; margin: 40px auto 0; }
.scale-beam { position: absolute; top: 40px; left: 8%; width: 84%; height: 12px; background: #66577c; border-radius: 8px; transform: rotate(var(--tilt)); transition: transform .5s ease; z-index: 1; }
.scale-pillar { position: absolute; top: 36px; bottom: 25px; left: calc(50% - 11px); width: 22px; background: linear-gradient(90deg, #6b547f, #a38bb6); border-radius: 9px 9px 0 0; }.scale-pillar::before { content: ''; position: absolute; top: -5px; left: -4px; width: 30px; height: 30px; border-radius: 50%; background: #d2b35f; border: 5px solid #f7e3a2; }
.scale-base { position: absolute; bottom: 16px; left: 26%; width: 48%; height: 20px; border-radius: 18px 18px 5px 5px; background: #66577c; }
.pan { position: absolute; top: 0; width: 42%; height: 128px; transform-origin: 50% 0; transform: rotate(var(--counter-tilt)); transition: transform .5s ease; border-bottom: 9px solid #8e74a3; border-radius: 0 0 40px 40px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px; }
.pan::before { content: ''; position: absolute; top: 8px; left: 50%; width: 2px; height: 44px; background: #a18db2; }.pan-left { left: -16%; }.pan-right { right: -16%; }.pan > span { font-size: clamp(1rem, 1.8vw, 1.55rem); font-weight: 800; }
.scale-reading { min-height: 3.2em; text-align: center; color: #345a52; font-size: 1.13rem; font-weight: 700; line-height: 1.5; }
.small-label { text-align: center; color: #645c70; }.weight-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }.weight-controls button { min-height: 58px; padding: 12px 18px; border: 1px solid #baa979; border-radius: 12px 12px 8px 8px; color: #5a4313; background: linear-gradient(#f9ebbb, #e9ce7f); font-weight: 800; font-size: 1.15rem; }.weight-controls button:hover { background: #ffe5a0; }
.weight-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.primary, .secondary, .hint-button { min-height: 52px; padding: 13px 18px; border-radius: 11px; font-weight: 750; border: 1px solid #c6b7da; font-size: 1.05rem; }.primary { background: #5a389d; color: white; border-color: #5a389d; }.primary:hover { background: #45257f; }.secondary { background: #fff; color: #523c6d; }.secondary:hover:not(:disabled) { background: #eee5f8; }.hint-button { width: 100%; background: #f3edf9; color: #60408a; text-align: left; }
.clue-panel { background: #f6f3ed; border: 1px solid #e4ddd0; }.clues { padding-left: 22px; margin: 0 0 20px; }.clues li { padding: 14px 4px; font-size: 1.15rem; line-height: 1.7; border-bottom: 1px solid #dfd8cc; }.clue-side { display: inline; }.clues strong { display: inline-block; padding: 0 10px; color: #746287; font-size: 1.3rem; }.hint-text { color: #62427b; line-height: 1.65; font-size: 1.08rem; }
.answer-panel { margin: 0; border: 1px solid #d4c6e2; background: #fcfaff; }.answer-fields { display: flex; flex-wrap: wrap; gap: 16px; }.answer-fields label { flex: 1 1 120px; min-width: 0; }.input-unit { display: flex; align-items: center; gap: 8px; margin-top: 10px; }.input-unit input { width: 100%; min-width: 0; padding: 12px; font-size: 1.25rem; border: 1px solid #b5a5c9; border-radius: 9px; background: #fff; }.input-unit input[aria-invalid=true] { border-color: #b54e35; }.feedback { font-size: 1.1rem; line-height: 1.5; }.feedback[data-tone=success] { color: #17674a; }.feedback[data-tone=error] { color: #a53c2d; }.answer-actions .primary { width: 100%; }
.how-to { max-width: 1000px; margin: 36px auto; }.how-to h2 { font-size: 1.6rem; }.finished { text-align: center; max-width: 760px; margin: 60px auto; }.finished h2 { font-size: 3rem; }.finished p { font-size: 1.25rem; line-height: 1.6; }.medal { font-size: 5rem; color: #947024; }
.games-carousel { --ink: #f8f5ff; --mint: #7fffe0; --violet: #ba9cff; --muted: #c5bdd8; --line: #d9d4c7; margin: 35px auto 0; }.carousel-catalog { color: var(--blue); }.carousel-status { color: #535367; }
.laboratory:is(:fullscreen, .is-expanded) { width: 100%; height: 100%; overflow: auto; border: 0; border-radius: 0; padding: clamp(20px, 3vw, 48px); background: #fffdf9; }.laboratory:is(:fullscreen, .is-expanded) > * { max-width: 1500px; margin-inline: auto; }.laboratory.is-expanded { position: fixed; inset: 0; z-index: 20; height: 100dvh; }body:has(.laboratory.is-expanded) { overflow: hidden; }
@media (max-width: 900px) { main { width: calc(100% - 28px); padding-top: 24px; }.workspace { grid-template-columns: 1fr; }.experiment { grid-row: auto; }.toolbar { align-items: flex-start; }.toolbar label { display: block; flex: 1; min-width: 0; }.toolbar select { display: block; width: 100%; margin-top: 8px; }.progress-row { font-size: .9rem; }.scale { max-width: 480px; }.site-header { padding: 20px 16px; font-size: .9rem; } }
@media (max-width: 450px) { .laboratory { padding: 16px; }.experiment, .clue-panel, .answer-panel { padding: 16px; }.toolbar { gap: 8px; }.toolbar button { font-size: .9rem; padding: 10px; }.mission-heading h2 { font-size: 1.7rem; }.scale { width: 90%; height: 220px; }.pan > span { font-size: .95rem; }.progress-row { align-items: flex-start; flex-direction: column; gap: 5px; } }
@media (prefers-reduced-motion: reduce) { .scale-beam, .pan { transition: none; } }

.balance-page .instagram-prompt::backdrop {
    background:
        linear-gradient(135deg, #eee5f6c9, #f6f2e9d9 50%, #e0f0e6c9),
        url('./preview.svg') left center / min(46vw, 640px) auto no-repeat,
        url('./preview.svg') right center / min(46vw, 640px) auto no-repeat,
        #f6f2e9;
    backdrop-filter: blur(4px);
}
.balance-page .instagram-prompt {
    --ink: #30243f;
    --mint: #356858;
    --violet: #7254c9;
    color-scheme: light;
    border: 1px solid #cbbbdc;
    background: radial-gradient(ellipse at top right, #e5dcf3, transparent 60%), linear-gradient(145deg, #fffdf9, #f5f1e9 65%, #e5f0e8);
    box-shadow: 0 24px 80px #51366c38;
    scrollbar-color: #ad95c8 #eee7f3;
}
.balance-page .instagram-prompt h2 span { color: #7254a3; }
.balance-page .instagram-prompt #instagram-description { color: #655c71; }
.balance-page .instagram-prompt__brand .brand-mark { color: #68469a; background: #eee3f6; border-color: #c9b5df; }
.balance-page .reel-card { background: #fffdf9; border-color: #d6c8e0; }
.balance-page .reel-card:hover { background: #f3edf8; border-color: #9975be; }
.balance-page .reel-carousel__track { scrollbar-color: #ad95c8 #eee7f3; }
.balance-page .instagram-prompt__icon { color: #62477e; background: #eee5f5; border-color: #c3afd8; }
.balance-page .instagram-prompt__icon:not([aria-disabled="true"]):hover { background: #dfd1ed; }
.balance-page .instagram-prompt__dismiss .instagram-prompt__icon { color: #fff; background: linear-gradient(145deg, #8b6aaf, #614082); border-color: #bda1d4; box-shadow: 0 4px 16px #72548c33; }
.balance-page .instagram-prompt__dismiss .instagram-prompt__icon:hover { color: #fff; background: #51306e; }
.balance-page .instagram-prompt__actions .primary-button { color: #fff; border-color: #7953ae; background: linear-gradient(120deg, #825bb9, #5c3b91); box-shadow: 0 8px 24px #7254a33b; }
.balance-page .instagram-prompt__actions .primary-button:hover { background: #593786; box-shadow: 0 10px 28px #7254a355; }
.balance-page .instagram-prompt__actions .console-button { color: #654d22; border-color: #d3bb81; background: linear-gradient(#faf0d3, #eddfb8); }
.balance-page .instagram-prompt__actions .console-button:hover { background: #efdb9e; border-color: #b6974e; }
