:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-muted: #f2f4f6;
  --ink: #191f28;
  --ink-strong: #0b1b36;
  --secondary: #3f4a59;
  --muted: #4f5966;
  --line: #e5e8eb;
  --line-strong: #d5dadd;
  --sell: #2367d1;
  --sell-soft: #edf4ff;
  --buy: #d93632;
  --buy-soft: #fff1f0;
  --positive: #d93632;
  --negative: #2166c5;
  --yellow: #f6c344;
  --focus: #0064ff;
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-dock: 0 -12px 36px rgb(18 35 61 / 8%);
  --shadow-modal: 0 24px 72px rgb(18 35 61 / 22%);
  --page-x: 16px;
  --font:
    Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #e7ebf1;
}

body {
  color: var(--ink);
  font-family: var(--font);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

.desktop-stage {
  width: 100%;
  height: 100%;
}

.desktop-panel {
  display: none;
}

button,
canvas {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible {
  outline: 2px solid #0b57d0;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff;
}

.game-shell {
  position: relative;
  display: grid;
  grid-template-rows: 62px auto auto minmax(0, 1fr) auto;
  width: min(100%, 430px);
  height: 100dvh;
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

.game-shell:focus {
  outline: none;
}

.game-shell:focus-visible {
  outline: none;
}

.game-shell::after {
  position: absolute;
  z-index: 27;
  top: 62px;
  right: 0;
  bottom: calc(146px + env(safe-area-inset-bottom));
  left: 0;
  border: 2px solid rgb(217 155 0 / 0%);
  content: "";
  opacity: 0;
  pointer-events: none;
}

.game-shell.is-event-imminent::after {
  animation: event-warning 350ms ease-out both;
}

.topbar {
  position: relative;
  z-index: 12;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: max(5px, env(safe-area-inset-top)) var(--page-x) 6px;
  border-bottom: 1px solid var(--line);
  background: rgb(246 247 249 / 94%);
  backdrop-filter: blur(18px);
}

.wordmark,
.quiet-button {
  min-width: 44px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.wordmark {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 3px;
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.wordmark-dot {
  width: 5px;
  height: 5px;
  margin-top: -13px;
  border-radius: 999px;
  background: var(--focus);
}

.timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 108px;
  height: 46px;
  padding: 4px 12px 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-variant-numeric: tabular-nums;
}

.timer-label {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 750;
  line-height: 1;
}

.timer strong {
  color: var(--ink-strong);
  font-size: 23px;
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0.015em;
}

.time-track {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  overflow: hidden;
  background: #dfe4ea;
}

.time-track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0 999px 999px 0;
  background: var(--focus);
  transform-origin: left center;
  transition:
    width 120ms linear,
    background-color 180ms ease;
}

.timer.is-urgent ~ .time-track span {
  background: var(--buy);
}

.timer.is-urgent {
  border-color: rgb(237 77 73 / 30%);
  background: var(--buy-soft);
}

.timer.is-urgent strong {
  color: var(--buy);
}

.timer.is-final {
  animation: final-countdown 900ms ease-in-out infinite;
}

.game-shell.is-final .trade-dock {
  border-top-color: rgb(237 77 73 / 38%);
}

.quiet-button {
  justify-self: end;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 750;
  border-radius: 10px;
}

.quiet-button:disabled {
  color: #c4c9ce;
  cursor: default;
}

.asset-summary {
  padding: 9px var(--page-x) 8px;
  background: var(--bg);
}

.asset-heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}

.coin-avatar {
  width: 42px;
  height: 42px;
  border: 1px solid #e8c666;
  border-radius: 50%;
  object-fit: cover;
  background: #f7e8aa;
  box-shadow: 0 2px 7px rgb(96 70 0 / 7%);
}

.eyebrow,
.metric-label,
.section-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.018em;
}

.asset-heading h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 20px;
  font-weight: 780;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.asset-heading h1 span {
  margin-left: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.market-state {
  align-self: center;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--secondary);
  font-size: 10.5px;
  font-weight: 750;
  white-space: nowrap;
}

.market-state.is-live::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 5px 1px 0;
  border-radius: 50%;
  background: var(--buy);
  content: "";
  animation: live-pulse 1.3s ease-in-out infinite;
}

.quote-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 7px;
}

.live-price {
  min-width: 142px;
  margin: 1px 0 0;
  color: var(--ink-strong);
  font-size: clamp(32px, 8.5vw, 37px);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.055em;
}

