/* =========================================================================
   桥源雅礼 · 抽奖终端样式 (典雅新中式黛青鎏金风)
   ========================================================================= */

/* Strict 100vh Desktop Gallery Shell (Never Overflows Bottom!) */
@media (min-width: 1181px) {
  body.lottery-page {
    height: 100vh;
    overflow: hidden;
  }
  body.lottery-page .app-shell {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }
}

body.lottery-page .hud-header {
  padding: 8px 20px;
  flex-shrink: 0;
}

/* Full-Width Fixed Hall-of-Fame Oriental Scroll Strip */
.marquee-strip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 38px;
  padding: 5px 14px;
  background: linear-gradient(90deg, rgba(8, 22, 27, 0.92), rgba(21, 47, 50, 0.92), rgba(8, 22, 27, 0.92));
  border-bottom: 1px solid rgba(221, 190, 122, 0.34);
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 25;
  flex-wrap: wrap;
}

.marquee-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(231, 198, 124, 0.22), rgba(184, 139, 58, 0.14));
  border: 1px solid rgba(231, 198, 124, 0.62);
  color: #f6e3b0;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e7c67c;
  box-shadow: 0 0 8px rgba(231, 198, 124, 0.75);
  animation: beacon 2.2s ease-in-out infinite;
}

.records-static-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.record-slot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(7, 20, 25, 0.78);
  border: 1px solid rgba(221, 190, 122, 0.28);
}

.record-slot.record-jackpot {
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(36, 20, 24, 0.94), rgba(13, 33, 38, 0.94)) padding-box,
    linear-gradient(90deg, #c63d2b, #e7c67c, #6bc8b0, #e7c67c, #c63d2b) border-box;
  box-shadow: 0 0 18px rgba(231, 198, 124, 0.26);
}

.marquee-tag-jackpot {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(198, 61, 43, 0.38), rgba(184, 139, 58, 0.34));
  border: 1px solid rgba(231, 198, 124, 0.65);
  color: #fff5d6;
  white-space: nowrap;
}

.marquee-val-rainbow {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.record-slot.record-single {
  border-color: rgba(217, 122, 130, 0.38);
}

.record-slot.record-total {
  border-color: rgba(231, 198, 124, 0.42);
}

.record-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ebe4d5;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.record-divider {
  width: 1px;
  height: 15px;
  background: linear-gradient(180deg, transparent, rgba(221, 190, 122, 0.5), transparent);
}

.marquee-tag-single {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(198, 61, 43, 0.22);
  border: 1px solid rgba(217, 122, 130, 0.48);
  color: #f6c4be;
  white-space: nowrap;
}

.marquee-tag-total {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(231, 198, 124, 0.16);
  border: 1px solid rgba(231, 198, 124, 0.5);
  color: #f3dca0;
  white-space: nowrap;
}

.marquee-code {
  font-weight: 700;
  color: #fff9ec;
}

.marquee-val-gold {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 800;
  color: #f3dca0;
}

.marquee-val-cyan {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 800;
  color: #8adcc6;
}

/* 3-Column Exact-Fit Gallery Grid */
.terminal-grid {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  padding: 12px 18px 14px;
  display: grid;
  grid-template-columns: clamp(305px, 22vw, 405px) minmax(460px, 1fr) clamp(315px, 22vw, 410px);
  grid-template-rows: minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
}

.col-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.col-left {
  overflow-y: auto;
  padding-right: 2px;
}

.compact-panel {
  flex-shrink: 0;
}

.compact-panel .panel-header {
  padding: 9px 14px;
}

.compact-panel .panel-body {
  padding: 11px 14px;
}

.panel-stretch {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.panel-stretch .panel-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* CDK Panel */
.cdk-name-row {
  margin-bottom: 8px;
}

.cdk-input-row {
  display: flex;
  gap: 8px;
}

.cdk-hint {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.45;
}

.active-cdk-card {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.active-cdk-card.visible {
  display: flex;
}

.cdk-code-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(221, 190, 122, 0.12), rgba(37, 104, 93, 0.22));
  border: 1px solid rgba(221, 190, 122, 0.36);
}

.cdk-player-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #f6e3b0;
  background: rgba(198, 61, 43, 0.28);
  border: 1px solid rgba(231, 198, 124, 0.5);
}

