:root {
  color-scheme: light;
  --ink: #171f2e;
  --muted: #667085;
  --line: #dce2ea;
  --line-strong: #c7d0dc;
  --surface: #ffffff;
  --surface-soft: #f4f6f9;
  --surface-blue: #eef3fb;
  --navy: #253b6e;
  --navy-2: #35588f;
  --navy-3: #1b2f59;
  --sell: #3157a4;
  --sell-soft: #edf3ff;
  --buy: #d43131;
  --buy-soft: #fff0ef;
  --yellow: #e8b638;
  --green: #217a58;
  --shadow: 0 20px 56px rgba(28, 43, 70, 0.12);
  --radius-lg: 22px;
  --radius-md: 14px;
  font-family:
    Pretendard, "Pretendard Variable", "Noto Sans KR", "Apple SD Gothic Neo",
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: var(--surface-soft);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--surface-soft);
  color: var(--ink);
}

.is-game-locked body {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:not(:disabled) {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(53, 88, 143, 0.38);
  outline-offset: 3px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 11px 15px;
  border-radius: 8px;
  background: var(--navy-3);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell,
.screen {
  min-height: 100vh;
  min-height: 100dvh;
}

.screen {
  width: 100%;
}

.intro-stage:focus,
.game-stage:focus,
.result-stage:focus {
  outline: none;
}

.compact-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.compact-brand > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.compact-brand strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(53, 88, 143, 0.18);
  border-radius: 50%;
  background: var(--navy-2);
  box-shadow: inset 0 0 0 4px #fff;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.knowledge-chip {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

/* Intro */

.intro-screen {
  padding: 24px;
  background:
    radial-gradient(circle at 85% 12%, rgba(232, 182, 56, 0.13), transparent 28%),
    var(--surface-soft);
}

.intro-stage {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.intro-masthead {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.08fr) minmax(300px, 0.92fr);
  min-height: min(690px, calc(100dvh - 116px));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.intro-card {
  display: grid;
  align-content: center;
  padding: clamp(34px, 5vw, 68px);
}

.intro-overline {
  margin: 0 0 13px;
  color: var(--navy-2);
  font-size: 13px;
  font-weight: 900;
}

.intro-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 5.4vw, 64px);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1.03;
}

.intro-card h1 strong {
  color: var(--buy);
}

.intro-description {
  max-width: 520px;
  margin: 20px 0 0;
  color: #4e5968;
  font-size: 16px;
  line-height: 1.7;
}

.intro-description b {
  color: var(--ink);
}

.intro-goal {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 25px;
  padding: 17px 18px;
  border: 1px solid #d6dfec;
  border-radius: var(--radius-md);
  background: #f8fafc;
}

.intro-goal span,
.intro-goal strong {
  display: grid;
  gap: 4px;
  color: #4b5d75;
  font-size: 20px;
  font-weight: 900;
}

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

.intro-goal small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.intro-goal i {
  color: #9ba8b8;
  font-style: normal;
  font-weight: 800;
}

.intro-trade-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.intro-trade-guide span {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
}

.sell-guide {
  border-color: #b8cae5 !important;
  background: var(--sell-soft);
  color: var(--sell);
}

.buy-guide {
  border-color: #edbbb8 !important;
  background: var(--buy-soft);
  color: var(--buy);
}

.intro-signal {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.intro-signal b {
  color: var(--navy-2);
}

.intro-actions {
  display: grid;
  margin-top: 20px;
}

.primary-cta {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--navy-2);
  border-radius: 12px;
  background: var(--navy-2);
  box-shadow: 0 7px 16px rgba(53, 88, 143, 0.19);
  color: #fff;
  font-weight: 900;
}

.primary-cta:hover {
  background: var(--navy);
}

.primary-cta.compact {
  min-height: 48px;
  padding: 0 22px;
}

.start-game-button {
  display: grid;
  width: 100%;
  min-height: 64px;
  gap: 2px;
}

.start-game-button span {
  font-size: 18px;
}

.start-game-button small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 700;
}

.legal-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.intro-mascot {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #f5eadb;
}

