:root {
  color-scheme: light;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  color: #294f4b;
  background: #f8f0dc;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: #f8f0dc; }
body {
  min-width: 320px; min-height: 100vh; margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.75) 0 2px, transparent 2.7px) 0 0/27px 27px,
    linear-gradient(145deg, #fcf7e9 0%, #f7efd8 58%, #f3ead2 100%);
}
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 4px solid rgba(72, 141, 174, .34); outline-offset: 3px; }
img { display: block; max-width: 100%; }

.app { width: min(1120px, calc(100% - 32px)); min-height: 100vh; margin: 0 auto; padding: 22px 0 48px; }
.paper-card { background: #fffdf7; border: 2px solid #dfd3b4; box-shadow: 0 10px 0 rgba(113,103,70,.14), 0 20px 38px rgba(84,75,49,.10); }

.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; padding: 12px 20px; border-radius: 24px; }
.brand, .atlas-button { min-height: 46px; display: grid; align-items: center; border: 0; color: #244c48; background: transparent; cursor: pointer; }
.brand { grid-template-columns: 42px auto auto; gap: 10px; text-align: left; }
.brand > span { width: 42px; height: 42px; display: grid; place-items: center; color: #76560e; background: #ffe29a; border-radius: 13px; font: 800 23px Georgia, serif; }
.brand strong { font-size: 18px; }
.brand small { color: #71847f; font-size: 13px; font-weight: 400; }
.atlas-button { grid-template-columns: 42px auto; column-gap: 10px; text-align: left; }
.atlas-button > span { grid-row: span 2; width: 42px; height: 42px; display: grid; place-items: center; color: white; background: #315761; border-radius: 13px; }
.atlas-button strong { align-self: end; font-size: 14px; }
.atlas-button small { align-self: start; color: #71847f; }

.hero { min-height: 470px; display: grid; grid-template-columns: 55% 45%; overflow: hidden; border-radius: 42px; }
.hero-copy { align-self: center; padding: 56px; }
.eyebrow { display: block; margin-bottom: 12px; color: #97641b; font: 700 12px/1.2 Georgia, serif; letter-spacing: .15em; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin-bottom: 20px; color: #254e4a; font-size: clamp(50px, 6vw, 76px); line-height: .9; letter-spacing: -.055em; }
.hero-copy > p { max-width: 530px; margin-bottom: 28px; color: #66807c; font-size: 20px; line-height: 1.48; }
.hero-actions, .result-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 48px; padding: 12px 22px; border: 2px solid transparent; border-radius: 15px; color: #244a47; font-weight: 800; cursor: pointer; transition: transform .16s ease, filter .16s ease, box-shadow .16s ease; }
.button:hover { transform: translateY(-2px); filter: brightness(1.025); }
.button:active { transform: translateY(2px); }
.button-primary { color: white; background: #49a77e; box-shadow: 0 6px 0 #2f7e61; }
.button-soft { color: #805a12; background: #ffecb7; border-color: #e6c15b; }
.button-outline { background: #fffdf7; border-color: #d9ca9f; }
.button:disabled { opacity: .58; cursor: default; transform: none; box-shadow: none; }

.hero-map { position: relative; min-height: 470px; overflow: hidden; background: linear-gradient(145deg, #dfeee1, #f2e9bd); border-left: 1px solid #e0d5b5; }
.hero-map::before { content: ""; position: absolute; inset: 22px; border: 3px solid rgba(255,255,255,.78); border-radius: 30px; background: radial-gradient(circle, rgba(71,131,105,.48) 0 1.6px, transparent 2px) 0 0/25px 25px; }
.map-title { position: absolute; z-index: 5; top: 29px; left: 50%; padding: 8px 17px; color: white; background: #315761; border-radius: 9px; transform: translateX(-50%) rotate(-2deg); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.hero-postcard { position: absolute; z-index: 3; width: 150px; height: 192px; padding: 31px 10px 10px; background: #fffdf7; border: 2px solid #dac99d; box-shadow: 0 12px 18px rgba(76,67,42,.18); }
.hero-postcard::before { content: ""; position: absolute; width: 44px; height: 11px; top: -6px; left: 50%; background: rgba(255,222,132,.84); transform: translateX(-50%); }
.hero-postcard b { position: absolute; z-index: 2; top: 11px; left: 12px; width: 34px; height: 34px; display: grid; place-items: center; color: white; background: #ef7468; border-radius: 50%; font: 800 20px Georgia, serif; }
.hero-postcard img { width: 100%; height: 100%; object-fit: contain; }
.postcard-a { left: 52px; top: 88px; transform: rotate(-7deg); }
.postcard-b { right: 44px; top: 76px; transform: rotate(7deg); }
.postcard-c { left: 50%; bottom: 34px; transform: translateX(-50%) rotate(2deg); }
.postcard-b b { background: #e4a02d; }
.postcard-c b { background: #8070b3; }
.map-route { position: absolute; z-index: 1; left: 90px; right: 84px; top: 206px; height: 120px; border: 3px dashed rgba(49,87,97,.4); border-left-color: transparent; border-radius: 50%; transform: rotate(-8deg); }
.map-stamp { position: absolute; z-index: 6; right: 25px; bottom: 20px; padding: 11px 15px; color: white; background: #4aa67e; border: 4px solid #fffdf7; border-radius: 50%; font: 800 16px Georgia, serif; transform: rotate(-8deg); }

.section-block { margin-top: 52px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 0 8px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading h2, .atlas-callout h2 { margin-bottom: 0; font-size: 31px; letter-spacing: -.035em; }
.section-heading > p { margin-bottom: 4px; color: #748985; }
.steps-grid, .level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { position: relative; min-height: 212px; padding: 26px; border-radius: 28px; }
.step-number { position: absolute; top: 17px; right: 17px; width: 36px; height: 36px; display: grid; place-items: center; color: #805d16; background: #ffedb7; border-radius: 50%; font: 700 15px Georgia, serif; }
.step-letter { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 18px; color: white; background: #315761; border-radius: 18px; box-shadow: 0 7px 0 rgba(35,74,71,.18); font: 800 34px Georgia, serif; }
.step-card:nth-child(2) .step-letter { background: #ef7468; }
.step-card:nth-child(3) .step-letter { color: #5b470c; background: #f3b93e; }
.step-card h3 { margin-bottom: 8px; font-size: 21px; }
.step-card p { margin-bottom: 0; color: #6d837e; line-height: 1.5; }

.level-card { overflow: hidden; border-radius: 30px; }
.level-preview { position: relative; height: 196px; overflow: hidden; background: color-mix(in srgb, var(--level) 15%, #fff8e5); border-bottom: 1px solid #ded2b1; }
.level-preview::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, color-mix(in srgb, var(--level) 45%, transparent) 0 1.5px, transparent 2px) 0 0/22px 22px; opacity: .28; }
.level-preview > span { position: absolute; left: calc(50% + (var(--i) - 1) * 72px); top: 24px; width: 112px; height: 138px; padding: 25px 7px 6px; transform: translateX(-50%) rotate(calc((var(--i) - 1) * 7deg)); background: #fffdf7; border: 2px solid #dbcda8; box-shadow: 0 10px 16px rgba(75,67,43,.17); }
.level-preview > span b { position: absolute; top: 7px; left: 8px; width: 28px; height: 28px; display: grid; place-items: center; color: white; background: var(--level); border-radius: 50%; font: 800 16px Georgia, serif; }
.level-preview img { width: 100%; height: 100%; object-fit: contain; }
.level-preview > i { position: absolute; right: 14px; bottom: 12px; padding: 7px 10px; color: white; background: var(--level); border: 3px solid #fffdf7; border-radius: 12px; font-size: 11px; font-style: normal; font-weight: 900; }
.level-copy { padding: 23px 22px 25px; }
.level-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; color: var(--level); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.level-label b { padding: 6px 8px; color: white; background: var(--level); border-radius: 8px; letter-spacing: 0; }
.level-card h3 { margin-bottom: 8px; font-size: 25px; }
.level-card p { min-height: 64px; margin-bottom: 15px; color: #6c837e; line-height: 1.4; }
.level-card p strong { color: #315761; }
.level-meta { display: flex; justify-content: space-between; margin-bottom: 18px; color: #69817c; font-size: 13px; }
.level-card .button { width: 100%; background: var(--level); box-shadow: 0 6px 0 color-mix(in srgb, var(--level) 70%, #244a47); }
.mini-stars { color: #d9d1b9; letter-spacing: 1px; }
.mini-stars .filled, .result-stars .filled { color: #efa51e; }

.atlas-callout { min-height: 210px; display: grid; grid-template-columns: 255px 1fr auto; align-items: center; gap: 28px; margin-top: 52px; padding: 28px 34px; border-radius: 32px; }
.atlas-callout p { max-width: 520px; margin: 8px 0 0; color: #6e837f; line-height: 1.5; }
.atlas-preview { position: relative; height: 148px; }
.atlas-preview > span:not(.preview-letter) { position: absolute; top: 10px; width: 108px; height: 126px; padding: 8px; background: #fff9e9; border: 2px solid #d9c99f; box-shadow: 0 9px 0 rgba(92,80,45,.12); }
.atlas-preview > span:nth-child(2) { left: 34px; transform: rotate(-5deg); }
.atlas-preview > span:nth-child(3) { right: 8px; transform: rotate(5deg); }
.atlas-preview img { width: 100%; height: 100%; object-fit: contain; }
.preview-letter { position: absolute; z-index: 3; left: 4px; top: 0; width: 50px; height: 50px; display: grid; place-items: center; color: white; background: #ef7468; border: 4px solid #fffdf7; border-radius: 50%; font: 800 25px Georgia, serif; }
.parent-note { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 18px 24px; color: #68817c; border: 2px dashed #dac792; border-radius: 20px; }
.parent-note > span { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; color: white; background: #4ba57d; border-radius: 50%; font: 700 18px Georgia, serif; }
.parent-note p { margin: 0; line-height: 1.45; }

.game-shell { padding: 22px; border-radius: 34px; }
.game-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.back-button, .hint-button { min-height: 46px; padding: 10px 15px; border: 2px solid #dfd3b3; border-radius: 14px; color: #274f4b; background: #fffdf7; font-weight: 800; cursor: pointer; }
.back-button { justify-self: start; }
.hint-button { justify-self: end; color: #795812; background: #ffecb7; border-color: #e6c15c; }
.hint-button > span { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 4px; color: white; background: #e6a42e; border-radius: 9px; }
.game-toolbar > div { text-align: center; }
.game-toolbar > div span { display: block; color: #758a85; font-size: 12px; }
.game-toolbar > div strong { display: block; margin-top: 4px; font-size: 18px; }
.progress-track { height: 10px; margin: 18px 4px 20px; overflow: hidden; background: #e9e3d3; border-radius: 99px; }
.progress-track span { display: block; height: 100%; background: var(--level); border-radius: inherit; }
.question-layout { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 28px; margin-bottom: 20px; padding: 22px 27px; background: color-mix(in srgb, var(--level) 9%, #fffdf7); border: 2px solid #e0d5b7; border-radius: 26px; }
.letter-passport { position: relative; min-height: 170px; display: grid; place-items: center; align-content: center; overflow: hidden; color: #244c48; background: #fffdf7; border: 2px solid #d9c99d; border-radius: 22px; box-shadow: 0 7px 0 rgba(83,72,41,.12); }
.passport-label { position: absolute; top: 12px; left: 12px; color: var(--level); font: 700 9px Georgia, serif; letter-spacing: .12em; }
.letter-passport strong { font: 800 88px/.9 Georgia, serif; color: var(--level); }
.letter-passport small { margin-top: 9px; color: #6f837e; text-align: center; line-height: 1.25; }
.letter-passport i { position: absolute; right: 10px; bottom: 8px; color: #ef7468; font-style: normal; }
.question-copy .eyebrow { margin-bottom: 7px; color: var(--level); }
.question-copy h1 { margin-bottom: 9px; font-size: clamp(30px, 4vw, 43px); line-height: 1.05; letter-spacing: -.045em; }
.question-copy p { margin: 0; color: #6c827e; font-size: 16px; line-height: 1.4; }

.animal-grid { display: grid; gap: 13px; }
.animal-grid.options-3 { grid-template-columns: repeat(3, 1fr); }
.animal-grid.options-4 { grid-template-columns: repeat(4, 1fr); }
.animal-grid.options-5 { grid-template-columns: repeat(5, 1fr); }
.animal-option { position: relative; min-width: 0; min-height: 280px; display: grid; grid-template-rows: 1fr auto; padding: 13px 11px 15px; overflow: hidden; color: #284f4b; background: #fffdf7; border: 3px solid #dfd2af; border-radius: 22px; box-shadow: 0 7px 0 rgba(88,78,50,.14); cursor: pointer; transition: transform .15s ease, opacity .2s ease, border-color .2s ease; }
.animal-option:hover:not(:disabled) { transform: translateY(-3px) rotate(-.5deg); }
.animal-option:active:not(:disabled) { transform: translateY(2px); }
.photo-tape { position: absolute; z-index: 2; top: 2px; left: 50%; width: 42px; height: 10px; background: rgba(255,220,125,.76); transform: translate(-50%,-50%); }
.answer-mark { position: absolute; z-index: 3; top: 9px; right: 9px; width: 31px; height: 31px; display: grid; place-items: center; color: white; border-radius: 50%; font-size: 19px; font-weight: 900; }
.animal-image { min-height: 0; display: block; padding: 7px; overflow: hidden; background: #eef1df; border-radius: 16px; }
.animal-image img { width: 100%; height: 100%; object-fit: contain; }
.animal-option > strong { min-width: 0; padding-top: 11px; overflow: hidden; font-size: clamp(16px, 1.7vw, 22px); white-space: nowrap; text-overflow: ellipsis; }
.animal-option > strong span { transition: color .2s ease, background .2s ease; }
.animal-option.show-initial > strong span { display: inline-grid; place-items: center; min-width: 1.45em; height: 1.45em; margin-right: 2px; color: white; background: var(--level); border-radius: 50%; }
.animal-option.is-wrong { border-color: #ef7468; background: #fff1ea; }
.animal-option.is-wrong .answer-mark { background: #ef7468; }
.animal-option.is-correct { border-color: #4aa67e; background: #eef9ef; box-shadow: 0 0 0 4px #d7f0e2, 0 7px 0 rgba(47,126,96,.2); }
.animal-option.is-correct .answer-mark { background: #4aa67e; }
.animal-option.is-dim { opacity: .48; }

.feedback-slot { margin-top: 16px; }
.feedback { min-height: 80px; display: grid; grid-template-columns: 42px 1fr auto auto; align-items: center; gap: 13px; padding: 12px 16px; background: #f9f5e9; border: 2px solid #e1d7ba; border-radius: 18px; }
.feedback-icon { width: 38px; height: 38px; display: grid; place-items: center; color: white; background: #315761; border-radius: 12px; font-weight: 900; }
.feedback p { margin: 0; line-height: 1.42; }
.feedback-try { background: #fff0e8; border-color: #efb6a6; }
.feedback-try .feedback-icon { background: #ef7468; }
.feedback-hint { background: #fff6d8; border-color: #e9cb6c; }
.feedback-hint .feedback-icon { color: #6a4b0c; background: #f2bc43; }
.feedback-success { background: #eaf7ed; border-color: #aad5b6; }
.feedback-success .feedback-icon { background: #4aa67e; }
.feedback-family { display: flex; align-items: center; }
.feedback-family img { width: 48px; height: 48px; padding: 2px; object-fit: contain; background: #fffdf7; border: 2px solid #b9d9c1; border-radius: 50%; }
.feedback-family img + img { margin-left: -10px; }

.result-card { max-width: 930px; min-height: 650px; margin: 44px auto 0; padding: 52px 64px; text-align: center; border-radius: 42px; }
.result-badge { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 20px; color: white; background: var(--level); border: 5px solid color-mix(in srgb, var(--level) 24%, #fff); border-radius: 50%; font: 800 30px Georgia, serif; transform: rotate(-4deg); }
.result-card h1 { margin-bottom: 12px; font-size: clamp(40px, 5vw, 58px); letter-spacing: -.05em; }
.result-card > p { max-width: 690px; margin: 0 auto 18px; color: #69817c; font-size: 18px; line-height: 1.5; }
.result-stars { margin: 16px 0; color: #d8d2c0; font-size: 42px; letter-spacing: 6px; }
.result-stats { max-width: 660px; display: grid; grid-template-columns: repeat(3,1fr); margin: 16px auto 25px; overflow: hidden; border: 2px solid #ddd1b0; border-radius: 19px; }
.result-stats > span { min-height: 76px; display: grid; place-content: center; padding: 9px; background: #faf6e9; }
.result-stats > span + span { border-left: 2px solid #ddd1b0; }
.result-stats b, .result-stats small { display: block; }
.result-stats b { font-size: 22px; }
.result-stats small { color: #70847f; }
.result-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 20px 0 28px; }
.result-strip > span { position: relative; width: 64px; height: 64px; padding: 5px; background: #fff8e7; border: 3px solid color-mix(in srgb, var(--level) 64%, #fff); border-radius: 50%; }
.result-strip b { position: absolute; left: -3px; top: -5px; width: 23px; height: 23px; display: grid; place-items: center; color: white; background: var(--level); border: 2px solid #fff; border-radius: 50%; font: 800 12px Georgia, serif; }
.result-strip img { width: 100%; height: 100%; object-fit: contain; }
.result-actions { justify-content: center; }

.atlas-shell { padding: 30px; border-radius: 34px; }
.atlas-heading { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 24px; padding: 4px 2px 26px; }
.atlas-heading h1 { margin-bottom: 5px; font-size: 42px; letter-spacing: -.045em; }
.atlas-heading p { margin: 0; color: #6d837e; }
.atlas-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.atlas-card { position: relative; min-width: 0; min-height: 345px; padding: 17px; overflow: hidden; background: #fffaf0; border: 2px solid #dfd3b2; border-radius: 24px; }
.atlas-number { color: #9b6b22; font: 700 10px Georgia, serif; letter-spacing: .12em; }
.atlas-letter { position: absolute; z-index: 2; top: 12px; right: 12px; width: 47px; height: 47px; display: grid; place-items: center; color: white; background: #ef7468; border: 4px solid #fffdf7; border-radius: 50%; font: 800 25px Georgia, serif; }
.atlas-family { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; height: 190px; margin: 12px 0; }
.atlas-family > span { position: relative; min-width: 0; padding: 22px 5px 5px; background: #f1f2df; border: 2px solid #e0d5b8; border-radius: 17px; }
.atlas-family small { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); color: #7b6a3c; font-size: 8px; font-weight: 900; }
.atlas-family img { width: 100%; height: 100%; object-fit: contain; }
.atlas-card h2 { margin-bottom: 6px; font-size: 22px; }
.atlas-card p { margin: 0; color: #6e837f; font-size: 13px; line-height: 1.4; }
.atlas-card.is-locked { display: grid; place-items: center; align-content: center; text-align: center; background: #f2eee2; border-style: dashed; }
.locked-page { width: 120px; height: 155px; display: grid; place-items: center; margin: 10px 0 16px; color: #a4946c; background: #e6dfcc; border: 3px dashed #c8b993; border-radius: 20px; font: 700 42px Georgia, serif; }
.atlas-card.is-locked h2 { margin-bottom: 5px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 46px 48px 36px; }
  .hero-map { min-height: 420px; border-left: 0; border-top: 1px solid #e0d5b5; }
  .atlas-callout { grid-template-columns: 210px 1fr; }
  .atlas-callout .button { grid-column: 2; justify-self: start; }
  .animal-grid.options-5 { grid-template-columns: repeat(3,1fr); }
  .animal-grid.options-5 .animal-option:nth-child(n+4) { min-height: 250px; }
  .atlas-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  .app { width: min(100% - 20px,1120px); padding-top: 10px; }
  .topbar { min-height: 62px; padding: 8px 11px; margin-bottom: 18px; border-radius: 20px; }
  .brand { grid-template-columns: 40px auto; gap: 8px; }
  .brand > span, .atlas-button > span { width: 40px; height: 40px; }
  .brand small { display: none; }
  .brand strong { font-size: 15px; }
  .atlas-button { grid-template-columns: 40px auto; column-gap: 7px; }
  .atlas-button strong { display: none; }
  .atlas-button small { align-self: center; font-size: 11px; }
  .hero { min-height: auto; border-radius: 30px; }
  .hero-copy { padding: 36px 25px 30px; }
  .hero h1 { font-size: 54px; }
  .hero-copy > p { font-size: 17px; }
  .hero-actions .button { flex: 1 1 190px; }
  .hero-map { min-height: 370px; }
  .hero-postcard { width: 118px; height: 157px; }
  .postcard-a { left: 32px; top: 83px; }
  .postcard-b { right: 28px; top: 75px; }
  .postcard-c { bottom: 29px; }
  .section-heading { align-items: start; }
  .section-heading > p { display: none; }
  .steps-grid, .level-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 190px; }
  .atlas-callout { grid-template-columns: 1fr; padding: 25px; text-align: center; }
  .atlas-preview { width: min(255px,100%); margin: 0 auto; }
  .atlas-callout .button { grid-column: auto; justify-self: stretch; }
  .game-shell { padding: 12px; border-radius: 25px; }
  .game-toolbar { grid-template-columns: 1fr 1fr; }
  .game-toolbar > div { grid-column: 1/-1; grid-row: 1; }
  .back-button { grid-column: 1; grid-row: 2; width: 100%; }
  .hint-button { grid-column: 2; grid-row: 2; width: 100%; }
  .question-layout { grid-template-columns: 112px 1fr; gap: 14px; padding: 14px; }
  .letter-passport { min-height: 142px; }
  .letter-passport strong { font-size: 65px; }
  .letter-passport small { font-size: 10px; }
  .question-copy h1 { font-size: 27px; }
  .question-copy p { font-size: 13px; }
  .animal-grid.options-3, .animal-grid.options-4, .animal-grid.options-5 { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .animal-grid.options-3 .animal-option:last-child, .animal-grid.options-5 .animal-option:last-child { grid-column: 1/-1; width: calc(50% - 5px); justify-self: center; }
  .animal-option, .animal-grid.options-5 .animal-option:nth-child(n+4) { min-height: 235px; padding: 9px 8px 12px; border-radius: 17px; }
  .animal-option > strong { padding-top: 8px; font-size: 17px; }
  .feedback { grid-template-columns: 36px 1fr; padding: 10px; }
  .feedback-icon { width: 34px; height: 34px; }
  .feedback-family, .feedback .button { grid-column: 1/-1; justify-self: center; }
  .feedback .button { width: 100%; }
  .result-card { min-height: 0; margin-top: 22px; padding: 36px 19px; border-radius: 30px; }
  .result-card h1 { font-size: 39px; }
  .result-actions .button { width: 100%; }
  .atlas-shell { padding: 16px; border-radius: 26px; }
  .atlas-heading { grid-template-columns: 1fr; gap: 16px; }
  .atlas-heading .back-button { grid-column: auto; grid-row: auto; width: auto; justify-self: start; }
  .atlas-heading h1 { font-size: 35px; }
  .atlas-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .hero-map { min-height: 340px; }
  .hero-postcard { width: 105px; height: 143px; }
  .postcard-a { left: 22px; }
  .postcard-b { right: 18px; }
  .question-layout { grid-template-columns: 95px 1fr; }
  .letter-passport { min-height: 130px; }
  .letter-passport strong { font-size: 57px; }
  .passport-label { font-size: 7px; }
  .question-copy h1 { font-size: 23px; }
  .animal-option, .animal-grid.options-5 .animal-option:nth-child(n+4) { min-height: 210px; }
  .result-stats { grid-template-columns: 1fr; }
  .result-stats > span { min-height: 62px; }
  .result-stats > span + span { border-left: 0; border-top: 2px solid #ddd1b0; }
}

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