.cdk-code-text {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff8ea;
  margin-top: 2px;
}

.cdk-note-line {
  font-size: 12px;
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(6, 18, 22, 0.65);
  border-left: 2px solid var(--gold);
}

.charge-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.charge-ratio {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
}

.energy-cells {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.energy-cell {
  flex: 1 0 12px;
  max-width: 24px;
  height: 8px;
  border-radius: 999px;
  background: rgba(221, 190, 122, 0.1);
  border: 1px solid rgba(221, 190, 122, 0.24);
  transition: all 0.3s ease;
}

.energy-cell.charged {
  background: linear-gradient(90deg, #52b79c, #e7c67c);
  border-color: rgba(246, 227, 176, 0.72);
  box-shadow: 0 0 8px rgba(107, 200, 176, 0.35);
}

.energy-cell.spent {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* 7-Tier Oriental Prize List */
.odds-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.odds-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-radius: 9px;
  background: rgba(6, 19, 23, 0.66);
  border: 1px solid rgba(221, 190, 122, 0.18);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.odds-item.highlight {
  border-color: var(--item-color, var(--gold));
  background: rgba(231, 198, 124, 0.14);
  transform: translateX(3px);
}

.odds-amount {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 800;
  color: var(--item-color, var(--ivory));
}

.odds-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.odds-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #efe9dc;
}

.tier-lv-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--item-color, var(--gold));
  border: 1px solid color-mix(in srgb, var(--item-color, var(--gold)) 42%, transparent);
  white-space: nowrap;
}

.odds-bar-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.odds-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--item-color, var(--gold));
  opacity: 0.85;
}

.odds-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  min-width: 48px;
  text-align: right;
}

/* Prismatic Antique-Gold Shimmer (Level 7 Jackpot Tier) */
.rainbow-text {
  background: linear-gradient(90deg, #fff5d6, #f3c868, #7be0c3, #f6b29a, #f3c868, #fff5d6);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 4.5s linear infinite;
}

@keyframes goldShimmer {
  from { background-position: 0% 50%; }
  to { background-position: 240% 50%; }
}

.odds-item.is-rainbow {
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(34, 22, 24, 0.88), rgba(13, 35, 40, 0.88)) padding-box,
    linear-gradient(90deg, #c63d2b, #e7c67c, #6bc8b0, #e7c67c) border-box;
}

.odds-item.is-rainbow .odds-bar-fill {
  background: linear-gradient(90deg, #c63d2b, #e7c67c, #6bc8b0);
}

/* Session Stats & Hit Distribution */
.session-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 9px;
}

.stat-tile {
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(6, 19, 23, 0.72);
  border: 1px solid rgba(221, 190, 122, 0.22);
}

.stat-tile-label {
  font-size: 10.5px;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.stat-tile-val {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 800;
  color: #f6efe2;
}

.stat-tile-val.gold {
  color: var(--gold);
}

.hit-dist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  overflow-y: auto;
  padding-right: 2px;
}

.hit-dist-chip {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(6, 19, 23, 0.72);
  border: 1px solid color-mix(in srgb, var(--chip-color, var(--gold)) 36%, rgba(221, 190, 122, 0.14));
  text-align: center;
}

.hit-dist-chip.is-rainbow {
  grid-column: 1 / -1;
  border: 1px solid rgba(231, 198, 124, 0.55);
  background: linear-gradient(90deg, rgba(198, 61, 43, 0.14), rgba(231, 198, 124, 0.12), rgba(107, 200, 176, 0.14));
}

.hd-amt {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--chip-color, #fff);
}

.hd-cnt {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
}

/* =========================================================================
   CENTER STAGE: Serene Ink-Wash Gallery & Carved Gold-Jade Moon-Gate Wheel
   ========================================================================= */
.reactor-panel {
  background: transparent !important;
  backdrop-filter: none !important;
  border-color: rgba(221, 190, 122, 0.24);
  box-shadow: inset 0 0 60px rgba(7, 21, 25, 0.35);
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.reactor-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 12px;
  overflow: hidden;
}

.stage-top-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  z-index: 4;
}