.intro-mascot::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(27, 47, 89, 0.92), rgba(27, 47, 89, 0.05) 38%),
    linear-gradient(0deg, rgba(20, 32, 58, 0.76), transparent 35%);
  content: "";
  pointer-events: none;
}

.intro-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
}

.intro-mascot-copy {
  position: absolute;
  z-index: 2;
  top: 36px;
  left: 28px;
  display: grid;
  gap: 8px;
  color: #fff;
}

.intro-mascot-copy span {
  font-size: 11px;
  font-weight: 850;
}

.intro-mascot-copy strong {
  font-size: clamp(27px, 3.3vw, 42px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

/* Game */

.game-screen {
  height: 100dvh;
  padding: 20px;
  overflow: hidden;
  background: #eef1f5;
}

.game-stage {
  position: relative;
  display: flex;
  width: min(820px, 100%);
  max-height: calc(100dvh - 40px);
  min-height: calc(100dvh - 40px);
  flex-direction: column;
  margin: 0 auto;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  scrollbar-width: thin;
}

.game-stage.is-cut-in {
  overflow: hidden;
}

.game-stage.is-event-imminent::after {
  position: absolute;
  z-index: 70;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 3px rgba(212, 49, 49, 0.2),
    inset 0 0 52px rgba(212, 49, 49, 0.08);
  content: "";
  pointer-events: none;
  animation: event-warning 380ms ease-out both;
}

.game-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 64px;
  padding: 9px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
}

.game-brand {
  display: flex;
  min-width: 0;
  align-items: center;
}

.game-brand strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-timer {
  display: grid;
  min-width: 92px;
  justify-items: center;
  padding: 5px 14px;
  border: 1px solid #cbd7e8;
  border-radius: 999px;
  background: var(--surface-blue);
}

.game-timer span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.game-timer strong {
  color: var(--navy-3);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
}

.game-timer.is-urgent {
  border-color: #efbbb8;
  background: var(--buy-soft);
  animation: timer-pulse 850ms ease-in-out infinite alternate;
}

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

.game-top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-left: 8px;
}

.topbar-button {
  min-width: 45px;
  min-height: 44px;
  padding: 0 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #435064;
  font-size: 11px;
  font-weight: 850;
}

.topbar-button:hover:not(:disabled) {
  background: var(--surface-soft);
}

.topbar-button:disabled {
  color: #a1a9b5;
}

.timeline-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 4px;
  background: #e8ecf2;
}

.timeline-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--navy-2);
  transition: width 120ms linear;
}

.calendar-pin {
  display: none;
}

.asset-summary {
  padding: 12px 20px 10px;
}

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

.asset-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.asset-heading h1 span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0;
}

.asset-heading p {
  display: flex;
  gap: 8px;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.asset-heading p b {
  color: var(--navy-2);
}

.fear-gauge {
  display: grid;
  justify-items: end;
  padding: 0;
}

.fear-gauge span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
}

.fear-gauge b {
  color: var(--buy);
  font-size: 12px;
  font-weight: 900;
}

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

.quote-row > div {
  display: grid;
}

.quote-row span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.quote-row strong {
  color: var(--ink);
  font-size: clamp(31px, 5vw, 42px);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.quote-row em {
  padding-bottom: 3px;
  font-size: 17px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

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

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

.is-flat {
  color: #667085 !important;
}

.mission-strip {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 7px 10px;
  border: 1px solid #dce4ef;
  border-radius: 9px;
  background: #f8fafc;
}

.mission-strip > div:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.mission-strip span {
  color: var(--navy-2);
  font-size: 8px;
  font-weight: 900;
}

.mission-strip strong {
  color: var(--ink);
  font-size: 10px;
  font-weight: 850;
}

.mission-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e1e6ed;
}

.mission-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--navy-2);
  transition: width 180ms ease;
}

.mission-strip.is-cleared {
  border-color: #a8d5c2;
  background: #f0faf6;
}

.mission-strip.is-cleared .mission-progress span {
  background: var(--green);
}

.mission-strip.is-level-up {
  animation: mission-level 430ms ease-out;
}

