.game-page {
  --page: #000000;
  --ink: #eeeeec;
  --muted: #a0a09c;
  --line: #30302e;
  color-scheme: dark;
  background: var(--page);
  color: var(--ink);
}

.game-page:lang(ko) {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.game-page .site-header {
  border: 0;
  background: #000000;
}

.game-main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 48px 24px 88px;
}

.game-back {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 13px;
}

.game-intro h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
}

.game-subtitle {
  margin: 16px 0 0;
  color: #ccccca;
  font-size: 16px;
  line-height: 1.5;
}

.game-subtitle em {
  font-style: normal;
}

.game-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin: 28px 0 36px;
  font-size: 13px;
  line-height: 1.5;
}

.game-metadata dt {
  color: var(--muted);
}

.game-metadata dd {
  margin: 4px 0 0;
}

.game-film {
  margin: 0;
}

.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-poster,
.video-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

.video-stage iframe {
  position: absolute;
  inset: 0;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 64px;
  height: 64px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  cursor: pointer;
  transform: translate(-50%, -50%);
  font-size: 22px;
}

.video-play span {
  margin-left: 3px;
}

.video-play[hidden],
.video-status[hidden] {
  display: none;
}

.video-play:hover {
  background: #ffffff;
  color: #000000;
}

.video-status {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 8px 12px;
  background: #000000;
  color: #ffffff;
  font-size: 13px;
}

.game-film > figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.game-film > figcaption a {
  color: var(--ink);
  white-space: nowrap;
}

.game-text {
  display: grid;
  grid-template-columns: 200px minmax(0, 780px);
  gap: 48px;
  margin-top: 72px;
}

.game-text > h2 {
  padding-top: 5px;
  font-weight: 400;
}

.game-prose {
  min-width: 0;
  max-width: 780px;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.game-prose p {
  margin: 0 0 24px;
}

.game-prose p:last-child {
  margin-bottom: 0;
}

.game-prose strong {
  font-weight: 600;
}

.game-installation {
  margin-top: 80px;
}

.installation-heading {
  margin-bottom: 36px;
}

.installation-heading h2 {
  max-width: 780px;
  margin: 18px 0 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.35;
}

.installation-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.installation-link:hover {
  color: #ffffff;
  text-decoration-thickness: 2px;
}

.installation-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(0, 320px);
  align-items: start;
  justify-content: space-between;
  gap: 64px;
}

.installation-view {
  min-width: 0;
  margin: 0;
}

.installation-view img {
  display: block;
  width: 100%;
  height: auto;
}

.installation-view figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.game-back:hover,
.game-film > figcaption a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.game-page a:focus-visible,
.video-play:focus-visible,
.gallery-button:focus-visible,
.gallery-track:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 5px;
}

.media-gallery {
  margin-top: 64px;
}

.gallery-heading,
.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.gallery-heading h2 {
  min-width: 0;
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.gallery-counter,
.lightbox-counter {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gallery-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 24px;
}

.gallery-button[hidden] {
  display: none;
}

.gallery-button:disabled {
  opacity: 0.3;
  cursor: default;
}

.gallery-track {
  position: relative;
  display: flex;
  align-items: start;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #555550 #000000;
  overscroll-behavior-x: contain;
}

.gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  padding-bottom: 12px;
  scroll-snap-align: start;
}

.gallery-slide a,
.gallery-slide picture,
.gallery-slide img {
  display: block;
  width: 100%;
}

.gallery-slide img {
  height: auto;
}

.gallery-slide figcaption,
.lightbox-caption {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.gallery-lightbox {
  width: min(1680px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  padding: 16px;
  border: 0;
  background: #000000;
  color: #eeeeec;
  overflow: auto;
  overscroll-behavior: contain;
}

.gallery-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.93);
}

.lightbox-toolbar {
  margin-bottom: 12px;
}

.lightbox-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
}

@media (max-width: 900px) {
  .game-main {
    padding: 32px 16px 56px;
  }

  .game-page .primary-nav {
    border: 0;
  }

  .game-intro h1 {
    font-size: 28px;
  }

  .game-back {
    margin-bottom: 28px;
  }

  .game-subtitle {
    max-width: 440px;
    font-size: 15px;
  }

  .game-metadata {
    gap: 16px 28px;
  }

  .game-text,
  .installation-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .game-text,
  .game-installation {
    margin-top: 48px;
  }

  .media-gallery {
    margin-top: 48px;
  }

  .gallery-heading h2 {
    font-size: 20px;
  }

  .gallery-heading {
    gap: 12px;
  }

  .gallery-controls {
    gap: 8px;
  }

  .gallery-lightbox {
    width: calc(100% - 16px);
    max-height: calc(100% - 16px);
    padding: 12px;
  }

  .game-prose {
    font-size: 15px;
  }

  .installation-heading h2 {
    font-size: 24px;
  }

  .installation-view {
    width: min(100%, 420px);
  }

  .video-play {
    width: 52px;
    height: 52px;
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-page *,
  .game-page *::before,
  .game-page *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
