@font-face {
  font-family: Onest;
  src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Onest;
  src: url("/assets/fonts/onest-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2190-21FF,U+2212;
}
:root {
  color-scheme: dark;
  --page: #0d1730;
  --surface: #152346;
  --raised: #1d3056;
  --soft: #111e3a;
  --line: #394e75;
  --text: #f3f7fd;
  --muted: #c4d1e9;
  --amber: #ffd05c;
  --link: #bbe3ff;
  --paid: #a4dcff;
  --cool: #9ecaff;
  --glass: #0d1831f7;
  --shadow: #050c1660;
  --hero-sky: url("/images/avi-clouds-r13.webp");
  --mast: linear-gradient(112deg, #172752, #1f3b79);
  --mast-next: linear-gradient(114deg, #14274e, #1b3a71 58%, #204d7e);
  --mast-panel: #101d3ddf;
  --font: Onest, "Segoe UI", Arial, sans-serif;
  --shell: min(1216px, calc(100% - 88px));
  --section: clamp(36px, 4.6vw, 66px);
}
:root[data-theme="light"] {
  color-scheme: light;
  --page: #edf3ff;
  --surface: #ffffff;
  --raised: #e2ecfc;
  --soft: #e8f0fc;
  --line: #b7c9e5;
  --text: #142648;
  --muted: #415778;
  --link: #174c8a;
  --cool: #2057a1;
  --glass: #f7fafff5;
  --shadow: #233a5126;
  --mast: linear-gradient(112deg, #f7faff, #dce9ff);
  --mast-next: linear-gradient(114deg, #f4f8ff, #dceeff);
  --mast-panel: #f8fbffcf;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 86px; }
body { margin: 0; font: 400 1rem/1.6 var(--font); background: var(--page); color: var(--text); }
main:focus { outline: 0; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: var(--link); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.7vw, 4.5rem); font-weight: 790; letter-spacing: -.065em; }
h2 { font-size: clamp(1.65rem, 3.6vw, 3.02rem); font-weight: 755; letter-spacing: -.048em; }
h3 { font-size: clamp(1.13rem, 2.4vw, 1.56rem); font-weight: 720; letter-spacing: -.035em; }
.shell { width: var(--shell); margin-inline: auto; min-width: 0; }
.avi-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 9px 13px; background: var(--page); z-index: 20; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.section { padding-block: var(--section); }
.section-head { margin-bottom: clamp(21px, 3.8vw, 41px); }
#games .section-head { margin-bottom: clamp(16px, 2vw, 24px); }
.section-head p { max-width: 63ch; margin-top: 11px; color: var(--muted); }
.heading-row { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; }
.text-action { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; font-size: .91rem; font-weight: 660; text-decoration-thickness: 1px; }
.text-action .avi-icon { width: 17px; height: 17px; }

.avi-header { position: sticky; top: 0; z-index: 10; background: var(--glass); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.avi-header-grid { min-height: 72px; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav tools"; align-items: center; gap: 16px; }
.avi-brand { grid-area: brand; display: inline-flex; width: 128px; align-items: center; }
.avi-brand img { width: 100%; }
.avi-nav { grid-area: nav; display: flex; align-items: center; justify-content: center; gap: 4px; }
.avi-nav a { display: flex; align-items: center; min-height: 43px; padding: 7px clamp(6px, 1vw, 14px); color: var(--muted); font-size: .87rem; font-weight: 620; text-decoration: none; white-space: nowrap; border: 1px solid transparent; border-radius: 9px; }
.avi-nav a:is(:hover, [aria-current="page"]) { color: var(--text); background: var(--surface); border-color: var(--line); }
.avi-nav a[aria-current="page"] { background: var(--raised); color: var(--link); }
.avi-header-tools { grid-area: tools; display: flex; align-items: center; gap: 8px; }
.header-demo, .icon-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none; }
.header-demo { padding-inline: 12px; gap: 5px; font-size: .87rem; font-weight: 690; }
.header-demo .avi-icon { width: 17px; height: 17px; color: var(--link); fill: currentColor; stroke: none; }
.icon-button { width: 44px; padding: 0; }
.header-demo:hover, .icon-button:hover { background: var(--raised); border-color: var(--link); }
.menu-control, .menu-close, .menu-open .menu-bars { display: none; }
.menu-open .menu-close { display: block; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 11px; }
.flight-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 49px; padding: 8px 15px; border: 1px solid transparent; border-radius: 11px; font-size: .9rem; font-weight: 720; line-height: 1.25; text-align: center; text-decoration: none; transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.flight-button .avi-icon { width: 18px; height: 18px; }
.flight-button-demo, .flight-button-paid { box-shadow: inset 0 1px 0 #ffffff75, inset 0 -3px 0 #18305b28, 0 3px 8px var(--shadow); }
.flight-button-demo { background: var(--amber); background-image: linear-gradient(#ffe6a040, #ffa32824); border-color: #ffcf61; color: #251813; }
.flight-button-paid { background: var(--paid); background-image: linear-gradient(#e1f6ff65, #468cce28); border-color: #9bd2fa; color: #10294a; }
.flight-button-demo .avi-icon { fill: currentColor; stroke: none; }
.flight-button-demo:hover { background-color: #ffe08a; }
.flight-button-paid .avi-icon { order: 1; }
.flight-button-paid:hover { background-color: #c5eaff; }
.flight-button-secondary { background: var(--surface); border-color: var(--line); color: var(--text); }
.flight-button-secondary:hover { background: var(--raised); border-color: var(--link); }
.flight-button:active { transform: translateY(1px); box-shadow: inset 0 1px 2px #160f1940; }

.home-hero { color: #f7faff; background: linear-gradient(90deg, #101d46f0 5%, #122351d9 37%, #172d711f 76%), var(--hero-sky) 63% 54% / cover, #172c64; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); align-items: center; gap: clamp(12px, 2vw, 30px); padding-block: clamp(30px, 3.7vw, 54px); }
.hero-copy { min-width: 0; }
.home-hero h1 { font-size: clamp(1.85rem, 4vw, 3.9rem); text-wrap: normal; }
.home-hero h1 span { display: block; }
.home-hero h1 span + span { margin-top: 7px; font-size: .65em; color: #ecf4ff; letter-spacing: -.042em; font-weight: 600; }
.home-hero p { max-width: 47ch; margin-block: 16px 22px; color: #e1eaff; }
.home-hero :focus-visible { outline-color: #e6f4ff; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 17px 19px #070e3c70); }
.home-hero .actions, .game-copy .actions {
  display: grid;
  grid-template-columns: max-content minmax(0, max-content);
  justify-content: start;
  align-items: stretch;
  gap: 8px;
}
:is(.home-hero, .game-copy) .actions .flight-button {
  min-height: 46px;
  padding: 7px 13px;
}
:is(.home-hero, .game-copy) .actions .flight-button,
.version-actions .flight-button {
  gap: 6px;
  border-radius: 9px;
}
:is(.home-hero, .game-copy) .actions .flight-button .avi-icon,
.version-actions .flight-button .avi-icon {
  width: 16px;
  height: 16px;
}
:is(.home-hero, .game-copy) .actions .flight-button-paid span {
  min-width: 0;
  text-wrap: balance;
}
:is(.home-hero, .game-copy) .actions .flight-button:is(.flight-button-demo, .flight-button-paid):not(:active),
.version-actions .flight-button-demo:not(:active) {
  box-shadow: inset 0 1px 0 #ffffff60, inset 0 -2px 0 #18305b25, 0 2px 5px var(--shadow);
}

.home-jump { border-block: 1px solid var(--line); background: var(--soft); }
.home-jump .shell { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-block: 12px; }
.home-jump a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 58px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 680; line-height: 1.25; transition: background-color .16s ease, border-color .16s ease; }
.home-jump a:is(:hover, [aria-current="location"]) { background: var(--raised); border-color: var(--cool); }
.home-jump a[aria-current="location"] .jump-icon { background: var(--link); color: var(--page); }
.jump-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 8px; background: var(--raised); color: var(--cool); }
.jump-icon .avi-icon { width: 21px; height: 21px; }
.jump-arrow { width: 16px; height: 16px; color: var(--link); }

.version-grid, .edition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 25px); }
.version { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); grid-template-rows: 1fr auto; grid-template-areas: "cover copy" "cover actions"; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.version-visual { grid-area: cover; position: relative; display: block; min-width: 0; overflow: hidden; background: var(--raised); }

.version-visual::before { content: ""; display: block; aspect-ratio: 720 / 904; }
.version-visual:focus-visible { outline-offset: -4px; z-index: 1; }
.version-visual img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center; }
.version-copy { grid-area: copy; padding: clamp(14px, 2vw, 25px) clamp(12px, 2vw, 25px) 8px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.version-copy h3 a { color: var(--text); text-decoration: none; }
.version-copy h3 a:hover { text-decoration: underline; }
.version-copy > p { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.version-actions { grid-area: actions; padding: 0 clamp(12px, 2vw, 25px) 14px; gap: 7px; }
.version-actions .flight-button { padding: 6px 10px; min-height: 40px; font-size: .82rem; }
@media (max-width: 760px), (pointer: coarse) {
  .version-actions .flight-button { min-height: 44px; }
}
.version-facts { display: flex; flex-wrap: wrap; gap: 5px 17px; }
.version-facts dt, .game-facts dt { font-size: .76rem; color: var(--muted); }
.version-facts dd { font-weight: 760; font-variant-numeric: tabular-nums; }

.route-section { border-block: 1px solid var(--line); background: var(--surface); }
.route-steps { list-style: none; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; margin: 0 0 18px; gap: 20px; }
.route-steps::before { content: ""; position: absolute; inset: 27px 20% auto 0; height: 1px; background: var(--line); }
.route-steps li { position: relative; }
.step-icon { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 15px; margin-bottom: 15px; background: var(--raised); color: var(--link); }
.step-icon .avi-icon { width: 27px; height: 27px; }
.route-steps p { margin-top: 7px; max-width: 28ch; color: var(--muted); font-size: .91rem; }
.compare-layout { display: grid; gap: clamp(20px, 3vw, 38px); grid-template-columns: minmax(0, .85fr) minmax(0, 1.8fr); align-items: start; }
.compare-layout .section-head { margin: 0; }
.table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.table-wrap table { border-collapse: collapse; width: 100%; table-layout: fixed; text-align: left; font-size: .89rem; font-variant-numeric: tabular-nums; }
.table-wrap :is(th, td) { padding: 12px clamp(8px, 1.6vw, 19px); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; vertical-align: top; }
.table-wrap tbody tr:last-child :is(th, td) { border-bottom: 0; }
.table-wrap thead { background: var(--raised); }
.table-wrap tbody th { font-weight: 650; }
.table-wrap td { color: var(--muted); }
.comparison :is(th, td):last-child { border-inline-start: 1px solid var(--line); }
.comparison th:first-child { width: 32%; }
.comparison thead a { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px; color: inherit; }
.comparison thead a .avi-icon { width: 15px; height: 15px; }
.comparison .compare-gold { color: var(--link); }
.comparison .compare-violet { color: var(--cool); }

.booster-section { background: var(--soft); border-block: 1px solid var(--line); }
.booster-heading { margin-bottom: clamp(16px, 2vw, 24px); align-items: end; }
.booster-heading p { margin-top: 8px; color: var(--muted); max-width: 58ch; }
.booster-layout { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); align-items: stretch; gap: clamp(14px, 2vw, 24px); }

.booster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.booster-grid > div { padding: clamp(12px, 2.2vw, 26px); border-bottom: 1px solid var(--line); }
.booster-grid > div:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.booster-grid > div:nth-last-child(-n + 2) { border-bottom: 0; }
.booster-grid dt { font-size: 1.14rem; font-weight: 750; }
.booster-grid dt .avi-icon { display: block; width: 32px; height: 32px; margin-bottom: 9px; color: var(--cool); }
.booster-grid dd { color: var(--muted); font-size: .93rem; margin-top: 4px; }
.figure { margin-block: 19px 0; overflow: hidden; }
.figure img { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.figure figcaption { padding-top: 6px; color: var(--muted); font-size: .8rem; line-height: 1.44; }
.booster-shot { align-self: start; width: 100%; margin: 0; }
.booster-grid dt { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; line-height: 1.3; }
.booster-grid dt .avi-icon { width: 26px; height: 26px; margin: 0; flex: none; }
.booster-layout .booster-grid > div { padding: clamp(12px, 2vw, 26px) clamp(12px, 1.7vw, 21px); }
.booster-layout .booster-grid dd { line-height: 1.48; margin-top: 8px; }
.story-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(235px, 100%), 1fr)); column-gap: 21px; row-gap: 24px; }
.story-links article { border-top: 1px solid var(--line); padding: 16px 0 5px; }
.story-links article > .avi-icon { color: var(--link); margin-bottom: 6px; }
.story-links p { margin: 6px 0 7px; font-size: .93rem; color: var(--muted); }
.editions-section { border-top: 1px solid var(--line); background: var(--surface); }
.edition { min-height: 170px; display: grid; grid-template-columns: 52px 1fr; align-items: start; gap: clamp(8px, 2vw, 19px); padding: clamp(15px, 3vw, 35px); border: 1px solid var(--line); border-radius: 13px; }
.edition-winter { background: linear-gradient(135deg, #4f83a062, transparent), var(--page); }
.edition-halloween { background: linear-gradient(135deg, #626e9851, transparent), var(--page); }
.edition > .avi-icon { width: 44px; height: 44px; color: var(--cool); }
.edition p { margin-top: 7px; color: var(--muted); font-size: .92rem; }
.edition .edition-meta { display: flex; gap: 9px 15px; flex-wrap: wrap; font-variant-numeric: tabular-nums; margin-top: 12px; }
.edition-meta strong { color: var(--link); }
.responsible-section { padding-block: 28px var(--section); background: var(--surface); }
.warning { display: flex; align-items: start; gap: 12px; padding: 18px clamp(14px, 3vw, 29px); background: var(--page); border: 1px solid var(--line); border-inline-start: 3px solid var(--link); border-radius: 10px; }
.warning .avi-icon { color: var(--link); }
.warning h2 { font-size: 1.06rem; letter-spacing: -.01em; }
.warning p { color: var(--muted); font-size: .9rem; margin-top: 6px; }

.breadcrumbs { display: flex; gap: 7px; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 17px; }
.game-mast { padding-block: clamp(19px, 2.4vw, 34px) clamp(20px, 2.4vw, 34px); border-bottom: 1px solid var(--line); background: var(--mast); }
.game-sequel { background: var(--mast-next); }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(18px, 3.2vw, 44px); }
.game-copy h1 { font-size: clamp(2rem, 3.65vw, 3.5rem); }
.game-copy > p { color: var(--muted); margin-block: 13px 16px; max-width: 52ch; }
.game-film { display: block; min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 17px; background: var(--mast-panel); box-shadow: 0 14px 32px var(--shadow); transition: border-color .16s ease, box-shadow .16s ease; }
.game-film:hover { border-color: var(--cool); box-shadow: 0 14px 34px #09183980; }
.game-preview { aspect-ratio: 665 / 343; overflow: hidden; background: #0a1737; border-radius: 10px; }
/* Keep the flight and landing area. The source controls sit at the right and below it. */
.game-preview video { width: calc(100% * 800 / 665); height: auto; max-width: none; pointer-events: none; }

.game-facts { margin-top: clamp(15px, 2.1vw, 27px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.game-facts > div { position: relative; padding: 11px 14px 11px 64px; border: 1px solid var(--line); border-radius: 11px; background: var(--mast-panel); }
.game-facts dt > .avi-icon { position: absolute; top: 50%; inset-inline-start: 13px; translate: 0 -50%; width: 40px; height: 40px; padding: 9px; border-radius: 9px; color: var(--cool); background: var(--raised); }

.game-facts dd { font: 760 clamp(.97rem, 2.45vw, 1.7rem)/1.2 var(--font); font-variant-numeric: tabular-nums; }

.reader-layout { display: grid; grid-template-columns: minmax(185px, .53fr) minmax(0, 1.65fr); gap: clamp(22px, 4.5vw, 62px); align-items: start; padding-block: var(--section); }
.reader-index { position: sticky; top: 93px; min-width: 0; }
.r2-toc { padding: 13px 10px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.r2-toc > p { font: 740 .95rem/1.4 var(--font); padding: 1px 8px; margin-bottom: 8px; }
.r2-toc ol { list-style: none; padding: 0; margin: 0; }
.r2-toc a { display: flex; justify-content: space-between; gap: 7px; width: 100%; padding: 7px 9px; min-height: 40px; align-items: center; border-radius: 7px; border: 1px solid transparent; font-size: .88rem; line-height: 1.35; color: var(--muted); text-decoration: none; }
.r2-toc a::after { content: ""; display: block; flex: 0 0 5px; width: 5px; height: 5px; border: solid currentColor; border-width: 1px 1px 0 0; rotate: 45deg; }
.r2-toc a:hover, .r2-toc a[aria-current="location"] { color: var(--link); border-color: var(--line); background: var(--raised); }
.reader { min-width: 0; max-width: 840px; }
.reader-section { padding-block: clamp(16px, 2vw, 25px) clamp(24px, 2.8vw, 37px); border-top: 1px solid var(--line); }
.reader-section + .reader-section { margin-top: 4px; }

.reader-section h2, .review-topic h2 { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; font-size: clamp(1.34rem, 2.5vw, 2.15rem); letter-spacing: -.038em; }
.reader-section h2 .avi-icon, .review-topic h2 .avi-icon { width: 40px; height: 40px; padding: 9px; background: var(--raised); color: var(--cool); border: 1px solid var(--line); border-radius: 9px; }
.reader-section:target h2, .review-topic:target h2 { color: var(--link); }
.reader-section > :is(p, ol, ul) { color: var(--muted); max-width: 70ch; }
.reader-section > :is(ol, ul) { padding-inline-start: 22px; margin: 8px 0 0; }
.reader-section > :is(p, ol, ul) + :is(p, ol, ul) { margin-top: 9px; }
.reader-section li + li { margin-top: 6px; }
.reader-section .table-wrap + p, .reader-section #boosters + p { margin-top: 10px; }
.worked-example { padding: 14px 16px; margin-top: 15px; border: 1px solid var(--line); border-inline-start: 3px solid var(--link); border-radius: 10px; background: var(--surface); color: var(--muted); }
.worked-example strong { color: var(--text); }
.worked-example p + p { margin-top: 4px; }
.article-actions { margin-top: 12px; }
.reader-end { display: flex; gap: 8px 17px; flex-wrap: wrap; padding-top: 11px; border-top: 1px solid var(--line); }

.interior-mast { padding-block: clamp(26px, 3.4vw, 43px) clamp(24px, 4vw, 52px); border-bottom: 1px solid var(--line); background: var(--mast); }
.interior-mast h1 { max-width: 22ch; font-size: clamp(2.05rem, 4.6vw, 3.9rem); }
.interior-mast p { margin-top: 11px; color: var(--muted); max-width: 56ch; }
.faq-search { max-width: 570px; margin-top: 18px; }
.faq-search label { display: block; margin-bottom: 5px; font-size: .87rem; font-weight: 690; }
.search-field { position: relative; }
.search-field .avi-icon { position: absolute; inset: 8px auto auto 8px; width: 35px; height: 35px; padding: 8px; border-radius: 8px; background: var(--raised); color: var(--cool); pointer-events: none; }
.search-field input { width: 100%; height: 51px; padding: 7px 12px 7px 52px; border: 1px solid var(--line); border-radius: 11px; background: var(--mast-panel); color: var(--text); }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.faq-search .search-status { margin-top: 5px; font-size: .82rem; }
.search-status:empty { display: none; }
.faq-list { display: grid; gap: 8px; }
.faq-list details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }

.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 9px; min-height: 51px; padding: 10px 14px; list-style: none; cursor: pointer; color: var(--text); font-weight: 650; line-height: 1.4; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--link); }
.faq-list details[open] { border-color: var(--cool); }
.faq-list summary .avi-icon { color: var(--cool); background: var(--raised); border-radius: 7px; width: 29px; height: 29px; padding: 6px; transition: transform .18s ease; }
.faq-list details[open] summary .avi-icon { transform: rotate(180deg); }
.faq-list details p, .faq-empty { padding: 3px 14px 14px; color: var(--muted); max-width: 68ch; }
.faq-empty { padding-top: 13px; }
.review-topics { display: flex; flex-wrap: wrap; gap: 6px 9px; margin-top: 18px; }
.review-topics a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--mast-panel); color: var(--text); text-decoration: none; font-size: .86rem; }
.review-topics a:hover { background: var(--raised); }
.review-topics a .avi-icon { color: var(--cool); background: var(--raised); padding: 5px; border-radius: 6px; width: 28px; height: 28px; }
.review-topic + .review-topic { margin-top: 38px; }
.review-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.avi-review { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.avi-review blockquote { margin: 0; padding: 12px 13px 13px 19px; position: relative; color: var(--muted); font-size: .96rem; }
.avi-review blockquote::before { content: ""; position: absolute; width: 2px; height: 16px; top: 15px; left: 10px; border-radius: 1px; background: var(--cool); }
.review-facts { border-block: 1px solid var(--line); background: var(--surface); }
#test-demo .section-head { margin-bottom: 22px; }
.interior-split, .missing-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.17fr); gap: clamp(17px, 5vw, 65px); align-items: center; }
.interior-art { display: grid; place-items: center; min-height: 0; padding: clamp(12px, 3vw, 40px); border: 1px solid var(--line); border-radius: 15px; background: radial-gradient(ellipse at 60% 40%, #3967c32b, #101e4e90), var(--hero-sky) 67% 56% / cover, #172c64; }
.interior-plane { width: min(100%, 440px); height: auto; filter: drop-shadow(0 12px 12px #090e2c70); }
.about-responsibility { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-inline-start: 3px solid var(--link); border-radius: 9px; }
.missing-mast { padding-block: var(--section); background: var(--mast); }
.error-code { font: 770 clamp(3.1rem, 7vw, 6rem)/.88 var(--font); color: var(--link); letter-spacing: -.075em; margin-bottom: 11px; }
.missing-copy h1 { font-size: clamp(2rem, 4.5vw, 3.65rem); }
.missing-copy > p:not(.error-code) { margin-block: 10px 16px; color: var(--muted); }
.missing-links { display: flex; gap: 8px 11px; flex-wrap: wrap; margin-top: 13px; font-size: .88rem; }
.missing-links a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--mast-panel); }
.missing-links a:hover { background: var(--raised); }

.avi-footer { padding-block: 34px 18px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) 1fr 1fr; gap: 22px; }
.footer-brand { min-width: 0; }
.footer-brand p { margin-top: 9px; color: var(--muted); font-size: .91rem; }
.avi-footer nav { display: grid; align-content: start; gap: 6px; }
.avi-footer nav h2 { font-size: .96rem; letter-spacing: -.01em; margin-bottom: 3px; }
.avi-footer nav a { color: var(--muted); text-decoration: none; font-size: .87rem; }
.avi-footer nav a:hover { color: var(--link); text-decoration: underline; }
.footer-note { display: flex; gap: 8px 18px; justify-content: space-between; flex-wrap: wrap; margin-top: 25px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.footer-note span { color: var(--link); font-weight: 710; }

body.flight-demo-open { overflow: hidden; }
.flight-dialog { inset: 0; margin: auto; --avi-player-margin: 20px; width: var(--avi-dialog-width, min(1160px, calc(100% - 2 * var(--avi-player-margin)))); max-width: none; max-height: calc(100dvh - 2 * var(--avi-player-margin)); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: #111e30; color: #f3f7fd; overflow: hidden; }
.flight-dialog::backdrop { background: #080f1add; backdrop-filter: blur(5px); }
.flight-player-panel { display: flex; flex-direction: column; justify-content: center; width: 100%; background: #142335; }
.flight-player-header, .flight-player-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; flex: none; background: #192d50; }
.flight-player-header h2 { font-size: 1rem; letter-spacing: 0; }
.flight-player-status { font-size: .76rem; margin-top: 2px; color: #c5d4e3; }
.flight-player-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; background: #253b62; border: 1px solid #65839e; border-radius: 8px; color: #f3f7fd; padding: 0; }
.flight-player-icon:hover, .flight-player-expand[aria-pressed="true"] { background: #355878; border-color: #ffd05c; }
.flight-player-viewport { display: flex; justify-content: center; position: relative; min-height: 0; height: var(--avi-frame-height, 240px); background: #090f1a; overflow: hidden; }
.flight-player-viewport iframe { display: block; width: 100%; height: 100%; border: 0; }
.flight-player-footer { justify-content: center; }
.flight-player-footer .flight-button { min-height: 44px; max-width: 100%; }
.flight-player-loading { position: absolute; z-index: 1; top: calc(50% - 14px); left: calc(50% - 14px); width: 28px; height: 28px; border: 2px solid #dbf4ff50; border-top-color: #ffd05c; border-radius: 50%; animation: spin .8s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(1turn); } }
.flight-player-panel:fullscreen { width: 100vw; height: 100dvh; }
.flight-dialog.is-maximized { width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
.flight-dialog.is-handset { width: 100%; height: var(--avi-handset-height, 100dvh); max-height: 100dvh; border: 0; border-radius: 0; }
.flight-dialog:is(.is-maximized, .is-handset) .flight-player-panel { height: 100%; }
.flight-dialog.is-handset .flight-player-header { padding: 6px 9px; }
.flight-dialog.is-handset .flight-player-header h2 { font-size: 1.125rem; }
.flight-dialog.is-handset .flight-player-status { font-size: .875rem; }
.flight-dialog.is-handset .flight-player-footer { padding: 6px 9px max(6px, env(safe-area-inset-bottom)); }
.flight-dialog.is-handset .flight-player-footer .flight-button { font-size: .9375rem; }
.flight-dialog :focus-visible { outline-color: #c3efff; }

@media (max-width: 1040px) {
  :root { --shell: calc(100% - 60px); }
}
@media (min-width: 901px) and (max-width: 1040px) {
  .avi-header-grid { gap: 10px; }
  .avi-brand { width: 108px; }
  .avi-nav a { padding-inline: 7px; }
}

@media (max-width: 900px) {
  .avi-header-grid { min-height: 64px; grid-template-columns: 1fr auto; grid-template-areas: "brand tools" "nav nav"; column-gap: 6px; row-gap: 0; }
  .avi-header .avi-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 5px 0 11px; }
  .avi-header.menu-ready:not(.menu-open) .avi-nav { display: none; }
  .menu-ready .menu-control { display: inline-flex; }
  .avi-nav a { padding-inline: 8px; white-space: normal; line-height: 1.25; }
  .compare-layout { grid-template-columns: 1fr; }
  .reader-index { top: 77px; }
}
@media (max-width: 1120px) {
  .version { grid-template-columns: minmax(0, 39%) minmax(0, 1fr); grid-template-areas: "cover copy" "actions actions"; }
  .version-actions { padding: 8px 12px; border-top: 1px solid var(--line); }
}
@media (max-width: 850px) {
  .version-grid { grid-template-columns: minmax(0, 1fr); }
  .version { grid-template-columns: minmax(0, clamp(155px, 28vw, 220px)) minmax(0, 1fr); grid-template-areas: "cover copy" "cover actions"; }
  .version-actions { padding: 0 12px 10px; border: 0; }
  .booster-layout { grid-template-columns: minmax(0, 1fr); }
  .booster-shot img { max-height: 350px; object-fit: contain; background: #06215a; }
}
@media (max-width: 760px) {
  :root { --shell: calc(100% - 40px); --section: clamp(33px, 7vw, 51px); }
  html { scroll-padding-top: 76px; }

  .route-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 17px; }
  .route-steps::before { display: none; }
  .game-layout, .reader-layout, .interior-split, .missing-layout { grid-template-columns: minmax(0, 1fr); }
  .game-copy h1 { max-width: 20ch; }
  .game-copy .actions { margin-bottom: 4px; }
  .game-facts { margin-top: 15px; }
  .reader-layout { gap: 16px; padding-block: 22px var(--section); }
  .reader-index { position: static; }
  .r2-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 7px; }
  .interior-art { padding-block: 12px; }
  .interior-plane { max-width: min(72%, 330px); }
  .flight-dialog { border-radius: 11px; }
  .flight-player-header, .flight-player-footer { padding: 6px 8px; }
  .flight-player-footer .flight-button { font-size: .79rem; }
}
@media (max-width: 700px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr); padding-block: 16px 25px; gap: 12px; }
  .home-hero { background: linear-gradient(180deg, #12265524 0%, #11234eb0 32%, #101f49 75%), var(--hero-sky) 72% 47% / cover, #162852; }
  .hero-art { grid-row: 1; width: min(75%, 339px); justify-self: center; }
  .home-hero h1 { font-size: clamp(1.95rem, 7.9vw, 2.8rem); }
  .home-hero p { margin-block: 12px 16px; font-size: .93rem; }
  .home-jump .shell { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
@media (max-width: 600px) {
  :root { --shell: calc(100% - 30px); }
  .avi-brand { width: 100px; }
  .avi-header-tools { gap: 5px; }
  .header-demo { min-width: 45px; padding-inline: 6px; }
  .header-demo .avi-icon { width: 15px; height: 15px; }
  :is(.home-hero, .game-copy) .actions .flight-button { min-height: 44px; padding: 6px 9px; font-size: .79rem; }
  .home-jump a { min-height: 51px; padding-inline: 8px; gap: 7px; font-size: .84rem; }
  .jump-icon { width: 29px; height: 29px; }
  .jump-icon .avi-icon { width: 18px; height: 18px; }
  .jump-arrow { width: 12px; height: 12px; }
  .version-grid, .edition-grid, .review-quotes { grid-template-columns: minmax(0, 1fr); }
  .version { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); grid-template-areas: "cover copy" "actions actions"; }
  .version-actions { padding: 7px 10px; border-top: 1px solid var(--line); }
  .version-copy { padding: 11px 10px 7px; gap: 6px; }
  .version-copy > p { font-size: .86rem; line-height: 1.42; }
  .story-links p { font-size: .88rem; }
  .route-steps { grid-template-columns: 1fr; gap: 16px; }
  .route-steps::before { display: block; inset: 20px auto 26px 21px; width: 1px; height: auto; }
  .route-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 3px 10px; }
  .step-icon { width: 44px; height: 44px; grid-row: 1 / span 2; margin: 0; }
  .step-icon .avi-icon { width: 23px; height: 23px; }
  .route-steps p { margin-top: 0; max-width: 100%; }
  .comparison table { font-size: .77rem; }
  .comparison :is(th, td) { padding: 9px 6px; }
  .edition { min-height: 0; grid-template-columns: 40px 1fr; }
  .edition > .avi-icon { width: 32px; height: 32px; }
  .game-copy > p { font-size: .93rem; }
  .game-film { padding: 4px; border-radius: 13px; }
  .game-facts { gap: 6px; }
  .game-facts > div { padding: 7px 4px; text-align: center; }
  .game-facts dt > .avi-icon { position: static; display: block; translate: none; margin: 0 auto 4px; width: 28px; height: 28px; padding: 6px; border-radius: 6px; }
  .reader-section h2 .avi-icon, .review-topic h2 .avi-icon { width: 34px; height: 34px; padding: 7px; }
  .game-facts dt { font-size: .69rem; }
  .game-facts dd { font-size: .94rem; overflow-wrap: anywhere; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 430px) {
  .avi-header .avi-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 365px) {
  :root { --shell: calc(100% - 24px); }
  :is(.home-hero, .game-copy) .actions .flight-button-paid .avi-icon { display: none; }
  .avi-header-tools .header-demo .avi-icon { display: none; }
  .home-jump a { grid-template-columns: auto minmax(0, 1fr); }
  .jump-arrow { display: none; }
  .version-copy > p { font-size: .82rem; line-height: 1.4; }
  .version-copy h3 { font-size: 1.1rem; }
  .version-facts { column-gap: 11px; }
  .review-topics a { font-size: .8rem; }
}
@media (max-width: 760px), (max-height: 520px) {
  .flight-dialog { --avi-player-margin: 8px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .flight-player-header, .flight-player-footer { padding-block: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .flight-player-loading { animation: none; }
}

@font-face {
  font-family: Outfit;
  src: url("/assets/fonts/outfit-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
h1, h2, h3, .game-facts dd { font-family: Outfit, var(--font); }
h1, h2 { word-spacing: .025em; }
.game-title-name { white-space: nowrap; }
.game-copy h1 { font-size: clamp(1.92rem, 3.36vw, 3.18rem); }
@media (max-width: 760px) {
  .game-copy h1 { max-width: 20ch; }
}

.player-tools { display: flex; align-items: center; gap: 6px; flex: none; }

.flight-player-loading {
  display: grid;
  place-items: center;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: linear-gradient(#0a1625a8, #0a1625d8), var(--avi-game-poster, none) center / cover;
  animation: none;
}
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid #dbf4ff50;
  border-top-color: #ffd05c;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .loading-spinner { animation: none; }
}
