:root { color-scheme: light; font-family: "Trebuchet MS","Segoe UI",sans-serif; color: #294f52; background: #edf4eb; font-synthesis: none; }
* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: radial-gradient(circle at 8% 3%,rgba(255,255,255,.96),transparent 18%),radial-gradient(circle at 94% 12%,rgba(222,239,220,.84),transparent 23%),#edf4eb; }
button { font: inherit; }
button:focus-visible { outline: 4px solid rgba(241,184,68,.52); outline-offset: 3px; }
.app { width: min(1120px, calc(100% - 32px)); min-height: 100vh; margin: 0 auto; padding: 18px 0 44px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.brand,.sound-button,.quiet-button,.hint-button,.next-level-button { border: 0; cursor: pointer; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0; color: #294f52; text-align: left; background: transparent; }
.brand-mark { display: grid; width: 61px; height: 50px; place-items: center; overflow: hidden; }
.brand-mark .mini-scale { transform: scale(.3); }
.brand strong,.brand small { display: block; }
.brand strong { font-size: 18px; line-height: 1.05; }
.brand small { margin-top: 3px; color: #68817b; font-size: 12px; font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.sound-button,.quiet-button,.hint-button,.next-level-button { min-height: 46px; padding: 0 17px; border: 2px solid #ccded5; border-radius: 16px; color: #385f5d; font-weight: 800; background: rgba(255,255,255,.86); box-shadow: 0 6px 14px rgba(43,82,75,.06); }
.sound-button { display: flex; align-items: center; gap: 8px; }
.quiet-button:hover,.sound-button:hover,.hint-button:hover:not(:disabled),.next-level-button:hover { border-color: #91b8ac; transform: translateY(-1px); }
.quiet-button.large { min-height: 54px; }

.eyebrow { margin: 0 0 10px; color: #43847a; font-size: 13px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
h1,h2,p { margin-top: 0; }
h1,h2 { color: #294f52; line-height: 1.07; letter-spacing: -.035em; }
.primary-button { min-height: 56px; padding: 0 24px; border: 0; border-radius: 18px; color: #fff; font: 900 17px/1 "Trebuchet MS","Segoe UI",sans-serif; cursor: pointer; background: #df735d; box-shadow: 0 10px 0 #b85743,0 16px 24px rgba(168,73,51,.2); transition: transform .15s,box-shadow .15s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 12px 0 #b85743,0 19px 26px rgba(168,73,51,.2); }
.primary-button:active { transform: translateY(7px); box-shadow: 0 3px 0 #b85743; }
.primary-button span { margin-left: 8px; }
.primary-button.compact { min-height: 47px; padding: 0 18px; font-size: 15px; box-shadow: 0 7px 0 #b85743; }

.mini-scale { --scale:#df735d; position: relative; display: block; width: 190px; height: 150px; transform-origin: center; }
.mini-scale > i { position: absolute; z-index: 2; top: 30px; left: 50%; width: 11px; height: 101px; border: 3px solid #294f52; border-radius: 7px 7px 0 0; background: var(--scale); transform: translateX(-50%); }
.mini-scale > b { position: absolute; z-index: 4; top: 36px; left: 20px; width: 150px; height: 10px; border: 3px solid #294f52; border-radius: 99px; background: #f0c35e; }
.mini-scale > b::after { position: absolute; top: -9px; left: 50%; width: 22px; height: 22px; border: 4px solid #294f52; border-radius: 50%; content: ""; background: #fff4c9; transform: translateX(-50%); }
.mini-scale > em { position: absolute; z-index: 3; top: 43px; display: grid; width: 72px; height: 67px; place-items: end center; border-right: 3px solid #294f52; border-left: 3px solid #294f52; font-style: normal; }
.mini-scale > em:nth-of-type(1) { left: 17px; }
.mini-scale > em:nth-of-type(2) { right: 17px; }
.mini-scale > em::after { position: absolute; right: -8px; bottom: -9px; left: -8px; height: 27px; border: 4px solid #294f52; border-radius: 6px 6px 28px 28px; content: ""; background: #fff1bd; }
.mini-scale small { position: relative; z-index: 2; display: grid; min-width: 58px; height: 29px; place-items: center; margin-bottom: 6px; padding: 0 4px; border: 3px solid #294f52; border-radius: 8px; color: #294f52; font-size: 10px; font-weight: 900; background: #fff; }
.mini-scale > strong { position: absolute; z-index: 4; bottom: 10px; left: 50%; width: 90px; height: 19px; border: 4px solid #294f52; border-radius: 10px 10px 3px 3px; background: var(--scale); transform: translateX(-50%); }

.hero { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; min-height: 448px; overflow: hidden; border: 1px solid rgba(255,255,255,.78); border-radius: 36px; background: #fbf3dd; box-shadow: 0 22px 52px rgba(39,83,73,.13); }
.hero-copy { position: relative; z-index: 8; align-self: center; padding: 48px 16px 48px 52px; }
.hero h1 { max-width: 590px; margin-bottom: 19px; font-size: clamp(36px,4.25vw,59px); }
.hero-copy > p:not(.eyebrow) { max-width: 555px; margin-bottom: 27px; color: #5c746d; font-size: 17px; line-height: 1.55; }
.hero-scene { position: relative; min-height: 448px; overflow: hidden; background: linear-gradient(180deg,#bfe2dc 0,#e9edd6 69%,#d4b476 70%,#a98254 100%); clip-path: ellipse(88% 84% at 100% 50%); }
.hero-clouds i,.scene-clouds i { position: absolute; display: block; width: 95px; height: 27px; border-radius: 40px; opacity: .67; background: #fff; }
.hero-clouds i::before,.hero-clouds i::after,.scene-clouds i::before,.scene-clouds i::after { position: absolute; bottom: 7px; border-radius: 50%; content: ""; background: inherit; }
.hero-clouds i::before,.scene-clouds i::before { left: 16px; width: 39px; height: 39px; }
.hero-clouds i::after,.scene-clouds i::after { right: 14px; width: 48px; height: 48px; }
.hero-clouds i:first-child { top: 13%; left: 9%; transform: scale(.55); }
.hero-clouds i:last-child { top: 7%; right: 9%; transform: scale(.42); }
.hero-scale { position: absolute; z-index: 5; top: 17%; left: 12%; transform: scale(1.58); transform-origin: top left; filter: drop-shadow(0 12px 7px rgba(40,74,64,.18)); }
.hero-equal { position: absolute; z-index: 7; top: 15%; right: 10%; display: grid; width: 64px; height: 64px; place-items: center; border: 5px solid #294f52; border-radius: 19px; color: #fff; font-size: 40px; font-weight: 900; background: #3f9475; box-shadow: 0 7px 0 #294f52; }
.hero-cards { position: absolute; z-index: 6; right: 5%; bottom: 9%; display: grid; gap: 7px; }
.hero-cards span { padding: 8px 13px; border: 3px solid #294f52; border-radius: 10px; color: #294f52; font-weight: 900; background: #fff9db; box-shadow: 0 4px 0 #294f52; transform: rotate(2deg); }
.hero-cards span:nth-child(2) { transform: rotate(-2deg) translateX(-19px); }
.hero-cards span:nth-child(3) { transform: rotate(1deg) translateX(-5px); }
.hero-ground { position: absolute; right: 0; bottom: 0; left: 0; height: 58px; background: repeating-linear-gradient(90deg,#bd965d 0 62px,#9e764a 63px 68px); }

.how,.levels { padding: 48px 14px 0; }
.how > .eyebrow { text-align: center; }
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.how-grid article { display: grid; grid-template-columns: 52px 1fr; gap: 3px 14px; padding: 19px; border: 1px solid #d8e6df; border-radius: 23px; background: rgba(255,255,255,.72); }
.how-grid article > span { grid-row: 1/3; display: grid; width: 52px; height: 52px; place-items: center; border-radius: 17px; color: #fff; font-size: 24px; font-weight: 900; background: #df735d; }
.how-grid article:nth-child(2) > span { background: #438f83; }
.how-grid article:nth-child(3) > span { background: #657bc0; }
.how-grid strong { align-self: end; font-size: 17px; }
.how-grid p { margin: 2px 0 0; color: #69817b; font-size: 13px; line-height: 1.4; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: clamp(29px,4vw,42px); }
.section-heading > p { max-width: 425px; margin: 0; color: #688079; line-height: 1.45; }
.level-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.level-card { position: relative; display: flex; min-width: 0; min-height: 330px; overflow: hidden; flex-direction: column; padding: 0; border: 2px solid rgba(255,255,255,.9); border-radius: 27px; color: #294f52; text-align: left; cursor: pointer; background: #fff; box-shadow: 0 12px 25px rgba(43,84,77,.09); transition: transform .18s,box-shadow .18s; }
.level-card:hover { transform: translateY(-5px); box-shadow: 0 19px 35px rgba(43,84,77,.15); }
.level-number { position: absolute; z-index: 6; top: 13px; left: 13px; display: grid; width: 38px; height: 38px; place-items: center; border: 3px solid rgba(255,255,255,.9); border-radius: 50%; color: #fff; font-weight: 900; background: var(--accent); }
.level-preview { position: relative; display: block; height: 145px; overflow: hidden; background: linear-gradient(180deg,#c5e4dd 0 72%,#b58e58 73%); }
.preview-scale { position: absolute; left: 24%; bottom: -9px; transform: scale(.72); transform-origin: bottom left; }
.preview-balance { position: absolute; z-index: 6; top: 16px; right: 15px; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #fff; font-size: 24px; background: var(--accent); }
.preview-blocks i { position: absolute; bottom: 10px; width: 27px; height: 19px; border: 3px solid #294f52; background: #f1c45c; }
.preview-blocks i:first-child { left: 7%; }
.preview-blocks i:nth-child(2) { left: 12%; bottom: 28px; }
.preview-blocks i:last-child { right: 5%; }
.level-copy { display: flex; flex: 1; flex-direction: column; padding: 19px 19px 10px; }
.level-copy small { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.level-copy strong { margin: 5px 0 7px; font-size: 22px; }
.level-copy em { color: #6b817c; font-size: 14px; font-style: normal; line-height: 1.42; }
.level-status { display: flex; min-height: 52px; align-items: center; justify-content: space-between; margin: 0 18px; border-top: 1px solid #e2ece7; color: #69817b; font-size: 13px; font-weight: 800; }
.level-status b { color: var(--accent); font-size: 24px; }
.mini-stars { color: #ecb63f; letter-spacing: 2px; }
.adult-note { display: flex; align-items: center; gap: 18px; margin: 34px 14px 0; padding: 20px 24px; border: 1px solid #d4e3d3; border-radius: 22px; background: rgba(233,244,226,.88); }
.adult-note > span { font-size: 34px; }
.adult-note p { margin: 0; color: #60776f; line-height: 1.5; }
.adult-note strong { display: block; color: #3d6b60; }

.game-shell { padding: 28px; border: 1px solid rgba(255,255,255,.9); border-radius: 34px; background: rgba(250,253,248,.84); box-shadow: 0 20px 48px rgba(39,83,73,.12); }
.game-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.game-head h1 { margin: 0; font-size: clamp(26px,3.7vw,43px); }
.round-count { display: flex; align-items: baseline; gap: 5px; color: #78918b; }
.round-count strong { color: var(--level-accent); font-size: 35px; }
.round-count span { font-weight: 900; }
.progress-track { display: grid; grid-template-columns: repeat(10,1fr); gap: 7px; margin: 20px 0; }
.progress-track i { height: 8px; border-radius: 999px; background: #dbe8e2; }
.progress-track i.done { background: var(--level-accent); }
.progress-track i.current { background: #efc35e; box-shadow: 0 0 0 3px rgba(239,195,94,.24); }
.balance-game { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(365px,.95fr); gap: 20px; }

.balance-scene { position: relative; min-height: 470px; overflow: hidden; border: 5px solid #fafbf2; border-radius: 29px; background: linear-gradient(180deg,#c4e3dd 0,#e9edda 76%,#c29b63 77%,#a47b4f 100%); box-shadow: inset 0 0 42px rgba(38,86,76,.1),0 9px 21px rgba(33,83,91,.12); }
.scene-clouds i:first-child { top: 11%; left: 7%; transform: scale(.57); }
.scene-clouds i:last-child { top: 6%; right: 6%; transform: scale(.4); }
.scale-frame { position: absolute; top: 35px; right: 3%; bottom: 51px; left: 3%; }
.scale-mast { position: absolute; z-index: 2; top: 63px; bottom: 34px; left: 50%; width: 20px; border: 5px solid #294f52; border-radius: 12px 12px 0 0; background: var(--scale-color); transform: translateX(-50%); }
.scale-mast > i { position: absolute; top: -22px; left: 50%; width: 35px; height: 35px; border: 6px solid #294f52; border-radius: 50%; background: #fff1bd; transform: translateX(-50%); }
.scale-beam { position: absolute; z-index: 5; top: 63px; left: 10%; width: 80%; height: 16px; border: 5px solid #294f52; border-radius: 99px; background: #efc35e; transform-origin: center; transition: transform .65s cubic-bezier(.22,.8,.27,1); }
.scale-beam > i,.scale-beam > b { position: absolute; top: 7px; width: 18px; height: 18px; border: 5px solid #294f52; border-radius: 50%; background: #fff1bd; }
.scale-beam > i { left: -7px; }
.scale-beam > b { right: -7px; }
.right-heavy .scale-beam { transform: rotate(5deg); }
.left-heavy .scale-beam { transform: rotate(-5deg); }
.balanced .scale-beam { transform: rotate(0); }
.pan { position: absolute; z-index: 4; top: 78px; width: 38%; height: 186px; transition: top .65s cubic-bezier(.22,.8,.27,1); }
.left-pan { left: 1%; }
.right-pan { right: 1%; }
.pan > i { position: absolute; top: 0; left: 50%; width: 78%; height: 88px; border-right: 4px solid #294f52; border-left: 4px solid #294f52; transform: translateX(-50%); }
.pan > i::before { position: absolute; top: -3px; left: 50%; width: 4px; height: 101px; content: ""; background: #294f52; transform: translateX(-50%) rotate(31deg); transform-origin: top; }
.pan > i::after { position: absolute; top: -3px; left: 50%; width: 4px; height: 101px; content: ""; background: #294f52; transform: translateX(-50%) rotate(-31deg); transform-origin: top; }
.pan > div { position: absolute; right: 0; bottom: 5px; left: 0; display: grid; min-height: 88px; place-items: center; padding: 12px 10px 18px; border: 6px solid #294f52; border-radius: 12px 12px 55px 55px; color: #294f52; text-align: center; background: #fff0b8; box-shadow: inset 0 -12px 0 rgba(208,155,54,.15); }
.pan small { color: #7b806c; font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.pan strong { max-width: 100%; font-size: clamp(22px,3.2vw,36px); white-space: nowrap; }
.right-pan > div { background: #e8f2e7; }
.right-heavy .left-pan { top: 55px; }
.right-heavy .right-pan { top: 103px; }
.left-heavy .left-pan { top: 103px; }
.left-heavy .right-pan { top: 55px; }
.balanced .left-pan,.balanced .right-pan { top: 78px; }
.balanced .pan > div { border-color: #3f9475; box-shadow: inset 0 -12px 0 rgba(63,148,117,.12),0 0 22px rgba(91,190,145,.32); }
.scale-base { position: absolute; z-index: 3; right: 25%; bottom: 0; left: 25%; height: 42px; border: 6px solid #294f52; border-radius: 20px 20px 7px 7px; background: var(--scale-color); }
.scale-base i,.scale-base b { position: absolute; top: 10px; width: 27%; height: 7px; border-radius: 99px; background: rgba(41,79,82,.34); }
.scale-base i { left: 8%; }
.scale-base b { right: 8%; }
.balance-status { position: absolute; z-index: 8; top: 14px; left: 15px; display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 2px solid rgba(255,255,255,.75); border-radius: 14px; color: #466963; background: rgba(255,255,255,.68); backdrop-filter: blur(5px); }
.balance-status span { font-size: 10px; font-weight: 900; }
.balance-status b { color: var(--level-accent); }
.scene-ground { position: absolute; right: 0; bottom: 0; left: 0; height: 53px; border-top: 5px solid rgba(41,79,82,.4); background: repeating-linear-gradient(90deg,#bd965d 0 62px,#9e764a 63px 68px); }

.card-shelf { display: flex; min-width: 0; min-height: 470px; flex-direction: column; padding: 22px; border: 2px solid #d8e8e2; border-radius: 29px; background: #fffdf5; }
.shelf-heading { margin-bottom: 11px; text-align: center; }
.shelf-heading small,.shelf-heading strong { display: block; }
.shelf-heading small { color: #718780; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.shelf-heading strong { margin-top: 3px; font-size: 20px; }
.equality-guide,.value-hint { min-height: 112px; margin-bottom: 10px; padding: 12px; border: 2px solid #d8e4db; border-radius: 17px; text-align: center; background: #f2f7ee; }
.equality-guide > span { display: inline-grid; min-width: 87px; height: 36px; place-items: center; border: 2px solid #bed1c8; border-radius: 9px; color: #667d77; font-size: 10px; font-weight: 900; background: #fff; }
.equality-guide > b { margin: 0 9px; color: var(--level-accent); font-size: 24px; }
.equality-guide p { margin: 7px 0 0; color: #70817b; font-size: 10px; line-height: 1.35; }
.value-hint { border-color: #e5d397; background: #fff8dd; }
.value-hint > small { display: block; margin-bottom: 7px; color: #7b7e68; font-size: 10px; font-weight: 900; }
.value-hint > div { display: flex; align-items: center; justify-content: center; gap: 9px; }
.value-hint span,.value-hint strong { display: grid; min-width: 67px; height: 38px; place-items: center; padding: 0 8px; border: 2px solid #b9cec5; border-radius: 9px; background: #fff; }
.value-hint i { color: var(--level-accent); font-size: 22px; font-style: normal; font-weight: 900; }
.value-hint strong { color: #fff; background: var(--level-accent); }
.value-hint p { margin: 6px 0 0; color: #727b72; font-size: 9px; }
.expression-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: auto; }
.expression-option { position: relative; min-height: 122px; overflow: hidden; border: 3px solid #d4d2b6; border-radius: 13px 22px 13px 22px; color: #294f52; cursor: pointer; background: #fff2c8; box-shadow: 0 6px 0 #d5c28e; transition: transform .14s,border-color .14s; }
.expression-option:hover:not(:disabled) { z-index: 2; border-color: var(--level-accent); transform: translateY(-3px) rotate(-1deg); }
.expression-option:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 #d5c28e; }
.expression-option > small { position: absolute; top: 8px; left: 10px; color: #8a856d; font-weight: 900; }
.expression-option > strong { position: relative; z-index: 3; display: block; margin-bottom: 7px; font-size: 26px; }
.expression-option > b { position: relative; z-index: 3; display: inline-block; padding: 4px 7px; border-radius: 7px; color: #fff; font-size: 8px; letter-spacing: .05em; text-transform: uppercase; background: #668b82; }
.expression-option > span { position: absolute; inset: 0; opacity: .28; }
.expression-option > span i { position: absolute; border: 2px dashed #73948a; border-radius: 50%; }
.expression-option > span i:first-child { top: 13px; right: 15px; width: 39px; height: 39px; }
.expression-option > span i:last-child { right: 31px; bottom: 11px; width: 22px; height: 22px; }
.expression-option.wrong { border-color: #e49382; background: #ffebe6; box-shadow: 0 6px 0 #dda99c; animation: shake .25s ease-in-out; }
.expression-option.correct { border-color: #55a883; color: #fff; background: #58ad87; box-shadow: 0 6px 0 #368263; }
.expression-option.selected:not(.correct):not(.wrong) { border-color: var(--level-accent); }
.expression-option.eliminated { opacity: .42; filter: grayscale(1); }
.expression-option.eliminated::after { position: absolute; z-index: 5; top: 49%; left: 8%; width: 84%; height: 6px; border: 2px solid #fff; border-radius: 99px; content: ""; background: #c45e4d; transform: rotate(-17deg); }
.expression-option > em { position: absolute; z-index: 6; right: 8px; bottom: 7px; padding: 3px 5px; border-radius: 6px; color: #fff; font-size: 8px; font-style: normal; font-weight: 900; background: #8d5550; }
.expression-option:disabled { cursor: default; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.game-tools { display: flex; justify-content: flex-end; margin: 14px 0; }
.hint-button:disabled { cursor: default; opacity: .48; }
.feedback-card { display: flex; min-height: 82px; align-items: center; gap: 14px; padding: 14px 18px; border: 2px solid #d5e5df; border-radius: 23px; background: #fff; }
.feedback-card.correct { border-color: #aedbc5; background: #eefaf2; }
.feedback-card.wrong { border-color: #edc3b8; background: #fff3ef; }
.feedback-card.hint { border-color: #ead89d; background: #fff9df; }
.feedback-icon { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 16px; font-size: 25px; background: #e8f4f1; }
.feedback-card p { flex: 1; margin: 0; }
.feedback-card strong,.feedback-card small { display: block; }
.feedback-card strong { margin-bottom: 3px; }
.feedback-card small { color: #6a817b; line-height: 1.35; }

.result-wrap { display: grid; min-height: 680px; padding: 40px 18px; place-items: center; overflow: hidden; border-radius: 35px; background: linear-gradient(180deg,#c3e2dc 0,#e9ecd8 73%,#b88f57 74%); box-shadow: 0 20px 46px rgba(31,77,83,.16); }
.result-card { width: min(660px,100%); padding: 32px 34px 35px; border: 4px solid rgba(255,255,255,.75); border-radius: 31px; text-align: center; background: #fffdf4; box-shadow: 0 21px 44px rgba(45,75,61,.2); }
.result-scale { position: relative; display: grid; height: 185px; margin: -8px auto 6px; place-items: center; }
.result-scale > .mini-scale { transform: scale(1.12); }
.result-scale > span { position: absolute; z-index: 8; top: 16px; right: 16%; display: grid; width: 45px; height: 45px; place-items: center; border: 4px solid #294f52; border-radius: 13px; color: #fff; font-size: 29px; font-weight: 900; background: #3f9475; }
.result-scale > i { position: absolute; z-index: 8; top: 13px; left: 17%; display: grid; width: 45px; height: 45px; place-items: center; border-radius: 50%; color: #fff2b2; font-size: 30px; font-style: normal; background: #efb94a; box-shadow: 0 0 0 4px #294f52; }
.result-card h1 { margin-bottom: 10px; font-size: clamp(35px,5vw,51px); }
.result-card > p:not(.eyebrow) { max-width: 490px; margin: 0 auto 10px; color: #647c76; line-height: 1.5; }
.result-stars { margin: 10px 0 18px; color: #efb83f; font-size: 42px; letter-spacing: 7px; }
.result-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 24px; }
.result-stats span { padding: 13px 8px; border-radius: 17px; background: #edf5ed; }
.result-stats strong,.result-stats small { display: block; }
.result-stats strong { color: #3f887a; font-size: 25px; }
.result-stats small { color: #6d837e; font-size: 11px; font-weight: 800; }
.result-actions { display: flex; justify-content: center; gap: 13px; }

@media (max-width: 1000px) {
  .hero-copy { padding-left: 38px; }
  .level-card { min-height: 344px; }
  .balance-game { grid-template-columns: minmax(0,.98fr) minmax(355px,1.02fr); }
  .game-shell { padding: 23px; }
  .pan strong { font-size: 27px; }
}

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 42px; }
  .hero-scene { min-height: 345px; clip-path: ellipse(78% 93% at 50% 100%); }
  .hero-scale { left: 28%; transform: scale(1.35); }
  .hero-equal { right: 18%; }
  .how-grid { grid-template-columns: 1fr; }
  .level-grid { grid-template-columns: 1fr; }
  .level-card { display: grid; min-height: 180px; grid-template-columns: 37% 1fr; }
  .level-preview { height: 100%; min-height: 180px; grid-row: 1/3; }
  .level-copy { padding: 23px 20px 5px; }
  .level-status { align-self: end; }
  .balance-game { grid-template-columns: 1fr; }
  .balance-scene { min-height: 465px; }
  .card-shelf { min-height: 470px; }
  .pan strong { font-size: 34px; }
}

@media (max-width: 700px) {
  .app { width: min(1120px,calc(100% - 20px)); padding-top: 10px; }
  .topbar { gap: 8px; margin-bottom: 12px; }
  .brand-mark { width: 49px; }
  .brand-mark .mini-scale { transform: scale(.25); }
  .brand strong { font-size: 15px; }
  .brand small { display: none; }
  .sound-button { width: 47px; padding: 0; justify-content: center; }
  .sound-button span:last-child { display: none; }
  .top-actions .quiet-button { padding: 0 12px; font-size: 13px; }
  .hero { border-radius: 26px; }
  .hero-copy { padding: 31px 23px 38px; }
  .hero h1 { font-size: clamp(34px,10vw,48px); }
  .hero-copy > p:not(.eyebrow) { font-size: 15px; }
  .hero-scene { min-height: 295px; }
  .hero-scale { left: 19%; transform: scale(1.16); }
  .hero-equal { top: 12%; right: 8%; transform: scale(.82); }
  .hero-cards { transform: scale(.78); transform-origin: bottom right; }
  .how,.levels { padding: 37px 2px 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 10px; }
  .adult-note { margin-right: 2px; margin-left: 2px; padding: 17px; }
  .game-shell { padding: 16px; border-radius: 25px; }
  .game-head { align-items: center; }
  .game-head .eyebrow { font-size: 10px; }
  .game-head h1 { font-size: 25px; }
  .round-count strong { font-size: 29px; }
  .balance-scene { min-height: 430px; border-width: 3px; }
  .scale-frame { top: 28px; }
  .pan { width: 40%; }
  .pan > div { min-height: 78px; border-width: 5px; }
  .pan strong { font-size: 28px; }
  .card-shelf { min-height: 455px; padding: 17px; }
  .feedback-card.correct { flex-wrap: wrap; }
  .feedback-card.correct p { min-width: calc(100% - 70px); }
  .feedback-card.correct .primary-button { width: 100%; flex-basis: 100%; margin-top: 8px; }
  .result-wrap { min-height: 610px; padding: 25px 10px; border-radius: 27px; }
  .result-card { padding: 25px 16px 28px; }
  .result-actions { flex-direction: column; }
  .result-actions > * { width: 100%; }
}

@media (max-width: 520px) {
  .level-card { display: flex; min-height: 320px; }
  .level-preview { width: 100%; min-height: 135px; height: 135px; }
  .level-status { align-self: auto; width: calc(100% - 36px); }
  .balance-scene { min-height: 400px; }
  .scale-frame { right: 0; left: 0; transform: scale(.9); transform-origin: center top; }
  .balance-status span { max-width: 130px; }
  .result-stats { gap: 5px; }
  .result-stats span { padding: 11px 4px; }
}

@media (max-width: 390px) {
  .app { width: calc(100% - 16px); }
  .top-actions .quiet-button { max-width: 90px; padding: 0 9px; font-size: 11px; }
  .primary-button { width: 100%; padding: 0 15px; }
  .hero-copy { padding-right: 18px; padding-left: 18px; }
  .hero h1 { font-size: 34px; }
  .hero-scene { min-height: 260px; }
  .hero-scale { left: 12%; transform: scale(.98); }
  .hero-cards { right: 0; transform: scale(.67); }
  .how-grid article { padding: 15px; }
  .game-shell { padding: 12px; }
  .game-head h1 { font-size: 21px; }
  .round-count strong { font-size: 25px; }
  .progress-track { gap: 4px; margin: 14px 0; }
  .balance-scene { min-height: 365px; }
  .scale-frame { top: 21px; transform: scale(.79); }
  .balance-status { top: 9px; left: 9px; padding: 6px 8px; }
  .card-shelf { min-height: 435px; padding: 12px; }
  .expression-option { min-height: 109px; }
  .expression-option > strong { font-size: 22px; }
  .feedback-card { padding: 12px; }
  .feedback-icon { width: 42px; height: 42px; }
  .result-stars { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
