:root {
  --paper: #f2f5ef;
  --ink: #050706;
  --accent: #87ff65;
  --accent-rgb: 135, 255, 101;
  color-scheme: dark;
  font-family: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(var(--accent-rgb), 0.09), transparent 37%),
    #050706;
  color: var(--paper);
}

body.project-page--orange {
  --accent: #ff9d4d;
  --accent-rgb: 255, 157, 77;
}

body.project-page--pink {
  --accent: #ff72c6;
  --accent-rgb: 255, 114, 198;
}

body.project-page--lonely {
  background:
    radial-gradient(circle at 16% 28%, rgba(135, 255, 101, 0.075), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(135, 255, 101, 0.035), transparent 34%),
    #040605;
}

button,
a {
  font: inherit;
}

.page-noise,
.page-grid,
.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-grid {
  opacity: 0.72;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.028) 1px, transparent 1px);
  background-size: 52px 52px;
}

.page-noise {
  z-index: 10;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.page-glow {
  background: radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), 0.075), transparent 55%);
  animation: page-breathe 5s ease-in-out infinite;
}

.project-screen {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(78px, 10vw, 118px) clamp(18px, 5vw, 68px) 50px;
}

.back-link {
  position: fixed;
  z-index: 8;
  top: clamp(18px, 4vw, 38px);
  left: clamp(18px, 5vw, 64px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  color: rgba(242, 245, 239, 0.58);
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  border-color: var(--accent);
  outline: none;
  background: rgba(var(--accent-rgb), 0.055);
  color: var(--accent);
}

.project-panel {
  position: relative;
  width: min(980px, 100%);
  min-height: min(610px, calc(100svh - 150px));
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 3px;
  background: rgba(7, 10, 8, 0.91);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.62),
    0 0 46px rgba(var(--accent-rgb), 0.055);
  animation: panel-arrive 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.project-panel::after {
  position: absolute;
  z-index: 5;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 4px,
    rgba(var(--accent-rgb), 0.017) 5px
  );
  content: "";
  pointer-events: none;
}

.project-panel__bar {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.18);
  background: rgba(var(--accent-rgb), 0.04);
  color: rgba(242, 245, 239, 0.36);
  font-family: "DM Mono", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-panel__bar > span:nth-child(2) {
  color: rgba(var(--accent-rgb), 0.62);
}

.project-panel__bar > span:last-child {
  justify-self: end;
  letter-spacing: 0.15em;
}

.window-lights {
  display: flex;
  gap: 5px;
}

.window-lights i {
  width: 6px;
  height: 6px;
  border: 1px solid rgba(var(--accent-rgb), 0.48);
  border-radius: 50%;
}

.window-lights i:first-child {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.8);
}

.project-panel__art {
  position: absolute;
  z-index: 0;
  inset: 42px 0 0;
  overflow: hidden;
  opacity: 0.16;
}

.project-panel__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.55) brightness(0.5);
  transform: scale(1.035);
}

.project-panel__art img:nth-child(2) {
  opacity: 0;
  filter: grayscale(1) contrast(2) brightness(0.85);
  mix-blend-mode: screen;
  animation: art-glitch 6s steps(1, end) infinite;
}

.project-panel__art::before,
.project-panel__art::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  content: "";
  pointer-events: none;
}

.project-panel__art::before {
  background: rgba(var(--accent-rgb), 0.74);
  mix-blend-mode: color;
}

.project-panel__art::after {
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), 0.5), transparent);
  opacity: 0.48;
  mix-blend-mode: screen;
  animation: art-scan 5s linear infinite;
}

.project-panel__content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  min-height: calc(min(610px, calc(100svh - 150px)) - 42px);
  padding: clamp(30px, 6vw, 74px);
  background: linear-gradient(90deg, rgba(4, 7, 5, 0.93), rgba(4, 7, 5, 0.65) 63%, transparent);
}

