:root {
  color-scheme: dark;
  --bg: #020812;
  --bg-deep: #01040a;
  --surface: #071422;
  --surface-2: #0a1b2d;
  --panel: #0d1724;
  --line: rgba(92, 190, 246, 0.2);
  --line-strong: rgba(92, 202, 255, 0.52);
  --cyan: #58cfff;
  --cyan-soft: #b9efff;
  --text: #f2f7ff;
  --muted: #93a5ba;
  --quiet: #52677d;
  --orange: #ffae18;
  --yellow: #ffc539;
  --green: #55df98;
  --danger: #ff6d75;
  --shell: 1740px;
  --header-h: 76px;
  --cut: 18px;
  --shadow-deep: 0 28px 70px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 53% 18%, rgba(22, 65, 108, 0.17), transparent 35%),
    linear-gradient(180deg, #020813 0%, var(--bg) 62%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(55, 136, 188, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 136, 188, 0.035) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
body.player-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.archive-shell { width: min(calc(100% - 96px), var(--shell)); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-150%);
  padding: 10px 15px;
  border-radius: 7px;
  background: var(--text);
  color: var(--bg);
  font-weight: 850;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* Studio chrome */
.archive-header {
  position: relative;
  z-index: 20;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid rgba(91, 186, 241, 0.12);
  background: rgba(2, 8, 18, 0.86);
  backdrop-filter: blur(15px);
}
.header-inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}
.studio-brand {
  width: max-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.studio-brand img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 0 24px rgba(37, 143, 242, 0.2);
}
.studio-brand span { display: grid; line-height: 1.1; }
.studio-brand strong { font-size: 0.79rem; font-weight: 900; letter-spacing: 0.075em; text-transform: uppercase; }
.studio-brand small { margin-top: 3px; color: var(--muted); font-size: 0.49rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.archive-nav { display: flex; align-items: stretch; align-self: stretch; gap: 32px; }
.archive-nav a,
.archive-nav span {
  position: relative;
  min-width: 62px;
  display: grid;
  place-items: center;
  color: #9eafc2;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.archive-nav span { cursor: default; opacity: 0.72; }
.archive-nav a::after {
  position: absolute;
  right: 22%;
  bottom: 16px;
  left: 22%;
  height: 2px;
  transform: scaleX(0);
  background: var(--cyan);
  content: "";
  transition: transform 150ms ease;
}
.archive-nav a:hover, .archive-nav a:focus-visible, .archive-nav .is-current { color: var(--cyan); }
.archive-nav a:hover::after, .archive-nav a:focus-visible::after, .archive-nav .is-current::after { transform: scaleX(1); }
.back-studio {
  justify-self: end;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(94, 198, 255, 0.28);
  border-radius: 8px 8px 2px 8px;
  color: #ccefff;
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 140ms ease, background-color 140ms ease, transform 120ms ease;
}
.back-studio:hover, .back-studio:focus-visible { transform: translateY(-2px); border-color: var(--cyan); background: rgba(88, 207, 255, 0.08); }

/* Archive stage */
.archive-main { padding-block: 38px 80px; }
.archive-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.52fr) minmax(390px, 1fr) minmax(520px, 1.42fr);
  grid-template-areas:
    "intro artifact preview"
    "selected selected selected"
    "shelf shelf shelf";
  align-items: center;
  gap: 24px 30px;
}
.archive-stage::before,
.archive-stage::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}
.archive-stage::before {
  top: 1%;
  left: 23%;
  width: 36%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 164, 16, 0.13), transparent 66%);
  filter: blur(28px);
}
.archive-stage::after {
  top: 0;
  right: 0;
  width: 62%;
  height: 58%;
  opacity: 0.3;
  background: repeating-linear-gradient(135deg, rgba(74, 175, 236, 0.07) 0 1px, transparent 1px 18px);
  mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
}
.archive-intro { grid-area: intro; position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 40px 0 24px 25px; }
.archive-axis { position: absolute; top: 34px; bottom: 30px; left: 0; width: 1px; background: linear-gradient(var(--cyan), rgba(88, 207, 255, 0.1)); }
.archive-axis i { position: absolute; left: -4px; width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid rgba(88, 207, 255, 0.4); }
.archive-axis i:first-child { top: 0; }
.archive-axis i:last-child { bottom: 0; }
.archive-axis span { position: absolute; top: 41%; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 13px var(--cyan); }
.archive-kicker { margin: 0 0 12px; color: var(--cyan); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.24em; text-transform: uppercase; }
.archive-intro h1 {
  margin: 0;
  font-family: Impact, "Arial Narrow", "Segoe UI", sans-serif;
  max-width: 100%;
  font-size: clamp(3.1rem, 4vw, 4.75rem);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 0 7px 30px rgba(114, 177, 255, 0.08);
}
.archive-subtitle { margin: 20px 0 0; color: var(--cyan); font-size: 0.64rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.archive-subtitle::after { display: inline-block; width: 27px; height: 1px; margin-left: 9px; vertical-align: middle; background: var(--cyan); content: ""; }
.archive-lede { max-width: 240px; margin: 26px 0 0; color: #a7b5c7; font-size: 0.9rem; line-height: 1.75; }
.archive-index { margin-top: auto; display: grid; gap: 2px; color: var(--cyan); }
.archive-index small { color: var(--quiet); font-size: 0.56rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.archive-index strong { font-size: 1.05rem; letter-spacing: 0.08em; }

/* Game artifact */
.game-artifact { grid-area: artifact; position: relative; isolation: isolate; min-width: 0; align-self: stretch; display: grid; align-content: center; padding-left: 17px; filter: drop-shadow(0 30px 32px rgba(0, 0, 0, 0.46)); }
.game-artifact::before {
  position: absolute;
  z-index: -1;
  top: 4%;
  bottom: 72px;
  left: 0;
  width: 44px;
  border: 1px solid rgba(255, 172, 21, 0.26);
  background: linear-gradient(90deg, #111722, #36230d 58%, #080d14);
  content: "";
  clip-path: polygon(48% 0, 100% 3%, 100% 97%, 48% 100%, 0 92%, 0 8%);
}
.artifact-frame {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-self: center;
  padding: clamp(9px, 1vw, 15px);
  border: 1px solid rgba(255, 185, 44, 0.64);
  border-radius: 36px 36px 20px 20px;
  background:
    linear-gradient(135deg, rgba(255, 193, 54, 0.38), transparent 10% 90%, rgba(255, 193, 54, 0.25)),
    linear-gradient(150deg, #654210, #17151b 12%, #090d14 88%, #4d310a);
  box-shadow:
    0 0 0 8px #09111b,
    0 0 0 9px rgba(255, 184, 39, 0.2),
    inset 0 1px rgba(255, 229, 173, 0.4);
}
.artifact-frame::before,
.artifact-frame::after { position: absolute; z-index: 3; width: 28px; height: 28px; border-color: #ffbc2f; content: ""; pointer-events: none; }
.artifact-frame::before { top: 7px; left: 7px; border-top: 2px solid; border-left: 2px solid; border-radius: 18px 0 0; }
.artifact-frame::after { right: 7px; bottom: 7px; border-right: 2px solid; border-bottom: 2px solid; border-radius: 0 0 12px; }
.artifact-frame img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.3)); }
.artifact-glow { position: absolute; inset: 8% 8% 2%; z-index: -1; border-radius: 44%; background: radial-gradient(circle, rgba(255, 167, 26, 0.45), transparent 68%); filter: blur(28px); }
.artifact-base {
  position: relative;
  min-height: 66px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin: 8px -11px 0;
  padding: 10px 18px;
  border: 1px solid rgba(255, 178, 31, 0.28);
  border-radius: 7px 7px 18px 18px;
  background: linear-gradient(180deg, #101820, #070a0f 62%, #15100a);
  box-shadow: 0 11px 0 #030509, 0 14px 0 rgba(255, 179, 23, 0.18), inset 0 1px rgba(255, 255, 255, 0.07);
}
.artifact-base::before { position: absolute; inset: 8px 14px; border: 1px solid rgba(255, 255, 255, 0.055); border-radius: 5px 5px 12px 12px; content: ""; pointer-events: none; }
.artifact-code { position: relative; z-index: 1; color: #68798a; font-size: 0.61rem; font-weight: 900; letter-spacing: 0.11em; }
.complete-indicator { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 0.68rem; font-weight: 950; letter-spacing: 0.11em; text-transform: uppercase; }
.complete-indicator i { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(85, 223, 152, 0.5); border-radius: 50%; background: rgba(85, 223, 152, 0.08); font-style: normal; }

/* Preview station */
.preview-station { grid-area: preview; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.station-label { margin: 0 0 9px 12px; display: flex; align-items: center; gap: 8px; color: var(--cyan); font-size: 0.61rem; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; }
.station-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.preview-screen {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 8.7;
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(89, 190, 244, 0.36);
  border-radius: 12px 12px 3px 12px;
  background: #040a11;
  box-shadow: var(--shadow-deep), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  cursor: pointer;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.preview-screen::before { position: absolute; inset: 4px; z-index: 2; border: 1px solid rgba(88, 207, 255, 0.14); content: ""; pointer-events: none; clip-path: inherit; }
.preview-screen > img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 7px; transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 240ms ease; }
.preview-vignette { position: absolute; inset: 9px; z-index: 1; border-radius: 7px; background: linear-gradient(90deg, rgba(2, 5, 11, 0.04), rgba(29, 10, 48, 0.05)), radial-gradient(circle at center, transparent 45%, rgba(1, 3, 8, 0.42)); }
.preview-launch {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 7px;
  transform: translate(-50%, -42%) scale(0.92);
  opacity: 0;
  color: white;
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 180ms ease, transform 180ms ease;
}
.preview-launch b { width: 58px; height: 58px; display: grid; place-items: center; padding-left: 4px; border: 1px solid rgba(255, 232, 178, 0.8); border-radius: 50%; background: linear-gradient(145deg, #ffc843, #f28d0b); color: #07101a; box-shadow: 0 12px 32px rgba(250, 156, 13, 0.38); font-size: 1.2rem; }
.preview-screen:hover > img, .preview-screen:focus-visible > img { transform: scale(1.025); filter: brightness(0.55) saturate(0.85); }
.preview-screen:hover .preview-launch, .preview-screen:focus-visible .preview-launch { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.evolution-path { margin-top: 12px; }
.path-heading { display: flex; align-items: center; gap: 12px; color: var(--cyan); font-size: 0.58rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.path-heading i { height: 1px; flex: 1; background: linear-gradient(90deg, rgba(88, 207, 255, 0.48), transparent); }
.evolution-path ol { margin: 9px 0 0; padding: 0; display: flex; align-items: center; justify-content: flex-end; gap: clamp(10px, 2vw, 26px); list-style: none; }
.evolution-path li { position: relative; width: 54px; display: grid; justify-items: center; }
.evolution-path li:not(:last-child)::after { position: absolute; top: 23px; left: calc(100% + 5px); color: #53687c; content: "›"; font-size: 1.15rem; font-weight: 900; }
.evolution-path img, .path-locked > span { width: 48px; height: 48px; padding: 3px; border: 1px solid rgba(114, 175, 216, 0.25); border-radius: 9px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(4, 11, 19, 0.85)); object-fit: contain; }
.evolution-path b { margin-top: -7px; min-width: 22px; padding: 1px 5px; border-radius: 99px; background: #0a0f17; color: white; font-size: 0.62rem; text-align: center; }
.path-locked > span { display: grid; place-items: center; color: #35485a; font-size: 1.3rem; font-weight: 900; }

/* Selected game rail */
.selected-game {
  grid-area: selected;
  position: relative;
  z-index: 4;
  min-height: 108px;
  display: grid;
  grid-template-columns: auto minmax(270px, 1.25fr) minmax(300px, 0.85fr) minmax(260px, 0.7fr);
  align-items: stretch;
  padding: 8px;
  border: 1px solid rgba(255, 178, 29, 0.32);
  background: linear-gradient(180deg, #111821, #070b10 62%, #0b0d10);
  box-shadow: 0 14px 0 #020407, 0 17px 0 rgba(79, 144, 185, 0.17), var(--shadow-deep), inset 0 1px rgba(255, 255, 255, 0.08);
  clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px), 0 15px);
}
.selected-game::before { position: absolute; inset: 5px; border: 1px solid rgba(255, 255, 255, 0.055); content: ""; pointer-events: none; clip-path: inherit; }
.selection-number { position: relative; z-index: 1; min-width: 114px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.selection-number > span { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid rgba(255, 177, 24, 0.45); border-radius: 6px; background: rgba(255, 171, 20, 0.06); color: var(--orange); font-size: 1.2rem; font-weight: 950; }
.selection-number small { color: #69798a; font-size: 0.54rem; font-weight: 850; letter-spacing: 0.12em; }
.selection-title { position: relative; z-index: 1; min-width: 0; display: flex; align-items: center; gap: clamp(15px, 2vw, 28px); padding: 0 22px; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.selection-title h2 { margin: 0; color: #f5f2ec; font-family: Impact, "Arial Narrow", "Segoe UI", sans-serif; font-size: clamp(1.7rem, 2.7vw, 2.7rem); font-weight: 900; letter-spacing: -0.015em; line-height: 1; text-transform: uppercase; }
.selection-status { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid rgba(85, 223, 152, 0.28); border-radius: 5px; background: rgba(85, 223, 152, 0.08); color: var(--green); font-size: 0.62rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.selection-status i { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: rgba(85, 223, 152, 0.16); font-style: normal; }
.selection-meta { position: relative; z-index: 1; min-width: 0; margin: 0; display: grid; grid-template-columns: 0.72fr 1.28fr; align-items: center; }
.selection-meta div { min-width: 0; padding: 0 16px; }
.selection-meta div + div { border-left: 1px solid rgba(255, 255, 255, 0.08); }
.selection-meta dt { margin-bottom: 3px; color: #64768a; font-size: 0.52rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.selection-meta dd { margin: 0; overflow: hidden; color: #c8d6e5; font-size: 0.68rem; font-weight: 800; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.play-game-button {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 12px 20px;
  overflow: hidden;
  border: 1px solid #ffcd65;
  border-radius: 5px 5px 1px 5px;
  background: linear-gradient(135deg, #ffc740, #f6a20e 70%, #e98100);
  color: #111318;
  cursor: pointer;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.55), 0 9px 0 #7e4400, 0 16px 25px rgba(222, 128, 0, 0.2);
  text-align: left;
  transition: transform 120ms ease, filter 150ms ease, box-shadow 120ms ease;
}
.play-game-button::after { position: absolute; top: -45%; bottom: -45%; left: -40%; width: 18%; transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent); content: ""; transition: transform 470ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.play-game-button:hover, .play-game-button:focus-visible { transform: translateY(-2px); filter: saturate(1.08) brightness(1.03); box-shadow: inset 0 1px rgba(255, 255, 255, 0.55), 0 11px 0 #7e4400, 0 21px 34px rgba(222, 128, 0, 0.28); }
.play-game-button:hover::after, .play-game-button:focus-visible::after { transform: translateX(800%) skewX(-18deg); }
.play-game-button:active { transform: translateY(6px); box-shadow: inset 0 1px rgba(255, 255, 255, 0.4), 0 3px 0 #7e4400, 0 7px 15px rgba(222, 128, 0, 0.16); }
.play-icon { width: 45px; height: 45px; display: grid; place-items: center; padding-left: 4px; border: 1px solid rgba(17, 19, 24, 0.18); border-radius: 50%; background: rgba(9, 16, 24, 0.9); color: #ffbd2e; font-size: 0.96rem; }
.play-game-button > span:last-child { min-width: 0; display: grid; line-height: 1.05; }
.play-game-button strong { font-family: Impact, "Arial Narrow", "Segoe UI", sans-serif; font-size: clamp(1.3rem, 2vw, 2rem); font-weight: 900; letter-spacing: 0.015em; text-transform: uppercase; }
.play-game-button small { margin-top: 5px; font-size: 0.54rem; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }

/* Shelf */
.archive-shelf {
  grid-area: shelf;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  margin-top: 8px;
  padding: 20px;
  border: 1px solid rgba(77, 162, 213, 0.14);
  background: linear-gradient(180deg, rgba(8, 17, 28, 0.8), rgba(2, 6, 12, 0.92));
  box-shadow: inset 0 -12px 0 rgba(1, 4, 8, 0.74);
  clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%, 0 13px);
}
.shelf-heading { align-self: center; padding-left: 4px; }
.shelf-heading .archive-kicker { margin-bottom: 4px; }
.shelf-heading h2 { margin: 0; color: #7890a7; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.future-slots { min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(110px, 1fr)); gap: 12px; }
.future-slots article { position: relative; min-height: 116px; display: grid; place-items: center; align-content: center; padding: 12px; border: 1px solid rgba(104, 172, 216, 0.15); border-radius: 8px 8px 2px 8px; background: linear-gradient(145deg, rgba(14, 31, 49, 0.74), rgba(4, 10, 18, 0.8)); color: #40566c; text-transform: uppercase; }
.future-slots article > span { position: absolute; top: 9px; left: 10px; color: #2889bd; font-size: 0.56rem; font-weight: 900; letter-spacing: 0.08em; }
.future-slots i { width: 34px; height: 34px; margin-bottom: 10px; border: 1px solid #263c50; border-radius: 50%; box-shadow: inset 0 0 0 8px rgba(24, 46, 64, 0.4); }
.future-slots strong { font-size: 0.58rem; letter-spacing: 0.09em; }
.future-slots small { margin-top: 3px; color: #304457; font-size: 0.47rem; font-weight: 800; letter-spacing: 0.08em; }

/* Generated production skins: artwork is decorative; labels and controls stay live HTML. */
.game-artifact { padding-left: 0; }
.game-artifact::before { display: none; }
.artifact-frame {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.artifact-frame::before, .artifact-frame::after { display: none; }
.artifact-frame img { position: absolute; }
.artifact-machine { inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: none; pointer-events: none; }
.artifact-frame .artifact-logo { top: 18%; left: 32%; z-index: 2; width: 44%; height: 44%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.42)); }
.artifact-glow { inset: 12% 7% 4%; background: radial-gradient(circle, rgba(255, 167, 26, 0.52), transparent 68%); }
.artifact-base {
  position: absolute;
  inset: 0;
  z-index: 3;
  min-height: 0;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  pointer-events: none;
}
.artifact-base::before { display: none; }
.artifact-base .artifact-code {
  position: absolute;
  top: 83.4%;
  left: 24.2%;
  width: 23.8%;
  transform: translateY(-50%);
  font-size: clamp(0.43rem, 1.5vw, 0.61rem);
  text-align: center;
  white-space: nowrap;
}
.artifact-base .complete-indicator {
  position: absolute;
  top: 83.4%;
  left: 52.3%;
  width: 34.5%;
  justify-content: center;
  transform: translateY(-50%);
}
.complete-indicator i { width: 21px; height: 21px; }

.play-game-button { transition: transform 120ms ease, filter 150ms ease, box-shadow 120ms ease, border-color 150ms ease; }
.play-game-button:hover { transform: translateY(-2px) scale(1.012); filter: saturate(1.13) brightness(1.08); box-shadow: inset 0 1px rgba(255, 255, 255, 0.62), 0 11px 0 #7e4400, 0 21px 38px rgba(247, 150, 0, 0.36); }
.play-game-button:focus-visible { outline: 3px solid #bdefff; outline-offset: 4px; transform: translateY(-2px); filter: saturate(1.1) brightness(1.08); box-shadow: inset 0 1px rgba(255, 255, 255, 0.62), 0 11px 0 #7e4400, 0 0 30px rgba(88, 207, 255, 0.35); }
.play-game-button:disabled { cursor: wait; filter: saturate(0.72) brightness(0.9); }
.play-game-button:disabled .play-icon { animation: play-busy 780ms linear infinite; }
@keyframes play-busy { to { transform: rotate(1turn); } }

@media (min-width: 1041px) {
  .game-artifact { z-index: 2; transform: scale(1.08); transform-origin: center bottom; }
  .selected-game {
    min-height: 126px;
    grid-template-columns: minmax(470px, 1.4fr) minmax(280px, 0.72fr) 23%;
    margin-top: -38px;
    padding: 18px 8% 22px 11%;
    border: 0;
    background: url("assets/archive-launch-rail.webp") center / 100% 100% no-repeat;
    box-shadow: none;
    clip-path: none;
  }
  .selected-game::before { display: none; }
  .selection-number {
    position: absolute;
    top: 25%;
    bottom: 17%;
    left: 7.9%;
    z-index: 2;
    width: 54px;
    min-width: 0;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
  }
  .selection-number small { display: none; }
  .selection-number > span { width: 50px; height: 50px; }
  .selection-title { padding-inline: 18px; }
  .selection-title h2 { font-size: clamp(1.8rem, 2.25vw, 2.3rem); white-space: nowrap; }
  .selection-status { padding: 6px 8px; font-size: 0.56rem; }
  .selection-meta div { padding-inline: 13px; }
  .play-game-button {
    position: absolute;
    top: 22%;
    right: 8.1%;
    bottom: 12%;
    left: 69.3%;
    width: auto;
    min-height: 0;
    margin: 0;
    grid-template-columns: 48px max-content;
    justify-content: center;
    gap: 15px;
    padding-inline: 18px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
  }
  .play-game-button::before, .play-game-button::after { display: none; }
  .play-game-button > span { position: relative; z-index: 1; }
  .play-icon { transition: transform 120ms ease, box-shadow 150ms ease, background-color 150ms ease; }
  .play-game-button strong, .play-game-button small { transition: color 140ms ease, transform 120ms ease, text-shadow 150ms ease; }
  .play-game-button:hover { transform: translateY(-1px); filter: none; box-shadow: none; }
  .play-game-button:hover .play-icon { transform: scale(1.09); background: #030910; color: #ffe27e; box-shadow: 0 0 12px rgba(255, 247, 205, 0.5), 0 0 25px rgba(255, 174, 21, 0.58); }
  .play-game-button:hover strong, .play-game-button:focus-visible strong { color: #fff8e4; transform: translateX(2px); text-shadow: 0 0 3px rgba(255, 255, 255, 0.72), 0 0 10px rgba(255, 218, 118, 0.82), 0 0 19px rgba(255, 143, 0, 0.48); }
  .play-game-button:hover small, .play-game-button:focus-visible small { color: #fff1c5; text-shadow: 0 0 6px rgba(255, 221, 128, 0.62); }
  .play-game-button:focus-visible { outline: 0; filter: none; box-shadow: none; }
  .play-game-button:focus-visible .play-icon { transform: scale(1.08); color: #c8f4ff; box-shadow: 0 0 0 3px rgba(200, 244, 255, 0.78), 0 0 22px rgba(88, 207, 255, 0.78); }
  .play-game-button:active { transform: translateY(2px) scale(0.985); filter: brightness(0.92); box-shadow: none; }
  .play-game-button:active .play-icon { transform: scale(0.91); box-shadow: none; }
  .archive-shelf {
    position: relative;
    min-height: 254px;
    grid-template-columns: 158px minmax(0, 1fr);
    gap: 12px;
    margin-top: -1px;
    padding: 53px 54px 48px;
    border: 0;
    background: url("assets/archive-shelf-machine.webp") center / 100% 100% no-repeat;
    box-shadow: none;
    clip-path: none;
  }
.shelf-heading {
    position: absolute;
    top: 25%;
    left: 2.5%;
    width: 8.2%;
    height: 40%;
    display: grid;
    align-content: center;
  justify-items: center;
    padding: 0;
  text-align: center;
}
  .shelf-heading .archive-kicker { margin-bottom: 5px; font-size: clamp(0.52rem, 0.58vw, 0.67rem); letter-spacing: 0.18em; }
  .shelf-heading h2 { font-size: clamp(0.52rem, 0.55vw, 0.66rem); line-height: 1.15; }
  .future-slots { position: absolute; inset: 0; display: block; overflow: visible; padding: 0; }
  .future-slots article {
    position: absolute;
    top: 24.26%;
    width: 11.45%;
    height: 47.63%;
    min-height: 0;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 8px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }
  .future-slots article:nth-child(1) { left: 13.28%; width: 11.45%; }
  .future-slots article:nth-child(2) { left: 31.86%; width: 10.75%; }
  .future-slots article:nth-child(3) { left: 48.22%; width: 10.7%; }
  .future-slots article:nth-child(4) { left: 64.62%; width: 10.8%; }
  .future-slots article:nth-child(5) { left: 81.32%; width: 11.05%; }
  .future-slots article > span { top: 7%; left: 6%; color: #48baf1; font-size: clamp(0.74rem, 0.75vw, 0.9rem); font-weight: 950; text-shadow: 0 0 10px rgba(45, 159, 220, 0.34); }
  .future-slots i { margin-bottom: 8px; }
}

/* Telegram Archive Uplink: the same cabinet language as the game index rail. */
.telegram-hub-promo {
  position: relative;
  z-index: 2;
  margin-top: clamp(44px, 4vw, 68px);
  isolation: isolate;
}
.telegram-hub-link {
  position: relative;
  width: 100%;
  aspect-ratio: 1900 / 319;
  display: block;
  color: var(--text);
  text-decoration: none;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.54));
  transform: translateZ(0);
  transition: transform 150ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 170ms ease;
}
.telegram-hub-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
}
.telegram-hub-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: filter 170ms ease;
}
.telegram-hub-icon,
.telegram-hub-copy,
.telegram-hub-telemetry,
.telegram-hub-action {
  position: absolute;
  z-index: 1;
}
.telegram-hub-icon {
  top: 50%;
  left: 13.3%;
  width: clamp(70px, 6.4vw, 108px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #66d9f7;
  transform: translate(-50%, -50%);
  transition: color 140ms ease, filter 160ms ease, transform 150ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.telegram-hub-icon svg {
  width: 72%;
  height: 72%;
  fill: currentColor;
  transform: translate(-7%, 7%);
}
.telegram-hub-copy {
  top: 50%;
  left: 24.7%;
  width: 34.5%;
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: start;
  padding-left: clamp(10px, 1vw, 18px);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.86);
  transform: translateY(-50%);
}
.telegram-hub-copy::before {
  position: absolute;
  top: 3%;
  bottom: 3%;
  left: 0;
  width: 2px;
  background: #4cbfe0;
  box-shadow: 0 0 8px rgba(75, 193, 226, 0.28);
  content: "";
}
.telegram-hub-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #63cce9;
  font-size: clamp(0.4rem, 0.45vw, 0.52rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.telegram-hub-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px rgba(85, 223, 152, 0.54);
}
.telegram-hub-copy > strong {
  margin-top: 3px;
  font-family: Impact, "Arial Narrow", "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2.25vw, 2.5rem);
  line-height: 0.98;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
.telegram-hub-description {
  max-width: 690px;
  margin-top: 5px;
  color: #afc0d0;
  font-size: clamp(0.55rem, 0.68vw, 0.76rem);
  line-height: 1.3;
}
.telegram-hub-benefits {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 7px;
}
.telegram-hub-benefits b {
  display: inline-flex;
  align-items: center;
  color: #78bdd3;
  font-size: clamp(0.33rem, 0.37vw, 0.43rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.telegram-hub-benefits b::before {
  width: 4px;
  height: 4px;
  margin-right: 6px;
  border-radius: 50%;
  background: #49c9ed;
  content: "";
}
.telegram-hub-benefits b + b {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(104, 171, 194, 0.22);
}
.telegram-hub-telemetry {
  top: 50%;
  left: 52.5%;
  width: 21.2%;
  display: grid;
  gap: clamp(7px, 0.55vw, 10px);
  padding-left: clamp(14px, 1.2vw, 22px);
  color: #9ad8e9;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.92);
  text-transform: uppercase;
  transform: translateY(-50%);
  transition: color 160ms ease, filter 160ms ease;
}
.telegram-hub-telemetry::before {
  position: absolute;
  inset-block: -5px;
  left: 0;
  width: 1px;
  background: linear-gradient(transparent, rgba(79, 204, 237, 0.68), transparent);
  box-shadow: 0 0 10px rgba(72, 195, 229, 0.2);
  content: "";
}
.telegram-relay-status,
.telegram-relay-cache {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.telegram-hub-telemetry small {
  color: #78a9bc;
  font-size: clamp(0.36rem, 0.42vw, 0.5rem);
  font-weight: 900;
  letter-spacing: 0.13em;
  white-space: nowrap;
}
.telegram-hub-telemetry strong {
  color: #9aeaff;
  font-size: clamp(0.4rem, 0.48vw, 0.56rem);
  font-weight: 950;
  letter-spacing: 0.11em;
  white-space: nowrap;
}
.telegram-relay-status strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #82f3bb;
}
.telegram-relay-status strong i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px rgba(112, 233, 174, 0.72);
  animation: telegram-live-pulse 1.7s ease-in-out infinite;
}
.telegram-relay-line {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) 7px;
  align-items: center;
  gap: 7px;
}
.telegram-relay-line > i {
  width: 7px;
  height: 7px;
  border: 1px solid #4bc9eb;
  border-radius: 50%;
  box-shadow: 0 0 7px rgba(75, 201, 235, 0.34);
}
.telegram-relay-line > b {
  position: relative;
  height: 2px;
  overflow: hidden;
  background: rgba(75, 201, 235, 0.25);
}
.telegram-relay-line > b::after {
  position: absolute;
  top: -1px;
  left: -32%;
  width: 32%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #bdf5ff 58%, #4bc9eb);
  box-shadow: 0 0 8px rgba(75, 201, 235, 0.75);
  content: "";
  animation: telegram-relay-packet 2.15s cubic-bezier(0.35, 0, 0.35, 1) infinite;
}
@keyframes telegram-relay-packet {
  0%, 18% { transform: translateX(0); opacity: 0; }
  28% { opacity: 1; }
  78% { opacity: 1; }
  100% { transform: translateX(412%); opacity: 0; }
}
@keyframes telegram-live-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.86); }
  50% { opacity: 1; transform: scale(1.18); }
}
.telegram-hub-action {
  top: 50%;
  left: 78.25%;
  width: 14.7%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  color: #111218;
  text-align: center;
  text-transform: uppercase;
  transform: translateY(-50%);
}
.telegram-hub-action small {
  grid-column: 1;
  color: #493113;
  font-size: clamp(0.34rem, 0.38vw, 0.45rem);
  font-weight: 950;
  letter-spacing: 0.14em;
}
.telegram-hub-action strong {
  grid-column: 1;
  margin-top: 3px;
  font-size: clamp(0.64rem, 0.84vw, 0.94rem);
  line-height: 1.05;
  letter-spacing: 0.025em;
  white-space: nowrap;
}
.telegram-hub-link:hover,
.telegram-hub-link:focus-visible {
  transform: translateY(-3px) scale(1.004);
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.62));
}
.telegram-hub-link:focus-visible {
  border-radius: 5px;
  outline: 2px solid rgba(101, 215, 247, 0.88);
  outline-offset: 4px;
}
.telegram-hub-link:hover .telegram-hub-art img,
.telegram-hub-link:focus-visible .telegram-hub-art img { filter: saturate(1.06) brightness(1.045); }
.telegram-hub-link:hover .telegram-hub-icon,
.telegram-hub-link:focus-visible .telegram-hub-icon {
  color: #b9efff;
  filter: drop-shadow(0 0 8px rgba(78, 203, 239, 0.5));
  transform: translate(-50%, -50%) scale(1.065) rotate(-3deg);
}
.telegram-hub-link:hover .telegram-hub-telemetry,
.telegram-hub-link:focus-visible .telegram-hub-telemetry {
  color: #aeeeff;
  filter: drop-shadow(0 0 7px rgba(75, 201, 235, 0.24));
}
.telegram-hub-link:active {
  transform: translateY(1px) scale(0.994);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.46)) brightness(0.95);
  transition-duration: 70ms;
}
.telegram-hub-link:active .telegram-hub-icon { transform: translate(-50%, -50%) scale(0.95); }

.archive-about { margin-top: 58px; display: grid; grid-template-columns: 0.45fr 1.55fr; gap: 60px; padding: 52px 0; border-top: 1px solid var(--line); }
.archive-about > div { display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(280px, 1fr); align-items: end; gap: 50px; }
.archive-about h2 { margin: 0; font-size: clamp(2.4rem, 4vw, 4rem); line-height: 0.98; letter-spacing: -0.055em; text-transform: uppercase; }
.archive-about div p { max-width: 620px; margin: 0; color: var(--muted); }
.archive-footer { padding: 30px 0 max(24px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-deep); color: #63778b; font-size: 0.69rem; }
.archive-footer .archive-shell { display: flex; justify-content: space-between; gap: 20px; }
.archive-footer a { min-height: 44px; display: inline-flex; align-items: center; color: var(--cyan); font-weight: 800; text-decoration: none; }

/* Game player */
.game-player { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: clamp(10px, 2.5vw, 34px); }
.player-backdrop { position: absolute; inset: 0; background: rgba(0, 3, 9, 0.9); backdrop-filter: blur(18px); }
.player-shell {
  position: relative;
  width: min(100%, 1540px);
  height: min(100%, 920px);
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(88, 207, 255, 0.45);
  border-radius: 15px 15px 4px 15px;
  background: #02060c;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.player-shell:fullscreen { width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; border-radius: 0; }
.player-toolbar { min-height: 68px; display: grid; grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr); align-items: center; gap: 18px; padding: 10px 12px 10px 15px; border-bottom: 1px solid rgba(88, 207, 255, 0.2); background: linear-gradient(90deg, #091728, #040a13 54%, #091728); }
.player-identity { min-width: 0; display: flex; align-items: center; gap: 11px; }
.player-identity img { width: 42px; height: 42px; flex: none; border: 1px solid rgba(255, 182, 34, 0.36); border-radius: 8px; background: #0d1420; object-fit: contain; }
.player-identity span { min-width: 0; display: grid; line-height: 1.12; }
.player-identity small { color: var(--cyan); font-size: 0.51rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.player-identity strong { margin-top: 4px; overflow: hidden; font-size: 0.78rem; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.player-status { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #94a6b9; font-size: 0.58rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.player-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.player-shell[data-state="ready"] .player-status i { background: var(--green); box-shadow: 0 0 10px var(--green); }
.player-actions { justify-self: end; display: flex; gap: 8px; }
.player-actions button { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid rgba(88, 207, 255, 0.28); border-radius: 7px 7px 2px 7px; background: rgba(8, 24, 40, 0.82); color: #dcefff; cursor: pointer; font-size: 0.62rem; font-weight: 850; text-transform: uppercase; transition: border-color 140ms ease, background-color 140ms ease, transform 120ms ease; }
.player-actions button:hover, .player-actions button:focus-visible { transform: translateY(-1px); border-color: var(--cyan); background: #0c2a43; }
.player-actions button:active { transform: translateY(1px); }
.player-actions svg { width: 18px; height: 18px; fill: currentColor; }
.player-actions [data-player-close] { border-color: rgba(255, 109, 117, 0.3); color: #ffd7da; }
.player-actions [data-player-close]:hover, .player-actions [data-player-close]:focus-visible { border-color: var(--danger); background: rgba(96, 22, 30, 0.52); }
.player-viewport { position: relative; min-height: 0; overflow: hidden; background: #100d16; }
.player-viewport iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; background: #16121f; opacity: 0; transition: opacity 180ms ease; }
.player-shell[data-state="ready"] iframe { opacity: 1; }
.player-loader { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; align-content: center; gap: 8px; background: radial-gradient(circle, #281b40, #100d16 68%); text-align: center; }
.player-loader i { width: 42px; height: 42px; margin-bottom: 9px; border: 3px solid rgba(88, 207, 255, 0.14); border-top-color: var(--cyan); border-radius: 50%; animation: loader-spin 780ms linear infinite; }
.player-loader strong { font-size: 0.82rem; text-transform: uppercase; }
.player-loader span { color: var(--muted); font-size: 0.67rem; }
.player-shell[data-state="ready"] .player-loader { display: none; }
.player-help { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 5px 14px; border-top: 1px solid rgba(88, 207, 255, 0.12); background: #050c15; color: #64788b; font-size: 0.57rem; font-weight: 750; }
.player-help kbd { padding: 2px 5px; border: 1px solid #344a5f; border-radius: 4px; background: #0a1622; color: #c5d8e8; font: inherit; }
@keyframes loader-spin { to { transform: rotate(360deg); } }

@media (max-width: 1260px) {
  .archive-stage { grid-template-columns: minmax(200px, 0.52fr) minmax(350px, 0.95fr) minmax(380px, 1.3fr); gap: 22px; }
  .selection-title { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
  .selection-title h2 { font-size: clamp(1.65rem, 2.65vw, 2.25rem); }
  .selection-status { padding: 5px 8px; }
}

@media (min-width: 1041px) and (max-width: 1440px) {
  .selected-game {
    grid-template-columns: minmax(330px, 1fr) minmax(220px, 0.62fr) 23%;
    padding-right: 8%;
    padding-left: 11%;
  }
  .selection-title { flex-direction: row; align-items: center; gap: 12px; }
  .selection-title h2 { font-size: clamp(1.55rem, 2.25vw, 1.85rem); white-space: nowrap; }
  .selection-status { font-size: 0.49rem; }
  .selection-meta div { padding-inline: 9px; }
  .selection-meta dd { font-size: 0.53rem; }
  .play-game-button { grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding-inline: 12px; }
  .play-icon { width: 38px; height: 38px; }
  .play-game-button strong { font-size: 1.55rem; }
  .play-game-button small { font-size: 0.46rem; }
}

@media (max-width: 1040px) {
  .archive-shell { width: min(calc(100% - 36px), var(--shell)); }
  .archive-main { padding-top: 28px; }
  .archive-stage {
    grid-template-columns: minmax(200px, 0.5fr) minmax(360px, 1fr);
    grid-template-areas:
      "intro artifact"
      "preview preview"
      "selected selected"
      "shelf shelf";
  }
  .archive-intro { min-height: 440px; }
  .archive-lede { max-width: 320px; }
  .game-artifact { width: min(100%, 500px); justify-self: center; }
  .preview-station { margin-top: 14px; }
  .preview-screen { aspect-ratio: 16 / 9; }
  .selected-game { grid-template-columns: auto minmax(250px, 1fr) minmax(270px, 0.8fr); }
  .selection-meta { display: none; }
  .future-slots { overflow-x: auto; padding-bottom: 8px; grid-template-columns: repeat(5, minmax(145px, 1fr)); scrollbar-color: var(--cyan) var(--surface); }
  .archive-about { grid-template-columns: 1fr; gap: 18px; }
  .telegram-hub-copy { left: 24.7%; width: 49%; padding-left: 10px; }
  .telegram-hub-telemetry { display: none; }
  .telegram-hub-description { margin-top: 5px; font-size: 0.6rem; }
  .telegram-hub-benefits { display: none; }
  .telegram-hub-action strong { white-space: normal; }
  .player-toolbar { grid-template-columns: 1fr auto; }
  .player-status { display: none; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .archive-shell { width: min(calc(100% - 24px), var(--shell)); }
  .header-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .studio-brand strong { font-size: 0.72rem; }
  .studio-brand small { display: none; }
  .studio-brand img { width: 40px; height: 40px; }
  .archive-nav { display: none; }
  .back-studio { min-height: 44px; padding: 0 11px; font-size: 0.57rem; }
  .archive-main { padding-block: 24px 54px; }
  .archive-stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "artifact"
      "selected"
      "preview"
      "shelf";
    gap: 22px;
  }
  .archive-intro { min-height: 0; display: grid; grid-template-columns: 1fr auto; padding: 15px 0 10px 22px; }
  .archive-intro .archive-kicker, .archive-intro h1, .archive-intro .archive-subtitle, .archive-intro .archive-lede { grid-column: 1; }
  .archive-intro h1 { font-size: clamp(3.5rem, 18vw, 5rem); }
  .archive-lede { max-width: 480px; margin-top: 20px; font-size: 0.86rem; }
  .archive-index { grid-column: 2; grid-row: 1 / span 4; align-self: end; margin: 0 0 4px 16px; }
  .archive-axis { top: 10px; bottom: 10px; }
  .game-artifact { width: min(100% - 20px, 530px); padding-left: 0; }
  .artifact-base { min-height: 7.6%; }
  .selected-game { min-height: 0; grid-template-columns: auto minmax(0, 1fr); padding: 8px; }
  .selection-number { min-width: 0; padding: 0 8px; }
  .selection-number small { display: none; }
  .selection-number > span { width: 44px; height: 44px; font-size: 1rem; }
  .selection-title { min-height: 82px; padding: 10px 14px; border-right: 0; }
  .selection-title h2 { font-size: clamp(1.45rem, 7vw, 2.05rem); }
  .selection-status { font-size: 0.52rem; }
  .play-game-button { grid-column: 1 / -1; min-height: 74px; margin-top: 7px; padding-inline: 16px; }
  .play-game-button strong { font-size: 1.6rem; }
  .preview-screen { padding: 6px; }
  .evolution-path ol { justify-content: space-between; gap: 5px; }
  .evolution-path li:not(:last-child)::after { left: calc(100% + 1px); }
  .archive-shelf { grid-template-columns: 1fr; padding: 16px; }
  .shelf-heading { display: flex; align-items: baseline; gap: 10px; }
  .shelf-heading .archive-kicker { margin: 0; }
  .future-slots { margin-inline: -3px; }
  .telegram-hub-promo { width: min(100%, 430px); margin: 48px auto 0; }
  .telegram-hub-link {
    aspect-ratio: 900 / 1418;
    display: block;
  }
  .telegram-hub-icon { top: 14.5%; left: 50%; width: clamp(70px, 22vw, 92px); }
  .telegram-hub-copy {
    top: 50%;
    left: 14%;
    width: 72%;
    justify-items: center;
    padding: 0;
    text-align: center;
  }
  .telegram-hub-copy::before { display: none; }
  .telegram-hub-copy::after { display: none; }
  .telegram-hub-kicker { font-size: clamp(0.43rem, 1.9vw, 0.58rem); }
  .telegram-hub-copy > strong { margin-top: 8px; font-size: clamp(1.95rem, 9vw, 2.85rem); }
  .telegram-hub-description { max-width: 330px; margin-top: 13px; color: #b6c8d9; font-size: clamp(0.68rem, 2.9vw, 0.84rem); line-height: 1.5; }
  .telegram-hub-benefits { display: flex; justify-content: center; gap: 0; margin-top: 17px; }
  .telegram-hub-benefits b { font-size: clamp(0.4rem, 1.65vw, 0.5rem); }
  .telegram-hub-action {
    top: 85%;
    left: 50%;
    width: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
  }
  .telegram-hub-action small { font-size: clamp(0.42rem, 1.75vw, 0.54rem); }
  .telegram-hub-action strong { font-size: clamp(0.82rem, 3.5vw, 1.05rem); white-space: nowrap; }
  .archive-about { margin-top: 58px; grid-template-columns: 1fr; gap: 18px; padding: 40px 0; }
  .archive-about > div { grid-template-columns: 1fr; gap: 22px; }
  .archive-about h2 { font-size: clamp(2.3rem, 12vw, 3.4rem); }
  .game-player { padding: 0; }
  .player-shell { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .player-toolbar { min-height: 62px; padding: max(7px, env(safe-area-inset-top)) 8px 7px; }
  .player-identity img { width: 38px; height: 38px; }
  .player-identity small { display: none; }
  .player-identity strong { max-width: 170px; font-size: 0.68rem; }
  .player-actions button { width: 44px; padding: 0; justify-content: center; }
  .player-actions button span { display: none; }
  .player-help { min-height: 30px; padding-bottom: max(5px, env(safe-area-inset-bottom)); }
  .player-help span:last-child { display: none; }
}

@media (max-width: 420px) {
  .studio-brand strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .back-studio { width: 44px; justify-content: center; padding: 0; font-size: 0; }
  .back-studio span { font-size: 1rem; }
  .archive-intro h1 { font-size: clamp(3.1rem, 17vw, 4.2rem); }
  .archive-intro .archive-subtitle { font-size: 0.55rem; }
  .archive-index { display: none; }
  .artifact-frame { border-radius: 28px 28px 16px 16px; }
  .selection-title h2 { font-size: 1.35rem; }
  .evolution-path img, .path-locked > span { width: 42px; height: 42px; }
  .evolution-path li { width: 44px; }
  .evolution-path li:not(:last-child)::after { top: 19px; }
  .archive-footer .archive-shell { flex-direction: column; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .telegram-hub-promo { width: 100%; margin-top: 34px; }
  .telegram-hub-link { aspect-ratio: 1900 / 319; display: block; }
  .telegram-hub-icon { top: 50%; left: 13.3%; width: clamp(38px, 7vw, 54px); }
  .telegram-hub-copy { top: 50%; left: 24.7%; width: 49%; justify-items: start; padding-left: 8px; text-align: left; }
  .telegram-hub-copy::before { display: block; }
  .telegram-hub-kicker { font-size: 0.36rem; }
  .telegram-hub-copy > strong { margin-top: 2px; font-size: clamp(1.1rem, 3.8vw, 1.7rem); }
  .telegram-hub-description { margin-top: 3px; font-size: 0.5rem; line-height: 1.2; }
  .telegram-hub-benefits { display: none; }
  .telegram-hub-action { top: 50%; left: 78.25%; width: 14.7%; text-align: center; transform: translateY(-50%); }
  .telegram-hub-action small { font-size: 0.3rem; }
  .telegram-hub-action strong { margin-top: 2px; font-size: 0.54rem; line-height: 0.95; white-space: normal; }
  .game-player { padding: 0; }
  .player-shell { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .player-toolbar { min-height: 52px; padding-block: 4px; }
  .player-identity img { width: 36px; height: 36px; }
  .player-help { display: none; }
}

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