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

:root {
  --navy:#153d51;
  --navy-dark:#0b2939;
  --green:#3f8b67;
  --green-dark:#27684b;
  --orange:#ef8730;
  --orange-dark:#bb571d;
  --yellow:#ffd257;
  --cream:#fff8e8;
  --ink:#17384a;
  --shadow:0 18px 46px rgba(21,61,81,.18);
}

* { box-sizing:border-box; }
html,body,#app { width:100%; min-height:100%; margin:0; }
body { font-family:"Nunito",sans-serif; color:var(--ink); background:#eae7d9; overscroll-behavior:none; }
button { font:inherit; -webkit-tap-highlight-color:transparent; }
button:focus-visible { outline:4px solid var(--yellow); outline-offset:3px; }
.screen { display:none; min-height:100vh; }
.screen.active { display:block; }
.circle-button { width:46px; height:46px; border:0; border-radius:50%; background:white; color:var(--navy); box-shadow:0 4px 14px #11314424; font-size:20px; cursor:pointer; }
.primary-button { border:0; border-radius:17px; padding:17px 25px; color:white; background:linear-gradient(#ffad47,#ec7c2d); box-shadow:0 6px 0 var(--orange-dark),0 12px 24px #af4c1947; font-weight:900; letter-spacing:.04em; cursor:pointer; transition:.15s transform,.15s box-shadow; }
.primary-button:hover { transform:translateY(-2px); }
.primary-button:active { transform:translateY(4px); box-shadow:0 2px 0 var(--orange-dark); }
.chapter-tag { display:block; width:max-content; padding:7px 11px; border-radius:999px; color:#8a5812; background:#fff0b7; font-size:9px; font-weight:900; letter-spacing:.13em; }

/* Tela inicial */
.home-screen { padding:10px 16px 28px; background:linear-gradient(180deg,#fffdf5,#f5eedc); }
.brand-bar { max-width:1120px; height:70px; margin:auto; display:flex; align-items:center; gap:12px; }
.mini-logo { width:48px; height:48px; overflow:hidden; border:3px solid white; border-radius:50%; box-shadow:0 4px 13px #27475b28; }
.mini-logo img { width:100%; height:100%; object-fit:cover; }
.brand-copy { display:flex; flex-direction:column; }
.brand-copy strong { color:var(--navy); font:700 18px "Fredoka"; }
.brand-copy small { color:#77848a; font-size:8px; font-weight:900; letter-spacing:.14em; }
.brand-bar .circle-button { margin-left:auto; }
.hero-panel { position:relative; max-width:1120px; min-height:520px; margin:auto; overflow:hidden; border:6px solid white; border-radius:34px; background:linear-gradient(160deg,#e4f6e0 0 52%,#acd389 52%); box-shadow:var(--shadow); }
.hero-panel::after { content:""; position:absolute; left:-8%; right:-8%; bottom:-130px; height:280px; border-radius:50% 50% 0 0; background:#7fad64; transform:rotate(-2deg); }
.hero-text { position:relative; z-index:5; width:56%; padding:65px 0 55px 58px; }
.hero-text h1 { margin:18px 0; color:var(--navy); font:700 clamp(40px,5.1vw,67px)/.97 "Fredoka"; letter-spacing:-.04em; }
.hero-text h1 em { color:#d66e2b; font-style:normal; }
.hero-text>p { max-width:540px; margin:0; color:#3e5b62; font-size:16px; font-weight:700; line-height:1.55; }
.age-label { margin:24px 0 8px; color:#58706c; font-size:10px; font-weight:900; letter-spacing:.12em; }
.age-options { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:22px; }
.age-options button { border:2px solid white; border-radius:999px; padding:8px 12px; color:#365b5c; background:#ffffffb8; font-size:11px; font-weight:900; cursor:pointer; }
.age-options button.selected { color:white; border-color:var(--green-dark); background:var(--green-dark); }
.home-hint { display:block; margin:13px 0 0 8px; color:#647871; font-size:10px; font-weight:800; }
.hero-art { position:absolute; z-index:3; inset:0 0 0 52%; }
.ark-illustration { position:absolute; right:3%; bottom:50px; width:490px; height:370px; display:grid; place-items:end center; }
.ark-illustration::before { content:""; position:absolute; left:50%; bottom:16px; width:460px; height:170px; border-radius:50%; background:#79b6d2; transform:translateX(-50%); box-shadow:inset 0 18px 0 #8dcee3; }
.ark-illustration>span { position:absolute; right:15px; top:2px; font-size:84px; opacity:.75; }
.ark-illustration>b { position:relative; z-index:2; font-size:230px; line-height:1; filter:drop-shadow(0 14px 7px #234d4e48); transform:scaleX(1.2); }
.ark-illustration>i { position:absolute; z-index:4; left:50%; bottom:110px; width:max-content; padding:10px 16px; border-radius:24px; background:#fffbe5dd; box-shadow:0 8px 18px #2f573a30; font-style:normal; font-size:35px; transform:translateX(-50%); }
.hero-bubble { position:absolute; z-index:5; top:42px; right:26px; width:205px; padding:14px 16px; border-radius:20px; color:var(--navy); background:white; box-shadow:0 8px 22px #204f662b; text-align:center; font:600 14px/1.3 "Fredoka"; }
.hero-bubble::after { content:""; position:absolute; left:34px; bottom:-13px; border:14px solid transparent; border-top-color:white; border-left:0; }
.hero-sun { position:absolute; z-index:0; right:31%; top:36px; width:85px; height:85px; border-radius:50%; background:var(--yellow); box-shadow:0 0 0 15px #ffe88766; }
.hero-cloud,.cloud { position:absolute; width:105px; height:29px; border-radius:99px; background:#ffffffbd; }
.hero-cloud::before,.hero-cloud::after,.cloud::before,.cloud::after { content:""; position:absolute; bottom:0; border-radius:50%; background:inherit; }
.hero-cloud::before,.cloud::before { left:18px; width:46px; height:46px; }
.hero-cloud::after,.cloud::after { right:9px; width:58px; height:58px; }
.cloud-a { top:105px; left:48%; }
.cloud-b { top:160px; right:5%; transform:scale(.75); }
.benefit-row { max-width:1060px; margin:22px auto 0; display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.benefit-row article { display:flex; align-items:center; gap:12px; padding:10px 16px; }
.benefit-row article>span { width:52px; height:52px; flex:0 0 auto; display:grid; place-items:center; border-radius:17px; background:white; box-shadow:0 5px 17px #173b5715; font-size:29px; }
.benefit-row strong,.benefit-row small { display:block; }
.benefit-row strong { color:var(--navy); font:600 16px "Fredoka"; }
.benefit-row small { color:#71808a; font-size:10px; font-weight:800; }

/* História */
.intro-screen { position:relative; overflow:hidden; background:#111; }
.intro-screen.active { display:grid; place-items:end center; }
.classroom { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
.story-shade { position:absolute; inset:0; background:linear-gradient(transparent 25%,rgba(12,39,48,.82)); }
.story-card { position:relative; z-index:2; width:min(900px,calc(100% - 32px)); min-height:190px; margin:0 auto 35px; display:grid; grid-template-columns:175px 1fr; align-items:end; border:5px solid white; border-radius:28px; background:#fffdf4ed; box-shadow:0 20px 50px #00000054; backdrop-filter:blur(8px); }
.sprite { display:block; background-repeat:no-repeat; background-position:0 0; }
.tio-sprite { background-image:url("assets/animations/tio-calvino-talk-v2.png"); background-size:400% 100%; }
.story-card>.story-tio { width:126px; height:282px; align-self:end; margin:-92px auto 0; filter:drop-shadow(0 7px 5px #4025112e); }
.tio-sprite.talking { animation:spriteFour .95s linear infinite; }
.story-card>div { padding:22px 28px 23px; }
.speaker { color:#d76b28; font-size:9px; font-weight:900; letter-spacing:.18em; }
.story-card p { margin:7px 0 18px; color:var(--navy); font:600 18px/1.48 "Fredoka"; }
.story-card .primary-button { padding:12px 18px; font-size:11px; }

/* Jogo */
.game-screen { padding-bottom:108px; background:#eee9da; }
.game-header { position:relative; z-index:20; height:72px; display:flex; align-items:center; gap:13px; padding:9px clamp(11px,3vw,36px); background:white; box-shadow:0 5px 18px #12334829; }
.game-header .circle-button { background:#edf3ef; box-shadow:none; }
.game-title { display:flex; flex-direction:column; }
.game-title small { color:#d66d2c; font-size:8px; font-weight:900; letter-spacing:.16em; }
.game-title strong { color:var(--navy); font:600 15px "Fredoka"; }
.score { margin-left:auto; display:flex; align-items:center; gap:5px; padding:7px 11px; border-radius:99px; color:#8d6212; background:#fff5ca; }
.score span { font-size:18px; }
.score strong { font-size:12px; }
.progress { display:flex; align-items:center; gap:8px; }
.progress>span { color:#3e825d; font-size:11px; font-weight:900; }
.progress>div { width:min(16vw,165px); height:10px; overflow:hidden; border-radius:99px; background:#e0e5dc; }
.progress i { display:block; width:0; height:100%; border-radius:99px; background:linear-gradient(90deg,#4f9d6b,#f2ca46); transition:.35s; }
.world { position:relative; height:min(57vh,520px); min-height:360px; overflow:hidden; border-bottom:7px solid #aa7c46; outline:0; background:linear-gradient(#c7eff4 0 59%,#80af62 59%); transition:.45s background; }
.world::after { content:""; position:absolute; z-index:3; left:-5%; right:-5%; bottom:-120px; height:250px; border-radius:50% 50% 0 0/44% 44% 0 0; background:#e4bd7f; transform:rotate(-2deg); }
.world.level-2 { background:linear-gradient(#b6e5dc 0 55%,#4d8654 55%); }
.world.level-2::after { background:#bc955f; }
.world.level-3 { background:linear-gradient(#bfeafd 0 58%,#75a85d 58%); }
.world.level-3::after { background:#e0b274; }
.sun { position:absolute; z-index:0; right:8%; top:28px; width:78px; height:78px; border-radius:50%; background:var(--yellow); box-shadow:0 0 0 16px #ffe88270; }
.level-2 .sun { opacity:.5; }
.cloud-1 { z-index:1; top:75px; left:13%; }
.cloud-2 { z-index:1; top:125px; right:24%; transform:scale(.72); }
.hills { position:absolute; left:-4%; right:-4%; border-radius:50% 50% 0 0/100% 100% 0 0; }
.hill-far { height:190px; bottom:100px; background:#9cc571; transform:rotate(2deg); }
.hill-near { height:145px; bottom:49px; background:#65964e; transform:rotate(-2deg); }
.level-2 .hill-far { background:#4f855a; }
.level-2 .hill-near { background:#2f6a48; }
.level-3 .hill-far { background:#8dbc6f; }
.level-3 .hill-near { background:#5f914d; }
.forest-line { position:absolute; z-index:4; left:0; right:0; bottom:102px; overflow:hidden; color:#215b40; font-size:73px; letter-spacing:4vw; white-space:nowrap; filter:drop-shadow(0 5px 3px #214d3238); opacity:.6; }
.level-1 .forest-line { opacity:.25; transform:scale(.75); transform-origin:bottom; }
.level-3 .forest-line { opacity:.18; }
.ark { position:absolute; z-index:5; right:-14px; bottom:88px; display:flex; flex-direction:column; align-items:center; opacity:.22; filter:grayscale(.6); transition:.4s; }
.ark span { font-size:94px; line-height:1; filter:drop-shadow(0 7px 3px #173c3542); }
.ark small { margin-top:-8px; padding:4px 10px; border-radius:99px; color:white; background:var(--green-dark); font-size:8px; font-weight:900; letter-spacing:.08em; }
.level-3 .ark { right:1%; opacity:1; filter:none; }
.animal-layer { position:absolute; inset:0; z-index:7; }
.animal-object { position:absolute; bottom:103px; width:96px; min-height:98px; margin-left:-48px; display:flex; flex-direction:column; align-items:center; border:0; background:none; cursor:pointer; transition:.28s opacity,.28s transform; }
.animal-object>span { position:relative; width:88px; height:70px; display:flex; align-items:end; justify-content:center; gap:0; border:4px solid white; border-radius:50% 50% 42% 42%; background:#ffffffdc; box-shadow:0 6px 13px #2e4b3045; font-size:47px; line-height:1; }
.animal-object>span i { margin-left:-14px; font-style:normal; font-size:39px; transform:scaleX(-1); }
.animal-object small { margin-top:-3px; padding:4px 8px; border-radius:99px; color:white; background:var(--navy); font-size:8px; font-weight:900; }
.animal-object.collected { pointer-events:none; opacity:0; transform:translateY(-24px) scale(.55); }
.player { position:absolute; z-index:10; bottom:45px; width:112px; margin-left:-56px; pointer-events:none; filter:drop-shadow(0 7px 4px #20361959); transition:left .045s linear; }
.joao-sprite { width:112px; height:155px; background-image:url("assets/animations/joao-walk-v2.png"); background-size:400% 100%; transform-origin:center bottom; animation:joaoIdle 1.4s ease-in-out infinite alternate; }
.player.right .joao-sprite { transform:scaleX(-1); }
.player.left .joao-sprite { transform:scaleX(1); }
.player i { display:block; width:62px; height:10px; margin:-9px auto 0; border-radius:50%; background:#2b45264d; }
.player.walking .joao-sprite { animation:spriteFour .54s linear infinite; }
.player.celebrating .joao-sprite { animation:joaoCelebrate .65s ease-in-out; }
@keyframes joaoIdle { to { translate:0 -3px; } }
@keyframes joaoCelebrate { 50% { translate:0 -18px; rotate:-3deg; } }
@keyframes spriteFour { 0%,24.99% { background-position:0 0; } 25%,49.99% { background-position:33.333% 0; } 50%,74.99% { background-position:66.666% 0; } 75%,100% { background-position:100% 0; } }
.nearby-button { position:absolute; z-index:15; left:50%; bottom:204px; transform:translateX(-50%); border:0; border-radius:99px; padding:11px 16px; color:#5f3d08; background:var(--yellow); box-shadow:0 5px 0 #d9a72b; font-size:9px; font-weight:900; cursor:pointer; animation:float .7s ease-in-out infinite alternate; }
@keyframes float { to { transform:translate(-50%,-5px); } }
.mission-area { max-width:1150px; margin:auto; padding:14px 16px; display:grid; grid-template-columns:1.08fr 1fr; gap:14px; }
.dialog-box { min-height:76px; display:flex; align-items:center; gap:12px; padding:9px 13px; border-left:6px solid #e98a37; border-radius:18px; background:white; box-shadow:0 5px 18px #173b5714; }
.dialog-box>.dialog-tio { width:31px; height:69px; flex:0 0 auto; filter:drop-shadow(0 3px 2px #48291324); }
.dialog-box p { flex:1; margin:0; font-size:12px; line-height:1.45; font-weight:800; }
.dialog-box p strong { color:#ce6826; }
.listen-button { width:34px; height:34px; flex:0 0 auto; border:0; border-radius:50%; background:#edf2ed; cursor:pointer; }
.quest-list { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.quest-list article { min-width:0; display:flex; align-items:center; gap:7px; padding:8px; border:2px solid #ded9c9; border-radius:14px; background:#faf8f0; opacity:.65; }
.quest-list article>span { width:30px; height:30px; flex:0 0 auto; display:grid; place-items:center; border-radius:9px; background:white; }
.quest-list article>div { min-width:0; flex:1; }
.quest-list strong,.quest-list small { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.quest-list strong { font-size:9px; }
.quest-list small { color:#7a8586; font-size:7px; }
.quest-list article>b { color:#a6aaa2; font-size:13px; }
.quest-list article.done { opacity:1; border-color:#69a979; background:#e9f6e9; }
.quest-list article.done>b { color:#3d8d5a; font-size:0; }
.quest-list article.done>b::after { content:"✓"; font-size:16px; }
.touch-controls { position:fixed; z-index:40; left:50%; bottom:max(13px,env(safe-area-inset-bottom)); display:flex; align-items:center; gap:13px; padding:9px 13px; border-radius:25px; background:#ffffffdf; box-shadow:0 8px 28px #173b5742; backdrop-filter:blur(9px); transform:translateX(-50%); }
.touch-controls button { width:59px; height:59px; border:0; border-radius:18px; color:white; background:var(--navy); box-shadow:0 5px 0 var(--navy-dark); font-size:24px; cursor:pointer; touch-action:none; }
.touch-controls button:active { transform:translateY(3px); box-shadow:0 2px 0 var(--navy-dark); }
.touch-controls .action { width:78px; height:78px; display:flex; flex-direction:column; align-items:center; justify-content:center; background:var(--orange); box-shadow:0 5px 0 var(--orange-dark); }
.touch-controls .action span { line-height:1; }
.touch-controls .action small { font-size:7px; font-weight:900; }

/* Perguntas e conclusão */
.modal[hidden] { display:none; }
.modal { position:fixed; z-index:100; inset:0; display:grid; place-items:center; padding:18px; background:#091f2eab; backdrop-filter:blur(7px); }
.modal-card { position:relative; width:min(520px,100%); padding:28px clamp(20px,5vw,45px); border:6px solid white; border-radius:30px; background:#fffaf0; box-shadow:0 25px 70px #00000057; text-align:center; }
.quiz-icon { width:82px; height:82px; margin:-6px auto 15px; display:grid; place-items:center; border-radius:50%; background:#fff1ba; box-shadow:0 0 0 10px #ffe69366; font-size:47px; }
.modal-card .chapter-tag { margin:auto; }
.modal-card h2 { margin:7px 0 8px; color:var(--navy); font:700 31px "Fredoka"; }
.modal-card>p { color:#536b79; font-weight:700; line-height:1.45; }
.answer-options { display:grid; gap:9px; margin-top:18px; }
.answer-options button { border:2px solid #dcd8c9; border-radius:15px; padding:13px 15px; color:var(--navy); background:white; text-align:left; font-size:12px; font-weight:900; cursor:pointer; }
.answer-options button:hover { border-color:#ef9b3e; background:#fff5dc; }
.answer-options button.correct { color:#3d7024; border-color:#6ba840; background:#eaf7de; }
.answer-options button.wrong { color:#963d2b; border-color:#dc7056; background:#ffebe6; }
.feedback { min-height:22px; margin-bottom:0; color:#548633!important; font-size:12px; font-weight:900!important; }
.phase-card .primary-button { margin-top:10px; }
.finish-screen { position:relative; overflow:hidden; padding:25px; background:radial-gradient(circle at 50% 30%,#fff8c7,#c5eef0); }
.finish-screen.active { display:grid; place-items:center; }
.finish-screen::before,.finish-screen::after { content:""; position:absolute; width:320px; height:320px; border-radius:50%; background:#fff8ba55; }
.finish-screen::before { left:-100px; top:-80px; }
.finish-screen::after { right:-100px; bottom:-100px; }
.confetti { position:absolute; inset:6% 3% auto; color:#e8822c; font-size:34px; letter-spacing:6vw; transform:rotate(-5deg); }
.finish-card { position:relative; z-index:2; width:min(610px,100%); padding:25px clamp(22px,6vw,58px) 28px; border:7px solid white; border-radius:35px; background:#fffdf7; box-shadow:var(--shadow); text-align:center; }
.celebration-character { position:absolute; z-index:-1; bottom:20px; width:115px; height:230px; background-size:400% 100%; filter:drop-shadow(0 8px 5px #233c2e33); }
.olivia-sprite { background-image:url("assets/animations/olivia-celebrate-v2.png"); }
.sara-sprite { background-image:url("assets/animations/sara-celebrate-v2.png"); }
.olivia-celebration { left:-137px; }
.sara-celebration { right:-137px; }
.finish-screen.active .olivia-sprite { animation:spriteFour 1.75s linear infinite; }
.finish-screen.active .sara-sprite { animation:spriteFour 1.75s .22s linear infinite; }
.medal { width:105px; height:105px; margin:auto; display:grid; place-items:center; border-radius:50%; background:#fff1af; box-shadow:0 0 0 13px #ffe68b70; font-size:65px; }
.finish-card .chapter-tag { margin:18px auto 0; }
.finish-card h2 { margin:8px 0 10px; color:var(--navy); font:700 clamp(38px,7vw,58px)/1 "Fredoka"; }
.finish-card>p { color:#5b6e78; font-weight:700; line-height:1.5; }
.finish-card blockquote { margin:18px 0; padding:15px; border-radius:18px; color:#407145; background:#e9f6e7; font:600 19px "Fredoka"; }
.finish-card cite { display:block; margin-top:5px; font:900 9px "Nunito"; letter-spacing:.13em; }
.final-score small,.final-score strong { display:block; }
.final-score small { color:#7a7d75; font-size:8px; font-weight:900; letter-spacing:.14em; }
.final-score strong { color:#8b6119; font-size:17px; }
.badge { width:max-content; max-width:100%; margin:14px auto 22px; padding:9px 17px; display:flex; align-items:center; gap:11px; border:2px solid #7fc39d; border-radius:17px; background:#e9f8ed; text-align:left; }
.badge>span { font-size:36px; }
.badge small,.badge strong { display:block; }
.badge small { color:#40805b; font-size:7px; font-weight:900; letter-spacing:.13em; }
.badge strong { color:#2e6446; }
.finish-card .primary-button { margin-right:7px; padding:13px 19px; font-size:11px; }
.secondary-button { border:0; padding:13px 16px; color:#5b6d76; background:transparent; font-size:10px; font-weight:900; cursor:pointer; }

@media (max-width:820px) {
  .home-screen { padding:5px 9px 25px; }
  .brand-bar { height:59px; padding:0 5px; }
  .mini-logo { width:43px; height:43px; }
  .brand-copy strong { font-size:16px; }
  .hero-panel { min-height:705px; border-width:4px; border-radius:26px; }
  .hero-text { width:100%; padding:35px 22px 330px; text-align:center; }
  .hero-text .chapter-tag { margin:auto; }
  .hero-text>p { margin-left:auto; margin-right:auto; }
  .age-options { justify-content:center; }
  .hero-art { inset:auto 0 0; height:340px; }
  .ark-illustration { right:50%; bottom:13px; width:460px; height:325px; transform:translateX(50%) scale(.83); }
  .hero-bubble { top:-6px; right:7%; width:170px; font-size:11px; }
  .hero-sun { right:8%; top:220px; }
  .cloud-a { left:8%; top:255px; }
  .benefit-row { grid-template-columns:1fr; gap:1px; padding:0 10px; }
  .benefit-row article { padding:6px 12px; }
  .story-card { grid-template-columns:120px 1fr; margin-bottom:18px; }
  .story-card>.story-tio { width:83px; height:185px; }
  .story-card>div { padding:15px 14px; }
  .story-card p { font-size:14px; }
  .game-header { height:63px; gap:7px; }
  .game-header .circle-button { width:39px; height:39px; font-size:17px; }
  .game-title strong { max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
  .score { padding:5px 7px; }
  .progress>span { display:none; }
  .progress>div { width:68px; }
  .world { height:49vh; min-height:355px; }
  .animal-object { transform:scale(.85); transform-origin:bottom; }
  .animal-object.collected { transform:translateY(-24px) scale(.5); }
  .forest-line { font-size:60px; }
  .ark span { font-size:75px; }
  .player { width:96px; margin-left:-48px; }
  .joao-sprite { width:96px; height:140px; }
  .mission-area { grid-template-columns:1fr; gap:7px; padding:9px; }
  .dialog-box { min-height:62px; padding:6px 9px; }
  .dialog-box>.dialog-tio { width:23px; height:51px; }
  .dialog-box p { font-size:10px; }
  .quest-list { gap:5px; }
  .quest-list article { padding:5px; }
  .quest-list small { display:none; }
  .celebration-character { width:80px; height:160px; }
  .olivia-celebration { left:-82px; }
  .sara-celebration { right:-82px; }
}

@media (max-width:500px) {
  .hero-text h1 { font-size:39px; }
  .hero-text { padding-bottom:305px; }
  .hero-panel { min-height:690px; }
  .hero-art { height:310px; }
  .ark-illustration { bottom:-5px; transform:translateX(50%) scale(.7); }
  .home-hint { display:none; }
  .age-label { margin-top:17px; }
  .brand-copy strong { font-size:14px; }
  .brand-copy small { letter-spacing:.1em; }
  .intro-screen.active { align-items:end; }
  .story-card { grid-template-columns:1fr; text-align:center; }
  .story-card>.story-tio { display:none; }
  .story-card>div { padding:18px; }
  .story-card p { font-size:15px; }
  .game-title strong { max-width:120px; }
  .game-title small { font-size:6px; }
  .score span { font-size:14px; }
  .progress { display:none; }
  .world { min-height:345px; }
  .animal-object { transform:scale(.72); }
  .animal-object.collected { transform:translateY(-20px) scale(.4); }
  .quest-list strong { font-size:8px; }
  .modal-card h2 { font-size:26px; }
  .celebration-character { display:none; }
  .finish-card .primary-button,.secondary-button { display:block; width:100%; margin:7px 0; }
}

@media (orientation:landscape) and (max-height:560px) {
  .game-header { height:55px; }
  .world { height:calc(100vh - 160px); min-height:285px; }
  .mission-area { padding:5px 12px; }
  .dialog-box { min-height:54px; }
  .quest-list { display:none; }
  .game-screen { padding-bottom:0; }
  .touch-controls { bottom:8px; transform:translateX(-50%) scale(.78); transform-origin:bottom; }
  .story-card { min-height:140px; margin-bottom:10px; }
  .story-card>.story-tio { width:76px; height:170px; }
  .finish-card { transform:scale(.78); }
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; }
}