.project-panel__index {
  color: rgba(var(--accent-rgb), 0.64);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-panel h1 {
  max-width: 800px;
  margin: clamp(32px, 8vh, 78px) 0 28px;
  font-size: clamp(2.4rem, 7.2vw, 6.4rem);
  letter-spacing: -0.065em;
  line-height: 0.9;
  overflow-wrap: anywhere;
  text-shadow: 0 5px 28px rgba(0, 0, 0, 0.92);
}

.soon-message {
  display: flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  max-width: 100%;
  margin-top: auto;
  padding: 14px 17px;
  border: 1px solid rgba(var(--accent-rgb), 0.36);
  background: rgba(4, 7, 5, 0.74);
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.04);
}

.soon-message p {
  margin: 0;
}

.soon-message__pulse {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.85);
  animation: pulse 1.7s ease-in-out infinite;
}

.project-panel__footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  color: rgba(242, 245, 239, 0.24);
  font-family: "DM Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-page--age-locked {
  overflow: hidden;
}

.game-detail-page {
  position: relative;
  min-height: 100svh;
  background:
    radial-gradient(circle at 84% 26%, rgba(255, 114, 198, 0.08), transparent 28%),
    radial-gradient(circle at 12% 72%, rgba(255, 114, 198, 0.045), transparent 32%);
}

.project-marquee {
  position: relative;
  z-index: 5;
  width: 100%;
  overflow: hidden;
  border-color: rgba(var(--accent-rgb), 0.44);
  background: rgba(4, 5, 4, 0.94);
  color: rgba(242, 245, 239, 0.78);
  font-family: "DM Mono", monospace;
  font-size: clamp(0.76rem, 1.35vw, 1rem);
  letter-spacing: 0.08em;
  line-height: 52px;
  text-transform: uppercase;
}

.project-marquee--top {
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.44);
}

.project-marquee--bottom {
  border-top: 1px solid rgba(var(--accent-rgb), 0.44);
}

.project-marquee__track {
  display: flex;
  width: max-content;
  animation: detail-marquee 30s linear infinite;
  will-change: transform;
}

.project-marquee--top .project-marquee__track {
  animation-direction: reverse;
}

.project-marquee__track span {
  padding: 0 32px;
  white-space: nowrap;
}

.project-marquee__track i {
  color: rgba(var(--accent-rgb), 0.55);
  font-style: normal;
}

.back-link--detail {
  top: 73px;
  background: rgba(5, 7, 6, 0.88);
  backdrop-filter: blur(8px);
}

.game-detail {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(84px, 8vw, 120px) clamp(16px, 3.2vw, 52px) clamp(72px, 8vw, 110px);
}

.game-detail__layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 38px);
  width: min(1500px, 100%);
  margin: 0 auto;
}

.game-detail__sidebar,
.game-detail__content {
  display: grid;
  align-content: start;
  gap: clamp(16px, 1.6vw, 24px);
  min-width: 0;
}

.detail-window {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.43);
  border-radius: 2px;
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), 0.035), transparent 46%),
    rgba(7, 8, 7, 0.9);
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.42),
    0 0 30px rgba(var(--accent-rgb), 0.025);
}

.detail-window::after {
  position: absolute;
  z-index: 5;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 4px,
    rgba(var(--accent-rgb), 0.018) 5px
  );
  content: "";
  pointer-events: none;
}

.detail-window__bar {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
  background: rgba(var(--accent-rgb), 0.035);
  color: rgba(242, 245, 239, 0.3);
  font-family: "DM Mono", monospace;
  font-size: 0.5rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.detail-window__bar > span:nth-child(2) {
  max-width: min(46vw, 300px);
  overflow: hidden;
  color: rgba(var(--accent-rgb), 0.56);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-window__bar > span:last-child {
  justify-self: end;
  letter-spacing: 0.13em;
}

.detail-window--logo {
  min-height: 286px;
}

.detail-logo {
  position: relative;
  display: grid;
  min-height: 250px;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle, rgba(var(--accent-rgb), 0.07), transparent 54%),
    #050605;
}

.detail-logo::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  background: rgba(var(--accent-rgb), 0.55);
  content: "";
  mix-blend-mode: color;
  pointer-events: none;
}

