/* Главная «Котомёта». Идея: сайт — это сама игра. Первый экран играбелен (логотип из блоков — мишень), дальше сцена на прокрутке,
   живые 3D-герои, миры, цифры. Язык: чернильный контур 3–4 px, жёсткие тени, дерево/бумага/сыр, как в игре. Токены — site.css. */
html:has(body.home) { overflow-x: clip; }
body.home { background: #f6e8d2; overflow-x: clip; }
body.home::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .06; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .11 0 0 0 0 .08 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.home .nav a:not(.btn) { font-weight: 800; }
.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-d); text-shadow: 0 1px 0 #fff3dd, 0 0 10px rgba(255,243,221,.95); }
.kicker::before { content: ""; width: 38px; height: 4px; background: currentColor; border-radius: 2px; flex: none; }
.kicker.light { color: #ffc247; }
.home em { font-style: normal; color: var(--accent); }

/* кнопка «Играть» */
.play { display: inline-flex; align-items: center; gap: 14px; padding: 18px 34px; border-radius: 16px; background: var(--accent); color: #fff !important; border: 4px solid var(--ink); font-weight: 900; font-size: 28px; letter-spacing: .04em; text-decoration: none !important; box-shadow: 0 7px 0 var(--ink); transition: transform .12s, box-shadow .12s, background .12s; will-change: transform; pointer-events: auto; }
.play:hover { background: #ff8c3a; box-shadow: 0 10px 0 var(--ink); }
.play:active { transform: translateY(5px) !important; box-shadow: 0 2px 0 var(--ink); }
.play svg { flex: none; }
.play.big { font-size: clamp(34px, 5vw, 56px); padding: 22px 48px; background: var(--ink); box-shadow: 0 8px 0 rgba(43,29,20,.35); }
.play.big:hover { background: #3b281b; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.play:focus-visible, .cl button:focus-visible, .hero-reset:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

/* ---------- первый экран: живая игра ---------- */
.hero { position: relative; min-height: max(100svh, 640px); overflow: hidden; background: #efe1cc; }
.hero-game { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #efe1cc; pointer-events: none; }
.hero-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 46% 58% at 37% 34%, rgba(247,236,216,.9), rgba(247,236,216,.62) 55%, rgba(247,236,216,0) 80%), linear-gradient(180deg, rgba(247,236,216,.78) 0, rgba(247,236,216,0) 20%); }
.hero-copy { position: relative; z-index: 2; margin-left: max(20px, 14vw); padding-top: clamp(104px, 15vh, 150px); width: min(600px, 46%); pointer-events: none; }
.hl { margin: 0 0 18px; font-weight: 900; font-size: clamp(36px, 4.7vw, 78px); line-height: .98; letter-spacing: -.025em; text-transform: uppercase; text-wrap: balance; color: var(--ink); -webkit-text-stroke: .1em #fff3dd; paint-order: stroke fill; text-shadow: 0 .06em 0 rgba(255,243,221,.95); }
.hl em { display: inline-block; color: var(--accent); }
.lead { margin: 0 0 24px; max-width: 24em; font-size: clamp(17px, 1.5vw, 23px); line-height: 1.4; font-weight: 700; color: #3b281b; text-shadow: 0 1px 0 #fff3dd, 0 0 12px rgba(255,243,221,.95); }
.cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.free { margin: 0; font-size: 15px; line-height: 1.35; max-width: 15em; color: #4d3a2c; font-weight: 600; text-shadow: 0 1px 0 #fff3dd, 0 0 10px rgba(255,243,221,.9); }
.free b { color: var(--ink); }
.hero-label { position: absolute; z-index: 2; right: max(16px, 2.4vw); top: clamp(92px, 13vh, 118px); display: grid; gap: 1px; padding: 8px 16px 9px; background: #fff3dd; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); pointer-events: none; transform: rotate(1.2deg); }
.hero-label i { font-style: normal; font-weight: 800; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-d); }
.hero-label b { font-weight: 900; font-size: 16px; line-height: 1.2; }
.hero-label.swap { animation: swap .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes swap { 0% { transform: rotate(1.2deg) translateY(-14px); opacity: 0; } 100% { transform: rotate(1.2deg); opacity: 1; } }
.ns { position: relative; z-index: 6; margin: 0; padding: 8px 20px; background: #fff3dd; }

/* ---------- бегущая строка ---------- */
.band { position: relative; z-index: 3; margin: -22px -20px 0; transform: rotate(-1.6deg); background: var(--ink); color: #ffe7c9; overflow: hidden; border-block: 4px solid var(--ink); }
.band-in { display: flex; width: max-content; padding: 14px 0; font-weight: 900; font-size: clamp(24px, 3.4vw, 44px); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; animation: slide 36s linear infinite; }
.band-in span { padding: 0 .5em; } .band-in i { font-style: normal; color: var(--accent); padding: 0 .3em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- как играть ---------- */
.how { background: #f6e8d2; padding: clamp(56px, 8vw, 110px) 0 clamp(48px, 6vw, 90px); }
.how h2 { font-size: clamp(38px, 5.6vw, 88px); line-height: .94; text-transform: uppercase; letter-spacing: -.025em; margin: 0 0 clamp(26px, 4vw, 48px); }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 34px); counter-reset: s; }
.how-steps figure { position: relative; margin: 0 0 18px; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.how-steps li:nth-child(1) figure { transform: rotate(-1.4deg); } .how-steps li:nth-child(3) figure { transform: rotate(1.4deg); }
.how-steps li:hover figure { transform: rotate(0) translateY(-6px); }
.hshot { overflow: hidden; border: 4px solid var(--ink); border-radius: 20px; box-shadow: 0 8px 0 var(--ink); background: #efe1cc; aspect-ratio: 16 / 9; }
.hshot img { width: 100%; height: 112%; object-fit: cover; display: block; will-change: transform; }
.how-steps i { position: absolute; left: -12px; top: -16px; width: 46px; height: 46px; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 26px; color: #fff; background: var(--accent); border: 4px solid var(--ink); border-radius: 50%; box-shadow: 0 4px 0 var(--ink); }
.how-steps h3 { margin: 0 0 6px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.how-steps p { margin: 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; color: #4d3a2c; }

/* ---------- герои ---------- */
.cast { background: #fff3dd; padding: clamp(56px, 8vw, 110px) 0 clamp(44px, 6vw, 80px); }
.cast h2, .worlds h2 { font-size: clamp(40px, 5.6vw, 88px); line-height: .94; text-transform: uppercase; letter-spacing: -.025em; margin: 0 0 clamp(20px, 3vw, 34px); }
.cast-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.cl { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cl button { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; padding: 14px 20px 12px; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); transition: background .2s, color .2s, transform .15s, box-shadow .15s; }
.cl button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.cl i { display: block; font-style: normal; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-d); }
.cl b { display: block; font-weight: 900; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; }
.cl span { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: 16px; line-height: 1.45; font-weight: 500; transition: max-height .35s ease, opacity .3s, margin .3s; }
.cl button.on { background: var(--ink); color: #fff3dd; box-shadow: 0 5px 0 var(--accent); transform: translateY(0); }
.cl button.on i { color: #ffc247; } .cl button.on span { max-height: 8em; opacity: .92; margin-top: 6px; }
.cast-stage { position: relative; }
.cast-stage::before { content: ""; position: absolute; left: 50%; top: 46%; width: min(92%, 480px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #ffe9b8 0, rgba(255,233,184,0) 68%); pointer-events: none; }
.stage { position: relative; height: min(58vh, 540px); cursor: pointer; touch-action: pan-y; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage .fallback { display: none; position: absolute; left: 50%; bottom: 0; height: 90%; width: auto; transform: translateX(-50%); }
.no3d .stage .fallback, .cast.no3d .stage .fallback { display: block; }
.bubble { position: absolute; top: 2%; right: 4%; padding: 8px 20px; background: #fff; border: 4px solid var(--ink); border-radius: 22px; font-weight: 900; font-size: clamp(24px, 3vw, 40px); color: var(--ink); box-shadow: 5px 6px 0 var(--ink); transform: scale(0) rotate(-8deg); pointer-events: none; z-index: 2; }
.tap { margin: 6px 0 0; text-align: center; font-weight: 800; font-size: 14px; color: var(--muted); transition: opacity .4s; position: relative; }
.tap.gone { opacity: 0; }
.pack { margin-top: clamp(40px, 6vw, 80px); }
.pack h3 { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-d); margin: 0 0 14px; }
.pack-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.pack-row li { background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 10px 8px 12px; text-align: center; box-shadow: 0 5px 0 var(--ink); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.pack-row li:hover { transform: translateY(-6px) rotate(-2deg); }
.pack-row img { width: 100%; max-width: 120px; margin: 0 auto 4px; height: auto; }
.pack-row b { display: block; font-weight: 900; font-size: 16px; text-transform: uppercase; }
.pack-row small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.3; font-weight: 600; }

/* ---------- миры: закреплённая сцена, справа живая игра показывает механики мира ---------- */
.worlds { --c: #ff8a3c; --t: #fff1e2; background: var(--t); transition: background-color .6s; overflow: hidden; }
.wpin { min-height: 100vh; display: grid; align-items: center; padding: clamp(86px, 10vh, 120px) 0 clamp(28px, 5vh, 56px); }
.wgrid { display: grid; grid-template-columns: minmax(330px, 5fr) 7fr; gap: clamp(24px, 3.4vw, 56px); align-items: center; width: min(1320px, 100% - 40px); }
.wstack { position: relative; min-height: 470px; }
.wcard { position: absolute; inset: 0 0 auto 0; visibility: hidden; }
.wcard.on { visibility: visible; }
.wnum { display: block; font-style: normal; font-weight: 900; font-size: clamp(64px, 7vw, 112px); line-height: .8; color: transparent; -webkit-text-stroke: 3px var(--c); margin: 0 0 6px; }
.wcard h3 { font-size: clamp(48px, 6.2vw, 104px); line-height: .9; text-transform: uppercase; letter-spacing: -.03em; margin: 0 0 12px; color: var(--ink); }
.wcard h3 .ch { display: inline-block; }
.wtag { font-size: clamp(16px, 1.35vw, 20px); font-weight: 600; max-width: 26em; margin: 0 0 18px; color: #4d3a2c; }
.wmech { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.wmech li { display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 10px 16px 10px 12px; background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); }
.wmech svg { grid-row: span 2; width: 46px; height: 46px; }
.wmech b { font-weight: 900; font-size: 18px; line-height: 1.15; text-transform: uppercase; letter-spacing: .01em; }
.wmech span { font-size: 15px; line-height: 1.35; color: #4d3a2c; font-weight: 600; }
.wmeta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.wmeta span { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 10px; background: var(--ink); color: #fff3dd; }
.wmeta span + span { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.wshot { display: none; margin: 0; }
.wtabs { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.wtabs button { all: unset; cursor: pointer; position: relative; padding: 8px 14px 7px; border-radius: 12px; border: 3px solid var(--ink); background: #fff; font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); box-shadow: 0 3px 0 var(--ink); transition: background .2s, color .2s, transform .15s; }
.wtabs button:hover { transform: translateY(-2px); }
.wtabs button.on { background: var(--c); }
.wtabs button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wscreen { position: relative; aspect-ratio: 16 / 9; border: 5px solid var(--ink); border-radius: 26px; overflow: hidden; background: #1d140e; box-shadow: 14px 14px 0 var(--c); transition: box-shadow .6s; transform: rotate(.6deg); }
.wscreen iframe { position: absolute; inset: 0; width: 1280px; height: 720px; border: 0; transform-origin: 0 0; transform: scale(var(--ws, .6)); pointer-events: none; }
.wlive { position: absolute; z-index: 2; left: 14px; top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px 5px 9px; border-radius: 10px; background: rgba(29,20,14,.78); color: #fff3dd; font-weight: 800; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.wlive i { width: 9px; height: 9px; border-radius: 50%; background: #ff4d3a; box-shadow: 0 0 0 0 rgba(255,77,58,.6); animation: wlive 1.6s infinite; }
@keyframes wlive { 70% { box-shadow: 0 0 0 9px rgba(255,77,58,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,58,0); } }
.wcap { position: relative; z-index: 2; margin: 30px 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; pointer-events: none; }   /* подпись под экраном, игра не закрыта */
.wcap b, .wcap span { padding: 6px 12px; border: 3px solid var(--ink); border-radius: 12px; font-weight: 900; box-shadow: 0 3px 0 var(--ink); }
.wcap b { background: var(--c); color: var(--ink); text-transform: uppercase; font-size: 14px; letter-spacing: .05em; }
.wcap span { background: #fff3dd; color: var(--ink); font-size: 15px; }
.wcap.swap { animation: wcap .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes wcap { from { transform: translateY(14px) scale(.96); opacity: 0; } }
/* телефон, узкое окно и «меньше движения»: без закрепления и без живой игры — карточки миров друг под другом, у каждой свой кадр */
.worlds.flat .wpin { min-height: 0; padding: clamp(48px, 8vw, 80px) 0; }
.worlds.flat .wgrid { grid-template-columns: 1fr; }
.worlds.flat .wstack { min-height: 0; display: grid; gap: clamp(40px, 7vw, 64px); }
.worlds.flat .wcard { position: static; visibility: visible; }
.worlds.flat .wshot { display: block; margin-top: 18px; border: 4px solid var(--ink); border-radius: 20px; overflow: hidden; box-shadow: 8px 8px 0 var(--c); }
.worlds.flat .wshot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.worlds.flat .wside, .worlds.flat .wtabs { display: none; }
.worlds.flat { background: #f6e8d2; }

/* ---------- цифры, финал, вопросы ---------- */
.nums { background: var(--accent); color: var(--ink); border-block: 4px solid var(--ink); padding: clamp(36px, 5vw, 64px) 0; }
.nums-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.nums b { display: block; font-weight: 900; font-size: clamp(64px, 11vw, 168px); line-height: .9; letter-spacing: -.04em; -webkit-text-stroke: 3px var(--ink); color: #fff; paint-order: stroke fill; text-shadow: 5px 6px 0 var(--ink); }
.nums span { display: block; margin-top: 10px; font-weight: 800; font-size: clamp(13px, 1.2vw, 17px); text-transform: uppercase; letter-spacing: .08em; max-width: 14em; }
.finale { position: relative; background: #ffc247; padding: clamp(64px, 10vw, 140px) 0 clamp(80px, 11vw, 150px); overflow: hidden; }
.finale h2 { font-size: clamp(56px, 11vw, 190px); line-height: .85; text-transform: uppercase; letter-spacing: -.04em; margin: 0 0 22px; }
.finale p { max-width: 28em; font-size: clamp(18px, 1.7vw, 24px); font-weight: 600; margin: 0 0 34px; }
.peek { position: absolute; right: 4vw; bottom: -36px; width: clamp(150px, 24vw, 340px); height: auto; transform: rotate(-9deg); filter: drop-shadow(0 8px 0 rgba(43,29,20,.2)); }
.faq { background: #f6e8d2; padding: clamp(48px, 7vw, 96px) 0; }
.faq .wrap { max-width: 860px; }
.faq h2 { font-size: clamp(38px, 5vw, 72px); text-transform: uppercase; letter-spacing: -.02em; margin-bottom: 26px; }
.faq details { border-top: 3px solid var(--ink); padding: 18px 0; }
.faq details:last-child { border-bottom: 3px solid var(--ink); }
.faq summary { cursor: pointer; font-weight: 900; font-size: clamp(20px, 2.2vw, 28px); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.2em; line-height: 1; color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; font-size: 18px; color: #4d3a2c; max-width: 36em; }
footer.foot { position: relative; z-index: 2; }

/* рваные бумажные кромки между секциями */
.torn { position: relative; }
.torn::before { content: ""; position: absolute; left: 0; right: 0; top: -17px; height: 18px; z-index: 3; background: var(--tb, #fff3dd); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 18' preserveAspectRatio='none'%3E%3Cpath d='M0 18V9l8 3 9-7 8 5 9-6 10 7 9-4 8 6 11-7 9 5 10-6 8 6 11-5 10 5 9-3 8 4V18z'/%3E%3C/svg%3E") repeat-x 0 0 / 160px 18px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 18' preserveAspectRatio='none'%3E%3Cpath d='M0 18V9l8 3 9-7 8 5 9-6 10 7 9-4 8 6 11-7 9 5 10-6 8 6 11-5 10 5 9-3 8 4V18z'/%3E%3C/svg%3E") repeat-x 0 0 / 160px 18px; }
.cast.torn { --tb: #fff3dd; } .finale.torn { --tb: #ffc247; } .faq.torn { --tb: #f6e8d2; }

/* ---------- узкие экраны ---------- */
@media (max-width: 900px) {
  /* телефон и узкое окно: сначала текст, под ним целиком вся сцена игры (16:9), чтобы был виден и кот, и крепость */
  .hero { min-height: 0; padding-bottom: calc(720px * var(--gs, .3) + 64px); }
  .hero-game { top: auto; bottom: 0; left: 0; width: 1280px; height: 720px; transform-origin: 0 100%; transform: scale(var(--gs, .3)); }
  .hero-shade { display: none; }
  .hero-copy { padding-top: 96px; }
  .hero-label { top: auto; bottom: calc(720px * var(--gs, .3) + 12px); right: 12px; padding: 4px 10px 5px; } .hero-label b { font-size: 12px; } .hero-label i { font-size: 9px; }

  .hero-copy { width: auto; margin: 0 20px; padding-top: 96px; }
  .hl { font-size: clamp(32px, 9.4vw, 60px); }
  .lead { max-width: 20em; }
  .cast-top { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; gap: 34px; } .how-steps li:nth-child(n) figure { transform: none; }
  .nums-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .pack-row { grid-template-columns: repeat(3, 1fr); }
  .stage { height: min(48vh, 420px); }
  .nav a:not(.btn) { display: none; }
  .kwin { display: none; }
}
@media (max-width: 520px) { .play { font-size: 24px; padding: 16px 26px; } .free { max-width: none; } .lead { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .band-in { animation: none; } .play { transition: none; } .hero.won .play { animation: none; } }


/* ---------- атмосфера: реквизит, миры с погодой, тёмный блок героев, полёт котят в финале (10.10.2026, вторая версия) ---------- */
.how, .cast, .faq { position: relative; overflow: hidden; }
.how > .wrap, .cast > .wrap, .faq > .wrap { position: relative; z-index: 1; }
.fps { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fp { position: absolute; display: block; will-change: transform; transform: translate(calc(var(--mx, 0) * var(--d) * -30px), calc(var(--my, 0) * var(--d) * -20px + var(--sy, 0px))) rotate(var(--r, 0deg)); }
.fp svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 5px 0 rgba(43,29,20,.16)); animation: bob var(--t, 3.4s) ease-in-out var(--o, 0s) infinite alternate; }
@keyframes bob { to { transform: translateY(-14px) rotate(5deg); } }
.how { background: #f6e8d2 radial-gradient(circle at 12% 18%, rgba(255,194,71,.22), transparent 38%), radial-gradient(circle at 92% 80%, rgba(255,138,60,.16), transparent 40%); }
.how::before { content: ""; position: absolute; inset: 0; opacity: .5; background: radial-gradient(rgba(43,29,20,.1) 1.6px, transparent 1.8px) 0 0 / 26px 26px; pointer-events: none; }

/* миры: у каждого своя погода и реквизит на заднем плане */
.worlds { background: radial-gradient(ellipse 60% 70% at 78% 46%, color-mix(in srgb, var(--c) 38%, transparent), transparent 72%), radial-gradient(ellipse 50% 60% at 6% 100%, color-mix(in srgb, var(--c) 24%, transparent), transparent 70%), var(--t); }
.wpin { position: relative; }
.wbg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.wbg::before { content: ""; position: absolute; inset: -20%; opacity: .07; background: repeating-linear-gradient(115deg, var(--ink) 0 2px, transparent 2px 46px); }
.wl { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.wl.on { opacity: 1; }
.wgrid { position: relative; z-index: 1; }
.wrail { position: absolute; z-index: 2; right: 12px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.wrail i { width: 10px; height: 34px; border-radius: 6px; background: rgba(43,29,20,.18); border: 2px solid var(--ink); transition: background .3s, height .3s; }
.wrail i.on { background: var(--c); height: 56px; }
.worlds.flat .wbg, .worlds.flat .wrail { display: none; }
.wscreen { box-shadow: 16px 16px 0 var(--c), 0 30px 60px rgba(43,29,20,.28); }

/* герои на тёмной сцене со «взрывом» цвета героя */
.cast { --hc: #ff8a3c; background: #2b1d14; color: #fff3dd; }
.cast.torn { --tb: #2b1d14; }
.cast h2 { color: #fff3dd; } .cast .kicker { color: #ffc247; text-shadow: none; }
.cast .tap { color: #d8c2a6; } .cast .pack h3 { color: #ffc247; }
.cl button.on { background: #ffc247; color: var(--ink); box-shadow: 0 5px 0 #fff3dd; }
.cl button.on i { color: var(--accent-d); }
.cast-stage::before { display: none; }
.burst { position: absolute; left: 50%; top: 46%; width: min(120%, 640px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; transition: --hc .5s;
  background: radial-gradient(circle, color-mix(in srgb, var(--hc) 60%, #fff3dd) 0, var(--hc) 34%, transparent 70%);
  -webkit-mask: radial-gradient(circle, #000 55%, transparent 71%); mask: radial-gradient(circle, #000 55%, transparent 71%); }
.burst::before { content: ""; position: absolute; inset: -6%; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,243,221,.22) 0 7deg, transparent 7deg 20deg); -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%); mask: radial-gradient(circle, #000 20%, transparent 70%); animation: spin 38s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage { z-index: 1; }
.stage::after { content: ""; position: absolute; left: 50%; bottom: 3%; width: 54%; height: 7%; transform: translateX(-50%); border-radius: 50%; background: rgba(0,0,0,.4); filter: blur(8px); z-index: -1; }

/* финал: лучи и пролетающие котята (двигаются от прокрутки) */
.finale::before { content: ""; position: absolute; left: 50%; top: 50%; width: 220vmax; height: 220vmax; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.2) 0 6deg, transparent 6deg 18deg); animation: spin 120s linear infinite; pointer-events: none; }
.finale > .wrap { position: relative; z-index: 2; }
.fly { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fly img { position: absolute; left: 0; top: 12%; width: clamp(70px, 9vw, 130px); height: auto; will-change: transform; filter: drop-shadow(0 7px 0 rgba(43,29,20,.22)); }
.fly img:nth-child(2) { top: 40%; width: clamp(60px, 7.5vw, 110px); } .fly img:nth-child(3) { top: 60%; } .fly img:nth-child(4) { top: 24%; width: clamp(56px, 7vw, 100px); }
.peek { z-index: 2; }
@media (max-width: 900px) { .fp { opacity: .6; } .wl { display: none; } .fly img { top: 6%; } .fly img:nth-child(3) { top: 74%; } }
@media (prefers-reduced-motion: reduce) { .fp svg, .burst::before, .finale::before { animation: none; } .fly { display: none; } }

.pack-row li { color: var(--ink); }
.wtabs { position: relative; z-index: 2; }

.pack-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin: 0 0 14px; }
.pack-head h3 { margin: 0; }
.pack-link { font-weight: 800; font-size: 15px; color: #ffc247; text-decoration: none; letter-spacing: .02em; border-bottom: 2px solid transparent; transition: border-color .2s; }
.pack-link:hover { border-color: #ffc247; } .pack-link span { display: inline-block; transition: transform .25s; } .pack-link:hover span { transform: translateX(4px); }
.pack-row li { padding: 0; } .pack-row li a { display: block; padding: 10px 8px 12px; color: inherit; text-decoration: none; }
.faq-all { display: flex; gap: 10px 18px; flex-wrap: wrap; margin: 22px 0 0; } .faq-all .btn.ghost { padding: 10px 18px; border-radius: 14px; box-shadow: inset 0 0 0 3px var(--ink); color: var(--ink) !important; font-weight: 800; }
.wd { white-space: nowrap; }

/* ================= «Ещё игры студии» (14.10.2026): карточки остальных игр AlbireoTech — как у «Эрудита», в стиле Котомёта ================= */
.studio { position: relative; padding: clamp(54px, 7vw, 104px) 0 clamp(64px, 8vw, 116px); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink);
  background: radial-gradient(circle, rgba(43,29,20,.09) 1.6px, transparent 1.8px) 0 0 / 28px 28px, #cfe8f3; }
.st-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 48px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 52px); }
.st-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-d); }
.st-eyebrow::before { content: ""; width: 38px; height: 4px; border-radius: 2px; background: currentColor; }
.studio h2 { margin: 0; font-size: clamp(38px, 5.6vw, 84px); line-height: .94; letter-spacing: -.025em; text-transform: uppercase; }
.st-head p { margin: 0; max-width: 23em; font-size: clamp(16px, 1.5vw, 20px); font-weight: 600; line-height: 1.45; color: #34464f; }
.st-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.st-grid[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } .st-grid[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-grid[data-n="1"] { grid-template-columns: minmax(0, 420px); }
.game-card { --ac: #ffc247; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fffaf0; color: var(--ink); text-decoration: none; border: 4px solid var(--ink); border-radius: 24px; box-shadow: 0 8px 0 var(--ink); transition: transform .2s, box-shadow .2s; }
.game-card:hover { transform: translateY(-5px); box-shadow: 0 13px 0 var(--ink); color: var(--ink); }
.game-card:focus-visible { outline: 4px solid var(--accent); outline-offset: 4px; }
.gc-cover { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); border-bottom: 4px solid var(--ink); }
.gc-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.game-card:hover .gc-cover img { transform: scale(1.045); }
.gc-cover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--ac); }
.gc-badge { position: absolute; z-index: 1; left: 12px; top: 12px; padding: 6px 11px; border: 2px solid var(--ink); border-radius: 999px; background: var(--accent); color: #fff; box-shadow: 0 3px 0 var(--ink); font: normal 900 12px/1 Rubik, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.gc-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; padding: 0 18px 18px; }
.gc-ic { position: relative; z-index: 1; width: 58px; height: 58px; margin: -30px 0 6px; object-fit: cover; border: 4px solid var(--ink); border-radius: 17px; background: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.gc-kind { font-weight: 800; font-size: 12px; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); overflow-wrap: anywhere; }
.gc-name { display: block; font: 900 clamp(22px, 2vw, 28px)/1.1 Rubik, system-ui, sans-serif; letter-spacing: -.01em; overflow-wrap: anywhere; }
.gc-tag { flex: 1 0 auto; font-size: 15px; line-height: 1.4; color: #5a4636; overflow-wrap: anywhere; }
.gc-row { display: grid; gap: 8px; margin-top: auto; padding-top: 14px; }
.gc-dom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--muted); }
.gc-go { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px 14px; border: 3px solid var(--ink); border-radius: 13px; background: var(--ac); color: var(--ink); box-shadow: 0 4px 0 var(--ink); font-weight: 900; font-size: 15px; line-height: 1.1; letter-spacing: .05em; text-transform: uppercase; transition: transform .15s, box-shadow .15s; }
.game-card:hover .gc-go { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
@media (max-width: 1100px) { .st-grid, .st-grid[data-n] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {   /* телефон: одна колонка вертикальных карточек — обложка видна целиком */
  .st-grid, .st-grid[data-n] { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 520px; margin-inline: auto; }
  .gc-cover { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) { .game-card, .gc-cover img, .gc-go { transition: none; } .game-card:hover { transform: none; } .game-card:hover .gc-cover img { transform: none; } }
.studio:has(.st-grid:empty) { display: none; }   /* без JS (список строится скриптом) пустой блок не показываем */