.stage-telemetry {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(231, 198, 124, 0.78);
}

.live-state {
  color: #9be0cc;
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.holo-greeting {
  padding: 5px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(12, 34, 40, 0.35), rgba(22, 56, 60, 0.72), rgba(12, 34, 40, 0.35));
  border: 1px solid rgba(221, 190, 122, 0.38);
  color: #f6e7c2;
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.orbital-stage-wrap {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 6px;
  position: relative;
  z-index: 4;
}

/* Grand Super Jackpot Jade & Gold Ceremonial Plaque */
.jackpot-hero-plaque {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 26px 9px;
  border-radius: 14px;
  border: 1.5px solid rgba(231, 198, 124, 0.72);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(107, 200, 176, 0.24), transparent 68%),
    linear-gradient(180deg, rgba(22, 62, 66, 0.92), rgba(11, 33, 39, 0.94));
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 244, 214, 0.14),
    0 0 26px rgba(107, 200, 176, 0.18);
  max-width: min(680px, 94%);
  flex-shrink: 0;
}

.jp-plaque-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.jp-crown-tag {
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #f6e3b0;
}

.jp-amount-box {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.jp-hero-amount {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.1vh, 36px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.05em;
}

.jp-hero-delta {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: #9be0cc;
  opacity: 0;
  pointer-events: none;
}

.jp-hero-delta.show {
  animation: deltaRise 1.6s ease-out forwards;
}

@keyframes deltaRise {
  0% { opacity: 0; transform: translateY(-20%); }
  20% { opacity: 1; transform: translateY(-55%); }
  80% { opacity: 1; transform: translateY(-75%); }
  100% { opacity: 0; transform: translateY(-115%); }
}

.jp-plaque-rule {
  font-size: 11.5px;
  color: #c8d9d3;
  text-align: center;
  letter-spacing: 0.03em;
}

/* Carved Antique-Gold & Celadon Jade Wheel Assembly */
.orbital-assembly {
  position: relative;
  width: min(67vh, 48vw, 790px);
  height: min(67vh, 48vw, 790px);
  max-width: 100%;
  max-height: 67vh;
  aspect-ratio: 1 / 1;
  flex-shrink: 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 20px 44px rgba(0, 0, 0, 0.56));
}

.orbital-radar-fan {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(231, 198, 124, 0.14), rgba(107, 200, 176, 0.05) 18%, transparent 36%);
  animation: slowSpin 16s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.orbital-assembly.spinning .orbital-radar-fan {
  animation-duration: 3.2s;
}

.orbital-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.ring-outer-ticks {
  transform-origin: 230px 230px;
  animation: slowSpin 80s linear infinite;
}

.ring-inner-gyro {
  transform-origin: 230px 230px;
  animation: reverseSpin 42s linear infinite;
}

.orbital-assembly.spinning .ring-inner-gyro {
  animation-duration: 5s;
}

.orbital-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.orbital-nodes-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
}

