:root {
  color-scheme: dark;
  --ink: #eff9ff;
  --muted: #b8cedb;
  --cyan: #77e4ff;
  --cyan-strong: #25c8ec;
  --panel: rgba(6, 22, 38, 0.78);
  --line: rgba(136, 220, 246, 0.22);
  --deep: #020813;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--deep);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body { min-height: 100svh; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.cosmos,
.cosmos::before,
.cosmos::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.cosmos {
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 34%, rgba(72, 126, 176, .18), transparent 22%),
    radial-gradient(circle at 20% 76%, rgba(116, 49, 113, .2), transparent 30%),
    linear-gradient(132deg, #030a16 0%, #07192a 50%, #020710 100%);
}

.cosmos::before {
  content: "";
  opacity: .7;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(119,228,255,.58) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,.38) 0 .7px, transparent 1px);
  background-size: 141px 137px, 211px 197px, 79px 83px;
  background-position: 12px 7px, 61px 113px, 31px 41px;
}

.cosmos::after {
  content: "";
  filter: blur(38px);
  opacity: .7;
  background:
    radial-gradient(ellipse at 12% 38%, rgba(41, 146, 171, .18), transparent 32%),
    radial-gradient(ellipse at 82% 75%, rgba(140, 70, 121, .17), transparent 32%);
  animation: nebula-drift 22s ease-in-out infinite alternate;
}

.cosmos span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 18px 4px rgba(143,226,255,.48);
  animation: twinkle 4s ease-in-out infinite;
}
.cosmos span:nth-child(1) { left: 14%; top: 22%; }
.cosmos span:nth-child(2) { right: 17%; top: 18%; animation-delay: -1.3s; }
.cosmos span:nth-child(3) { left: 77%; bottom: 24%; animation-delay: -2.2s; }

@keyframes nebula-drift { to { transform: scale(1.08) translate3d(1.5%, -1%, 0); } }
@keyframes twinkle { 50% { opacity: .25; transform: scale(.55); } }

#app { position: relative; z-index: 1; min-height: 100svh; }
.screen { display: none; min-height: 100svh; }
.screen.is-active { display: flex; }

.setup-screen {
  position: relative;
  flex-direction: column;
  padding: env(safe-area-inset-top) max(24px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(24px, env(safe-area-inset-left));
}

.site-nav {
  width: min(1160px, 100%);
  margin: 0 auto;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(150, 224, 247, .12);
}

.lab-mark {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  letter-spacing: .17em;
  font-size: .72rem;
  font-weight: 700;
}

.lab-orbit {
  position: relative;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(123, 225, 255, .52);
  border-radius: 50%;
  transform: rotate(-24deg) scaleY(.44);
}
.lab-orbit::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  left: 2px;
  top: 0;
  border-radius: 50%;
  background: #c9f6ff;
  box-shadow: 0 0 8px #48d3f1;
}

.site-nav nav { display: flex; gap: 10px; }
.site-nav nav a {
  min-height: 38px;
  padding: 0 14px;
  display: grid;
  place-items: center;
  color: #bad0de;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .8rem;
}
.site-nav nav a:hover,
.site-nav nav a:focus-visible { color: white; border-color: var(--line); background: rgba(92, 205, 234, .06); outline: none; }