.detail-logo::after {
  position: absolute;
  z-index: 4;
  top: -35%;
  left: 0;
  width: 100%;
  height: 24%;
  background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), 0.35), transparent);
  content: "";
  opacity: 0.5;
  animation: detail-logo-scan 4.8s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

.detail-logo img {
  position: absolute;
  width: 88%;
  height: 84%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.35) brightness(0.88);
}

.detail-logo img:nth-child(2) {
  opacity: 0;
  filter: grayscale(1) contrast(1.8) brightness(1.1);
  animation: detail-logo-glitch 5.2s steps(1, end) infinite;
  mix-blend-mode: screen;
}

.project-page--lonely .detail-logo::before {
  display: none;
}

.project-page--lonely .detail-logo::after {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.project-page--lonely .detail-logo img {
  filter: saturate(1) contrast(1.04) brightness(0.9);
}

.project-page--lonely .detail-logo img:nth-child(2) {
  filter: saturate(1.12) contrast(1.22) brightness(1.05);
}

.detail-logo > span {
  position: absolute;
  z-index: 5;
  right: 13px;
  bottom: 11px;
  color: rgba(var(--accent-rgb), 0.4);
  font-family: "DM Mono", monospace;
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.download-game {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  overflow: hidden;
  padding: 14px 18px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #090609;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.12);
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.download-game::before {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 4px,
    rgba(9, 6, 9, 0.055) 5px
  );
  content: "";
  pointer-events: none;
}

.download-game > span {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.download-game strong {
  font-family: "DM Mono", monospace;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-game small {
  font-size: 0.62rem;
  opacity: 0.62;
}

.download-game > i {
  position: relative;
  font-family: "DM Mono", monospace;
  font-size: 1.25rem;
  font-style: normal;
  transition: transform 180ms ease;
}

.download-game:hover,
.download-game:focus-visible {
  outline: none;
  background: #090609;
  color: var(--accent);
  box-shadow: 0 0 38px rgba(var(--accent-rgb), 0.2);
  transform: translateY(-2px);
}

.download-game:hover > i,
.download-game:focus-visible > i {
  transform: translate(3px, -3px);
}

.download-game--disabled,
.download-game--disabled:hover {
  border-color: rgba(var(--accent-rgb), 0.32);
  background:
    repeating-linear-gradient(135deg, rgba(var(--accent-rgb), 0.035) 0 7px, transparent 7px 14px),
    rgba(5, 8, 6, 0.82);
  color: rgba(var(--accent-rgb), 0.56);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.download-game--disabled > i {
  opacity: 0.45;
  transform: none;
}

.project-page--lonely .project-info h1 {
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.project-info {
  position: relative;
  z-index: 2;
  padding: clamp(22px, 2.7vw, 34px);
}

.project-info__eyebrow,
.section-index {
  margin: 0;
  color: rgba(var(--accent-rgb), 0.55);
  font-family: "DM Mono", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-info h1 {
  margin: 24px 0 10px;
  font-size: clamp(1.7rem, 2.35vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.94;
  white-space: nowrap;
}

.project-info__title-line,
.project-info h1 strong {
  position: relative;
  display: block;
  width: fit-content;
}

.project-info h1 strong {
  color: var(--accent);
  font-size: 1.36em;
  font-weight: 700;
  line-height: 1.05;
}

.project-info__title-line::before,
.project-info__title-line::after,
.project-info h1 strong::before,
.project-info h1 strong::after {
  position: absolute;
  inset: 0;
  content: attr(data-text);
  opacity: 0;
  pointer-events: none;
}

.project-info__title-line::before,
.project-info h1 strong::before {
  color: var(--paper);
  text-shadow: -2px 0 var(--accent);
  animation: project-title-glitch-a 5.4s steps(1, end) infinite;
}

.project-info__title-line::after,
.project-info h1 strong::after {
  color: var(--accent);
  text-shadow: 2px 0 rgba(242, 245, 239, 0.8);
  animation: project-title-glitch-b 5.4s steps(1, end) infinite;
}

.project-info h1 strong::before,
.project-info h1 strong::after {
  animation-delay: -0.12s;
}

.project-info__team {
  margin: 0;
  color: rgba(242, 245, 239, 0.42);
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
}

.project-info__team strong {
  color: rgba(242, 245, 239, 0.72);
  font-weight: 400;
}

.project-info__specs {
  display: grid;
  gap: 13px;
  margin: 32px 0 0;
}

.project-info__specs > div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(var(--accent-rgb), 0.12);
}

.project-info__specs dt,
.project-info__specs dd {
  margin: 0;
}

.project-info__specs dt {
  color: rgba(var(--accent-rgb), 0.46);
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-info__specs dd {
  color: rgba(242, 245, 239, 0.66);
  font-size: 0.78rem;
  line-height: 1.45;
}

.project-info__genres {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
}

.project-info__genres span {
  padding: 6px 9px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  color: rgba(var(--accent-rgb), 0.78);
  font-family: "DM Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.1vw, 15px);
}

.screenshot-slot {
  position: relative;
  display: grid;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.46);
  background:
    linear-gradient(135deg, transparent 49.7%, rgba(var(--accent-rgb), 0.08) 50%, transparent 50.3%),
    linear-gradient(45deg, transparent 49.7%, rgba(var(--accent-rgb), 0.08) 50%, transparent 50.3%),
    rgba(5, 6, 5, 0.86);
  place-items: center;
  color: inherit;
  text-decoration: none;
  text-align: center;
  transition: border-color 180ms ease, background 180ms ease;
}

.screenshot-slot::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 5, 0.08), transparent 46%, rgba(5, 6, 5, 0.72)),
    repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(var(--accent-rgb), 0.035) 4px);
  content: "";
  pointer-events: none;
}

.screenshot-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.7) contrast(1.08);
  transform: scale(1.015);
  transition: filter 220ms ease, transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.screenshot-slot:hover {
  border-color: rgba(var(--accent-rgb), 0.76);
  background-color: rgba(var(--accent-rgb), 0.025);
}

.screenshot-slot:hover img,
.screenshot-slot:focus-visible img {
  filter: saturate(1) brightness(0.92) contrast(1.04);
  transform: scale(1.075);
}

.screenshot-slot:focus-visible {
  border-color: var(--accent);
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.screenshot-slot > span {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 9px;
  color: rgba(var(--accent-rgb), 0.42);
  font-family: "DM Mono", monospace;
  font-size: 0.47rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.screenshot-slot > i {
  position: absolute;
  z-index: 2;
  right: 9px;
  bottom: 7px;
  color: rgba(var(--accent-rgb), 0.76);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  font-style: normal;
}

.screenshot-slot--empty {
  cursor: default;
}

.screenshot-slot--empty strong {
  position: relative;
  z-index: 2;
  color: rgba(var(--accent-rgb), 0.28);
  font-family: "DM Mono", monospace;
  font-size: clamp(0.52rem, 0.82vw, 0.66rem);
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  animation: empty-signal 2.4s steps(1, end) infinite;
}

.screenshot-slot--empty:hover {
  border-color: rgba(var(--accent-rgb), 0.46);
  background-color: transparent;
}

.gallery-modal-open {
  overflow: hidden;
}

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

.gallery-modal {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  padding: 24px;
  opacity: 0;
  place-items: center;
  transition: opacity 220ms ease;
}

.gallery-modal.is-open {
  opacity: 1;
}

.gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(var(--accent-rgb), 0.1), transparent 54%),
    rgba(2, 3, 2, 0.91);
  cursor: zoom-out;
  backdrop-filter: blur(9px);
}

.gallery-modal__window {
  position: relative;
  display: grid;
  grid-template-rows: 40px minmax(0, 1fr) 58px;
  width: min(1180px, calc(100vw - 48px));
  height: min(820px, calc(100svh - 48px));
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.72);
  border-radius: 2px;
  background: rgba(5, 6, 5, 0.98);
  box-shadow:
    0 34px 120px rgba(0, 0, 0, 0.82),
    0 0 60px rgba(var(--accent-rgb), 0.08);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 260ms ease, transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-modal.is-open .gallery-modal__window {
  opacity: 1;
  transform: none;
}

.gallery-modal__window::after {
  position: absolute;
  z-index: 8;
  inset: 0;
  border: 1px solid rgba(var(--accent-rgb), 0.08);
  content: "";
  pointer-events: none;
}

.gallery-modal__bar {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-width: 0;
  padding-left: 13px;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.24);
  background: rgba(var(--accent-rgb), 0.045);
  color: rgba(var(--accent-rgb), 0.62);
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-modal__bar > span:nth-child(2) {
  max-width: 55vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-modal__close {
  align-self: stretch;
  justify-self: end;
  width: 43px;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(var(--accent-rgb), 0.2);
  background: transparent;
  color: rgba(242, 245, 239, 0.42);
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: 1rem;
  transition: color 150ms ease, background 150ms ease;
}

.gallery-modal__close:hover,
.gallery-modal__close:focus-visible {
  outline: none;
  background: var(--accent);
  color: #090609;
}

.gallery-modal__image-frame {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(var(--accent-rgb), 0.055), transparent 58%),
    #020302;
  place-items: center;
}

.gallery-modal__image-frame::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 4px,
    rgba(var(--accent-rgb), 0.018) 5px
  );
  content: "";
  pointer-events: none;
}