/* Imperial Gilded Cloisonné & Jade-Lacquer Prize Plaques (鎏金宝章) */
.prize-node {
  position: absolute;
  width: var(--node-size, 19.6%);
  height: var(--node-size, 19.6%);
  transform: translate(-50%, -50%);
  border-radius: 28%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 6px 6px;
  border: 2.5px solid transparent;
  background:
    radial-gradient(
      circle at 50% 24%,
      color-mix(in srgb, var(--node-color, #e7c67c) 32%, rgba(28, 68, 72, 0.96)),
      rgba(10, 30, 36, 0.98) 64%,
      rgba(5, 16, 20, 0.99) 100%
    ) padding-box,
    linear-gradient(
      145deg,
      #fff2ca 0%,
      color-mix(in srgb, var(--node-color, #e7c67c) 45%, #d6ac55) 34%,
      #6f4d18 68%,
      #f4da93 100%
    ) border-box;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.62),
    0 2px 6px rgba(0, 0, 0, 0.45),
    0 0 18px color-mix(in srgb, var(--node-color, #e7c67c) 22%, transparent),
    inset 0 1px 0 rgba(255, 248, 224, 0.25);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease, filter 0.18s ease;
  user-select: none;
  overflow: hidden;
}

/* Inner fine golden filigree frame */
.prize-node::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 23%;
  border: 1px solid color-mix(in srgb, var(--node-color, #e7c67c) 42%, rgba(246, 227, 176, 0.36));
  pointer-events: none;
  box-shadow: inset 0 0 12px color-mix(in srgb, var(--node-color, #e7c67c) 14%, transparent);
}

/* Subtle porcelain top specular glaze */
.prize-node::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 12%;
  right: 12%;
  height: 36%;
  border-radius: 50% 50% 44% 44% / 38% 38% 62% 62%;
  background: linear-gradient(180deg, rgba(255, 250, 232, 0.17), rgba(255, 250, 232, 0));
  pointer-events: none;
}

/* Understated Celadon-Ink Stone style for 谢谢惠顾 */
.prize-node.is-miss {
  border-width: 2px;
  background:
    radial-gradient(circle at 50% 25%, rgba(28, 56, 62, 0.95), rgba(11, 27, 32, 0.98) 72%, rgba(6, 17, 21, 0.99)) padding-box,
    linear-gradient(145deg, rgba(212, 185, 128, 0.65), rgba(88, 120, 118, 0.45) 50%, rgba(164, 134, 78, 0.55)) border-box;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 248, 224, 0.12);
}

.prize-node.is-miss::before {
  border-color: rgba(214, 194, 146, 0.22);
}

/* Crown Jewel Rainbow / Prismatic Cloisonné Plaque */
.prize-node.is-rainbow {
  border: 2.8px solid transparent;
  background:
    radial-gradient(circle at 50% 26%, rgba(138, 34, 48, 0.96), rgba(46, 16, 36, 0.98) 58%, rgba(12, 16, 26, 0.99) 100%) padding-box,
    conic-gradient(from 0deg, #ff5f6d, #f8d47c, #5be3b8, #60c5ff, #d58bff, #ff5f6d) border-box;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.68),
    0 0 26px rgba(243, 198, 118, 0.42),
    0 0 42px rgba(255, 95, 162, 0.22);
}

.prize-node.is-rainbow::before {
  border: 1px solid rgba(255, 236, 184, 0.62);
  box-shadow: inset 0 0 16px rgba(255, 196, 120, 0.28);
}

.prize-node.sweep-active {
  transform: translate(-50%, -50%) scale(1.11);
  box-shadow:
    0 0 0 2px rgba(255, 244, 210, 0.9),
    0 0 28px color-mix(in srgb, var(--node-color, var(--gold)) 85%, #fff),
    0 14px 32px rgba(0, 0, 0, 0.7),
    inset 0 0 22px rgba(255, 240, 196, 0.35);
  z-index: 8;
}

.prize-node.winner-locked {
  transform: translate(-50%, -50%) scale(1.17);
  box-shadow:
    0 0 0 3px #fff8e2,
    0 0 40px color-mix(in srgb, var(--node-color, var(--gold)) 92%, #fff),
    0 0 70px rgba(231, 198, 124, 0.55),
    inset 0 0 28px rgba(255, 245, 214, 0.45);
  z-index: 10;
}

.node-val {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: clamp(16px, 2.3vh, 25px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--node-color, #faf5ea);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.node-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: clamp(10px, 1.25vh, 13px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f6efe2;
  margin-top: 3px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.node-prob {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-top: 5px;
  padding: 1.5px 7px;
  border-radius: 999px;
  font-size: clamp(9px, 1.02vh, 10.5px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f3dfb0;
  background: rgba(5, 16, 20, 0.78);
  border: 1px solid color-mix(in srgb, var(--node-color, #e7c67c) 40%, rgba(231, 198, 124, 0.32));
  line-height: 1.35;
  white-space: nowrap;
}

/* Central Luminous Celadon-Jade Orb */
.quantum-core {
  position: relative;
  z-index: 6;
  width: 34%;
  height: 34%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  background:
    radial-gradient(circle at 38% 30%, rgba(122, 212, 190, 0.42), rgba(28, 86, 82, 0.88) 46%, rgba(10, 34, 39, 0.98) 84%);
  border: 2.5px solid rgba(235, 206, 138, 0.82);
  box-shadow:
    0 0 38px rgba(107, 200, 176, 0.3),
    inset 0 0 28px rgba(167, 243, 208, 0.22),
    inset 0 0 0 4px rgba(10, 29, 35, 0.55);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quantum-core.is-rainbow {
  border-color: #f6e3b0;
  box-shadow: 0 0 48px rgba(231, 198, 124, 0.48), inset 0 0 32px rgba(255, 242, 200, 0.25);
}

.core-orbit-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(231, 198, 124, 0.52);
  animation: slowSpin 26s linear infinite;
  pointer-events: none;
}

.core-eyebrow {
  font-family: var(--font-serif);
  font-size: clamp(10px, 1.3vh, 13px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #f3dca0;
}

.core-value {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.8vh, 42px);
  font-weight: 900;
  line-height: 1.08;
  color: #fff9ec;
  margin: 4px 0 3px;
}

.core-sub {
  font-size: clamp(10px, 1.25vh, 12.5px);
  color: #d0e5de;
  max-width: 92%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Action Control Deck */
.control-deck {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  z-index: 4;
}

.control-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-main-draw {
  min-width: 196px;
  font-family: var(--font-serif);
  font-size: 16.5px;
  letter-spacing: 0.14em;
  border-radius: 999px;
  padding: 12px 34px;
}

.btn-ten-draw {
  background: linear-gradient(135deg, #c6993e 0%, #edd089 52%, #be8e33 100%);
  color: #1f1609;
  border-color: rgba(255, 246, 218, 0.65);
  border-radius: 999px;
  padding: 12px 24px;
  box-shadow: 0 6px 20px rgba(184, 139, 58, 0.35);
}

.btn-ten-draw:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(231, 198, 124, 0.5);
}

.btn-multi-draw {
  border-radius: 999px;
  padding: 12px 24px;
}

.control-caption {
  font-size: 11.5px;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.04em;
}

/* =========================================================================
   RIGHT COLUMN: Cumulative Gold Vault & Draw History Scroll
   ========================================================================= */
.vault-box {
  padding: 14px 15px;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(231, 198, 124, 0.14), transparent 72%),
    rgba(6, 19, 24, 0.78);
  border: 1px solid rgba(221, 190, 122, 0.36);
  text-align: center;
}

.vault-box.settled {
  border-color: rgba(231, 198, 124, 0.72);
  box-shadow: 0 0 24px rgba(231, 198, 124, 0.16);
}

.vault-label {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.vault-amount-wrap {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  margin: 6px 0 10px;
}

.vault-amount {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: #f3dca0;
  text-shadow: 0 4px 18px rgba(231, 198, 124, 0.3);
}

.vault-delta {
  position: absolute;
  left: calc(100% + 8px);
  top: 2px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 800;
  color: #8adcc6;
  opacity: 0;
  pointer-events: none;
}

.vault-delta.show {
  animation: deltaRise 1.3s ease-out forwards;
}

.vault-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
  margin-bottom: 8px;
}

.vault-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #52b79c, #e7c67c);
  transition: width 0.35s ease;
}

.vault-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}

.vault-actions {
  display: none;
  gap: 8px;
  margin-top: 11px;
}

.vault-actions.visible {
  display: flex;
}

/* Draw History Scroll */
.history-stream {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 3px;
}

.history-empty {
  margin: auto;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 20px 10px;
}

.history-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(6, 19, 23, 0.72);
  border: 1px solid rgba(221, 190, 122, 0.16);
  border-left: 3px solid var(--row-color, var(--gold));
}

.history-row.is-rainbow {
  border-color: rgba(231, 198, 124, 0.55);
  background: linear-gradient(90deg, rgba(198, 61, 43, 0.14), rgba(10, 29, 35, 0.85));
}

.history-seq {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.history-prize-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.history-val {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 800;
  color: var(--row-color, #faf5ea);
}

.history-label {
  font-size: 12px;
  color: #e6dfd0;
}

.history-time {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

.history-cum {
  text-align: right;
}

.history-cum-label {
  font-size: 10px;
  color: var(--text-muted);
}

.history-cum-val {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold);
}

/* =========================================================================
   MODALS & TIERED HIT OVERLAYS
   ========================================================================= */
#fx-stage-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 90;
}

.hit-banner-overlay {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hit-banner-overlay.active {
  opacity: 1;
}

.hit-banner-card {
  padding: 20px 44px;
  border-radius: 18px;
  text-align: center;
  background: radial-gradient(circle at 50% 25%, rgba(20, 54, 58, 0.96), rgba(8, 22, 27, 0.96));
  border: 1.5px solid var(--hit-color, var(--gold));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.72), 0 0 40px color-mix(in srgb, var(--hit-color, var(--gold)) 42%, transparent);
  transform: scale(0.86);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.hit-banner-overlay.active .hit-banner-card {
  transform: scale(1);
}

.hit-banner-tier {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--hit-color, var(--gold));
}

.hit-banner-amount {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  color: #fff8ea;
  text-shadow: 0 0 28px color-mix(in srgb, var(--hit-color, var(--gold)) 65%, transparent);
  margin: 4px 0;
}

.hit-banner-desc {
  font-size: 13px;
  color: #d6e4de;
}

.shake-epic { animation: shakeS 0.42s ease; }
.shake-legendary { animation: shakeM 0.55s ease; }
.shake-mythic { animation: shakeL 0.72s ease; }

@keyframes shakeS {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 2px); }
  50% { transform: translate(3px, -2px); }
  75% { transform: translate(-2px, -1px); }
}
@keyframes shakeM {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5px, 3px); }
  40% { transform: translate(5px, -3px); }
  60% { transform: translate(-4px, -2px); }
  80% { transform: translate(3px, 2px); }
}
@keyframes shakeL {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-7px, 4px); }
  30% { transform: translate(7px, -4px); }
  45% { transform: translate(-6px, -3px); }
  60% { transform: translate(6px, 3px); }
  75% { transform: translate(-3px, 2px); }
}

/* Settlement Summary Banner & Batch Cards */
.modal-summary-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(221, 190, 122, 0.14), rgba(37, 104, 93, 0.22));
  border: 1px solid rgba(221, 190, 122, 0.36);
  margin-bottom: 14px;
}

.modal-summary-total {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 900;
  color: var(--gold);
}

.batch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 4px;
}

.batch-card {
  padding: 10px 8px;
  border-radius: 10px;
  text-align: center;
  background: rgba(6, 19, 23, 0.8);
  border: 1px solid color-mix(in srgb, var(--card-color, var(--gold)) 42%, rgba(221, 190, 122, 0.16));
  animation: popIn 0.25s ease backwards;
}

.batch-card.is-rainbow {
  border-color: rgba(231, 198, 124, 0.78);
  background: linear-gradient(135deg, rgba(198, 61, 43, 0.18), rgba(14, 38, 44, 0.9));
}

.b-seq {
  font-size: 10.5px;
  color: var(--text-muted);
}

.b-val {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 900;
  color: var(--card-color, #fff);
  margin: 3px 0 2px;
}

.b-label {
  font-size: 11px;
  color: var(--text-dim);
}

/* QR Settlement Upload Modal */
.qr-submitted-banner {
  margin-bottom: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #f6e3b0;
  background: rgba(231, 198, 124, 0.12);
  border: 1px solid rgba(231, 198, 124, 0.45);
}

.qr-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 18px;
  border-radius: 12px;
  border: 1.5px dashed rgba(221, 190, 122, 0.52);
  background: rgba(6, 19, 23, 0.76);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.qr-dropzone:hover,
.qr-dropzone.dragover {
  border-color: var(--gold);
  background: rgba(231, 198, 124, 0.08);
}

.qr-preview-img {
  max-width: 100%;
  max-height: 280px;
  border-radius: 10px;
  background: #ffffff;
  padding: 6px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}

.email-claim-box {
  width: 100%;
  height: 280px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(5, 16, 20, 0.92);
  border: 1px solid rgba(221, 190, 122, 0.36);
  color: #a7e8d3;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  white-space: pre;
  overflow: auto;
}

/* =========================================================================
   GLOBAL LIVE JACKPOT BROADCAST BANNER (Neo-Chinese Gold & Cinnabar)
   ========================================================================= */
.global-jp-broadcast {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 95;
  display: none !important;
  justify-content: center;
  padding: 0 18px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-28px) scale(0.95);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-jp-broadcast.active {
  display: flex !important;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gjp-card {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 780px;
  width: 100%;
  padding: 14px 20px 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid transparent;
  background:
    linear-gradient(135deg, rgba(32, 18, 22, 0.96), rgba(11, 31, 37, 0.96)) padding-box,
    linear-gradient(90deg, #c63d2b, #f3dca0, #6bc8b0, #f3dca0, #c63d2b) border-box;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.72),
    0 0 36px rgba(231, 198, 124, 0.32);
}

.gjp-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 242, 200, 0.16) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: gjpSweep 2.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gjpSweep {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(130%); }
}

.gjp-crown-orb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  background: radial-gradient(circle at 35% 30%, rgba(231, 198, 124, 0.42), rgba(198, 61, 43, 0.32) 65%, rgba(8, 22, 27, 0.92));
  border: 1.5px solid rgba(231, 198, 124, 0.78);
  box-shadow: 0 0 20px rgba(231, 198, 124, 0.45);
  animation: crownPulse 1.8s ease-in-out infinite;
}

@keyframes crownPulse {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50% { transform: scale(1.07) rotate(3deg); }
}

.gjp-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gjp-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gjp-badge {
  font-family: var(--font-serif);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(198, 61, 43, 0.4), rgba(184, 139, 58, 0.32));
  border: 1px solid rgba(231, 198, 124, 0.7);
  color: #fff3cc;
}

.gjp-demo-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(107, 200, 176, 0.16);
  border: 1px solid rgba(107, 200, 176, 0.52);
  color: #9be0cc;
}

.gjp-main-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 700;
  color: #f6efe2;
}