.signal-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 164px;
  min-height: 102px;
  margin: 0 16px;
  overflow: hidden;
  border: 1px solid #d9dee7;
  border-radius: var(--radius-md);
  background: #fff;
}

.event-card {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 5px;
  padding: 13px 18px;
  border-right: 1px solid var(--line);
}

.event-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--navy-2);
  content: "";
}

.signal-card[data-tone="up"] .event-card::before,
.signal-card[data-tone="final"] .event-card::before {
  background: var(--buy);
}

.signal-card[data-tone="down"] .event-card::before {
  background: var(--sell);
}

.signal-card[data-tone="fake"] .event-card::before {
  background: #8f4db3;
}

.event-card header {
  display: flex;
  align-items: center;
  gap: 7px;
}

.event-card header time {
  color: var(--muted);
  font-size: 9px;
}

.event-type {
  display: inline-flex;
  width: fit-content;
  min-height: 20px;
  align-items: center;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--surface-blue);
  color: var(--navy-2);
  font-size: 9px;
  font-weight: 900;
}

.signal-card[data-tone="up"] .event-type,
.signal-card[data-tone="final"] .event-type {
  background: var(--buy-soft);
  color: var(--buy);
}

.signal-card[data-tone="down"] .event-type {
  background: var(--sell-soft);
  color: var(--sell);
}

.signal-card[data-tone="fake"] .event-type {
  background: #f7edfb;
  color: #8244a1;
}

.event-card > p {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card > span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.clown-cutout {
  position: relative;
  overflow: hidden;
  background: #f3e8d6;
}

.clown-cutout::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(18, 31, 61, 0.86), transparent 68%);
  content: "";
}

.clown-cutout img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 43%;
  transform: scale(1.12);
}

.clown-bubble {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 10px;
  left: 12px;
  display: grid;
  gap: 2px;
  color: #fff;
}

.clown-bubble span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 8px;
  font-weight: 750;
}

.clown-bubble strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.community-ticker {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 10px;
  margin: 0 16px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #f8fafc;
}

.community-ticker > span {
  flex: 0 0 auto;
  color: var(--navy-2);
  font-size: 9px;
  font-weight: 900;
}