.gallery-modal__image-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.94) contrast(1.03);
}

.gallery-modal__image-frame img.is-switching {
  animation: gallery-image-enter 320ms steps(1, end);
}

.gallery-modal__scan {
  position: absolute;
  z-index: 3;
  top: -25%;
  left: 0;
  width: 100%;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), 0.13), transparent);
  opacity: 0.5;
  animation: gallery-scan 4.8s linear infinite;
  pointer-events: none;
}

.gallery-modal__controls {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-top: 1px solid rgba(var(--accent-rgb), 0.2);
  background: rgba(var(--accent-rgb), 0.03);
}

.gallery-modal__controls button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  background: transparent;
  color: rgba(242, 245, 239, 0.5);
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.gallery-modal__controls button:last-child {
  justify-self: end;
}

.gallery-modal__controls button:hover,
.gallery-modal__controls button:focus-visible {
  border-color: var(--accent);
  outline: none;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
}

.gallery-modal__counter {
  color: rgba(242, 245, 239, 0.28);
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}

.gallery-modal__counter strong {
  color: var(--accent);
  font-weight: 400;
}

@keyframes gallery-scan {
  from { transform: translateY(-140%); }
  to { transform: translateY(700%); }
}

@keyframes gallery-image-enter {
  0% { opacity: 0.25; transform: translateX(-5px); clip-path: inset(14% 0 62%); }
  35% { opacity: 0.7; transform: translateX(4px); clip-path: inset(60% 0 10%); }
  70% { opacity: 0.88; transform: translateX(-2px); clip-path: inset(28% 0 34%); }
  100% { opacity: 1; transform: none; clip-path: inset(0); }
}