.gjp-code {
  font-family: var(--font-serif);
  font-size: 15.5px;
  color: #fff8e7;
  padding: 1px 8px;
  border-radius: 6px;
  background: rgba(231, 198, 124, 0.16);
  border: 1px solid rgba(231, 198, 124, 0.3);
}

.gjp-label {
  color: #f3dca0;
  font-family: var(--font-serif);
  font-weight: 800;
}

.gjp-amount {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.gjp-sub {
  font-size: 12.5px;
  color: #c8d9d3;
}

.gjp-close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(231, 198, 124, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #e6dfd0;
  font-size: 13px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}

.gjp-close:hover {
  background: rgba(198, 61, 43, 0.42);
  color: #fff;
}

.gjp-timer-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.08);
}

.gjp-timer-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #c63d2b, #e7c67c, #6bc8b0);
  transform-origin: left center;
}

.global-jp-broadcast.active .gjp-timer-fill {
  animation: gjpCountdown 8.5s linear forwards;
}

@keyframes gjpCountdown {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

/* =========================================================================
   WINNER EXCLUSIVE SOVEREIGN JACKPOT CELEBRATION OVERLAY
   ========================================================================= */
.jackpot-epic-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 45%, rgba(20, 48, 52, 0.88), rgba(4, 13, 16, 0.95));
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s ease;
}

