:root { color-scheme: light; font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; color: #293d39; background: #f7f0df; font-synthesis: none; }
* { box-sizing: border-box; } body { margin: 0; min-width: 320px; background: radial-gradient(circle at 85% 0, #fff9e9 0 16%, transparent 43%), #f7f0df; } button { font: inherit; } button:focus-visible { outline: 4px solid #efb54b; outline-offset: 3px; }
.app { width: min(100% - 32px, 1120px); margin: 0 auto; padding: 22px 0 46px; }.topbar { min-height: 66px; margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }.brand { border: 0; padding: 0; display: inline-flex; align-items: center; gap: 12px; background: transparent; color: inherit; text-align: left; cursor: pointer; }.brand-mark { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; gap: 2px; border-radius: 17px; background: #439071; color: white; box-shadow: 0 6px 0 #2f6d55; transform: rotate(-2deg); }.brand-mark::before { content: ""; position: absolute; width: 34px; height: 12px; margin-top: -61px; border-radius: 50% 50% 4px 4px; background: #df715c; }.brand-mark b,.brand-mark i { font-style: normal; font-size: 18px; }.brand strong,.brand small { display: block; }.brand strong { font-size: 18px; }.brand small { margin-top: 2px; color: #6e7b75; font-size: 12px; }.top-actions { display: flex; gap: 10px; }.sound-button,.quiet-button,.hint-button { min-height: 44px; padding: 0 16px; border: 1px solid #ded3bb; border-radius: 14px; color: #53655f; background: rgba(255,255,255,.72); font-weight: 800; cursor: pointer; }.sound-button { display: flex; align-items: center; gap: 8px; }.sound-button:hover,.quiet-button:hover,.hint-button:hover { background: white; transform: translateY(-1px); }
.hero { min-height: 407px; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; border: 1px solid #ded2b8; border-radius: 34px; background: #fffaf0; box-shadow: 0 18px 60px rgba(73,65,44,.11); }.hero-copy { z-index: 2; padding: 58px 30px 54px 58px; }.eyebrow { margin: 0 0 12px; color: #c35f4c; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; } h1,h2,p { margin-top: 0; }.hero h1 { max-width: 530px; margin-bottom: 18px; color: #2d4942; font-family: Georgia,"Times New Roman",serif; font-size: clamp(43px,5.1vw,67px); line-height: .98; letter-spacing: -.035em; }.hero-copy>p:not(.eyebrow) { max-width: 505px; color: #65766f; font-size: 18px; line-height: 1.58; }.primary-button { min-height: 54px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 16px; color: white; background: #dc705b; box-shadow: 0 6px 0 #b65344; font-weight: 900; cursor: pointer; transition: .15s ease; }.primary-button:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #b65344; }.primary-button:active { transform: translateY(4px); box-shadow: 0 2px 0 #b65344; }
.hero-scene { position: relative; min-height: 407px; overflow: hidden; background: linear-gradient(#bfe4dc 0 73%,#96c98b 73%); }.awning { height: 82px; display: flex; }.awning i { flex: 1; border-radius: 0 0 16px 16px; background: #e06e5a; box-shadow: inset 0 -7px rgba(0,0,0,.06); }.awning i:nth-child(even) { background: #fff2d5; }.market-sign { width: 232px; margin: 28px auto 0; padding: 14px; position: relative; z-index: 2; border: 6px solid #fff5dd; border-radius: 16px; background: #e8ad62; text-align: center; box-shadow: 0 8px 0 rgba(76,82,55,.15); }.market-sign small,.market-sign strong { display: block; }.market-sign small { color: #77502d; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }.market-sign strong { margin-top: 7px; color: #2e4a43; font-size: 37px; }.market-sign i { color: #fff9e8; font-style: normal; }.hero-crates { position: absolute; z-index: 3; inset: auto 24px 51px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }.hero-crates span { min-height: 88px; padding: 13px; display: flex; align-content: center; justify-content: center; flex-wrap: wrap; border: 7px solid #f8dfae; border-radius: 8px; background: #c98b55; font-size: 27px; line-height: 1.1; }.hero-crates b { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #fff7df; color: #6a796d; }.counter { position: absolute; inset: auto 0 0; height: 70px; background: #7b5b45; border-top: 10px solid #9d7657; }
.how { padding: 58px 18px 32px; text-align: center; }.how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }.how-grid article { padding: 24px 20px; border-radius: 22px; background: rgba(255,255,255,.55); }.how-grid span { min-width: 48px; height: 44px; padding: 0 8px; margin: 0 auto 12px; display: inline-grid; place-items: center; border-radius: 22px; color: #694e2c; background: #f0c173; font-size: 17px; font-weight: 900; }.how-grid strong { display: block; font-size: 17px; }.how-grid p { margin: 7px 0 0; color: #708078; font-size: 14px; line-height: 1.45; }
.levels { padding: 44px; border-radius: 30px; background: #e9eee4; }.section-heading { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }.section-heading h2 { margin-bottom: 0; color: #304b44; font-family: Georgia,serif; font-size: 36px; }.section-heading>p { max-width: 370px; margin-bottom: 3px; color: #697a73; line-height: 1.5; }.level-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }.level-card { min-width: 0; min-height: 340px; padding: 20px; position: relative; display: flex; flex-direction: column; align-items: stretch; overflow: hidden; border: 1px solid #d7d7c5; border-radius: 24px; color: #314741; background: #fffdf8; text-align: left; cursor: pointer; transition: .18s ease; }.level-card:hover { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(49,71,65,.13); }.level-number { width: 34px; height: 34px; position: absolute; top: 16px; left: 16px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--accent); font-weight: 900; }.level-preview { min-height: 126px; padding: 34px 0 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }.level-preview>i { color: var(--accent); font-size: 24px; font-style: normal; font-weight: 900; }.preview-card,.preview-group { width: 78px; min-height: 77px; display: grid; place-items: center; border: 5px solid white; border-radius: 17px; color: #304b44; background: color-mix(in srgb,var(--accent) 20%,#fff3d5); box-shadow: 0 6px 0 #d7d0bc; font-size: 32px; font-weight: 900; }.preview-card.big { font-size: 42px; }.preview-group { padding: 8px; display: flex; align-content: center; justify-content: center; flex-wrap: wrap; font-size: 18px; line-height: 1; }.level-copy small,.level-copy strong,.level-copy em { display: block; }.level-copy small { color: var(--accent); font-weight: 900; }.level-copy strong { margin-top: 7px; font-family: Georgia,serif; font-size: 25px; line-height: 1.05; }.level-copy em { margin-top: 10px; color: #74817c; font-size: 14px; font-style: normal; line-height: 1.45; }.level-status { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; color: #718078; font-size: 13px; font-weight: 800; }.level-status b { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--accent); font-size: 19px; }.mini-stars { color: #e5a73a; letter-spacing: 2px; }.adult-note { margin-top: 24px; padding: 22px 28px; display: flex; align-items: center; gap: 16px; border: 1px dashed #bdc9af; border-radius: 20px; color: #607269; background: rgba(246,250,237,.7); }.adult-note>span { font-size: 30px; }.adult-note p { margin: 0; line-height: 1.5; }.adult-note strong { display: block; color: #395249; }
.game-shell { padding: 34px 40px 40px; border: 1px solid #ded3bc; border-radius: 30px; background: #fffaf0; box-shadow: 0 18px 55px rgba(75,67,45,.1); }.game-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }.game-head h1 { margin: 0; color: #2e4a43; font-family: Georgia,serif; font-size: clamp(30px,4vw,46px); line-height: 1.05; }.round-count { min-width: 80px; display: flex; align-items: baseline; justify-content: flex-end; color: #728079; }.round-count strong { color: var(--level-accent); font-size: 34px; }.round-count span { font-weight: 800; }.progress-track { margin: 24px 0 28px; display: grid; grid-template-columns: repeat(10,1fr); gap: 7px; }.progress-track i { height: 7px; border-radius: 10px; background: #e6dfcd; }.progress-track i.done { background: #69a386; }.progress-track i.current { background: var(--level-accent); box-shadow: 0 0 0 3px color-mix(in srgb,var(--level-accent) 20%,transparent); }
.comparison-stage { min-height: 414px; padding: 69px 34px 83px; position: relative; overflow: hidden; border: 6px solid white; border-radius: 26px; background: linear-gradient(#c5e8df 0 72%,#9acb8e 72% 84%,#d9bd7e 84%); box-shadow: inset 0 0 0 1px #b6d7cf,0 8px 20px rgba(66,87,76,.1); }.stage-sky { position: absolute; inset: 0; pointer-events: none; }.sun { width: 50px; height: 50px; position: absolute; right: 29px; top: 23px; display: grid; place-items: center; border-radius: 50%; color: #e99536; background: #ffd578; font-size: 20px; }.cloud { width: 82px; height: 22px; position: absolute; top: 31px; left: 39px; border-radius: 20px; background: rgba(255,255,255,.75); }.cloud::before,.cloud::after { content: ""; position: absolute; bottom: 0; border-radius: 50%; background: inherit; }.cloud::before { width: 35px; height: 35px; left: 12px; }.cloud::after { width: 27px; height: 27px; right: 9px; }.comparison-cards { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0,1fr) 72px minmax(0,1fr); align-items: center; gap: 17px; }.compare-card { min-width: 0; min-height: 229px; padding: 23px 18px 17px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 7px solid #fff6df; border-radius: 23px 23px 12px 12px; color: #2f4942; background: #e6a960; box-shadow: 0 8px 0 rgba(84,67,42,.19); }.compare-card.right { background: #f0cf84; }.compare-card:is(button) { cursor: pointer; transition: .15s ease; }.compare-card:is(button):hover:not(:disabled) { transform: translateY(-5px); box-shadow: 0 13px 0 rgba(84,67,42,.19); }.compare-card.wrong { border-color: #f4c4b8; background: #e5947c; opacity: .72; }.compare-card.correct { border-color: #dff4d7; box-shadow: 0 0 0 7px rgba(100,167,127,.25),0 8px 0 rgba(84,67,42,.19); }.basket-handle { width: 57%; height: 60px; position: absolute; top: -35px; border: 9px solid #9c6c4a; border-bottom: 0; border-radius: 70px 70px 0 0; opacity: .9; }.compare-content { width: 100%; min-height: 164px; display: flex; flex-direction: column; align-items: center; justify-content: center; }.big-number { width: 122px; height: 135px; display: grid; place-items: center; border: 7px solid #5c736b; border-radius: 53px 53px 17px 17px; color: #29443d; background: #fffdf1; font-family: Georgia,serif; font-size: 83px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; }.compare-content>small { margin-top: 9px; color: #795d38; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }.side-label { position: absolute; bottom: -28px; color: #fffce9; font-size: 11px; font-weight: 900; text-transform: uppercase; }.object-grid { min-height: 132px; display: grid; grid-template-columns: repeat(5,1fr); align-content: center; justify-content: center; gap: 6px; }.object-grid i { display: grid; place-items: center; font-size: clamp(29px,3.3vw,43px); line-height: 1; font-style: normal; filter: drop-shadow(0 3px 0 rgba(77,62,37,.15)); animation-delay: calc(var(--i) * 40ms); }.middle-sign { width: 66px; height: 66px; display: grid; place-items: center; border: 5px solid white; border-radius: 50%; color: var(--level-accent); background: #fffaf0; box-shadow: 0 6px 0 rgba(69,77,57,.16); font-family: Georgia,serif; font-size: 42px; font-weight: 900; }.balance { height: 79px; position: absolute; z-index: 2; left: 17%; right: 17%; bottom: 26px; }.beam { height: 12px; position: absolute; inset: 0 0 auto; border-radius: 12px; background: #6c7d73; transform-origin: center; transition: transform .35s ease; }.left-heavy .beam { transform: rotate(-3deg); }.right-heavy .beam { transform: rotate(3deg); }.beam i { width: 6px; height: 74px; position: absolute; top: -61px; border-radius: 4px; background: #6c7d73; }.beam i:first-child { left: 14%; }.beam i:last-child { right: 14%; }.balance>b { width: 18px; height: 61px; position: absolute; left: 50%; top: 4px; transform: translateX(-50%); background: #6c7d73; }.balance>em { width: 97px; height: 15px; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); border-radius: 15px 15px 4px 4px; background: #6c7d73; }
.choose-instruction,.relation-panel>p { margin: 22px 0 12px; color: #566a63; text-align: center; font-weight: 900; }.relation-buttons { display: grid; grid-template-columns: repeat(3,minmax(0,130px)); justify-content: center; gap: 12px; }.relation-button { min-height: 85px; position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid #dfd6c4; border-radius: 20px; color: #314a43; background: white; box-shadow: 0 5px 0 #d7cfbd; cursor: pointer; transition: .12s ease; }.relation-button:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--level-accent); box-shadow: 0 8px 0 #d7cfbd; }.relation-button strong { font-family: Georgia,serif; font-size: 42px; }.relation-button span { color: #65756f; font-size: 13px; font-weight: 800; }.relation-button small { width: 21px; height: 21px; position: absolute; right: 8px; bottom: 6px; display: grid; place-items: center; border-radius: 7px; color: #8b8c83; background: #f2eee4; font-size: 11px; }.relation-button.wrong { border-color: #db7867; color: #b6584a; background: #fff0eb; }.relation-button.hint-target { border-color: #e7af44; background: #fff8da; animation: hint-glow 1.15s infinite; }.game-tools { margin-top: 18px; display: flex; justify-content: center; }.hint-button:disabled { opacity: .5; cursor: default; }.feedback-card { min-height: 88px; margin-top: 22px; padding: 15px 16px 15px 19px; display: flex; align-items: center; gap: 14px; border: 1px solid #d6e4d2; border-radius: 20px; background: #eef5ec; }.feedback-icon { width: 49px; height: 49px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 16px; background: white; font-size: 24px; }.feedback-card p { margin: 0; }.feedback-card strong,.feedback-card small { display: block; }.feedback-card small { margin-top: 4px; color: #6b7b74; }.feedback-card.correct { border-color: #b7dbc5; background: #e3f3e9; }.feedback-card.wrong { border-color: #edc9bb; background: #fff0e9; }.feedback-card.hint { border-color: #ead491; background: #fff7d9; }.feedback-card .compact { min-height: 48px; margin-left: auto; }
.result-wrap { min-height: 620px; padding: 30px; display: grid; place-items: center; border-radius: 30px; background: linear-gradient(160deg,#c7e8df,#f9e7b8); box-shadow: 0 18px 55px rgba(75,67,45,.1); }.result-card { width: min(100%,650px); padding: 42px; border-radius: 28px; background: rgba(255,253,246,.94); text-align: center; box-shadow: 0 18px 45px rgba(66,81,72,.14); }.result-scene { display: flex; align-items: center; justify-content: center; gap: 16px; }.result-scene span { width: 73px; height: 84px; display: grid; place-items: center; border: 6px solid #60766d; border-radius: 31px 31px 10px 10px; color: #2d4942; background: #fffbed; font-family: Georgia,serif; font-size: 45px; font-weight: 900; }.result-scene i { color: #dd705a; font-size: 48px; font-style: normal; font-weight: 900; }.result-card h1 { margin-bottom: 12px; color: #2e4a43; font-family: Georgia,serif; font-size: 47px; }.result-card>p:not(.eyebrow) { color: #687a72; }.result-stars { margin: 16px 0; color: #e9a936; font-size: 48px; letter-spacing: 8px; text-shadow: 0 3px 0 #c58624; }.result-stats { margin: 24px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }.result-stats span { padding: 15px 8px; border-radius: 17px; background: #f1eee3; }.result-stats strong,.result-stats small { display: block; }.result-stats strong { color: #3f826a; font-size: 28px; }.result-stats small { color: #78847e; }.result-actions { display: flex; justify-content: center; gap: 12px; }.quiet-button.large { min-height: 54px; }
@keyframes hint-glow { 50% { box-shadow: 0 0 0 7px rgba(234,181,62,.22),0 5px 0 #d7cfbd; } }
@media (max-width:900px) { .app { width: min(100% - 24px,1120px); }.hero { grid-template-columns: 1fr; }.hero-copy { padding: 45px 42px; }.hero-scene { min-height: 345px; }.level-grid { grid-template-columns: 1fr; }.level-card { min-height: 225px; display: grid; grid-template-columns: 190px 1fr; grid-template-rows: 1fr auto; column-gap: 18px; }.level-preview { grid-row: 1/3; }.level-copy { align-self: center; }.level-status { align-self: end; }.section-heading { align-items: start; }.object-grid i { font-size: 34px; } }
@media (max-width:650px) { .app { width: min(100% - 16px,1120px); padding-top: 10px; }.topbar { margin-bottom: 12px; }.brand small,.sound-button span:last-child,.quiet-button { display: none; }.sound-button { width: 45px; padding: 0; justify-content: center; }.hero { border-radius: 24px; }.hero-copy { padding: 34px 24px 30px; }.hero h1 { font-size: 42px; }.hero-copy>p:not(.eyebrow) { font-size: 16px; }.hero-scene { min-height: 300px; }.market-sign { margin-top: 19px; }.hero-crates { bottom: 45px; }.how { padding: 42px 0 24px; }.how-grid { grid-template-columns: 1fr; }.how-grid article { display: grid; grid-template-columns: 65px 1fr; text-align: left; }.how-grid span { grid-row: 1/3; margin: 0; }.levels { padding: 28px 16px; border-radius: 24px; }.section-heading { display: block; }.section-heading h2 { font-size: 31px; }.section-heading>p { margin-top: 12px; }.level-card { min-height: 320px; display: flex; }.level-preview { min-height: 127px; }.game-shell { padding: 24px 12px 28px; border-radius: 24px; }.game-head { align-items: flex-start; }.game-head h1 { font-size: 30px; }.round-count { min-width: 57px; }.round-count strong { font-size: 27px; }.progress-track { margin: 18px 0 22px; gap: 4px; }.comparison-stage { min-height: 323px; padding: 61px 8px 71px; border-width: 4px; }.comparison-cards { grid-template-columns: minmax(0,1fr) 44px minmax(0,1fr); gap: 5px; }.compare-card { min-height: 181px; padding: 14px 6px 10px; border-width: 5px; }.basket-handle { height: 43px; top: -26px; border-width: 7px; border-bottom: 0; }.compare-content { min-height: 137px; }.big-number { width: 83px; height: 102px; border-width: 5px; font-size: 58px; }.middle-sign { width: 43px; height: 43px; border-width: 4px; font-size: 29px; }.object-grid { min-height: 112px; gap: 2px; }.object-grid i { font-size: clamp(22px,7vw,30px); }.balance { left: 8%; right: 8%; bottom: 18px; }.choose-instruction,.relation-panel>p { margin-top: 18px; }.relation-buttons { grid-template-columns: repeat(3,1fr); gap: 7px; }.relation-button { min-height: 74px; border-radius: 15px; }.relation-button strong { font-size: 34px; }.relation-button span { display: none; }.feedback-card { align-items: flex-start; }.feedback-card.correct { flex-wrap: wrap; }.feedback-card.correct p { flex: 1; }.feedback-card .compact { width: 100%; margin: 12px 0 0; }.result-wrap { min-height: 560px; padding: 14px; border-radius: 24px; }.result-card { padding: 30px 16px; }.result-card h1 { font-size: 39px; }.result-stars { font-size: 40px; }.result-stats small { font-size: 11px; }.result-actions { flex-direction: column; }.result-actions button { width: 100%; }.quiet-button.large { display: inline-flex; } }
@media (max-width:370px) { .hero h1 { font-size: 37px; }.game-head h1 { font-size: 27px; }.object-grid i { font-size: 21px; }.big-number { width: 72px; }.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; } }

/* Центрируем неполные ряды и удерживаем пять предметов внутри узкой корзинки. */
.object-grid { width: 100%; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; }
.object-grid i { flex: 0 0 calc(20% - 6px); }
@media (max-width:900px) { .object-grid i { font-size: 34px; } }
@media (max-width:650px) { .object-grid i { flex-basis: calc(20% - 2px); font-size: clamp(18px,5.4vw,23px); } }
@media (max-width:370px) { .object-grid i { font-size: 18px; } }