.game-description__copy {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 4.3vw, 58px);
}

.game-description h2 {
  margin: 24px 0 34px;
  font-size: clamp(2.6rem, 5vw, 5.2rem);
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.game-description h2 strong {
  color: var(--accent);
  font-weight: 700;
}

.game-description__copy > p:not(.section-index) {
  max-width: 920px;
  margin: 0;
  color: rgba(242, 245, 239, 0.66);
  font-size: clamp(0.94rem, 1.32vw, 1.12rem);
  line-height: 1.75;
}

.game-description__copy > p + p {
  margin-top: 16px;
}

.game-description em {
  color: rgba(var(--accent-rgb), 0.82);
  font-style: normal;
}

.lonely-warning {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 12px 16px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.055), transparent 58%),
    rgba(5, 8, 6, 0.78);
}

.lonely-warning::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(var(--accent-rgb), 0.018) 4px);
  content: "";
  pointer-events: none;
}

.lonely-warning__signal {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8);
  animation: pulse 1.4s ease-in-out infinite;
}

.lonely-warning p,
.lonely-warning small {
  position: relative;
  z-index: 2;
  margin: 0;
}

.lonely-warning p {
  color: rgba(242, 245, 239, 0.58);
  font-size: 0.8rem;
}

.lonely-warning p strong {
  color: rgba(var(--accent-rgb), 0.78);
  font-weight: 500;
}

