/* Brand refinements, direct-selection gallery and ambient node stream. */
.site-header { min-height: 144px; padding-block: 14px; }
.header-logo { display: block; width: auto; height: 112px; max-width: none; filter: brightness(0); }
.intro-main, .intro-identity h1 { min-width: 0; }
.intro-identity h1 { font-size: clamp(38px, 4.65vw, 72px); }
.game-card { grid-template-columns: 48% 52%; min-height: 0; }
.game-info { position: relative; padding: 40px 14px 24px 42px; }
.game-meta { margin-bottom: 22px; }
.game-meta img { width: 54px; height: 54px; border-radius: 12px; }
.game-info h3 { margin-bottom: 16px; }
.game-description { max-width: 350px; margin-bottom: 22px; padding-right: 0; }
.game-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0 0 28px; max-width: 390px; font-size: 12px; color: #e0dce8; }
.game-facts li { display: flex; align-items: center; gap: 7px; }
.game-facts li::before { content: ''; width: 3px; height: 3px; background: currentColor; border-radius: 50%; }
.game-gallery { position: relative; z-index: 2; min-width: 0; width: min(100%, 370px); align-self: center; justify-self: center; padding: 28px 26px 24px; }
.gallery-stage { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 14px; }
.gallery-feature { position: relative; display: block; min-width: 0; overflow: hidden; border: 1px solid #ffffff45; border-radius: 9px; background: #19163e; box-shadow: 0 12px 28px #100c3b45; }
.gallery-main-image { display: block; width: 100%; height: auto; aspect-ratio: 872 / 1536; object-fit: contain; }
.enlarge-icon { display: grid; place-items: center; position: absolute; top: 10px; right: 10px; width: 29px; height: 29px; border-radius: 50%; background: #151329cc; color: #fff; transition: background .18s; }
.gallery-feature:hover .enlarge-icon { background: #151329; }
.gallery-thumbnails { display: grid; gap: 7px; }
.gallery-thumb { display: block; min-width: 0; padding: 2px; border: 1px solid #ffffff25; border-radius: 5px; opacity: .55; transition: opacity .18s, border-color .18s; }
.gallery-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 872 / 1536; object-fit: contain; border-radius: 2px; }
.gallery-thumb:hover, .gallery-thumb:focus-visible { opacity: 1; }
.gallery-thumb[aria-pressed='true'] { opacity: 1; border-color: #fff; background: #ffffff15; }
.gallery-progress { height: 3px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: #ffffff24; }
.gallery-progress-fill { display: block; width: 100%; height: 100%; border-radius: inherit; background: color-mix(in srgb, var(--game-glow) 55%, #fff); box-shadow: 0 0 8px #ffffff55; transform: scaleX(0); transform-origin: left center; }
.gallery-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 9px; color: #d5cee2; font-size: 11px; }
.gallery-count { font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.ambient-nodes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; background: radial-gradient(ellipse at 80% 50%, color-mix(in srgb, var(--game-glow) 35%, transparent), transparent 70%); }
.ambient-node { position: absolute; left: -70px; top: var(--lane); width: var(--size); height: auto; opacity: .17; animation: node-stream var(--duration) var(--delay) linear infinite; animation-play-state: paused; }
.nodes-running .ambient-node { animation-play-state: running; }
@keyframes node-stream {
  0% { transform: translate3d(0, 0, 0) rotate(var(--tilt)); opacity: 0; }
  7% { opacity: .17; }
  90% { opacity: .17; }
  100% { transform: translate3d(var(--travel-width, 1450px), var(--rise), 0) rotate(calc(var(--tilt) + 45deg)); opacity: 0; }
}
.motion-toggle { display: flex; align-items: center; gap: 7px; padding: 10px 0; margin-top: auto; border: 0; background: transparent; color: #c9c3da; font-size: 11px; }
.motion-toggle::before { content: 'Ⅱ'; font-size: 12px; }
.motion-toggle[aria-pressed='true']::before { content: '▷'; }
.motion-toggle:hover { color: #fff; }
.lightbox { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 16px; border: 1px solid #ffffff32; border-radius: 14px; background: #24231f; color: #f4f1e9; }
.lightbox::backdrop { background: #11110feb; backdrop-filter: blur(5px); }
.lightbox-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 12px; }
.lightbox-heading h2 { margin: 0; font: 500 14px var(--body); }
.lightbox-close { display: flex; align-items: center; gap: 13px; background: transparent; color: inherit; border: 0; padding: 8px 3px 8px 12px; font-size: 12px; }
.lightbox-close span { font-size: 24px; line-height: 1; }
.lightbox-image { width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 163px); margin: auto; object-fit: contain; border-radius: 5px; }
.lightbox-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.lightbox-controls button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #ffffff42; border-radius: 50%; background: transparent; color: #fff; font-size: 21px; }
.lightbox-controls button:disabled { opacity: .28; cursor: default; }
.lightbox-count { font-size: 12px; font-variant-numeric: tabular-nums; color: #d0ccbf; }
.lightbox :focus-visible { outline-color: #f4f1e9; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 1100px) {
  .intro { gap: 26px; }
  .intro-aside { width: 225px; }
  .intro-aside > p { font-size: 17px; }
  .hero-mark { width: 80px; }
  .intro-identity { gap: 20px; }
  .intro-identity h1 { font-size: clamp(33px, 4.1vw, 49px); }
  .game-info { padding: 30px 8px 18px 28px; }
  .game-gallery { padding: 25px 22px 20px; }
  .game-info h3 { font-size: clamp(30px, 3.9vw, 45px); }
  .game-meta { margin-bottom: 18px; }
  .game-meta img { width: 44px; height: 44px; }
  .game-description { font-size: 15px; line-height: 1.6; }
  .game-facts { margin-bottom: 21px; }
  .motion-toggle { margin-top: 20px; }
}
@media (max-width: 760px) {
  .site-header { min-height: 128px; padding-block: 12px; gap: 18px; }
  .header-logo { height: 100px; }
  .intro-aside { width: auto; }
  .intro-aside > p { font-size: 14px; }
  .hero-mark { width: clamp(50px, 12vw, 80px); }
  .intro-identity { gap: 14px; }
  .intro-identity h1 { font-size: clamp(28px, 6.9vw, 48px); }
  .game-card { grid-template-columns: 1fr; }
  .game-info { padding: 27px 27px 12px; }
  .game-meta { margin-bottom: 17px; }
  .game-info h3 { font-size: 39px; }
  .game-description { font-size: 16px; max-width: 460px; }
  .game-facts { max-width: none; }
  .motion-toggle { margin-top: 14px; }
  .game-gallery { width: min(100%, 350px); padding: 4px 22px 24px; }
  .ambient-node:nth-child(n+11) { display: none; }
}
@media (max-width: 390px) {
  .game-info { padding-inline: 22px; }
  .game-info h3 { font-size: 35px; }
  .gallery-stage { grid-template-columns: minmax(0, 1fr) 34px; gap: 10px; }
  .gallery-thumbnails { gap: 5px; }
  .gallery-caption { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-progress { display: none; }
  .ambient-node { animation: none; display: none; }
  .motion-toggle { display: none !important; }
}