.setup-main {
  width: min(1040px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(290px, .9fr) minmax(420px, 1.1fr);
  gap: clamp(30px, 7vw, 90px);
  align-items: center;
  padding: 34px 0 26px;
}

.title-lockup { position: relative; }
.title-lockup::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  left: -90px;
  top: -78px;
  border: 1px solid rgba(93, 214, 242, .12);
  border-radius: 50%;
  box-shadow: inset 0 0 60px rgba(40, 162, 191, .04), 0 0 80px rgba(41, 140, 163, .06);
}
.eyebrow,
.kicker { margin: 0 0 12px; letter-spacing: .2em; text-transform: uppercase; color: #7ed9ed; font-size: .67rem; font-weight: 800; }
.title-lockup h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(3.9rem, 8vw, 7.6rem); font-weight: 400; letter-spacing: .04em; line-height: .92; text-shadow: 0 0 38px rgba(70, 196, 224, .18); }
.english-title { margin: 15px 0 0; letter-spacing: .45em; color: #8aa8b9; font-size: .7rem; }
.lead { margin: 38px 0 0; color: #d9edf6; font-family: Georgia, "Songti SC", serif; font-size: clamp(1.05rem, 2vw, 1.35rem); letter-spacing: .12em; }

.launch-panel {
  position: relative;
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(10, 31, 50, .88), rgba(5, 17, 30, .72));
  box-shadow: 0 24px 80px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.025);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}