.price-change {
  margin: 0 1px 2px 0;
  padding: 6px 9px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.is-positive {
  color: var(--positive) !important;
}

.is-negative {
  color: var(--negative) !important;
}

.is-flat {
  color: var(--secondary) !important;
}

.price-change.is-positive {
  background: transparent;
}

.price-change.is-negative {
  background: transparent;
}

.live-price.flash-up {
  animation: price-up 360ms ease-out;
}

.live-price.flash-down {
  animation: price-down 360ms ease-out;
}

.mission-hud {
  margin-top: 9px;
  padding: 8px 10px 9px;
  border: 1px solid #dce6f5;
  border-radius: 12px;
  background: #f7faff;
  transition:
    border-color 240ms ease,
    background-color 240ms ease;
}

.mission-hud-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #48617e;
  font-size: 11.5px;
  font-weight: 680;
  line-height: 1.2;
}

.mission-hud-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-hud-copy b {
  color: var(--focus);
  font-weight: 820;
}

.mission-hud-copy strong {
  flex: none;
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.mission-progress {
  height: 4px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8f5;
}

.mission-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0064ff, #4b8cff);
  transition: width 240ms ease;
}

.mission-hud.is-cleared {
  border-color: #e8cf72;
  background: #fffaf0;
}

.mission-hud.is-cleared .mission-hud-copy b,
.mission-hud.is-cleared .mission-hud-copy strong {
  color: #8a6500;
}

.mission-hud.is-cleared .mission-progress {
  background: #f1e6bc;
}

.mission-hud.is-cleared .mission-progress span {
  background: linear-gradient(90deg, #d99b00, #f2c94c);
}

.mission-hud.is-level-up {
  animation: mission-level-up 430ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.meme-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 60%) 40%;
  min-height: 76px;
  margin: 0 var(--page-x) 8px;
  overflow: hidden;
  border: 1px solid #f0ded2;
  border-radius: var(--radius-md);
  background: #fff9f5;
  contain: paint;
  transition:
    opacity 140ms ease,
    transform 180ms ease;
}

.meme-card.is-changing {
  animation: event-arrive 420ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.game-shell.is-cut-in .meme-card {
  opacity: 0.08;
  transform: scale(0.985);
}

.meme-copy {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8px 0 8px 11px;
}

.meme-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #9a6b54;
  font-size: 10.5px;
  font-weight: 750;
}

.parody-badge {
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--buy);
  color: #fff;
  letter-spacing: -0.025em;
}

.meme-headline {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--ink-strong);
  font-size: 13px;
  font-weight: 790;
  line-height: 1.25;
  letter-spacing: -0.038em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.meme-source {
  margin: 3px 0 0;
  overflow: hidden;
  color: #725e54;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meme-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  pointer-events: none;
  user-select: none;
}

.meme-card[data-tone="up"] {
  border-color: #f2cbc9;
  background: #fff6f5;
}

.meme-card[data-tone="down"] {
  border-color: #cfdff4;
  background: #f5f9ff;
}

.meme-card[data-tone="fake"] {
  border-color: #dacdf3;
  background: #faf7ff;
}

.meme-card[data-tone="final"] {
  border-color: #ead381;
  background: #fffaf0;
}

.meme-card[data-tone="down"] .parody-badge {
  background: var(--sell);
}

.meme-card[data-tone="fake"] .parody-badge {
  background: #6f3cc3;
}

.meme-card[data-tone="final"] .parody-badge {
  background: #9a7000;
}

.chart-section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  margin: 0 var(--page-x);
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--surface);
}

.chart-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px 12px 8px;
}

.chart-toolbar h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.chart-legend {
  display: flex;
  gap: 9px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend-line {
  width: 11px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink-strong);
}

.legend-bar {
  width: 3px;
  height: 8px;
  border-radius: 1px;
  background: #c5ccd6;
  box-shadow:
    4px 2px 0 #c5ccd6,
    8px -1px 0 #c5ccd6;
}

.chart-stage {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-top: 1px solid #f2f4f6;
}

#marketCanvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.chart-empty::before {
  position: absolute;
  width: 68%;
  height: 1px;
  background: var(--line);
  content: "";
}

.chart-empty span {
  z-index: 1;
  padding: 4px 8px;
  background: var(--surface);
}

.chart-empty.is-hidden {
  opacity: 0;
}

.position-line {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 0.8fr;
  min-height: 48px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.position-line > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 7px 10px;
}

.position-line > div + div {
  border-left: 1px solid var(--line);
}

.position-line strong {
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-dock {
  z-index: 10;
  display: grid;
  gap: 8px;
  padding: 10px var(--page-x) max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgb(255 255 255 / 97%);
  box-shadow: var(--shadow-dock);
  backdrop-filter: blur(22px);
}

.secondary-orders,
.primary-orders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.order-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition:
    transform 100ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease;
}

.order-button:active:not(:disabled) {
  transform: scale(0.975);
}

.order-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.2);
  opacity: 0.48;
}

.order-button span {
  font-weight: 800;
  letter-spacing: -0.035em;
}

.order-button small {
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 600;
  opacity: 1;
}

.order-button.primary small {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
}

.order-button.primary.buy small {
  color: #7d1715;
}

.order-button.primary.sell small {
  color: #123865;
}

