:root {
  --black: #000000;
  --ink: #050505;
  --white: #f5f5ef;
  --soft: #bcbcb6;
  --dim: #73736f;
  --hairline: rgba(245, 245, 239, 0.24);
  --faint: rgba(245, 245, 239, 0.08);
  --mono: "martian-mono-variable", "Martian Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
}

button, input { font: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
canvas:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 4px;
}

[hidden] { display: none !important; }

.arcade-page {
  position: relative;
  min-height: 100svh;
  overflow: auto;
  padding: clamp(12px, 2vw, 28px);
  background: #000;
}

.coordinate-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(var(--faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--faint) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.35) 58%, transparent 100%);
}

.coordinate-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(255,255,255,.2) 50%, transparent calc(50% + .5px)),
    linear-gradient(transparent calc(50% - .5px), rgba(255,255,255,.12) 50%, transparent calc(50% + .5px));
}

.home-view {
  position: relative;
  z-index: 1;
  width: min(1260px,100%);
  min-height: calc(100svh - clamp(24px,4vw,56px));
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.home-header, .home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 48px;
  border-bottom: 1px solid var(--hairline);
  color: var(--dim);
  font-size: 7px;
  letter-spacing: .14em;
}

.department-mark { display: flex; align-items: center; gap: 11px; }
.department-mark span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--white); color: #000; background: var(--white); font-size: 8px; }
.department-mark b { color: var(--soft); font-weight: 400; }
.home-status { display: flex; align-items: center; gap: 8px; }
.home-status i { width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 9px #fff; animation: home-blink 2.4s ease-in-out infinite; }

.home-intro { padding: clamp(42px,7vw,92px) 0 clamp(34px,5vw,58px); }
.home-intro .eyebrow { margin-bottom: 16px; text-align: left; }
.home-intro h1 { max-width: 920px; margin: 0; font-family: var(--sans); font-size: clamp(56px,9.5vw,132px); font-weight: 300; line-height: .83; letter-spacing: -.065em; }
.home-intro > p:last-child { max-width: 470px; margin: 25px 0 0; color: var(--soft); font-family: var(--sans); font-size: clamp(13px,1.4vw,17px); font-weight: 300; line-height: 1.5; }

.game-picker { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid rgba(255,255,255,.48); }
.game-choice { position: relative; min-height: 314px; display: flex; flex-direction: column; align-items: stretch; padding: 18px; overflow: hidden; color: var(--white); background: rgba(0,0,0,.86); border: 0; border-right: 1px solid var(--hairline); cursor: pointer; text-align: left; }
.game-choice:last-child { border-right: 0; }
.game-choice::after { content: ""; position: absolute; right: -25%; bottom: -55%; width: 75%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; transition: transform .35s ease, opacity .35s ease; }
.game-choice:hover { background: #080808; }
.game-choice:hover::after { transform: scale(1.45); opacity: .75; }
.game-number { color: var(--dim); font-size: 7px; letter-spacing: .14em; }
.game-choice strong { margin-top: 20px; font-family: var(--sans); font-size: clamp(25px,2.8vw,40px); font-weight: 300; line-height: .92; letter-spacing: -.04em; }
.game-choice small { max-width: 260px; margin-top: 13px; color: var(--soft); font-family: var(--sans); font-size: 12px; font-weight: 300; line-height: 1.45; }
.game-choice em { margin-top: auto; padding-top: 17px; border-top: 1px solid var(--hairline); color: var(--white); font-size: 7px; font-style: normal; letter-spacing: .15em; }
.game-preview { position: relative; height: 78px; margin-top: 23px; }

.meteor-preview { background: linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px); background-size: 16px 16px; }
.meteor-preview i { position: absolute; width: 24px; height: 20px; border: 1px solid #fff; border-radius: 42% 55% 46% 60%; }
.meteor-preview i:nth-child(1) { top: 8px; left: 14%; transform: rotate(17deg); }
.meteor-preview i:nth-child(2) { top: 39px; left: 51%; width: 18px; height: 17px; transform: rotate(-21deg); }
.meteor-preview i:nth-child(3) { top: 7px; right: 11%; width: 30px; height: 26px; transform: rotate(34deg); }
.meteor-preview b { position: absolute; top: 27px; left: 42%; font-size: 24px; font-weight: 300; }

.constellation-preview i { position: absolute; width: 7px; height: 7px; border: 1px solid #fff; border-radius: 50%; background: #000; box-shadow: 0 0 8px rgba(255,255,255,.6); }
.constellation-preview i:nth-child(1) { left: 9%; bottom: 9px; }
.constellation-preview i:nth-child(2) { left: 34%; top: 4px; }
.constellation-preview i:nth-child(3) { left: 58%; bottom: 21px; }
.constellation-preview i:nth-child(4) { right: 9%; top: 2px; }
.constellation-preview b { position: absolute; height: 1px; background: rgba(255,255,255,.65); transform-origin: left center; }
.constellation-preview b:nth-of-type(1) { left: 11%; bottom: 13px; width: 34%; transform: rotate(-48deg); }
.constellation-preview b:nth-of-type(2) { left: 36%; top: 8px; width: 31%; transform: rotate(38deg); }
.constellation-preview b:nth-of-type(3) { left: 60%; bottom: 24px; width: 35%; transform: rotate(-39deg); }

.studio-preview { filter: saturate(.9); }
.studio-preview i { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .85; mix-blend-mode: screen; }
.studio-preview i:nth-child(1) { inset: 12px 38% 8px 4%; background: radial-gradient(circle,#80f7ff 0,#5b67ff 38%,transparent 72%); transform: rotate(-12deg); }
.studio-preview i:nth-child(2) { inset: 2px 4% 18px 46%; background: radial-gradient(circle,#ffcf70 0,#ff5794 40%,transparent 72%); }
.studio-preview i:nth-child(3) { width: 110px; height: 4px; top: 38px; left: 30%; background: #fff; transform: rotate(-18deg); filter: blur(1px); box-shadow: 0 0 12px #9ef7ff; }

.home-footer { min-height: 54px; margin-top: auto; border-top: 1px solid var(--hairline); border-bottom: 0; }

@keyframes home-blink { 50% { opacity: .25; box-shadow: 0 0 2px #fff; } }

.arcade-shell {
  position: relative;
  z-index: 1;
  width: min(1260px, 100%);
  margin: 0 auto;
}

.site-header {
  min-height: 46px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--hairline);
}

.header-actions { justify-self: end; display: flex; gap: 7px; }

.icon-button {
  height: 32px;
  min-width: 74px;
  padding: 0 10px;
  color: var(--soft);
  background: #000;
  border: 1px solid var(--hairline);
  cursor: pointer;
  font-size: 8px;
  letter-spacing: .12em;
}

.icon-button:hover:not(:disabled) { color: #000; background: var(--white); border-color: var(--white); }
.icon-button:disabled { opacity: .3; cursor: not-allowed; }

.game-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 14px;
  overflow: hidden;
  background: #080808 url("./cockpit-window.webp") center / 100% 100% no-repeat;
  border: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 24px 70px rgba(0,0,0,.8);
}

.cockpit-viewport {
  position: absolute;
  z-index: 2;
  top: 6.1%;
  right: 1.35%;
  bottom: 17.5%;
  left: 1.35%;
  overflow: hidden;
  background: #000;
  clip-path: polygon(16.7% 0, 83.3% 0, 100% 16.4%, 100% 84.1%, 83.4% 100%, 16.6% 100%, 0 84.1%, 0 16.4%);
}

.game-canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.rocket-stage {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: -6%;
  width: min(38%, 430px);
  height: min(38%, 310px);
  transform: translateX(-50%) scale(.96);
  transform-origin: 50% 100%;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(0,255,60,.22));
  transition: opacity 180ms ease, transform 220ms ease;
}

.rocket-stage.is-active {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.rocket-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hud {
  position: absolute;
  z-index: 8;
  inset: 20px 13% auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  pointer-events: none;
  text-shadow: 0 2px 4px #000;
}

.hud span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255,255,255,.55);
  font-size: 7px;
  letter-spacing: .18em;
}

.hud strong {
  display: block;
  color: var(--white);
  font-size: clamp(18px, 2.2vw, 29px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .08em;
}

.wave-block { min-width: 132px; text-align: center; border-inline: 1px solid var(--hairline); padding-inline: 22px; }
.wave-block strong { font-size: clamp(14px,1.75vw,22px); white-space: nowrap; }
.lives-block { text-align: right; }
.shield-pips { display: flex; justify-content: flex-end; gap: 4px; }
.shield-pips i { display: block; width: clamp(18px,2.2vw,28px); height: 5px; border: 1px solid rgba(255,255,255,.38); }
.shield-pips i.active { background: var(--white); border-color: var(--white); box-shadow: 0 0 7px rgba(255,255,255,.55); }

.combo-badge {
  position: absolute;
  z-index: 10;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 9px;
  color: #000;
  background: var(--white);
  font-size: 8px;
  letter-spacing: .14em;
  animation: record-in .16s ease-out;
}

.game-message {
  position: absolute;
  z-index: 12;
  top: 48%;
  left: 50%;
  width: max-content;
  max-width: min(88%, 720px);
  transform: translate(-50%, -50%);
  padding: 12px 18px;
  color: var(--white);
  background: rgba(0,0,0,.9);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 0 26px rgba(255,255,255,.1);
  pointer-events: none;
  font-size: clamp(9px,1.3vw,15px);
  line-height: 1.45;
  letter-spacing: .11em;
  text-align: center;
  animation: message-in .16s ease-out;
}

.game-message.level {
  padding: 16px 25px;
  background: rgba(0,0,0,.72);
  border-width: 1px 0;
  font-size: clamp(13px,2vw,22px);
  letter-spacing: .22em;
  text-shadow: 0 0 14px rgba(255,255,255,.58);
}

.game-message.tutorial { padding: 15px 21px; }
.game-message.power { background: rgba(0,0,0,.94); box-shadow: 0 0 34px rgba(255,255,255,.2); }
.game-message.hit { background: rgba(98,0,13,.94); border-color: #ff6076; box-shadow: 0 0 38px rgba(255,0,42,.42); font-size: clamp(18px,3vw,34px); font-weight: 700; }

.game-overlay {
  position: absolute;
  z-index: 7;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 79px 24px 35px;
  overflow: auto;
  background: rgba(0,0,0,.48);
  backdrop-filter: blur(2px);
}

.mission-card {
  position: relative;
  width: min(650px, 94%);
  padding: clamp(24px,4vw,44px);
  text-align: center;
  background: rgba(0,0,0,.9);
  border: 1px solid rgba(255,255,255,.72);
}

.mission-card::before,
.mission-card::after { content: ""; position: absolute; background: var(--white); }
.mission-card::before { width: 38px; height: 1px; top: -1px; left: 20px; }
.mission-card::after { width: 1px; height: 38px; bottom: 20px; right: -1px; }

.card-index {
  display: flex;
  justify-content: space-between;
  margin-bottom: 26px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--hairline);
  color: var(--dim);
  font-size: 7px;
  letter-spacing: .15em;
  text-align: left;
}

.card-index b { color: var(--soft); font-weight: 400; }
.eyebrow { margin: 0 0 14px; color: var(--soft); font-size: 8px; letter-spacing: .22em; }

.mission-card h1,
.mission-card h2 {
  margin: 0;
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: .96;
  letter-spacing: -.045em;
}

.mission-card h1 { font-size: clamp(31px,5.5vw,70px); }
.mission-card h2 { font-size: clamp(32px,4.6vw,58px); }
.mission-card h1 span { font-style: italic; font-weight: 600; }

.mission-copy {
  max-width: 510px;
  margin: 20px auto;
  color: var(--soft);
  font-family: var(--sans);
  font-size: clamp(12px,1.25vw,15px);
  font-weight: 300;
  line-height: 1.55;
}

.primary-button,
.record-button,
.secondary-button,
.load-more-button {
  border: 1px solid var(--white);
  color: var(--white);
  background: #000;
  cursor: pointer;
  letter-spacing: .1em;
}

.primary-button {
  min-width: min(100%,290px);
  display: inline-flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0;
  font-size: 10px;
}

.primary-button span { padding: 14px 17px; }
.primary-button b { min-width: 45px; display: grid; place-items: center; border-left: 1px solid var(--white); font-weight: 400; }
.primary-button:hover, .record-button:hover, .secondary-button:hover, .load-more-button:hover { color: #000; background: var(--white); }

.quick-controls {
  margin-top: 27px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px 20px;
  color: var(--dim);
  font-size: 7px;
  letter-spacing: .08em;
}

.quick-controls span { white-space: nowrap; }
kbd { color: var(--white); font: inherit; }
.compact-card { width: min(490px,92%); }

.results-card { width: min(960px,97%); padding: clamp(18px,2.5vw,30px); text-align: left; }
.results-card .card-index { margin-bottom: 19px; }
.gameover-card { width: min(780px,94%); padding: clamp(28px,4.5vw,52px); text-align: left; }
.gameover-card .card-index { margin-bottom: clamp(30px,5vw,56px); }
.gameover-card .results-header { align-items: end; border-bottom: 0; }
.gameover-card .results-header h2 { font-size: clamp(52px,8vw,102px); line-height: .84; }
.results-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--hairline); }
.results-header .eyebrow { text-align: left; margin-bottom: 7px; }
.results-header h2 { font-size: clamp(31px,4vw,51px); }
.gameover-subhead { max-width: 570px; margin: 9px 0 0; color: var(--soft); font-family: var(--sans); font-size: clamp(13px,1.45vw,17px); font-weight: 300; line-height: 1.4; }
.final-score { flex: 0 0 auto; text-align: right; }
.final-score span { display: block; color: var(--dim); font-size: 7px; letter-spacing: .18em; }
.final-score strong { display: block; margin-top: 3px; color: var(--white); font-size: clamp(28px,4vw,50px); font-weight: 300; letter-spacing: .05em; }

.results-grid { display: grid; grid-template-columns: minmax(230px,.72fr) minmax(390px,1.28fr); gap: 0; }
.section-label { display: flex; align-items: center; gap: 9px; }
.section-label > span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--hairline); color: var(--soft); font-size: 7px; }
.section-label h3 { margin: 0; font-size: 9px; font-weight: 400; letter-spacing: .14em; }
.archive-copy { margin: 14px 0 18px; color: var(--dim); font-family: var(--sans); font-size: 11px; line-height: 1.45; }

#scoreForm { display: grid; grid-template-columns: 1fr 1.8fr; gap: 8px 10px; }
#scoreForm label { color: var(--dim); font-size: 6px; letter-spacing: .13em; }
#scoreForm input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--hairline);
  border-radius: 0;
  color: var(--white);
  background: #050505;
  font-size: 11px;
  text-transform: uppercase;
}

#scoreForm input::placeholder { color: #3d3d3a; }
.record-button { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: 11px 12px; font-size: 8px; }
.record-button:disabled { opacity: .35; cursor: wait; }
.form-status { grid-column: 1 / -1; min-height: 15px; margin: 0; color: var(--soft); font-size: 7px; line-height: 1.4; letter-spacing: .08em; }
.form-status.error { color: #fff; border-left: 2px solid #fff; padding-left: 7px; }
.moderation-note { margin: 1px 0 16px; color: #4f4f4b; font-size: 6px; letter-spacing: .08em; }
.secondary-button { width: 100%; padding: 10px; font-size: 7px; }
.submission-confirmation { margin: 12px 0; padding: 12px; border: 1px solid var(--white); }
.submission-confirmation span { display: block; color: var(--dim); font-size: 7px; letter-spacing: .12em; }
.submission-confirmation strong { display: block; margin-top: 5px; font-size: 15px; font-weight: 400; }

.table-wrap { max-height: 238px; overflow: auto; border-block: 1px solid var(--hairline); scrollbar-color: var(--white) #000; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th { position: sticky; top: 0; z-index: 1; padding: 8px 5px; color: var(--dim); background: #000; border-bottom: 1px solid var(--hairline); font-size: 6px; font-weight: 400; letter-spacing: .12em; text-align: left; }
td { padding: 8px 5px; border-bottom: 1px solid rgba(255,255,255,.1); color: var(--soft); font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
th:first-child, td:first-child { width: 12%; }
th:nth-child(2), td:nth-child(2) { width: 21%; color: var(--white); }
th:nth-child(3), td:nth-child(3) { width: 43%; }
th:last-child, td:last-child { width: 24%; text-align: right; color: var(--white); }
tr.is-current td { background: var(--white); color: #000; }
.empty-row { height: 80px; color: var(--dim) !important; text-align: center !important; }
.load-more-button { width: 100%; margin-top: 9px; padding: 8px; border-color: var(--hairline); font-size: 7px; }

.intel-bar {
  display: grid;
  grid-template-columns: repeat(3,1fr) .8fr;
  margin-top: 14px;
  border-block: 1px solid var(--hairline);
}

.intel-bar > div { min-height: 49px; padding: 9px clamp(8px,1.5vw,16px); border-right: 1px solid var(--hairline); }
.control-key { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.control-key kbd { color: var(--white); font-size: 8px; letter-spacing: .1em; }
.control-key span { color: var(--dim); font-size: 7px; letter-spacing: .14em; }
.intel-bar .best-panel { display: block; border-right: 0; text-align: right; }
.best-panel span { color: var(--dim); font-size: 7px; letter-spacing: .14em; }
.best-panel strong { display: block; margin-top: 5px; font-size: 19px; font-weight: 400; letter-spacing: .07em; }

.screen-reader-status { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@keyframes record-in { from { opacity: 0; transform: translateX(-50%) scale(.8); } }
@keyframes message-in { from { opacity: 0; transform: translate(-50%, -43%) scale(.96); } }

@media (max-width: 840px) {
  .intel-bar { grid-template-columns: repeat(3,1fr); }
  .intel-bar .best-panel { display: none; }
  .intel-bar > div:nth-child(3) { border-right: 0; }
  .results-grid { grid-template-columns: 1fr; }
  .results-card { margin: auto; }
}

@media (max-width: 620px) {
  .arcade-page { padding: 9px; }
  .site-header { min-height: 40px; padding-bottom: 7px; }
  .icon-button { min-width: 51px; height: 29px; padding-inline: 6px; font-size: 6px; }
  .game-frame { aspect-ratio: 16 / 9; }
  .hud { inset: 8px 13% auto; }
  .hud span { font-size: 5px; letter-spacing: .1em; }
  .wave-block { min-width: 78px; padding-inline: 8px; }
  .wave-block strong { font-size: 11px; }
  .game-overlay { padding: 34px 12px 20px; place-items: start center; }
  .mission-card { padding: 18px 14px; margin: auto; transform: scale(.76); transform-origin: center top; }
  .mission-card h1 { font-size: clamp(34px,11vw,51px); }
  .quick-controls { display: grid; justify-items: center; gap: 7px; }
  .results-card { padding: 16px 13px; width: 100%; }
  .results-header { align-items: start; }
  .results-header h2 { font-size: 29px; }
  .final-score strong { font-size: 27px; }
  .results-grid { display: block; }
  .table-wrap { max-height: 210px; }
  .intel-bar { grid-template-columns: repeat(3,1fr); }
  .intel-bar > div { min-height: 44px; padding-inline: 6px; }
  .control-key { flex-direction: column; justify-content: center; gap: 4px; text-align: center; }
  .control-key kbd { font-size: 6px; }
  .control-key span { font-size: 6px; }
}

@media (max-height: 700px) and (min-width: 621px) {
  .arcade-page { padding-top: 7px; }
  .site-header { min-height: 53px; padding-bottom: 7px; }
  .game-frame { max-height: none; }
  .mission-card { padding-block: 20px; }
  .mission-copy { margin-block: 11px; }
  .quick-controls { margin-top: 16px; }
  .results-card { transform: scale(.92); }
}

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

/* Human-object recovery layer */
.active-powers {
  position: absolute;
  z-index: 10;
  top: 79px;
  left: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: min(62%, 620px);
  pointer-events: none;
}

.power-chip {
  min-width: 118px;
  padding: 7px 9px;
  color: var(--white);
  background: rgba(0,0,0,.82);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 0 14px rgba(255,255,255,.06);
}

.power-chip header { display: flex; justify-content: space-between; gap: 10px; color: var(--soft); font-size: 6px; letter-spacing: .1em; }
.power-chip strong { font-size: 10px; font-weight: 400; }
.power-chip .power-track { height: 1px; margin-top: 5px; background: rgba(255,255,255,.2); }
.power-chip .power-track i { display: block; height: 1px; background: #fff; transition: width .1s linear; }
.power-chip .queue-count { display: inline-grid; place-items: center; min-width: 15px; height: 15px; margin-left: 5px; border: 1px solid var(--white); color: #000; background: #fff; font-size: 7px; }

.shoebox-counter {
  position: absolute;
  z-index: 10;
  top: 80px;
  right: 22px;
  padding: 6px 8px;
  color: var(--dim);
  background: rgba(0,0,0,.82);
  border: 1px solid rgba(255,255,255,.25);
  font-size: 7px;
  letter-spacing: .09em;
}

.shoebox-counter b { color: var(--white); font-weight: 400; }
.shoebox-counter:disabled { cursor: default; }
.game-canvas.direct-targeting { cursor: none; }
.game-frame.caffeine-mode { box-shadow: 0 0 0 5px #000, 0 0 0 6px rgba(255,255,255,.55), 0 0 35px rgba(255,255,255,.14); }

.claim-card { width: min(790px,96%); text-align: left; }
.claim-layout { display: grid; grid-template-columns: minmax(220px,.9fr) minmax(280px,1.1fr); gap: clamp(24px,4vw,52px); align-items: center; }
.claim-image-wrap {
  position: relative;
  min-height: 285px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    #020202;
  background-size: 22px 22px;
}

.claim-image-wrap::after { content: "OBJECT ISOLATION / 100%"; position: absolute; left: 8px; bottom: 7px; color: var(--dim); font-size: 6px; letter-spacing: .12em; }
.claim-image-wrap img { position: relative; z-index: 2; display: block; width: 88%; height: 255px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); animation: object-float 3.2s ease-in-out infinite; }
.scan-ring { position: absolute; width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; animation: scan-ring 2.2s ease-out infinite; }
.claim-copy .eyebrow { text-align: left; }
.claim-copy h2 { font-size: clamp(30px,4vw,52px); overflow-wrap: anywhere; }
.claim-description { min-height: 56px; margin: 18px 0 24px; color: var(--soft); font-family: var(--sans); font-size: 15px; font-weight: 300; line-height: 1.5; white-space: pre-line; }

.session-stats { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--hairline); }
.session-stats > div { padding: 13px 15px; border-right: 1px solid var(--hairline); }
.session-stats > div:last-child { border-right: 0; }
.session-stats span { display: block; color: var(--dim); font-size: 6px; letter-spacing: .11em; }
.session-stats strong { display: block; margin-top: 4px; color: var(--white); font-size: 20px; font-weight: 400; }
.shoebox-cta { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 18px 20px; border: 2px solid #fff; color: #000; background: #fff; cursor: pointer; font-size: clamp(12px,1.5vw,16px); font-weight: 700; letter-spacing: .13em; box-shadow: 0 0 28px rgba(255,255,255,.15); }
.shoebox-cta b { font-size: 8px; font-weight: 500; }
.shoebox-cta:hover { background: #d6b68a; }

.player-details { display: block; margin-top: 4px; }
.player-details summary { width: max-content; max-width: 100%; color: var(--dim); cursor: pointer; font-size: 6px; letter-spacing: .06em; list-style: none; }
.player-details summary::-webkit-details-marker { display: none; }
.player-details summary::before { content: "+ "; color: var(--white); }
.player-details[open] summary::before { content: "− "; }
.player-shoebox { margin: 6px 0 1px; padding: 7px; border: 1px solid var(--hairline); color: var(--soft); background: #050505; white-space: normal; font-size: 6px; line-height: 1.5; }
.player-metrics { display: block; margin-top: 4px; color: #5c5c58; }

.shoebox-card { width: min(900px,97%); padding: clamp(18px,2.5vw,30px); text-align: left; }
.shoebox-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.shoebox-heading .eyebrow { margin-bottom: 7px; text-align: left; }
.shoebox-heading h2 { font-size: clamp(36px,5vw,62px); }
.close-box-button { padding: 9px 11px; border: 1px solid var(--hairline); color: var(--soft); background: #000; cursor: pointer; font-size: 7px; letter-spacing: .1em; }
.close-box-button:hover { color: #000; background: #fff; }
.shoebox-intro { margin: 12px 0 18px; color: var(--dim); font-family: var(--sans); font-size: 11px; }
.literal-shoebox { position: relative; padding-top: 30px; filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)); }
.shoebox-lid { position: absolute; z-index: 2; top: 0; left: 4%; width: 92%; height: 44px; padding: 9px 15px; color: rgba(58,37,15,.75); background: #b98b55; border: 2px solid #7e5b34; transform: perspective(500px) rotateX(45deg) translateY(-12px); font: 700 8px var(--sans); letter-spacing: .1em; text-align: right; }
.shoebox-items {
  position: relative;
  min-height: 305px;
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 5px;
  padding: 28px 24px 21px;
  overflow: auto;
  border: 8px solid #8a6238;
  border-top-width: 14px;
  background:
    repeating-linear-gradient(12deg, rgba(89,59,28,.07) 0, rgba(89,59,28,.07) 1px, transparent 1px, transparent 5px),
    #c69b64;
  box-shadow: inset 0 0 0 2px #dfbe8a, inset 0 0 35px rgba(75,44,16,.45);
}

.shoebox-object { position: relative; min-height: 105px; padding: 0; border: 0; background: transparent; cursor: pointer; transform: rotate(var(--tilt)); transition: transform .15s ease, filter .15s ease; }
.shoebox-object:hover { z-index: 3; transform: rotate(0) scale(1.18); filter: drop-shadow(0 8px 8px rgba(42,24,8,.4)); }
.shoebox-object img { width: 100%; height: 100px; object-fit: contain; }
.shoebox-object span { position: absolute; right: 3px; bottom: 3px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 3px; color: #fff; background: rgba(0,0,0,.72); font-size: 7px; }
.shoebox-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 17px; }
.shoebox-actions .primary-button, .shoebox-actions .secondary-button { width: 100%; min-width: 0; }
.shoebox-actions .secondary-button { min-height: 45px; }

.inspect-card { width: min(760px,95%); text-align: left; }
.claim-image-wrap.cardboard { background: #c69b64; border: 8px solid #8a6238; }
.claim-image-wrap.cardboard::after { color: rgba(55,31,10,.6); content: "SHOEBOX CONTENTS / NO VALUE"; }

@keyframes object-float { 50% { transform: translateY(-8px) rotate(1.5deg); } }
@keyframes scan-ring { from { transform: scale(.72); opacity: .55; } to { transform: scale(1.28); opacity: 0; } }

@media (max-width: 760px) {
  .active-powers { top: 71px; left: 14px; max-width: calc(100% - 28px); }
  .power-chip { min-width: 104px; padding: 5px 6px; }
  .shoebox-counter { top: auto; right: 13px; bottom: 27px; }
  .claim-layout { grid-template-columns: 1fr; gap: 18px; }
  .claim-image-wrap { min-height: 205px; }
  .claim-image-wrap img { height: 185px; }
  .claim-copy { text-align: center; }
  .claim-copy .eyebrow { text-align: center; }
  .claim-description { min-height: auto; margin-block: 12px 17px; }
  .session-stats span { min-height: 18px; }
  .shoebox-items { grid-template-columns: repeat(3,1fr); min-height: 330px; padding-inline: 14px; }
  .shoebox-actions { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-actions { gap: 3px; }
  .icon-button { min-width: 44px; }
  .session-stats > div { padding-inline: 7px; }
  .session-stats strong { font-size: 17px; }
  .shoebox-heading { align-items: start; }
  .close-box-button { max-width: 92px; }
  .literal-shoebox { padding-top: 22px; }
  .shoebox-lid { height: 36px; }
  .gameover-card .results-header { display: grid; }
  .gameover-card .final-score { text-align: left; }
  .gameover-card .results-header h2 { font-size: clamp(50px,18vw,76px); }
}

/* Shared creative-game workspaces */
.creative-view {
  position: relative;
  z-index: 1;
  width: min(1360px,100%);
  min-height: calc(100svh - clamp(24px,4vw,56px));
  margin: 0 auto;
}

.creative-header {
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.home-link { justify-self: start; min-width: 96px; }
.creative-identity { text-align: center; }
.creative-identity span, .creative-identity b { display: block; font-size: 6px; font-weight: 400; letter-spacing: .15em; }
.creative-identity span { margin-bottom: 3px; color: var(--white); }
.creative-identity b { color: var(--dim); }
.creative-readout { justify-self: end; display: flex; align-items: center; gap: 8px; color: var(--soft); font-size: 7px; letter-spacing: .12em; }
.creative-readout i { width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.8); }

.constellation-layout { display: grid; grid-template-columns: minmax(270px,340px) minmax(0,1fr); gap: clamp(18px,3vw,38px); padding-top: clamp(22px,3.4vw,44px); }
.creative-panel { min-height: 630px; padding: clamp(22px,3vw,36px); border: 1px solid rgba(255,255,255,.42); background: rgba(0,0,0,.86); }
.creative-panel .eyebrow { text-align: left; }
.creative-panel h1, .studio-heading h1 { margin: 0; font-family: var(--sans); font-size: clamp(47px,5.4vw,75px); font-weight: 300; line-height: .88; letter-spacing: -.055em; }
.creative-copy { margin: 24px 0 30px; color: var(--soft); font-family: var(--sans); font-size: 13px; font-weight: 300; line-height: 1.55; }
.constellation-name { margin: 0 0 26px; padding: 14px 0; border-block: 1px solid var(--hairline); }
.constellation-name span { display: block; color: var(--dim); font-size: 6px; letter-spacing: .14em; }
.constellation-name strong { display: block; margin-top: 7px; color: var(--white); font-size: 11px; font-weight: 400; letter-spacing: .08em; }

.control-stack { display: grid; border-top: 1px solid var(--hairline); }
.tool-toggle { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 10px; color: var(--soft); background: #000; border: 0; border-bottom: 1px solid var(--hairline); cursor: pointer; font-size: 7px; letter-spacing: .1em; }
.tool-toggle b { color: var(--dim); font-weight: 400; }
.tool-toggle.is-active b { color: #000; background: #fff; padding: 4px 6px; }
.tool-toggle:hover { color: #fff; background: #080808; }

.creative-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 25px; }
.creative-actions button { min-height: 39px; padding: 8px; color: var(--soft); background: #000; border: 1px solid var(--hairline); cursor: pointer; font-size: 7px; letter-spacing: .1em; }
.creative-actions button:first-child, .creative-actions button:last-child { color: var(--white); border-color: rgba(255,255,255,.65); }
.creative-actions button:hover { color: #000; background: #fff; border-color: #fff; }

.creative-stage { min-width: 0; }
.stage-label { min-height: 29px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--dim); font-size: 6px; letter-spacing: .14em; }
.stage-note { margin: 10px 0 0; color: var(--dim); font-family: var(--sans); font-size: 10px; text-align: right; }
.constellation-canvas-shell, .studio-canvas-shell { position: relative; height: min(70svh,690px); min-height: 520px; overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,.56); box-shadow: 0 0 0 5px #000, 0 0 0 6px rgba(255,255,255,.12); }
.constellation-canvas-shell canvas, .studio-canvas-shell canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; }
#constellationCanvas { cursor: crosshair; }
.canvas-corners { position: absolute; inset: 9px; z-index: 4; pointer-events: none; border: 1px solid transparent; }
.canvas-corners::before, .canvas-corners::after { content: ""; position: absolute; width: 23px; height: 23px; }
.canvas-corners::before { top: 0; left: 0; border-top: 1px solid rgba(255,255,255,.55); border-left: 1px solid rgba(255,255,255,.55); }
.canvas-corners::after { right: 0; bottom: 0; border-right: 1px solid rgba(255,255,255,.55); border-bottom: 1px solid rgba(255,255,255,.55); }

.studio-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; padding: clamp(26px,4vw,48px) 0 27px; }
.studio-heading .eyebrow { text-align: left; margin-bottom: 10px; }
.studio-heading h1 { font-size: clamp(44px,6vw,80px); }
.studio-heading > p { max-width: 400px; margin: 0 0 4px; color: var(--soft); font-family: var(--sans); font-size: 13px; font-weight: 300; line-height: 1.5; }
.studio-layout { display: grid; grid-template-columns: minmax(320px,380px) minmax(0,1fr); gap: 18px; }
.studio-toolbar { max-height: min(70svh,690px); overflow: auto; padding: 17px; border: 1px solid rgba(255,255,255,.42); background: rgba(0,0,0,.9); scrollbar-color: #fff #000; }
.toolbar-section + .toolbar-section { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--hairline); }
.toolbar-label { display: block; margin-bottom: 10px; color: var(--dim); font-size: 6px; letter-spacing: .15em; }
.brush-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.brush-button { min-height: 82px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 7px 4px; color: var(--soft); background: #030303; border: 1px solid var(--hairline); cursor: pointer; }
.brush-button:hover, .brush-button.is-active { color: #000; background: #fff; border-color: #fff; }
.brush-button span { font-size: 6px; letter-spacing: .08em; }
.brush-button small { color: var(--dim); font-family: var(--sans); font-size: 8px; }
.brush-button.is-active small, .brush-button:hover small { color: #444; }
.brush-icon { position: relative; width: 27px; height: 25px; display: block; }
.nebula-icon { border-radius: 50%; background: radial-gradient(ellipse at 35% 45%,currentColor 0 12%,transparent 48%), radial-gradient(ellipse at 70% 55%,currentColor 0 8%,transparent 55%); filter: blur(1px); }
.stardust-icon { background: radial-gradient(circle,currentColor 0 1px,transparent 2px); background-size: 7px 7px; }
.comet-icon::before { content: ""; position: absolute; width: 25px; height: 2px; top: 12px; left: 0; background: currentColor; transform: rotate(-25deg); box-shadow: 0 0 6px currentColor; }
.comet-icon::after { content: ""; position: absolute; width: 5px; height: 5px; top: 6px; right: 0; border-radius: 50%; background: currentColor; }
.aurora-icon { border: solid currentColor; border-width: 1px 0; border-radius: 50%; transform: skewY(-15deg); }
.orbit-icon { border: 1px solid currentColor; border-radius: 50%; transform: rotate(-25deg) scaleY(.45); }
.orbit-icon::after { content: ""; position: absolute; width: 4px; height: 4px; top: 9px; right: -2px; border-radius: 50%; background: currentColor; }
.supernova-icon { background: linear-gradient(90deg,transparent 47%,currentColor 48% 52%,transparent 53%), linear-gradient(transparent 47%,currentColor 48% 52%,transparent 53%); transform: rotate(20deg); }
.supernova-icon::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.pulsar-icon { border: 1px solid currentColor; border-radius: 50%; box-shadow: inset 0 0 0 7px #000, inset 0 0 0 8px currentColor; }
.pulsar-icon::before, .pulsar-icon::after { content: ""; position: absolute; left: 50%; top: -4px; width: 1px; height: 33px; background: currentColor; transform: rotate(38deg); }
.pulsar-icon::after { transform: rotate(-38deg); }
.void-icon { border: 1px solid currentColor; border-radius: 50%; box-shadow: inset 0 0 0 5px #000; }

.palette-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 5px; }
.palette-button { display: flex; align-items: center; gap: 8px; padding: 7px; color: var(--dim); background: #030303; border: 1px solid var(--hairline); cursor: pointer; font-size: 6px; letter-spacing: .08em; text-align: left; }
.palette-button.is-active { color: #fff; border-color: rgba(255,255,255,.75); }
.palette-button i { display: flex; width: 30px; height: 13px; }
.palette-button i b { flex: 1; }
.palette-button[data-palette="aurora"] i b:nth-child(1) { background: #78f7ff; }.palette-button[data-palette="aurora"] i b:nth-child(2) { background: #9878ff; }.palette-button[data-palette="aurora"] i b:nth-child(3) { background: #ff6ab6; }
.palette-button[data-palette="solar"] i b:nth-child(1) { background: #fff3ae; }.palette-button[data-palette="solar"] i b:nth-child(2) { background: #ffae42; }.palette-button[data-palette="solar"] i b:nth-child(3) { background: #ff4d6d; }
.palette-button[data-palette="deep"] i b:nth-child(1) { background: #7d8cff; }.palette-button[data-palette="deep"] i b:nth-child(2) { background: #2749d8; }.palette-button[data-palette="deep"] i b:nth-child(3) { background: #8d3cff; }
.palette-button[data-palette="mono"] i b:nth-child(1) { background: #fff; }.palette-button[data-palette="mono"] i b:nth-child(2) { background: #aebbc7; }.palette-button[data-palette="mono"] i b:nth-child(3) { background: #59636f; }
.studio-settings label { display: flex; justify-content: space-between; margin-bottom: 9px; color: var(--dim); font-size: 6px; letter-spacing: .12em; }
.studio-settings label b { color: var(--white); font-weight: 400; }
#brushSize { width: 100%; height: 2px; margin: 8px 0 17px; accent-color: #fff; }
.studio-actions { margin-top: 18px; }
.studio-canvas-shell { height: min(63svh,625px); min-height: 480px; background: #000; }
#studioBackdropCanvas { z-index: 0; }
#studioCanvas { z-index: 1; cursor: crosshair; transition: opacity .14s linear; }
#studioEffectsCanvas { z-index: 3; pointer-events: none; }
.studio-signal { animation: home-blink 1.3s ease-in-out infinite; }

@media (max-width: 980px) {
  .game-picker { grid-template-columns: 1fr; }
  .game-choice { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--hairline); }
  .game-choice:last-child { border-bottom: 0; }
  .game-preview { position: absolute; top: 28px; right: 20px; width: 38%; }
  .game-choice strong { max-width: 55%; margin-top: 48px; }
  .constellation-layout, .studio-layout { grid-template-columns: 1fr; }
  .creative-panel { min-height: auto; }
  .constellation-canvas-shell { min-height: 540px; }
  .studio-toolbar { max-height: none; }
  .studio-stage { order: -1; }
}

@media (max-width: 620px) {
  .home-header { align-items: start; padding-block: 8px; }
  .department-mark b, .home-status { max-width: 135px; line-height: 1.4; }
  .home-intro { padding-top: 48px; }
  .home-intro h1 { font-size: clamp(48px,16vw,78px); }
  .game-choice { min-height: 250px; }
  .game-choice strong { max-width: 68%; }
  .game-preview { width: 32%; }
  .home-footer { align-items: start; padding-block: 12px; line-height: 1.4; }
  .creative-header { grid-template-columns: auto 1fr; }
  .creative-identity { text-align: right; }
  .creative-readout { display: none; }
  .studio-heading { display: block; }
  .studio-heading > p { margin-top: 17px; }
  .constellation-canvas-shell, .studio-canvas-shell { min-height: 500px; height: 65svh; }
  .brush-grid { grid-template-columns: repeat(3,1fr); }
}

/* Mission Control channel: let Meteor Blaster use the entire CRT viewport. */
body[data-view="meteor"] .arcade-page {
  width: 100%;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

body[data-view="meteor"] .arcade-shell {
  width: 100%;
  max-width: none;
  height: 100svh;
  margin: 0;
}

body[data-view="meteor"] .site-header,
body[data-view="meteor"] .intel-bar {
  display: none;
}

body[data-view="meteor"] .game-frame,
body[data-view="meteor"] .game-frame.caffeine-mode {
  width: 100%;
  height: 100svh;
  max-height: none;
  margin: 0;
  aspect-ratio: auto;
  border: 0;
  background: #000;
  box-shadow: none;
}

body[data-view="meteor"] .cockpit-viewport {
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: none;
}

/* Meteor Blaster // retro-science transmission system */
body[data-view="meteor"] {
  --mb-cream: #b9d9b1;
  --mb-orange: #cbe8c3;
  --mb-cyan: #8fbc94;
  --mb-steel: #6f9276;
  --mb-panel: rgba(0, 13, 8, .96);
  --mb-mono: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  --mb-display: var(--mb-mono);
  overflow: hidden;
  color: var(--mb-cream);
  font-family: var(--mb-mono);
}

body[data-view="meteor"] .coordinate-grid {
  z-index: 0;
  opacity: .24;
  background-image:
    linear-gradient(rgba(143,188,148,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,188,148,.08) 1px, transparent 1px);
  background-size: 42px 42px;
}

body[data-view="meteor"] .cockpit-viewport::after {
  content: "";
  position: absolute;
  z-index: 60;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background:
    repeating-linear-gradient(0deg, rgba(185,217,177,.08) 0, rgba(185,217,177,.08) 1px, transparent 1px, transparent 4px),
    radial-gradient(ellipse at center, transparent 47%, rgba(0,18,10,.5) 100%);
  mix-blend-mode: screen;
}

.meteor-boot-screen,
.meteor-start-screen {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: grid;
  overflow: hidden;
  color: var(--mb-cream);
  background:
    radial-gradient(ellipse at 50% 44%, rgba(22,62,38,.34), transparent 52%),
    repeating-linear-gradient(0deg, rgba(185,217,177,.026) 0, rgba(185,217,177,.026) 1px, transparent 1px, transparent 5px),
    #000503;
  isolation: isolate;
}

.meteor-boot-screen { place-items: center; padding: clamp(20px, 5vw, 70px); }

.meteor-boot-screen::before,
.meteor-start-screen::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(185,217,177,.24) 50%, transparent calc(50% + .5px)),
    linear-gradient(transparent calc(50% - .5px), rgba(185,217,177,.18) 50%, transparent calc(50% + .5px));
  opacity: .5;
}

.boot-stars {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: .68;
  background-image:
    radial-gradient(circle at 12% 18%, #b9d9b1 0 1px, transparent 1.5px),
    radial-gradient(circle at 74% 22%, #8fbc94 0 1px, transparent 1.5px),
    radial-gradient(circle at 84% 76%, #b9d9b1 0 1px, transparent 1.5px),
    radial-gradient(circle at 26% 82%, #8fbc94 0 1px, transparent 1.5px);
  background-size: 154px 127px, 211px 173px, 187px 149px, 243px 201px;
  animation: mb-star-drift 16s linear infinite;
}

.boot-content {
  width: min(900px, 88vw);
  display: grid;
  justify-items: center;
  text-align: center;
}

.boot-kicker,
.start-topline,
.start-footer,
.boot-readout {
  color: var(--mb-cyan);
  font-size: clamp(7px, 1vw, 11px);
  letter-spacing: .22em;
  text-transform: uppercase;
}

.boot-kicker { margin: 0 0 clamp(12px, 2.4vh, 24px); }

.meteor-logo {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(185,217,177,.5)) drop-shadow(0 0 32px rgba(80,150,92,.18));
}

.meteor-logo--boot { width: min(770px, 76vw); max-height: 46vh; }
.meteor-logo--start { width: min(620px, 58vw); max-height: 34vh; }

.meteor-tagline {
  margin: clamp(10px, 2vh, 20px) 0 0;
  color: var(--mb-cream);
  font-family: var(--mb-mono);
  font-size: clamp(10px, 1.3vw, 15px);
  line-height: 1.5;
  letter-spacing: .04em;
  text-align: center;
}

.boot-loader { width: min(570px, 68vw); margin-top: clamp(22px, 4vh, 44px); }
.boot-loader__meta { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--mb-steel); font-size: clamp(7px, .85vw, 10px); letter-spacing: .18em; }
.boot-loader__meta b { color: var(--mb-orange); font-weight: 500; }
.boot-loader__track { position: relative; height: 15px; padding: 3px; border: 1px solid rgba(185,217,177,.72); background: rgba(0,8,4,.9); }
.boot-loader__track i { display: block; width: 0; height: 100%; background: var(--mb-orange); box-shadow: 0 0 16px rgba(185,217,177,.68); transition: width .06s linear; }
.boot-loader__ticks { display: grid; grid-template-columns: repeat(10,1fr); margin-top: 5px; }
.boot-loader__ticks i { height: 4px; border-left: 1px solid rgba(242,239,220,.34); }
.boot-loader__ticks i:last-child { border-right: 1px solid rgba(242,239,220,.34); }

.boot-readout,
.start-topline,
.start-footer {
  position: absolute;
  right: clamp(14px, 2.5vw, 32px);
  left: clamp(14px, 2.5vw, 32px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.boot-readout { bottom: clamp(14px, 2.5vh, 28px); color: rgba(245,245,239,.54); }

.meteor-start-screen { place-items: center; padding: clamp(50px, 8vh, 84px) clamp(20px, 5vw, 72px); }

.start-nebula {
  position: absolute;
  z-index: -4;
  inset: -5%;
  background:
    radial-gradient(ellipse at 26% 70%, rgba(80,150,92,.12), transparent 28%),
    radial-gradient(ellipse at 74% 24%, rgba(185,217,177,.12), transparent 31%),
    radial-gradient(circle at 50% 52%, rgba(3,21,12,.58), #000 72%);
  filter: saturate(.8) contrast(1.18);
  transform: scale(1.04);
}

.start-nebula::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,245,239,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,245,239,.075) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, #000 0 34%, transparent 77%);
}

.start-meteor-field { position: absolute; z-index: -2; inset: 0; overflow: hidden; }
.start-meteor-field img { position: absolute; top: 0; left: 0; height: auto; will-change: transform, opacity; filter: drop-shadow(0 12px 20px rgba(0,0,0,.72)) contrast(1.12); }
.start-scanlines { position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.07) 0, rgba(0,0,0,.07) 2px, transparent 2px, transparent 6px); pointer-events: none; }

.start-topline { top: clamp(14px, 2.5vh, 28px); padding-bottom: 10px; border-bottom: 1px solid rgba(245,245,239,.32); }
.start-signal { display: flex; align-items: center; gap: 9px; }
.start-signal i { width: 7px; height: 7px; border-radius: 50%; background: var(--mb-orange); box-shadow: 0 0 12px var(--mb-orange); animation: mb-signal 1.15s steps(2,end) infinite; }

.start-content {
  width: min(900px, 90vw);
  display: grid;
  justify-items: center;
  text-align: center;
}

.start-blasting-button {
  position: relative;
  min-width: min(500px, 72vw);
  min-height: clamp(66px, 10vh, 96px);
  display: grid;
  grid-template-columns: 1fr clamp(64px, 8vw, 96px);
  align-items: center;
  margin-top: clamp(22px, 4vh, 46px);
  padding: 0;
  overflow: hidden;
  color: var(--mb-cream);
  background: rgba(0,12,7,.92);
  border: 1px solid var(--mb-cream);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  cursor: pointer;
  box-shadow: 0 0 38px rgba(242,239,220,.22);
}

.start-blasting-button span {
  padding-left: clamp(70px, 8vw, 100px);
  font: 700 clamp(24px, 4vw, 48px)/1 var(--mb-mono);
  letter-spacing: .055em;
  text-align: center;
  text-transform: uppercase;
}

.start-blasting-button b { align-self: stretch; display: grid; place-items: center; color: #001106; background: var(--mb-orange); font-size: clamp(18px, 2.3vw, 30px); }
.start-blasting-button:hover,
.start-blasting-button:focus-visible { color: #001106; background: var(--mb-cream); filter: drop-shadow(0 0 20px rgba(185,217,177,.5)); }
.start-blasting-button:active { transform: translateY(2px); }

.start-instructions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
  margin-top: clamp(18px, 3vh, 30px);
  padding: 9px 14px;
  color: rgba(242,239,220,.68);
  background: rgba(0,0,0,.68);
  border: 1px solid rgba(245,245,239,.28);
  font-size: clamp(8px, 1vw, 11px);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.start-instructions kbd { color: var(--mb-cyan); }
.start-instructions i { width: 4px; height: 4px; background: var(--mb-orange); transform: rotate(45deg); }
.start-footer { bottom: clamp(14px, 2.5vh, 28px); padding-top: 10px; border-top: 1px solid rgba(245,245,239,.32); color: rgba(245,245,239,.64); }
.start-footer b { color: var(--mb-cream); font-weight: 400; }

body[data-view="meteor"] .hud {
  inset: clamp(11px, 2.1vh, 23px) clamp(18px, 3vw, 42px) auto clamp(104px, 11vw, 130px);
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(0,10,5,.88), rgba(0,22,12,.36), rgba(0,10,5,.88));
  border-top: 1px solid rgba(185,217,177,.42);
  border-bottom: 1px solid rgba(185,217,177,.2);
}
body[data-view="meteor"] .hud span { color: rgba(245,245,239,.62); font-size: clamp(6px, .8vw, 9px); }
body[data-view="meteor"] .hud strong { color: var(--mb-cream); font-family: var(--mb-mono); text-shadow: 0 0 14px rgba(245,245,239,.25); }

body[data-view="meteor"] .game-pause-button {
  position: absolute;
  z-index: 31;
  top: clamp(11px, 2.1vh, 23px);
  left: clamp(12px, 2vw, 26px);
  min-width: clamp(76px, 8vw, 96px);
  height: clamp(38px, 6.5vh, 50px);
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  padding: 0 10px 0 5px;
  color: var(--mb-cream);
  background: rgba(3,3,3,.9);
  border: 1px solid rgba(245,245,239,.52);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  cursor: pointer;
  font-family: var(--mb-mono);
  font-size: clamp(7px, .85vw, 10px);
  letter-spacing: .1em;
}
body[data-view="meteor"] .game-pause-button b { font-size: 14px; font-weight: 500; letter-spacing: -.2em; }
body[data-view="meteor"] .game-pause-button:hover,
body[data-view="meteor"] .game-pause-button:focus-visible { color: #000; background: var(--mb-cream); }
body[data-view="meteor"] .wave-block { border-color: rgba(245,245,239,.28); }
body[data-view="meteor"] .shield-pips i { height: 7px; transform: skewX(-18deg); border-color: rgba(245,245,239,.38); }
body[data-view="meteor"] .shield-pips i.active { background: var(--mb-orange); border-color: var(--mb-orange); box-shadow: 0 0 8px rgba(245,245,239,.7); }
body[data-view="meteor"] .combo-badge { color: #000; background: var(--mb-orange); font-weight: 700; transform: translateX(-50%) skewX(-8deg); }
body[data-view="meteor"] .active-powers { top: clamp(72px, 12vh, 110px); }
body[data-view="meteor"] .power-chip { border-color: rgba(245,245,239,.42); background: rgba(3,3,3,.9); clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
body[data-view="meteor"] .power-chip .power-track i { background: var(--mb-orange); }
body[data-view="meteor"] .shoebox-counter { top: clamp(73px, 12vh, 111px); color: rgba(245,245,239,.58); border-color: rgba(245,245,239,.3); background: rgba(3,3,3,.88); }
body[data-view="meteor"] .shoebox-counter b { color: var(--mb-cream); }

body[data-view="meteor"] .game-message {
  padding: 12px 22px;
  color: var(--mb-cream);
  background: rgba(4,7,9,.9);
  border: 1px solid var(--mb-cyan);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  font-weight: 600;
  letter-spacing: .15em;
  text-shadow: 0 0 12px rgba(245,245,239,.4);
}
body[data-view="meteor"] .game-message.level { color: #000; background: var(--mb-cream); border-color: var(--mb-cream); text-shadow: none; }
body[data-view="meteor"] .game-message.power { color: #000; background: var(--mb-cyan); border-color: var(--mb-cyan); text-shadow: none; }
body[data-view="meteor"] .game-message.hit { color: #000; background: var(--mb-orange); border-color: var(--mb-orange); text-shadow: none; }

body[data-view="meteor"] .game-overlay {
  z-index: 24;
  place-items: center;
  padding: clamp(10px, 3vh, 28px) clamp(10px, 3vw, 36px);
  overflow: hidden;
  background:
    linear-gradient(rgba(185,217,177,.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185,217,177,.052) 1px, transparent 1px),
    rgba(0,8,4,.8);
  background-size: 28px 28px;
  backdrop-filter: blur(7px) saturate(.65);
}

body[data-view="meteor"] .mission-card {
  max-height: calc(100svh - clamp(20px, 6vh, 56px));
  margin: 0;
  padding: clamp(18px, 3.2vh, 34px) clamp(20px, 3.2vw, 42px);
  overflow: hidden;
  color: var(--mb-cream);
  background:
    linear-gradient(135deg, rgba(185,217,177,.1), transparent 33%),
    var(--mb-panel);
  border: 1px solid rgba(185,217,177,.76);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  box-shadow: 0 22px 80px rgba(0,0,0,.72), inset 0 0 40px rgba(97,163,105,.08), 0 0 28px rgba(97,163,105,.08);
}

body[data-view="meteor"] .mission-card::before { width: 86px; height: 4px; top: 0; left: 34px; background: var(--mb-orange); }
body[data-view="meteor"] .mission-card::after { width: 4px; height: 50px; right: 0; bottom: 30px; background: var(--mb-orange); }
body[data-view="meteor"] .mission-card .card-index { margin-bottom: clamp(13px, 2.2vh, 24px); padding-bottom: 8px; color: rgba(245,245,239,.52); border-color: rgba(245,245,239,.2); }
body[data-view="meteor"] .mission-card .card-index b { color: var(--mb-orange); }
body[data-view="meteor"] .mission-card .eyebrow { color: var(--mb-cyan); }
body[data-view="meteor"] .mission-card h1,
body[data-view="meteor"] .mission-card h2 {
  color: var(--mb-cream);
  font-family: var(--mb-mono);
  font-style: normal;
  font-weight: 600;
  letter-spacing: .035em;
  text-transform: uppercase;
}
body[data-view="meteor"] .mission-card h1 span { font-style: normal; }
body[data-view="meteor"] .mission-card h2 { font-size: clamp(32px, 7vh, 70px); }
body[data-view="meteor"] .mission-copy,
body[data-view="meteor"] .gameover-subhead,
body[data-view="meteor"] .claim-description,
body[data-view="meteor"] .archive-copy { color: rgba(242,239,220,.68); font-family: var(--mb-mono); }

body[data-view="meteor"] .level-card { width: min(720px, 92%); text-align: center; }
body[data-view="meteor"] .level-card .eyebrow { margin-bottom: clamp(7px, 1.4vh, 13px); text-align: center; letter-spacing: .42em; }
body[data-view="meteor"] .level-card h2 { font-size: clamp(76px, 19vh, 178px); line-height: .76; letter-spacing: .055em; text-shadow: 0 0 32px rgba(255,255,255,.13); }
body[data-view="meteor"] .level-brief { margin: clamp(20px, 4vh, 38px) 0 0; color: rgba(242,239,220,.72); font-size: clamp(8px, 1.3vw, 13px); letter-spacing: .16em; }
body[data-view="meteor"] .level-rules { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; margin-top: clamp(17px, 3vh, 30px); border: 1px solid rgba(245,245,239,.22); background: rgba(245,245,239,.22); }
body[data-view="meteor"] .level-rules[hidden] { display: none; }
body[data-view="meteor"] .level-rules span { padding: 11px 8px; color: rgba(242,239,220,.58); background: #050505; font-size: clamp(6px, .9vw, 9px); letter-spacing: .09em; }
body[data-view="meteor"] .level-rules b { display: block; margin-bottom: 4px; color: var(--mb-cream); font-weight: 500; }
body[data-view="meteor"] .level-begin-button { width: min(360px, 100%); margin: clamp(18px, 3.3vh, 32px) auto 0; }

body[data-view="meteor"] .primary-button,
body[data-view="meteor"] .record-button,
body[data-view="meteor"] .secondary-button,
body[data-view="meteor"] .load-more-button,
body[data-view="meteor"] .close-box-button {
  color: var(--mb-cream);
  background: #000a05;
  border-color: var(--mb-cream);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  font-weight: 700;
}
body[data-view="meteor"] .primary-button b { color: #001106; background: var(--mb-orange); border-color: #001106; }
body[data-view="meteor"] .primary-button:hover,
body[data-view="meteor"] .record-button:hover,
body[data-view="meteor"] .secondary-button:hover,
body[data-view="meteor"] .load-more-button:hover,
body[data-view="meteor"] .close-box-button:hover { color: #001106; background: var(--mb-cyan); border-color: var(--mb-cyan); box-shadow: 0 0 18px rgba(143,188,148,.28); }

body[data-view="meteor"] .claim-card { width: min(850px, 96%); }
body[data-view="meteor"] .claim-layout { gap: clamp(18px, 3.5vw, 48px); }
body[data-view="meteor"] .claim-image-wrap {
  min-height: min(40vh, 300px);
  background:
    linear-gradient(rgba(185,217,177,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185,217,177,.09) 1px, transparent 1px),
    #020b06;
  background-size: 24px 24px;
  border: 0;
  clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px);
}
body[data-view="meteor"] .claim-image-wrap::after { color: rgba(185,217,177,.58); content: "IMPACT OBJECT // ISOLATED"; }
body[data-view="meteor"] .claim-image-wrap img { height: min(36vh, 255px); filter: drop-shadow(0 13px 15px rgba(0,0,0,.3)) contrast(1.05); }
body[data-view="meteor"] .scan-ring { border-color: rgba(185,217,177,.38); }
body[data-view="meteor"] .claim-copy h2 { line-height: .88; }
body[data-view="meteor"] .claim-description { margin: clamp(10px, 2vh, 18px) 0 clamp(12px, 2.5vh, 24px); font-size: clamp(11px, 1.5vw, 15px); }

body[data-view="meteor"] .gameover-card { width: min(860px, 96%); padding: clamp(22px, 4vh, 44px); }
body[data-view="meteor"] .gameover-card .card-index { margin-bottom: clamp(20px, 4vh, 44px); }
body[data-view="meteor"] .gameover-card .results-header h2 { font-size: clamp(55px, 13vh, 118px); line-height: .77; }
body[data-view="meteor"] .final-score span { color: var(--mb-cyan); }
body[data-view="meteor"] .final-score strong { color: var(--mb-orange); font-family: var(--mb-mono); font-style: normal; font-weight: 600; letter-spacing: .04em; }
body[data-view="meteor"] .shoebox-cta { margin-top: clamp(14px, 3vh, 28px); color: #050505; background: var(--mb-orange); border-color: var(--mb-orange); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); box-shadow: 0 0 28px rgba(245,245,239,.2); }
body[data-view="meteor"] .shoebox-cta:hover { background: var(--mb-cyan); border-color: var(--mb-cyan); }

body[data-view="meteor"] .shoebox-card,
body[data-view="meteor"] .results-card {
  max-height: calc(100svh - clamp(14px, 4vh, 38px));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--mb-orange) #050505;
}
body[data-view="meteor"] .shoebox-heading h2,
body[data-view="meteor"] .results-header h2 { line-height: .84; }
body[data-view="meteor"] .results-card { width: min(1040px, 98%); }
body[data-view="meteor"] .session-stats { border-color: rgba(245,245,239,.2); }
body[data-view="meteor"] .session-stats > div { border-color: rgba(245,245,239,.2); }
body[data-view="meteor"] .session-stats span,
body[data-view="meteor"] #scoreForm label { color: rgba(245,245,239,.56); }
body[data-view="meteor"] .section-label > span { color: #000; background: var(--mb-orange); border-color: var(--mb-orange); font-weight: 700; }
body[data-view="meteor"] .section-label h3 { color: var(--mb-cream); }
body[data-view="meteor"] #scoreForm input { color: var(--mb-cream); background: rgba(245,245,239,.04); border-color: rgba(245,245,239,.34); }
body[data-view="meteor"] .table-wrap { border-color: rgba(245,245,239,.24); scrollbar-color: var(--mb-orange) #050505; }
body[data-view="meteor"] th { color: var(--mb-cyan); background: #050505; border-color: rgba(245,245,239,.24); }
body[data-view="meteor"] td { color: rgba(242,239,220,.7); border-color: rgba(245,245,239,.1); }
body[data-view="meteor"] tr.is-current td { color: #000; background: var(--mb-orange); }
body[data-view="meteor"] .submission-confirmation { border-color: var(--mb-orange); }

/* Monochrome phosphor telemetry skin. Photographic sprites and level media remain unfiltered. */
body[data-view="meteor"] :is(
  .boot-readout,
  .start-footer,
  .start-instructions,
  .hud span,
  .mission-card .card-index,
  .mission-copy,
  .gameover-subhead,
  .claim-description,
  .archive-copy,
  .level-brief,
  .level-rules span,
  .shoebox-counter,
  .session-stats span,
  #scoreForm label,
  td
) { color: rgba(185,217,177,.66); }

body[data-view="meteor"] :is(
  .start-topline,
  .start-footer,
  .wave-block,
  .shield-pips i,
  .power-chip,
  .shoebox-counter,
  .game-pause-button,
  .level-rules,
  .session-stats,
  .session-stats > div,
  #scoreForm input,
  .table-wrap,
  th,
  td
) { border-color: rgba(185,217,177,.3); }

body[data-view="meteor"] :is(.hud strong, .mission-card h1, .mission-card h2, .final-score strong) {
  color: var(--mb-cream);
  text-shadow: 0 0 10px rgba(185,217,177,.34);
}

body[data-view="meteor"] :is(.game-message.level, .game-message.power, .game-message.hit, .combo-badge) {
  color: var(--mb-cream);
  background: rgba(0,12,7,.94);
  border: 1px solid var(--mb-cream);
  text-shadow: 0 0 10px rgba(185,217,177,.48);
  box-shadow: 0 0 20px rgba(185,217,177,.12);
}

body[data-view="meteor"] :is(.primary-button, .record-button, .secondary-button, .load-more-button, .close-box-button, .shoebox-cta) {
  color: var(--mb-cream);
  background: #000a05;
  border-color: var(--mb-cream);
  box-shadow: inset 0 0 16px rgba(143,188,148,.045);
}

body[data-view="meteor"] :is(.primary-button, .record-button, .secondary-button, .load-more-button, .close-box-button, .shoebox-cta):hover,
body[data-view="meteor"] :is(.primary-button, .record-button, .secondary-button, .load-more-button, .close-box-button, .shoebox-cta):focus-visible {
  color: #001106;
  background: var(--mb-cream);
  border-color: var(--mb-cream);
  box-shadow: 0 0 20px rgba(185,217,177,.34);
}

body[data-view="meteor"] :is(.section-label > span, tr.is-current td) {
  color: var(--mb-cream);
  background: rgba(17,48,27,.72);
  border-color: var(--mb-cream);
}

body[data-view="meteor"] .meteor-logo--boot { width: min(760px, 72vw); }
body[data-view="meteor"] .meteor-logo--start {
  width: min(920px, 84vw);
  max-height: 24vh;
  mix-blend-mode: screen;
}

/* Plain telemetry geometry: square corners, black controls, phosphor outlines. */
body[data-view="meteor"] :is(
  .start-blasting-button,
  .game-pause-button,
  .power-chip,
  .game-message,
  .mission-card,
  .primary-button,
  .record-button,
  .secondary-button,
  .load-more-button,
  .close-box-button,
  .shoebox-cta,
  .claim-image-wrap
) {
  clip-path: none;
  border-radius: 0;
}

body[data-view="meteor"] .mission-card::before,
body[data-view="meteor"] .mission-card::after { display: none; }

body[data-view="meteor"] :is(
  .start-blasting-button,
  .game-pause-button,
  .primary-button,
  .record-button,
  .secondary-button,
  .load-more-button,
  .close-box-button,
  .shoebox-cta
) {
  color: var(--mb-cream);
  background: #000;
  border: 1px solid var(--mb-cream);
  box-shadow: inset 0 0 16px rgba(143,188,148,.045);
}

body[data-view="meteor"] :is(.start-blasting-button b, .primary-button b) {
  color: var(--mb-cream);
  background: #000;
  border-color: var(--mb-cream);
}

body[data-view="meteor"] :is(
  .start-blasting-button,
  .game-pause-button,
  .primary-button,
  .record-button,
  .secondary-button,
  .load-more-button,
  .close-box-button,
  .shoebox-cta
):is(:hover, :focus-visible) {
  color: var(--mb-cream);
  background: #000;
  border-color: var(--mb-cream);
  box-shadow: inset 0 0 18px rgba(143,188,148,.08), 0 0 20px rgba(185,217,177,.42);
  filter: none;
}

body[data-view="meteor"] :is(
  .start-blasting-button,
  .game-pause-button,
  .primary-button,
  .record-button,
  .secondary-button,
  .load-more-button,
  .close-box-button,
  .shoebox-cta
):active {
  transform: translateY(2px);
  box-shadow: inset 0 5px 14px rgba(185,217,177,.22), 0 0 12px rgba(185,217,177,.22);
}

body[data-view="meteor"] #pauseCard {
  width: min(460px, 88%);
  display: grid;
  justify-items: center;
  gap: clamp(24px, 5vh, 48px);
  text-align: center;
}

body[data-view="meteor"] #pauseCard h2 { font-size: clamp(52px, 12vh, 108px); }

@keyframes mb-star-drift { to { transform: translate3d(-48px, 32px, 0); } }
@keyframes mb-signal { 50% { opacity: .2; } }

@media (max-height: 680px) {
  .meteor-logo--boot { width: min(570px, 64vw); max-height: 36vh; }
  .meteor-logo--start { width: min(470px, 48vw); max-height: 28vh; }
  .meteor-tagline { margin-top: 8px; }
  .boot-loader { margin-top: 16px; }
  .start-blasting-button { min-height: 58px; margin-top: 14px; }
  .start-instructions { margin-top: 12px; }
  body[data-view="meteor"] .mission-card { padding-block: 15px; }
  body[data-view="meteor"] .mission-card .card-index { margin-bottom: 11px; }
  body[data-view="meteor"] .mission-copy { margin-block: 10px; }
  body[data-view="meteor"] .claim-image-wrap { min-height: min(36vh, 220px); }
  body[data-view="meteor"] .claim-image-wrap img { height: min(32vh, 200px); }
  body[data-view="meteor"] .gameover-card .card-index { margin-bottom: 14px; }
}

/* Meteor Blaster // live specimen, Figma item-card, and monochrome interaction pass. */
body[data-view="meteor"] {
  --soft: #00ff3c;
  --dim: #00ff3c;
  --hairline: rgba(0, 255, 60, .46);
  --faint: rgba(0, 255, 60, .12);
}

body[data-view="meteor"] :is(p, span, small, strong, b, h1, h2, h3, label, kbd, summary, input, textarea) {
  color: var(--mb-cream) !important;
}

body[data-view="meteor"] tr.is-current td,
body[data-view="meteor"] tr.is-current td :is(p, span, small, strong, b, summary, a) {
  color: #000 !important;
}

body[data-view="meteor"] :is(input, textarea)::placeholder { color: rgba(0, 255, 60, .62); }

body[data-view="meteor"] .start-specimen {
  background: url("./start-specimen-grid.png") center / cover no-repeat #000;
}

body[data-view="meteor"] .start-specimen-frame img {
  width: min(42%, 390px);
  animation: object-float 6.5s ease-in-out infinite, mb-specimen-rotate 12s linear infinite;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .72));
  will-change: transform, rotate;
}

body[data-view="meteor"] .start-blasting-button {
  animation: mb-start-blink 1.1s steps(2, end) infinite;
}

body[data-view="meteor"] .start-blasting-button:hover,
body[data-view="meteor"] .start-blasting-button:focus-visible { animation-play-state: paused; }

@keyframes mb-specimen-rotate { to { rotate: 360deg; } }
@keyframes mb-start-blink {
  50% { opacity: .38; box-shadow: 0 0 22px rgba(0, 255, 60, .7); }
}

body[data-view="meteor"] :is(.claim-card, .inspect-card) {
  width: min(91vw, 1260px);
  height: auto;
  max-height: 76vh;
  aspect-ratio: 3238 / 1316;
  border: 1px solid var(--mb-cream);
}

body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-layout {
  grid-template-columns: 53.45% 46.55%;
}

body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-image-wrap,
body[data-view="meteor"] .claim-image-wrap.cardboard {
  border-right: 1px solid var(--mb-cream);
  background: url("./figma-star-grid.png") center / cover no-repeat #000;
}

body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-image-wrap img {
  width: 63%;
  height: 79%;
  animation: object-float 4.2s ease-in-out infinite;
}

body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-copy {
  padding: 7.2% 6% 5.6%;
}

body[data-view="meteor"] :is(.claim-card, .inspect-card) .card-index {
  flex: 0 0 auto;
  padding: 0 0 clamp(9px, 1.45vh, 15px);
  border-bottom: 1px solid var(--mb-cream);
  color: var(--mb-cream);
  font-size: clamp(7px, .78vw, 11px);
}

body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-copy > .eyebrow { display: none; }

body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-copy h2,
body[data-view="meteor"] .claim-card.is-cd-discovery .claim-copy h2 {
  margin: clamp(18px, 3.1vh, 31px) 0 0;
  color: var(--mb-cream);
  font-family: var(--mb-mono);
  font-size: clamp(29px, 4.25vw, 62px);
  font-weight: 500;
  line-height: .97;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-description {
  margin: clamp(12px, 2.1vh, 23px) 0;
  color: var(--mb-cream);
  font-size: clamp(9px, 1.15vw, 16px);
  line-height: 1.25;
}

body[data-view="meteor"] .cd-series-claim {
  align-items: center;
  gap: .7em;
  margin: 0 0 clamp(10px, 1.6vh, 18px);
  padding-top: clamp(8px, 1.3vh, 14px);
  border-top: 1px solid rgba(0, 255, 60, .42);
}

body[data-view="meteor"] .cd-series-claim strong {
  font-family: var(--mb-mono);
  font-size: clamp(13px, 1.55vw, 22px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
}

body[data-view="meteor"] .cd-series-claim span {
  padding: 0;
  font-size: clamp(8px, .92vw, 12px);
}

body[data-view="meteor"] :is(.claim-card, .inspect-card) .primary-button {
  min-height: clamp(42px, 6.9vh, 66px);
  color: var(--mb-cream);
  border: 1px solid var(--mb-cream);
  background: #000;
  font-family: var(--mb-mono);
  font-size: clamp(15px, 2vw, 28px);
}

body[data-view="meteor"] button:hover,
body[data-view="meteor"] button:focus-visible {
  color: #000 !important;
  border-color: #00ff3c !important;
  background-color: #00ff3c !important;
  box-shadow: 0 0 20px rgba(0, 255, 60, .58) !important;
  outline-color: #00ff3c;
}

body[data-view="meteor"] button:hover *,
body[data-view="meteor"] button:focus-visible * { color: #000 !important; }

@media (max-height: 680px) {
  body[data-view="meteor"] :is(.claim-card, .inspect-card) {
    width: min(88vw, 1080px);
    height: auto;
  }
  body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-copy { padding-block: 5.5%; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-view="meteor"] .start-specimen-frame img,
  body[data-view="meteor"] .start-blasting-button { animation: none; }
}

@media (max-width: 620px) {
  .boot-readout span:last-child,
  .start-topline > span:first-child,
  .start-footer span:first-child { display: none; }
  .boot-readout,
  .start-topline,
  .start-footer { justify-content: center; text-align: center; }
  .meteor-logo--boot { width: 88vw; }
  .meteor-logo--start { width: 78vw; }
  .start-blasting-button { min-width: 88vw; }
  .start-blasting-button span { padding-left: 54px; }
  .start-instructions { gap: 9px; font-size: 7px; }
  body[data-view="meteor"] .hud { inset: 7px 7px auto 86px; padding: 7px; }
  body[data-view="meteor"] .game-pause-button { top: 7px; left: 7px; min-width: 72px; height: 38px; }
  body[data-view="meteor"] .mission-card { width: 96%; padding: 14px; transform: none; }
  body[data-view="meteor"] .claim-layout { grid-template-columns: .8fr 1.2fr; gap: 12px; }
  body[data-view="meteor"] .claim-image-wrap { min-height: 150px; }
  body[data-view="meteor"] .claim-image-wrap img { height: 140px; }
  body[data-view="meteor"] .claim-description { min-height: 0; }
  body[data-view="meteor"] .gameover-card .results-header { display: flex; }
  body[data-view="meteor"] .gameover-card .final-score { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .boot-stars,
  .start-signal i { animation-duration: 16s !important; animation-iteration-count: infinite !important; }
}

/* Photorealistic interactive shoebox: item buttons sit inside the real box interior. */
body[data-view="meteor"] .literal-shoebox {
  position: relative;
  aspect-ratio: 8 / 5;
  min-height: 0;
  padding: 0;
  background: url("./shoebox-photoreal.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.62));
}

body[data-view="meteor"] .shoebox-lid { display: none; }

body[data-view="meteor"] .shoebox-items {
  position: absolute;
  inset: 50.5% 20% 8.5% 22%;
  min-height: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  padding: 5px;
  overflow: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-color: rgba(60,38,18,.72) transparent;
}

body[data-view="meteor"] .shoebox-object { min-height: clamp(48px, 8vw, 86px); }
body[data-view="meteor"] .shoebox-object img { height: clamp(48px, 7.6vw, 82px); filter: drop-shadow(0 5px 5px rgba(55,33,14,.36)); }

@media (max-width: 620px) {
  body[data-view="meteor"] .shoebox-items { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 3px; }
  body[data-view="meteor"] .shoebox-object,
  body[data-view="meteor"] .shoebox-object img { min-height: 38px; height: 38px; }
}

/* Meteor Blaster interface system. */
body[data-view="meteor"] {
  --mb-bg: #03100b;
  --mb-cream: #b8d4ad;
  --mb-orange: #b8d4ad;
  --mb-cyan: #b8d4ad;
  --mb-steel: rgba(184, 212, 173, .62);
  --mb-panel: #03100b;
  --mb-grid-minor: rgba(184, 212, 173, .075);
  --mb-grid-major: rgba(184, 212, 173, .19);
  --mb-mono: "martian-mono-variable", "Martian Mono", "SFMono-Regular", Consolas, monospace;
  --mb-display: var(--mb-mono);
  background: var(--mb-bg);
  color: var(--mb-cream);
  font-family: var(--mb-mono);
}

body[data-view="meteor"] :is(button, input, kbd, table) { font-family: var(--mb-mono); }

body[data-view="meteor"] .coordinate-grid,
body[data-view="meteor"] .game-overlay,
.meteor-boot-screen,
.meteor-start-screen {
  background-color: var(--mb-bg);
  background-image:
    linear-gradient(var(--mb-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--mb-grid-major) 1px, transparent 1px),
    linear-gradient(var(--mb-grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--mb-grid-minor) 1px, transparent 1px);
  background-size: 82px 82px, 82px 82px, 10px 10px, 10px 10px;
}

body[data-view="meteor"] .coordinate-grid { opacity: .6; mask-image: none; }
body[data-view="meteor"] .coordinate-grid::after { display: none; }
body[data-view="meteor"] .cockpit-viewport::after { opacity: .14; mix-blend-mode: screen; }

.meteor-boot-screen,
.meteor-start-screen { color: var(--mb-cream); }

.meteor-boot-screen::before,
.meteor-start-screen::before { display: none; }

.meteor-start-screen .start-nebula { opacity: .16; filter: grayscale(1); }
.meteor-start-screen .start-nebula::after { display: none; }
.boot-stars { opacity: .48; }

body[data-view="meteor"] :is(
  .boot-kicker,
  .boot-readout,
  .boot-loader__meta,
  .meteor-tagline,
  .start-topline,
  .start-footer,
  .start-instructions
) {
  font-family: var(--mb-mono);
  font-weight: 400;
  letter-spacing: -.015em;
}

body[data-view="meteor"] .meteor-tagline { color: var(--mb-cream); }
body[data-view="meteor"] .boot-loader__track { height: 13px; padding: 2px; border-color: var(--mb-cream); background: var(--mb-bg); }
body[data-view="meteor"] .boot-loader__track i { background: var(--mb-cream); box-shadow: 0 0 14px rgba(184,212,173,.5); }
body[data-view="meteor"] :is(.start-topline, .start-footer) { border-color: rgba(184,212,173,.55); }

body[data-view="meteor"] .start-blasting-button {
  min-width: min(520px, 66vw);
  min-height: clamp(58px, 8.5vh, 82px);
  display: flex;
  justify-content: center;
  margin-top: clamp(18px, 3vh, 34px);
}

body[data-view="meteor"] .start-blasting-button span {
  padding: 15px 24px;
  font-family: var(--mb-mono);
  font-size: clamp(24px, 3.7vw, 46px);
  font-weight: 400;
  letter-spacing: -.04em;
}

body[data-view="meteor"] :is(.start-blasting-button b, .primary-button b) { display: none; }

body[data-view="meteor"] .start-instructions {
  color: rgba(184,212,173,.68);
  background: var(--mb-bg);
  border-color: rgba(184,212,173,.35);
}

body[data-view="meteor"] .start-instructions i { background: var(--mb-cream); transform: none; }

body[data-view="meteor"] .hud {
  inset: clamp(10px, 1.8vh, 20px) clamp(18px, 2.7vw, 38px) auto clamp(102px, 10vw, 124px);
  padding: 9px 13px;
  background: rgba(3,16,11,.9);
  border: 1px solid rgba(184,212,173,.42);
  text-shadow: none;
}

body[data-view="meteor"] .hud span { color: rgba(184,212,173,.62); font-weight: 400; letter-spacing: -.015em; }
body[data-view="meteor"] .hud strong { font-family: var(--mb-mono); font-weight: 500; letter-spacing: -.025em; }
body[data-view="meteor"] .wave-block { border-color: rgba(184,212,173,.34); }
body[data-view="meteor"] .shield-pips i { transform: none; border-color: rgba(184,212,173,.5); }
body[data-view="meteor"] .shield-pips i.active { background: var(--mb-cream); border-color: var(--mb-cream); }

body[data-view="meteor"] .game-pause-button {
  color: var(--mb-cream);
  background: var(--mb-bg);
  border-color: rgba(184,212,173,.72);
  font-family: var(--mb-mono);
  font-weight: 400;
  letter-spacing: -.025em;
}

body[data-view="meteor"] :is(.power-chip, .game-message, .combo-badge) {
  color: var(--mb-cream);
  background: rgba(3,16,11,.96);
  border: 1px solid var(--mb-cream);
  border-radius: 0;
  font-family: var(--mb-mono);
  font-weight: 400;
  letter-spacing: -.015em;
  text-shadow: none;
}

body[data-view="meteor"] .combo-badge { transform: translateX(-50%); }
body[data-view="meteor"] .power-chip .queue-count { color: var(--mb-bg); background: var(--mb-cream); border-color: var(--mb-cream); }

body[data-view="meteor"] .game-overlay {
  padding: clamp(18px, 4.5vh, 48px) clamp(18px, 4.5vw, 58px);
  overflow: hidden;
  backdrop-filter: none;
}

body[data-view="meteor"] .mission-card {
  max-height: calc(100svh - clamp(36px, 9vh, 96px));
  color: var(--mb-cream);
  background: var(--mb-bg);
  border: 1px solid var(--mb-cream);
  border-radius: 0;
  box-shadow: none;
  font-family: var(--mb-mono);
}

body[data-view="meteor"] .mission-card .card-index {
  min-height: 28px;
  margin: 0;
  padding: 0 0 11px;
  border-color: rgba(184,212,173,.62);
  color: var(--mb-cream);
  font-size: clamp(7px, 1.05vw, 12px);
  font-weight: 400;
  letter-spacing: -.02em;
}

body[data-view="meteor"] .mission-card .card-index b { color: var(--mb-cream); font-weight: 400; }
body[data-view="meteor"] .mission-card :is(.eyebrow, .level-brief) { color: var(--mb-cream); font-family: var(--mb-mono); font-weight: 400; letter-spacing: -.025em; }

body[data-view="meteor"] .mission-card :is(h1, h2) {
  color: var(--mb-cream);
  font-family: var(--mb-mono);
  font-weight: 500;
  line-height: .97;
  letter-spacing: -.04em;
  text-shadow: none;
}

body[data-view="meteor"] .level-card {
  width: min(68vw, 940px);
  height: min(64vh, 650px);
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 3.4vh, 38px) clamp(20px, 3.4vw, 42px);
  text-align: center;
}

body[data-view="meteor"] .level-card .eyebrow {
  margin: auto 0 clamp(8px, 1.4vh, 14px);
  text-align: center;
  font-size: clamp(8px, 1.2vw, 14px);
  letter-spacing: -.025em;
}

body[data-view="meteor"] .level-card h2 {
  font-size: clamp(78px, 18vh, 190px);
  line-height: .85;
}

body[data-view="meteor"] :is(.level-brief, .level-rules) { display: none !important; }

body[data-view="meteor"] .level-calibration {
  width: min(54%, 440px);
  height: 6px;
  display: none;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  margin: clamp(12px, 2.2vh, 22px) auto 0;
}

body[data-view="meteor"] .level-card.is-level-up .level-calibration { display: grid; }
body[data-view="meteor"] .level-calibration i { border: 1px solid rgba(184,212,173,.72); background: transparent; }
body[data-view="meteor"] .level-card.is-calibrating .level-calibration i { animation: mb-calibration-cell 1.25s steps(1,end) infinite; }
body[data-view="meteor"] .level-card.is-calibrating .level-calibration i:nth-child(2) { animation-delay: .11s; }
body[data-view="meteor"] .level-card.is-calibrating .level-calibration i:nth-child(3) { animation-delay: .22s; }
body[data-view="meteor"] .level-card.is-calibrating .level-calibration i:nth-child(4) { animation-delay: .33s; }
body[data-view="meteor"] .level-card.is-calibrating .level-calibration i:nth-child(5) { animation-delay: .44s; }
body[data-view="meteor"] .level-card.is-calibrating .level-calibration i:nth-child(6) { animation-delay: .55s; }
body[data-view="meteor"] .level-card.is-calibrating .level-calibration i:nth-child(7) { animation-delay: .66s; }
body[data-view="meteor"] .level-card.is-calibrating .level-calibration i:nth-child(8) { animation-delay: .77s; }
body[data-view="meteor"] .level-card.is-level-up:not(.is-calibrating) .level-calibration i { background: var(--mb-cream); }

body[data-view="meteor"] .level-begin-button {
  width: min(54%, 440px);
  min-height: clamp(48px, 8vh, 76px);
  justify-content: center;
  margin: clamp(14px, 2.4vh, 24px) auto 0;
  font-size: clamp(22px, 3.2vw, 42px);
  font-weight: 400;
  letter-spacing: -.04em;
}

body[data-view="meteor"] .level-begin-button span { width: 100%; padding: 10px 18px; text-align: center; }
body[data-view="meteor"] .level-begin-button:disabled { opacity: .46; cursor: wait; }

body[data-view="meteor"] .level-card.is-level-up { animation: mb-sector-card-in .75s steps(8,end) both; }
body[data-view="meteor"] .level-card.is-level-up .card-index { animation: mb-sector-line-in .62s .18s ease-out both; }
body[data-view="meteor"] .level-card.is-level-up .eyebrow { animation: mb-sector-copy-in .5s .42s ease-out both; }
body[data-view="meteor"] .level-card.is-level-up h2 { animation: mb-sector-title-in .72s .25s steps(7,end) both; }
body[data-view="meteor"] .level-card.is-level-up .level-begin-button { animation: mb-sector-button-in .45s 1.12s ease-out both; }

body[data-view="meteor"] :is(.claim-card, .inspect-card) {
  width: min(91vw, 1260px);
  height: min(76vh, 720px);
  padding: 0;
  overflow: hidden;
  text-align: left;
}

body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-layout {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 53% 47%;
  gap: 0;
  align-items: stretch;
}

body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-image-wrap,
body[data-view="meteor"] .claim-image-wrap.cardboard {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-right: 1px solid var(--mb-cream);
  background-color: var(--mb-bg);
  background-image:
    linear-gradient(var(--mb-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--mb-grid-major) 1px, transparent 1px),
    linear-gradient(var(--mb-grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--mb-grid-minor) 1px, transparent 1px);
  background-size: 82px 82px, 82px 82px, 10px 10px, 10px 10px;
}

body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-image-wrap::after { display: none; }
body[data-view="meteor"] :is(.claim-card, .inspect-card) .scan-ring { display: none; }
body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-image-wrap img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  animation: object-float 4.2s ease-in-out infinite;
  filter: drop-shadow(0 15px 18px rgba(0,0,0,.44));
}

body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3.3vh, 38px) clamp(22px, 3vw, 42px);
}

body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-copy .eyebrow {
  margin: clamp(16px, 3vh, 30px) 0 8px;
  color: rgba(184,212,173,.7);
  font-size: clamp(7px, 1vw, 11px);
  text-align: left;
}

body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-copy h2 {
  max-width: 100%;
  font-size: clamp(34px, 5.5vw, 78px);
  overflow-wrap: anywhere;
}

body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-description {
  min-height: 0;
  margin: clamp(14px, 2.8vh, 28px) 0;
  color: var(--mb-cream);
  font-family: var(--mb-mono);
  font-size: clamp(11px, 1.45vw, 18px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.025em;
}

body[data-view="meteor"] :is(.claim-card, .inspect-card) .primary-button {
  width: 100%;
  min-width: 0;
  min-height: clamp(50px, 8vh, 76px);
  justify-content: center;
  margin-top: auto;
  font-size: clamp(18px, 2.5vw, 34px);
}

body[data-view="meteor"] :is(.claim-card, .inspect-card) .primary-button span { width: 100%; padding: 12px 18px; text-align: center; }

body[data-view="meteor"] #pauseCard {
  width: min(52vw, 680px);
  min-height: min(48vh, 430px);
  align-content: center;
  padding: clamp(28px, 6vh, 64px);
  gap: clamp(28px, 6vh, 56px);
}

body[data-view="meteor"] #pauseCard h2 { font-size: clamp(62px, 15vh, 156px); }

body[data-view="meteor"] :is(.gameover-card, .shoebox-card, .results-card) {
  width: min(91vw, 1260px);
  padding: clamp(22px, 3.6vh, 42px) clamp(24px, 3.6vw, 48px);
  background: var(--mb-bg);
}

body[data-view="meteor"] .gameover-card .results-header h2 { font-size: clamp(58px, 13vh, 132px); }
body[data-view="meteor"] :is(.gameover-subhead, .archive-copy, .shoebox-intro) { color: var(--mb-cream); font-family: var(--mb-mono); font-weight: 400; letter-spacing: -.025em; }

body[data-view="meteor"] :is(
  .start-blasting-button,
  .game-pause-button,
  .primary-button,
  .record-button,
  .secondary-button,
  .load-more-button,
  .close-box-button,
  .shoebox-cta
) {
  color: var(--mb-cream);
  background: var(--mb-bg);
  border: 1px solid var(--mb-cream);
  border-radius: 0;
  box-shadow: none;
  font-family: var(--mb-mono);
  font-weight: 400;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

body[data-view="meteor"] :is(
  .start-blasting-button,
  .game-pause-button,
  .primary-button,
  .record-button,
  .secondary-button,
  .load-more-button,
  .close-box-button,
  .shoebox-cta
):is(:hover, :focus-visible) {
  color: var(--mb-cream);
  background: var(--mb-bg);
  border-color: var(--mb-cream);
  box-shadow: inset 0 0 20px rgba(184,212,173,.08), 0 0 18px rgba(184,212,173,.3);
}

body[data-view="meteor"] :is(
  .start-blasting-button,
  .game-pause-button,
  .primary-button,
  .record-button,
  .secondary-button,
  .load-more-button,
  .close-box-button,
  .shoebox-cta
):active {
  transform: translateY(2px);
  box-shadow: inset 0 5px 14px rgba(184,212,173,.2);
}

body[data-view="meteor"] :is(#scoreForm input, .table-wrap, th, td, .session-stats, .session-stats > div, .submission-confirmation) { border-color: rgba(184,212,173,.36); }
body[data-view="meteor"] #scoreForm input { color: var(--mb-cream); background: var(--mb-bg); font-family: var(--mb-mono); }
body[data-view="meteor"] #scoreForm input::placeholder { color: rgba(184,212,173,.32); }
body[data-view="meteor"] th { color: var(--mb-cream); background: var(--mb-bg); }
body[data-view="meteor"] td { color: rgba(184,212,173,.74); }
body[data-view="meteor"] tr.is-current td { color: var(--mb-bg); background: var(--mb-cream); }
body[data-view="meteor"] .section-label > span { color: var(--mb-cream); background: var(--mb-bg); border-color: var(--mb-cream); }

@keyframes mb-calibration-cell {
  0%, 12% { background: var(--mb-cream); }
  13%, 100% { background: transparent; }
}

@keyframes mb-sector-card-in {
  0% { opacity: 0; transform: scaleX(.72); filter: brightness(2); }
  35% { opacity: .7; transform: scaleX(1.025); }
  65% { opacity: .35; transform: scaleX(.99); }
  100% { opacity: 1; transform: scaleX(1); filter: brightness(1); }
}

@keyframes mb-sector-line-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mb-sector-copy-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mb-sector-button-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes mb-sector-title-in {
  0% { opacity: 0; filter: blur(12px); letter-spacing: .22em; }
  55% { opacity: .72; filter: blur(1px); letter-spacing: -.015em; }
  100% { opacity: 1; filter: blur(0); letter-spacing: -.04em; }
}

@media (max-height: 680px) {
  body[data-view="meteor"] .level-card { min-height: 290px; padding-block: 16px; }
  body[data-view="meteor"] .level-begin-button { min-height: 44px; margin-top: 12px; }
  body[data-view="meteor"] :is(.claim-card, .inspect-card) { height: min(78vh, 520px); }
  body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-copy { padding-block: 17px; }
  body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-copy .eyebrow { margin-top: 12px; }
  body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-description { margin-block: 10px; }
}

@media (max-width: 620px) {
  body[data-view="meteor"] .level-card { width: 92vw; height: 64vh; }
  body[data-view="meteor"] .level-begin-button,
  body[data-view="meteor"] .level-calibration { width: 72%; }
  body[data-view="meteor"] :is(.claim-card, .inspect-card) { width: 94vw; height: 82vh; }
  body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-layout { grid-template-columns: 44% 56%; }
  body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-copy { padding: 14px; }
  body[data-view="meteor"] #pauseCard { width: 84vw; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-view="meteor"] .level-card.is-level-up,
  body[data-view="meteor"] .level-card.is-level-up > *,
  body[data-view="meteor"] .level-calibration i { animation: none !important; }
}

/* Meteor Blaster // For Codex Figma frames and burned-CD collection pass. */
body[data-view="meteor"] {
  --mb-bg: #000;
  --mb-cream: #00ff3c;
  --mb-orange: #00ff3c;
  --mb-cyan: #00ff3c;
  --mb-steel: rgba(0, 255, 60, .64);
  --mb-panel: #000;
  --mb-grid-minor: rgba(0, 255, 60, .09);
  --mb-grid-major: rgba(0, 255, 60, .24);
}

body[data-view="meteor"] .coordinate-grid,
body[data-view="meteor"] .game-overlay,
.meteor-boot-screen,
.meteor-start-screen {
  background-color: #000;
  background-image:
    linear-gradient(rgba(0, 8, 3, .1), rgba(0, 8, 3, .1)),
    url("./figma-star-grid.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body[data-view="meteor"] .coordinate-grid { opacity: .48; }

.meteor-boot-screen { padding: clamp(20px, 4vw, 64px); }
.meteor-boot-screen .boot-stars { opacity: .22; }
.meteor-boot-screen .boot-content {
  width: min(1180px, 92vw);
  min-height: min(82vh, 720px);
  align-content: center;
}

body[data-view="meteor"] .boot-kicker {
  margin-bottom: clamp(18px, 3vh, 34px);
  color: var(--mb-cream);
  font-family: "cc-overbyte-off", var(--mb-mono);
  font-size: clamp(18px, 3.4vw, 48px);
  letter-spacing: -.035em;
}

body[data-view="meteor"] .meteor-logo--boot {
  width: min(1240px, 92vw);
  max-height: 56vh;
}

body[data-view="meteor"] .meteor-logo {
  filter: drop-shadow(0 0 12px rgba(0,255,60,.48)) drop-shadow(0 0 32px rgba(0,255,60,.18));
}

body[data-view="meteor"] .meteor-tagline { color: var(--mb-cream); }
body[data-view="meteor"] .boot-loader { width: min(880px, 78vw); }
body[data-view="meteor"] .boot-loader__track {
  height: clamp(20px, 3vh, 34px);
  padding: 4px;
  border-color: var(--mb-cream);
}
body[data-view="meteor"] .boot-loader__track i {
  background-color: var(--mb-cream);
  background-image: repeating-linear-gradient(90deg, transparent 0 46px, #000 46px 51px);
}
body[data-view="meteor"] .boot-loader__ticks { display: none; }

.meteor-start-screen { display: block; padding: 0; }
.meteor-start-screen :is(.start-nebula, .start-meteor-field, .start-topline, .start-footer) { display: none; }
.meteor-start-screen .start-scanlines { z-index: 4; opacity: .42; pointer-events: none; }

body[data-view="meteor"] .start-dashboard {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 83%) minmax(90px, 17%);
  overflow: hidden;
  background: #000;
}

body[data-view="meteor"] .start-blasting-button,
body[data-view="meteor"] .level-begin-button,
body[data-view="meteor"] :is(.claim-card, .inspect-card) .primary-button,
body[data-view="meteor"] #pauseCard .primary-button {
  border-radius: 999px;
  font-family: "cc-overbyte-off", var(--mb-mono);
}

body[data-view="meteor"] .start-blasting-button {
  width: 100%;
  min-width: 0;
  min-height: clamp(46px, 7vh, 68px);
  margin: 0;
}

body[data-view="meteor"] .start-blasting-button span {
  padding: 8px 20px;
  font-family: "cc-overbyte-off", var(--mb-mono);
  font-size: clamp(22px, 3vw, 42px);
}

body[data-view="meteor"] .start-specimen {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--mb-cream);
  background: url("./figma-home-grid.png") center / cover no-repeat #000;
}

body[data-view="meteor"] .start-specimen-frame {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: translateY(5.6%);
}
body[data-view="meteor"] .start-specimen-frame img {
  width: clamp(220px, 26.45vw, 946px);
  max-width: 70%;
  max-height: 82%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.7));
  animation: object-float 6.5s ease-in-out infinite, mb-specimen-rotate 18s linear infinite;
}

body[data-view="meteor"] .start-brand {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(0,255,60,.4);
  background: #000;
}

body[data-view="meteor"] .start-brand .meteor-logo--start {
  width: 94%;
  max-height: 80%;
  object-fit: contain;
  transform: translateY(-18%);
}

body[data-view="meteor"] .start-brand .meteor-tagline {
  display: none;
}

/* Home screen: center the primary action over the live specimen. */
body[data-view="meteor"] .start-specimen .start-blasting-button {
  position: absolute;
  z-index: 3;
  top: 55.6%;
  left: 50%;
  width: clamp(260px, 26.5vw, 947px);
  max-width: 72%;
  min-height: clamp(58px, 7.75vh, 168px);
  margin: 0;
  color: #000;
  border: 2px solid #00ff3c;
  background: #00ff3c;
  box-shadow: 0 0 28px rgba(0,255,60,.48);
  transform: translate(-50%, -50%);
  animation: mb-specimen-start-blink 1.2s steps(1, end) infinite;
}

body[data-view="meteor"] .start-specimen .start-blasting-button span {
  color: inherit !important;
  font-size: clamp(24px, 3vw, 44px);
  white-space: nowrap;
}

body[data-view="meteor"] .start-specimen .start-blasting-button:is(:hover, :focus-visible) {
  animation-play-state: running;
}

body[data-view="meteor"] .start-specimen .start-blasting-button:active {
  transform: translate(-50%, calc(-50% + 2px));
}

@keyframes mb-specimen-start-blink {
  0%, 49% {
    color: #000;
    background: #00ff3c;
    box-shadow: 0 0 30px rgba(0,255,60,.58);
  }
  50%, 100% {
    color: #00ff3c;
    background: #000;
    box-shadow: 0 0 14px rgba(0,255,60,.26);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-view="meteor"] .start-specimen .start-blasting-button {
    color: #00ff3c;
    background: #000;
    animation: none;
  }
}

body[data-view="meteor"] .game-overlay { background-color: rgba(0,0,0,.93); }
body[data-view="meteor"] .mission-card { background: #000; border-color: var(--mb-cream); }

body[data-view="meteor"] .level-card {
  position: relative;
  width: 90.55vw;
  height: 76.15vh;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
}

body[data-view="meteor"] .level-card h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  margin: 0;
  font-size: clamp(74px, 11.57vw, 190px);
  font-weight: 400;
  line-height: .97;
  letter-spacing: -.04em;
  transform: translate(-50%, -50%);
  text-transform: uppercase;
}

body[data-view="meteor"] .level-card .card-index {
  position: absolute;
  top: 5.9%;
  left: 2.8%;
  right: 2.8%;
  width: auto;
  min-height: 0;
  padding-bottom: 10px;
}

body[data-view="meteor"] .level-card .eyebrow {
  position: absolute;
  top: 19.8%;
  left: 0;
  width: 100%;
  margin: 0;
  font-size: clamp(8px, 1.35vw, 15px);
}

body[data-view="meteor"] .level-card .level-begin-button {
  position: absolute;
  bottom: 10.2%;
  left: 50%;
  width: 29.25%;
  min-height: 8vh;
  margin: 0;
  transform: translateX(-50%);
}

body[data-view="meteor"] .level-card .level-begin-button span {
  font-size: clamp(20px, 2.9vw, 42px);
}

body[data-view="meteor"] .shoebox-actions > #shoeboxRestartButton {
  min-height: 45px;
  display: inline-flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0;
  font-size: 10px;
}

body[data-view="meteor"] .shoebox-actions > #shoeboxRestartButton span {
  display: grid;
  flex: 1;
  place-items: center start;
  padding: 14px 17px;
}

body[data-view="meteor"] #shoeboxRestartButton b { display: none; }

body[data-view="meteor"] .level-card .level-calibration { display: none !important; }
body[data-view="meteor"] .level-card.is-calibrating .level-begin-button { opacity: .48; }

body[data-view="meteor"] :is(.claim-card, .inspect-card) .claim-image-wrap,
body[data-view="meteor"] .claim-image-wrap.cardboard { background: url("./figma-star-grid.png") center / cover no-repeat #000; }

body[data-view="meteor"] .cd-series-claim {
  display: flex;
  align-items: center;
  gap: .75em;
  margin: clamp(10px, 1.8vh, 16px) 0 0;
  padding: 0;
  border: 0;
  color: var(--mb-cream);
}

body[data-view="meteor"] .cd-series-claim[hidden] { display: none; }
body[data-view="meteor"] .cd-series-claim strong {
  font-family: var(--mb-mono);
  font-size: clamp(11px, 1.35vw, 18px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}
body[data-view="meteor"] .cd-series-claim span {
  padding: 0;
  font-size: clamp(8px, 1vw, 13px);
  letter-spacing: .04em;
}

body[data-view="meteor"] .claim-card.is-cd-discovery .claim-copy .eyebrow { margin-top: 10px; }

body[data-view="meteor"] .cd-bonus-summary,
body[data-view="meteor"] .cd-complete-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(12px, 2vh, 20px);
  padding: clamp(12px, 2vh, 20px);
  color: var(--mb-cream);
  border: 1px solid var(--mb-cream);
  background: #000;
}

body[data-view="meteor"] :is(.cd-bonus-summary, .cd-complete-note)[hidden] { display: none; }
body[data-view="meteor"] .cd-bonus-summary strong { font-size: clamp(22px, 3vw, 40px); font-weight: 500; }
body[data-view="meteor"] .cd-complete-note div { display: grid; gap: 5px; }
body[data-view="meteor"] .cd-complete-note strong { font-size: clamp(10px, 1.4vw, 17px); }
body[data-view="meteor"] .cd-complete-note {
  position: relative;
  z-index: 4;
  margin: clamp(10px, 1.6vh, 16px) 0 clamp(12px, 2vh, 20px);
  color: #000;
  border-color: #00ff3c;
  background: #00ff3c;
  animation: cd-complete-blink .86s steps(1, end) infinite;
}
body[data-view="meteor"] .cd-complete-note span { color: inherit; opacity: .72; }
body[data-view="meteor"] .cd-complete-note a {
  flex: 0 0 auto;
  padding: 12px 17px;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: "cc-overbyte-off", var(--mb-mono);
  font-size: clamp(12px, 1.5vw, 19px);
  text-decoration: none;
}

body[data-view="meteor"] .cd-complete-note a:hover,
body[data-view="meteor"] .cd-complete-note a:focus-visible { box-shadow: 0 0 18px rgba(0,255,60,.48); outline: 0; }

@keyframes cd-complete-blink {
  0%, 49% { color: #000; background: #00ff3c; box-shadow: 0 0 34px rgba(0,255,60,.72); }
  50%, 100% { color: #00ff3c; background: #000; box-shadow: inset 0 0 0 2px #00ff3c, 0 0 14px rgba(0,255,60,.46); }
}

@media (prefers-reduced-motion: reduce) {
  body[data-view="meteor"] .cd-complete-note { animation: none; box-shadow: 0 0 34px rgba(0,255,60,.72); }
}

@media (max-height: 680px) {
  body[data-view="meteor"] .start-dashboard { grid-template-rows: minmax(0, 83%) minmax(72px, 17%); }
}

/* Meteor Blaster: translucent live-play messages and the unified burned-CD wallet. */
body[data-view="meteor"] .game-overlay {
  background-color: rgba(0, 0, 0, .58);
  background-image: none;
}
body[data-view="meteor"] .mission-card { background: rgba(0, 0, 0, .84); }
body[data-view="meteor"] :is(.game-message, .game-message.level, .game-message.power, .game-message.hit) {
  background: rgba(0, 12, 7, .68);
  backdrop-filter: blur(2px);
}
body[data-view="meteor"] .shoebox-object.is-cd-wallet img { transform: scale(1.1); }
body[data-view="meteor"] .cd-wallet-inspection {
  position: relative;
  z-index: 2;
  width: 96%;
  aspect-ratio: 1;
}
body[data-view="meteor"] .cd-wallet-inspection[hidden] { display: none; }
body[data-view="meteor"] .cd-wallet-base {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  animation: none !important;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.52)) !important;
}
body[data-view="meteor"] .cd-wallet-slots { position: absolute; inset: 0; z-index: 3; }
body[data-view="meteor"] .cd-wallet-slot {
  position: absolute;
  width: 25.5%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(185,217,177,.35);
  border-radius: 50%;
  background: rgba(0,0,0,.18);
  transform: translate(-50%, -50%);
}
body[data-view="meteor"] .cd-wallet-slot:nth-child(odd) { left: 28.5%; }
body[data-view="meteor"] .cd-wallet-slot:nth-child(even) { left: 71.5%; }
body[data-view="meteor"] .cd-wallet-slot:nth-child(-n+2) { top: 24%; }
body[data-view="meteor"] .cd-wallet-slot:nth-child(n+3):nth-child(-n+4) { top: 50%; }
body[data-view="meteor"] .cd-wallet-slot:nth-child(n+5) { top: 76%; }
body[data-view="meteor"] .cd-wallet-slot img {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  animation: none !important;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.32)) !important;
}
body[data-view="meteor"] .cd-wallet-slot.is-empty { display: grid; place-items: center; color: rgba(185,217,177,.58); border-style: dashed; }
body[data-view="meteor"] .cd-wallet-slot.is-empty span { font-size: clamp(16px, 3vw, 34px); }

/* Celestial Art Studio: full-frame paint workspace with a collapsible left toolbox. */
body[data-view="studio"] { overflow: hidden; }
body[data-view="studio"] .arcade-page {
  width: 100%;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: transparent;
}
body[data-view="studio"] .coordinate-grid { opacity: .2; }
body[data-view="studio"] .studio-view {
  width: 100%;
  height: 100svh;
  min-height: 0;
  display: grid;
  grid-template-rows: 38px 50px minmax(0, 1fr);
  gap: 0;
  padding: 7px;
}
body[data-view="studio"] .creative-header {
  min-height: 0;
  padding: 0 7px 6px;
}
body[data-view="studio"] .studio-heading {
  min-height: 0;
  align-items: center;
  padding: 4px 7px 6px;
}
body[data-view="studio"] .studio-heading .eyebrow,
body[data-view="studio"] .studio-heading > p { display: none; }
body[data-view="studio"] .studio-heading h1 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}
body[data-view="studio"] .studio-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: clamp(210px, 18vw, 270px) minmax(0, 1fr);
  gap: 7px;
  transition: grid-template-columns .18s ease;
}
body[data-view="studio"] .studio-view.is-tools-collapsed .studio-layout { grid-template-columns: 54px minmax(0, 1fr); }
body[data-view="studio"] .studio-toolbar {
  min-width: 0;
  max-height: none;
  overflow: hidden;
  padding: 7px;
}
body[data-view="studio"] .studio-toolbar-toggle {
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 7px;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.48);
  background: #000;
  cursor: pointer;
  font-size: 7px;
  letter-spacing: .12em;
}
body[data-view="studio"] .studio-toolbar-toggle b { font-weight: 400; }
body[data-view="studio"] .toolbar-section + .toolbar-section { margin-top: 7px; padding-top: 7px; }
body[data-view="studio"] .toolbar-label { margin-bottom: 5px; }
body[data-view="studio"] .brush-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
body[data-view="studio"] .brush-button { min-height: clamp(50px, 8.5vh, 66px); padding: 4px 2px; }
body[data-view="studio"] .brush-icon { width: 23px; height: 21px; }
body[data-view="studio"] .palette-grid { gap: 4px; }
body[data-view="studio"] .palette-button { min-height: 28px; padding: 4px; }
body[data-view="studio"] .studio-settings label { margin-bottom: 4px; }
body[data-view="studio"] #brushSize { margin: 4px 0 9px; }
body[data-view="studio"] .tool-toggle { min-height: 30px; }
body[data-view="studio"] .studio-actions { gap: 4px; margin-top: 7px; }
body[data-view="studio"] .studio-actions button { min-height: 30px; padding: 5px; }
body[data-view="studio"] .studio-stage {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 24px minmax(0, 1fr);
  order: initial;
}
body[data-view="studio"] .studio-canvas-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
}
body[data-view="studio"] .studio-stage .stage-note { display: none; }
body[data-view="studio"] .studio-view.is-tools-collapsed .studio-toolbar { padding: 5px; }
body[data-view="studio"] .studio-view.is-tools-collapsed .studio-toolbar-toggle { justify-content: center; }
body[data-view="studio"] .studio-view.is-tools-collapsed .studio-toolbar-toggle span,
body[data-view="studio"] .studio-view.is-tools-collapsed .toolbar-label,
body[data-view="studio"] .studio-view.is-tools-collapsed .brush-button span,
body[data-view="studio"] .studio-view.is-tools-collapsed .brush-button small,
body[data-view="studio"] .studio-view.is-tools-collapsed .palette-section,
body[data-view="studio"] .studio-view.is-tools-collapsed .studio-settings,
body[data-view="studio"] .studio-view.is-tools-collapsed .studio-actions { display: none; }
body[data-view="studio"] .studio-view.is-tools-collapsed .brush-grid { grid-template-columns: 1fr; }
body[data-view="studio"] .studio-view.is-tools-collapsed .brush-button { min-height: 43px; padding: 3px; }
.swirl-icon { border: 2px solid currentColor; border-left-color: transparent; border-radius: 50%; transform: scale(.72); }
.swirl-icon::before,
.swirl-icon::after { content: ""; position: absolute; border: 2px solid currentColor; border-left-color: transparent; border-radius: 50%; }
.swirl-icon::before { inset: 4px; }
.swirl-icon::after { inset: 9px; }

@media (max-height: 650px) {
  body[data-view="studio"] .studio-view { grid-template-rows: 34px 40px minmax(0, 1fr); padding: 5px; }
  body[data-view="studio"] .brush-button { min-height: 45px; }
  body[data-view="studio"] .palette-button { min-height: 24px; }
  body[data-view="studio"] .tool-toggle,
  body[data-view="studio"] .studio-actions button { min-height: 26px; }
}

@media (max-width: 700px) {
  body[data-view="studio"] .studio-view { grid-template-rows: 38px 42px minmax(0, 1fr); }
  body[data-view="studio"] .studio-heading h1 { font-size: 20px; }
  body[data-view="studio"] .creative-identity { display: none; }
  body[data-view="studio"] .creative-header { grid-template-columns: 1fr 1fr; }
  body[data-view="studio"] .studio-layout { grid-template-columns: 54px minmax(0, 1fr); }
  body[data-view="studio"] .studio-toolbar { padding: 5px; }
  body[data-view="studio"] .studio-toolbar-toggle { justify-content: center; }
  body[data-view="studio"] .studio-toolbar-toggle span,
  body[data-view="studio"] .toolbar-label,
  body[data-view="studio"] .brush-button span,
  body[data-view="studio"] .brush-button small,
  body[data-view="studio"] .palette-section,
  body[data-view="studio"] .studio-settings,
  body[data-view="studio"] .studio-actions { display: none; }
  body[data-view="studio"] .brush-grid { grid-template-columns: 1fr; }
  body[data-view="studio"] .brush-button { min-height: 40px; }
}

/* Celestial Art Studio: floating retro paint windows on a checkerboard desktop. */
body[data-view="studio"] {
  --paint-blue: #075db6;
  --paint-paper: #f5eddd;
  --paint-ink: #073e7d;
  color: var(--paint-ink);
  background:
    linear-gradient(var(--paint-blue) 1.5px, transparent 1.5px) 0 0 / 30px 30px,
    linear-gradient(90deg, var(--paint-blue) 1.5px, transparent 1.5px) 0 0 / 30px 30px,
    #fff;
}
body[data-view="studio"] .coordinate-grid { display: none; }
body[data-view="studio"] .studio-view {
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(8px, 1.25svh, 12px);
  height: 100dvh;
  padding: clamp(8px, 1.4svh, 14px) clamp(10px, 2vw, 24px) clamp(18px, 3svh, 28px);
  font-family: var(--mono);
}
body[data-view="studio"] .creative-header {
  min-height: 42px;
  padding: 5px 9px;
  color: var(--paint-ink);
  border: 3px solid var(--paint-blue);
  background: var(--paint-paper);
  box-shadow: 7px 7px 0 rgb(0 0 0 / 45%);
}
body[data-view="studio"] .creative-header .icon-button {
  min-height: 26px;
  color: #fff;
  border: 0;
  background: var(--paint-blue);
}
body[data-view="studio"] .creative-identity span,
body[data-view="studio"] .creative-identity b,
body[data-view="studio"] .creative-readout { color: var(--paint-ink); }
body[data-view="studio"] .creative-readout i { background: var(--paint-blue); box-shadow: none; }
body[data-view="studio"] .studio-heading { display: none; }
body[data-view="studio"] .studio-layout {
  grid-template-columns: 136px minmax(0, 1fr);
  gap: clamp(12px, 2vw, 24px);
  min-height: 0;
  transition: grid-template-columns .18s ease;
}
body[data-view="studio"] .studio-view.is-tools-collapsed .studio-layout { grid-template-columns: 48px minmax(0, 1fr); }
body[data-view="studio"] .studio-toolbar {
  position: relative;
  z-index: 8;
  min-width: 0;
  max-height: none;
  overflow: visible;
  padding: 6px;
  color: var(--paint-ink);
  border: 3px solid var(--paint-blue);
  background: var(--paint-paper);
  box-shadow: 8px 8px 0 rgb(0 0 0 / 45%);
}
body[data-view="studio"] .studio-toolbar-toggle {
  min-height: 30px;
  color: #fff;
  border: 0;
  background: var(--paint-blue);
  font-size: 8px;
}
body[data-view="studio"] .toolbar-section + .toolbar-section { margin-top: 7px; padding-top: 7px; border-top: 2px solid var(--paint-blue); }
body[data-view="studio"] .toolbar-label { margin-bottom: 5px; color: var(--paint-ink); font-size: 6px; }
body[data-view="studio"] .brush-grid { grid-template-columns: repeat(2, 1fr); gap: 3px; }
body[data-view="studio"] .brush-button,
body[data-view="studio"] .palette-button,
body[data-view="studio"] .tool-toggle,
body[data-view="studio"] .studio-actions button {
  position: relative;
  color: var(--paint-blue);
  border: 2px solid var(--paint-blue);
  border-radius: 0;
  background: var(--paint-paper);
  box-shadow: none;
}
body[data-view="studio"] .brush-button {
  min-height: clamp(32px, 6.4svh, 43px);
  aspect-ratio: auto;
  padding: 3px;
}
body[data-view="studio"] .brush-button:hover,
body[data-view="studio"] .brush-button:focus-visible,
body[data-view="studio"] .brush-button.is-active,
body[data-view="studio"] .palette-button:hover,
body[data-view="studio"] .palette-button:focus-visible,
body[data-view="studio"] .palette-button.is-active,
body[data-view="studio"] .tool-toggle:hover,
body[data-view="studio"] .tool-toggle:focus-visible,
body[data-view="studio"] .tool-toggle.is-active,
body[data-view="studio"] .studio-actions button:hover,
body[data-view="studio"] .studio-actions button:focus-visible {
  color: #fff;
  border-color: var(--paint-blue);
  background: var(--paint-blue);
  outline: 2px solid #fff;
  outline-offset: -4px;
}
body[data-view="studio"] .brush-button span,
body[data-view="studio"] .brush-button small,
body[data-view="studio"] .palette-button span,
body[data-view="studio"] .tool-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body[data-view="studio"] .brush-icon { width: clamp(20px, 3.5svh, 25px); height: clamp(20px, 3.5svh, 25px); color: currentColor; filter: none; }
body[data-view="studio"] .nebula-icon { border: 2px solid currentColor; border-radius: 48% 52% 42% 58%; background: none; }
body[data-view="studio"] .nebula-icon::before,
body[data-view="studio"] .nebula-icon::after { position: absolute; content: ""; border: 2px solid currentColor; border-radius: 50%; background: var(--paint-paper); }
body[data-view="studio"] .nebula-icon::before { width: 12px; height: 12px; left: -4px; top: 8px; }
body[data-view="studio"] .nebula-icon::after { width: 10px; height: 10px; right: -4px; top: 3px; }
body[data-view="studio"] .brush-button:hover .nebula-icon::before,
body[data-view="studio"] .brush-button:hover .nebula-icon::after,
body[data-view="studio"] .brush-button.is-active .nebula-icon::before,
body[data-view="studio"] .brush-button.is-active .nebula-icon::after { background: var(--paint-blue); }
body[data-view="studio"] .stardust-icon { background: radial-gradient(circle, currentColor 0 2px, transparent 2.5px) 0 0 / 9px 9px; }
body[data-view="studio"] .comet-icon::before { height: 2px; box-shadow: none; }
body[data-view="studio"] .comet-icon::after { width: 7px; height: 7px; border-radius: 0; transform: rotate(45deg); background: currentColor; }
body[data-view="studio"] .orbit-icon { border-width: 2px; }
body[data-view="studio"] .supernova-icon { background: linear-gradient(90deg, transparent 44%, currentColor 45% 55%, transparent 56%), linear-gradient(transparent 44%, currentColor 45% 55%, transparent 56%); }
body[data-view="studio"] .supernova-icon::after { box-shadow: none; }
body[data-view="studio"] .pulsar-icon { border: 2px solid currentColor; box-shadow: inset 0 0 0 6px var(--paint-paper), inset 0 0 0 8px currentColor; }
body[data-view="studio"] .brush-button:hover .pulsar-icon,
body[data-view="studio"] .brush-button.is-active .pulsar-icon { box-shadow: inset 0 0 0 6px var(--paint-blue), inset 0 0 0 8px currentColor; }
body[data-view="studio"] .swirl-icon,
body[data-view="studio"] .swirl-icon::before,
body[data-view="studio"] .swirl-icon::after { border-width: 2px; }
body[data-view="studio"] .palette-grid { grid-template-columns: repeat(2, 1fr); gap: 3px; }
body[data-view="studio"] .palette-button { min-height: clamp(24px, 4.5svh, 31px); justify-content: center; padding: 3px; }
body[data-view="studio"] .palette-button i { width: 34px; height: 18px; border: 1px solid currentColor; }
body[data-view="studio"] .studio-settings { display: grid; grid-template-columns: 1fr; gap: 4px; }
body[data-view="studio"] .studio-settings label,
body[data-view="studio"] #brushSize { grid-column: 1 / -1; color: var(--paint-ink); }
body[data-view="studio"] #brushSize { accent-color: var(--paint-blue); }
body[data-view="studio"] .tool-toggle { min-height: clamp(28px, 4.8svh, 34px); justify-content: center; padding: 3px; }
body[data-view="studio"] .tool-toggle::before { color: currentColor; font-size: 20px; line-height: 1; }
body[data-view="studio"] .tool-toggle b { position: absolute; right: 3px; bottom: 2px; color: currentColor; font-size: 5px; }
body[data-view="studio"] .studio-actions { grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 7px; }
body[data-view="studio"] .studio-actions button { min-height: clamp(26px, 4.4svh, 31px); padding: 2px; font-size: 18px; }
body[data-view="studio"] .brush-button::after,
body[data-view="studio"] .palette-button::after,
body[data-view="studio"] .tool-toggle::after,
body[data-view="studio"] .studio-actions button::after {
  position: absolute;
  z-index: 30;
  left: calc(100% + 8px);
  top: 50%;
  width: max-content;
  max-width: 150px;
  padding: 5px 7px;
  content: attr(data-label);
  color: #fff;
  border: 2px solid #fff;
  background: #050505;
  box-shadow: 3px 3px 0 var(--paint-blue);
  font-size: 7px;
  letter-spacing: .08em;
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, -50%);
  transition: opacity .1s linear, transform .1s linear;
  white-space: nowrap;
}
body[data-view="studio"] .brush-button:hover::after,
body[data-view="studio"] .brush-button:focus-visible::after,
body[data-view="studio"] .palette-button:hover::after,
body[data-view="studio"] .palette-button:focus-visible::after,
body[data-view="studio"] .tool-toggle:hover::after,
body[data-view="studio"] .tool-toggle:focus-visible::after,
body[data-view="studio"] .studio-actions button:hover::after,
body[data-view="studio"] .studio-actions button:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
body[data-view="studio"] .studio-stage {
  min-width: 0;
  min-height: 0;
  grid-template-rows: 36px minmax(0, 1fr);
  overflow: hidden;
  border: 3px solid var(--paint-blue);
  background: var(--paint-paper);
  box-shadow: 10px 10px 0 rgb(0 0 0 / 45%);
}
body[data-view="studio"] .stage-label {
  min-height: 36px;
  padding: 0 10px;
  color: #fff;
  background: var(--paint-blue);
  font-size: 8px;
}
body[data-view="studio"] .studio-canvas-shell {
  width: auto;
  height: auto;
  min-height: 0;
  margin: 8px;
  border: 3px solid var(--paint-blue);
  background: #000;
  box-shadow: none;
}
body[data-view="studio"] .canvas-corners { display: none; }
body[data-view="studio"] .studio-view.is-tools-collapsed .studio-toolbar { padding: 5px; }
body[data-view="studio"] .studio-view.is-tools-collapsed .brush-grid { grid-template-columns: 1fr; }
body[data-view="studio"] .studio-view.is-tools-collapsed .brush-button { min-height: 34px; aspect-ratio: 1; padding: 2px; }
body[data-view="studio"] .studio-view.is-tools-collapsed .brush-icon { width: 21px; height: 21px; }

@media (max-width: 700px) {
  body[data-view="studio"] .studio-view { grid-template-rows: minmax(0, 1fr); padding: 7px 7px 16px; }
  body[data-view="studio"] .creative-header { box-shadow: 4px 4px 0 rgb(0 0 0 / 45%); }
  body[data-view="studio"] .studio-layout { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; }
  body[data-view="studio"] .studio-toolbar { padding: 5px; box-shadow: 5px 5px 0 rgb(0 0 0 / 45%); }
  body[data-view="studio"] .studio-stage { box-shadow: 5px 5px 0 rgb(0 0 0 / 45%); }
  body[data-view="studio"] .studio-toolbar-toggle { justify-content: center; }
  body[data-view="studio"] .studio-toolbar-toggle span,
  body[data-view="studio"] .toolbar-label,
  body[data-view="studio"] .palette-section,
  body[data-view="studio"] .studio-settings,
  body[data-view="studio"] .studio-actions { display: none; }
  body[data-view="studio"] .brush-grid { grid-template-columns: 1fr; }
  body[data-view="studio"] .brush-button { min-height: 34px; aspect-ratio: 1; }
  body[data-view="studio"] .brush-icon { width: 21px; height: 21px; }
}

/* Meteor Blaster game-over sequence from the GPTV / For Codex frames. */
body[data-view="meteor"] .gameover-card {
  position: relative;
  width: min(91vw, 1450px);
  height: min(76svh, 820px);
  max-height: none;
  padding: 0;
  overflow: hidden;
  color: #00ff3c;
  border: 1px solid #00ff3c;
  border-radius: 0;
  background: #000;
  box-shadow: 0 0 32px rgba(0, 255, 60, .1);
  font-family: var(--mb-mono);
  text-align: center;
}

body[data-view="meteor"] .gameover-telemetry {
  position: relative;
  z-index: 2;
  min-height: 11%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 3.9%;
  padding: 0 .2%;
  border-bottom: 1px solid #00ff3c;
  font-size: clamp(9px, 1.35vw, 20px);
  font-weight: 400;
  letter-spacing: .08em;
}

body[data-view="meteor"] .gameover-step {
  position: absolute;
  inset: 11% 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #00ff3c;
}

body[data-view="meteor"] .gameover-step[hidden] { display: none; }

body[data-view="meteor"] .gameover-intro,
body[data-view="meteor"] .gameover-calculating,
body[data-view="meteor"] .gameover-results {
  justify-content: center;
  padding: 0 3.5% 10%;
}

body[data-view="meteor"] .gameover-intro h2 {
  position: static;
  margin: 0;
  color: #00ff3c;
  font-family: var(--mb-mono);
  font-size: clamp(58px, 9.42vw, 142px);
  font-weight: 400;
  letter-spacing: -.085em;
  line-height: .82;
  transform: none;
}

body[data-view="meteor"] .gameover-intro p {
  position: static;
  margin: clamp(7px, 1.2vh, 12px) 0 0;
  color: #00ff3c;
  font-size: clamp(11px, 1.4vw, 22px);
  font-weight: 400;
  letter-spacing: .015em;
}

body[data-view="meteor"] .gameover-intro .gameover-pill {
  position: absolute;
  top: auto;
  bottom: 7.5%;
  margin-top: 0;
  transform: none;
}

body[data-view="meteor"] .gameover-pill {
  min-width: clamp(180px, 20vw, 308px);
  min-height: clamp(42px, 6.2vh, 67px);
  display: inline-grid;
  place-items: center;
  margin-top: clamp(24px, 5vh, 50px);
  padding: 10px 28px;
  color: #00ff3c;
  border: 1px solid #00ff3c;
  border-radius: 999px;
  background: #000;
  box-shadow: none;
  cursor: pointer;
  font-family: "cc-overbyte-off", var(--mb-mono);
  font-size: clamp(14px, 1.7vw, 26px);
  font-weight: 400;
  letter-spacing: .08em;
  text-align: center;
}

body[data-view="meteor"] .gameover-pill:hover,
body[data-view="meteor"] .gameover-pill:focus-visible {
  color: #000;
  background: #00ff3c;
  box-shadow: 0 0 24px rgba(0, 255, 60, .42);
  outline: 0;
}

body[data-view="meteor"] .gameover-calculating { justify-content: center; }
body[data-view="meteor"] .gameover-calculating p,
body[data-view="meteor"] .gameover-results-title {
  position: static;
  margin: 0;
  color: #00ff3c;
  font-family: var(--mb-mono);
  font-size: clamp(11px, 1.35vw, 20px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1;
  transform: none;
}

body[data-view="meteor"] .gameover-calculating strong {
  position: static;
  margin-top: clamp(16px, 2.8vh, 28px);
  color: #00ff3c;
  font-size: clamp(24px, 2.93vw, 44px);
  font-weight: 400;
  letter-spacing: -.045em;
  transform: none;
}

body[data-view="meteor"] .gameover-results { justify-content: center; padding-top: 0; }

body[data-view="meteor"] .gameover-total {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body[data-view="meteor"] .gameover-score-list {
  position: static;
  width: min(64%, 920px);
  display: grid;
  margin: clamp(18px, 3vh, 30px) 0 0;
}

body[data-view="meteor"] .gameover-score-list > div {
  min-height: clamp(38px, 6.3vh, 66px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(13px, 2vw, 30px);
  color: #00ff3c;
  background: #000;
  font-size: clamp(19px, 2.93vw, 44px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1;
  text-align: left;
}

body[data-view="meteor"] .gameover-score-list > div strong { font: inherit; text-align: right; }
body[data-view="meteor"] .gameover-score-list .cd-bonus-summary { margin: 0; border: 0; }
body[data-view="meteor"] .gameover-score-list .cd-bonus-summary[hidden] { display: none; }

body[data-view="meteor"] .gameover-card.has-cd-bonus .cd-bonus-summary {
  animation: cd-bonus-row-blink .86s steps(1, end) infinite;
}

body[data-view="meteor"] .gameover-score-list .cd-bonus-summary > :is(span, strong) {
  color: inherit !important;
}

body[data-view="meteor"] .gameover-results .shoebox-cta {
  position: absolute;
  top: auto;
  bottom: 7.5%;
  width: auto;
  min-width: clamp(215px, 24vw, 360px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  color: #00ff3c;
  border: 1px solid #00ff3c;
  border-radius: 999px;
  background: #000;
  clip-path: none;
  box-shadow: none;
  padding-inline: 0;
  text-align: center;
}

body[data-view="meteor"] .gameover-results .shoebox-cta > span {
  width: auto;
  display: block;
  flex: 0 1 auto;
  margin: 0;
  padding: 0;
  text-align: center;
}

body[data-view="meteor"] #openShoeboxButton {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-inline: 28px !important;
  text-align: center !important;
}

body[data-view="meteor"] #openShoeboxButton > span { width: auto !important; text-align: center !important; }
body[data-view="meteor"] #openShoeboxButton > b[hidden] { display: none !important; }

body[data-view="meteor"] .gameover-results .shoebox-cta:hover,
body[data-view="meteor"] .gameover-results .shoebox-cta:focus-visible { color: #000; border-color: #00ff3c; background: #00ff3c; }

@keyframes cd-bonus-row-blink {
  0%, 49% { color: #00ff3c; background: #000; }
  50%, 100% { color: #000; background: #00ff3c; }
}

/* The completed CD set becomes the dominant redemption moment over the shoebox. */
body[data-view="meteor"] .shoebox-card {
  position: relative;
  width: min(91vw, 1450px);
  height: max(76svh, min(820px, 58vw));
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid #00ff3c;
  background: #000;
}

body[data-view="meteor"] .game-overlay[data-phase="shoebox"] {
  place-items: start center;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: clamp(48px, 8vh, 96px);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
body[data-view="meteor"] .shoebox-card .shoebox-telemetry {
  display: none;
}
body[data-view="meteor"] .shoebox-card .shoebox-heading {
  position: absolute;
  z-index: 4;
  top: 5.5%;
  left: 2.8%;
  justify-content: flex-start;
  margin: 0;
}
body[data-view="meteor"] .shoebox-card .shoebox-heading h2 { font-family: var(--mb-mono); font-size: clamp(28px, 3.79vw, 57px); font-weight: 400; letter-spacing: -.04em; }
body[data-view="meteor"] .shoebox-card .shoebox-heading :is(.eyebrow, .close-box-button),
body[data-view="meteor"] .shoebox-card .shoebox-intro { display: none; }
body[data-view="meteor"] .shoebox-card .literal-shoebox {
  position: absolute;
  top: 22.2%;
  left: 50%;
  width: 71%;
  transform: translateX(-50%);
}
body[data-view="meteor"] .shoebox-card .shoebox-actions {
  position: absolute;
  z-index: 40;
  right: 3.9%;
  bottom: 2.6%;
  left: 3.9%;
  justify-items: center;
  margin: 0;
}

body[data-view="meteor"] .shoebox-card .shoebox-object:is(:hover, :focus-visible, :active) {
  color: inherit !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0;
}
body[data-view="meteor"] .cd-complete-note {
  position: absolute;
  z-index: 60;
  top: 27%;
  left: 50%;
  width: min(58%, 760px);
  height: 58%;
  min-height: 0;
  display: grid;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  grid-template-rows: clamp(28px, 3.9vh, 42px) minmax(0, 1fr);
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #00ff3c;
  border: 1px solid #00ff3c;
  background: #000;
  box-shadow: 0 0 50px rgba(0, 0, 0, .82), 0 0 24px rgba(0, 255, 60, .18);
  animation: none;
  transform: translateX(-50%);
}

body[data-view="meteor"] .cd-complete-note[hidden] { display: none; }
body[data-view="meteor"] .cd-complete-note.is-revealing {
  animation: cd-complete-pop .78s cubic-bezier(.2, .9, .25, 1.2) both;
}

@keyframes cd-complete-pop {
  0% { opacity: 0; transform: translate(-50%, 22px) scale(.72) rotate(-2deg); }
  52% { opacity: 1; transform: translate(-50%, -7px) scale(1.045) rotate(.55deg); }
  72% { transform: translate(-50%, 3px) scale(.98) rotate(-.2deg); }
  100% { opacity: 1; transform: translateX(-50%) scale(1) rotate(0); }
}
body[data-view="meteor"] .cd-complete-note .cd-complete-marquee {
  min-width: 0;
  display: block;
  overflow: hidden;
  padding: 0 clamp(45px, 6vw, 80px) 0 0;
  color: #000;
  background: #00ff3c;
  white-space: nowrap;
}

body[data-view="meteor"] .cd-complete-note .cd-complete-ticker {
  height: 100%;
  width: max-content;
  display: flex;
  align-items: stretch;
  gap: 0;
  white-space: nowrap;
  animation: cd-congrats-ticker 9s linear infinite;
  will-change: transform;
}

body[data-view="meteor"] .cd-complete-ticker span {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 100%;
  color: #000 !important;
  font-size: clamp(13px, 1.68vw, 25px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: clamp(28px, 3.9vh, 42px);
  opacity: 1;
}

body[data-view="meteor"] .cd-complete-ticker b {
  min-width: clamp(108px, 10.8vw, 176px);
  display: block;
  color: #000 !important;
  font-weight: 400;
  text-align: center;
}

@keyframes cd-congrats-ticker { to { transform: translateX(-50%); } }

body[data-view="meteor"] .cd-complete-close {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: clamp(28px, 3.9vh, 42px);
  height: clamp(28px, 3.9vh, 42px);
  display: grid;
  place-items: center;
  padding: 0;
  color: #00ff3c;
  border: 0;
  border-left: 1px solid #000;
  background: #000;
  cursor: pointer;
  font-family: var(--mb-mono);
  font-size: 0;
  font-weight: 300;
  line-height: 1;
}

body[data-view="meteor"] .cd-complete-close::before,
body[data-view="meteor"] .cd-complete-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58%;
  height: clamp(2px, .24vh, 3px);
  border-radius: 999px;
  background: currentColor;
  content: "";
}

body[data-view="meteor"] .cd-complete-close::before { transform: translate(-50%, -50%) rotate(45deg); }
body[data-view="meteor"] .cd-complete-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

body[data-view="meteor"] .cd-complete-close:hover,
body[data-view="meteor"] .cd-complete-close:focus-visible { color: #000; background: #00ff3c; outline: 2px solid #00ff3c; outline-offset: -3px; }

body[data-view="meteor"] .cd-complete-note .cd-complete-body {
  position: relative;
  min-height: 0;
  display: block;
  padding: clamp(20px, 4vh, 44px);
  color: #00ff3c;
  background: #000;
  text-align: center;
}

body[data-view="meteor"] .cd-complete-note .cd-complete-body strong {
  position: absolute;
  top: 35%;
  left: 50%;
  width: 100%;
  color: #00ff3c;
  font-family: var(--mb-mono);
  font-size: clamp(29px, 3.79vw, 57px);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .98;
  margin: 0;
  transform: translate(-50%, -50%);
}

body[data-view="meteor"] .cd-complete-note .cd-complete-body p {
  position: absolute;
  top: 62%;
  left: 50%;
  width: min(84%, 39em);
  margin: 0;
  color: #00ff3c;
  font-size: clamp(9px, 1.05vw, 15px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.45;
  transform: translate(-50%, -50%);
}

body[data-view="meteor"] .cd-complete-note .cd-complete-body a {
  position: absolute;
  z-index: 2;
  top: 88%;
  left: 50%;
  min-width: clamp(190px, 23vw, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: clamp(10px, 1.6vh, 16px) 22px;
  color: #00ff3c;
  border: 1px solid #00ff3c;
  border-radius: 999px;
  background: #000;
  font-size: clamp(14px, 1.7vw, 25px);
  letter-spacing: .04em;
  animation: mb-specimen-start-blink 1.2s steps(1, end) infinite;
  transform: translate(-50%, -50%);
}

body[data-view="meteor"] .cd-complete-note .cd-complete-body a span { color: inherit !important; opacity: 1; }
body[data-view="meteor"] .cd-complete-note .cd-complete-body a:hover,
body[data-view="meteor"] .cd-complete-note .cd-complete-body a:focus-visible { color: #000 !important; background: #00ff3c; box-shadow: 0 0 22px rgba(0, 255, 60, .4); }

body[data-view="meteor"] .gameover-card :is(h2, p, span, b, strong, output, button),
body[data-view="meteor"] .cd-complete-note :is(p, span, b, strong, button, a) { font-weight: 400; }

/* Show the real collected discs in the CD-wallet object before it is opened. */
body[data-view="meteor"] .shoebox-cd-wallet-preview {
  position: relative;
  width: 100%;
  height: clamp(48px, 7.6vw, 82px);
}

body[data-view="meteor"] .shoebox-cd-wallet-preview .cd-wallet-base { inset: 0 !important; }
body[data-view="meteor"] .shoebox-cd-wallet-preview .cd-wallet-slots { inset: 0; }
body[data-view="meteor"] .shoebox-cd-wallet-preview .cd-wallet-slot {
  width: 23%;
  border: 0;
  background: transparent;
}
body[data-view="meteor"] .shoebox-cd-wallet-preview .cd-wallet-slot.is-empty { border: 0; background: transparent; }
body[data-view="meteor"] .shoebox-cd-wallet-preview .cd-wallet-slot img { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .42)) !important; }

/* Every NEW DISCOVERY folio uses the same full-strength phosphor rule. */
body[data-view="meteor"] .mission-card .card-index,
body[data-view="meteor"] .gameover-telemetry {
  border-bottom-color: #00ff3c !important;
}

@media (max-height: 700px) {
  body[data-view="meteor"] .gameover-results { padding-top: 0; }
  body[data-view="meteor"] .gameover-score-list { margin-top: 0; }
  body[data-view="meteor"] .gameover-score-list > div { min-height: clamp(31px, 5.5vh, 46px); }
  body[data-view="meteor"] .gameover-results .shoebox-cta { min-height: 40px; margin-top: 0; }
  body[data-view="meteor"] :is(.gameover-intro, .gameover-calculating, .gameover-results) { padding-bottom: 12%; }
  body[data-view="meteor"] :is(.gameover-intro .gameover-pill, .gameover-results .shoebox-cta) { bottom: 5.5%; }
  body[data-view="meteor"] .cd-complete-note { top: 27%; height: 58%; min-height: 0; }
}

@media (max-width: 700px) {
  body[data-view="meteor"] .gameover-card { width: 94vw; height: min(82svh, 760px); }
  body[data-view="meteor"] .gameover-telemetry { margin-inline: 4.5%; }
  body[data-view="meteor"] .gameover-intro p { padding-inline: 18px; }
  body[data-view="meteor"] :is(.gameover-intro, .gameover-calculating, .gameover-results) { padding-bottom: 18%; }
  body[data-view="meteor"] :is(.gameover-intro .gameover-pill, .gameover-results .shoebox-cta) { bottom: 6%; }
  body[data-view="meteor"] .gameover-score-list { width: 84%; }
  body[data-view="meteor"] .cd-complete-note { width: 84%; height: clamp(260px, 44vh, 390px); min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-view="meteor"] .gameover-card.has-cd-bonus .cd-bonus-summary { color: #000; background: #00ff3c; animation: none; }
  body[data-view="meteor"] .cd-complete-ticker { animation: none; }
  body[data-view="meteor"] .cd-complete-note.is-revealing { animation: none; }
}

/* Final alignment and lidless shoebox pass. */
body[data-view="meteor"] .gameover-intro p {
  margin-top: clamp(22px, 3.6vh, 40px);
}

body[data-view="meteor"] #pauseCard #resumeButton,
body[data-view="meteor"] .shoebox-actions > #shoeboxRestartButton {
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
}

body[data-view="meteor"] #pauseCard #resumeButton > span,
body[data-view="meteor"] .shoebox-actions > #shoeboxRestartButton > span {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 14px 22px;
  text-align: center;
}

body[data-view="meteor"] .shoebox-card {
  width: min(91vw, 1450px);
  height: min(91svh, 980px);
  max-height: 91svh;
}

body[data-view="meteor"] .game-overlay[data-phase="shoebox"] {
  place-items: center;
  padding-block: clamp(8px, 2vh, 20px);
}

body[data-view="meteor"] .literal-shoebox {
  aspect-ratio: 3 / 2;
  background-image: url("./shoebox-lidless.png");
}

body[data-view="meteor"] .shoebox-items {
  inset: 13% 10% 12% 10%;
  gap: clamp(3px, .5vw, 8px);
  padding: clamp(5px, .7vw, 10px);
}

body[data-view="meteor"] .shoebox-object { min-height: clamp(58px, 8.8vw, 112px); }
body[data-view="meteor"] .shoebox-object img { height: clamp(58px, 8.2vw, 106px); }
body[data-view="meteor"] .shoebox-cd-wallet-preview { height: clamp(58px, 8.2vw, 106px); }

body[data-view="meteor"] .shoebox-card .literal-shoebox {
  top: 24%;
  width: auto;
  height: 60%;
  max-width: 86%;
}

body[data-view="meteor"] .shoebox-actions > #shoeboxRestartButton {
  width: auto;
  max-width: 100%;
  justify-self: center;
  min-width: clamp(190px, 23vw, 320px);
  min-height: 0;
  padding: clamp(10px, 1.6vh, 16px) 22px;
  color: #000;
  border: 1px solid #00ff3c;
  border-radius: 999px;
  background: #00ff3c;
  box-shadow: 0 0 28px rgba(0,255,60,.48);
  font-family: "cc-overbyte-off", var(--mb-mono);
  font-size: clamp(14px, 1.7vw, 25px);
  cursor: pointer;
  animation: none;
}

body[data-view="meteor"] .shoebox-actions > #shoeboxRestartButton > span {
  width: auto;
  color: inherit !important;
  font-family: "cc-overbyte-off", var(--mb-mono);
  font-size: inherit;
  padding: 0;
  white-space: nowrap;
}

body[data-view="meteor"] .shoebox-actions > #shoeboxRestartButton:active {
  transform: translateY(2px);
}

/* Keep both final shoebox actions aligned along the bottom edge. */
body[data-view="meteor"] .shoebox-card .shoebox-actions {
  width: min(92%, 660px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 20px);
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

body[data-view="meteor"] .shoebox-actions > :is(#shoeboxRestartButton, #shoeboxCdButton) {
  width: 100%;
  min-width: 0;
}

body[data-view="meteor"] .shoebox-actions > #shoeboxCdButton {
  min-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.6vh, 16px) 22px;
  color: #00ff3c;
  border: 1px solid #00ff3c;
  border-radius: 999px;
  background: #000;
  cursor: pointer;
  font-family: "cc-overbyte-off", var(--mb-mono);
  font-size: clamp(14px, 1.7vw, 25px);
  text-align: center;
  animation: mb-specimen-start-blink 1.2s steps(1, end) infinite;
}

body[data-view="meteor"] .shoebox-actions > #shoeboxCdButton > span {
  color: inherit !important;
  font: inherit;
  white-space: nowrap;
}

body[data-view="meteor"] .shoebox-actions > #shoeboxCdButton:focus-visible {
  outline: 2px solid #00ff3c;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  body[data-view="meteor"] :is(.cd-complete-note .cd-complete-body a, .shoebox-actions > #shoeboxCdButton) {
    color: #000;
    background: #00ff3c;
    animation: none;
  }
}

@media (max-width: 700px) {
  body[data-view="meteor"] .shoebox-card .literal-shoebox {
    top: 27%;
    width: 88%;
    height: auto;
  }

  body[data-view="meteor"] .shoebox-items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body[data-view="meteor"] .shoebox-object,
  body[data-view="meteor"] .shoebox-object img,
  body[data-view="meteor"] .shoebox-cd-wallet-preview { min-height: 48px; height: 48px; }

  body[data-view="meteor"] .shoebox-card .shoebox-actions { width: 92%; gap: 8px; }
  body[data-view="meteor"] .shoebox-actions > :is(#shoeboxRestartButton, #shoeboxCdButton) { padding-inline: 10px; }
}

/* Meteor Blaster: keep major sequence titles consistently tracked at 5%. */
body[data-view="meteor"] :is(
  .level-card h2,
  .gameover-intro h2,
  .claim-card .claim-copy h2,
  .inspect-card .claim-copy h2,
  .shoebox-card .shoebox-heading h2,
  .cd-complete-note .cd-complete-body strong,
  #pauseCard h2
) {
  letter-spacing: .05em;
}
