/* DUNK website and press kit · October 2026.
   A quiet warm-graphite page, cream type like the logo, Baloo 2 throughout,
   and the art always shown whole and doing the talking. */

:root {
  --bg: #1b1916;
  --bg-deep: #121110;
  --line: rgba(255, 248, 234, .12);
  --cream: #fff8ea;
  --soft: #cdc4b6;
  --ball: #ef8a3c;
  --ink: #1d2b38;
  --container: 1080px;
  --gutter: clamp(18px, 4.5vw, 40px);
  --topbar: 64px;
  --display: "Baloo 2", system-ui, sans-serif;
  --body: "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html:lang(ja) { --display: "Yu Gothic", Meiryo, "Hiragino Kaku Gothic ProN", sans-serif; --body: "Yu Gothic", Meiryo, "Hiragino Kaku Gothic ProN", sans-serif; }
html:lang(zh) { --display: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif; --body: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif; }
html:lang(ja) .dunk :is(h1, h2, h3, .intro__tagline), html:lang(zh) .dunk :is(h1, h2, h3, .intro__tagline) { font-weight: 800; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 16px); }
body.dunk {
  margin: 0;
  color: var(--cream);
  background: var(--bg);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.dunk img, .dunk video { display: block; max-width: 100%; }
.dunk img { height: auto; }
.dunk a { color: inherit; text-decoration-color: rgba(255, 248, 234, .5); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.dunk a:hover { text-decoration-color: currentColor; }
.dunk h1, .dunk h2, .dunk h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1.05; }
.dunk p { margin: 0 0 1em; }
.dunk ul { margin: 0; padding: 0; list-style: none; }
.dunk dl, .dunk dd, .dunk figure { margin: 0; }
.dunk :focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 2px solid var(--cream); border-radius: 6px;
  font: 800 17px/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.button__icon { width: 20px; height: 20px; flex-shrink: 0; }
.button--small { min-height: 42px; padding: 0 16px; font-size: 15px; }
.button--small .button__icon { width: 18px; height: 18px; }
.dunk .button--ball { color: var(--bg-deep); background: var(--cream); }
.dunk .button--ball:hover { color: var(--ink); background: #fff; border-color: #fff; }
.dunk .button--cloud, .dunk .button--leaf { color: var(--cream); background: transparent; }
.dunk .button--cloud:hover, .dunk .button--leaf:hover { background: rgba(255, 248, 234, .12); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; gap: 24px; width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); height: var(--topbar); margin: 0 auto; padding: 0 var(--gutter); }
.topbar__brand { display: flex; flex-shrink: 0; align-items: center; gap: 12px; }
.topbar__brand a { display: flex; }
.topbar__brand img { width: auto; height: 28px; }
/* The Chinese logo needs more height for its characters to read. */
html[lang="zh"] .topbar__brand img { height: 40px; }
/* Where you are, not a link: the logo is the way home. */
.topbar__label { padding-left: 12px; color: var(--soft); border-left: 1px solid var(--line); font-size: 13px; font-weight: 700; letter-spacing: .06em; line-height: 22px; text-transform: uppercase; }
.topbar__nav { display: flex; flex: 1; justify-content: center; gap: 4px; min-width: 0; }
.topbar__nav a { padding: 8px 10px; color: var(--soft); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.topbar__nav a:hover, .topbar__nav a.is-active { color: var(--cream); text-decoration: underline; }
/* On the home page the one link reads like the PRESS KIT label it leads to. */
.home .topbar__nav a { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.topbar__actions { display: flex; flex-shrink: 0; align-items: center; gap: 10px; margin-left: auto; }
.topbar__language {
  height: 42px; padding: 0 32px 0 12px; color: var(--cream);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23fff8ea' stroke-width='1.8' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 2px solid var(--line); border-radius: 6px; font: 700 15px var(--body); appearance: none; cursor: pointer;
}
.topbar__language option { color: var(--ink); background: #fff; }

/* Hero: the parallax, full width and untouched. */
.hero__media { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-deep); }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__toggle { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; color: var(--ink); background: rgba(255, 248, 234, .85); border: 0; border-radius: 50%; cursor: pointer; }
.hero__toggle svg { width: 12px; height: 12px; }
.hero__icon-play, .hero__toggle[aria-pressed="true"] .hero__icon-pause { display: none; }
.hero__toggle[aria-pressed="true"] .hero__icon-play { display: block; }

/* Key art windows built from the PSD layers, all on the same canvas so the composition stays intact. */
.scene { position: relative; height: min(46vw, 82vh); min-height: 320px; overflow: hidden; background: var(--bg-deep); }
.scene__layer { position: absolute; left: 0; top: -20%; width: 100%; height: 140%; max-width: none; object-fit: cover; object-position: center; will-change: transform; }
.dunk .scene__layer { height: 140%; }
/* Layers overscan the window by 20% top and bottom, so no data-depth may exceed 0.2 or an edge shows. */

/* Trailer: a still with a play badge until clicked, then YouTube's own player. */
.trailer { padding: clamp(56px, 7vw, 88px) 0; text-align: center; border-bottom: 1px solid var(--line); }
.trailer .title { margin-bottom: 28px; }
.trailer__player { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.trailer__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer__start { position: absolute; inset: 0; display: block; width: 100%; padding: 0; background: none; border: 0; cursor: pointer; }
.trailer__start img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
.trailer__start:hover img { filter: brightness(1.08); transform: scale(1.02); }
/* Bottom right, clear of the logo and the OFFICIAL TRAILER tag on the still. */
.trailer__badge { position: absolute; right: clamp(12px, 2.5vw, 28px); bottom: clamp(12px, 2.5vw, 28px); display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px 14px 18px; color: var(--bg); background: var(--cream); border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); font: 800 clamp(15px, 1.6vw, 18px)/1 var(--body); }
.trailer__badge svg { width: 26px; height: 26px; }
.trailer__start:hover .trailer__badge { background: #fff; }
.trailer__after { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 32px; }
.trailer__after p { margin: 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; }
.trailer__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; }
.dunk .trailer__youtube { color: var(--soft); font-weight: 700; }

/* Community: hand-picked fan posts in a swipeable row. */
.community { --clip-h: clamp(320px, 26vw, 380px); padding: clamp(56px, 7vw, 88px) 0; text-align: center; border-bottom: 1px solid var(--line); }
.community .title { margin-bottom: 10px; }
/* Press kit: a small label, the title and one quiet line with the total reach; smaller cards. */
.community--press { --clip-h: 300px; }
.community__eyebrow { display: block; margin-bottom: 10px; color: var(--ball); font: 800 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.community__total { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; margin: 0 0 28px; color: var(--soft); font-size: 16px; font-weight: 700; }
.community__total strong { color: var(--cream); font-weight: 800; }
.community__prompt { margin: 0 0 28px; color: var(--soft); font-size: clamp(16px, 1.6vw, 19px); font-weight: 600; }
.community__rail { position: relative; display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; overflow-x: auto; list-style: none; scrollbar-width: none; overscroll-behavior-x: contain; }
.community__rail::-webkit-scrollbar { display: none; }
.community__rail.is-swaying { cursor: grab; user-select: none; }
.community__rail.is-dragging { cursor: grabbing; }
.community__rail.is-dragging .community__start { pointer-events: none; }
.community__viewport { position: relative; }
/* On-page player: the clip at phone shape over a dimmed page. */
.community-player { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 56px 16px 24px; background: rgba(10, 9, 8, .88); }
.community-player[hidden] { display: none; }
.community-player__frame { height: min(84vh, 820px); aspect-ratio: 9 / 16; max-width: 100%; overflow: hidden; background: #000; border-radius: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.community-player__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
/* Instagram's embed adds its own header and caption around the reel, so it needs more height. */
.community-player__frame[data-platform="instagram"] { width: calc((min(84vh, 820px) - 210px) * 9 / 16 + 2px); aspect-ratio: auto; background: #fff; }
.community-player__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--bg); background: var(--cream); border: 0; border-radius: 50%; cursor: pointer; }
.community-player__close svg { width: 22px; height: 22px; }
body.has-community-player { overflow: hidden; }
.community__arrow { position: absolute; z-index: 1; top: calc(50% - 18px); display: grid; place-items: center; width: 52px; height: 52px; padding: 0; color: var(--bg); background: var(--cream); border: 0; border-radius: 50%; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); cursor: pointer; transform: translateY(-50%); transition: transform .2s ease, background .2s ease; }
.community__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.community__arrow:focus-visible { outline: 3px solid var(--ball); outline-offset: 3px; }
.community__arrow svg { width: 28px; height: 28px; }
.community__arrow--prev { left: -8px; }
.community__arrow--next { right: -8px; }
.community__arrow[hidden] { display: none; }
/* Once it overflows, the row sways gently around the top clip and fades out at both edges. */
.community__rail.is-swaying { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
/* Auto margins center a short row and fall back to 0 once it overflows. */
.community__item:first-child { margin-left: auto; }
.community__item:last-child { margin-right: auto; }
.community__item { flex: none; width: min(calc(var(--clip-h) * 16 / 9), 82vw); scroll-snap-align: start; text-align: left; }
.community__item--vertical { width: calc(var(--clip-h) * 9 / 16); }
.community__item--vertical .community__media { aspect-ratio: 9 / 16; }
.community__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #24211d; border-radius: 10px; }
.community__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.community__start { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; padding: 20px; color: var(--cream); background: none; border: 0; cursor: pointer; }
.community__start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
.community__start:hover img { filter: brightness(1.08); transform: scale(1.03); }
.community__text { position: relative; font: 800 20px/1.2 var(--display); }
.community__play { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 48px; height: 48px; color: var(--bg); background: var(--cream); border-radius: 50%; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.community__play svg { width: 24px; height: 24px; }
.community__stats { position: absolute; left: 12px; bottom: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.community__stat { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 10px; color: var(--cream); background: rgba(18, 17, 16, .78); border-radius: 999px; font: 800 15px/1 var(--body); }
.community__stat svg { width: 18px; height: 18px; }
.dunk .community__credit { display: block; margin-top: 10px; overflow: hidden; color: var(--soft); font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.dunk .community__credit:hover { color: var(--cream); }

/* Press: articles about DUNK in a row of link cards, newest first. */
.press { padding: clamp(56px, 7vw, 88px) 0; text-align: center; border-bottom: 1px solid var(--line); }
.press .title { margin-bottom: 10px; }
.press__rail { display: flex; gap: 16px; margin: 0; padding: 0 0 4px; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.press__rail::-webkit-scrollbar { display: none; }
.press__item { flex: none; width: min(300px, 78vw); scroll-snap-align: start; text-align: left; }
.press__item:first-child { margin-left: auto; }
.press__item:last-child { margin-right: auto; }
.dunk .press__card { display: flex; flex-direction: column; height: 100%; color: var(--cream); text-decoration: none; }
.press__media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; color: var(--soft); background: #24211d; border-radius: 10px; font: 800 20px/1.2 var(--display); }
.press__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
.press__card:hover .press__media img { filter: brightness(1.08); transform: scale(1.03); }
.press__media--plain img, .press__card:hover .press__media--plain img { filter: brightness(.38) saturate(.8); }
.press__media-name { position: relative; padding: 0 16px; color: var(--cream); font: 800 26px/1.1 var(--display); text-align: center; }
.press__meta { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 12px; color: var(--soft); font-size: 14px; font-weight: 700; }
.press__outlet { overflow: hidden; color: var(--ball); white-space: nowrap; text-overflow: ellipsis; }
.press__lang { flex: none; padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; font-size: 11px; letter-spacing: .06em; }
.press__date { flex: none; margin-left: auto; }
.press__title { display: -webkit-box; margin-top: 6px; overflow: hidden; font: 700 17px/1.3 var(--body); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.dunk .press__card:hover .press__title { text-decoration: underline; text-underline-offset: 3px; }

/* Intro */
.intro { padding: clamp(48px, 7vw, 80px) 0; text-align: center; border-bottom: 1px solid var(--line); }
/* Links from the home page land with the intro flush under the top bar, no sliver of the hero. */
#start { scroll-margin-top: -16px; }
.intro__inner { display: flex; flex-direction: column; align-items: center; }
.intro__tagline { max-width: 22ch; margin: 0 0 32px; font-family: var(--display); font-size: clamp(32px, 4.2vw, 54px); font-weight: 800; line-height: 1.02; text-wrap: balance; }
.intro__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 44px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 0; }
.facts > div { padding: 0 18px; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts dt { color: var(--soft); font-size: 14px; font-weight: 600; }
.facts dd { font-size: 16px; font-weight: 800; }

/* Sections */
.band { padding: clamp(64px, 8vw, 104px) 0; border-bottom: 1px solid var(--line); }
.band--follow { padding-top: 0; }
.band__header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 24px; margin-bottom: 36px; }
.title { font-size: clamp(36px, 4.2vw, 52px); }
.title--small { font-size: clamp(28px, 3vw, 36px); }
.band--about > .container > .title { margin-bottom: 36px; }

.frame { display: block; overflow: hidden; background: var(--bg-deep); border: 3px solid var(--cream); border-radius: 4px; }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
a.frame:hover { border-color: #fff; }

/* About the game */
.overview { max-width: 880px; }
.overview__copy p { color: var(--soft); }
.overview__copy .lead { color: var(--cream); font-size: clamp(20px, 1.9vw, 23px); font-weight: 700; line-height: 1.5; }
.factsheet h3 { margin-bottom: 8px; font-size: 24px; }
.factsheet dl > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.factsheet dt { color: var(--soft); font-size: 15px; }
.factsheet dd { grid-column: 2; font-size: 16px; font-weight: 700; }
.factsheet dd span:not(:last-child)::after { content: ", "; }
/* About this game: one compact card per pillar, the Steam banner loop beside its text. */
.about-game { display: grid; gap: 20px; margin-top: clamp(40px, 5vw, 56px); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; overflow: hidden; background: #24211d; border: 1px solid var(--line); border-radius: 10px; }
.feature__media { position: relative; min-height: 240px; margin: 0; }
/* Beside the text the banner fills the card's height, cropped to its centre. */
.feature__media video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.feature__text { display: grid; gap: 10px; padding: clamp(20px, 2.5vw, 32px); }
.dunk .feature__title { margin: 0; font-size: clamp(24px, 2.2vw, 30px); line-height: 1; }
.feature__body { margin: 0; color: var(--soft); font-size: 16px; line-height: 1.55; white-space: pre-line; }
.feature-list { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.feature-list h3 { margin-bottom: 16px; font-size: 24px; }
.feature-list ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 40px; }
.feature-list li { padding-left: 18px; text-indent: -18px; font-weight: 700; }
.feature-list li::before { content: "•"; display: inline-block; width: 18px; text-indent: 0; color: var(--ball); }

/* Media: one download button for everything, then the groups to browse. */
.media-group + .media-group { margin-top: clamp(48px, 6vw, 72px); }
.media-group__header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.dunk .media-group__title { margin: 0; font-size: clamp(22px, 2vw, 28px); }
.dunk .media-group__zip { color: var(--soft); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.dunk .media-group__zip:hover { color: var(--cream); }

/* Screenshots and downloads */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
.shot--featured { grid-column: 1 / -1; }
/* Wide crop keeps the lead screenshot from taking over the Media section. */
.shot--featured .frame img { aspect-ratio: 21 / 9; }
.shot__meta, .download__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 10px 2px 0; font-size: 16px; font-weight: 800; }
.shot__meta a, .download__meta a { flex-shrink: 0; color: var(--soft); font-size: 14px; font-weight: 700; }
.downloads { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 20px; }
.downloads .download { grid-column: span 3; }
.downloads .download:nth-child(-n + 3) { grid-column: span 4; }
.download__image { position: relative; display: block; overflow: hidden; background: var(--bg-deep); border: 3px solid var(--cream); border-radius: 4px; }
.download__image:hover { border-color: #fff; }
.download__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.download__badge { position: absolute; left: 10px; top: 10px; padding: 2px 8px; color: var(--ink); background: var(--cream); border-radius: 4px; font-size: 12px; font-weight: 800; }
.brand-assets { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.brand-assets .download__image { aspect-ratio: 1.745; }
.brand-assets .download__image img { height: 100%; aspect-ratio: auto; }
.download--logo .download__image img { object-fit: contain; padding: 14%; }

/* Studio and contact */
.band--studio { border-bottom: 0; }
.studio { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 100px); }
.studio .title { margin-bottom: 18px; }
.studio__about > p { max-width: 58ch; color: var(--soft); white-space: pre-line; }
.social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px !important; }
.dunk .social__icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--bg); background: var(--cream); border-radius: 50%; transition: transform .15s ease, background .15s ease; }
.social__icon svg { width: 22px; height: 22px; }
.dunk .social__icon:hover { background: #fff; transform: translateY(-2px); }
.studio__email { display: inline-block; margin: 0 0 18px; font-family: var(--display); font-size: clamp(22px, 2.1vw, 27px); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.studio__line { color: var(--soft); }
.studio__line a { margin-left: 4px; color: var(--cream); font-weight: 800; }

/* Footer */
.site-footer { color: var(--soft); background: var(--bg-deep); font-size: 14px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 32px; }
.site-footer__studio { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-footer__studio img { width: 36px; height: 36px; object-fit: contain; filter: invert(1); opacity: .85; }
.privacy-disclosure { max-width: 520px; }
.privacy-disclosure summary { cursor: pointer; }
.privacy-disclosure h2 { margin: 12px 0 6px; font-family: var(--body); font-size: 15px; font-weight: 800; }

/* Screenshot viewer (built by presskit-page.js) */
body.gallery-lightbox-open { overflow: hidden; }
.gallery-lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 64px 72px; background: rgba(16, 38, 60, .96); }
.gallery-lightbox.is-open { display: flex; }
.gallery-lightbox__dialog { position: relative; width: 100%; max-width: 1400px; }
.gallery-lightbox__figure { margin: 0; }
.gallery-lightbox__image { width: 100%; max-height: calc(100vh - 160px); object-fit: contain; }
.gallery-lightbox__caption { display: flex; align-items: center; gap: 16px; padding: 14px 0 0; color: var(--soft); font-size: 15px; }
.gallery-lightbox__title { color: #fff; font-weight: 800; }
.gallery-lightbox__count { font-variant-numeric: tabular-nums; }
.gallery-lightbox__download { margin-left: auto; color: #fff; font-weight: 700; }
.gallery-lightbox__button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: #fff; background: none; border: 0; font: 400 34px/1 Arial, sans-serif; cursor: pointer; }
.gallery-lightbox__close { top: -52px; right: -8px; }
.gallery-lightbox__prev, .gallery-lightbox__next { top: 50%; transform: translateY(-70%); }
.gallery-lightbox__prev { left: -60px; }
.gallery-lightbox__next { right: -60px; }

/* Home page */
.home .intro { border-bottom: 0; padding-bottom: clamp(64px, 9vw, 110px); }

/* Responsive */
@media (max-width: 1000px) {
  /* Narrow screens: the section menu becomes a scrolling second row of the top bar. */
  html { scroll-padding-top: calc(var(--topbar) + 56px); }
  .topbar__inner { flex-wrap: wrap; height: auto; min-height: var(--topbar); row-gap: 0; }
  .topbar__brand, .topbar__actions { height: var(--topbar); }
  .topbar__nav { order: 3; flex: 0 0 calc(100% + var(--gutter) * 2); justify-content: flex-start; margin: 0 calc(var(--gutter) * -1); padding: 0 calc(var(--gutter) - 10px) 8px; overflow-x: auto; scrollbar-width: none; }
  .topbar__nav::-webkit-scrollbar { display: none; }
  /* The home page has a single link, which fits in the bar itself. */
  .home .topbar__nav { order: 0; flex: 1 1 auto; justify-content: center; margin: 0; padding: 0; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .downloads .download, .downloads .download:nth-child(-n + 3) { grid-column: span 6; }
}
@media (max-width: 720px) {
  .community__arrow { width: 44px; height: 44px; }
  .community__arrow--prev { left: 0; }
  .community__arrow--next { right: 0; }
  :root { --topbar: 58px; }
  body.dunk { font-size: 17px; }
  .topbar__inner { gap: 10px; }
  .topbar__label { padding-left: 10px; font-size: 11px; }
  .topbar__actions .button--small { padding: 0 12px; }
  .topbar__actions .button--small span { display: none; }
  .trailer__badge { padding: 12px; }
  .trailer__badge span { display: none; }
  .topbar__brand img { height: 24px; }
  html[lang="zh"] .topbar__brand img { height: 34px; }
  .topbar__language { width: 104px; }
  .scene { height: 85vw; min-height: 0; }
  .intro__actions { flex-direction: column; align-self: stretch; }
  .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; width: 100%; text-align: left; }
  .facts > div, .facts > div + div { padding: 0 8px 0 12px; border-left: 1px solid var(--line); }
  .facts > div:last-child:nth-child(even) { grid-column: 1 / -1; }
  .facts a { overflow-wrap: anywhere; }
  .overview, .studio, .feature, .feature__text { grid-template-columns: 1fr; }
  .feature__media { min-height: 0; }
  .feature__media video { position: static; height: auto; aspect-ratio: 1400 / 400; }
  .factsheet dl > div { grid-template-columns: 104px minmax(0, 1fr); }
  .feature-list ul { grid-template-columns: 1fr; }
  .shots, .brand-assets { grid-template-columns: 1fr; gap: 28px; }
  .downloads .download, .downloads .download:nth-child(-n + 3) { grid-column: span 12; }
  .gallery-lightbox { padding: 64px 12px 96px; }
  .gallery-lightbox__close { right: 0; }
  .gallery-lightbox__prev, .gallery-lightbox__next { top: auto; bottom: -64px; transform: none; }
  .gallery-lightbox__prev { left: 0; }
  .gallery-lightbox__next { right: 0; }
  .gallery-lightbox__caption { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .topbar, .hero__toggle, .site-footer { display: none; }
  body.dunk { color: #000; background: #fff; }
}