.order-button.secondary {
  min-height: 45px;
  border: 1px solid currentColor;
  background: #fff;
  font-size: 14px;
}

.order-button.primary {
  min-height: 62px;
  border: 0;
  color: #fff;
  font-size: 19px;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 3%);
}

.order-button.is-executed {
  animation: order-confirm 380ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

.order-button.secondary.sell {
  color: var(--sell);
}

.order-button.secondary.buy {
  color: var(--buy);
}

.order-button.primary.sell {
  background: var(--sell);
}

.order-button.primary.buy {
  background: var(--buy);
}

.trade-feedback {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(220px + env(safe-area-inset-bottom));
  max-width: calc(100% - 32px);
  padding: 9px 13px;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 999px;
  background: rgb(25 31 40 / 92%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 10px 28px rgb(25 31 40 / 22%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
}

.trade-feedback.is-visible {
  animation: feedback-pop 1.8s ease both;
}

.event-cut-in {
  --cut-in-accent: #d93632;
  --cut-in-ink: #7f201e;
  --cut-in-wash: rgb(217 54 50 / 6%);
  position: absolute;
  z-index: 28;
  top: 62px;
  right: 0;
  bottom: calc(146px + env(safe-area-inset-bottom));
  left: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.event-cut-in[data-tone="down"] {
  --cut-in-accent: #2367d1;
  --cut-in-ink: #123d7f;
  --cut-in-wash: rgb(35 103 209 / 6%);
}

.event-cut-in[data-tone="fake"] {
  --cut-in-accent: #743fc2;
  --cut-in-ink: #4c2681;
  --cut-in-wash: rgb(116 63 194 / 7%);
}

.event-cut-in[data-tone="final"] {
  --cut-in-accent: #d99b00;
  --cut-in-ink: #594000;
  --cut-in-wash: rgb(246 195 68 / 8%);
}

.event-cut-in.is-active {
  visibility: visible;
  animation: cut-in-shell 980ms ease both;
}

.event-cut-in[data-intensity="mini"].is-active {
  animation-duration: 620ms;
}

.cut-in-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 0 19%, var(--cut-in-wash) 19% 76%, transparent 76%),
    repeating-linear-gradient(
      -12deg,
      transparent 0 14px,
      rgb(255 255 255 / 10%) 14px 16px
    );
}

.cut-in-band {
  position: absolute;
  top: 27%;
  right: -4%;
  left: -4%;
  min-height: 152px;
  overflow: hidden;
  border-top: 3px solid var(--cut-in-accent);
  border-bottom: 3px solid var(--cut-in-accent);
  background:
    linear-gradient(90deg, rgb(255 255 255 / 99%) 0 58%, rgb(255 255 255 / 91%) 68%, transparent),
    var(--cut-in-wash);
  box-shadow: 0 18px 50px rgb(17 31 52 / 24%);
  transform: translateY(-50%) skewY(-2deg);
}

.cut-in-band::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 42%, var(--cut-in-wash) 42% 46%, transparent 46%);
  content: "";
}

.cut-in-copy {
  position: relative;
  z-index: 3;
  width: 59%;
  padding: 19px 4px 19px 25px;
  transform: skewY(2deg);
}

.cut-in-kicker {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--cut-in-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.event-cut-in[data-tone="final"] .cut-in-kicker {
  color: #1f1600;
}

.cut-in-copy > strong {
  display: block;
  margin-top: 8px;
  color: var(--cut-in-ink);
  font-size: 13px;
  font-weight: 850;
}

.cut-in-copy p {
  display: -webkit-box;
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--ink-strong);
  font-size: clamp(21px, 6vw, 26px);
  font-weight: 860;
  line-height: 1.08;
  letter-spacing: -0.055em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cut-in-band img {
  position: absolute;
  z-index: 2;
  top: -17%;
  right: 4%;
  width: 44%;
  height: 134%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(1.05) contrast(1.02);
  transform: skewY(2deg);
}

.cut-in-beat {
  position: absolute;
  z-index: 4;
  right: 24px;
  bottom: 7px;
  left: 24px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(25 31 40 / 14%);
  transform: skewY(2deg);
}

.cut-in-beat span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--cut-in-accent);
  transform-origin: left center;
  animation: cut-in-beat 980ms linear both;
}

.event-cut-in[data-intensity="mini"] .cut-in-band {
  min-height: 124px;
}

.event-cut-in[data-intensity="mini"] .cut-in-copy {
  padding-top: 12px;
  padding-bottom: 12px;
}

.event-cut-in[data-intensity="mini"] .cut-in-copy p {
  font-size: 18.5px;
}

.event-cut-in[data-intensity="mini"] .cut-in-band img {
  top: -26%;
  width: 40%;
  height: 152%;
}

.event-cut-in[data-intensity="mini"] .cut-in-beat span {
  animation-duration: 620ms;
}

