*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:var(--header-height)}body{margin:0;background-color:#fff;background-image:linear-gradient(rgba(255,255,255,.95),rgba(255,255,255,.95)),url("assets/pattern-kurshe.png");background-repeat:repeat;background-size:auto,960px 540px;color:var(--color-ink);font:var(--body-size)/1.55 "Nunito Sans",Arial,sans-serif}body.is-modal-open{overflow:hidden}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}img{display:block;max-width:100%}a{color:inherit}.page-container{width:min(var(--content-width),calc(100% - 48px));margin-inline:auto}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;z-index:1000;left:16px;top:16px;transform:translateY(-160%);background:#fff;padding:10px 16px;border-radius:12px}.skip-link:focus{transform:none}
h1,h2,h3,strong,.button,.brand{font-family:"Nunito",Arial,sans-serif}h1,h2,h3,p{margin-top:0}p{color:var(--color-text)}h1{font-size:min(var(--display-size),9vw);line-height:1.05;letter-spacing:-.025em;font-weight:900;margin-bottom:22px}h2{font-size:min(var(--section-title-size),8vw);line-height:1.08;letter-spacing:-.02em;font-weight:900;margin-bottom:18px}h3{font-size:min(var(--card-title-size),7vw);line-height:1.1;font-weight:900}.eyebrow{margin-bottom:12px;color:var(--color-eyebrow);font-size:13px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.button{min-height:var(--button-height);padding:13px 24px;border:0;border-radius:17px;display:inline-flex;align-items:center;justify-content:center;gap:12px;font-weight:900;text-decoration:none;cursor:pointer;transition:transform .18s,box-shadow .18s}.button:hover{transform:translateY(-3px)}.button--primary{color:#fff;background:var(--color-orange);box-shadow:var(--shadow-button)}.button--primary:hover{box-shadow:0 5px 0 var(--color-orange-dark)}.button--blue{color:#fff;background:var(--color-blue);box-shadow:0 8px 0 var(--color-blue-dark)}.button--green,.button--dark{color:#fff;background:var(--color-ink);box-shadow:0 8px 0 #092820}.button--outline{color:var(--color-ink);background:#fff;border:2px solid var(--color-ink)}
.site-header{position:relative;z-index:50;width:min(var(--content-width),calc(100% - 24px));height:var(--header-height);margin:12px auto 0;padding-inline:24px;display:flex;align-items:center;justify-content:space-between;background:#fff;border:1px solid rgba(21,63,54,.15);border-radius:24px;box-shadow:0 10px 28px rgba(21,63,54,.1)}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:21px;font-weight:900}.brand__mark{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:var(--color-violet);color:#fff;box-shadow:0 7px 15px rgba(71,55,113,.22);transform:rotate(-4deg)}.site-header__nav{display:flex;align-items:center;gap:26px;font-weight:800;font-size:15px}.site-header__nav a{text-decoration:none}.site-header__nav a:hover{color:var(--color-orange-dark)}.language-switch{display:flex;gap:4px;padding:4px;border-radius:14px;background:#edf1ee}.language-switch__button{min-width:42px;padding:7px 9px;border:0;border-radius:10px;background:transparent;color:var(--color-ink);font-weight:900;cursor:pointer}.language-switch__button.is-active{background:#fff;color:var(--color-orange-dark);box-shadow:0 2px 7px rgba(21,63,54,.14)}.language-switch__button:focus-visible{outline:3px solid var(--color-orange);outline-offset:2px}
.hero{position:relative;width:calc(100% - 24px);max-width:var(--site-width);height:var(--hero-min-height);min-height:0;margin:12px auto;overflow:hidden;border-radius:42px;background:#aee7f5 url("assets/backgrounds/hero-kazan.webp") center/cover no-repeat}.hero__inner{position:relative;height:100%;min-height:0;display:flex;align-items:center;padding-block:32px}.hero__panel{position:relative;z-index:2;width:min(590px,54%);padding:32px;border-radius:var(--panel-radius);background:var(--color-surface);border:2px solid rgba(255,255,255,.9);box-shadow:var(--shadow-panel)}.hero__panel>p:not(.eyebrow):not(.hero__hello){color:var(--color-text);margin-bottom:8px}.hero__hello{margin-bottom:7px;color:#32765f;font:900 21px/1.2 "Nunito"}.hero__facts{display:flex;flex-wrap:wrap;gap:9px;margin:17px 0}.hero__facts>span{display:flex;align-items:baseline;gap:5px;padding:7px 12px;border-radius:12px;background:#e8f0e8;font-weight:800;font-size:14px}.hero__facts strong{font-size:19px;color:var(--color-orange-dark)}.hero__avi{position:absolute;z-index:3;right:-36px;bottom:-45px;width:min(32vw,300px);height:auto;filter:drop-shadow(0 20px 18px rgba(19,57,48,.25));pointer-events:none}
.games-intro{position:relative;isolation:isolate;width:100%;max-width:var(--site-width);margin-inline:auto;padding:88px 0;overflow:hidden;background-color:#fff;border-radius:32px}.games-intro::before,.finale::before,.avi-app::before{content:"";position:absolute;z-index:0;inset:0;background:url("assets/pattern-kurshe.png") center/960px 540px repeat;opacity:.05;pointer-events:none}.games-intro>.page-container,.finale>.page-container,.avi-app>.page-container{position:relative;z-index:1}.section-heading{max-width:760px;text-align:center}.section-heading>p:not(.eyebrow){max-width:650px;margin-inline:auto;color:var(--color-text)}.progress-summary{display:inline-flex;align-items:center;gap:9px;margin-top:12px;padding:10px 16px;border-radius:999px;background:#fff;border:1px solid rgba(21,63,54,.15);box-shadow:0 8px 24px rgba(21,63,54,.08)}.progress-summary span{color:var(--color-orange)}
.story-habitat{position:relative;width:calc(100% - 24px);max-width:var(--site-width);margin:var(--section-gap) auto;overflow:hidden;border-radius:48px;background-position:center;background-size:cover;background-repeat:no-repeat;box-shadow:0 22px 55px rgba(72,48,20,.12)}.story-habitat::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(to bottom,transparent 42%,rgba(255,255,255,.12) 50%,transparent 58%)}.story-habitat--zilant{background-image:url("assets/backgrounds/slide-zilant.webp")}.story-habitat--su{background-image:url("assets/backgrounds/slide-su-anasy.webp")}.story-habitat--shurale{background-image:url("assets/backgrounds/slide-shurale.webp")}.story-slide{position:relative;width:calc(100% - 24px);max-width:var(--site-width);min-height:var(--slide-min-height);margin:var(--section-gap) auto;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:20px;padding:26px 0;overflow:hidden;border-radius:48px;background-position:center;background-size:cover;background-repeat:no-repeat}.story-habitat .story-slide{z-index:1;width:100%;max-width:none;margin:0;border-radius:0;background-image:none}.story-habitat .story-slide+.story-slide{margin-top:var(--paired-slide-gap)}.story-slide--zilant{background-image:url("assets/backgrounds/slide-zilant.webp")}.story-slide--su{background-image:url("assets/backgrounds/slide-su-anasy.webp")}.story-slide--shurale{background-image:url("assets/backgrounds/slide-shurale.webp")}.story-slide--avi{background-image:url("assets/backgrounds/slide-avi.webp")}.story-slide--reverse{background-position:60% center}.story-habitat__heading{position:relative;z-index:3;padding:26px 24px 0;text-align:center}.story-habitat__heading--single{padding-top:0}.story-habitat__title,.story-slide__chapter{position:relative;z-index:3;margin:0;color:#fff;font:900 40px/1.1 "Nunito",Arial,sans-serif;text-align:center;text-shadow:0 3px 12px rgba(21,63,54,.26)}.story-habitat__subtitle{max-width:720px;margin:10px auto 0;color:#fff;font-size:17px;font-weight:800;text-align:center;text-shadow:0 2px 10px rgba(21,63,54,.38)}.story-habitat__outro{position:relative;z-index:3;width:min(760px,calc(100% - 48px));margin:0 auto 32px;padding:18px 24px;border:2px solid rgba(255,255,255,.72);border-radius:20px;background:rgba(255,255,255,.86);color:var(--color-title);font-weight:800;text-align:center;box-shadow:0 12px 30px rgba(21,63,54,.14)}.story-slide__inner{position:relative;z-index:2;display:grid;grid-template-columns:.92fr 1.08fr;gap:var(--panel-gap);align-items:stretch;padding:var(--panel-padding);background:var(--color-surface);border:8px solid #12b9c059;border-radius:calc(var(--panel-radius) + 12px);box-shadow:0 22px 55px rgba(72,48,20,.22)}.story-slide--reverse .chapter-card{grid-column:2}.story-slide--reverse .game-stage{grid-column:1;grid-row:1}
.chapter-card,.game-stage{min-height:540px;border-radius:var(--panel-radius);background:transparent}.chapter-card{position:relative;padding:8px var(--panel-padding) 175px 8px;overflow:visible;border:0;box-shadow:none}.chapter-card h2{color:var(--color-title)}.chapter-card>p:not(.eyebrow){max-width:475px;color:var(--color-text);font-size:18px}.narration-button{position:absolute;z-index:3;left:8px;bottom:var(--panel-padding);width:58px;min-height:58px;padding:0;color:#fff;background:var(--color-orange);box-shadow:var(--shadow-button)}.narration-button svg{width:27px;height:27px;fill:currentColor}.narration-button.is-playing{transform:translateY(-3px) scale(1.06);box-shadow:0 5px 0 var(--color-orange-dark),0 0 0 5px rgba(255,255,255,.68)}.chapter-card__character{position:absolute;z-index:4;right:var(--character-outside-x);bottom:var(--character-outside-y);width:var(--character-width);height:auto;object-fit:contain;object-position:right bottom;filter:drop-shadow(0 20px 18px rgba(19,57,48,.2));pointer-events:none}.chapter-card__character--avi{width:var(--character-width);height:auto}.story-slide--reverse .chapter-card__character{right:auto;left:var(--character-outside-x);object-position:left bottom}.story-slide--reverse .narration-button{left:auto;right:var(--panel-padding)}.story-slide--reverse .chapter-card>p:not(.eyebrow),.story-slide--reverse .chapter-card h2{margin-left:0}.character-anchor{position:absolute;right:78px;bottom:var(--character-outside-y);width:1px;height:1px;pointer-events:none}.character-anchor--zilant{right:78px}.story-slide--reverse .character-anchor{right:auto;left:78px}.story-slide--reverse .character-anchor--zilant{left:78px}.story-habitat__companion{position:absolute;z-index:8;left:0;top:0;width:var(--character-width);height:auto;max-width:none;opacity:0;transform:translate(-50%,-100%);transform-origin:50% 100%;filter:drop-shadow(0 20px 18px rgba(19,57,48,.2));pointer-events:none;will-change:left,top,transform}.story-habitat__companion--zilant{width:var(--character-width)}.story-habitat__companion.is-positioned{opacity:1}
.game-stage{position:relative;padding:18px;border:3px solid #12b9c059;display:flex;flex-direction:column;gap:14px;color:var(--color-ink);background:transparent;text-align:left;overflow:hidden;box-shadow:0 10px 26px rgba(99,68,28,.12);transition:transform .2s,box-shadow .2s}.game-stage:hover{transform:translateY(-5px);box-shadow:0 18px 38px rgba(99,68,28,.2)}.game-card__preview{position:relative;flex:1;min-height:410px;overflow:hidden;border:2px dashed rgba(21,63,54,.28);border-radius:calc(var(--panel-radius) - 12px);background:var(--color-surface)}.game-card__preview>img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center}.game-card__launch{width:100%;flex:0 0 auto;color:#fff;background:var(--color-orange);box-shadow:var(--shadow-button)}.story-slide--zilant .narration-button,.story-slide--zilant .game-card__launch{background:var(--zilant-button);box-shadow:0 8px 0 var(--zilant-button-shadow)}.story-slide--su .narration-button,.story-slide--su .game-card__launch{background:var(--color-blue);box-shadow:0 8px 0 var(--color-blue-dark)}.story-slide--shurale .narration-button,.story-slide--shurale .game-card__launch{background:var(--color-ink);box-shadow:0 8px 0 #092820}.game-card__status{display:none;position:absolute;right:9px;top:9px;width:44px;height:44px;border-radius:50%;place-items:center;background:var(--color-ink);color:#fff;border:4px solid #fff;font-style:normal;font-weight:900}.game-card.is-completed .game-card__status{display:grid}
.finale{position:relative;isolation:isolate;width:100%;max-width:var(--site-width);margin:var(--section-gap) auto 0;padding:48px 0;overflow:hidden;border-radius:32px;background-color:var(--color-ink);color:#fff}.section-heading--light{margin-inline:auto;margin-bottom:56px}.section-heading--light .eyebrow{color:var(--color-eyebrow)}.section-heading--light>p:not(.eyebrow){color:#d3e2dc}.finale__friends{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:50px}.friend{padding:18px;border-radius:24px;background:#fff;color:var(--color-ink);text-align:center}.friend img{width:100%;height:160px;object-fit:contain;margin-top:-42px}.friend p{margin:5px 0 0;font-weight:800}.resources{display:grid;grid-template-columns:1.08fr .92fr;gap:24px}.resource{display:grid;gap:24px;padding:24px;border-radius:30px;background:#fff;color:var(--color-ink);box-shadow:0 18px 44px rgba(0,0,0,.18)}.resource--diploma{grid-template-columns:1fr 1fr}.resource--guide{grid-template-columns:170px 1fr}.resource img{width:100%;height:100%;max-height:350px;object-fit:contain;border-radius:17px}.resource h3{font-size:30px}.resource input{width:100%;margin:7px 0 15px;padding:14px;border:2px solid #c4d1cc;border-radius:14px;background:#fff;outline:0}.resource input:focus{border-color:var(--color-orange)}
.avi-app{position:relative;isolation:isolate;width:100%;max-width:var(--site-width);margin:var(--section-gap) auto 0;padding:78px 0 34px;overflow:hidden;border-radius:32px;background-color:var(--color-avi-app)}.avi-app__inner{display:grid;grid-template-columns:330px 1fr;align-items:center;gap:55px}.avi-app__inner>img{width:300px;height:auto;object-fit:contain;margin-bottom:-105px;filter:drop-shadow(0 18px 15px rgba(75,53,12,.2))}.avi-app p:not(.eyebrow){max-width:650px;color:var(--color-text)}.partner-logos{position:relative;z-index:3;display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:56px}.partner-logo{min-width:0;padding:10px;border-radius:20px;background:rgba(255,255,255,.9);box-shadow:0 12px 30px rgba(75,53,12,.12)}.partner-logo img{width:100%;aspect-ratio:8/3;object-fit:contain}
.site-footer{width:100%;max-width:var(--site-width);margin-inline:auto;padding-top:32px;border-radius:32px 32px 0 0;background:#102f28;color:#e6efeb}.site-footer__inner{display:grid;grid-template-columns:1.4fr 1fr auto;gap:45px;padding-bottom:40px}.brand--footer{color:#fff}.site-footer p{margin:12px 0 5px;color:#b8cbc3}.site-footer a{text-decoration:none}.footer-meta{display:flex;flex-direction:column;align-items:flex-end;gap:22px}.footer-meta b{width:50px;height:50px;display:grid;place-items:center;border:2px solid #fff;border-radius:50%}.site-footer__legal{display:flex;justify-content:space-between;padding-block:18px;border-top:1px solid #315047;color:#9eb3aa;font-size:13px}
.game-dialog{width:100vw;height:100dvh;max-width:none;max-height:none;padding:16px;border:0;background:rgba(8,28,23,.86)}.game-dialog::backdrop{background:rgba(8,28,23,.86)}.game-dialog__panel{width:min(1280px,100%);height:100%;margin:auto;display:grid;grid-template-rows:auto 1fr auto;overflow:hidden;border-radius:24px;background:#fff}.game-dialog header,.game-dialog footer{padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:15px}.game-dialog h2{margin:0;font-size:25px}.game-dialog header p{margin:0;color:var(--color-orange-dark);font-weight:900}.icon-button{width:45px;height:45px;border:0;border-radius:50%;background:#edf1ee;font-size:28px;cursor:pointer}.game-dialog__stage{position:relative;min-height:0;display:grid;place-items:center;overflow:hidden;background:#15231f}.game-dialog iframe{display:block;width:100%;height:100%;max-width:100%;max-height:100%;border:0;background:#000}.game-dialog iframe:fullscreen,.game-dialog iframe:-webkit-full-screen{width:100%;height:100%;max-width:none;max-height:none}.game-dialog__empty{width:100%;height:100%;padding:30px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;text-align:center}.game-dialog__empty[hidden]{display:none}.game-dialog footer p{margin:0;color:var(--color-text);font-size:14px}.game-dialog footer>div{display:flex;gap:8px}.game-dialog #fullscreen-game:disabled{cursor:not-allowed;opacity:.55}.toast{position:fixed;z-index:200;left:50%;bottom:24px;transform:translate(-50%,140%);padding:12px 18px;border-radius:14px;background:#102f28;color:#fff;transition:transform .25s}.toast.is-visible{transform:translate(-50%,0)}
.game-dialog__loader{position:absolute;z-index:2;inset:0;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 34%,#fff7d7 0,#ffecb6 38%,#dff1ea 100%);color:var(--color-ink)}.game-dialog__loader[hidden]{display:none}.game-dialog__loader-card{width:min(430px,100%);padding:32px;border:2px solid rgba(255,255,255,.92);border-radius:28px;background:rgba(255,255,255,.92);box-shadow:var(--shadow-panel);text-align:center}.game-dialog__loader-mark{width:64px;height:64px;margin:0 auto 18px;display:grid;place-items:center;border-radius:20px;background:var(--color-orange);color:#fff;font-size:30px;box-shadow:0 8px 0 var(--color-orange-dark);animation:game-loader-breathe 1.4s ease-in-out infinite}.game-dialog__loader-card strong{display:block;min-height:1.55em;font-size:22px}.game-dialog__loader-track{height:16px;margin-top:22px;overflow:hidden;border:2px solid rgba(21,63,54,.16);border-radius:999px;background:#e5ece9}.game-dialog__loader-track span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--color-orange),var(--color-yellow));transition:width .18s ease}.game-dialog__loader-percent{display:block;min-height:1.5em;margin-top:8px;color:var(--color-text);font-weight:900}.game-dialog__loader.is-indeterminate .game-dialog__loader-track span{width:36%;animation:game-loader-slide 1.15s ease-in-out infinite}.game-dialog__loader.is-error .game-dialog__loader-mark{background:var(--color-orange-dark);box-shadow:0 8px 0 #8f2f17;animation:none}.game-dialog__loader.is-error .game-dialog__loader-track span{width:100%!important;background:var(--color-orange-dark)}@keyframes game-loader-breathe{0%,100%{transform:scale(1) rotate(-4deg)}50%{transform:scale(1.08) rotate(4deg)}}@keyframes game-loader-slide{0%{transform:translateX(-110%)}100%{transform:translateX(285%)}}
.reveal{opacity:0;transform:translateY(22px);transition:opacity .65s,transform .65s}.reveal.is-visible{opacity:1;transform:none}
@media(max-width:1050px){:root{--panel-padding:20px;--panel-gap:16px;--character-width:260px}.story-slide__inner{grid-template-columns:1fr 1fr}.chapter-card,.game-stage{min-height:520px}.game-card__preview{min-height:370px}.character-anchor,.character-anchor--zilant{right:58px}.story-slide--reverse .character-anchor,.story-slide--reverse .character-anchor--zilant{left:58px}.resources{grid-template-columns:1fr}.resource--guide{grid-template-columns:220px 1fr}}
@media(max-width:820px){:root{--display-size:36px;--section-title-size:34px;--card-title-size:29px;--body-size:16px;--panel-padding:16px;--panel-gap:12px;--character-width:230px}.page-container{width:min(var(--content-width),calc(100% - 24px))}.site-header{padding-inline:14px}.site-header__nav a{display:none}.hero{height:600px;background-position:58% center}.hero__inner{height:100%;display:block;padding:140px 0 18px}.hero__panel{width:100%;padding:24px}.hero__avi{width:155px;height:auto;right:-8px;bottom:auto;top:18px}.story-slide{gap:14px;padding:20px 0}.story-habitat__heading{padding-top:20px}.story-habitat__title,.story-slide__chapter{font-size:29px}.story-habitat__subtitle{font-size:15px}.story-slide__inner{display:flex;flex-direction:column;padding:12px;gap:12px;border-width:6px}.story-slide--reverse .chapter-card{order:0}.story-slide--reverse .game-stage{order:1}.chapter-card,.game-stage{width:100%;min-height:0}.chapter-card{padding:7px 18px 175px 7px}.chapter-card>p:not(.eyebrow){font-size:16px}.narration-button,.story-slide--reverse .narration-button{left:7px;right:auto;bottom:18px}.chapter-card__character,.story-slide--reverse .chapter-card__character{right:-28px;left:auto;bottom:-42px;width:210px;height:auto;object-position:right bottom}.chapter-card__character--avi{width:210px;height:auto}.character-anchor,.character-anchor--zilant{right:82px;bottom:-25px}.story-slide--reverse .character-anchor,.story-slide--reverse .character-anchor--zilant{right:82px;left:auto}.game-stage{padding:12px}.game-card__preview{min-height:0;aspect-ratio:16/9}.finale__friends{grid-template-columns:1fr 1fr;gap:42px 13px}.resources{grid-template-columns:1fr}.resource--diploma,.resource--guide{grid-template-columns:1fr}.resource img{max-height:280px}.avi-app__inner{grid-template-columns:180px 1fr;gap:22px}.avi-app__inner>img{width:180px;height:auto;margin-bottom:-90px}.site-footer__inner{grid-template-columns:1fr 1fr}.footer-meta{align-items:flex-start}.game-dialog{padding:0}.game-dialog__panel{border-radius:0}.game-dialog footer p{display:none}}
@media(max-width:520px){:root{--display-size:29px;--section-title-size:28px;--card-title-size:25px;--body-size:14px;--panel-radius:20px;--header-height:62px;--button-height:46px;--character-width:145px;--section-gap:28px}.brand{font-size:15px}.brand__mark{width:35px;height:35px;border-radius:11px}.site-header{width:calc(100% - 16px);margin-top:8px;padding-inline:10px;border-radius:17px}.hero{height:540px;margin:8px auto;border-radius:28px;background-position:61% center}.hero__inner{height:100%;padding:125px 0 14px}.hero__avi{width:112px;height:auto;top:16px;right:0}.hero__panel{padding:15px;border-radius:20px}.hero__panel h1{margin-bottom:10px}.hero__panel>p:not(.eyebrow):not(.hero__hello){font-size:13px;line-height:1.38;margin-bottom:5px}.hero__hello{font-size:17px}.hero__facts{margin:10px 0}.hero__facts>span{font-size:11px;padding:5px 7px}.hero__facts strong{font-size:16px}.hero .button{min-height:44px;padding:9px 16px}.games-intro{padding:42px 0}.story-habitat{width:calc(100% - 16px);border-radius:28px}.story-slide{width:calc(100% - 16px);min-height:0;padding:14px 0;gap:10px;border-radius:28px;background-position:center}.story-habitat .story-slide{width:100%}.story-habitat__heading{padding:14px 14px 0}.story-habitat__title,.story-slide__chapter{font-size:22px}.story-habitat__subtitle{margin-top:7px;font-size:13px;line-height:1.35}.story-habitat__outro{width:calc(100% - 32px);margin-bottom:18px;padding:13px 16px;font-size:13px}.story-slide__inner{width:calc(100% - 16px);padding:7px;gap:8px;border-width:5px;border-radius:25px}.chapter-card{padding:5px 9px 128px 5px}.chapter-card h2{margin-bottom:9px}.chapter-card>p:not(.eyebrow){font-size:13px;line-height:1.4}.narration-button,.story-slide--reverse .narration-button{left:5px;bottom:13px;width:48px;min-height:48px;padding:0}.narration-button svg{width:23px;height:23px}.chapter-card__character,.story-slide--reverse .chapter-card__character{width:140px;height:auto;right:-18px;bottom:-32px}.chapter-card__character--avi{width:140px;height:auto}.character-anchor,.character-anchor--zilant{right:52px;bottom:-18px}.story-slide--reverse .character-anchor,.story-slide--reverse .character-anchor--zilant{right:52px;left:auto}.story-habitat__companion,.story-habitat__companion--zilant{width:145px}.game-stage{padding:7px;border-width:2px;gap:9px}.game-card__launch{min-height:44px;padding:8px 15px}.finale{padding:40px 0}.finale__friends{grid-template-columns:1fr}.friend{display:grid;grid-template-columns:85px 1fr;align-items:center;text-align:left}.friend img{height:90px;margin:-15px 0}.resource{padding:16px}.resource h3{font-size:24px}.avi-app{padding-top:48px}.avi-app__inner{grid-template-columns:1fr}.avi-app__inner>img{order:2;width:135px;height:auto;justify-self:end;margin:-55px -5px -62px 0}.partner-logos{gap:6px;margin-top:34px}.partner-logo{padding:3px;border-radius:10px}.site-footer__inner{grid-template-columns:1fr;gap:22px}.footer-meta{flex-direction:row;align-items:center}.site-footer__legal{flex-direction:column;gap:6px}.game-dialog footer>div{display:grid;grid-template-columns:1fr 1fr;width:100%}.game-dialog .button{min-height:42px;padding:7px 8px;font-size:11px}}
@media(max-width:360px){:root{--display-size:26px}.hero{height:520px}.hero__inner{padding-top:105px}.hero__panel{padding:12px}.hero__panel>p:not(.eyebrow):not(.hero__hello){font-size:12px;line-height:1.32}.hero__hello{font-size:16px}.hero__facts{margin:8px 0}.hero .button{min-height:42px;padding-block:7px}}
@media(max-width:820px){.site-header__nav{gap:10px}.language-switch__button{min-width:36px;padding:6px}}@media(max-width:520px){.language-switch{padding:3px}.language-switch__button{min-width:32px;padding:5px;font-size:12px}.game-dialog footer>div{grid-template-columns:1fr}.game-dialog__loader{padding:16px}.game-dialog__loader-card{padding:24px 18px;border-radius:22px}.game-dialog__loader-card strong{font-size:19px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reveal{opacity:1;transform:none;transition:none}.button,.game-stage,.game-dialog__loader-track span{transition:none}.game-dialog__loader-mark,.game-dialog__loader.is-indeterminate .game-dialog__loader-track span{animation:none}}

/* V12: cloud header, story introduction and extended chapter copy. */
.site-header{width:100%;max-width:var(--site-width);height:150px;margin:0 auto -24px;padding:20px 32px 54px;display:grid;grid-template-columns:1fr auto 1fr;gap:24px;align-items:center;border:0;border-radius:0;background:transparent;box-shadow:none}.site-header__left{min-width:0;display:flex;align-items:center;gap:24px;justify-self:start}.site-header__title{display:block;width:min(200px,24vw);justify-self:center}.site-header__title img{width:100%;height:auto}.site-header>.language-switch{justify-self:end}.brand__mark{display:block;width:44px;height:44px;flex:0 0 auto;object-fit:cover;object-position:center;border-radius:14px;background:none;color:inherit;box-shadow:0 7px 15px rgba(71,55,113,.22);transform:none}.hero{margin-top:0}.hero__facts--empty{min-height:41px}.story-prologue{position:relative;isolation:isolate;width:100%;max-width:var(--site-width);margin:12px auto;padding:82px 0;overflow:hidden;border-radius:32px;background-color:#fff}.story-prologue::before{content:"";position:absolute;z-index:0;inset:0;background:url("assets/pattern-kurshe.png") center/960px 540px repeat;opacity:.05;pointer-events:none}.story-prologue__grid{position:relative;z-index:1;display:grid;grid-template-columns:1.08fr .92fr;gap:24px;align-items:start}.story-prologue__card{padding:36px;border:1px solid rgba(21,63,54,.13);border-radius:30px;background:rgba(255,255,255,.94);box-shadow:var(--shadow-panel)}.story-prologue__card--intro{margin-top:72px;background:rgba(255,249,224,.96)}.story-prologue__card h2{color:var(--color-title)}.story-prologue__card p{font-size:17px}.story-prologue__lead{color:var(--color-title)!important;font:900 21px/1.35 "Nunito",Arial,sans-serif}.story-prologue blockquote{margin:22px 0;padding:20px 22px;border-left:5px solid var(--color-orange);border-radius:0 18px 18px 0;background:#fff6d9;color:var(--color-title);font-weight:800}.story-habitat__heading{padding-inline:clamp(24px,7vw,110px)}.story-habitat__subtitle{max-width:940px;line-height:1.5}.story-habitat__subtitle--secondary{max-width:760px;margin-top:7px;font-size:15px}.finale__friends{grid-template-columns:repeat(2,1fr);gap:20px}.friend{display:grid;grid-template-columns:120px 1fr;align-items:center;gap:16px;text-align:left}.friend img{height:130px;margin:-24px 0 -8px}.friend p{line-height:1.45}.finale__closing{max-width:820px;margin:0 auto 44px;padding:22px 26px;border:1px solid rgba(255,255,255,.18);border-radius:22px;background:rgba(255,255,255,.08);color:#e6efeb;font-weight:800;text-align:center}.resource p+p{margin-top:-4px}.avi-app p+p{margin-top:-5px;font-weight:800}

@media(max-width:820px){.site-header{height:112px;margin-bottom:-16px;padding:12px 18px 36px;gap:14px}.site-header__left{gap:12px}.site-header__title{width:min(150px,25vw)}.site-header__brand .brand__mark{width:38px;height:38px}.story-prologue{padding:54px 0}.story-prologue__grid{grid-template-columns:1fr}.story-prologue__card--intro{margin-top:0}.story-habitat__subtitle{max-width:680px}.finale__friends{grid-template-columns:1fr 1fr}.friend{grid-template-columns:90px 1fr}.friend img{height:105px}}

@media(max-width:520px){.site-header{width:100%;height:88px;margin:0 auto -8px;padding:7px 8px 25px;gap:6px}.site-header__left{gap:0}.site-header__title{width:min(105px,30vw)}.site-header__brand .brand__mark{width:32px;height:32px;border-radius:10px}.hero{margin-top:0}.hero__facts--empty{min-height:30px}.story-prologue{margin:8px auto;padding:36px 0;border-radius:26px}.story-prologue__grid{width:calc(100% - 24px);gap:14px}.story-prologue__card{padding:22px 18px;border-radius:22px}.story-prologue__card p{font-size:14px}.story-prologue__lead{font-size:17px!important}.story-prologue blockquote{margin:16px 0;padding:15px 16px;font-size:13px}.story-habitat__heading{padding-inline:18px}.story-habitat__subtitle{font-size:13px;line-height:1.4}.story-habitat__subtitle--secondary{font-size:12px}.finale__friends{grid-template-columns:1fr}.friend{grid-template-columns:82px 1fr}.friend img{height:88px}.friend p{font-size:13px}.finale__closing{margin-bottom:30px;padding:17px 18px;font-size:13px}}

@media(max-width:360px){.site-header__title{width:88px}.site-header__brand .brand__mark{width:29px;height:29px}.language-switch__button{min-width:29px;padding:4px;font-size:11px}}

/* V13: simplified header and readable chapter introductions. */
.site-header{width:100%;max-width:var(--site-width);height:126px;margin:0 auto;padding:0 32px;grid-template-columns:1fr 250px 1fr;gap:24px;background:#fff;box-shadow:none}.site-header__title{width:250px;height:126px}.site-header__title img{width:250px;height:126px;object-fit:contain}.site-header__nav{font-size:20px}.site-header__left{gap:26px}.brand__mark,.site-header__brand .brand__mark{width:100px;height:50px;border-radius:0;object-fit:cover;object-position:center;background:transparent;box-shadow:none}.games-intro__content{max-width:900px}.games-intro__content>p{max-width:820px;color:var(--color-text);font-size:17px}.games-intro__lead{color:var(--color-title)!important;font:900 22px/1.35 "Nunito",Arial,sans-serif}.games-intro__content blockquote{max-width:820px;margin:22px 0;padding:20px 22px;border-left:5px solid var(--color-orange);border-radius:0 18px 18px 0;background:#fff6d9;color:var(--color-title);font-weight:800}.story-habitat__heading{position:relative;isolation:isolate;overflow:hidden;padding:48px clamp(24px,7vw,110px) 22px}.story-habitat__heading::before{content:"";position:absolute;z-index:0;inset:0;pointer-events:none;background:linear-gradient(to bottom,rgba(16,47,40,.18),rgba(16,47,40,0));-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);-webkit-mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.82) 42%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.82) 42%,transparent 100%)}.story-habitat__heading>*{position:relative;z-index:1}.story-habitat__title,.story-slide__chapter,.story-habitat__subtitle{text-shadow:none}.story-habitat__subtitle{max-width:1040px;margin-top:12px;font-size:20px;line-height:1.5}.character-quote{color:var(--color-title)!important}.character-quote em,.story-habitat__outro em,.friend em{font-style:italic}.resource--guide{scroll-margin-top:20px}

@media(max-width:820px){.site-header{height:96px;margin:0 auto;padding:0 18px;grid-template-columns:1fr 180px 1fr;gap:12px}.site-header__title,.site-header__title img{width:180px;height:91px}.site-header__brand .brand__mark{width:80px;height:40px}.story-habitat__heading{padding:48px 24px 20px}.story-habitat__subtitle{font-size:18px}.games-intro__content{max-width:720px}}

@media(max-width:520px){.site-header{width:100%;height:70px;margin:0 auto;padding:0 8px;grid-template-columns:1fr 126px 1fr;gap:5px;border-radius:0}.site-header__title,.site-header__title img{width:126px;height:64px}.site-header__brand .brand__mark{width:60px;height:30px}.games-intro__content>p{font-size:14px}.games-intro__lead{font-size:18px!important}.games-intro__content blockquote{margin:16px 0;padding:15px 16px;font-size:13px}.story-habitat__heading{padding:48px 18px 18px}.story-habitat__subtitle{font-size:16px;line-height:1.45}}

@media(max-width:360px){.site-header{grid-template-columns:1fr 110px 1fr}.site-header__title,.site-header__title img{width:110px;height:56px}.site-header__brand .brand__mark{width:54px;height:27px}}

/* V14: polished preface, header actions and reward controls. */
.site-header{margin:32px auto}.site-header__actions{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:16px;justify-self:end}.site-header__nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 16px;border:1px solid rgba(21,63,54,.16);border-radius:14px;background:#fff;white-space:nowrap;box-shadow:0 5px 14px rgba(21,63,54,.08);transition:color .18s,border-color .18s,transform .18s}.site-header__nav a:hover{border-color:rgba(21,63,54,.34);transform:translateY(-2px)}

.games-intro{padding:82px 0}.games-intro::before{background-size:480px 270px;opacity:.075}.games-intro__content{max-width:1160px;text-align:center}.games-intro__content>p{max-width:1100px;margin:0 auto;color:var(--color-text);font-size:22px;line-height:1.55}.games-intro__lead{margin-top:22px!important;color:var(--color-title)!important;font:900 clamp(38px,4.2vw,60px)/1.08 "Nunito",Arial,sans-serif!important;letter-spacing:-.02em}.games-intro__lead+p{margin-top:26px}.games-intro__content blockquote{max-width:1100px;margin:8px auto 26px;padding:0;border:0;border-radius:0;background:transparent;color:var(--color-text);font-size:22px;font-weight:400;line-height:1.55}.games-intro__content blockquote+p{margin-top:24px}.games-intro .progress-summary{gap:13px;margin-top:42px;padding:13px 22px;border-color:rgba(21,63,54,.18);font-size:20px;box-shadow:0 9px 22px rgba(21,63,54,.1)}.games-intro .progress-summary span{font-size:16px}

.story-slide--avi{padding-top:0}

.resource__content{min-width:0;display:flex;flex-direction:column;align-items:stretch}.resource__actions{width:100%;margin-top:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:12px}.resource__actions label{min-width:0;display:block}.resource__actions input{height:100%;min-height:54px;margin:0}.resource__actions .button{min-height:54px;white-space:nowrap}.resource__actions--single{grid-template-columns:1fr}.resource__actions--single .button{width:100%}

@media(max-width:820px){.site-header{margin:20px auto}.site-header__actions{gap:8px}.site-header__nav{display:none}.games-intro{padding:64px 0}.games-intro__content>p,.games-intro__content blockquote{font-size:18px}.games-intro__lead{font-size:clamp(34px,7vw,48px)!important}.games-intro .progress-summary{font-size:18px}}

@media(max-width:520px){.site-header{margin:16px auto}.games-intro{padding:48px 0}.games-intro::before{background-size:320px 180px}.games-intro__content>p,.games-intro__content blockquote{font-size:16px}.games-intro__lead{margin-top:18px!important;font-size:32px!important}.games-intro__lead+p{margin-top:22px}.games-intro__content blockquote{margin:8px auto 20px}.games-intro .progress-summary{gap:8px;margin-top:30px;padding:11px 15px;font-size:15px}.resource__actions{gap:8px}.resource__actions input{min-height:50px;padding:10px}.resource__actions .button{min-height:50px;padding-inline:13px;font-size:13px}}

/* V15: compact editorial composition for the preface. */
.games-intro{padding:76px 0}.games-intro__content{max-width:1180px}.games-intro__header{max-width:980px;margin:0 auto;text-align:center}.games-intro__lead{margin:0!important}.games-intro__setting{max-width:900px;margin:20px auto 0!important;color:var(--color-text);font-size:21px;line-height:1.55}.games-intro__story{margin-top:46px;display:grid;grid-template-columns:.82fr 1.18fr;overflow:hidden;border:1px solid rgba(21,63,54,.14);border-radius:28px;background:rgba(255,255,255,.84);box-shadow:0 18px 42px rgba(21,63,54,.07);text-align:left}.games-intro__context{display:flex;flex-direction:column;justify-content:center;gap:24px;padding:34px 38px}.games-intro__context p{margin:0;color:var(--color-text);font-size:19px;line-height:1.55}.games-intro__context .games-intro__ending{color:var(--color-title);font-weight:800}.games-intro__content .games-intro__story blockquote{max-width:none;margin:0;padding:34px 38px;border:0;border-left:1px solid rgba(226,151,54,.22);border-radius:0;background:rgba(255,248,229,.8);color:var(--color-text);font-size:20px;line-height:1.58;display:flex;align-items:center}.games-intro .progress-summary{margin-top:30px}

@media(max-width:900px){.games-intro__story{grid-template-columns:1fr}.games-intro__context{padding:28px 30px}.games-intro__content .games-intro__story blockquote{padding:28px 30px;border-left:0;border-top:1px solid rgba(226,151,54,.22)}}

@media(max-width:520px){.games-intro{padding:44px 0}.games-intro__lead{font-size:32px!important}.games-intro__setting{margin-top:14px!important;font-size:16px}.games-intro__story{margin-top:28px;border-radius:22px}.games-intro__context{gap:16px;padding:22px 20px}.games-intro__context p{font-size:15px}.games-intro__content .games-intro__story blockquote{margin:0;padding:22px 20px;font-size:15px;line-height:1.5}.games-intro .progress-summary{margin-top:24px}}

/* V16: preface composition matched to the approved reference. */
.games-intro{padding:118px 0 132px}.games-intro__content{max-width:1420px;text-align:center}.games-intro__lead{max-width:none!important;margin:0!important;color:var(--color-title)!important;font:900 clamp(48px,4.6vw,70px)/1.08 "Nunito",Arial,sans-serif!important;letter-spacing:-.025em}.games-intro__content>.games-intro__lead+.games-intro__opening{max-width:1180px;margin:66px auto 0;color:var(--color-text);font-size:34px;line-height:1.35}.games-intro__content>blockquote{max-width:1500px;margin:30px auto 0;padding:0;border:0;border-radius:0;background:transparent;color:var(--color-text);font-size:31px;font-weight:400;line-height:1.58;text-align:center}.games-intro .progress-summary{width:min(680px,100%);min-height:88px;margin-top:122px;padding:18px 34px;justify-content:center;gap:22px;border-color:rgba(21,63,54,.18);border-radius:999px;background:#fff;color:var(--color-title);font-size:29px;box-shadow:0 10px 24px rgba(21,63,54,.08)}.games-intro .progress-summary span{font-size:21px}

@media(max-width:820px){.games-intro{padding:86px 0 98px}.games-intro__lead{font-size:48px!important}.games-intro__content>.games-intro__lead+.games-intro__opening{margin-top:48px;font-size:25px}.games-intro__content>blockquote{margin-top:24px;font-size:23px;line-height:1.55}.games-intro .progress-summary{min-height:72px;margin-top:76px;font-size:21px}}

@media(max-width:520px){.games-intro{padding:54px 0 62px}.games-intro__lead{font-size:36px!important}.games-intro__content>.games-intro__lead+.games-intro__opening{margin-top:38px;font-size:19px;line-height:1.45}.games-intro__content>blockquote{margin-top:20px;font-size:18px;line-height:1.5}.games-intro .progress-summary{min-height:58px;margin-top:48px;padding:12px 16px;gap:9px;font-size:16px}.games-intro .progress-summary span{font-size:13px}}

@media(max-width:360px){.games-intro__lead{font-size:32px!important}.games-intro__content>.games-intro__lead+.games-intro__opening{font-size:17px}.games-intro__content>blockquote{font-size:16px}.games-intro .progress-summary{font-size:14px}}

/* Character-safe chapter copy. Heights are captured before flow is enabled, so cards and page length stay unchanged. */
.chapter-copy-flow .chapter-card{height:var(--chapter-copy-height);padding-bottom:var(--chapter-copy-bottom-reserve,0)}
.chapter-copy-flow .chapter-card::before{content:none;display:block;float:right;width:var(--chapter-flow-width);height:calc(var(--chapter-flow-top) + var(--chapter-flow-height));shape-outside:inset(var(--chapter-flow-top) 0 0);-webkit-shape-outside:inset(var(--chapter-flow-top) 0 0)}
.story-slide--zilant .chapter-card{--chapter-copy-bottom-reserve:23px;--chapter-flow-width:210px;--chapter-flow-height:287px;--chapter-flow-top:calc(var(--chapter-copy-height) - 301px)}
.story-slide--zilant.story-slide--reverse .chapter-card{--chapter-flow-width:190px}
.story-slide--su .chapter-card{--chapter-copy-bottom-reserve:75px;--chapter-flow-width:173px;--chapter-flow-height:330px;--chapter-flow-top:calc(var(--chapter-copy-height) - 330px)}
.story-slide--su.story-slide--reverse .chapter-card{--chapter-flow-width:179px}
.story-slide--shurale .chapter-card{--chapter-copy-bottom-reserve:81.422px;--chapter-flow-width:176px;--chapter-flow-height:319px;--chapter-flow-top:calc(var(--chapter-copy-height) - 328px)}
.story-slide--shurale.story-slide--reverse .chapter-card{--chapter-flow-width:199px}
.story-slide--avi .chapter-card{--chapter-copy-bottom-reserve:67px;--chapter-flow-width:210px;--chapter-flow-height:287px;--chapter-flow-top:calc(var(--chapter-copy-height) - 301px)}

@media(min-width:821px){.chapter-copy-flow .story-slide:not(.story-slide--reverse) .chapter-card::before{content:""}}
@media(min-width:1300px){.chapter-copy-flow .story-slide--reverse .chapter-card::before{content:"";float:left}.chapter-copy-flow .story-slide--reverse .chapter-card>p:not(.eyebrow){max-width:none}}

@media(max-width:1050px){
  .story-slide--zilant .chapter-card{--chapter-flow-width:173px;--chapter-flow-height:249px;--chapter-flow-top:calc(var(--chapter-copy-height) - 257px)}
  .story-slide--su .chapter-card{--chapter-flow-width:141px;--chapter-flow-height:286px;--chapter-flow-top:calc(var(--chapter-copy-height) - 282px)}
  .story-slide--shurale .chapter-card{--chapter-flow-width:143px;--chapter-flow-height:276px;--chapter-flow-top:calc(var(--chapter-copy-height) - 281px)}
  .story-slide--avi .chapter-card{--chapter-flow-width:173px;--chapter-flow-height:249px;--chapter-flow-top:calc(var(--chapter-copy-height) - 257px)}
}

@media(max-width:820px){
  .chapter-copy-flow .story-slide .chapter-card{--chapter-copy-bottom-reserve:175px}
  .chapter-copy-flow .chapter-card::before{content:none}
  .chapter-copy-flow .story-slide--reverse .chapter-card>p:not(.eyebrow){max-width:475px}
}

@media(max-width:520px){.chapter-copy-flow .story-slide .chapter-card{--chapter-copy-bottom-reserve:128px}}

@media(min-width:321px) and (max-width:390px){
  .chapter-copy-flow .story-slide--zilant:not(.story-slide--reverse) .chapter-card{--chapter-copy-bottom-reserve:0px;--chapter-flow-width:118px;--chapter-flow-height:120px;--chapter-flow-top:195px}
  .chapter-copy-flow .story-slide--su:not(.story-slide--reverse) .chapter-card{--chapter-copy-bottom-reserve:0px;--chapter-flow-width:100px;--chapter-flow-height:120px;--chapter-flow-top:195px}
  .chapter-copy-flow .story-slide--shurale:not(.story-slide--reverse) .chapter-card{--chapter-copy-bottom-reserve:0px;--chapter-flow-width:106px;--chapter-flow-height:55px;--chapter-flow-top:245px}
  .chapter-copy-flow .story-slide--zilant:not(.story-slide--reverse) .chapter-card::before,.chapter-copy-flow .story-slide--su:not(.story-slide--reverse) .chapter-card::before,.chapter-copy-flow .story-slide--shurale:not(.story-slide--reverse) .chapter-card::before{content:"";float:right}
  .chapter-copy-flow .story-slide--zilant:not(.story-slide--reverse) .chapter-card>p:not(.eyebrow),.chapter-copy-flow .story-slide--su:not(.story-slide--reverse) .chapter-card>p:not(.eyebrow),.chapter-copy-flow .story-slide--shurale:not(.story-slide--reverse) .chapter-card>p:not(.eyebrow){max-width:none}
}

@media(min-width:361px) and (max-width:390px){
  .chapter-copy-flow .story-slide--zilant.story-slide--reverse .chapter-card{--chapter-copy-bottom-reserve:0px;--chapter-flow-width:112px;--chapter-flow-height:146.969px;--chapter-flow-top:235px}
  .chapter-copy-flow .story-slide--su.story-slide--reverse .chapter-card{--chapter-copy-bottom-reserve:13.922px;--chapter-flow-width:110px;--chapter-flow-height:121px;--chapter-flow-top:235px}
  .chapter-copy-flow .story-slide--zilant.story-slide--reverse .chapter-card::before,.chapter-copy-flow .story-slide--su.story-slide--reverse .chapter-card::before{content:"";float:right}
  .chapter-copy-flow .story-slide--zilant.story-slide--reverse .chapter-card>p:not(.eyebrow),.chapter-copy-flow .story-slide--su.story-slide--reverse .chapter-card>p:not(.eyebrow){max-width:none}
}

@media(max-width:320px){
  .chapter-copy-flow .story-slide--zilant.story-slide--reverse .chapter-card{--chapter-copy-bottom-reserve:0px;--chapter-flow-width:112px;--chapter-flow-height:138.703px;--chapter-flow-top:265px}
  .chapter-copy-flow .story-slide--su .chapter-card{--chapter-copy-bottom-reserve:44.156px;--chapter-flow-width:100px;--chapter-flow-height:119px;--chapter-flow-top:250px}
  .chapter-copy-flow .story-slide--su.story-slide--reverse .chapter-card{--chapter-copy-bottom-reserve:27.891px;--chapter-flow-width:106px;--chapter-flow-top:275px}
  .chapter-copy-flow .story-slide--shurale .chapter-card{--chapter-copy-bottom-reserve:43.266px;--chapter-flow-width:101px;--chapter-flow-height:115px;--chapter-flow-top:300px}
  .chapter-copy-flow .story-slide--shurale.story-slide--reverse .chapter-card{--chapter-copy-bottom-reserve:45.906px;--chapter-flow-width:116px;--chapter-flow-top:325px}
  .chapter-copy-flow .story-slide--zilant.story-slide--reverse .chapter-card::before,.chapter-copy-flow .story-slide--su .chapter-card::before,.chapter-copy-flow .story-slide--su.story-slide--reverse .chapter-card::before,.chapter-copy-flow .story-slide--shurale .chapter-card::before,.chapter-copy-flow .story-slide--shurale.story-slide--reverse .chapter-card::before{content:"";float:right}
  .chapter-copy-flow .story-slide--zilant.story-slide--reverse .chapter-card>p:not(.eyebrow),.chapter-copy-flow .story-slide--su .chapter-card>p:not(.eyebrow),.chapter-copy-flow .story-slide--su.story-slide--reverse .chapter-card>p:not(.eyebrow),.chapter-copy-flow .story-slide--shurale .chapter-card>p:not(.eyebrow),.chapter-copy-flow .story-slide--shurale.story-slide--reverse .chapter-card>p:not(.eyebrow){max-width:none}
}
/* Temporary visual toggles: restore the original values above to re-enable these panels. */
.game-card__preview{border:0}
.game-stage{cursor:pointer}
.partner-logo{background:transparent;box-shadow:none}

/* V17: final layout, chapter audio and resource modal. */
body{background-image:linear-gradient(rgba(255,255,255,.9),rgba(255,255,255,.9)),url("assets/pattern-kurshe.png")}

.site-header__brand .brand__mark{width:100px;height:60px}
.hero__avi{position:absolute;z-index:3;right:156px;bottom:-45px;width:min(32vw,300px);height:auto;filter:drop-shadow(0 20px 18px rgba(19,57,48,.25));pointer-events:none}

.games-intro{position:relative;isolation:isolate;width:100%;max-width:var(--site-width);margin-inline:auto;padding:88px 0;overflow:hidden;background:transparent;border-radius:32px}
.games-intro::before{content:none;background:none}

.story-habitat__heading--single{width:100%;align-self:stretch}
.chapter-narration-button{width:52px;height:52px;margin:18px auto 0;padding:0;display:grid;place-items:center;border:2px solid rgba(255,255,255,.82);border-radius:50%;background:rgba(16,47,40,.28);color:#fff;cursor:pointer;box-shadow:0 8px 22px rgba(16,47,40,.16);transition:transform .18s,background-color .18s}
.chapter-narration-button:hover{transform:translateY(-2px);background:rgba(16,47,40,.48)}
.chapter-narration-button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.chapter-narration-button.is-playing{background:var(--color-orange);transform:scale(1.06)}
.chapter-narration-button svg{width:30px;height:30px;overflow:visible;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

.story-habitat__outro{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:18px;text-align:left}
.story-habitat__outro>img{width:72px;height:72px;object-fit:contain}

@media(min-width:821px){.game-card__preview{flex:0 0 auto;width:100%;min-height:0;aspect-ratio:800/450}}

.partner-logos{width:min(780px,calc(100% - 48px));grid-template-columns:repeat(3,minmax(0,220px));justify-content:center;gap:12px;margin:44px auto 0}
.partner-logo{padding:4px}

.resource--diploma{grid-template-columns:minmax(220px,.72fr) 1.28fr}
.resource--diploma>img{width:100%;aspect-ratio:3/4;max-height:460px;object-fit:contain}
.resource--diploma .resource__actions{grid-template-columns:1fr}
.resource--diploma .resource__actions .button{width:100%}

.footer-socials{display:flex;flex-wrap:wrap;gap:12px}
.footer-socials a{width:80px;height:80px;display:block;border-radius:22px;transition:transform .18s,filter .18s}
.footer-socials a:hover{transform:translateY(-3px);filter:brightness(1.06)}
.footer-socials a:focus-visible{outline:3px solid #fff;outline-offset:4px}
.footer-socials img{width:80px;height:80px}

.guide-dialog{width:min(920px,calc(100% - 32px));max-width:none;padding:0;border:0;border-radius:42px;background:transparent;color:var(--color-ink)}
.guide-dialog::backdrop{background:rgba(16,47,40,.68);backdrop-filter:blur(4px)}
.guide-dialog__panel{position:relative;padding:68px 64px 54px;border-radius:42px;background:#fff9ed;box-shadow:0 28px 90px rgba(10,39,32,.28);text-align:center}
.guide-dialog__panel h2{margin-bottom:16px;color:#057760;font-size:clamp(38px,5vw,56px)}
.guide-dialog__panel>p{max-width:700px;margin:0 auto 36px;color:#3d4b47;font-size:25px;line-height:1.45}
.guide-dialog__close{position:absolute;top:24px;right:28px;width:50px;height:50px;padding:0;border:0;background:transparent;color:#057760;font:900 42px/1 "Nunito",Arial,sans-serif;cursor:pointer}
.guide-dialog__close:focus-visible{outline:3px solid var(--color-orange);outline-offset:2px;border-radius:50%}
.guide-dialog__options{display:grid;gap:18px}
.guide-option{min-height:148px;padding:24px 34px;display:grid;grid-template-columns:88px 1fr;align-items:center;gap:28px;border:4px solid #f4d5a8;border-radius:30px;background:#fff;color:#064f42;text-align:left;text-decoration:none;transition:transform .18s,border-color .18s,box-shadow .18s}
.guide-option:hover{transform:translateY(-3px);border-color:#efa956;box-shadow:0 12px 28px rgba(99,68,28,.1)}
.guide-option:focus-visible{outline:3px solid var(--color-orange);outline-offset:3px}
.guide-option img{width:80px;height:80px}
.guide-option strong{font-size:30px}
.guide-dialog__panel .guide-dialog__note{margin:26px auto 0;color:#697672;font-size:18px}

@media(max-width:820px){
  .site-header__brand .brand__mark{width:80px;height:48px}
  .hero__avi{width:155px;height:auto;right:34px;bottom:auto;top:400px}
  .games-intro{padding:68px 0}
  .partner-logos{width:min(680px,calc(100% - 24px));grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .site-footer__inner{grid-template-columns:1fr;gap:28px}
  .footer-socials a,.footer-socials img{width:64px;height:64px}
  .guide-dialog__panel{padding:58px 34px 40px}
  .guide-dialog__panel>p{font-size:21px}
  .guide-option{min-height:122px;grid-template-columns:72px 1fr;padding:20px 26px}
  .guide-option img{width:64px;height:64px}
}

@media(max-width:520px){
  .site-header__brand .brand__mark{width:60px;height:36px}
  .hero__avi{width:112px;height:auto;top:400px;right:0;bottom:auto}
  .games-intro{padding:48px 0}
  .chapter-narration-button{width:44px;height:44px;margin-top:12px}
  .chapter-narration-button svg{width:25px;height:25px}
  .story-habitat__outro{grid-template-columns:56px minmax(0,1fr);gap:12px}
  .story-habitat__outro>img{width:56px;height:56px}
  .resource--diploma{grid-template-columns:1fr}
  .partner-logos{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:32px}
  .footer-socials{gap:9px}
  .footer-socials a,.footer-socials img{width:54px;height:54px;border-radius:16px}
  .guide-dialog{width:calc(100% - 20px);border-radius:28px}
  .guide-dialog__panel{padding:54px 18px 28px;border-radius:28px}
  .guide-dialog__panel h2{font-size:32px}
  .guide-dialog__panel>p{margin-bottom:24px;font-size:17px}
  .guide-dialog__close{top:13px;right:14px;width:42px;height:42px;font-size:35px}
  .guide-dialog__options{gap:12px}
  .guide-option{min-height:92px;grid-template-columns:54px 1fr;gap:16px;padding:16px 18px;border-width:3px;border-radius:22px}
  .guide-option img{width:50px;height:50px}
  .guide-option strong{font-size:22px}
  .guide-dialog__panel .guide-dialog__note{margin-top:20px;font-size:14px}
}

/* V18: review fixes for audio, game cards, preface and finale. */
.chapter-narration-button svg{fill:currentColor;stroke:none;stroke-width:0}
.games-intro__narration{margin-top:34px;border-color:rgba(21,63,54,.18);background:var(--color-ink);box-shadow:0 8px 20px rgba(21,63,54,.18)}
.games-intro__narration:hover{background:#092820}

.games-intro__content{max-width:1180px}
.games-intro__content>.games-intro__lead+.games-intro__opening{max-width:980px;text-wrap:pretty}
.games-intro__content>blockquote{max-width:1080px;text-wrap:pretty}
.games-intro .progress-summary{margin-top:54px}
.games-intro__lead,.games-intro__opening,.games-intro blockquote,.story-habitat__subtitle,.friend p{text-wrap:pretty}

.game-stage{padding:18px;border:0;gap:32px;color:inherit;background:none;box-shadow:none;transition:none}
.game-stage:hover{transform:none;box-shadow:none}
@media(min-width:821px){.game-stage{min-height:600px}.game-card__preview{flex:1 1 auto}}

.finale__friends{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;align-items:stretch}
.friend{min-width:0;min-height:255px;padding:12px 18px 20px;display:flex;flex-direction:column;align-items:stretch;border-radius:24px;text-align:left;overflow:hidden}
.friend img{width:132px;height:118px;margin:0 auto 12px;object-fit:contain}
.friend p{margin:0;color:var(--color-text);font-size:17px;line-height:1.45;font-weight:800}

.avi-app{margin-bottom:48px}

@media(max-width:1050px){
  .finale__friends{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:820px){
  .game-stage{min-height:0;padding:12px;gap:18px}
  .games-intro__content>.games-intro__lead+.games-intro__opening{max-width:700px}
  .games-intro__content>blockquote{max-width:740px}
  .games-intro .progress-summary{margin-top:44px}
  .friend{min-height:230px}
}

@media(max-width:520px){
  .game-stage{padding:7px;gap:12px}
  .games-intro__narration{margin-top:24px}
  .games-intro .progress-summary{margin-top:34px}
  .finale__friends{grid-template-columns:1fr;gap:18px}
  .friend{min-height:0;padding:10px 15px 17px}
  .friend img{width:105px;height:92px;margin-bottom:8px}
  .friend p{font-size:14px}
}

/* V19: final review for chapter panels, game previews and supplied social icons. */
.story-slide__inner{box-shadow:none}

.game-card__preview>img{object-fit:contain;object-position:center}

/* V20: the 700 px desktop card contains a 664 × 373 px game preview. */
.game-stage{height:auto;max-height:none}
.game-card__preview{border-radius:24px;background:transparent}
.game-card__preview>img{display:block;border-radius:inherit}

@media(min-width:821px){
  .game-stage{height:auto;min-height:0;max-height:none}
  .game-card__preview{flex:0 0 auto;width:100%;min-height:0;aspect-ratio:16/9}
}

@media(min-width:1280px){
  .game-stage{width:700px;min-width:700px;max-width:700px}
  .game-card__preview{width:664px;height:373px;min-height:373px;max-height:373px;aspect-ratio:auto}
}

@media(max-width:820px){
  .game-stage{width:100%;min-width:0;max-width:none}
  .game-card__preview{height:auto;max-height:none;border-radius:18px}
}

/* V21: refreshed branding, chapter controls, rewards and footer. */
.site-header{
  background:transparent;
  border:0;
  box-shadow:none;
}
.site-header__brand .brand__mark{
  width:130px;
  height:80px;
  object-fit:contain;
}
.nav-method__icon{
  display:none;
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.hero__avi{right:240px}

.story-habitat__heading,.story-habitat__heading--single{position:relative}
.story-habitat__heading .chapter-narration-button{
  position:absolute;
  z-index:4;
  top:32px;
  right:32px;
  margin:0;
}
.games-intro__narration{position:static;margin:34px auto 0}

.finale__friends{align-items:stretch}
.friend{
  min-height:300px;
  align-items:center;
  justify-content:flex-start;
  text-align:center;
}
.friend img{
  width:190px;
  height:170px;
  margin:0 auto 16px;
}
.friend p{
  margin:0;
  text-align:center;
  font-style:normal;
}

.resources{
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
}
.resource,.resource--diploma,.resource--guide{
  height:100%;
  grid-template-columns:1fr;
  grid-template-rows:320px minmax(0,1fr);
  align-content:stretch;
}
.resource>img,.resource--diploma>img,.resource--guide>img{
  width:240px;
  height:320px;
  max-height:none;
  aspect-ratio:auto;
  justify-self:center;
  object-fit:contain;
}
.resource__content{
  min-width:0;
  display:flex;
  flex-direction:column;
}
.resource__actions{
  width:100%;
  margin-top:auto;
}
.resource__actions label,.resource__actions input,.resource__actions .button{
  width:100%;
}
.resource--diploma .resource__actions{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.resource--diploma .resource__actions input{margin:0}
.resource--guide .resource__actions--single .button{width:100%}

.footer-socials a,.footer-socials img{
  width:64px;
  height:64px;
}
.footer-socials a{border-radius:18px}
.footer-worlds{
  display:inline-block;
  margin-top:18px;
  color:#fff;
  font:900 22px/1.2 "Nunito",Arial,sans-serif;
  text-decoration:none;
}
.footer-worlds:hover{text-decoration:underline;text-underline-offset:4px}
.footer-worlds:focus-visible{outline:3px solid #fff;outline-offset:4px;border-radius:4px}

.guide-dialog__panel{
  overflow:hidden;
  border:3px solid rgba(244,169,86,.7);
  background-color:#fff9ed;
  background-image:linear-gradient(rgba(255,249,237,.94),rgba(255,249,237,.94)),url("assets/pattern-kurshe.png");
  background-position:center;
  background-size:auto,720px 405px;
}
.guide-dialog__panel h2{color:var(--color-title)}
.guide-option{
  border-color:rgba(18,185,192,.3);
  background:#fff;
}
.guide-option:hover{
  border-color:var(--color-orange);
  box-shadow:0 12px 28px rgba(99,68,28,.12);
}
.guide-dialog__note{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  background:#e9f5ef;
}

@media(max-width:1200px){
  .site-header__nav{display:flex}
  .site-header__nav a{
    width:48px;
    min-width:48px;
    height:48px;
    min-height:48px;
    padding:0;
    border-radius:14px;
  }
  .nav-method__label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .nav-method__icon{display:block}
  .hero__avi{right:100px}
}

@media(max-width:1050px){
  .resources{grid-template-columns:1fr}
  .resource,.resource--diploma,.resource--guide{grid-template-rows:300px minmax(0,1fr)}
  .resource>img,.resource--diploma>img,.resource--guide>img{height:300px}
}

@media(max-width:820px){
  .site-header__brand .brand__mark{width:80px;height:48px}
  .site-header__nav{display:flex}
  .hero__avi{right:100px}
  .friend{min-height:270px}
  .friend img{width:170px;height:150px}
  .footer-socials a,.footer-socials img{width:64px;height:64px}
}

@media(max-width:520px){
  .site-header__brand .brand__mark{width:60px;height:36px}
  .site-header__nav a{width:40px;min-width:40px;height:40px;min-height:40px}
  .nav-method__icon{width:21px;height:21px}
  .hero__avi{right:0}
  .story-habitat__heading .chapter-narration-button{top:32px;right:32px}
  .friend{min-height:0}
  .friend img{width:150px;height:135px}
  .resource,.resource--diploma,.resource--guide{grid-template-rows:250px minmax(0,1fr)}
  .resource>img,.resource--diploma>img,.resource--guide>img{width:190px;height:250px}
  .footer-socials a,.footer-socials img{width:64px;height:64px;border-radius:18px}
}

@media(min-width:821px){
  .hero__avi{bottom:12px}
}

@media(min-width:520px) and (max-width:820px){
  .hero__avi{width:200px;height:auto}
}

@media(max-width:519px){
  .hero__avi{width:150px;height:auto}
}

/* V22: refreshed chapter assets, finale sizing and diploma metadata. */
.story-slide--avi .chapter-card__character--avi{
  transform:translateY(-32px);
}
.finale__friends .friend img{
  width:240px;
  height:240px;
}
.site-footer__legal a{
  color:inherit;
}

/* V23: compact methodical-materials dialog. */
.guide-dialog{
  width:min(400px,calc(100% - 20px));
  max-width:400px;
  max-height:min(400px,calc(100dvh - 20px));
  overflow:auto;
  border-radius:24px;
}
.guide-dialog__panel{
  min-height:0;
  padding:40px 24px 22px;
  border-radius:24px;
}
.guide-dialog__panel h2{
  margin-bottom:8px;
  font-size:28px;
  line-height:1.1;
}
.guide-dialog__panel>p{
  max-width:320px;
  margin:0 auto 16px;
  font-size:15px;
  line-height:1.35;
}
.guide-dialog__close{
  top:8px;
  right:10px;
  width:34px;
  height:34px;
  font-size:30px;
}
.guide-dialog__options{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.guide-option{
  min-height:92px;
  padding:12px 8px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:7px;
  border-width:2px;
  border-radius:18px;
  text-align:center;
}
.guide-option img{
  width:42px;
  height:42px;
}
.guide-option strong{
  font-size:17px;
}
.guide-dialog__panel .guide-dialog__note{
  margin:14px auto 0;
  padding:6px 10px;
  font-size:12px;
}

/* Mobile fullscreen fallback: keep the game in its 5:3 frame inside the viewport. */
.game-dialog.game-dialog--viewport-fallback{
  width:100vw;
  height:100dvh;
  padding:0;
  background:#000;
}
.game-dialog.game-dialog--viewport-fallback::backdrop{background:#000}
.game-dialog--viewport-fallback .game-dialog__panel{
  position:relative;
  width:100vw;
  height:100dvh;
  border-radius:0;
  background:#000;
}
.game-dialog--viewport-fallback .game-dialog__panel>header{
  position:absolute;
  z-index:3;
  inset:0;
  padding:0;
  pointer-events:none;
}
.game-dialog--viewport-fallback .game-dialog__panel>header>div{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.game-dialog--viewport-fallback #close-game{
  position:absolute;
  top:max(12px,env(safe-area-inset-top));
  right:max(12px,env(safe-area-inset-right));
  pointer-events:auto;
  background:rgba(237,241,238,.92);
}
.game-dialog--viewport-fallback .game-dialog__panel>footer{
  position:absolute;
  z-index:3;
  inset:auto 0 max(12px,env(safe-area-inset-bottom)) 0;
  display:block;
  padding:10px 56px;
  pointer-events:none;
}
.game-dialog--viewport-fallback .game-dialog__panel>footer>p{
  margin:0;
  color:#fff;
  font-size:14px;
  line-height:1.35;
  text-align:center;
  text-shadow:0 1px 3px #000;
}
.game-dialog--viewport-fallback .game-dialog__panel>footer>div{display:none}
.game-dialog--viewport-fallback .game-dialog__stage{
  width:100vw;
  height:100dvh;
  min-height:0;
  background:#000;
}