.lonely-warning small {
  color: rgba(242, 245, 239, 0.22);
  font-family: "DM Mono", monospace;
  font-size: 0.48rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.corrupted-word {
  position: relative;
  display: inline-block;
  width: 8.1ch;
  margin: 0 0.15em;
  overflow: visible;
  color: transparent;
  font-family: "DM Mono", monospace;
  font-weight: 500;
  letter-spacing: -0.08em;
  vertical-align: baseline;
  filter: blur(0.45px);
  animation: corrupted-word-base 240ms steps(1, end) infinite;
}

.corrupted-word::before,
.corrupted-word::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.corrupted-word::before {
  color: var(--accent);
  content: attr(data-text);
  text-shadow: -3px 0 #f2f5ef, 3px 0 rgba(var(--accent-rgb), 0.7);
  animation: corrupted-word-a 310ms steps(1, end) infinite;
}

.corrupted-word::after {
  color: rgba(242, 245, 239, 0.86);
  content: attr(data-noise);
  text-shadow: 2px 0 var(--accent), -2px 0 rgba(var(--accent-rgb), 0.7);
  animation: corrupted-word-b 190ms steps(1, end) infinite;
}

.game-comments {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 2.5vw, 38px);
  align-items: start;
}

.game-comment--lead {
  margin-top: 74px;
}

.game-comments--solo {
  display: block;
}

.game-comment--solo {
  width: min(720px, 100%);
}

.game-comment:hover {
  border-color: rgba(var(--accent-rgb), 0.74);
  animation: comment-window-startle 380ms steps(1, end);
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.5),
    0 0 34px rgba(var(--accent-rgb), 0.08);
}

.game-comment__copy {
  position: relative;
  z-index: 2;
  min-height: 220px;
  padding: clamp(24px, 3vw, 38px);
}

.game-comment__quote {
  position: absolute;
  top: 9px;
  right: 20px;
  color: rgba(var(--accent-rgb), 0.13);
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
}

.game-comment__copy > p {
  position: relative;
  max-width: 480px;
  margin: 0;
  color: rgba(242, 245, 239, 0.7);
  font-size: clamp(0.86rem, 1.2vw, 1.02rem);
  line-height: 1.65;
}

.game-comment__copy footer {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 32px;
}

.game-comment__copy footer strong {
  color: rgba(var(--accent-rgb), 0.84);
  font-size: 0.78rem;
}