.jackpot-epic-overlay.active {
  display: flex !important;
  opacity: 1;
  pointer-events: auto;
}

.jp-epic-aura {
  position: absolute;
  width: min(740px, 95vw);
  height: min(740px, 95vw);
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(198, 61, 43, 0.18),
    rgba(231, 198, 124, 0.26),
    rgba(107, 200, 176, 0.22),
    rgba(231, 198, 124, 0.24),
    rgba(198, 61, 43, 0.18)
  );
  filter: blur(44px);
  animation: epicAuraSpin 12s linear infinite;
  pointer-events: none;
}

@keyframes epicAuraSpin {
  from { transform: rotate(0deg) scale(0.96); }
  50% { transform: rotate(180deg) scale(1.05); }
  to { transform: rotate(360deg) scale(0.96); }
}

.jp-epic-card {
  position: relative;
  width: min(550px, 94vw);
  padding: 34px 30px 28px;
  border-radius: 22px;
  text-align: center;
  overflow: hidden;
  border: 2px solid transparent;
  background:
    radial-gradient(circle at 50% 0%, rgba(231, 198, 124, 0.2), rgba(11, 31, 37, 0.97) 58%, rgba(7, 20, 25, 0.99)) padding-box,
    linear-gradient(125deg, #c63d2b, #f3dca0, #6bc8b0, #f3dca0, #c63d2b) border-box;
  box-shadow:
    0 28px 86px rgba(0, 0, 0, 0.82),
    0 0 60px rgba(231, 198, 124, 0.32),
    inset 0 0 36px rgba(231, 198, 124, 0.12);
  transform: scale(0.86) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.jackpot-epic-overlay.active .jp-epic-card {
  transform: scale(1) translateY(0);
}

.jp-epic-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 245, 214, 0.14) 50%, transparent 75%);
  transform: translateX(-130%);
  animation: gjpSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