.event-cut-in.is-glitch-revealed .cut-in-kicker {
  animation: glitch-pop 260ms cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.event-cut-in.is-active .cut-in-band {
  animation: cut-in-band 980ms cubic-bezier(0.2, 0.8, 0.24, 1) both;
}

.event-cut-in[data-intensity="mini"].is-active .cut-in-band {
  animation-duration: 620ms;
}

.event-cut-in.is-active .cut-in-copy {
  animation: cut-in-copy 900ms cubic-bezier(0.18, 0.86, 0.24, 1) both;
}

.event-cut-in.is-active .cut-in-band img {
  animation: cut-in-character 900ms cubic-bezier(0.18, 0.86, 0.24, 1) both;
}

.event-cut-in[data-intensity="mini"].is-active .cut-in-copy,
.event-cut-in[data-intensity="mini"].is-active .cut-in-band img {
  animation-duration: 620ms;
}

.launch-layer {
  position: absolute;
  z-index: 34;
  inset: 62px 0 calc(146px + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  background: rgb(246 247 249 / 68%);
  backdrop-filter: blur(3px);
  pointer-events: none;
}

.launch-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 230px;
  padding: 22px 28px;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 24px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 24px 60px rgb(18 35 61 / 20%);
  text-align: center;
}

.launch-card > span {
  color: var(--focus);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.launch-card > strong {
  margin-top: 5px;
  color: var(--ink-strong);
  font-size: 58px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.06em;
}

.launch-card > p {
  margin: 8px 0 0;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 760;
}

.launch-layer.is-stepping .launch-card {
  animation: launch-step 680ms cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.intro-layer,
.pause-layer,
.rules-layer,
.result-layer {
  position: absolute;
  z-index: 40;
  inset: 0;
}

.intro-layer {
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.intro-layer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.intro-scrim {
  position: absolute;
  inset: 0;
  background: rgb(11 27 54 / 38%);
  backdrop-filter: blur(7px);
}

.intro-card,
.result-card {
  position: relative;
  width: 100%;
  padding: 20px 20px max(16px, env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: var(--surface);
  box-shadow: var(--shadow-modal);
  animation: sheet-in 560ms cubic-bezier(0.18, 0.9, 0.25, 1) both;
}

.intro-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 750;
}

.intro-brand > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.intro-brand em {
  color: var(--muted);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 750;
}

.intro-brand img {
  width: 32px;
  height: 32px;
  border: 1px solid #e0b239;
  border-radius: 50%;
  object-fit: cover;
}

.intro-overline,
.modal-kicker {
  margin: 0 0 7px;
  color: var(--focus);
  font-size: 12px;
  font-weight: 800;
}

.intro-card h2,
.result-card h2,
.modal-card h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(30px, 8.5vw, 38px);
  font-weight: 820;
  line-height: 1.12;
  letter-spacing: -0.065em;
}

.intro-card h2 {
  font-size: clamp(34px, 9.4vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.07em;
}

.result-card h2 {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.intro-card h2 strong {
  font: inherit;
}

.intro-card h2 strong {
  color: var(--focus);
}

.result-copy,
.modal-card p {
  margin: 11px 0 0;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.58;
  letter-spacing: -0.022em;
}

.intro-goal {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 9px;
  margin: 18px 0 12px;
  padding: 13px 14px;
  border: 1px solid #dce6f5;
  border-radius: 16px;
  background: #f7faff;
  font-variant-numeric: tabular-nums;
}

.intro-goal span,
.intro-goal strong {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--secondary);
  font-size: clamp(15px, 4.2vw, 18px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.intro-goal strong {
  color: var(--focus);
  text-align: right;
}

.intro-goal small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0;
}

.intro-goal i {
  color: #8b95a1;
  font-size: 18px;
  font-style: normal;
  font-weight: 760;
}

.intro-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 9px;
}

.intro-actions > div {
  display: flex;
  min-width: 0;
  min-height: 68px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 15px;
}

.intro-actions span {
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.intro-actions small {
  color: var(--secondary);
  font-size: 11px;
  font-weight: 680;
}

.intro-actions .is-buy {
  border-color: #f1c4c2;
  background: var(--buy-soft);
  color: var(--buy);
}

.intro-actions .is-sell {
  border-color: #bfd3f1;
  background: var(--sell-soft);
  color: var(--sell);
}

.intro-signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #eadba4;
  border-radius: 13px;
  background: #fffaf0;
  color: #6d5816;
}

.intro-signal b {
  flex: none;
  color: #765900;
  font-size: 12px;
  font-weight: 850;
}

.intro-signal span {
  color: #5f5440;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.intro-random {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px 2px 14px;
  color: var(--secondary);
  line-height: 1.25;
}

.intro-random b {
  flex: none;
  padding: 4px 7px;
  border-radius: 7px;
  background: #edf4ff;
  color: #315d9b;
  font-size: 10.5px;
  font-weight: 820;
  white-space: nowrap;
}

.intro-random span {
  min-width: 0;
  color: var(--secondary);
  font-size: 10.5px;
  font-weight: 650;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.rule-grid div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 11px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.rule-grid strong {
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 800;
}

.rule-grid span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.start-button,
.share-button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.035em;
  transition:
    transform 100ms ease,
    opacity 160ms ease;
}

.start-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--focus);
  color: #fff;
}

.start-button small {
  margin-top: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgb(255 255 255 / 96%);
  color: #123d7f;
  font-size: 11px;
  font-weight: 720;
  opacity: 1;
}

.start-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.share-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.start-button:active,
.share-button:active {
  transform: scale(0.985);
}

.legal-note {
  margin: 11px 2px 0 !important;
  color: var(--muted) !important;
  font-size: 10.5px !important;
  font-weight: 560 !important;
  line-height: 1.45 !important;
  text-align: center;
}

.pause-layer,
.rules-layer {
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(11 27 54 / 42%);
  backdrop-filter: blur(8px);
}

.modal-card {
  width: 100%;
  padding: 25px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-modal);
}

.modal-card.compact h2 {
  font-size: 26px;
}

.modal-card .start-button {
  margin-top: 22px;
}

.rules-card h2 {
  font-size: 28px;
}

.rules-list {
  display: grid;
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--line);
}