.launch-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(149, 225, 247, .045);
  border-radius: 17px;
}
.panel-intro { position: relative; padding-bottom: 23px; border-bottom: 1px solid rgba(144,221,244,.12); }
.panel-intro p:last-child { margin: 0; color: #d3e2e9; font-size: .96rem; line-height: 1.75; }

.player-picker { position: relative; margin: 24px 0 0; padding: 0; border: 0; }
.player-picker legend { margin-bottom: 12px; color: #effbff; font-size: .84rem; font-weight: 700; letter-spacing: .1em; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segmented button {
  min-height: 74px;
  padding: 10px 8px;
  border: 1px solid rgba(120, 193, 214, .15);
  border-radius: 14px;
  background: rgba(2, 13, 24, .46);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.segmented button b { display: block; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 400; }
.segmented button span { display: block; margin-top: 4px; color: #b4c7d1; font-size: .73rem; }
.segmented button[aria-pressed="true"] { border-color: rgba(105, 225, 255, .78); background: rgba(43, 170, 201, .13); box-shadow: inset 0 0 22px rgba(50, 196, 226, .06); }
.segmented button[aria-pressed="true"] b { color: #baf5ff; }
.segmented button:hover { transform: translateY(-1px); }

.clue-row { margin: 20px 0; display: flex; flex-wrap: wrap; gap: 13px; color: #b6cad4; font-size: .74rem; }
.clue-row span { display: inline-flex; align-items: center; gap: 6px; }
.clue-row i { width: 4px; height: 4px; border-radius: 50%; background: #73daef; box-shadow: 0 0 7px rgba(83,216,244,.7); }

.primary-action,
.secondary-action,
.opening-guide button {
  border: 0;
  border-radius: 13px;
  cursor: pointer;
}
.primary-action {
  position: relative;
  width: 100%;
  min-height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(105deg, #9beaff, #38c5e7 58%, #3da6cb);
  color: #03121d;
  box-shadow: 0 10px 34px rgba(38, 177, 211, .2);
  font-weight: 800;
}
.primary-action::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.35), transparent 65%); transform: translateX(-120%); transition: transform .6s ease; }
.primary-action:hover::after { transform: translateX(120%); }
.primary-action span { font-size: 1rem; letter-spacing: .16em; }
.primary-action small { margin-top: -13px; font-size: .52rem; letter-spacing: .2em; opacity: .62; }
.primary-action:focus-visible,
.secondary-action:focus-visible,
.opening-guide button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.control-note { margin: 13px 0 0; color: #9fb6c3; text-align: center; font-size: .72rem; line-height: 1.5; }
.experience-counter { grid-column: 2; margin: -10px 0 0; color: #9db6c5; text-align: center; font-size: .73rem; }

.copyright-strip {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 8px 0 9px;
  display: grid;
  gap: 3px;
  color: #69818f;
  border-top: 1px solid rgba(140, 211, 232, .08);
  text-align: center;
}
.copyright-strip,
.copyright-strip * {
  font-size: 0.68rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.credit { color: #829ba9; }
.filing-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; align-items: center; }
.filing-row a:hover { color: #a5ddec; }
.copyright-strip p { margin: 0; }
.copyright-strip .filing-link { display: inline-flex; align-items: center; gap: .3em; }
.copyright-strip .filing-link img { width: .86em; height: auto; max-height: 1em; }

/* Game */
.game-screen { position: fixed; inset: 0; flex-direction: column; overflow: hidden; overscroll-behavior: none; background: #01050c; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
#space-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.game-topbar,
.player-docks,
.opening-guide,
.result-overlay { touch-action: manipulation; }
.game-topbar {
  --hud-panel-tint: #03101b;
  --hud-panel-opacity: .36;
  position: absolute;
  z-index: 5;
  top: max(10px, env(safe-area-inset-top));
  left: max(10px, env(safe-area-inset-left));
  width: min(270px, 34vw);
  min-height: 128px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(125, 213, 239, .17);
  border-radius: 15px;
  background: transparent;
  pointer-events: auto;
}
.star-readout { display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 8px; align-items: center; width: 100%; }
.star-readout small { grid-column: 2; min-width: 0; color: #a7bdc9; font-size: .66rem; white-space: nowrap; }
.star-readout > span:not(.star-swatch) { font-size: .8rem; letter-spacing: .08em; }
.star-swatch { grid-row: 1 / span 2; width: 10px; height: 10px; border-radius: 50%; background: #fff0c5; box-shadow: 0 0 12px 3px rgba(255,224,161,.52); }
.match-clock { padding-top: 7px; border-top: 1px solid rgba(132,207,230,.12); text-align: left; }
.match-clock small { display: inline; color: #9fb6c2; font-size: .63rem; letter-spacing: .12em; }
.match-clock strong { display: inline; margin-left: 8px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.2rem; font-weight: 600; letter-spacing: .08em; }
.icon-button { width: 100%; min-height: 34px; border: 1px solid rgba(132,207,230,.2); border-radius: 10px; background: rgba(2,12,21,.7); color: #c4d5dd; cursor: pointer; font-size: .72rem; }

.cosmic-toast { position: absolute; z-index: 7; top: 76px; left: 50%; max-width: min(520px, 80vw); padding: 9px 15px; border: 1px solid rgba(120, 217, 243, .25); border-radius: 999px; background: rgba(4, 19, 32, .8); color: #d9f8ff; transform: translate(-50%, -12px); opacity: 0; transition: .25s ease; text-align: center; font-size: .72rem; pointer-events: none; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.cosmic-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

.placement-guide { position: absolute; z-index: 6; top: 82px; left: 50%; display: none; min-width: 290px; padding: 11px 18px; border: 1px solid rgba(114,224,248,.33); border-radius: 12px; background: rgba(3,22,36,.84); transform: translateX(-50%); text-align: center; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.placement-guide.is-visible { display: block; }
.placement-guide span,
.placement-guide small { display: block; color: #75cfe3; font-size: .55rem; letter-spacing: .16em; }
.placement-guide strong { display: block; margin: 3px 0; font-size: .72rem; }

.player-docks {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
}
.player-dock {
  --player: #79e5ff;
  --hud-panel-tint: #04121f;
  --hud-panel-opacity: .32;
  position: absolute;
  width: clamp(306px, 29vw, 374px);
  min-width: 0;
  min-height: 98px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto 3px;
  gap: 3px 6px;
  padding: 6px 9px 8px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--player) 38%, transparent);
  border-radius: 14px;
  background: transparent;
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--player) 78%, transparent);
  pointer-events: auto;
}
.game-topbar::before,
.player-dock::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background: var(--hud-panel-tint);
  opacity: var(--hud-panel-opacity);
  pointer-events: none;
}
.game-topbar > *,
.player-dock > * {
  position: relative;
  z-index: 1;
}
.player-dock:nth-child(1) {
  left: max(10px, env(safe-area-inset-left));
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 12px));
}
.player-dock:nth-child(2) {
  right: max(10px, env(safe-area-inset-right));
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 12px));
}
.player-dock:nth-child(3) {
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
}
.player-dock.is-eliminated { filter: grayscale(.75); opacity: .7; }
.dock-heading { grid-column: 1 / -1; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 5px; }
.dock-heading strong { min-width: 0; color: var(--player); font-size: .78rem; letter-spacing: .05em; white-space: nowrap; }
.dock-heading span { color: #adc1cb; font-size: .65rem; }
.dock-heading [data-role="status"] { min-width: 0; overflow: visible; justify-self: center; line-height: 1.1; white-space: nowrap; }
.dock-heading .respawn-count { display: inline-flex; align-items: center; gap: 5px; justify-self: end; padding: 2px 7px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; color: #fff; background: rgba(8,20,31,.76); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .52rem; letter-spacing: .04em; white-space: nowrap; }
.life-dots { display: inline-flex; gap: 3px; align-items: center; }
.life-dots i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.respawn-count.lives-3 .life-dots i { background: #4fd47d; box-shadow: 0 0 5px rgba(79,212,125,.72); }
.respawn-count.lives-2 .life-dots i { background: #f2c94c; box-shadow: 0 0 5px rgba(242,201,76,.68); }
.respawn-count.lives-1 .life-dots i { background: #ff625c; box-shadow: 0 0 5px rgba(255,98,92,.7); }
.dock-metric { grid-column: 1; grid-row: 2; min-width: 0; align-self: center; }
.dock-metric b { display: block; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.dock-details { grid-column: 1 / -1; grid-row: 3; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 5px; color: #a7bdc8; }
.dock-details small { min-width: 0; color: inherit; font-size: .58rem; line-height: 1.12; white-space: nowrap; }
.progress-track { grid-column: 1 / -1; grid-row: 4; align-self: end; height: 3px; overflow: hidden; border-radius: 999px; background: rgba(128,184,203,.14); }
.progress-fill { height: 100%; width: 0; border-radius: inherit; background: var(--player); box-shadow: 0 0 9px var(--player); transition: width .25s linear; }
.dock-actions { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: repeat(2, minmax(48px, auto)); gap: 3px; align-content: center; }
.dock-actions button { position: relative; z-index: 1; min-height: 26px; padding: 2px 6px; border: 1px solid rgba(132,205,228,.24); border-radius: 8px; background: rgba(6,26,41,.74); color: #d2e3e9; cursor: pointer; font-size: .61rem; line-height: 1.05; touch-action: manipulation; pointer-events: auto; }
.dock-actions button:hover:not(:disabled),
.dock-actions button.is-armed { border-color: var(--player); color: white; background: color-mix(in srgb, var(--player) 18%, rgba(5,20,32,.88)); }
.dock-actions button:disabled { opacity: .3; cursor: default; }
.dock-actions .orbit-button { min-height: 20px; padding-top: 0; padding-bottom: 1px; font-size: .84rem; line-height: 1; }

.opening-guide,
.result-overlay {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: radial-gradient(circle at center, rgba(5,22,37,.35), rgba(1,6,12,.72));
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.opening-guide { align-content: center; text-align: center; }
.opening-guide h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 400; }
.opening-guide > p:not(.eyebrow) { max-width: 560px; margin: 14px auto 22px; color: #a9beca; line-height: 1.7; font-size: .82rem; }
.opening-guide button { min-width: 160px; min-height: 45px; background: rgba(72,199,228,.15); border: 1px solid rgba(104,226,251,.5); color: #dffbff; }
.opening-guide.is-hidden { display: none; }

.result-overlay { display: none; }
.result-overlay.is-visible { display: grid; }
.result-card { width: min(560px, 94vw); max-height: calc(100svh - 24px); padding: 30px; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; border: 1px solid rgba(121,220,245,.26); border-radius: 22px; background: rgba(5,20,34,.93); box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.result-card h2 { margin: 0 0 20px; font-family: Georgia, "Songti SC", serif; font-size: 2rem; font-weight: 400; }
.result-list { display: grid; gap: 7px; }
.result-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid rgba(137,209,231,.12); border-radius: 11px; background: rgba(2,12,22,.46); }
.result-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--player); box-shadow: 0 0 9px var(--player); }
.result-row span { font-size: .76rem; }
.result-row strong { color: #dff9ff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.winner-line { min-height: 24px; margin: 18px 0; color: #a7eafa; text-align: center; }
.result-actions { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; }
.primary-action.compact { min-height: 48px; }
.primary-action.compact small { display: none; }
.secondary-action { border: 1px solid rgba(141,205,225,.22); background: rgba(3,14,25,.65); color: #a8bfcb; }

.rotate-guard { display: none; position: absolute; z-index: 20; inset: 0; place-items: center; align-content: center; background: #030b15; text-align: center; }
.rotate-guard strong,
.rotate-guard small { display: block; }
.rotate-guard small { margin-top: 6px; color: #738c9b; }
.rotate-symbol { display: block; margin-bottom: 18px; color: #80e4f7; font-size: 2.2rem; }

@media (max-width: 780px) {
  .setup-main { grid-template-columns: 1fr; gap: 26px; padding-top: 25px; }
  .title-lockup { text-align: center; }
  .title-lockup::before { left: 50%; transform: translateX(-50%); }
  .title-lockup h1 { font-size: clamp(3.4rem, 16vw, 5.8rem); }
  .lead { margin-top: 24px; }
  .experience-counter { grid-column: 1; }
}

@media (min-width: 781px) and (max-height: 780px) {
  .site-nav { min-height: 48px; }
  .setup-main { padding: 18px 0 12px; gap: clamp(28px, 5vw, 70px); }
  .title-lockup h1 { font-size: clamp(4rem, 7.2vw, 6.2rem); }
  .lead { margin-top: 26px; }
  .launch-panel { padding: 24px 30px; }
  .panel-intro { padding-bottom: 16px; }
  .player-picker { margin-top: 16px; }
  .segmented button { min-height: 62px; }
  .clue-row { margin: 14px 0; }
  .primary-action { min-height: 54px; }
  .copyright-strip { padding-top: 5px; padding-bottom: 5px; }
}

@media (max-width: 640px) {
  .setup-screen { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .site-nav { min-height: 54px; }
  .site-nav nav a { padding: 0 8px; font-size: .68rem; }
  .lab-mark { font-size: .62rem; }
  .launch-panel { padding: 21px 16px; }
  .segmented button { min-height: 68px; }
  .copyright-strip,
  .copyright-strip * { font-size: .56rem; line-height: 1.15; }
  .player-docks { overflow: hidden; }
}

@media (orientation: portrait) and (max-width: 900px) {
  .game-screen.is-active .rotate-guard { display: grid; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .copyright-strip,
  .copyright-strip * { font-size: .54rem; line-height: 1.1; }
  .setup-screen { min-height: 100svh; }
  .site-nav { min-height: 42px; }
  .setup-main { grid-template-columns: .8fr 1.2fr; gap: 24px; padding: 12px 0 8px; }
  .title-lockup h1 { font-size: clamp(3rem, 10vw, 4.6rem); }
  .lead { margin-top: 15px; font-size: .9rem; }
  .launch-panel { padding: 14px 18px; border-radius: 17px; }
  .panel-intro { padding-bottom: 10px; }
  .panel-intro p:last-child { font-size: .72rem; line-height: 1.45; }
  .player-picker { margin-top: 10px; }
  .player-picker legend { margin-bottom: 6px; }
  .segmented button { min-height: 49px; padding: 4px; }
  .segmented button b { font-size: 1rem; }
  .segmented button span { font-size: .52rem; }
  .clue-row { margin: 9px 0; }
  .primary-action { min-height: 44px; }
  .control-note { margin-top: 6px; }
  .experience-counter { margin-top: -3px; }
  .game-topbar { width: 242px; min-height: 116px; gap: 5px; padding: 8px 10px; }
  .star-readout small { font-size: .58rem; }
  .star-readout > span:not(.star-swatch) { font-size: .7rem; }
  .match-clock { padding-top: 5px; }
  .match-clock small { font-size: .55rem; }
  .match-clock strong { font-size: 1rem; }
  .icon-button { min-height: 28px; font-size: .62rem; }
  .player-dock { width: min(260px, 31vw); min-height: 90px; padding: 5px 7px 7px; gap: 2px 5px; }
  .player-dock:nth-child(1),
  .player-dock:nth-child(2) { bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px)); }
  .player-dock:nth-child(3) { top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); }
  .dock-heading { gap: 5px; }
  .dock-heading strong { font-size: .64rem; }
  .dock-heading span { font-size: .51rem; }
  .dock-heading .respawn-count { padding: 2px 5px; font-size: .45rem; }
  .life-dots i { width: 5px; height: 5px; }
  .dock-metric b { font-size: .72rem; }
  .dock-details { gap: 5px; }
  .dock-details small { font-size: .45rem; }
  .dock-actions { grid-template-columns: repeat(2, minmax(44px, auto)); }
  .dock-actions button { min-height: 23px; padding: 1px 5px; font-size: .51rem; }
  .dock-actions .orbit-button { min-height: 18px; }
  .placement-guide { top: 10px; max-width: 330px; }
  .cosmic-toast { top: 62px; }
  .copyright-strip { padding: 3px 0 4px; }
}

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

/* Poster and observation manual */
.artifact-page { position: relative; min-height: 100svh; padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.poster-shell,
.manual-header,
.manual-list,
.artifact-links,
.artifact-footer { position: relative; z-index: 1; width: min(1120px, 100%); margin-left: auto; margin-right: auto; }
.back-link { display: inline-flex; min-height: 40px; align-items: center; color: #b7ccd7; font-size: .75rem; font-weight: 700; letter-spacing: .06em; }
.back-link:hover { color: white; }

.poster-page {
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(1,5,12,.84), rgba(1,5,12,.12) 30%, rgba(1,5,12,.12) 70%, rgba(1,5,12,.84)),
    url("stardust-nebula-textless-v3.png") 70% center / auto 120% fixed no-repeat,
    #020711;
}
.poster-shell { width: min(520px, 100%); }
.poster-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 9 / 16;
  min-height: 720px;
  margin-top: 6px;
  padding: 34px 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(186,225,245,.38);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(1,4,11,.78) 0%, rgba(1,4,11,.08) 34%, rgba(1,4,11,.12) 58%, rgba(1,4,11,.9) 100%),
    url("stardust-nebula-textless-v3.png") 70% center / auto 100% no-repeat,
    #020711;
  box-shadow: 0 24px 76px rgba(0,0,0,.55);
}
.poster-copy,
.poster-bottom { position: relative; z-index: 1; }
.poster-copy h1 { margin: 0; color: #f8fbff; font-family: Georgia, "Songti SC", serif; font-size: clamp(3.35rem, 11vw, 4.8rem); font-weight: 500; line-height: .98; white-space: nowrap; text-shadow: 0 5px 24px rgba(0,0,0,.82), 0 0 28px rgba(77,181,224,.32); }
.poster-lead { margin: 24px 0 0; color: #ffe9ad; font-size: 1.28rem; font-weight: 800; line-height: 1.5; text-shadow: 0 3px 15px rgba(0,0,0,.9); }
.poster-lead span { display: block; }
.poster-tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 7px; }
.poster-tags span { padding: 6px 9px; border: 1px solid rgba(184,229,255,.44); border-radius: 999px; background: rgba(4,16,36,.6); color: #eaf9ff; font-size: .68rem; font-weight: 800; -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.poster-scan { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center; padding: 10px; border: 1px solid rgba(184,229,255,.34); border-radius: 8px; background: rgba(0,3,12,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.poster-scan img { display: block; width: 88px; height: 88px; border-radius: 7px; background: white; }
.poster-scan strong { color: #ffd66f; font-size: .82rem; font-weight: 900; }
.poster-scan p { margin: 6px 0 0; color: rgba(238,246,255,.9); font-size: .68rem; font-weight: 750; line-height: 1.45; }
.poster-page-links { margin-top: 9px; color: #e2f4fb; text-align: center; font-size: .66rem; font-weight: 800; }
.poster-page-links a:hover { text-decoration: underline; }
.poster-credit { margin-top: 9px; color: rgba(234,245,255,.82); font-size: .66rem; font-weight: 800; text-align: center; }
.poster-copyright,
.poster-original { margin: 4px 0 0; color: rgba(224,237,249,.58); font-size: .56rem; line-height: 1.25; text-align: center; }
.poster-copyright .filing-link { display: inline-flex; align-items: center; gap: .25em; }
.poster-copyright .filing-link img { width: .9em; height: auto; }

.artifact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; padding: 14px 0; }
.artifact-links a { min-height: 38px; padding: 0 14px; display: grid; place-items: center; border: 1px solid rgba(137,211,234,.14); border-radius: 999px; color: #9cb5c2; font-size: .68rem; }
.artifact-links a:hover { color: white; border-color: rgba(117,221,247,.38); }
.artifact-footer { padding-left: 8px; padding-right: 8px; }

.manual-header { width: min(1060px, 100%); padding: 20px 0 32px; display: grid; grid-template-columns: 180px 1fr; gap: 34px; align-items: start; border-bottom: 1px solid rgba(131,213,238,.18); }
.manual-header h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(3rem, 6vw, 5.8rem); font-weight: 400; letter-spacing: .05em; }
.manual-header div > p:last-child { margin: 13px 0 0; color: #b7ccd6; font-size: 1rem; line-height: 1.7; }
.manual-list { width: min(1060px, 100%); padding: 26px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.manual-row { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px 15px; align-content: start; padding: 20px 22px; border: 1px solid rgba(130,208,232,.18); border-radius: 16px; background: linear-gradient(135deg, rgba(9,31,50,.9), rgba(4,15,27,.74)); box-shadow: inset 0 1px rgba(255,255,255,.025), 0 12px 34px rgba(0,0,0,.12); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.manual-row:hover { border-color: rgba(125,220,245,.28); background: linear-gradient(115deg, rgba(10,34,54,.9), rgba(4,15,27,.72)); }
.manual-number { color: #8ce8f8; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; font-weight: 800; letter-spacing: .12em; }
.manual-row h2 { margin: 0; color: #f0fbff; font-family: Georgia, "Songti SC", serif; font-size: 1.18rem; font-weight: 400; }
.manual-row p { grid-column: 1 / -1; margin: 2px 0 0; color: #bfd1d9; font-size: .88rem; line-height: 1.78; }

@media (max-width: 760px) {
  .manual-header { grid-template-columns: 1fr; gap: 8px; }
  .manual-list { grid-template-columns: 1fr; }
  .manual-row { grid-template-columns: 34px 1fr; }
  .manual-row p { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .poster-page { padding: 10px; }
  .poster-card { min-height: 0; padding: 27px 22px 18px; }
  .poster-scan { grid-template-columns: 74px 1fr; gap: 9px; padding: 8px; }
  .poster-scan img { width: 74px; height: 74px; }
  .poster-scan p { font-size: .55rem; }
  .manual-row { padding: 15px 14px; gap: 9px 10px; }
}
