@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&display=swap');

:root {
  --ink: #294f51;
  --muted: #687e7d;
  --line: #34575a;
  --paper: #fffdf6;
  --cream: #fff5dc;
  --lavender: #f2efff;
  --purple: #6c5a95;
  --purple-dark: #3e3d61;
  --mint: #dff3df;
  --yellow: #f3bd4f;
  --coral: #ed756c;
  --border: #ddd6bd;
  --shadow: 0 18px 42px rgba(64, 76, 89, .14);
}

* { box-sizing: border-box; }

html { min-width: 320px; color-scheme: light; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  background:
    radial-gradient(circle at 7% 7%, rgba(246, 205, 97, .26) 0 120px, transparent 121px),
    radial-gradient(circle at 95% 13%, rgba(130, 192, 217, .22) 0 165px, transparent 166px),
    linear-gradient(135deg, #f7fbef, #f6f2ff 55%, #eef8ed);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .2;
  pointer-events: none;
  background-image: radial-gradient(#738f83 1px, transparent 1px);
  background-size: 25px 25px;
}

button { color: inherit; font: inherit; }
button:focus-visible { outline: 4px solid rgba(242, 189, 75, .72); outline-offset: 4px; }

.app { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 25px 0 48px; }

.loading-card {
  display: grid;
  width: min(480px, calc(100% - 30px));
  min-height: 250px;
  margin: 18vh auto 0;
  place-items: center;
  align-content: center;
  gap: 12px;
  background: var(--paper);
  border: 3px solid var(--border);
  border-radius: 36px;
  box-shadow: var(--shadow);
}
.loading-card span { font-size: 64px; }
.loading-card p { margin: 0; font-size: 20px; font-weight: 900; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 27px; }
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}
.brand-mark {
  display: grid;
  width: 57px;
  height: 57px;
  place-items: center;
  font-size: 29px;
  background: #fff9e9;
  border: 3px solid #ded2ad;
  border-radius: 18px;
  box-shadow: 0 7px 15px rgba(74, 83, 82, .12);
  transform: rotate(-3deg);
}
.brand strong,
.brand small { display: block; }
.brand strong { font-size: 25px; font-weight: 900; line-height: 1.05; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; }

.topbar-actions { display: flex; align-items: center; gap: 11px; }
.top-star { color: var(--yellow); font-size: 28px; animation: twinkle 2.2s ease-in-out infinite; }
.sound-button,
.collection-button,
.back-button {
  min-height: 50px;
  background: rgba(255, 253, 246, .92);
  border: 2px solid var(--border);
  border-radius: 17px;
  box-shadow: 0 7px 16px rgba(65, 78, 75, .08);
  cursor: pointer;
}
.sound-button { display: flex; align-items: center; gap: 9px; padding: 0 18px; font-size: 13px; font-weight: 900; }
.collection-button { display: flex; min-height: 50px; padding: 0 15px; align-items: center; gap: 9px; background: rgba(255,253,246,.92); border: 2px solid var(--border); border-radius: 17px; box-shadow: 0 7px 16px rgba(65,78,75,.08); cursor: pointer; }
.collection-button > span:first-child { font-size: 21px; }
.collection-button strong,
.collection-button small { display: block; text-align: left; line-height: 1.05; }
.collection-button strong { font-size: 12px; font-weight: 900; }
.collection-button small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 900; }
.back-button { width: 51px; padding: 0; font-size: 25px; }