.rules-list p {
  margin: 0;
  padding: 11px 12px;
  background: #fbfcfd;
  color: var(--secondary);
  font-size: 12.5px;
  line-height: 1.45;
}

.rules-list b {
  color: var(--ink-strong);
  font-weight: 820;
}

.result-layer {
  display: grid;
  align-items: end;
  background: rgb(11 27 54 / 36%);
  backdrop-filter: blur(7px);
}

.result-card {
  max-height: calc(100dvh - 18px);
  overflow: hidden;
}

.result-hero {
  position: relative;
  min-height: 96px;
  margin: -8px 0 14px;
  overflow: hidden;
  border: 1px solid #f0ded2;
  border-radius: var(--radius-md);
  background: #fff9f5;
}

.result-layer[data-outcome="moon"] .result-hero {
  background: #fff8dc;
  border-color: #eedc9b;
}

.result-layer[data-outcome="steady"] .result-hero {
  background: #fff9f5;
}

.result-layer[data-outcome="crash"] .result-hero {
  background: #f2f6fc;
  border-color: #dce6f2;
}

.result-hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 58%;
  padding: 13px 0 0 13px;
}

.result-hero-copy > span {
  color: #5d493f;
  font-size: 10.5px;
  font-weight: 700;
}

.result-layer[data-mission="success"] .result-hero-copy > span {
  color: #145d39;
}

.result-layer[data-mission="failure"] .result-hero-copy > span {
  color: #842825;
}

.result-hero .result-rank {
  display: inline-flex;
  margin-top: 5px;
}

.result-hero img {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 auto;
  width: 56%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

#resultSparkline {
  position: absolute;
  z-index: 2;
  bottom: 7px;
  left: 12px;
  width: 43%;
  height: 34px;
}

.result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
}

.result-rank {
  padding: 6px 9px;
  border-radius: 999px;
  background: #fff4ce;
  color: #7d5b00;
  font-weight: 800;
}

.result-copy {
  min-height: 40px;
}

.result-assets {
  display: flex;
  flex-direction: column;
  margin: 14px 0 10px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfcfd;
}

.result-assets span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.result-assets strong {
  margin-top: 4px;
  color: var(--ink-strong);
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
}

.result-assets em {
  margin-top: 3px;
  color: var(--secondary);
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
}

.result-assets p {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--secondary);
  font-size: 11.5px;
  font-weight: 760;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 7px;
  text-align: center;
}

.result-stats div + div {
  border-left: 1px solid var(--line);
}

.result-stats span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
}

.result-stats strong {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
}

.result-actions {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 8px;
}

.share-status {
  margin: 9px 2px 0;
  color: #31577f;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.4;
  text-align: center;
}

.share-status:empty {
  display: none;
}

.share-button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}

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

[hidden] {
  display: none !important;
}

@keyframes live-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes event-warning {
  0% {
    border-color: rgb(217 155 0 / 0%);
    box-shadow: inset 0 0 0 rgb(217 155 0 / 0%);
    opacity: 0;
  }
  42% {
    border-color: rgb(217 155 0 / 58%);
    box-shadow: inset 0 0 34px rgb(246 195 68 / 13%);
    opacity: 1;
  }
  100% {
    border-color: rgb(217 155 0 / 0%);
    box-shadow: inset 0 0 0 rgb(217 155 0 / 0%);
    opacity: 0;
  }
}

