/* Lead with the playable story; keep the existing recorded showcases intact. */
:root { --header-height: 65px; --chrome-height: 65px; }
html { scroll-padding-top: var(--chrome-height); }
.header-inner { min-height: 64px; }
.header .brand img { width: 132px; }
.language-picker { position: relative; }
.language-picker summary { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 10px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; border-radius: 4px; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary:hover, .language-picker[open] summary { background: #22272b; }
.language-picker summary .icon { width: 14px; height: 14px; transition: transform .15s; }
.language-picker[open] summary .icon { transform: rotate(180deg); }
.language-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 192px; padding: 6px; background: #171b1e; border: 1px solid #424b51; border-radius: 6px; box-shadow: 0 12px 32px #0006; }
.language-menu a { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 44px; padding: 10px 12px; border-radius: 3px; text-decoration: none; font-size: 14px; }
.language-menu a > span:last-child { font-size: 11px; color: #aebbc4; }
.language-menu a:hover, .language-menu a:focus-visible { background: #2c343a; }
.language-menu a[aria-current] { color: #74d5ee; background: #1d343d; }
.section-nav { top: var(--header-height); }
.section-nav > .wrap { min-height: 48px; }
.section-nav a { min-height: 48px; border-bottom: 2px solid transparent; }
.section-nav a:hover, .section-nav a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.hero-description, .section-heading > p { text-wrap: pretty; }
.hero { height: auto; min-height: 0; max-height: none; }
.hero-content { padding-block: 42px 90px; }
.hero .hero-lead { margin: 22px 0 12px; }
.hero-description { max-width: 570px; margin: 0 0 26px; font-size: 17px; line-height: 1.65; color: #f0f2f3; }
.hero:after { background: linear-gradient(90deg, #0b0d0fe0, #0b0d0f88 45%, #0b0d0f05 85%); }
.gameplay-section { background: #111214; padding-top: 58px; }
.gameplay-section .section-heading h2 { font-size: 44px; }
.genre-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.genre-grid article { border-top: 1px solid #43484b; padding-top: 22px; }
.genre-index { font-size: 13px; color: var(--accent); }
.genre-grid h3 { margin-top: 16px; font-size: 25px; font-weight: 550; }
.genre-grid p { margin-bottom: 0; font-size: 16px; color: #bdc5ca; }
.story-route { margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line); }
.story-route .eyebrow { margin-bottom: 12px; }
.story-route > h3 { font-size: 28px; font-weight: 550; }
.story-route ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; gap: 28px; padding: 0; margin: 30px 0 20px; }
.story-route li { display: flex; flex-direction: column; position: relative; border-top: 2px solid #406875; padding: 20px 0 0; }
.route-index { color: var(--accent); font-size: 13px; }
.story-route h4 { margin: 14px 0 0; font-size: 21px; font-weight: 550; }
.story-route li p { font-size: 16px; color: #e2e6e8; }
.route-system { margin-top: auto; font-size: 14px; line-height: 1.5; color: var(--accent); }
.route-note { max-width: 940px; margin: 28px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 850px) {
  .hero-content { padding-block: 36px 86px; }
  .hero-description { max-width: 470px; }
  .gameplay-section .section-heading h2 { font-size: 38px; }
  .genre-grid { gap: 24px; }
  .genre-grid h3 { font-size: 21px; }
  .story-route ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}
@media (max-width: 600px) {
  .hero-content { padding-block: 26px 80px; }
  .hero .release-label { margin-bottom: 16px; }
  .hero .hero-lead { margin-top: 16px; }
  .hero-description { font-size: 16px; line-height: 1.5; margin-bottom: 22px; }
  .hero:after { background: linear-gradient(90deg, #0b0d0fe0, #0b0d0f96); }
  .gameplay-section { padding-top: 34px; }
  .gameplay-section .section-heading h2 { font-size: 32px; }
  .genre-grid { grid-template-columns: 1fr; gap: 28px; }
  .genre-grid h3 { font-size: 24px; }
  .genre-grid article { padding-top: 18px; }
  .story-route { margin-top: 40px; padding-top: 28px; }
  .story-route > h3 { font-size: 25px; }
  .story-route ol { grid-template-columns: 1fr; gap: 24px; }
  .story-route li { padding: 0 0 0 20px; border-top: 0; border-left: 2px solid #406875; }
  .story-route h4 { margin-top: 6px; }
  .story-route li p { margin-block: 10px; }
}

/* Keep each chapter's demonstration and controls visible on a laptop screen. */
.showcase-section, .learn-section { padding-block: 36px 56px; }
:is(.showcase-section, .learn-section) .section-heading { margin-bottom: 28px; }
:is(.showcase-section, .learn-section) .section-heading h2 { font-size: 40px; }
:is(.showcase-section, .learn-section) .eyebrow { margin-bottom: 14px; }
.showcase-demo .render-stage { aspect-ratio: 16 / 9; max-height: none; }
.showcase-demo .render-stage > img { object-fit: contain; }
.atmosphere-demo figcaption { flex-direction: column; align-items: stretch; padding: 8px 0 0; min-height: 0; gap: 8px; }
.atmosphere-demo .media-modes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; }
.atmosphere-demo .media-modes button { min-height: 44px; padding: 10px 8px; }
.atmosphere-demo .render-badge { left: 16px; top: 16px; }
.atmosphere-section .feature-foot { padding: 0; margin: 12px 0 0; border: 0; font-size: 13px; line-height: 1.6; }
.anchor-alias { position: absolute; scroll-margin-top: 0; }
@media (min-width: 1100px) {
  .showcase-section > .wrap { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2.6fr); column-gap: 48px; row-gap: 12px; align-items: start; }
  .showcase-section .section-heading { display: block; grid-column: 1; grid-row: 1 / 3; margin: 0; }
  .showcase-section .section-heading > p { margin-top: 22px; font-size: 16px; line-height: 1.6; }
  .showcase-section .section-heading h2 { font-size: 36px; text-wrap: balance; }
  .creation-section .gallery-tabs, #editor-panel, .showcase-demo, .media-provenance, .atmosphere-section .feature-foot { grid-column: 2; min-width: 0; }
  .creation-section .gallery-tabs { gap: 24px; }
  .creation-section .gallery-tabs, .creation-section #editor-panel { width: 100%; max-width: max(418px, calc((100svh - var(--chrome-height) - 174px) * 1.6 + 2px)); }
  .creation-section .gallery-tabs button { min-height: 40px; padding-block: 8px; font-size: 14px; }
  .creation-section #editor-panel { margin: 0; }
  .creation-section .screenshot-stage { aspect-ratio: auto; }
  #editor-image { height: auto; max-height: max(260px, calc(100svh - var(--chrome-height) - 174px)); }
  .creation-section figcaption { align-items: flex-start; min-height: 0; padding: 0; gap: 16px; }
  .creation-section .workflow { grid-column: 1 / -1; margin-top: 32px; }
  .showcase-demo { width: 100%; max-width: max(498px, calc((100svh - var(--chrome-height) - 180px) * 16 / 9)); }
  .camera-demo figcaption { padding-top: 8px; }
  .camera-demo .media-modes button { min-height: 44px; padding: 10px 12px; font-size: 14px; }
  .media-provenance { margin-top: 0; }
  .atmosphere-section .feature-foot { max-width: max(498px, calc((100svh - var(--chrome-height) - 180px) * 16 / 9)); margin-top: 0; }
  .identity-demo figcaption { min-height: 56px; gap: 20px; }
  .learn-section .section-heading { gap: 40px; }
  .learn-section .section-heading > p { flex-basis: 44%; max-width: 620px; font-size: 16px; }
  .learning-grid { gap: 48px; }
  .learning-grid article > img { max-height: 360px; object-position: left top; border: 0; }
  .learning-grid .handbook { padding-top: 16px; }
  .learning-grid .handbook h3 { font-size: 30px; margin-top: 18px; }
}
@media (max-width: 1099px) {
  :is(.showcase-section, .learn-section) .section-heading h2 { font-size: 36px; }
}
@media (max-width: 850px) {
  .section-nav > .wrap { min-height: 48px; gap: 16px; }
  .section-nav a { min-height: 48px; }
}
@media (max-width: 600px) {
  :root { --header-height: 61px; --chrome-height: 61px; }
  .header-inner { min-height: 60px; }
  .section-nav > .wrap { display: flex; overflow-x: auto; gap: 20px; min-height: 44px; scrollbar-width: none; }
  .section-nav a, .section-nav a:nth-child(5) { display: flex !important; min-height: 44px; flex-shrink: 0; white-space: nowrap; padding: 8px 0; }
  .section-nav a:before { display: none; }
  .showcase-section, .learn-section { padding-top: 28px; }
  :is(.showcase-section, .learn-section) .section-heading h2 { font-size: 32px; }
  .atmosphere-demo .media-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.editions-section{padding-block:48px}
.editions-section .section-heading{margin-bottom:28px}
.editions-section .section-heading h2{font-size:36px;line-height:1.2}
.editions-section .edition-heading{flex-wrap:wrap;gap:8px 20px}
.editions-section .edition-heading h3{font-size:28px;line-height:1.25;margin:0}
.editions-section .editions-grid article{padding-top:20px;min-width:0}
.editions-section .editions-grid ul{margin-block:20px}
.editions-section .editions-grid li{padding-block:12px}
.editions-section .preview-continuity{font-size:16px;line-height:1.65;margin:28px 0 0;max-width:1050px}
.editions-section .release-note{margin-top:24px;padding-block:18px}
.editions-section .release-target{display:flex;align-items:center;flex-wrap:wrap;gap:16px 24px;margin-bottom:18px}
@media(max-width:600px){.editions-section .section-heading h2{font-size:30px}.editions-section .editions-grid{gap:32px}}

/* A single navigation row with complete, grouped section links. */
.header .site-navigation { gap: 0; }
.navigation-groups { display: flex; align-items: center; gap: 8px; }
.navigation-group { position: relative; }
.navigation-group summary, .navigation-toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #e1e6e9; font-size: 14px; font-weight: 500; line-height: 1.4; cursor: pointer; list-style: none; }
.navigation-group summary::-webkit-details-marker { display: none; }
.navigation-group summary .icon, .navigation-toggle .icon { width: 14px; height: 14px; transition: transform .15s; }
.navigation-group[open] summary .icon, .navigation-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.navigation-group summary:hover, .navigation-group[open] summary { background: #20262a; }
.navigation-group.is-current summary { color: var(--accent); border-bottom-color: var(--accent); }
.navigation-menu { position: absolute; top: calc(100% + 9px); left: 0; width: max-content; min-width: 260px; max-width: 320px; padding: 8px; background: #171b1e; border: 1px solid #424b51; border-radius: 6px; box-shadow: 0 12px 32px #0006; }
.header .navigation-menu a { display: block; padding: 12px; min-height: 44px; white-space: normal; font-size: 14px; line-height: 1.45; border-radius: 3px; }
.header .navigation-menu a:hover, .header .navigation-menu a:focus-visible { background: #2c343a; color: #fff; }
.header .navigation-menu a[aria-current] { color: #74d5ee; background: #1d343d; }
.navigation-toggle, .header .mobile-preview-link { display: none; }
@media (max-width: 1100px) and (min-width: 851px) {
  .header-inner { gap: 16px; }
  .navigation-groups { gap: 0; }
  .navigation-group summary { padding-inline: 8px; }
  .navigation-menu { left: auto; right: 0; }
}
@media (max-width: 850px) {
  .header .site-navigation { display: flex; margin-left: auto; }
  .header-actions { margin-left: 0; }
  .header-inner { gap: 14px; }
  .navigation-toggle { display: flex; }
  .navigation-groups { position: absolute; top: 100%; left: 0; right: 0; display: block; padding: 12px 24px 20px; max-height: calc(100svh - var(--header-height) - 12px); overflow-y: auto; overscroll-behavior: contain; background: #111518; border-block: 1px solid #424b51; box-shadow: 0 16px 24px #0005; }
  .navigation-ready:not([data-open]) .navigation-groups { display: none; }
  .navigation-group { padding-block: 6px; border-bottom: 1px solid #30383d; }
  .navigation-group summary { padding-inline: 8px; font-weight: 650; }
  .navigation-menu { position: static; width: auto; min-width: 0; max-width: none; padding: 0 0 6px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .header .navigation-menu a { padding-left: 20px; }
  .header .mobile-preview-link { display: flex; align-items: center; gap: 12px; padding: 16px 8px 0; min-height: 48px; color: var(--accent); }
}
@media (max-width: 600px) {
  .header-inner { gap: 8px; }
  .header .brand img { width: 112px; }
  .navigation-toggle { padding-inline: 6px; gap: 6px; }
  .header-actions { gap: 0; }
  .language-picker summary { padding-inline: 6px; gap: 6px; }
  .navigation-groups { padding-inline: 16px; }
}