.community-ticker ol {
  position: relative;
  height: 16px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.community-ticker li {
  position: absolute;
  inset: 0;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: #5b6574;
  font-size: 10px;
  opacity: 0;
  animation: comment-cycle 4.5s linear infinite;
  animation-delay: calc(var(--comment-index, 0) * 1.5s);
}

.community-ticker li:first-child {
  opacity: 1;
}

.community-ticker li b {
  flex: 0 0 auto;
  color: #39465a;
  font-size: 9px;
}

.community-ticker li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-panel {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  margin: 10px 16px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.chart-heading {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 14px;
  border-bottom: 1px solid #edf0f4;
}

.chart-heading > div:first-child {
  display: grid;
  gap: 1px;
}

.chart-heading span {
  color: var(--navy-2);
  font-size: 8px;
  font-weight: 850;
}

.chart-heading h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
}

.chart-meta {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.chart-meta b {
  color: var(--ink);
  font-size: 10px;
}

.chart-trend {
  font-size: 9px !important;
  font-variant-numeric: tabular-nums;
  font-weight: 900 !important;
  letter-spacing: -0.01em;
}

.chart-trend[data-trend="up"] {
  color: var(--buy) !important;
}

.chart-trend[data-trend="down"] {
  color: var(--sell) !important;
}

.chart-trend[data-trend="flat"] {
  color: var(--muted) !important;
}

.chart-wrap {
  position: relative;
  min-height: 220px;
  flex: 1 1 auto;
  overflow: hidden;
  background: linear-gradient(180deg, #fafbfd, #fff);
  transition: background 180ms ease;
}

.chart-wrap[data-trend="up"] {
  background: linear-gradient(180deg, rgba(212, 49, 49, 0.045), #fff 72%);
}

.chart-wrap[data-trend="down"] {
  background: linear-gradient(180deg, rgba(49, 87, 164, 0.055), #fff 72%);
}

#priceChart {
  width: 100%;
  height: 100%;
}

.chart-grid line {
  stroke: #e9edf2;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-area {
  transition: d 100ms linear;
}

.chart-line {
  fill: none;
  stroke: var(--navy-2);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  transition:
    d 100ms linear,
    stroke 160ms ease,
    filter 160ms ease;
}

.chart-wrap[data-trend="up"] .chart-line {
  stroke: var(--buy);
  filter: drop-shadow(0 2px 3px rgba(212, 49, 49, 0.18));
}

.chart-wrap[data-trend="down"] .chart-line {
  stroke: var(--sell);
  filter: drop-shadow(0 2px 3px rgba(49, 87, 164, 0.18));
}

.average-line {
  stroke: #c78b32;
  stroke-dasharray: 7 6;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.chart-cursor {
  fill: var(--navy-2);
  stroke: #fff;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  transition: fill 160ms ease;
}

.chart-wrap[data-trend="up"] .chart-cursor {
  fill: var(--buy);
}

.chart-wrap[data-trend="down"] .chart-cursor {
  fill: var(--sell);
}

.trade-markers line {
  stroke: currentColor;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.trade-markers circle {
  fill: currentColor;
  stroke: #fff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.trade-markers text {
  fill: #fff;
  font-size: 10px;
  font-weight: 900;
}

.trade-markers g[data-side="buy"] {
  color: var(--buy);
}

.trade-markers g[data-side="sell"] {
  color: var(--sell);
}

.average-label {
  position: absolute;
  top: 9px;
  right: 10px;
  padding: 5px 8px;
  border: 1px solid #e4d5b2;
  border-radius: 6px;
  background: rgba(255, 250, 237, 0.94);
  color: #836321;
  font-size: 9px;
  font-weight: 750;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  transition: opacity 180ms ease;
}

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

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

.market-stats article {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 10px 12px;
}

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

.market-stats span,
.position-summary span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.market-stats strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-stats small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-dock {
  position: sticky;
  z-index: 15;
  bottom: 0;
  padding: 9px 16px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -12px 30px rgba(27, 47, 89, 0.08);
  backdrop-filter: blur(14px);
  flex: 0 0 auto;
}

.position-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.position-summary > div:first-child {
  display: grid;
  gap: 1px;
}

.position-summary strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.position-summary > small {
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

.order-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.order-button {
  display: grid;
  min-height: 58px;
  place-content: center;
  gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease;
}

.order-button span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.order-button small {
  color: currentColor;
  font-size: 9px;
  font-weight: 750;
  opacity: 0.76;
}

.order-button.sell {
  border-color: #a9bedf;
  background: var(--sell-soft);
  color: var(--sell);
}

.order-button.buy {
  border-color: #eab6b3;
  background: var(--buy-soft);
  color: var(--buy);
}

.order-button.primary.sell {
  border-color: var(--sell);
  background: var(--sell);
  color: #fff;
}

.order-button.primary.buy {
  border-color: var(--buy);
  background: var(--buy);
  color: #fff;
}

.order-button:not(:disabled):active,
.order-button.is-executed {
  transform: translateY(1px) scale(0.98);
}

.order-button:disabled {
  border-color: #e0e4ea;
  background: #f3f5f7;
  color: #8c96a4;
  cursor: not-allowed;
  opacity: 0.82;
}

.event-cut-in {
  --cut-in-accent: var(--navy-2);
  --cut-in-ink: var(--navy-3);
  --cut-in-wash: rgba(53, 88, 143, 0.11);
  position: absolute;
  z-index: 80;
  top: 64px;
  right: 0;
  bottom: 98px;
  left: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  isolation: isolate;
}

.event-cut-in[data-tone="up"] {
  --cut-in-accent: var(--buy);
  --cut-in-ink: #8d1717;
  --cut-in-wash: rgba(212, 49, 49, 0.12);
}

.event-cut-in[data-tone="down"] {
  --cut-in-accent: var(--sell);
  --cut-in-ink: #193f88;
  --cut-in-wash: rgba(49, 87, 164, 0.13);
}

.event-cut-in[data-tone="fake"] {
  --cut-in-accent: #8f4db3;
  --cut-in-ink: #5e267e;
  --cut-in-wash: rgba(143, 77, 179, 0.14);
}

.event-cut-in[data-tone="final"] {
  --cut-in-accent: #d99b00;
  --cut-in-ink: #6d4e00;
  --cut-in-wash: rgba(217, 155, 0, 0.14);
}

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

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

.cut-in-wash {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 0 18%, var(--cut-in-wash) 18% 78%, transparent 78%),
    repeating-linear-gradient(
      -13deg,
      rgba(255, 255, 255, 0.72) 0 15px,
      rgba(244, 247, 251, 0.82) 15px 18px
    );
  backdrop-filter: blur(2px) saturate(0.7);
}

.cut-in-band {
  position: absolute;
  top: 47%;
  right: -4%;
  left: -4%;
  min-height: 252px;
  overflow: hidden;
  border-top: 4px solid var(--cut-in-accent);
  border-bottom: 4px solid var(--cut-in-accent);
  background:
    linear-gradient(90deg, #fff 0 55%, rgba(255, 255, 255, 0.95) 65%, transparent 84%),
    var(--cut-in-wash);
  box-shadow: 0 24px 70px rgba(18, 31, 55, 0.25);
  transform: translateY(-50%) skewY(-2deg);
}

.cut-in-band::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 0 41%, var(--cut-in-wash) 41% 45%, transparent 45%),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(255, 255, 255, 0.1) 28px 29px);
  content: "";
}

.cut-in-copy {
  position: relative;
  z-index: 4;
  display: grid;
  width: 61%;
  align-content: center;
  min-height: 244px;
  padding: 28px 24px 30px 42px;
  transform: skewY(2deg);
}

.cut-in-meta {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cut-in-meta span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border-radius: 5px;
  background: var(--cut-in-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.09em;
}

.cut-in-meta b {
  color: var(--cut-in-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
}

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

.cut-in-copy p {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.055em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cut-in-copy > small {
  display: -webkit-box;
  max-width: 95%;
  margin-top: 8px;
  overflow: hidden;
  color: #596579;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cut-in-character {
  position: absolute;
  z-index: 3;
  top: -16%;
  right: 2%;
  width: 45%;
  height: 138%;
  overflow: hidden;
  transform: skewY(2deg);
}

.cut-in-character::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #fff 0, transparent 24%),
    linear-gradient(0deg, rgba(27, 47, 89, 0.82), transparent 46%);
  content: "";
}

.cut-in-character img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 43%;
  filter: saturate(1.05) contrast(1.03);
}

.cut-in-quote {
  position: absolute;
  z-index: 7;
  right: 17px;
  bottom: 26px;
  width: 38%;
  color: #fff;
  padding: 7px 9px;
  border-radius: 7px;
  background: rgba(27, 47, 89, 0.88);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.35;
  text-align: right;
  box-shadow: 0 8px 20px rgba(18, 31, 55, 0.2);
  text-shadow: 0 2px 10px rgba(18, 31, 55, 0.55);
}

.cut-in-beat {
  position: absolute;
  z-index: 6;
  right: 28px;
  bottom: 8px;
  left: 28px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 31, 55, 0.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 1.32s linear both;
}

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

.event-cut-in[data-intensity="mini"] .cut-in-copy {
  min-height: 194px;
  padding-top: 20px;
  padding-bottom: 22px;
}

.event-cut-in[data-intensity="mini"] .cut-in-copy p {
  font-size: clamp(22px, 3.5vw, 29px);
}

.event-cut-in[data-intensity="mini"] .cut-in-character {
  top: -22%;
  height: 150%;
}

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

.event-cut-in.is-active .cut-in-band {
  animation: cut-in-band 1.32s cubic-bezier(0.2, 0.82, 0.24, 1) both;
}

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

.event-cut-in.is-active .cut-in-character {
  animation: cut-in-character 1.18s cubic-bezier(0.18, 0.86, 0.24, 1) both;
}

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

.event-cut-in.is-glitch-revealed .cut-in-wash {
  animation: cut-in-glitch 180ms steps(2, end) 2;
}

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

.launch-layer {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(18, 31, 55, 0.82);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(8px);
}

.launch-layer > div {
  display: grid;
  min-width: min(360px, calc(100vw - 34px));
  gap: 8px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 20px;
  background: rgba(27, 47, 89, 0.72);
}

.launch-layer span {
  color: #dce7fa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.launch-layer strong {
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
}

.launch-layer p {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.launch-layer.is-stepping > div {
  animation: launch-step 360ms ease-out;
}

/* Result */

.result-screen {
  padding: 24px;
  background:
    radial-gradient(circle at 82% 12%, rgba(232, 182, 56, 0.12), transparent 30%),
    #f0f3f7;
}

.result-stage {
  width: min(860px, 100%);
  margin: 0 auto;
}

.result-masthead {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.result-seed {
  max-width: 300px;
  overflow: hidden;
  color: var(--navy-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-card {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.result-hero {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 210px;
  min-height: 215px;
  border-bottom: 1px solid var(--line);
}

.result-grade-cell {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 15px;
  border-right: 1px solid var(--line);
  background: var(--navy-3);
  color: #fff;
  text-align: center;
}

.result-grade-cell span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 750;
}

.result-grade-cell strong {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  word-break: keep-all;
}

.result-primary {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 5px;
  padding: 28px;
}

.result-primary > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.result-primary > strong {
  color: var(--sell);
  font-size: clamp(40px, 6vw, 56px);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.result-primary h1 {
  margin: 9px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.result-primary p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.result-mascot {
  position: relative;
  overflow: hidden;
  background: #f5eadb;
}

.result-mascot::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(27, 47, 89, 0.86), transparent 63%);
  content: "";
}

.result-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}

.result-mascot span {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  left: 14px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.result-grid article {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 17px 15px;
}

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

.result-grid span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.result-grid strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-grid small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px 22px 10px;
}

.secondary-cta {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.share-status {
  min-height: 22px;
  margin: 0;
  padding: 0 22px 10px;
  color: var(--muted);
  font-size: 10px;
}

.result-note {
  margin: 0;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  background: #fafbfc;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

/* Dialogs and feedback */

dialog {
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(17, 26, 44, 0.58);
  backdrop-filter: blur(4px);
}

.dialog-paper {
  width: min(460px, calc(100vw - 28px));
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(18, 31, 55, 0.28);
}

.dialog-paper.small {
  width: min(390px, calc(100vw - 28px));
  text-align: center;
}

.dialog-paper h2 {
  margin: 9px 0 8px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.dialog-paper p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.dialog-paper .primary-cta {
  width: 100%;
}

.dialog-stamp {
  color: var(--navy-2);
  font-size: 10px;
  font-weight: 900;
}

.rules-paper ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 22px;
  padding-left: 19px;
  color: #4e5968;
  font-size: 13px;
  line-height: 1.5;
}

.trade-toast {
  position: fixed;
  z-index: 120;
  right: 50%;
  bottom: calc(178px + env(safe-area-inset-bottom));
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border-radius: 9px;
  background: rgba(27, 47, 89, 0.96);
  box-shadow: 0 10px 28px rgba(18, 31, 55, 0.25);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 12px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.trade-toast.is-visible {
  opacity: 1;
  transform: translate(50%, 0);
}

@keyframes timer-pulse {
  to {
    box-shadow: 0 0 0 4px rgba(212, 49, 49, 0.08);
  }
}

@keyframes mission-level {
  50% {
    transform: scale(1.012);
    box-shadow: 0 0 0 4px rgba(33, 122, 88, 0.1);
  }
}

@keyframes event-warning {
  from {
    opacity: 0;
  }

  40% {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes comment-cycle {
  0%,
  28% {
    opacity: 1;
    transform: translateY(0);
  }

  33%,
  95% {
    opacity: 0;
    transform: translateY(-4px);
  }

  96%,
  100% {
    opacity: 0;
    transform: translateY(4px);
  }
}

@keyframes cut-in-shell {
  0% {
    opacity: 0;
  }

  7%,
  86% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

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

  17%,
  82% {
    transform: translate(0, -50%) skewY(-2deg);
  }

  100% {
    transform: translate(-108%, -50%) skewY(-2deg);
  }
}

@keyframes cut-in-copy {
  0%,
  13% {
    opacity: 0;
    transform: translateX(-38px) skewY(2deg);
  }

  27%,
  84% {
    opacity: 1;
    transform: translateX(0) skewY(2deg);
  }

  100% {
    opacity: 0;
    transform: translateX(-14px) skewY(2deg);
  }
}

@keyframes cut-in-character {
  0%,
  9% {
    opacity: 0;
    transform: translateX(82px) scale(0.91) skewY(2deg);
  }

  25%,
  84% {
    opacity: 1;
    transform: translateX(0) scale(1.04) skewY(2deg);
  }

  100% {
    opacity: 0;
    transform: translateX(28px) 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 cut-in-glitch {
  50% {
    transform: translateX(7px);
    filter: hue-rotate(50deg);
  }
}

@keyframes glitch-pop {
  50% {
    transform: scale(1.08) rotate(-1deg);
  }
}

@keyframes launch-step {
  from {
    opacity: 0.25;
    transform: scale(0.92);
  }
}

@media (max-width: 760px) {
  .intro-screen,
  .result-screen {
    padding: 14px;
  }

  .intro-masthead,
  .result-masthead {
    margin-bottom: 10px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 18px;
  }

  .intro-card {
    padding: 32px 24px 28px;
  }

  .intro-card h1 {
    font-size: clamp(39px, 12vw, 54px);
  }

  .intro-mascot {
    min-height: 230px;
  }

  .intro-mascot-copy {
    top: 24px;
    left: 23px;
  }

  .intro-mascot-copy strong {
    font-size: 30px;
  }

  .game-screen {
    padding: 0;
    background: #fff;
  }

  .game-stage {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .game-topbar {
    min-height: 62px;
    padding: 8px 12px 11px;
  }

  .game-brand strong {
    font-size: 12px;
  }

  .game-timer {
    min-width: 76px;
    padding: 4px 8px;
  }

  .game-timer strong {
    font-size: 19px;
  }

  .game-top-actions {
    gap: 0;
    margin-left: 2px;
  }

  .topbar-button {
    min-width: 44px;
    padding: 0 4px;
    font-size: 10px;
  }

  .asset-summary {
    padding: 10px 12px 9px;
  }

  .asset-heading h1 {
    font-size: 16px;
  }

  .fear-gauge {
    padding: 0;
  }

  .quote-row {
    margin-top: 7px;
  }

  .quote-row strong {
    font-size: 31px;
  }

  .mission-strip {
    margin-top: 8px;
    padding: 6px 8px;
  }

  .signal-card {
    grid-template-columns: minmax(0, 1fr) 116px;
    min-height: 94px;
    margin: 0 12px;
  }

  .event-card {
    gap: 3px;
    padding: 10px 10px 10px 14px;
  }

  .event-card > p {
    font-size: 12px;
  }

  .event-card > span {
    font-size: 9px;
    -webkit-line-clamp: 1;
  }

  .clown-bubble {
    right: 7px;
    bottom: 6px;
    left: 7px;
  }

  .clown-bubble span {
    display: none;
  }

  .clown-bubble strong {
    font-size: 9px;
  }

  .community-ticker {
    min-height: 29px;
    margin: 0 12px;
  }

  .chart-panel {
    margin: 7px 12px 0;
  }

  .chart-heading {
    min-height: 43px;
    padding: 7px 10px;
  }

  .chart-wrap {
    min-height: 202px;
  }

  .market-stats article {
    padding: 8px;
  }

  .market-stats strong {
    font-size: 11px;
  }

  .market-stats small {
    font-size: 8px;
  }

  .order-dock {
    padding: 7px 12px max(9px, env(safe-area-inset-bottom));
  }

  .position-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 6px;
  }

  .position-summary > small {
    grid-column: auto;
    margin-top: 0;
    text-align: right;
  }

  .order-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .order-button {
    min-height: 51px;
  }

  .event-cut-in {
    top: 62px;
    bottom: 151px;
  }

  .cut-in-band {
    min-height: 236px;
  }

  .cut-in-copy {
    width: 64%;
    min-height: 228px;
    padding: 24px 14px 26px 25px;
  }

  .cut-in-copy p {
    font-size: clamp(23px, 6.5vw, 30px);
  }

  .cut-in-copy > small {
    font-size: 10px;
    -webkit-line-clamp: 1;
  }

  .cut-in-character {
    right: -3%;
    width: 47%;
  }

  .cut-in-quote {
    right: 13px;
    bottom: 22px;
    width: 42%;
    font-size: 10px;
  }

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

  .event-cut-in[data-intensity="mini"] .cut-in-copy {
    min-height: 188px;
    padding-top: 18px;
    padding-bottom: 20px;
  }

  .event-cut-in[data-intensity="mini"] .cut-in-copy p {
    font-size: clamp(21px, 6vw, 27px);
  }

  .result-hero {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 190px;
  }

  .result-grade-cell {
    padding: 10px;
  }

  .result-grade-cell strong {
    font-size: 14px;
  }

  .result-primary {
    padding: 20px;
  }

  .result-primary > strong {
    font-size: 43px;
  }

  .result-mascot {
    display: none;
  }

  .result-grid {
    grid-template-columns: 1fr 1fr;
  }

  .result-grid article:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .result-grid article:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .result-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 18px 18px 10px;
  }
}

@media (max-width: 430px) {
  .compact-brand strong {
    font-size: 11px;
  }

  .compact-brand small {
    font-size: 9px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .knowledge-chip {
    padding: 6px 8px;
    font-size: 9px;
  }

  .intro-screen {
    padding: 8px;
  }

  .intro-masthead {
    min-height: 44px;
    padding: 0 4px;
  }

  .intro-card {
    padding: 28px 18px 24px;
  }

  .intro-card h1 {
    font-size: 42px;
  }

  .intro-description {
    margin-top: 16px;
    font-size: 14px;
  }

  .intro-goal {
    margin-top: 20px;
    padding: 14px;
  }

  .intro-goal span,
  .intro-goal strong {
    font-size: 17px;
  }

  .intro-actions {
    margin-top: 18px;
  }

  .intro-mascot {
    min-height: 210px;
  }

  .game-brand > span {
    display: none;
  }

  .fear-gauge span {
    display: none;
  }

  .market-stats small {
    font-size: 8px;
  }

  .order-button span {
    font-size: 11px;
  }

  .result-screen {
    padding: 8px;
  }

  .result-masthead {
    padding: 0 4px;
  }

  .result-seed {
    max-width: 118px;
  }

  .result-grid article {
    padding: 14px 12px;
  }

  .result-grid strong {
    font-size: 16px;
    letter-spacing: -0.025em;
  }
}

@media (max-height: 740px) and (max-width: 760px) {
  .game-topbar {
    min-height: 58px;
  }

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

  .asset-heading h1 {
    font-size: 14px;
  }

  .quote-row strong {
    font-size: 27px;
  }

  .signal-card {
    min-height: 84px;
  }

  .event-card > span,
  .community-ticker {
    display: none;
  }

  .chart-panel {
    margin-top: 6px;
  }

  .chart-wrap {
    min-height: 160px;
  }

  .order-button {
    min-height: 47px;
  }

  .event-cut-in {
    top: 58px;
    bottom: 150px;
  }

  .cut-in-band {
    min-height: 210px;
  }

  .cut-in-copy {
    min-height: 202px;
    padding-top: 18px;
    padding-bottom: 20px;
  }

  .cut-in-copy p {
    font-size: clamp(21px, 6.2vw, 27px);
  }

  .cut-in-copy > small {
    display: none;
  }
}

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

  .community-ticker li {
    display: none;
    opacity: 0;
    animation: none !important;
    transform: none;
  }

  .community-ticker li:first-child {
    display: flex;
    opacity: 1;
  }

  .event-cut-in.is-active {
    opacity: 1;
    visibility: visible;
    animation: none !important;
  }

  .event-cut-in.is-active .cut-in-band,
  .event-cut-in.is-active .cut-in-copy,
  .event-cut-in.is-active .cut-in-character {
    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-character {
    transform: skewY(2deg);
  }

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