@keyframes mission-level-up {
  0% {
    box-shadow: 0 0 0 0 rgb(0 100 255 / 0%);
    transform: scale(1);
  }
  38% {
    box-shadow: 0 0 0 5px rgb(0 100 255 / 10%);
    transform: scale(1.018);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(0 100 255 / 0%);
    transform: scale(1);
  }
}

@keyframes glitch-pop {
  0% {
    filter: saturate(0.3);
    transform: translateX(0);
  }
  35% {
    filter: saturate(1.5);
    transform: translateX(-4px);
  }
  68% {
    transform: translateX(3px);
  }
  100% {
    filter: saturate(1);
    transform: translateX(0);
  }
}

@keyframes price-up {
  0% {
    opacity: 0.64;
    transform: translateY(1px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes price-down {
  0% {
    opacity: 0.64;
    transform: translateY(-1px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes final-countdown {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
}

@keyframes order-confirm {
  0% {
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 15%);
    transform: scale(1);
  }
  38% {
    box-shadow: inset 0 0 0 3px rgb(255 255 255 / 70%);
    transform: scale(0.972);
  }
  100% {
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 15%);
    transform: scale(1);
  }
}

@keyframes event-arrive {
  0% {
    opacity: 0.55;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cut-in-shell {
  0% {
    opacity: 0;
  }
  9%,
  82% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes cut-in-band {
  0% {
    transform: translate(108%, -50%) skewY(-2deg);
  }
  18%,
  78% {
    transform: translate(0, -50%) skewY(-2deg);
  }
  100% {
    transform: translate(-108%, -50%) skewY(-2deg);
  }
}

@keyframes cut-in-copy {
  0%,
  14% {
    opacity: 0;
    transform: translateX(-28px) skewY(2deg);
  }
  28%,
  82% {
    opacity: 1;
    transform: translateX(0) skewY(2deg);
  }
  100% {
    opacity: 0;
    transform: translateX(-12px) skewY(2deg);
  }
}

@keyframes cut-in-character {
  0%,
  10% {
    opacity: 0;
    transform: translateX(48px) scale(0.94) skewY(2deg);
  }
  27%,
  82% {
    opacity: 1;
    transform: translateX(0) scale(1.03) skewY(2deg);
  }
  100% {
    opacity: 0;
    transform: translateX(22px) scale(1) skewY(2deg);
  }
}

@keyframes cut-in-beat {
  0% {
    transform: scaleX(0);
  }
  16% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
    transform-origin: right center;
  }
}

@keyframes launch-step {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  18%,
  76% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-5px) scale(0.99);
  }
}

@keyframes feedback-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, 7px) scale(0.96);
  }
  12%,
  72% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -4px) scale(0.98);
  }
}