.game-comment__copy footer span {
  color: rgba(242, 245, 239, 0.28);
  font-family: "DM Mono", monospace;
  font-size: 0.53rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-comment__copy--pending {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-comment__signal {
  width: 8px;
  height: 8px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8);
  animation: pulse 1.7s ease-in-out infinite;
}

@keyframes detail-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes empty-signal {
  0%, 72%, 100% { opacity: 0.34; }
  73% { opacity: 0.08; transform: translateX(-2px); }
  76% { opacity: 0.5; transform: translateX(2px); }
  79% { opacity: 0.18; transform: none; }
}

@keyframes corrupted-word-base {
  0% { transform: translate(0, 0) skewX(0); }
  25% { transform: translate(-2px, 1px) skewX(9deg); }
  50% { transform: translate(2px, -1px) skewX(-12deg); }
  75% { transform: translate(-1px, 0) skewX(5deg); }
}

@keyframes corrupted-word-a {
  0% { clip-path: inset(0 0 68%); transform: translateX(-3px); opacity: 0.75; }
  33% { clip-path: inset(31% 0 35%); transform: translateX(4px); opacity: 0.42; }
  66% { clip-path: inset(70% 0 0); transform: translateX(-1px); opacity: 0.9; }
}

@keyframes corrupted-word-b {
  0% { clip-path: inset(18% 0 48%); transform: translateX(3px) scaleX(1.08); opacity: 0.78; }
  30% { clip-path: inset(62% 0 5%); transform: translateX(-4px) scaleX(0.94); opacity: 0.38; }
  60% { clip-path: inset(4% 0 76%); transform: translateX(2px) scaleX(1.12); opacity: 0.92; }
  85% { clip-path: inset(40% 0 25%); transform: translateX(-2px); opacity: 0.58; }
}

@keyframes detail-logo-scan {
  from { transform: translateY(-120%); }
  to { transform: translateY(590%); }
}

@keyframes detail-logo-glitch {
  0%, 88%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  89% { opacity: 0.55; transform: translateX(-7px); clip-path: inset(18% 0 58%); }
  91% { opacity: 0.26; transform: translateX(6px); clip-path: inset(66% 0 12%); }
  93% { opacity: 0; }
}

@keyframes project-title-glitch-a {
  0%, 89%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  90% { opacity: 0.65; transform: translate(-3px, 1px); clip-path: inset(12% 0 62%); }
  91% { opacity: 0.22; transform: translate(2px, -1px); clip-path: inset(68% 0 8%); }
  92% { opacity: 0; }
}

@keyframes project-title-glitch-b {
  0%, 91%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  92% { opacity: 0.46; transform: translate(3px, -1px); clip-path: inset(42% 0 31%); }
  93% { opacity: 0.18; transform: translate(-2px, 1px); clip-path: inset(8% 0 72%); }
  94% { opacity: 0; }
}

@keyframes comment-window-startle {
  0%, 100% { transform: none; }
  14% { transform: translate(-3px, 1px) rotate(-0.22deg); }
  28% { transform: translate(3px, -2px) rotate(0.18deg); }
  43% { transform: translate(-2px, -1px) rotate(-0.12deg); }
  58% { transform: translate(2px, 1px) rotate(0.08deg); }
  74% { transform: translate(-1px, 0); }
}

@media (max-width: 1060px) {
  .game-detail__layout {
    grid-template-columns: 1fr;
  }

  .game-detail__sidebar {
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  }

  .detail-window--logo {
    min-height: 100%;
  }

  .detail-logo {
    min-height: 100%;
  }
}

@media (max-width: 700px) {
  .project-marquee {
    line-height: 44px;
  }

  .back-link--detail {
    top: 58px;
  }

  .game-detail {
    padding: 76px 14px 66px;
  }

  .game-detail__sidebar,
  .game-comments {
    grid-template-columns: 1fr;
  }

  .detail-window--logo,
  .detail-logo {
    min-height: 250px;
  }

  .game-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-comment--lead {
    margin-top: 0;
  }

  .game-description h2 {
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }

  .lonely-warning {
    grid-template-columns: auto 1fr;
  }

  .lonely-warning small {
    grid-column: 2;
  }

  .gallery-modal {
    padding: 8px;
  }

  .gallery-modal__window {
    grid-template-rows: 40px minmax(0, 1fr) 56px;
    width: calc(100vw - 16px);
    height: calc(100svh - 16px);
  }

  .gallery-modal__bar {
    padding-left: 9px;
  }

  .gallery-modal__bar > span:nth-child(2) {
    max-width: 48vw;
  }

  .gallery-modal__controls {
    gap: 6px;
    padding: 7px;
  }

  .gallery-modal__controls button {
    gap: 5px;
    min-height: 36px;
    padding: 0 9px;
    font-size: 0.49rem;
  }

  .gallery-modal__counter {
    font-size: 0.53rem;
  }
}

@media (max-width: 420px) {
  .project-info {
    padding: 22px 19px;
  }

  .project-info h1 {
    font-size: 1.82rem;
  }

  .detail-window__bar {
    padding: 0 8px;
  }

  .detail-window__bar > span:nth-child(2) {
    max-width: 170px;
  }

  .game-description__copy,
  .game-comment__copy {
    padding: 25px 20px;
  }
}

.age-gate {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 114, 198, 0.12), transparent 48%),
    rgba(4, 5, 4, 0.985);
  transition: opacity 360ms ease, visibility 360ms ease;
}