.eyebrow {
  margin: 0 0 9px;
  color: #32715d;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2, p { overflow-wrap: anywhere; }
h1, h2 { margin: 0; line-height: 1.02; }

.hero {
  position: relative;
  display: grid;
  min-height: 475px;
  padding: 52px 55px;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 35px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff9e4, #f4efff 60%, #e6f4ef);
  border: 3px solid #d9d3bb;
  border-radius: 48px;
  box-shadow: var(--shadow);
}
.hero::before,
.hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 290px; height: 290px; top: -155px; left: 43%; background: rgba(242, 189, 75, .21); }
.hero::after { width: 190px; height: 190px; right: -68px; bottom: -72px; background: rgba(101, 185, 138, .17); }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { max-width: 680px; font-size: clamp(56px, 7vw, 92px); font-weight: 900; letter-spacing: -.045em; }
.hero-copy > p:not(.eyebrow) { max-width: 700px; margin: 22px 0 28px; color: #607876; font-size: 18px; font-weight: 800; line-height: 1.55; }

.primary-button,
.secondary-button,
.hint-button {
  min-height: 55px;
  padding: 0 24px;
  border-radius: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.primary-button { color: white; background: #3c926f; border: 0; box-shadow: 0 12px 21px rgba(60, 146, 111, .25); }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 15px 25px rgba(60, 146, 111, .32); }
.secondary-button { background: white; border: 2px solid var(--border); }
.hint-button { color: #725817; background: #fff4c9; border: 2px solid #e7c664; }
.hint-button:disabled { opacity: .52; cursor: default; }

.hero-scene {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 350px;
  grid-template-columns: 1fr 54px 1fr;
  align-items: center;
  padding: 25px 22px;
  background: linear-gradient(165deg, #535073, #343753);
  border: 8px solid white;
  border-radius: 42px;
  box-shadow: 0 23px 38px rgba(47, 48, 73, .24);
  transform: rotate(1.2deg);
}
.moon-glow { position: absolute; width: 210px; height: 210px; right: 25px; top: 25px; background: rgba(255, 247, 203, .15); border-radius: 50%; filter: blur(2px); }
.hero-object,
.hero-shadow { position: relative; z-index: 2; }
.hero-shadow { color: #17192d; filter: drop-shadow(0 11px 2px rgba(18, 19, 31, .22)); transform: scale(.93); }
.hero-arrow { position: relative; z-index: 3; color: #f6cf68; font-size: 43px; font-weight: 900; text-align: center; }
.flashlight { position: absolute; right: 21px; bottom: 14px; z-index: 4; font-size: 36px; transform: rotate(-28deg); }

.object-svg { display: block; width: 100%; height: 100%; overflow: visible; --line: #34575a; }
.object-svg .shape,
.object-svg .line-shape,
.object-svg .detail {
  stroke: var(--line);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.object-svg .line-shape { fill: none; stroke-width: 7; }
.object-svg .detail { stroke-width: 4; }
.shadow-mode { color: #373752; }
.shadow-mode .shape { fill: currentColor !important; stroke: currentColor !important; }
.shadow-mode .line-shape { fill: none !important; stroke: currentColor !important; stroke-width: 10; }
.shadow-mode .detail { display: none; }

.how-section,
.levels-section { margin-top: 54px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 20px; }
.section-heading h2 { font-size: clamp(35px, 4.5vw, 55px); font-weight: 900; letter-spacing: -.035em; }
.section-heading > p { max-width: 510px; margin: 0; color: var(--muted); font-size: 15px; font-weight: 800; line-height: 1.45; text-align: right; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.step-card {
  display: grid;
  min-height: 125px;
  padding: 24px;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 18px;
  background: rgba(255, 253, 246, .88);
  border: 2px solid var(--border);
  border-radius: 27px;
}
.step-number {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: white;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 900;
  background: #6f679b;
  border: 5px solid #d9d3ef;
  border-radius: 50%;
}
.step-card strong,
.step-card small { display: block; }
.step-card strong { margin-bottom: 5px; font-size: 19px; font-weight: 900; }
.step-card small { color: var(--muted); font-size: 14px; font-weight: 800; line-height: 1.35; }

.levels-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.level-card {
  position: relative;
  display: grid;
  min-height: 365px;
  padding: 22px;
  grid-template-rows: auto 1fr auto;
  gap: 13px;
  text-align: left;
  background: rgba(255, 253, 246, .9);
  border: 3px solid var(--border);
  border-radius: 32px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(58, 73, 70, .08);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}
.level-card:hover { transform: translateY(-5px); border-color: var(--level-color); box-shadow: 0 17px 30px rgba(58, 73, 70, .15); }
.level-card.completed::after { content: '✓'; position: absolute; top: 17px; right: 17px; display: grid; width: 31px; height: 31px; place-items: center; color: white; background: #459b73; border-radius: 50%; font-weight: 900; }
.level-copy { display: flex; align-items: center; gap: 13px; }
.level-copy strong,
.level-copy small { display: block; }
.level-copy strong { font-size: 25px; font-weight: 900; }
.level-copy small { margin-top: 3px; color: var(--muted); font-size: 13px; font-weight: 800; }
.level-icon { display: grid; width: 53px; height: 53px; flex: 0 0 auto; place-items: center; font-size: 27px; background: color-mix(in srgb, var(--level-color) 22%, white); border: 2px solid color-mix(in srgb, var(--level-color) 55%, white); border-radius: 17px; }
.level-preview { position: relative; display: block; min-height: 210px; overflow: hidden; background: linear-gradient(150deg, #f8f8ef, color-mix(in srgb, var(--level-color) 10%, white)); border-radius: 23px; }
.level-preview::after { content: ''; position: absolute; right: -25px; bottom: -70px; width: 190px; height: 150px; background: rgba(255,255,255,.6); border-radius: 50%; }
.level-mini { position: absolute; z-index: 2; display: block; width: 128px; height: 120px; }
.level-mini .object-svg { filter: drop-shadow(0 6px 5px rgba(55, 62, 75, .14)); }
.level-mini.mini-0 { left: 15px; bottom: 13px; transform: rotate(-5deg); }
.level-mini.mini-1 { left: calc(50% - 62px); top: 12px; color: #44435f; transform: scale(.9); }
.level-mini.mini-2 { right: 5px; bottom: 10px; color: #292a42; transform: rotate(5deg) scale(.83); }
.level-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 13px; font-weight: 900; }
.level-footer > span:first-child { padding: 6px 11px; color: #395c58; background: #edf5e9; border-radius: 999px; }
.level-stars { color: #c98a12; font-size: 16px; letter-spacing: .04em; }

.parent-tip { display: flex; align-items: center; gap: 14px; margin-top: 34px; padding: 18px 22px; background: rgba(255,255,255,.66); border: 2px dashed #cfc8af; border-radius: 24px; }
.parent-tip > span { font-size: 30px; }
.parent-tip p { margin: 0; color: #607673; font-size: 14px; font-weight: 800; line-height: 1.45; }
.parent-tip strong { color: var(--ink); }

.collection-callout {
  display: grid;
  margin-top: 34px;
  padding: 25px 28px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  background: linear-gradient(135deg, #fff9df, #f2edff 62%, #e7f5e9);
  border: 3px solid var(--border);
  border-radius: 30px;
  box-shadow: 0 12px 27px rgba(63, 77, 76, .1);
}
.collection-callout-icon { display: grid; width: 74px; height: 74px; place-items: center; font-size: 40px; background: white; border: 3px solid #ded4b7; border-radius: 24px; transform: rotate(-4deg); }
.collection-callout h2 { margin: 0; font-size: 29px; font-weight: 900; }
.collection-callout p:not(.eyebrow) { margin: 5px 0 0; color: var(--muted); font-size: 14px; font-weight: 800; }
.collection-callout .primary-button { min-width: 205px; }
.collection-progress { width: min(520px, 100%); margin-top: 14px; }
.collection-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 900; }
.collection-progress > div:first-child strong { color: var(--ink); font-size: 14px; }
.collection-progress-track { height: 13px; overflow: hidden; background: rgba(255,255,255,.85); border: 2px solid #d5d4c3; border-radius: 999px; }
.collection-progress-track span { display: block; height: 100%; background: linear-gradient(90deg, #65b98a, #f2bd4b, #957cc4); border-radius: inherit; transition: width 350ms ease; }

/* Коллекция */
.collection-hero {
  position: relative;
  display: grid;
  min-height: 420px;
  padding: 48px 52px;
  grid-template-columns: 1fr .85fr;
  align-items: center;
  gap: 35px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff9e2, #f0ebff 58%, #e6f5eb);
  border: 3px solid var(--border);
  border-radius: 43px;
  box-shadow: var(--shadow);
}
.collection-hero::after { content: ''; position: absolute; right: -95px; bottom: -125px; width: 360px; height: 300px; background: rgba(101,185,138,.15); border-radius: 50%; }
.collection-hero > div:first-child { position: relative; z-index: 2; }
.collection-hero h1 { font-size: clamp(55px, 7vw, 90px); font-weight: 900; letter-spacing: -.05em; }
.collection-hero > div:first-child > p:not(.eyebrow) { max-width: 670px; margin: 18px 0 0; color: var(--muted); font-size: 17px; font-weight: 800; line-height: 1.5; }
.collection-hero .primary-button { margin-top: 22px; }
.collection-hero-art { position: relative; z-index: 2; min-height: 300px; background: linear-gradient(150deg, #4c4b6e, #30334e); border: 8px solid white; border-radius: 35px; box-shadow: 0 20px 36px rgba(45,48,72,.23); transform: rotate(1deg); }
.collection-hero-art > span { position: absolute; display: block; width: 175px; height: 165px; }
.collection-hero-art > span:nth-child(1) { left: 4%; bottom: 8%; transform: rotate(-6deg); }
.collection-hero-art > span:nth-child(2) { left: 34%; top: 4%; transform: scale(.8); }
.collection-hero-art > span:nth-child(3) { right: 1%; bottom: 6%; transform: rotate(5deg) scale(.88); }
.collection-hero-art .shadow-mode { color: #17192d; filter: drop-shadow(0 10px 2px rgba(14,15,27,.25)); }

.collection-group { margin-top: 45px; }
.collection-group-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.collection-group-heading h2 { font-size: clamp(31px, 4vw, 48px); font-weight: 900; letter-spacing: -.035em; }
.collection-group-badge { padding: 9px 14px; color: #365c56; background: color-mix(in srgb, var(--level-color) 22%, white); border: 2px solid color-mix(in srgb, var(--level-color) 50%, white); border-radius: 999px; font-size: 12px; font-weight: 900; }
.collection-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.collection-card { position: relative; min-width: 0; padding: 12px; background: rgba(255,253,246,.93); border: 3px solid var(--border); border-radius: 25px; box-shadow: 0 9px 21px rgba(58,72,70,.08); }
.collection-card.open { border-color: #a8d0ae; animation: collection-reveal 460ms ease both; }
.collection-number { position: absolute; z-index: 3; top: 10px; left: 10px; display: grid; width: 31px; height: 31px; padding-bottom: 2px; place-items: center; color: #625d69; background: white; border: 2px solid #d8d3c4; border-radius: 50%; font-family: Georgia, serif; font-size: 13px; font-weight: 900; line-height: 1; }
.collection-art { display: grid; height: 190px; place-items: center; overflow: hidden; background: linear-gradient(145deg, #f7f7ef, #efedf6); border-radius: 18px; }
.collection-art .object-svg { width: 92%; height: 180px; filter: drop-shadow(0 9px 5px rgba(45,52,61,.14)); }
.collection-card.locked .collection-art { background: linear-gradient(145deg, #efeff1, #e5e4ec); }
.collection-card.locked .shadow-mode { color: #3b3b57; filter: drop-shadow(0 9px 3px rgba(32,33,52,.17)); }
.collection-card-copy { min-height: 61px; padding: 10px 3px 1px; text-align: center; }
.collection-card-copy strong,
.collection-card-copy small { display: block; }
.collection-card-copy strong { font-size: 15px; font-weight: 900; }
.collection-card-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 800; }
.collection-card.open .collection-card-copy small { color: #3d8a65; }

/* Игровой экран */
.game-page { position: relative; }
.game-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 8px 0 15px; }
.game-heading h1 { font-size: clamp(38px, 5vw, 65px); font-weight: 900; letter-spacing: -.035em; }
.game-heading > div > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 15px; font-weight: 800; }
.round-counter { min-width: 125px; padding: 12px 20px; text-align: center; background: rgba(255,253,246,.9); border: 2px solid var(--border); border-radius: 21px; }
.round-counter strong,
.round-counter span { display: block; }
.round-counter strong { font-size: 24px; font-weight: 900; }
.round-counter span { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.progress-track { height: 12px; margin-bottom: 18px; overflow: hidden; background: rgba(255,255,255,.85); border: 2px solid #d8d7c8; border-radius: 999px; }
.progress-track span { display: block; height: 100%; background: linear-gradient(90deg, #65b98a, #f2bd4b); border-radius: inherit; transition: width 280ms ease; }

.play-layout { display: grid; grid-template-columns: minmax(320px, .75fr) minmax(600px, 1.25fr); align-items: start; gap: 18px; }
.target-card,
.choices-card { background: rgba(255,253,246,.94); border: 3px solid var(--border); border-radius: 34px; box-shadow: 0 13px 30px rgba(62, 76, 74, .1); }
.target-card { position: sticky; top: 15px; padding: 21px; }
.choices-card { padding: 21px; }
.card-label { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.card-label span { font-size: 18px; font-weight: 900; }
.card-label small { color: var(--muted); font-size: 12px; font-weight: 800; }
.target-stage { position: relative; display: grid; min-height: 385px; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 45%, #fff9d8 0 32%, #f2f3e9 68%); border: 3px solid #d7decd; border-radius: 27px; }
.target-stage::after { content: ''; position: absolute; left: 13%; right: 13%; bottom: 28px; height: 26px; background: rgba(61, 80, 76, .14); border-radius: 50%; filter: blur(3px); }
.stage-rays { position: absolute; width: 350px; height: 350px; opacity: .55; background: repeating-conic-gradient(from 4deg, rgba(242,189,75,.13) 0 11deg, transparent 11deg 24deg); border-radius: 50%; animation: slow-spin 22s linear infinite; }
.target-stage .object-svg { position: relative; z-index: 2; width: min(82%, 340px); height: 315px; filter: drop-shadow(0 15px 9px rgba(54, 75, 71, .15)); animation: target-arrive 420ms ease both; }
.target-name { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 71px; margin-top: 12px; text-align: left; background: #eef7e9; border-radius: 21px; }
.target-name > span:first-child { font-size: 29px; }
.target-name small,
.target-name strong { display: block; }
.target-name small { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.target-name strong { font-size: 23px; font-weight: 900; }

.shadow-grid { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 13px; }
.shadow-grid.options-4 { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
.shadow-grid.options-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.shadow-grid.options-5 .shadow-option { grid-column: span 2; }
.shadow-grid.options-5 .shadow-option:nth-child(4) { grid-column: 2 / span 2; }
.shadow-option {
  position: relative;
  display: grid;
  min-height: 235px;
  padding: 11px;
  place-items: center;
  overflow: hidden;
  color: #3b3b59;
  background: linear-gradient(150deg, #f8f7f0, #eeedf6);
  border: 3px solid #dad6c7;
  border-radius: 24px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}
.shadow-option:not(:disabled):hover { transform: translateY(-4px) scale(1.015); color: #282942; background: #fff9e5; border-color: #d5ad45; }
.option-number { position: absolute; z-index: 3; top: 10px; left: 10px; display: grid; width: 32px; height: 32px; padding-bottom: 2px; place-items: center; color: #5c596b; background: white; border: 2px solid #d8d4c7; border-radius: 50%; font-family: Georgia, serif; font-size: 15px; font-weight: 900; line-height: 1; }
.option-art { display: grid; width: 100%; height: 205px; place-items: center; }
.option-art .object-svg { width: 95%; height: 195px; filter: drop-shadow(0 11px 3px rgba(29, 30, 49, .16)); }
.shadow-option.wrong { color: #777483; border-color: #dfa19d; animation: wrong-shake 420ms ease; }
.shadow-option.wrong .option-art { opacity: .34; }
.shadow-option.correct { color: var(--ink); background: #e8f7df; border-color: #67b584; animation: correct-pop 520ms ease both; }
.shadow-option.correct .option-art .object-svg { filter: drop-shadow(0 12px 8px rgba(58, 111, 81, .22)); }
.shadow-option.after-answer { opacity: .38; }
.shadow-option.hinted { border-color: #e2ad2e; box-shadow: 0 0 0 7px rgba(244, 189, 75, .25), 0 0 27px rgba(244, 189, 75, .5); animation: hint-pulse 800ms ease-in-out infinite; }
.correct-label { position: absolute; z-index: 4; right: 10px; bottom: 9px; padding: 6px 11px; color: #245e46; background: white; border-radius: 999px; font-size: 12px; font-weight: 900; box-shadow: 0 5px 12px rgba(54, 84, 70, .12); }

.game-actions { display: flex; min-height: 70px; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 13px; }
.action-note { margin-right: auto; color: var(--muted); font-size: 13px; font-weight: 800; }
.next-button { min-width: 210px; }
.status-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 15px; padding: 14px 20px; background: rgba(255,253,246,.9); border: 2px solid var(--border); border-radius: 22px; }
.status-bar strong,
.status-bar small { display: block; }
.status-bar strong { font-size: 15px; font-weight: 900; }
.status-bar small { color: var(--muted); font-size: 11px; font-weight: 800; }
.star-preview { color: #e79f18; font-size: 25px; letter-spacing: .08em; }
.feedback-toast { position: fixed; z-index: 20; left: 50%; bottom: 25px; max-width: min(520px, calc(100% - 30px)); padding: 15px 22px; color: white; border: 4px solid white; border-radius: 18px; box-shadow: 0 14px 30px rgba(48, 62, 60, .24); font-weight: 900; text-align: center; transform: translateX(-50%); animation: toast-in 260ms ease both; }
.feedback-toast.good { background: #44966f; }
.feedback-toast.gentle { background: #8072a2; }

/* Результат */
.result-card { position: relative; display: grid; min-height: 710px; padding: 60px 62px; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 40px; overflow: hidden; background: rgba(255,253,246,.95); border: 4px solid var(--border); border-radius: 47px; box-shadow: var(--shadow); }
.result-card::after { content: ''; position: absolute; right: -90px; bottom: -120px; width: 390px; height: 300px; background: rgba(101,185,138,.14); border-radius: 50%; }
.result-copy { position: relative; z-index: 2; }
.result-copy h1 { font-size: clamp(53px, 6.5vw, 88px); font-weight: 900; letter-spacing: -.05em; }
.result-copy > p:not(.eyebrow) { max-width: 620px; margin: 20px 0; color: var(--muted); font-size: 17px; font-weight: 800; line-height: 1.55; }
.result-stars { margin: 15px 0 20px; color: #e6a01d; font-size: 55px; letter-spacing: .1em; line-height: 1; }
.result-stats { display: grid; max-width: 640px; margin-bottom: 24px; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.result-stats > div { padding: 13px; background: #edf6e9; border: 2px solid #c5ddc0; border-radius: 17px; }
.result-stats strong,
.result-stats span { display: block; }
.result-stats strong { font-size: 24px; font-weight: 900; }
.result-stats span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.result-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.result-scene { position: relative; z-index: 2; min-height: 470px; padding: 25px; overflow: hidden; color: white; background: linear-gradient(150deg, #4d4d70, #2f334c); border: 9px solid white; border-radius: 42px; box-shadow: 0 23px 38px rgba(47, 48, 73, .23); transform: rotate(1deg); }
.result-scene > p { position: relative; z-index: 4; margin: 0; font-family: Georgia, serif; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-align: center; }
.result-moon { position: absolute; right: 25px; top: 42px; width: 235px; height: 235px; background: rgba(255, 245, 192, .15); border-radius: 50%; }
.result-objects { position: absolute; inset: 64px 18px 30px; }
.result-object { position: absolute; display: block; width: 190px; height: 175px; }
.result-object.result-0 { left: 2%; bottom: 8%; transform: rotate(-6deg); }
.result-object.result-1 { right: 1%; bottom: 6%; color: #16182b; transform: rotate(6deg) scale(.93); }
.result-object.result-2 { left: 15%; top: 1%; transform: rotate(3deg) scale(.72); }
.result-object.result-3 { right: 17%; top: 2%; color: #202139; transform: rotate(-3deg) scale(.7); }
.result-light { position: absolute; right: 18px; bottom: 15px; z-index: 5; font-size: 37px; transform: rotate(-26deg); }

@keyframes twinkle { 50% { opacity: .45; transform: rotate(22deg) scale(.8); } }
@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes target-arrive { from { opacity: 0; transform: translateY(-16px) scale(.85); } 70% { transform: translateY(3px) scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes wrong-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes correct-pop { from { transform: scale(.88); } 60% { transform: scale(1.04) rotate(-1deg); } to { transform: none; } }
@keyframes hint-pulse { 50% { transform: translateY(-3px) scale(1.025); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px) scale(.95); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes collection-reveal { from { opacity: .72; transform: scale(.94); } 60% { transform: scale(1.025) rotate(-.3deg); } to { opacity: 1; transform: none; } }

@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; }
  .hero-scene { min-height: 330px; }
  .levels-grid { grid-template-columns: 1fr; }
  .level-card { min-height: 315px; grid-template-columns: .7fr 1.3fr; grid-template-rows: 1fr auto; align-items: center; }
  .level-copy { align-self: end; }
  .level-preview { min-height: 225px; grid-column: 2; grid-row: 1 / 3; }
  .level-footer { align-self: start; }
  .play-layout { grid-template-columns: 1fr; }
  .target-card { position: static; display: grid; grid-template-columns: 1fr .7fr; gap: 15px; }
  .target-card .card-label { grid-column: 1 / -1; }
  .target-stage { min-height: 320px; }
  .target-name { margin-top: 0; }
  .result-card { grid-template-columns: 1fr; padding: 46px; }
  .result-scene { min-height: 430px; }
  .collection-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .app { width: min(100% - 22px, 680px); padding-top: 14px; }
  .topbar { margin-bottom: 17px; }
  .brand-mark { width: 49px; height: 49px; border-radius: 15px; }
  .brand strong { font-size: 18px; }
  .brand small { display: none; }
  .sound-button { width: 49px; min-height: 49px; padding: 0; justify-content: center; }
  .sound-button span:last-child { display: none; }
  .collection-button { width: 49px; min-height: 49px; padding: 0; justify-content: center; }
  .collection-button > span:last-child { display: none; }
  .back-button { width: 49px; min-height: 49px; }
  .hero { min-height: auto; padding: 31px 23px; border-radius: 35px; }
  .hero h1 { font-size: clamp(49px, 14vw, 70px); }
  .hero-copy > p:not(.eyebrow) { font-size: 15px; }
  .hero-scene { min-height: 255px; padding: 12px 8px; grid-template-columns: 1fr 34px 1fr; border-width: 6px; border-radius: 30px; }
  .hero-arrow { font-size: 28px; }
  .flashlight { font-size: 27px; }
  .how-section,
  .levels-section { margin-top: 39px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 9px; text-align: left; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 105px; padding: 17px; grid-template-columns: 58px 1fr; }
  .step-number { width: 54px; height: 54px; font-size: 23px; }
  .level-card { display: grid; min-height: 345px; grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .level-preview { min-height: 210px; grid-column: 1; grid-row: auto; }
  .level-footer { align-self: auto; }
  .collection-callout { grid-template-columns: auto 1fr; padding: 20px; }
  .collection-callout-icon { width: 58px; height: 58px; font-size: 31px; border-radius: 19px; }
  .collection-callout .primary-button { width: 100%; grid-column: 1 / -1; }
  .collection-hero { min-height: auto; padding: 31px 23px; grid-template-columns: 1fr; border-radius: 35px; }
  .collection-hero-art { min-height: 270px; border-width: 6px; border-radius: 29px; }
  .collection-hero-art > span { width: 145px; height: 135px; }
  .collection-group-heading { align-items: center; }
  .collection-group-heading h2 { font-size: 29px; }
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .collection-card { padding: 9px; border-radius: 21px; }
  .collection-art { height: 160px; }
  .collection-art .object-svg { height: 150px; }
  .game-heading { align-items: center; }
  .game-heading h1 { font-size: 29px; }
  .game-heading > div > p:last-child { display: none; }
  .round-counter { min-width: 90px; padding: 9px; }
  .round-counter strong { font-size: 19px; }
  .target-card { display: block; padding: 15px; border-radius: 28px; }
  .target-stage { min-height: 260px; }
  .target-stage .object-svg { height: 235px; }
  .target-name { margin-top: 10px; }
  .choices-card { padding: 15px; border-radius: 28px; }
  .shadow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shadow-grid.options-4,
  .shadow-grid.options-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shadow-grid.options-5 .shadow-option,
  .shadow-grid.options-5 .shadow-option:nth-child(4) { grid-column: auto; }
  .shadow-grid.options-5 .shadow-option:last-child { width: calc(50% - 5px); grid-column: 1 / -1; justify-self: center; }
  .shadow-option { min-height: 185px; padding: 7px; border-radius: 20px; }
  .option-art { height: 160px; }
  .option-art .object-svg { height: 153px; }
  .option-number { width: 28px; height: 28px; top: 7px; left: 7px; }
  .game-actions { flex-wrap: wrap; justify-content: stretch; }
  .game-actions .hint-button,
  .game-actions .primary-button { flex: 1 1 190px; }
  .action-note { width: 100%; margin: 0; text-align: center; }
  .status-bar { padding: 12px 15px; }
  .star-preview { font-size: 21px; }
  .result-card { min-height: auto; padding: 31px 23px; border-radius: 35px; }
  .result-copy h1 { font-size: clamp(47px, 14vw, 65px); }
  .result-stars { font-size: 42px; }
  .result-stats { grid-template-columns: 1fr 1fr; }
  .result-stats > div:first-child { grid-column: auto; }
  .result-actions .primary-button,
  .result-actions .secondary-button { width: 100%; }
  .result-scene { min-height: 360px; border-width: 6px; border-radius: 30px; }
  .result-object { width: 145px; height: 135px; }
}

@media (max-width: 390px) {
  .brand strong { max-width: 105px; font-size: 15px; }
  .level-mini { width: 112px; height: 108px; }
  .shadow-option { min-height: 166px; }
  .option-art { height: 143px; }
  .option-art .object-svg { height: 138px; }
  .card-label small { display: none; }
}

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