.jp-epic-demo-pill {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(107, 200, 176, 0.16);
  border: 1px solid rgba(107, 200, 176, 0.55);
  color: #9be0cc;
}

.jp-epic-crest {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
}

.jp-epic-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(231, 198, 124, 0.8);
  box-shadow: 0 0 24px rgba(231, 198, 124, 0.4);
  animation: epicAuraSpin 9s linear infinite;
}

.jp-epic-crown {
  font-size: 44px;
  filter: drop-shadow(0 0 16px rgba(231, 198, 124, 0.8));
  animation: crownPulse 1.8s ease-in-out infinite;
}

.jp-epic-eyebrow {
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #f3dca0;
  margin-bottom: 6px;
}

.jp-epic-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 900;
  color: #fff9ec;
  letter-spacing: 0.12em;
}

.jp-epic-amount-wrap {
  margin: 14px 0 12px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(6, 18, 22, 0.72);
  border: 1px solid rgba(231, 198, 124, 0.42);
}

.jp-epic-amount {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.04em;
  display: inline-block;
}

.jp-epic-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.jp-epic-meta strong {
  font-family: var(--font-serif);
  color: #fff9ec;
  padding: 2px 9px;
  border-radius: 6px;
  background: rgba(231, 198, 124, 0.16);
  border: 1px solid rgba(231, 198, 124, 0.3);
}