.age-gate::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 114, 198, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 114, 198, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  pointer-events: none;
}

.age-gate__window {
  position: relative;
  width: min(620px, 100%);
  border: 1px solid rgba(255, 114, 198, 0.62);
  background: rgba(8, 7, 8, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72), 0 0 50px rgba(255, 114, 198, 0.08);
  animation: warning-glitch 4s steps(1, end) infinite;
}

.age-gate__bar {
  display: flex;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 114, 198, 0.28);
  color: rgba(255, 114, 198, 0.66);
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.age-gate__content {
  padding: clamp(30px, 7vw, 62px);
}

.age-gate__label {
  margin: 0 0 20px;
  color: #ff72c6;
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.age-gate h1 {
  margin: 0;
  font-size: clamp(4.5rem, 18vw, 9rem);
  letter-spacing: -0.08em;
  line-height: 0.76;
}

.age-gate__message {
  max-width: 480px;
  margin: 34px 0 0;
  color: rgba(242, 245, 239, 0.66);
  font-size: clamp(1rem, 2.8vw, 1.22rem);
  line-height: 1.55;
}

.age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 34px;
}

.age-gate__confirm,
.age-gate__leave {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(255, 114, 198, 0.44);
  background: transparent;
  color: rgba(242, 245, 239, 0.68);
  cursor: pointer;
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.age-gate__confirm {
  background: #ff72c6;
  color: #090609;
  font-weight: 500;
}

.age-gate__confirm:hover,
.age-gate__confirm:focus-visible,
.age-gate__leave:hover,
.age-gate__leave:focus-visible {
  outline: 1px solid #ff72c6;
  outline-offset: 3px;
}

.age-gate.is-dismissed {
  visibility: hidden;
  opacity: 0;
}

.age-locked {
  visibility: hidden;
}

.age-verified .age-locked {
  visibility: visible;
}

@keyframes panel-arrive {
  from { opacity: 0; transform: translateY(24px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes page-breathe {
  50% { opacity: 0.62; }
}

@keyframes pulse {
  50% { opacity: 0.35; transform: scale(0.72); }
}

@keyframes art-scan {
  from { transform: translateY(-120%); }
  to { transform: translateY(470%); }
}

@keyframes art-glitch {
  0%, 89%, 100% { opacity: 0; transform: scale(1.035); clip-path: inset(0); }
  90% { opacity: 0.4; transform: translate(-7px, 1px) scale(1.05); clip-path: inset(15% 0 63%); }
  92% { opacity: 0.2; transform: translate(6px, -2px) scale(1.04); clip-path: inset(65% 0 12%); }
  94% { opacity: 0; }
}

@keyframes warning-glitch {
  0%, 91%, 100% { transform: none; }
  92% { transform: translateX(-2px); }
  93% { transform: translateX(3px); }
  94% { transform: none; }
}

@media (max-width: 620px) {
  .project-screen {
    padding: 74px 14px 20px;
  }

  .project-panel {
    min-height: calc(100svh - 96px);
  }

  .project-panel__content {
    min-height: calc(100svh - 138px);
    padding: 28px 22px;
  }

  .project-panel__bar {
    padding: 0 10px;
  }

  .project-panel__bar > span:nth-child(2) {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-panel h1 {
    margin-top: 54px;
    font-size: clamp(2.7rem, 15vw, 4.4rem);
  }

  .project-panel__footer {
    flex-direction: column;
    gap: 7px;
  }

  .age-gate {
    padding: 14px;
  }

  .age-gate__content {
    padding: 30px 22px;
  }

  .age-gate__actions {
    flex-direction: column;
  }

  .age-gate__confirm,
  .age-gate__leave {
    display: grid;
    width: 100%;
    place-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