@keyframes sheet-in {
  0% {
    opacity: 0;
    transform: translateY(36px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 540px) {
  body {
    display: grid;
    place-items: center;
    padding: 18px;
  }

  .desktop-stage {
    display: grid;
    place-items: center;
  }

  .game-shell {
    height: min(932px, calc(100dvh - 36px));
    border: 1px solid #dce1e7;
    border-radius: 30px;
    box-shadow: 0 32px 90px rgb(20 36 58 / 18%);
  }

  .intro-card,
  .result-card {
    border-radius: 28px 28px 30px 30px;
  }
}

@media (min-width: 1024px) {
  body {
    background:
      radial-gradient(circle at 14% 18%, rgb(0 100 255 / 7%), transparent 28%),
      radial-gradient(circle at 88% 82%, rgb(246 195 68 / 11%), transparent 25%),
      #e7ebf1;
  }

  .desktop-stage {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 430px minmax(220px, 1fr);
    gap: 28px;
    width: min(1180px, 100%);
    height: min(932px, calc(100dvh - 36px));
    align-items: stretch;
    place-items: stretch;
  }

  .game-shell {
    width: 430px;
    height: 100%;
    margin: 0;
  }

  .desktop-panel {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 68%);
    border-radius: 30px;
    box-shadow: 0 28px 80px rgb(20 36 58 / 12%);
    transition:
      opacity 220ms ease,
      filter 220ms ease,
      transform 220ms ease;
  }

  .desktop-stage[data-game-state="intro"] .desktop-panel {
    filter: blur(2px);
    opacity: 0.38;
    transform: scale(0.99);
  }

  .desktop-mission {
    flex-direction: column;
    padding: 28px;
    background: #0d1d37;
    color: #fff;
    isolation: isolate;
  }

  .desktop-brand {
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
  }

  .desktop-brand img {
    border: 1px solid #d6b34f;
    border-radius: 50%;
  }

  .desktop-brand div {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .desktop-brand span {
    color: #9db0ca;
    font-size: 10px;
    font-weight: 700;
  }

  .desktop-brand strong {
    color: #fff;
    font-size: 15px;
    font-weight: 820;
  }

  .desktop-mission-copy {
    z-index: 2;
    margin-top: 70px;
  }

  .desktop-mission-copy > p {
    margin: 0 0 10px;
    color: #69a0ff;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.12em;
  }

  .desktop-mission-copy h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 2.55vw, 39px);
    font-weight: 830;
    line-height: 1.12;
    letter-spacing: -0.065em;
  }

  .desktop-mission-copy > span {
    display: block;
    max-width: 260px;
    margin-top: 16px;
    color: #b9c6d8;
    font-size: 13px;
    font-weight: 580;
    line-height: 1.6;
  }

  .desktop-goal-card {
    z-index: 3;
    margin-top: 30px;
    padding: 17px;
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 18px;
    background: rgb(255 255 255 / 8%);
    backdrop-filter: blur(12px);
  }

  .desktop-goal-card > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .desktop-goal-card span,
  .desktop-goal-card em {
    color: #aebdd0;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 700;
  }

  .desktop-goal-card strong {
    color: #fff;
    font-size: 22px;
    font-weight: 820;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
  }

  .desktop-goal-card em {
    display: block;
    margin-top: 10px;
    color: #fff;
  }

  .desktop-goal-track {
    height: 5px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgb(255 255 255 / 14%);
  }

  .desktop-goal-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #4b8cff;
    transition: width 240ms ease;
  }

  .desktop-goal-card small {
    display: block;
    margin-top: 9px;
    color: #8ea3bd;
    font-size: 10px;
    font-weight: 680;
  }

  .desktop-mission-art {
    position: absolute;
    z-index: 1;
    right: -24%;
    bottom: -2%;
    width: 124%;
    height: 43%;
    object-fit: cover;
    object-position: 72% center;
    opacity: 0.72;
    mask-image: linear-gradient(to bottom, transparent 0, #000 38%);
  }

  .desktop-briefing {
    flex-direction: column;
    padding: 28px;
    background: rgb(255 255 255 / 88%);
    backdrop-filter: blur(22px);
  }

  .desktop-live-heading {
    display: flex;
    flex-direction: column;
    gap: 11px;
  }

  .desktop-live-heading span {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.11em;
  }

  .desktop-live-heading i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--buy);
    box-shadow: 0 0 0 5px rgb(217 54 50 / 10%);
  }

  .desktop-live-heading strong {
    color: var(--ink-strong);
    font-size: clamp(28px, 2.4vw, 37px);
    font-weight: 820;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.055em;
  }

  .desktop-bulletin {
    --bulletin-bg: #fff9f5;
    position: relative;
    min-height: 190px;
    margin-top: 26px;
    overflow: hidden;
    border: 1px solid #eadfd6;
    border-radius: 22px;
    background: var(--bulletin-bg);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      border-color 180ms ease,
      background-color 180ms ease;
  }

  .desktop-bulletin::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, var(--bulletin-bg) 0 50%, var(--bulletin-bg) 58%, transparent 80%);
    content: "";
    pointer-events: none;
  }

  .desktop-bulletin > span,
  .desktop-bulletin h2,
  .desktop-bulletin p {
    position: relative;
    z-index: 2;
    width: 49%;
  }

  .desktop-bulletin > span {
    display: inline-flex;
    width: auto;
    margin: 17px 17px 0;
    padding: 5px 7px;
    border-radius: 6px;
    background: var(--buy);
    color: #fff;
    font-size: 9.5px;
    font-weight: 820;
  }

  .desktop-bulletin h2 {
    margin: 10px 17px 0;
    color: var(--ink-strong);
    font-size: 19px;
    font-weight: 820;
    line-height: 1.25;
    letter-spacing: -0.045em;
  }

  .desktop-bulletin p {
    margin: 8px 17px 0;
    color: var(--secondary);
    font-size: 11px;
    font-weight: 620;
    line-height: 1.45;
  }

  .desktop-bulletin img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 44%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    opacity: 0.9;
  }

  .desktop-bulletin[data-tone="down"] {
    --bulletin-bg: #f5f9ff;
    border-color: #cfdff4;
  }

  .desktop-bulletin[data-tone="neutral"] {
    --bulletin-bg: #f8f9fb;
    border-color: #dde2e8;
  }

  .desktop-bulletin[data-tone="fake"] {
    --bulletin-bg: #faf7ff;
    border-color: #dacdf3;
  }

  .desktop-bulletin[data-tone="final"] {
    --bulletin-bg: #fffaf0;
    border-color: #ead381;
  }

  .desktop-bulletin[data-tone="down"] > span {
    background: var(--sell);
  }

  .desktop-bulletin[data-tone="neutral"] > span {
    background: #596373;
  }

  .desktop-bulletin[data-tone="fake"] > span {
    background: #6f3cc3;
  }

  .desktop-bulletin[data-tone="final"] > span {
    background: #d99b00;
    color: #1f1600;
  }

  .desktop-stage.is-cut-in .desktop-bulletin {
    opacity: 0.4;
    transform: scale(0.985);
  }

  .desktop-stage.is-cut-in .desktop-bulletin img {
    opacity: 0.14;
  }

  .desktop-tier-list {
    margin-top: 28px;
  }

  .desktop-tier-list > p,
  .desktop-keys > p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 800;
  }

  .desktop-tier-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    border-bottom: 1px solid var(--line);
    color: var(--secondary);
    font-size: 12.5px;
    font-weight: 700;
  }

  .desktop-tier-list > div:first-of-type {
    border-top: 1px solid var(--line);
  }

  .desktop-tier-list strong {
    color: var(--ink-strong);
    font-size: 13px;
    font-weight: 830;
  }

  .desktop-tier-list .is-target {
    color: var(--focus);
  }

  .desktop-tier-list .is-target strong {
    color: var(--focus);
  }

  .desktop-keys {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 12px;
    margin-top: auto;
    padding-top: 24px;
  }

  .desktop-keys > p {
    grid-column: 1 / -1;
  }

  .desktop-keys span {
    color: var(--secondary);
    font-size: 10.5px;
    font-weight: 650;
  }

  .desktop-keys kbd {
    display: inline-grid;
    min-width: 24px;
    min-height: 23px;
    margin-right: 4px;
    padding: 4px 6px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: #fff;
    color: var(--ink-strong);
    font: 750 9.5px var(--font);
  }

  .intro-layer {
    align-items: center;
    padding: 14px;
  }

  .intro-card {
    max-height: calc(100% - 4px);
    overflow: auto;
    border-radius: 26px;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .desktop-stage {
    gap: 20px;
  }

  .desktop-panel {
    border-radius: 26px;
  }

  .desktop-mission,
  .desktop-briefing {
    padding: 22px;
  }

  .desktop-mission-copy {
    margin-top: 48px;
  }

  .desktop-bulletin::after {
    background: var(--bulletin-bg);
  }

  .desktop-bulletin h2,
  .desktop-bulletin p {
    width: calc(100% - 34px);
  }

  .desktop-bulletin > span {
    width: auto;
  }

  .desktop-bulletin img {
    display: none;
  }
}

