:root {
  color-scheme: light;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  color: #273b38;
  background: #f6f0df;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 15% 0, #fff8e8 0 18%, transparent 45%), #f6f0df; }
button { font: inherit; }
button:focus-visible { outline: 4px solid #f0b94e; outline-offset: 3px; }
.app { width: min(100% - 32px, 1120px); margin: 0 auto; padding: 22px 0 46px; }
.topbar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.brand { border: 0; padding: 0; display: inline-flex; gap: 12px; align-items: center; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.brand-mark { width: 51px; height: 51px; position: relative; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: #4a9679; color: white; box-shadow: 0 6px 0 #34735c; transform: rotate(-2deg); }
.brand-mark::before { content: ""; position: absolute; top: -7px; width: 36px; height: 15px; border-radius: 50% 50% 4px 4px; background: #e97a63; }
.brand-mark b, .brand-mark i { font-size: 19px; font-style: normal; line-height: 1; }
.brand-mark i { margin-left: 2px; opacity: .85; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; }
.brand small { color: #6b7973; font-size: 12px; margin-top: 2px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.sound-button, .quiet-button, .hint-button { min-height: 44px; border: 1px solid #ddd3bd; border-radius: 14px; padding: 0 16px; background: rgba(255,255,255,.72); color: #52645e; font-weight: 700; 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: 405px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; overflow: hidden; border-radius: 34px; background: #fffaf0; box-shadow: 0 18px 60px rgba(75, 67, 45, .11); border: 1px solid rgba(220,207,176,.75); }
.hero-copy { padding: 58px 30px 54px 58px; z-index: 2; }
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 900; color: #c15f4d; }
h1, h2, p { margin-top: 0; }
.hero h1 { max-width: 540px; margin-bottom: 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(43px, 5.2vw, 68px); line-height: .98; letter-spacing: -.035em; color: #2d4942; }
.hero-copy > p:not(.eyebrow) { max-width: 510px; font-size: 18px; line-height: 1.58; color: #65756f; }
.primary-button { border: 0; min-height: 54px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 16px; color: white; background: #de745f; box-shadow: 0 6px 0 #b85546; font-weight: 900; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #b85546; }
.primary-button:active { transform: translateY(4px); box-shadow: 0 2px 0 #b85546; }
.hero-scene { position: relative; min-height: 405px; overflow: hidden; background: linear-gradient(#bfe4dc 0 62%, #8fc88c 62% 75%, #dfbd76 75%); }
.sun, .street-sun { position: absolute; right: 40px; top: 34px; width: 66px; height: 66px; display: grid; place-items: center; color: #ec9a3e; background: #ffd87b; border-radius: 50%; font-size: 27px; }
.cloud { position: absolute; width: 84px; height: 24px; border-radius: 20px; background: rgba(255,255,255,.74); }
.cloud::before, .cloud::after, .small-cloud::before, .small-cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 38px; height: 38px; left: 14px; bottom: 0; }.cloud::after { width: 29px; height: 29px; right: 10px; bottom: 0; }
.cloud.one { left: 35px; top: 55px; }.cloud.two { right: 100px; top: 125px; transform: scale(.7); opacity: .7; }
.hero-houses { position: absolute; left: 50%; bottom: 93px; width: 94%; display: flex; align-items: end; justify-content: center; gap: 4px; transform: translateX(-50%); }
.hero-houses span { position: relative; width: 116px; height: 112px; display: grid; place-items: center; background: #f9df9a; border: 6px solid #fff5d8; border-radius: 8px 8px 4px 4px; box-shadow: 0 8px 0 rgba(75,82,54,.17); }
.hero-houses span::before { content: ""; position: absolute; z-index: -1; top: -56px; width: 91px; height: 91px; background: #d86453; border: 6px solid #fff5d8; border-radius: 12px; transform: rotate(45deg); }
.hero-houses span:nth-child(3)::before { background: #4a9679; }.hero-houses .hero-main { width: 130px; height: 137px; background: #f3b76b; z-index: 2; }.hero-houses .hero-main::before { background: #6579bd; }
.hero-houses i { width: 64px; height: 70px; display: grid; place-items: center; background: #fffbed; border: 6px solid #5c736a; border-radius: 30px 30px 7px 7px; font-style: normal; font-size: 33px; font-weight: 900; color: #385149; }
.hero-road { position: absolute; inset: auto 0 0; height: 74px; display: flex; justify-content: space-around; align-items: center; background: #78847c; border-top: 8px solid #e8d6a5; }
.hero-road i { width: 46px; height: 7px; border-radius: 5px; background: #f8e7a4; }
.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 { width: 44px; height: 44px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; background: #f1c477; color: #684f2e; font-size: 21px; font-weight: 900; }
.how-grid strong { display: block; font-size: 17px; }.how-grid p { margin: 7px 0 0; color: #718078; line-height: 1.45; font-size: 14px; }
.levels { padding: 44px; border-radius: 30px; background: #e9eee4; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 24px; }
.section-heading h2 { margin-bottom: 0; font-family: Georgia, serif; font-size: 36px; color: #304b44; }.section-heading > p { max-width: 380px; margin-bottom: 3px; color: #697a73; line-height: 1.5; }
.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.level-card { position: relative; min-width: 0; min-height: 340px; padding: 20px; display: flex; flex-direction: column; align-items: stretch; border: 1px solid #d8d8c7; border-radius: 24px; background: #fffdf8; color: #314741; text-align: left; cursor: pointer; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.level-card:hover { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(49,71,65,.13); }
.level-number { position: absolute; top: 16px; left: 16px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-weight: 900; }
.mini-street { min-height: 126px; padding: 40px 5px 12px; display: flex; align-items: end; justify-content: center; gap: 5px; }
.mini-street i { position: relative; width: 66px; height: 58px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 25%, #fff5d5); border: 4px solid white; border-radius: 8px; box-shadow: 0 5px 0 #d9d1ba; font-style: normal; font-size: 24px; font-weight: 900; }
.mini-street i::before { content: ""; position: absolute; z-index: -1; top: -22px; width: 43px; height: 43px; background: var(--accent); transform: rotate(45deg); border-radius: 6px; }.mini-street .center { height: 76px; font-size: 30px; }
.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.04; }.level-copy em { margin-top: 10px; color: #74817c; font-size: 14px; line-height: 1.45; font-style: normal; }
.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: #e7a93f; letter-spacing: 2px; }
.adult-note { margin: 24px 0 0; padding: 22px 28px; display: flex; align-items: center; gap: 16px; border: 1px dashed #bfcab2; 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-radius: 30px; background: #fffaf0; border: 1px solid #ded4bd; box-shadow: 0 18px 55px rgba(75,67,45,.1); }
.game-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }.game-head h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; color: #2e4a43; }.round-count { min-width: 80px; display: flex; align-items: baseline; justify-content: flex-end; color: #728079; }.round-count strong { font-size: 34px; color: var(--level-accent); }.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: #6ba587; }.progress-track i.current { background: var(--level-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--level-accent) 20%, transparent); }
.street-card { position: relative; min-height: 366px; padding: 84px 28px 0; overflow: hidden; border-radius: 26px; background: linear-gradient(#c6e9e0 0 73%, #99c98a 73% 83%, #d6b776 83%); border: 6px solid white; box-shadow: inset 0 0 0 1px #b9d7d0, 0 8px 20px rgba(66,87,76,.1); }
.street-sky { position: absolute; inset: 0; pointer-events: none; }.street-sun { width: 49px; height: 49px; right: 30px; top: 24px; font-size: 20px; }.small-cloud { position: absolute; top: 30px; left: 40px; width: 82px; height: 22px; border-radius: 20px; background: rgba(255,255,255,.75); }.small-cloud::before { left: 13px; bottom: 0; width: 34px; height: 34px; }.small-cloud::after { right: 10px; bottom: 0; width: 27px; height: 27px; }
.houses { position: relative; z-index: 2; min-height: 230px; display: flex; align-items: end; justify-content: center; gap: clamp(7px, 2.6vw, 28px); }
.number-house { position: relative; width: min(25vw, 205px); height: 164px; filter: drop-shadow(0 9px 0 rgba(66,78,62,.15)); transition: transform .2s ease; }.number-house.center { height: 205px; }.number-house.active { transform: translateY(-8px); }.roof { position: absolute; z-index: 1; top: -52px; left: 50%; width: 112px; height: 112px; border: 7px solid #fff9e9; border-radius: 14px; background: #de745f; transform: translateX(-50%) rotate(45deg); }.center .roof { width: 132px; height: 132px; top: -61px; background: var(--level-accent); }.number-house:nth-child(3) .roof { background: #429274; }
.house-body { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; border: 7px solid #fff9e9; border-radius: 13px 13px 5px 5px; background: #f5dda0; }.center .house-body { background: #efb871; }.house-body small { margin-top: 14px; color: #77694c; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }.house-body strong { position: relative; z-index: 3; width: 86px; height: 85px; margin-top: 8px; display: grid; place-items: center; border-radius: 42px 42px 9px 9px; background: #fffdf1; border: 6px solid #61756d; color: #2d4740; font-size: 45px; line-height: 1; font-variant-numeric: tabular-nums; }.center .house-body strong { width: 100px; height: 101px; font-size: 53px; }.neighbor:not(.filled) .house-body strong { color: var(--level-accent); border-style: dashed; animation: gentle-pulse 1.8s infinite; }.door { position: absolute; bottom: 0; left: 14px; width: 22px; height: 34px; border-radius: 11px 11px 0 0; background: #b07858; }.number-house em { position: absolute; z-index: 4; top: -82px; left: 50%; padding: 5px 12px; border-radius: 14px; background: #fff; color: var(--level-accent); font-size: 12px; font-weight: 900; font-style: normal; transform: translateX(-50%); white-space: nowrap; box-shadow: 0 3px 10px rgba(0,0,0,.1); }
.street-road { position: absolute; z-index: 3; inset: auto 0 0; height: 62px; display: flex; align-items: center; justify-content: center; gap: 50px; color: #fff8d2; background: #707d76; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }.street-road i { width: 120px; border-top: 6px dashed #f9e4a4; }
.answer-panel { margin: 24px auto 0; text-align: center; }.answer-panel > p { margin-bottom: 13px; color: #566a63; font-weight: 900; }.answers { display: grid; grid-template-columns: repeat(4, minmax(0, 112px)); justify-content: center; gap: 12px; }.answer-button { position: relative; min-height: 86px; border: 2px solid #dfd6c4; border-radius: 20px; background: white; color: #314a43; box-shadow: 0 5px 0 #d8cfbd; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }.answer-button:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--level-accent); box-shadow: 0 8px 0 #d8cfbd; }.answer-button span { font-size: 40px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; }.answer-button small { position: absolute; right: 8px; bottom: 6px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 7px; background: #f2eee4; color: #8b8c83; font-size: 11px; }.answer-button.wrong { border-color: #dc7968; color: #b65a4c; background: #fff0eb; box-shadow: 0 5px 0 #e4b0a7; }.answer-button.hint-target { border-color: #e8b047; background: #fff8dc; animation: hint-glow 1.15s infinite; }.answer-button.used { opacity: .48; }.answer-button:disabled { cursor: default; }
.game-tools { display: flex; justify-content: center; margin-top: 18px; }.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-radius: 20px; background: #eef5ec; border: 1px solid #d6e4d2; }.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 { background: #e3f3e9; border-color: #b7dbc5; }.feedback-card.wrong { background: #fff0e9; border-color: #edc9bb; }.feedback-card.hint { background: #fff7d9; border-color: #ead491; }.feedback-card .compact { min-height: 48px; margin-left: auto; }
.result-wrap { min-height: 620px; display: grid; place-items: center; padding: 30px; border-radius: 30px; background: linear-gradient(160deg, #c7e8df, #f9e8bd); 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; justify-content: center; align-items: end; gap: 8px; font-size: 57px; }.result-scene span:nth-child(2) { font-size: 75px; }.result-card h1 { margin-bottom: 12px; font-family: Georgia, serif; font-size: 47px; color: #2e4a43; }.result-card > p:not(.eyebrow) { color: #687a72; }.result-stars { margin: 16px 0; color: #e9aa39; font-size: 48px; letter-spacing: 8px; text-shadow: 0 3px 0 #c68725; }.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; }.result-stats span { padding: 15px 8px; border-radius: 17px; background: #f1eee3; }.result-stats strong, .result-stats small { display: block; }.result-stats strong { font-size: 28px; color: #3f826a; }.result-stats small { color: #78847e; }.result-actions { display: flex; justify-content: center; gap: 12px; }.quiet-button.large { min-height: 54px; }
@keyframes gentle-pulse { 50% { transform: scale(1.04); } }
@keyframes hint-glow { 50% { box-shadow: 0 0 0 7px rgba(234,181,62,.22), 0 5px 0 #d8cfbd; } }

@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; }.mini-street { grid-row: 1 / 3; }.level-copy { align-self: center; }.level-status { align-self: end; }.section-heading { align-items: start; }.street-card { min-height: 340px; }.number-house { width: 25vw; max-width: 185px; }
}

@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: 290px; }.hero-houses span { width: 91px; height: 90px; }.hero-houses .hero-main { width: 102px; height: 111px; }.hero-houses span::before { top: -42px; width: 70px; height: 70px; }.hero-houses i { width: 52px; height: 58px; font-size: 27px; }.how { padding: 42px 0 24px; }.how-grid { grid-template-columns: 1fr; }.how-grid article { display: grid; grid-template-columns: 52px 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; }.mini-street { 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; }.street-card { min-height: 293px; padding: 75px 5px 0; border-width: 4px; }.houses { min-height: 172px; gap: 2px; }.number-house { width: 29%; height: 120px; }.number-house.center { height: 150px; }.roof { top: -34px; width: 75px; height: 75px; border-width: 5px; }.center .roof { top: -40px; width: 88px; height: 88px; }.house-body { border-width: 5px; }.house-body small { margin-top: 9px; font-size: 9px; }.house-body strong { width: 61px; height: 61px; border-width: 4px; font-size: 31px; }.center .house-body strong { width: 69px; height: 70px; font-size: 36px; }.door { width: 16px; height: 24px; left: 7px; }.number-house em { top: -62px; }.street-road { height: 50px; gap: 14px; font-size: 9px; }.street-road i { width: 65px; border-width: 4px; }.answers { grid-template-columns: repeat(4, 1fr); gap: 7px; }.answer-button { min-height: 72px; border-radius: 15px; }.answer-button span { font-size: 32px; }.feedback-card { align-items: flex-start; }.feedback-card .compact { width: 100%; margin: 12px 0 0; }.feedback-card.correct { flex-wrap: wrap; }.feedback-card.correct p { flex: 1; }.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; }.answer-button span { font-size: 28px; }.house-body strong { width: 54px; height: 55px; }.center .house-body strong { width: 62px; height: 63px; }.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; }
}