.jp-epic-next {
  font-size: 12.5px;
  line-height: 1.5;
  color: #9be0cc;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(107, 200, 176, 0.1);
  border: 1px solid rgba(107, 200, 176, 0.32);
  margin-bottom: 20px;
}

.jp-epic-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1180px) {
  .terminal-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    height: auto;
    overflow: visible;
  }
  .col-stack, .reactor-panel {
    height: auto;
    overflow: visible;
  }
  .reactor-panel {
    grid-column: 1 / -1;
    order: -1;
  }
  .orbital-assembly {
    width: min(460px, 86vw);
    height: min(460px, 86vw);
    max-height: none;
  }
  .history-stream {
    max-height: 360px;
  }
}

@media (max-width: 760px) {
  .terminal-grid {
    grid-template-columns: 1fr;
    padding: 12px 12px 24px;
  }
  .orbital-assembly {
    width: min(350px, 90vw);
    height: min(350px, 90vw);
  }
  .hit-banner-amount {
    font-size: 40px !important;
  }
}

.prize-node.is-sold-out {
  opacity: 0.84;
  filter: saturate(0.28) brightness(0.76);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
}

.prize-node.is-sold-out .node-prob {
  background: rgba(154, 38, 26, 0.88);
  border-color: rgba(243, 190, 146, 0.55);
  color: #ffe8d6;
}

.odds-item.is-sold-out {
  opacity: 0.56;
  filter: grayscale(0.6);
}

.prize-node.is-miss .node-val {
  font-size: clamp(13px, 1.55vh, 17px);
  letter-spacing: 0.06em;
  color: #dbe7e3;
}

.prize-node.is-miss .node-prob {
  color: rgba(206, 222, 218, 0.82);
  border-color: rgba(164, 196, 190, 0.28);
}