@media (max-height: 760px) {
  .game-shell {
    grid-template-rows: 56px auto auto minmax(0, 1fr) auto;
  }

  .topbar {
    padding-top: 4px;
  }

  .asset-summary {
    padding-top: 8px;
    padding-bottom: 7px;
  }

  .asset-heading {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .coin-avatar {
    width: 38px;
    height: 38px;
  }

  .live-price {
    font-size: 30px;
  }

  .meme-card {
    min-height: 66px;
    margin-bottom: 6px;
  }

  .meme-headline {
    margin-top: 4px;
    font-size: 13px;
  }

  .meme-source {
    display: none;
  }

  .chart-toolbar {
    padding-top: 7px;
    padding-bottom: 5px;
  }

  .trade-dock {
    gap: 6px;
    padding-top: 8px;
  }

  .order-button.secondary {
    min-height: 40px;
  }

  .order-button.primary {
    min-height: 54px;
    font-size: 17px;
  }

  .intro-card {
    max-height: calc(100dvh - 8px);
    padding-top: 15px;
    overflow: auto;
  }

  .intro-brand {
    margin-bottom: 10px;
  }

  .intro-card h2 {
    font-size: 30px;
  }

  .intro-goal {
    margin-top: 12px;
    margin-bottom: 9px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .intro-actions {
    margin-bottom: 7px;
  }

  .intro-actions > div {
    min-height: 58px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .intro-signal {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .intro-random {
    margin-top: 7px;
    margin-bottom: 10px;
  }

  .intro-card .start-button {
    min-height: 54px;
  }
}

@media (max-width: 370px) {
  :root {
    --page-x: 12px;
  }

  .chart-legend {
    display: none;
  }

  .timer {
    min-width: 98px;
  }

  .wordmark {
    font-size: 13px;
  }

  .market-state {
    padding-right: 7px;
    padding-left: 7px;
  }
}

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

  .event-cut-in.is-active {
    opacity: 1;
    visibility: visible;
  }

  .event-cut-in.is-active .cut-in-band,
  .event-cut-in.is-active .cut-in-copy,
  .event-cut-in.is-active .cut-in-band img {
    opacity: 1;
    animation: none !important;
  }

  .event-cut-in.is-active .cut-in-band {
    transform: translate(0, -50%) skewY(-2deg);
  }

  .event-cut-in.is-active .cut-in-copy,
  .event-cut-in.is-active .cut-in-band img {
    transform: skewY(2deg);
  }

  .cut-in-beat {
    display: none;
  }

  .launch-layer.is-stepping .launch-card {
    opacity: 1;
    animation: none !important;
    transform: none;
  }
}
