/* Design Tokens */
:root {
  color-scheme: dark;
  --color-bg-0: #100318;
  --color-bg-1: #190724;
  --color-bg-2: #2b0a3f;

  --color-surface-0: rgba(24, 7, 36, 0.92);
  --color-surface-1: rgba(38, 11, 57, 0.84);
  --color-surface-2: rgba(50, 15, 72, 0.72);
  --color-surface-deep: rgba(13, 4, 21, 0.86);

  --color-border-soft: rgba(226, 184, 255, 0.12);
  --color-border-mid: rgba(226, 184, 255, 0.18);
  --color-border-strong: rgba(255, 227, 163, 0.28);

  --color-text-main: #f8efff;
  --color-text-muted: #d8c1f1;
  --color-text-soft: rgba(248, 239, 255, 0.72);

  --color-gold: #ffe59b;
  --color-gold-strong: #fff1bd;
  --color-gold-dim: rgba(255, 229, 155, 0.14);

  --color-violet: #d09aff;
  --color-violet-strong: #a248ff;
  --color-violet-dim: rgba(208, 154, 255, 0.14);

  --color-mint: #86f6b4;
  --color-mint-strong: #c9ffd8;
  --color-mint-dim: rgba(126, 245, 180, 0.12);

  --color-danger: #ffafbb;
  --color-danger-dim: rgba(255, 175, 187, 0.14);

  --color-oracle: #bfffd3;
  --color-oracle-dim: rgba(104, 255, 162, 0.12);
  --color-oracle-border: rgba(126, 245, 180, 0.22);

  --bg-top: var(--color-bg-1);
  --bg-bottom: var(--color-bg-2);
  --panel: var(--color-surface-1);
  --panel-strong: var(--color-surface-0);
  --panel-border: var(--color-border-soft);
  --panel-border-strong: var(--color-border-strong);
  --text: var(--color-text-main);
  --muted: var(--color-text-muted);
  --accent: var(--color-gold);
  --violet: var(--color-violet);
  --violet-strong: var(--color-violet-strong);
  --bet: var(--color-mint);
  --bet-strong: var(--color-mint-strong);
  --success: var(--color-mint);
  --danger: var(--color-danger);

  --shadow: rgba(5, 0, 8, 0.4);
  --shadow-panel: 0 24px 44px rgba(0, 0, 0, 0.24);
  --shadow-chip: 0 8px 16px rgba(8, 4, 13, 0.2);
  --shadow-focus: 0 0 0 2px rgba(255, 229, 155, 0.16);
  --focus-ring: rgba(255, 229, 155, 0.58);

  --oracle-tone-emerald: 134, 246, 180;
  --oracle-tone-jade: 146, 238, 190;
  --oracle-tone-amber: 255, 229, 155;
  --oracle-tone-crimson: 255, 175, 187;
  --oracle-tone-violet: 208, 154, 255;
  --oracle-tone-mint: 167, 255, 214;
  --oracle-tone-teal: 191, 255, 211;
  --oracle-tone-aqua: 146, 245, 228;
  --oracle-tone-cyan: 186, 177, 255;
  --oracle-tone-rose: 255, 175, 187;
  --oracle-tone-blue: 186, 177, 255;
  --oracle-tone-lime: 134, 246, 180;
  --oracle-tone-indigo: 186, 177, 255;
  --oracle-tone-gold: 255, 229, 155;
  --oracle-tone-moss: 186, 231, 152;
  --oracle-tone-sage: 198, 232, 172;
  --oracle-tone-silver: 248, 239, 255;
  --oracle-active-rgb: 134, 246, 180;
  --oracle-active-strong-rgb: 201, 255, 216;
  --oracle-active-text: var(--color-mint-strong);
  --oracle-active-glow: rgba(126, 245, 180, 0.12);
  --oracle-display-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --oracle-shadow-smoke: rgba(8, 5, 14, 0.28);
  --oracle-shadow-violet: rgba(70, 48, 112, 0.18);
  --oracle-shadow-violet-strong: rgba(52, 34, 88, 0.24);
  --oracle-glow-violet: rgba(179, 149, 242, 0.08);
  --oracle-glow-ivory: rgba(255, 236, 188, 0.08);

  --ui-gap: 10px;
  --ui-gap-sm: 8px;
  --card-radius: 18px;
  --card-padding: 11px;
  --card-row-min-height: 0px;
  --metric-strip-height: 68px;
  --metric-tile-height: 58px;
  --card-footer-height: 22px;
  --metric-label-size: 0.68rem;
  --metric-value-size: 0.94rem;

  --motion-fast: 140ms;
  --motion-medium: 240ms;
  --motion-slow: 420ms;
  --motion-panel: 520ms;

  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-soft-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring-soft: cubic-bezier(0.2, 0.9, 0.2, 1);

  --hover-lift: -3px;
  --hover-scale: 1.012;
  --hover-lift-soft: -1px;
  --hover-scale-soft: 1.002;
  --press-scale: 0.985;
  --press-scale-soft: 0.994;
  --panel-blur: 18px;
}

/* Oracle Mode */
.oracle-build-panel {
  position: relative;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(31, 10, 46, 0.92), rgba(13, 5, 22, 0.96)),
    var(--panel-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 24px 44px rgba(0, 0, 0, 0.22);
}

.oracle-build-panel::before,
.oracle-build-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.oracle-build-panel::before {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 226, 157, 0.08), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(177, 120, 255, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%);
}

.oracle-build-panel::after {
  inset: 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.035);
}

.oracle-build-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.oracle-build-grid--oracle-build-shell {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(228px, auto);
  align-items: start;
}

.oracle-build-screen {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
  gap: 10px;
  align-items: stretch;
}

.oracle-build-screen__strategy,
.oracle-build-screen__signals {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.oracle-build-grid--setup {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.oracle-build-option,
.oracle-personal-signals,
.oracle-composition-header,
.oracle-risk-preview,
.oracle-stake-map,
.oracle-active-section,
.oracle-reserve-plays {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: var(--panel-strong);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition:
    transform var(--motion-medium) var(--ease-standard),
    border-color var(--motion-medium) var(--ease-standard),
    box-shadow var(--motion-medium) var(--ease-standard),
    background var(--motion-medium) var(--ease-standard),
    opacity var(--motion-medium) var(--ease-standard);
}

.oracle-build-option {
  --build-group-rgb: var(--oracle-tone-gold);
  --build-group-choice-rgb: var(--oracle-tone-gold);
  --build-group-wave-delay: 0ms;
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(34, 14, 48, 0.94), rgba(14, 6, 24, 0.98)),
    var(--panel-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.oracle-build-option[data-build-state="customized"] {
  border-color: rgba(148, 255, 186, 0.26);
  background:
    linear-gradient(180deg, rgba(24, 40, 32, 0.92), rgba(12, 14, 22, 0.98)),
    var(--panel-strong);
  box-shadow:
    inset 0 1px 0 rgba(220, 255, 234, 0.05),
    inset 0 0 0 1px rgba(148, 255, 186, 0.08),
    0 0 0 1px rgba(148, 255, 186, 0.05);
}

.oracle-build-option[data-build-group="riskProfile"] {
  --build-group-rgb: var(--oracle-tone-jade);
  --build-group-choice-rgb: var(--oracle-tone-jade);
  --build-group-wave-delay: 0ms;
}

.oracle-build-option[data-build-group="strategyFocus"] {
  --build-group-rgb: var(--oracle-tone-mint);
  --build-group-choice-rgb: var(--oracle-tone-mint);
  --build-group-wave-delay: 1200ms;
}

.oracle-build-option[data-build-group="compositionStyle"] {
  --build-group-rgb: var(--oracle-tone-sage);
  --build-group-choice-rgb: var(--oracle-tone-sage);
  --build-group-wave-delay: 2400ms;
}

.oracle-build-option[data-build-group="timeMode"] {
  --build-group-rgb: var(--oracle-tone-moss);
  --build-group-choice-rgb: var(--oracle-tone-moss);
  --build-group-wave-delay: 3600ms;
}

.oracle-build-option:hover,
.oracle-build-option:focus-within,
.oracle-composition-header:hover,
.oracle-risk-preview:hover,
.oracle-stake-map:hover,
.oracle-active-section:hover,
.oracle-reserve-plays:hover {
  transform: translateY(0) scale(1);
  border-color: rgba(255, 229, 155, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 10px 18px rgba(0, 0, 0, 0.12),
    0 0 12px rgba(255, 229, 155, 0.04);
}

.oracle-build-option::before,
.oracle-build-option::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.oracle-build-option::before {
  inset: 0;
  background:
    radial-gradient(circle at 14% 12%, rgba(var(--build-group-rgb), 0.12), transparent 24%),
    radial-gradient(circle at 82% 72%, rgba(var(--build-group-rgb), 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 22%);
  opacity: 0.92;
  transform: translate3d(0, 0, 0);
  animation: oracle-build-group-wave 16s var(--ease-standard) infinite;
  animation-delay: var(--build-group-wave-delay);
}

.oracle-build-option[data-build-state="customized"]::before {
  background:
    radial-gradient(circle at 14% 12%, rgba(144, 255, 182, 0.18), transparent 24%),
    radial-gradient(circle at 82% 72%, rgba(112, 255, 156, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(240, 255, 244, 0.05), transparent 22%);
}

.oracle-build-option::after {
  inset: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.oracle-build-option[data-build-group="riskProfile"]:hover,
.oracle-build-option[data-build-group="riskProfile"]:focus-within {
  border-color: rgba(var(--oracle-tone-jade), 0.24);
}

.oracle-build-option[data-build-group="strategyFocus"]:hover,
.oracle-build-option[data-build-group="strategyFocus"]:focus-within {
  border-color: rgba(var(--oracle-tone-mint), 0.24);
}

.oracle-build-option[data-build-group="compositionStyle"]:hover,
.oracle-build-option[data-build-group="compositionStyle"]:focus-within {
  border-color: rgba(var(--oracle-tone-sage), 0.24);
}

.oracle-build-option[data-build-group="timeMode"]:hover,
.oracle-build-option[data-build-group="timeMode"]:focus-within {
  border-color: rgba(var(--oracle-tone-moss), 0.24);
}

.oracle-build-option[data-build-group="riskProfile"] .oracle-ai-workspace__control-copy strong {
  color: rgba(222, 255, 234, 0.96);
}

.oracle-build-option[data-build-group="strategyFocus"] .oracle-ai-workspace__control-copy strong {
  color: rgba(225, 255, 244, 0.96);
}

.oracle-build-option[data-build-group="compositionStyle"] .oracle-ai-workspace__control-copy strong {
  color: rgba(236, 247, 218, 0.96);
}

.oracle-build-option[data-build-group="timeMode"] .oracle-ai-workspace__control-copy strong {
  color: rgba(236, 242, 201, 0.96);
}

.oracle-build-option .oracle-ai-workspace__control-copy {
  gap: 0;
}

.oracle-build-option__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.oracle-build-option__header .oracle-heading-with-help--copy {
  flex: 0 1 auto;
  min-width: 0;
}

.oracle-build-option__state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.oracle-build-option__state--default {
  color: rgba(255, 236, 175, 0.96);
  background: rgba(255, 208, 86, 0.1);
  border-color: rgba(255, 208, 86, 0.2);
}

.oracle-build-option__state--customized {
  color: rgba(214, 255, 225, 0.98);
  background: rgba(114, 255, 156, 0.14);
  border-color: rgba(114, 255, 156, 0.26);
  box-shadow: 0 0 12px rgba(114, 255, 156, 0.1);
}

.oracle-build-option__state--optional {
  color: rgba(220, 210, 236, 0.9);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(226, 184, 255, 0.12);
}

.oracle-build-option .oracle-ai-workspace__control-copy p {
  margin: 0;
  min-height: 0;
}

.oracle-build-option .oracle-ai-workspace__control-copy p:empty {
  display: none;
}

.oracle-build-screen__strategy .oracle-build-option {
  min-height: 0;
}

.oracle-build-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  min-height: 0;
  align-content: start;
}

.oracle-build-choice-grid--focus {
  position: relative;
  padding: 14px;
}

.oracle-build-choice {
  --choice-rgb: var(--oracle-tone-gold);
  --choice-wave-group: 0;
  --choice-wave-index: 0;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 54px;
  border-radius: 20px;
  border: 1px solid rgba(var(--choice-rgb), 0.42);
  background:
    linear-gradient(180deg, rgba(var(--build-group-choice-rgb), 0.12), rgba(var(--build-group-choice-rgb), 0.03) 58%, rgba(18, 6, 28, 0)),
    linear-gradient(180deg, rgba(var(--choice-rgb), 0.38), rgba(var(--choice-rgb), 0.16) 50%, rgba(18, 6, 28, 0.98)),
    linear-gradient(180deg, rgba(36, 14, 52, 0.96), rgba(18, 6, 28, 0.98));
  color: rgba(255, 248, 236, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 24px rgba(var(--choice-rgb), 0.12),
    inset 0 -8px 16px rgba(0, 0, 0, 0.18),
    0 10px 20px rgba(0, 0, 0, 0.14),
    0 0 18px rgba(var(--choice-rgb), 0.08);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.12;
  text-shadow: 0 1px 0 rgba(14, 8, 22, 0.56);
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color var(--motion-medium) var(--ease-standard),
    box-shadow var(--motion-medium) var(--ease-standard),
    background var(--motion-medium) var(--ease-standard),
    color var(--motion-medium) var(--ease-standard),
    transform var(--motion-medium) var(--ease-standard),
    filter var(--motion-medium) var(--ease-standard);
  animation: oracle-build-choice-idle 11.8s var(--ease-standard) infinite;
  animation-delay: calc((var(--choice-wave-group) * 860ms) + (var(--choice-wave-index) * 180ms));
}

.oracle-build-choice__label {
  position: relative;
  z-index: 1;
}

.oracle-build-choice__state-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.oracle-build-choice__state-tag--default {
  color: rgba(255, 240, 194, 0.98);
  background: rgba(255, 212, 96, 0.14);
  border-color: rgba(255, 212, 96, 0.24);
}

.oracle-build-choice__state-tag--customized {
  color: rgba(220, 255, 231, 0.98);
  background: rgba(114, 255, 156, 0.16);
  border-color: rgba(114, 255, 156, 0.28);
}

.oracle-build-choice::before,
.oracle-build-choice::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.oracle-build-choice::before {
  inset: 1px 1px auto 1px;
  height: 52%;
  border-radius: 19px 19px 15px 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at 50% 0%, rgba(var(--choice-rgb), 0.2), transparent 70%),
    radial-gradient(circle at 18% 24%, rgba(var(--build-group-choice-rgb), 0.12), transparent 58%);
  opacity: 1;
  transform: translateX(-8%);
  animation: oracle-build-choice-sheen 11.8s var(--ease-emphasized) infinite;
  animation-delay: calc((var(--choice-wave-group) * 860ms) + (var(--choice-wave-index) * 180ms));
}

.oracle-build-choice::after {
  inset: 7px;
  border-radius: 14px;
  border: 1px solid rgba(var(--choice-rgb), 0.14);
}

.oracle-build-choice:hover,
.oracle-build-choice:focus-visible {
  border-color: rgba(var(--choice-rgb), 0.6);
  color: rgba(255, 252, 246, 1);
  transform: translateY(-1px) scale(1.018);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 22px rgba(var(--choice-rgb), 0.14),
    0 0 0 1px rgba(var(--choice-rgb), 0.12),
    0 10px 16px rgba(0, 0, 0, 0.12),
    0 0 14px rgba(var(--choice-rgb), 0.12);
}

.oracle-build-option[data-build-group="riskProfile"] .oracle-build-choice:hover,
.oracle-build-option[data-build-group="riskProfile"] .oracle-build-choice:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 22px rgba(var(--choice-rgb), 0.14),
    0 0 0 1px rgba(var(--choice-rgb), 0.12),
    0 10px 16px rgba(0, 0, 0, 0.12),
    0 0 16px rgba(var(--oracle-tone-jade), 0.14);
}

.oracle-build-option[data-build-group="strategyFocus"] .oracle-build-choice:hover,
.oracle-build-option[data-build-group="strategyFocus"] .oracle-build-choice:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 22px rgba(var(--choice-rgb), 0.14),
    0 0 0 1px rgba(var(--choice-rgb), 0.12),
    0 10px 16px rgba(0, 0, 0, 0.12),
    0 0 16px rgba(var(--oracle-tone-mint), 0.14);
}

.oracle-build-option[data-build-group="compositionStyle"] .oracle-build-choice:hover,
.oracle-build-option[data-build-group="compositionStyle"] .oracle-build-choice:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 22px rgba(var(--choice-rgb), 0.14),
    0 0 0 1px rgba(var(--choice-rgb), 0.12),
    0 10px 16px rgba(0, 0, 0, 0.12),
    0 0 16px rgba(var(--oracle-tone-sage), 0.12);
}

.oracle-build-option[data-build-group="timeMode"] .oracle-build-choice:hover,
.oracle-build-option[data-build-group="timeMode"] .oracle-build-choice:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 22px rgba(var(--choice-rgb), 0.14),
    0 0 0 1px rgba(var(--choice-rgb), 0.12),
    0 10px 16px rgba(0, 0, 0, 0.12),
    0 0 16px rgba(var(--oracle-tone-moss), 0.12);
}

.oracle-build-choice.is-active {
  border-color: rgba(var(--choice-rgb), 0.72);
  background:
    linear-gradient(180deg, rgba(var(--choice-rgb), 0.58), rgba(var(--choice-rgb), 0.26) 42%, rgba(19, 7, 28, 0.95)),
    linear-gradient(180deg, rgba(42, 18, 60, 0.98), rgba(19, 7, 28, 1));
  color: rgba(255, 252, 247, 1);
  box-shadow:
    0 0 0 1px rgba(var(--choice-rgb), 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 24px rgba(var(--choice-rgb), 0.18),
    0 8px 16px rgba(0, 0, 0, 0.12),
    0 0 14px rgba(var(--choice-rgb), 0.14);
  animation-name: oracle-build-choice-idle-active;
}

.oracle-build-choice.is-default-active {
  transform: translateY(-1px) scale(1.015);
}

.oracle-build-choice.is-user-active {
  transform: translateY(-2px) scale(1.06);
  border-color: rgba(144, 255, 182, 0.42);
  box-shadow:
    0 0 0 1px rgba(144, 255, 182, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 0 26px rgba(var(--choice-rgb), 0.2),
    0 10px 18px rgba(0, 0, 0, 0.16),
    0 0 20px rgba(114, 255, 156, 0.16);
}

.oracle-build-choice.is-dimmed {
  border-color: rgba(188, 196, 205, 0.12);
  background:
    linear-gradient(180deg, rgba(56, 58, 68, 0.28), rgba(23, 18, 32, 0.94)),
    linear-gradient(180deg, rgba(29, 17, 40, 0.92), rgba(16, 8, 24, 0.98));
  color: rgba(203, 196, 214, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 18px rgba(0, 0, 0, 0.16);
  filter: saturate(0.42) brightness(0.82);
  opacity: 0.72;
}

.oracle-build-choice.is-dimmed::before {
  opacity: 0.42;
}

.oracle-build-choice.is-dimmed::after {
  border-color: rgba(255, 255, 255, 0.04);
}

.oracle-build-option[data-build-state="customized"] .oracle-build-choice:not(.is-active):hover,
.oracle-build-option[data-build-state="customized"] .oracle-build-choice:not(.is-active):focus-visible {
  transform: translateY(-1px) scale(0.995);
  opacity: 0.9;
  filter: saturate(0.65) brightness(0.92);
}

.oracle-build-choice[data-choice-key="riskProfile"] {
  --choice-wave-group: 0;
}

.oracle-build-choice[data-choice-key="strategyFocus"] {
  --choice-wave-group: 1;
}

.oracle-build-choice[data-choice-key="compositionStyle"] {
  --choice-wave-group: 2;
}

.oracle-build-choice[data-choice-key="timeMode"] {
  --choice-wave-group: 3;
}

.oracle-build-choice-grid > .oracle-build-choice:nth-child(1) {
  --choice-wave-index: 0;
}

.oracle-build-choice-grid > .oracle-build-choice:nth-child(2) {
  --choice-wave-index: 1;
}

.oracle-build-choice-grid > .oracle-build-choice:nth-child(3) {
  --choice-wave-index: 2;
}

.oracle-build-choice-grid > .oracle-build-choice:nth-child(4) {
  --choice-wave-index: 3;
}

.oracle-build-choice-grid > .oracle-build-choice:nth-child(5) {
  --choice-wave-index: 4;
}

.oracle-build-choice-grid > .oracle-build-choice:nth-child(6) {
  --choice-wave-index: 5;
}

.oracle-build-choice[data-choice-tone="jade"] {
  --choice-rgb: var(--oracle-tone-jade);
}

.oracle-build-choice[data-choice-tone="emerald"] {
  --choice-rgb: var(--oracle-tone-emerald);
}

.oracle-build-choice[data-choice-tone="mint"] {
  --choice-rgb: var(--oracle-tone-mint);
}

.oracle-build-choice[data-choice-tone="amber"] {
  --choice-rgb: var(--oracle-tone-amber);
}

.oracle-build-choice[data-choice-tone="crimson"] {
  --choice-rgb: var(--oracle-tone-crimson);
}

.oracle-build-choice[data-choice-tone="violet"] {
  --choice-rgb: var(--oracle-tone-violet);
}

.oracle-build-choice[data-choice-tone="teal"] {
  --choice-rgb: var(--oracle-tone-teal);
}

.oracle-build-choice[data-choice-tone="aqua"] {
  --choice-rgb: var(--oracle-tone-aqua);
}

.oracle-build-choice[data-choice-tone="cyan"] {
  --choice-rgb: var(--oracle-tone-cyan);
}

.oracle-build-choice[data-choice-tone="rose"] {
  --choice-rgb: var(--oracle-tone-rose);
}

.oracle-build-choice[data-choice-tone="blue"] {
  --choice-rgb: var(--oracle-tone-blue);
}

.oracle-build-choice[data-choice-tone="lime"] {
  --choice-rgb: var(--oracle-tone-lime);
}

.oracle-build-choice[data-choice-tone="moss"] {
  --choice-rgb: var(--oracle-tone-moss);
}

.oracle-build-choice[data-choice-tone="sage"] {
  --choice-rgb: var(--oracle-tone-sage);
}

.oracle-build-choice[data-choice-tone="indigo"] {
  --choice-rgb: var(--oracle-tone-indigo);
}

.oracle-build-choice[data-choice-tone="gold"] {
  --choice-rgb: var(--oracle-tone-gold);
}

.oracle-build-choice[data-choice-tone="silver"] {
  --choice-rgb: var(--oracle-tone-silver);
}

.oracle-build-choice__center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  min-width: 110px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  border-color: rgba(255, 233, 172, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 242, 196, 0.36), rgba(205, 162, 255, 0.16) 50%, rgba(24, 9, 36, 0.98)),
    linear-gradient(180deg, rgba(46, 18, 66, 0.98), rgba(20, 8, 32, 1));
  box-shadow:
    0 0 0 1px rgba(255, 229, 155, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 0 28px rgba(255, 229, 155, 0.12),
    0 12px 22px rgba(0, 0, 0, 0.16),
    0 0 18px rgba(255, 229, 155, 0.16);
  animation-name: oracle-build-choice-idle-active;
  animation-duration: 11.8s;
  animation-timing-function: var(--ease-standard);
  animation-iteration-count: infinite;
  animation-delay: calc((var(--choice-wave-group) * 860ms) + 280ms);
}

.oracle-build-choice__center.is-user-active {
  transform: translate(-50%, -50%) scale(1.08);
}

.oracle-build-choice__center.is-default-active {
  transform: translate(-50%, -50%) scale(1.02);
}

.oracle-build-choice__center.is-dimmed {
  transform: translate(-50%, -50%) scale(0.95);
}

.oracle-build-choice__center::after {
  inset: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 241, 189, 0.22);
  animation: oracle-master-node-pulse 7.8s var(--ease-emphasized) infinite 1200ms;
}

.oracle-build-choice__center:hover,
.oracle-build-choice__center:focus-visible {
  border-color: rgba(255, 241, 189, 0.76);
  transform: translate(-50%, -50%) scale(1.028);
  box-shadow:
    0 0 0 1px rgba(255, 229, 155, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 30px rgba(255, 229, 155, 0.16),
    0 14px 24px rgba(0, 0, 0, 0.16),
    0 0 24px rgba(255, 229, 155, 0.22);
}

.oracle-personal-signals {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.oracle-personal-signals[data-build-state="customized"] {
  border-color: rgba(148, 255, 186, 0.26);
  background:
    linear-gradient(180deg, rgba(24, 40, 32, 0.92), rgba(12, 14, 22, 0.98)),
    var(--panel-strong);
  box-shadow:
    inset 0 1px 0 rgba(220, 255, 234, 0.05),
    inset 0 0 0 1px rgba(148, 255, 186, 0.08),
    0 0 0 1px rgba(148, 255, 186, 0.05);
}

.oracle-personal-signals[data-build-state="customized"] .oracle-field--filled .oracle-field__label {
  color: rgba(210, 255, 222, 0.94);
}

.oracle-personal-signals[data-build-state="customized"] .oracle-field--filled .oracle-field__input {
  border-color: rgba(114, 255, 156, 0.22);
  background:
    linear-gradient(180deg, rgba(150, 255, 188, 0.08), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, rgba(18, 20, 29, 0.94), rgba(10, 10, 17, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(240, 255, 245, 0.05),
    inset 0 0 0 1px rgba(114, 255, 156, 0.06),
    0 0 0 1px rgba(114, 255, 156, 0.04);
}

.oracle-personal-signals[data-build-state="customized"] .oracle-field--filled .oracle-field__hint {
  color: rgba(201, 234, 210, 0.76);
}

.oracle-build-summary {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
}

.oracle-build-summary__body {
  display: grid;
  align-content: start;
  gap: 8px;
}

.oracle-build-summary__lead,
.oracle-build-summary__detail {
  margin: 0;
}

.oracle-build-summary__lead {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.oracle-build-summary__pills {
  gap: 6px;
  min-height: 0;
}

.oracle-review {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.oracle-review--build .oracle-build-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

.oracle-review--build .oracle-build-grid--oracle-build-shell {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
}

.oracle-composition-header {
  position: relative;
  overflow: hidden;
}

.oracle-stepper,
.oracle-build-panel,
.oracle-composition-header,
.oracle-active-section,
.oracle-ai-workspace__primary-actions,
.oracle-review__overview,
.oracle-review__section--safety {
  grid-column: 1 / -1;
}

.oracle-review__overview {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 12px;
}

.oracle-composition-header::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 229, 155, 0.12), rgba(255, 229, 155, 0));
  pointer-events: none;
}

.oracle-risk-preview .oracle-summary-grid,
.oracle-stake-map .oracle-active-plays,
.oracle-reserve-plays .oracle-active-plays,
.oracle-active-plays {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.oracle-composition-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 100%;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid var(--color-border-soft);
  background: var(--panel-strong);
}

.oracle-composition-card--active {
  border-color: var(--panel-border-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.oracle-composition-card--reserve {
  border-style: dashed;
  border-color: rgba(255, 229, 155, 0.18);
  background: linear-gradient(180deg, rgba(32, 14, 46, 0.82), rgba(13, 6, 22, 0.9));
}

.oracle-composition-badge,
.oracle-risk-badge,
.oracle-style-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.oracle-composition-badge {
  color: var(--color-mint-strong);
  background: rgba(72, 219, 150, 0.12);
  border: 1px solid var(--color-oracle-border);
}

.oracle-risk-badge {
  color: var(--color-gold-strong);
  background: rgba(255, 229, 155, 0.12);
  border: 1px solid rgba(255, 229, 155, 0.18);
}

.oracle-style-badge {
  color: var(--color-text-main);
  background: rgba(208, 154, 255, 0.12);
  border: 1px solid rgba(208, 154, 255, 0.18);
}

.oracle-refresh-variant-button,
.oracle-apply-strategy-button {
  min-width: 0;
}

.oracle-personal-signals__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.oracle-personal-signals .oracle-ai-workspace__personal-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.oracle-ai-workspace__primary-actions--oracle-build {
  align-self: end;
  margin-top: auto;
}

.oracle-review__section--why {
  display: grid;
  gap: 10px;
}

@media (max-width: 900px) {
  .oracle-build-grid {
    grid-template-columns: 1fr;
  }

  .oracle-build-grid--oracle-build-shell,
  .oracle-build-grid--setup,
  .oracle-build-screen,
  .oracle-review,
  .oracle-review__overview,
  .oracle-personal-signals .oracle-ai-workspace__personal-grid,
  .oracle-personal-signals__meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .oracle-build-option,
  .oracle-personal-signals,
  .oracle-composition-header,
  .oracle-risk-preview,
  .oracle-stake-map,
  .oracle-active-section,
  .oracle-reserve-plays {
    padding: 15px;
    border-radius: 16px;
  }

  .oracle-risk-preview .oracle-summary-grid,
  .oracle-stake-map .oracle-active-plays,
  .oracle-reserve-plays .oracle-active-plays,
  .oracle-active-plays {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

/* Base Layout */
html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  position: relative;
  background:
    radial-gradient(circle at 18% 6%, rgba(162, 72, 255, 0.16), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(255, 229, 155, 0.08), transparent 22%),
    linear-gradient(180deg, var(--color-bg-0) 0%, var(--bg-top) 34%, var(--bg-bottom) 100%);
}

.oracle-game {
  width: min(100%, 1680px);
  margin: 0 auto;
  min-height: 100svh;
  height: auto;
  padding:
    calc(12px + env(safe-area-inset-top, 0px))
    12px
    calc(16px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.oracle-matrix-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: screen;
}

/* Panels */
.oracle-panel,
.oracle-dashboard {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow:
    var(--shadow-panel),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.oracle-panel {
  padding: 12px;
  display: grid;
  gap: 10px;
  min-height: 0;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    padding 220ms ease;
}

.oracle-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.oracle-panel__head > * {
  min-width: 0;
}

.oracle-heading-with-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.oracle-heading-with-help--copy,
.oracle-heading-with-help--eyebrow {
  align-items: flex-start;
}

.oracle-heading-with-help h1,
.oracle-heading-with-help h2,
.oracle-heading-with-help h3,
.oracle-heading-with-help h4,
.oracle-heading-with-help p,
.oracle-heading-with-help span,
.oracle-heading-with-help strong {
  min-width: 0;
  margin: 0;
}

.oracle-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--panel-border-strong);
  border-radius: 999px;
  background: var(--color-gold-dim);
  color: var(--color-gold-strong);
  font: inherit;
  cursor: help;
  flex-shrink: 0;
}

.oracle-help__icon {
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.oracle-help__bubble {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: min(280px, 72vw);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--color-border-mid);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(10, 4, 18, 0.97);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.32);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    visibility 160ms ease;
}

.oracle-help__bubble--left {
  left: 0;
  right: auto;
}

.oracle-help:hover .oracle-help__bubble,
.oracle-help:focus-visible .oracle-help__bubble,
.oracle-help:focus .oracle-help__bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.oracle-help:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.oracle-panel__head--compact {
  align-items: start;
}

.oracle-panel__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.oracle-panel__title--hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(1.08rem, 2vw, 1.62rem);
}

.oracle-brand-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform var(--motion-medium) var(--ease-standard),
    opacity var(--motion-fast) var(--ease-soft-out),
    filter var(--motion-medium) var(--ease-standard);
}

.oracle-brand-button:hover,
.oracle-brand-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.oracle-brand-button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
  border-radius: 16px;
}

.oracle-brand-copy {
  display: inline-grid;
  gap: 1px;
}

.oracle-brand-subtitle {
  color: var(--color-text-soft);
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.oracle-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  border: 1px solid var(--panel-border-strong);
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 244, 214, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(255, 229, 155, 0.2), rgba(162, 72, 255, 0.16)),
    rgba(255, 255, 255, 0.03);
  color: var(--color-gold-strong);
  font-size: 0.72em;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 6px 16px rgba(0, 0, 0, 0.18);
}

.oracle-panel__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.35;
}

.oracle-panel__hint--legal {
  width: 100%;
  max-width: none;
  padding-top: 2px;
  color: var(--color-text-soft);
  font-size: 0.76rem;
  line-height: 1.4;
}

.oracle-mode-dock {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  padding: 2px 0 0;
  overflow: visible;
}

.oracle-mode-dock__label {
  color: rgba(248, 239, 255, 0.56);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.oracle-mode-dock__switcher {
  width: auto;
  overflow: visible;
}

.oracle-panel__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.oracle-pill {
  position: relative;
  border-radius: 999px;
  padding: 8px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(36, 14, 52, 0.96), rgba(16, 7, 26, 0.98));
  border: 1px solid var(--color-border-soft);
  color: var(--color-text-muted);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    var(--shadow-chip);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.oracle-pill--soft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(36, 15, 54, 0.94), rgba(19, 8, 31, 0.96));
  color: var(--color-text-main);
  border-color: var(--color-border-soft);
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

.oracle-pill--subtle {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(37, 14, 54, 0.96), rgba(18, 7, 28, 0.98));
  color: var(--color-gold-strong);
  border-color: var(--panel-border-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 14px rgba(0, 0, 0, 0.1);
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.74rem;
}

.oracle-pill--icon,
.oracle-toggle-pill--icon {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
}

.oracle-toggle-pill {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid var(--color-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(37, 14, 54, 0.96), rgba(18, 7, 28, 0.98));
  color: var(--color-text-muted);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 16px var(--oracle-shadow-smoke);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color var(--motion-medium) var(--ease-standard),
    background var(--motion-medium) var(--ease-standard),
    color var(--motion-medium) var(--ease-standard),
    transform var(--motion-medium) var(--ease-standard),
    box-shadow var(--motion-medium) var(--ease-standard),
    opacity var(--motion-fast) var(--ease-soft-out);
}

.oracle-toggle-pill:hover {
  border-color: var(--color-border-mid);
  color: var(--text);
  transform: translateY(0) scale(1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 14px rgba(0, 0, 0, 0.12),
    0 0 12px rgba(255, 229, 155, 0.04);
}

.oracle-toggle-pill:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.oracle-toggle-pill[aria-pressed="true"] {
  border-color: var(--panel-border-strong);
  background:
    linear-gradient(180deg, rgba(255, 238, 181, 0.12), rgba(177, 122, 255, 0.08) 58%, rgba(28, 11, 42, 0.96)),
    linear-gradient(180deg, rgba(40, 16, 60, 0.98), rgba(18, 7, 28, 0.98));
  color: var(--color-gold-strong);
  box-shadow:
    0 0 0 1px rgba(255, 229, 155, 0.05),
    0 8px 14px rgba(0, 0, 0, 0.12),
    0 0 12px rgba(255, 229, 155, 0.05);
}

.oracle-toggle-pill:active {
  transform: translateY(0) scale(var(--press-scale-soft));
}

.oracle-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}

.oracle-panel--range {
  padding: 8px 10px;
  gap: 6px;
}

.oracle-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.oracle-toolbar__range,
.oracle-toolbar__economy {
  display: grid;
  grid-template-rows: minmax(42px, auto) auto auto auto;
  min-width: 0;
  align-content: start;
  gap: 5px;
  transition: transform 220ms ease, gap 220ms ease;
}

.oracle-toolbar__range > .oracle-panel__head--compact,
.oracle-toolbar__economy > .oracle-panel__head--compact {
  min-height: 44px;
  display: grid;
  align-items: end;
}

.oracle-toolbar__range > .oracle-panel__head--compact {
  grid-template-columns: minmax(0, 1fr);
}

.oracle-toolbar__economy > .oracle-panel__head--compact {
  grid-template-columns: minmax(0, 1fr);
}

.oracle-range-inputs,
.oracle-stake-row,
.oracle-inline-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.oracle-inline-fields--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oracle-field {
  display: grid;
  gap: 8px;
}

.oracle-field__label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.oracle-field__hint {
  color: var(--color-text-soft);
  font-size: 0.68rem;
  line-height: 1.35;
}

.oracle-field__input,
.oracle-select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(226, 184, 255, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(18, 8, 29, 0.94), rgba(12, 5, 21, 0.98));
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -8px 14px rgba(0, 0, 0, 0.12),
    0 8px 14px rgba(0, 0, 0, 0.08);
  padding: 10px 12px;
  font: inherit;
}

.oracle-field__input--symbolic {
  letter-spacing: 0.02em;
}

.oracle-field__input--symbolic::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.oracle-exact-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0;
  align-items: stretch;
  position: relative;
  border-radius: 16px;
  overflow: clip;
  padding: 4px;
  border: 1px solid rgba(226, 184, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(18, 8, 29, 0.96), rgba(12, 5, 21, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 14px rgba(0, 0, 0, 0.08);
}

.oracle-exact-control__input {
  min-width: 0;
  min-height: 100%;
  border: 0;
  background: transparent;
  border-radius: 12px;
  box-shadow: none;
  padding-right: 10px;
}

.oracle-exact-control__input--hinting::placeholder {
  font-size: 0.74rem;
  letter-spacing: 0;
  line-height: 1.2;
}

.oracle-exact-control:focus-within {
  border-color: rgba(255, 229, 155, 0.4);
  box-shadow:
    inset 0 0 0 1px rgba(255, 229, 155, 0.16),
    0 0 0 1px rgba(255, 229, 155, 0.08);
}

.oracle-exact-control__input:focus-visible {
  outline: none;
}

.oracle-exact-control__input::-webkit-outer-spin-button,
.oracle-exact-control__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.oracle-exact-control__input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.oracle-exact-stepper {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 4px;
  min-width: 42px;
  align-self: center;
  padding-left: 4px;
}

.oracle-exact-stepper__button {
  min-width: 38px;
  min-height: 18px;
  border-radius: 12px;
  border: 1px solid rgba(226, 184, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(41, 16, 59, 0.96), rgba(20, 8, 31, 0.98));
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 6px 10px rgba(0, 0, 0, 0.08);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-medium) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard);
}

.oracle-exact-stepper__button:hover {
  border-color: var(--panel-border-strong);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 18px rgba(0, 0, 0, 0.14),
    0 0 14px rgba(255, 229, 155, 0.06);
}

.oracle-exact-stepper__button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.oracle-exact-stepper__button:active {
  transform: scale(var(--press-scale));
}

.oracle-field__input:focus-visible,
.oracle-select:focus-visible,
.oracle-ghost-button:focus-visible,
.oracle-play-button:focus-visible,
.oracle-chip:focus-visible,
.oracle-card__select:focus-visible,
.oracle-card__status:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Buttons / CTAs */
.oracle-slider-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.oracle-slider-meta strong {
  color: var(--accent);
  font-family: "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-size: clamp(1.22rem, 2.2vw, 1.78rem);
  line-height: 1;
}

.oracle-slider-shell {
  position: relative;
  min-width: 0;
  touch-action: none;
}

.oracle-slider-shell.is-active {
  z-index: 18;
}

.oracle-slider-shell.is-loupe-locked {
  z-index: 19;
}

.oracle-slider-scrub {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: ew-resize;
  touch-action: none;
  background: transparent;
}

.oracle-controls__slider {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 12px;
  margin: 0;
  border: 1px solid var(--color-border-mid);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 48%, rgba(0, 0, 0, 0.1)),
    linear-gradient(90deg, rgba(123, 57, 255, 0.88), rgba(255, 230, 150, 0.88)),
    rgba(18, 6, 25, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -3px 6px rgba(0, 0, 0, 0.18),
    0 12px 20px rgba(0, 0, 0, 0.16);
  transition:
    box-shadow var(--motion-medium) var(--ease-standard),
    border-color var(--motion-medium) var(--ease-standard),
    filter var(--motion-medium) var(--ease-standard);
}

.oracle-slider-shell.is-active .oracle-controls__slider {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -3px 6px rgba(0, 0, 0, 0.18),
    0 12px 20px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(255, 229, 155, 0.08),
    0 0 16px rgba(136, 111, 196, 0.1);
}

.oracle-controls__slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 246, 212, 0.96);
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.96) 0 14%, rgba(255, 246, 214, 0.96) 14%, rgba(255, 214, 109, 0.96) 34%, rgba(162, 65, 255, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 0 4px rgba(162, 65, 255, 0.1),
    0 10px 18px rgba(0, 0, 0, 0.22);
  transition:
    transform var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-medium) var(--ease-standard),
    filter var(--motion-medium) var(--ease-standard);
}

.oracle-controls__slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 246, 212, 0.96);
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.96) 0 14%, rgba(255, 246, 214, 0.96) 14%, rgba(255, 214, 109, 0.96) 34%, rgba(162, 65, 255, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 0 4px rgba(162, 65, 255, 0.1),
    0 10px 18px rgba(0, 0, 0, 0.22);
  transition:
    transform var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-medium) var(--ease-standard),
    filter var(--motion-medium) var(--ease-standard);
}

.oracle-controls__ticks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  color: rgba(210, 190, 244, 0.86);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

.oracle-controls__ticks--mapped {
  position: relative;
  display: block;
  min-height: 1.3em;
}

.oracle-controls__ticks--mapped span {
  position: absolute;
  top: 0;
  white-space: nowrap;
  transform: translateX(-50%);
}

.oracle-controls__ticks--mapped span[data-align="start"] {
  transform: translateX(0);
}

.oracle-controls__ticks--mapped span[data-align="end"] {
  transform: translateX(-100%);
}

.oracle-controls__ticks span:last-child {
  text-align: right;
}

.oracle-controls__slider--compact {
  height: 12px;
}

.oracle-controls__slider--compact::-webkit-slider-thumb,
.oracle-controls__slider--compact::-moz-range-thumb {
  width: 24px;
  height: 24px;
}

.oracle-slider-meta--compact strong {
  font-size: clamp(1.22rem, 2.2vw, 1.78rem);
}

.oracle-slider-meta--compact span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.oracle-slider-loupe {
  position: absolute;
  left: var(--loupe-left, 50%);
  bottom: calc(100% + 14px);
  width: min(262px, calc(100vw - 36px));
  padding: 11px 12px 12px;
  border-radius: 22px;
  border: 1px solid var(--panel-border-strong);
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 241, 210, 0.1), transparent 48%),
    linear-gradient(180deg, rgba(74, 40, 101, 0.22), rgba(35, 12, 52, 0.96)),
    rgba(31, 10, 45, 0.97);
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 229, 155, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translate(-50%, 8px) scale(0.97);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.oracle-slider-loupe::before {
  content: "";
  position: absolute;
  inset: 7px 18px auto;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent);
  opacity: 0.75;
}

.oracle-slider-loupe::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(255, 229, 155, 0.14);
  border-bottom: 1px solid rgba(255, 229, 155, 0.14);
  background: rgba(35, 12, 52, 0.96);
  transform: translate(-50%, -7px) rotate(45deg);
}

.oracle-slider-shell.is-active .oracle-slider-loupe {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.oracle-slider-shell.is-loupe-locked .oracle-slider-loupe {
  pointer-events: auto;
  cursor: ew-resize;
}

.oracle-slider-shell.is-magnified .oracle-slider-loupe {
  transform: translate(-50%, -2px) scale(1.02);
}

.oracle-slider-loupe__label {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oracle-slider-loupe__value {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  color: var(--accent);
  font-family: "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-size: clamp(1.48rem, 3vw, 1.92rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.oracle-slider-loupe__hint {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  color: rgba(248, 239, 255, 0.8);
  font-size: 0.68rem;
  line-height: 1.25;
}

.oracle-slider-loupe__scale {
  position: relative;
  margin-top: 8px;
  height: 58px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(226, 184, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(18, 8, 28, 0.28), rgba(9, 4, 16, 0.08)),
    rgba(17, 7, 25, 0.5);
}

.oracle-slider-loupe__scale::before,
.oracle-slider-loupe__scale::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  z-index: 2;
  pointer-events: none;
}

.oracle-slider-loupe__scale::before {
  left: 0;
  background: linear-gradient(90deg, rgba(31, 10, 45, 0.96), rgba(31, 10, 45, 0));
}

.oracle-slider-loupe__scale::after {
  right: 0;
  background: linear-gradient(270deg, rgba(31, 10, 45, 0.96), rgba(31, 10, 45, 0));
}

.oracle-slider-loupe__track {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: translate(calc(-50% + var(--loupe-track-shift, 0px)), -50%);
  transition: transform 120ms ease-out;
}

.oracle-slider-loupe__tick {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: var(--loupe-step-px, 34px);
  min-width: 0;
  color: rgba(248, 239, 255, 0.55);
  font-size: 0.52rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.oracle-slider-loupe__tick::before {
  content: "";
  width: 2px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.oracle-slider-loupe__tick.is-focus {
  color: var(--accent);
}

.oracle-slider-loupe__tick.is-focus::before {
  height: 20px;
  background: linear-gradient(180deg, rgba(255, 229, 155, 0.96), rgba(162, 72, 255, 0.82));
  box-shadow: 0 0 8px rgba(255, 229, 155, 0.16);
}

.oracle-slider-loupe__focus-line {
  position: absolute;
  left: 50%;
  top: 9px;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 233, 178, 0.98), rgba(174, 102, 255, 0.92));
  box-shadow:
    0 0 0 1px rgba(255, 229, 155, 0.14),
    0 0 10px rgba(255, 229, 155, 0.18);
  transform: translateX(-50%);
  z-index: 3;
}

.oracle-controls__ticks--compact {
  font-size: 0.82rem;
}

.oracle-stake-row--actions {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.oracle-stake-row--actions .oracle-quick-stakes {
  min-width: 0;
}

.oracle-stake-row--actions .oracle-ghost-button {
  white-space: nowrap;
}

.oracle-balance {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.oracle-balance--toolbar {
  margin-left: 4px;
  flex: 0 0 auto;
}

.oracle-balance--toolbar .oracle-balance__value {
  line-height: 0.92;
}

.oracle-balance__label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oracle-balance__value {
  color: var(--accent);
  font-family: "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: -0.04em;
  transition: color 180ms ease, text-shadow 220ms ease, transform 220ms ease;
}

.oracle-balance__value.is-balance-up {
  animation: oracle-balance-pulse-up 560ms ease-out both;
}

.oracle-balance__value.is-balance-down {
  animation: oracle-balance-pulse-down 480ms ease-out both;
}

.oracle-balance__value.is-balance-jackpot {
  animation: oracle-balance-jackpot 760ms ease-out both;
}

.oracle-quick-stakes,
.oracle-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Chips / Pills */
.oracle-chip,
.oracle-ghost-button,
.oracle-card__select,
.oracle-card__status {
  position: relative;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid var(--color-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.014)),
    linear-gradient(180deg, rgba(39, 16, 56, 0.96), rgba(18, 8, 29, 0.98));
  color: var(--color-text-muted);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -10px 14px rgba(0, 0, 0, 0.14),
    var(--shadow-chip);
  padding: 7px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform var(--motion-medium) var(--ease-standard),
    opacity var(--motion-fast) var(--ease-soft-out),
    border-color var(--motion-medium) var(--ease-standard),
    background var(--motion-medium) var(--ease-standard),
    box-shadow var(--motion-medium) var(--ease-standard),
    color var(--motion-medium) var(--ease-standard),
    filter var(--motion-medium) var(--ease-standard);
}

.oracle-chip:hover,
.oracle-ghost-button:hover,
.oracle-card__select:hover {
  border-color: var(--panel-border-strong);
  transform: translateY(0) scale(1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 12px rgba(0, 0, 0, 0.1),
    0 0 10px rgba(255, 229, 155, 0.04);
}

.oracle-chip.is-active,
.oracle-card.is-active .oracle-card__select {
  background:
    linear-gradient(180deg, rgba(255, 238, 181, 0.16), rgba(177, 122, 255, 0.12) 58%, rgba(28, 11, 42, 0.96)),
    linear-gradient(180deg, rgba(40, 16, 60, 0.98), rgba(18, 7, 28, 0.98));
  border-color: var(--panel-border-strong);
  color: var(--color-gold-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(255, 229, 155, 0.06),
    0 7px 14px rgba(0, 0, 0, 0.11),
    0 0 12px rgba(255, 229, 155, 0.06);
}

.oracle-card__status.is-active {
  background:
    linear-gradient(180deg, rgba(var(--oracle-active-rgb), 0.18), rgba(var(--oracle-active-strong-rgb), 0.08) 58%, rgba(26, 12, 36, 0.96)),
    linear-gradient(180deg, rgba(38, 16, 52, 0.98), rgba(18, 7, 28, 0.98));
  border-color: var(--color-oracle-border);
  color: var(--oracle-active-text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(var(--oracle-active-rgb), 0.06),
    0 10px 18px var(--oracle-shadow-smoke),
    0 0 18px var(--oracle-active-glow);
}

.oracle-chip:active,
.oracle-ghost-button:active,
.oracle-card__select:active,
.oracle-card__status:active {
  transform: translateY(0) scale(var(--press-scale-soft));
  animation: oracle-chip-press var(--motion-fast) var(--ease-soft-out) both;
}

.oracle-chip[disabled],
.oracle-ghost-button[disabled],
.oracle-card__select[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.oracle-ghost-button--tiny {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 0.72rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 6px 10px rgba(0, 0, 0, 0.1);
}

.oracle-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  white-space: nowrap;
  font-size: 0.82rem;
  align-self: flex-start;
}

.oracle-card__status--static {
  cursor: default;
  pointer-events: none;
}

.oracle-card__status--static:not(.is-active) {
  border-color: var(--color-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(34, 13, 49, 0.95), rgba(18, 7, 28, 0.98));
  color: var(--color-text-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 6px 12px rgba(0, 0, 0, 0.08);
}

.oracle-dashboard {
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: clamp(680px, calc(100svh - 248px), 760px);
  gap: 10px;
  align-items: stretch;
  transition:
    grid-template-columns var(--motion-medium) var(--ease-standard),
    gap var(--motion-medium) var(--ease-standard),
    padding var(--motion-medium) var(--ease-standard);
}

.oracle-stage-panel,
.oracle-side-panel,
.oracle-history-panel {
  display: grid;
  min-width: 0;
  min-height: 0;
  gap: 10px;
  align-content: start;
  transition:
    transform var(--motion-panel) var(--ease-emphasized),
    gap var(--motion-medium) var(--ease-standard),
    opacity var(--motion-panel) var(--ease-emphasized),
    filter var(--motion-panel) var(--ease-standard);
}

.oracle-stage-panel {
  grid-column: 1;
  grid-row: 1 / span 2;
  height: 100%;
  grid-template-rows: auto minmax(184px, 184px) auto auto minmax(132px, 1fr) auto;
  grid-auto-rows: min-content;
  align-content: start;
}

.oracle-side-panel {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
  padding-inline: 4px 2px;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scroll-padding-top: 18px;
}

.oracle-side-panel > * {
  min-width: 0;
}

.oracle-side-layer {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: stretch;
  pointer-events: none;
  opacity: 0;
}

.oracle-side-layer[hidden] {
  display: none;
}

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

.oracle-side-layer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 22px;
  background: rgba(10, 4, 17, 0.38);
  backdrop-filter: blur(8px);
  opacity: 0;
  cursor: pointer;
  transition: opacity var(--motion-panel) var(--ease-soft-out);
}

.oracle-side-layer.is-open .oracle-side-layer__backdrop {
  opacity: 1;
}

.oracle-side-layer__panel {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  margin: 4px 0;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 229, 155, 0.18);
  background:
    linear-gradient(180deg, rgba(45, 16, 66, 0.9), rgba(18, 8, 30, 0.96)),
    var(--panel-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 28px 44px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 229, 155, 0.04);
  backdrop-filter: blur(var(--panel-blur));
  transform-origin: var(--origin-x, 85%) var(--origin-y, 12%);
  transform: translateY(8px) scale(0.96);
  opacity: 0;
}

.oracle-side-layer.is-open .oracle-side-layer__panel {
  animation: oracle-side-layer-enter var(--motion-panel) var(--ease-emphasized) both;
}

.oracle-side-layer.is-closing .oracle-side-layer__panel {
  animation: oracle-side-layer-exit var(--motion-medium) var(--ease-soft-in) both;
}

.oracle-side-layer.is-closing .oracle-side-layer__backdrop {
  opacity: 0;
}

.oracle-side-layer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.oracle-side-layer__title {
  margin: 0;
  color: var(--color-gold-strong);
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.oracle-side-layer__content {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.oracle-analysis-layer {
  display: grid;
  gap: 12px;
}

.oracle-history--overlay {
  max-height: none;
  padding-right: 0;
}

.oracle-history-panel {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 82px;
  height: 82px;
  max-height: 82px;
  width: 100%;
  align-self: end;
  align-content: stretch;
  flex: 0 0 auto;
  gap: 0;
  overflow: hidden;
  padding-inline: 6px 8px;
  view-transition-name: none;
}

.oracle-ai-panel {
  min-width: 0;
}

.oracle-game[data-prediction-mode="advanced"] .oracle-ai-panel,
.oracle-game[data-prediction-mode="oracle"] .oracle-ai-panel {
  display: none;
}

.oracle-game[data-prediction-mode="simple"] .oracle-ai-panel {
  display: none;
}

.oracle-game[data-prediction-mode="advanced"] .oracle-side-panel,
.oracle-game[data-prediction-mode="oracle"] .oracle-side-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.oracle-prediction-grid {
  min-height: 0;
  overflow: auto;
  padding: 6px 6px 10px;
  overscroll-behavior: contain;
}

/* Stage */
.oracle-stage {
  width: min(100%, 340px);
  min-height: 184px;
  max-height: 184px;
  margin-inline: auto;
  aspect-ratio: 1.55 / 1;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.98), rgba(0, 0, 0, 1));
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 18px 36px rgba(0, 0, 0, 0.28);
  transition:
    width 220ms ease,
    min-height 220ms ease,
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.oracle-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(163, 140, 236, 0.08), transparent 56%),
    radial-gradient(circle at 48% 46%, rgba(121, 255, 182, 0.025), transparent 30%),
    linear-gradient(180deg, rgba(4, 16, 8, 0.82), rgba(0, 0, 0, 0));
}

.oracle-stage::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 0;
  border-radius: 15px;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 12%, transparent 88%, rgba(255, 255, 255, 0.05)),
    radial-gradient(circle at 50% 48%, rgba(164, 139, 235, 0.12), transparent 38%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.012) 0 1px, rgba(255, 255, 255, 0) 1px 4px);
  box-shadow:
    inset 0 0 0 1px rgba(191, 176, 234, 0.07),
    inset 0 0 36px rgba(132, 108, 194, 0.06);
}

.oracle-fx-layer {
  position: absolute;
  inset: -14%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(169, 146, 236, 0.16), transparent 40%),
    radial-gradient(circle at 52% 44%, rgba(255, 232, 168, 0.06), transparent 22%);
  transition: opacity 160ms ease;
}

.oracle-stage:disabled {
  cursor: default;
}

.oracle-stage:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}

.oracle-stage__value {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 18px;
  transform: none;
  display: grid;
  justify-items: center;
  align-content: center;
  color: var(--color-oracle);
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: clamp(2.5rem, 4.4vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow:
    0 0 8px rgba(214, 205, 241, 0.16),
    0 0 20px rgba(126, 255, 184, 0.08),
    0 0 26px rgba(132, 108, 194, 0.12);
}

.oracle-stage__value::before {
  content: "";
  position: absolute;
  inset: 18% 24%;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(169, 146, 236, 0.18), rgba(169, 146, 236, 0));
  filter: blur(14px);
}

.oracle-stage__digit-line {
  display: inline-block;
}

.oracle-stage__matrix,
.oracle-stage__scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.oracle-stage__matrix {
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 160ms ease;
}

.oracle-stage__matrix.is-active {
  opacity: 1;
}

.oracle-stage__scanline {
  z-index: 3;
  opacity: 0.16;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(
      180deg,
      rgba(157, 206, 178, 0.05) 0 2px,
      rgba(157, 206, 178, 0) 2px 6px
    );
  mix-blend-mode: screen;
  transition: opacity 180ms ease;
}

.oracle-stage__scanline.is-active {
  opacity: 0.45;
  animation: oracle-scanline-drift 1.8s linear infinite alternate;
}

.oracle-stage.is-casting,
.oracle-stage.is-revealing {
  border-color: rgba(199, 177, 238, 0.28);
  background:
    radial-gradient(circle at 50% 50%, rgba(60, 34, 93, 0.34), transparent 58%),
    linear-gradient(180deg, rgba(8, 8, 11, 0.99), rgba(0, 0, 0, 1));
  box-shadow:
    inset 0 0 0 1px rgba(180, 160, 228, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(180, 160, 228, 0.05),
    0 18px 36px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(140, 118, 206, 0.14);
}

.oracle-stage.is-casting .oracle-stage__value,
.oracle-stage.is-revealing .oracle-stage__value {
  opacity: 0.015;
  transform: scale(0.97);
  color: rgba(191, 255, 211, 0.24);
  text-shadow: none;
}

.oracle-stage.is-burst .oracle-stage__value {
  animation: oracle-value-reveal 220ms ease-out both;
  color: #deffe8;
  text-shadow:
    0 0 12px rgba(239, 232, 255, 0.24),
    0 0 28px rgba(148, 125, 214, 0.18);
}

.oracle-stage.is-hit,
.oracle-stage.is-big-hit,
.oracle-stage.is-miss {
  overflow: hidden;
}

.oracle-stage.is-hit {
  animation: oracle-stage-hit-pulse 540ms ease-out both;
}

.oracle-stage.is-hit .oracle-fx-layer,
.oracle-stage.is-big-hit .oracle-fx-layer,
.oracle-stage.is-miss .oracle-fx-layer {
  opacity: 1;
}

.oracle-stage.is-hit .oracle-fx-layer {
  animation: oracle-stage-hit-pulse 540ms ease-out both;
}

.oracle-stage.is-big-hit {
  animation: oracle-stage-big-hit 820ms ease-out both;
}

.oracle-stage.is-big-hit .oracle-fx-layer {
  animation: oracle-stage-big-hit 820ms ease-out both;
}

.oracle-stage.is-big-hit-lock {
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 188, 0.18),
    0 18px 36px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(255, 229, 155, 0.2);
}

.oracle-stage.is-big-hit-impact {
  animation: oracle-stage-big-hit-impact 560ms ease-out both;
}

.oracle-stage.is-miss {
  animation: oracle-stage-miss-pulse 420ms ease-out both;
}

.oracle-stage.is-miss .oracle-fx-layer {
  background: radial-gradient(circle at 50% 50%, rgba(255, 175, 187, 0.16), transparent 42%);
  animation: oracle-stage-miss-pulse 420ms ease-out both;
}

.oracle-active-summary {
  display: grid;
  min-width: 0;
  min-height: 132px;
  gap: var(--ui-gap-sm);
  align-content: start;
}

/* Metrics */
.oracle-summary-detail {
  margin: 0;
  color: rgba(223, 210, 241, 0.78);
  font-size: 0.73rem;
  line-height: 1.4;
  min-width: 0;
  overflow-wrap: anywhere;
}

.oracle-stage-feed {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.oracle-stage-feed__line {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(23, 9, 35, 0.94), rgba(12, 5, 20, 0.98));
  border: 1px solid rgba(197, 171, 237, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 16px rgba(0, 0, 0, 0.08);
}

.oracle-stage-feed__message {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 1.4em;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  white-space: normal;
  line-height: 1.3;
  animation: none;
}

.oracle-stage-feed__message:empty {
  visibility: hidden;
}

.oracle-stage-feed__message--result:empty {
  visibility: visible;
}

.oracle-stage-feed__line[hidden] {
  display: none;
}

.oracle-stage-feed__message--hint {
  color: var(--text);
}

.oracle-stage-feed__message--result {
  font-weight: 700;
}

.oracle-stage-feed__message--result:empty::before {
  content: "Awaiting result.";
  color: var(--muted);
  font-weight: 600;
}

.oracle-stage-feed__message.oracle-round-banner,
.oracle-stage-feed__message.oracle-banner {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.oracle-onboarding-hint {
  display: none;
  align-items: center;
  width: 100%;
  min-height: 1.4em;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(216, 193, 241, 0.88);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.28;
}

.oracle-onboarding-hint::before {
  display: none;
}

.oracle-onboarding-hint.oracle-onboarding-active {
  display: flex;
  opacity: 0.92;
}

.oracle-stage-panel.is-onboarding-active .oracle-stage:not(.is-revealing) {
  box-shadow:
    0 0 0 1px rgba(255, 229, 155, 0.08),
    0 18px 30px rgba(0, 0, 0, 0.22),
    inset 0 0 22px rgba(164, 139, 235, 0.06);
}

.is-onboarding-target {
  position: relative;
  z-index: 1;
}

.oracle-slider-shell.is-onboarding-target,
.oracle-chip-row.is-onboarding-target,
.oracle-play-button.is-onboarding-target {
  border-color: rgba(255, 229, 155, 0.34);
  box-shadow:
    0 0 0 1px rgba(255, 229, 155, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.14),
    inset 0 0 18px rgba(255, 229, 155, 0.05);
}

.oracle-card.is-onboarding-target {
  border-color: rgba(255, 229, 155, 0.3);
  box-shadow:
    inset 0 0 0 1px rgba(255, 229, 155, 0.1),
    inset 0 0 18px rgba(255, 229, 155, 0.05);
}

.oracle-chip-row.is-onboarding-target,
.oracle-exact-control.is-onboarding-target {
  border-radius: 16px;
}

.oracle-exact-control.is-onboarding-target {
  border: 1px solid rgba(255, 229, 155, 0.28);
  background: rgba(18, 6, 28, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 229, 155, 0.08),
    inset 0 0 18px rgba(164, 139, 235, 0.06);
}

.oracle-slider-shell.is-onboarding-target .oracle-controls__slider,
.oracle-exact-control.is-onboarding-target .oracle-exact-control__input,
.oracle-play-button.is-onboarding-target {
  border-color: rgba(255, 229, 155, 0.34);
}

.oracle-exact-control.is-onboarding-target .oracle-exact-control__input {
  box-shadow: none;
}

.oracle-play-button.is-onboarding-target {
  color: #fff3c6;
  box-shadow:
    0 0 0 1px rgba(255, 229, 155, 0.12),
    0 14px 28px rgba(0, 0, 0, 0.18),
    inset 0 0 22px rgba(255, 229, 155, 0.08);
}

.is-onboarding-pulse {
  animation: oracle-onboarding-breathe 3.1s ease-in-out infinite;
}

.oracle-card.is-onboarding-sweep {
  animation: oracle-onboarding-card-bloom 3.1s ease-in-out infinite;
}

.oracle-card.is-onboarding-sweep::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(210, 255, 224, 0) 0%,
    rgba(210, 255, 224, 0.08) 18%,
    rgba(255, 229, 155, 0.12) 42%,
    rgba(210, 255, 224, 0.06) 58%,
    rgba(210, 255, 224, 0) 100%
  );
  transform: translateY(-115%);
  opacity: 0;
  animation: oracle-onboarding-sweep 3.1s ease-in-out infinite;
}

.oracle-summary-grid,
.oracle-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: var(--metric-strip-height);
  min-width: 0;
  gap: var(--ui-gap-sm);
  align-items: stretch;
}

.oracle-card__stats {
  width: 100%;
  margin-top: auto;
}

.oracle-summary-tile,
.oracle-stat {
  min-height: var(--metric-tile-height);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    linear-gradient(180deg, rgba(35, 15, 52, 0.94), rgba(18, 8, 29, 0.98));
  border: 1px solid var(--color-border-soft);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -8px 14px rgba(0, 0, 0, 0.12),
    0 8px 14px rgba(0, 0, 0, 0.08);
  padding: 8px 10px;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 5px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.oracle-summary-tile__label,
.oracle-stat__label {
  color: var(--muted);
  font-size: var(--metric-label-size);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.oracle-summary-tile__value,
.oracle-stat__value {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-height: 0;
  font-size: var(--metric-value-size);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text-main);
}

.oracle-summary-tile__label,
.oracle-stat__label {
  position: relative;
  z-index: 1;
}

.oracle-idle-rain {
  position: absolute;
  inset: 5px 6px 6px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.72;
  border-radius: 13px;
  isolation: isolate;
}

.oracle-idle-rain__layer {
  position: absolute;
  inset: 0;
  color: rgba(186, 146, 236, var(--idle-rain-opacity, 0.42));
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.02;
  white-space: pre;
  text-align: left;
  padding: 2px 4px 0;
  text-shadow:
    0 0 9px rgba(180, 112, 255, 0.12),
    0 0 18px rgba(148, 82, 238, 0.08);
  filter: blur(var(--idle-rain-blur, 0.08px));
  animation: oracle-idle-rain-fall var(--idle-rain-duration, 7.2s) linear infinite;
  animation-delay: var(--idle-rain-delay, 0s);
  transform: translate3d(var(--idle-rain-shift, 0px), var(--idle-rain-start, -88%), 0) scale(var(--idle-rain-scale, 1));
  will-change: transform;
  mix-blend-mode: screen;
}

.oracle-idle-rain__layer:nth-child(2) {
  mix-blend-mode: plus-lighter;
  letter-spacing: 0.04em;
}

.oracle-idle-rain__layer:nth-child(3) {
  color: rgba(228, 209, 255, calc(var(--idle-rain-opacity, 0.42) + 0.08));
  text-shadow:
    0 0 10px rgba(214, 182, 255, 0.2),
    0 0 22px rgba(148, 82, 238, 0.12);
  mix-blend-mode: plus-lighter;
}

.oracle-idle-rain::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(34, 10, 54, 0.82), rgba(34, 10, 54, 0.18) 22%, rgba(34, 10, 54, 0.48) 74%, rgba(34, 10, 54, 0.88)),
    linear-gradient(180deg, rgba(214, 182, 255, 0.07), transparent 16%, transparent 84%, rgba(214, 182, 255, 0.05)),
    radial-gradient(circle at 50% 46%, rgba(180, 112, 255, 0.12), transparent 58%);
  z-index: 2;
}

.oracle-idle-rain::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(238, 221, 255, 0.026) 0,
      rgba(238, 221, 255, 0.026) 1px,
      transparent 1px,
      transparent 6px
    );
  opacity: 0.58;
  z-index: 3;
}

.oracle-summary-tile.is-idle-rain-tile,
.oracle-stat.is-idle-rain-tile {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.028)),
    radial-gradient(circle at 50% 46%, rgba(140, 84, 232, 0.14), transparent 68%);
}

.oracle-summary-tile.is-idle-rain-tile .oracle-summary-tile__value,
.oracle-stat.is-idle-rain-tile .oracle-stat__value {
  min-height: 0.85rem;
}

.oracle-summary-label {
  margin: 0;
  color: var(--color-gold-strong);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

.oracle-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.oracle-insights-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.012)),
    rgba(19, 7, 31, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-width: 0;
  min-height: 0;
  align-content: start;
  align-self: stretch;
}

.oracle-insights-panel .oracle-panel__head {
  padding: 0;
  align-items: flex-start;
  gap: 10px;
}

.oracle-insights-panel__subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.oracle-insights-panel__controls {
  display: grid;
  gap: 6px;
}

.oracle-insights-panel__label {
  color: rgba(255, 240, 196, 0.9);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.oracle-insights-panel__field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.oracle-input,
.oracle-insights-panel__input {
  min-width: 0;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 3, 19, 0.82);
  color: var(--text);
  font: inherit;
}

.oracle-input::placeholder,
.oracle-insights-panel__input::placeholder {
  color: rgba(224, 208, 243, 0.42);
}

.oracle-input:focus-visible,
.oracle-insights-panel__input:focus-visible {
  outline: none;
  border-color: rgba(255, 229, 155, 0.42);
  box-shadow: 0 0 0 2px rgba(255, 229, 155, 0.12);
}

.oracle-insights-panel__note {
  margin: 0;
  color: rgba(214, 199, 233, 0.7);
  font-size: 0.74rem;
  line-height: 1.35;
}

.oracle-insights-terminal {
  display: grid;
  gap: 10px;
}

.oracle-insights-terminal__screen {
  position: relative;
  min-height: 178px;
  padding: 18px 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(126, 245, 180, 0.12);
  background:
    radial-gradient(circle at top, rgba(82, 255, 168, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(10, 22, 16, 0.18), rgba(0, 0, 0, 0)),
    rgba(1, 8, 6, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(5, 20, 13, 0.6),
    0 12px 30px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.oracle-insights-terminal__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02) 0,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 6px
  );
  opacity: 0.08;
  pointer-events: none;
}

.oracle-insights-terminal--idle .oracle-insights-terminal__screen {
  min-height: 178px;
}

.oracle-insights-terminal__line {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(156, 255, 198, 0.92);
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-shadow: 0 0 10px rgba(69, 255, 153, 0.1);
}

.oracle-insights-terminal__line + .oracle-insights-terminal__line {
  margin-top: 8px;
}

.oracle-insights-terminal__line--prompt {
  color: rgba(126, 245, 180, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.oracle-insights-terminal__line--title {
  color: rgba(186, 255, 214, 0.98);
  font-size: 0.98rem;
  font-weight: 700;
}

.oracle-insights-terminal__line--meta {
  color: rgba(126, 245, 180, 0.82);
  font-size: 0.74rem;
}

.oracle-insights-terminal__actions {
  display: flex;
  justify-content: flex-start;
}

.oracle-insights-terminal__apply {
  width: auto;
  min-width: 140px;
}

.oracle-insights {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.oracle-insight-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.012)),
    rgba(16, 6, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    transform var(--motion-medium) var(--ease-standard),
    border-color var(--motion-medium) var(--ease-standard),
    box-shadow var(--motion-medium) var(--ease-standard),
    background var(--motion-medium) var(--ease-standard),
    opacity var(--motion-medium) var(--ease-standard);
}

.oracle-insight-card:hover,
.oracle-insight-card:focus-within {
  transform: translateY(var(--hover-lift)) scale(var(--hover-scale));
  border-color: rgba(255, 229, 155, 0.18);
  box-shadow:
    0 18px 28px rgba(0, 0, 0, 0.16),
    0 0 20px rgba(255, 229, 155, 0.05);
}

.oracle-insight-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.oracle-insight-card__title {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
}

.oracle-insight-card__body {
  margin: 0;
  color: rgba(241, 234, 250, 0.9);
  font-size: 0.86rem;
  line-height: 1.4;
}

.oracle-insight-card__metric {
  margin: 0;
  color: rgba(191, 255, 211, 0.9);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.oracle-insight-card__action {
  justify-self: start;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--panel-border-strong);
  background: var(--color-gold-dim);
  color: var(--color-gold-strong);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.oracle-insight-card[data-confidence="low-sample"] {
  border-color: rgba(161, 137, 205, 0.2);
}

.oracle-insight-card[data-type="lastResultProfile"] {
  border-color: rgba(126, 245, 180, 0.18);
}

.oracle-insight-card[data-type="tryThisNext"] {
  border-color: rgba(255, 229, 155, 0.22);
}

.oracle-play-button {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 229, 155, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 239, 188, 0.18), rgba(255, 229, 155, 0.08) 34%, rgba(162, 72, 255, 0.08) 100%),
    linear-gradient(180deg, rgba(78, 30, 112, 0.98), rgba(33, 12, 50, 0.99));
  color: var(--color-gold-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 24px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 229, 155, 0.08),
    0 0 16px rgba(255, 229, 155, 0.08);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 0 rgba(14, 8, 22, 0.64);
  cursor: pointer;
  transition:
    transform var(--motion-medium) var(--ease-standard),
    box-shadow var(--motion-medium) var(--ease-standard),
    border-color var(--motion-medium) var(--ease-standard),
    background var(--motion-medium) var(--ease-standard),
    opacity var(--motion-fast) var(--ease-soft-out),
    color var(--motion-fast) var(--ease-soft-out),
    filter var(--motion-medium) var(--ease-standard);
  animation: oracle-cta-breathe 4.8s var(--ease-standard) infinite;
}

.oracle-play-button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 245, 215, 0.04) 34%,
    rgba(255, 255, 255, 0.22) 48%,
    rgba(255, 255, 255, 0.04) 62%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0.65;
  transform: translateX(-135%);
  pointer-events: none;
}

.oracle-play-button:not(:disabled)::before {
  animation: oracle-sheen-sweep 4.8s var(--ease-emphasized) infinite;
}

.oracle-play-button:hover:not(:disabled),
.oracle-play-button:focus-visible {
  transform: translateY(var(--hover-lift)) scale(1.015);
  border-color: rgba(255, 229, 155, 0.44);
  background:
    linear-gradient(180deg, rgba(255, 244, 205, 0.22), rgba(255, 229, 155, 0.1) 36%, rgba(162, 72, 255, 0.1) 100%),
    linear-gradient(180deg, rgba(86, 34, 121, 0.99), rgba(36, 14, 54, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 26px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 229, 155, 0.1),
    0 0 20px rgba(255, 229, 155, 0.1);
}

.oracle-inline-note {
  margin: 0;
  color: rgba(232, 220, 247, 0.82);
  font-size: 0.79rem;
  line-height: 1.38;
}

.oracle-play-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
  animation: none;
}

.oracle-play-button.is-arming {
  animation: oracle-button-press var(--motion-fast) var(--ease-soft-out) both;
}

.oracle-play-button.is-casting-glow:not(:disabled) {
  animation:
    oracle-cta-breathe 2.6s var(--ease-standard) infinite,
    oracle-soft-pulse var(--motion-slow) var(--ease-emphasized) infinite;
}

.oracle-play-button:active:not(:disabled) {
  transform: translateY(-1px) scale(var(--press-scale));
}

.oracle-auto-toggle {
  position: relative;
  overflow: hidden;
  min-width: 104px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(226, 184, 255, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.014)),
    linear-gradient(180deg, rgba(41, 16, 59, 0.96), rgba(19, 8, 31, 0.98));
  color: rgba(236, 225, 252, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -10px 16px rgba(0, 0, 0, 0.16),
    0 14px 26px rgba(0, 0, 0, 0.16);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    transform var(--motion-medium) var(--ease-standard),
    box-shadow var(--motion-medium) var(--ease-standard),
    border-color var(--motion-medium) var(--ease-standard),
    background var(--motion-medium) var(--ease-standard),
    color var(--motion-medium) var(--ease-standard),
    opacity var(--motion-fast) var(--ease-soft-out);
}

.oracle-auto-toggle::before,
.oracle-auto-toggle::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.oracle-auto-toggle::before {
  inset: 1px 1px auto 1px;
  height: 54%;
  border-radius: 17px 17px 14px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
  opacity: 0.9;
}

.oracle-auto-toggle::after {
  inset: 7px;
  border-radius: 12px;
  border: 1px solid rgba(226, 184, 255, 0.08);
}

.oracle-auto-toggle:hover:not(:disabled),
.oracle-auto-toggle:focus-visible {
  transform: translateY(var(--hover-lift)) scale(var(--hover-scale));
  border-color: rgba(255, 229, 155, 0.28);
  color: #fff0c4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(255, 229, 155, 0.05),
    0 16px 28px rgba(0, 0, 0, 0.18),
    0 0 16px rgba(136, 111, 196, 0.08);
}

.oracle-auto-toggle[aria-pressed="true"] {
  border-color: rgba(255, 229, 155, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 239, 192, 0.16), rgba(182, 129, 255, 0.08) 58%, rgba(28, 11, 42, 0.96)),
    linear-gradient(180deg, rgba(40, 16, 60, 0.98), rgba(18, 7, 28, 0.98));
  color: #fff0c4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 229, 155, 0.06),
    0 14px 28px rgba(0, 0, 0, 0.18),
    0 0 22px rgba(136, 111, 196, 0.12);
}

.oracle-auto-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.oracle-auto-toggle:active:not(:disabled) {
  transform: translateY(-1px) scale(var(--press-scale));
}

.oracle-round-banner,
.oracle-banner {
  border-radius: 16px;
  padding: 9px 11px;
  background: rgba(23, 7, 33, 0.8);
  border: 1px solid var(--color-border-soft);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.3;
}

.oracle-banner {
  color: var(--accent);
}

.oracle-round-banner.is-win {
  border-color: rgba(126, 245, 180, 0.24);
  box-shadow: 0 0 0 1px rgba(126, 245, 180, 0.08);
}

.oracle-round-banner.is-big-hit {
  border-color: rgba(255, 229, 155, 0.34);
  color: #fff3c6;
  box-shadow:
    0 0 0 1px rgba(255, 229, 155, 0.12),
    inset 0 0 18px rgba(255, 229, 155, 0.06);
}

.oracle-round-banner.is-big-hit-celebrate {
  animation: oracle-big-hit-banner 760ms ease-out both;
}

.oracle-round-banner.is-loss {
  border-color: rgba(255, 175, 187, 0.2);
  color: #ffd2da;
}

.oracle-inline-note:empty,
.oracle-round-banner:empty,
.oracle-banner:empty {
  display: block;
}

.oracle-prediction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-items: stretch;
  align-content: start;
  min-width: 0;
  gap: var(--ui-gap);
  transition:
    grid-template-columns var(--motion-medium) var(--ease-standard),
    gap var(--motion-medium) var(--ease-standard),
    opacity var(--motion-medium) var(--ease-standard);
}

.oracle-card {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(41, 17, 59, 0.92), rgba(18, 8, 29, 0.98)),
    var(--panel-strong);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--card-radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 14px 24px rgba(0, 0, 0, 0.12);
  padding: var(--card-padding);
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  overflow: hidden;
  transition:
    transform var(--motion-medium) var(--ease-standard),
    border-color var(--motion-medium) var(--ease-standard),
    box-shadow var(--motion-medium) var(--ease-standard),
    background var(--motion-medium) var(--ease-standard),
    filter var(--motion-medium) var(--ease-standard),
    padding var(--motion-medium) var(--ease-standard),
    opacity var(--motion-medium) var(--ease-standard);
}

.oracle-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 229, 155, 0.12), transparent 28%),
    linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  opacity: 0;
  transform: translateX(-8%) scale(1.02);
  transition:
    opacity var(--motion-medium) var(--ease-standard),
    transform var(--motion-panel) var(--ease-emphasized);
}

.oracle-card--with-help {
  overflow: visible;
}

/* Cards */
.oracle-card:hover,
.oracle-card:focus-within {
  transform: translateY(0) scale(1);
  border-color: rgba(255, 229, 155, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 12px 20px rgba(0, 0, 0, 0.14),
    0 0 14px rgba(255, 229, 155, 0.05);
}

.oracle-card:hover::after,
.oracle-card:focus-within::after {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.oracle-card.is-active {
  border-color: var(--panel-border-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 229, 155, 0.06),
    0 10px 18px rgba(0, 0, 0, 0.12),
    0 0 12px rgba(255, 229, 155, 0.06);
}

.oracle-card.is-bet {
  border-color: var(--color-oracle-border);
  background:
    linear-gradient(180deg, rgba(201, 255, 216, 0.08), rgba(255, 229, 155, 0.06) 52%, rgba(31, 13, 46, 0.96)),
    var(--panel-strong);
  box-shadow:
    0 0 0 1px rgba(126, 245, 180, 0.08),
    0 10px 18px rgba(0, 0, 0, 0.14),
    inset 0 0 20px rgba(126, 245, 180, 0.05),
    inset 0 1px 0 rgba(255, 244, 210, 0.08);
}

.oracle-prediction-grid:hover .oracle-card {
  opacity: 0.84;
}

.oracle-prediction-grid:hover .oracle-card:hover,
.oracle-prediction-grid:hover .oracle-card:focus-within,
.oracle-prediction-grid:hover .oracle-card.is-active,
.oracle-prediction-grid:hover .oracle-card.is-bet {
  opacity: 1;
}

.oracle-card.is-bet .oracle-card__title,
.oracle-card.is-bet .oracle-stat__value,
.oracle-card.is-bet .oracle-card__success {
  color: #f7eeff;
}

.oracle-card.is-bet .oracle-card__status.is-active {
  background:
    linear-gradient(180deg, rgba(var(--oracle-active-rgb), 0.24), rgba(var(--oracle-active-strong-rgb), 0.1) 58%, rgba(28, 11, 42, 0.96)),
    linear-gradient(180deg, rgba(40, 16, 60, 0.98), rgba(18, 7, 28, 0.98));
  border-color: rgba(var(--oracle-active-rgb), 0.4);
  color: var(--oracle-active-text);
}

.oracle-card.is-arming,
.oracle-card.is-feedback-pulse {
  animation: oracle-card-arm 260ms ease-out both;
}

.oracle-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
  gap: 12px;
  min-height: 36px;
}

.oracle-card__head > div {
  min-width: 0;
}

.oracle-card__head-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  overflow: visible;
  padding-block: 3px 2px;
}

.oracle-card__title {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.oracle-card__title-wrap {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.oracle-card__title-text {
  min-width: 0;
}

.oracle-card__mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid var(--color-border-mid);
  background:
    linear-gradient(180deg, rgba(255, 244, 210, 0.08), rgba(176, 126, 248, 0.06)),
    rgba(42, 16, 59, 0.94);
  color: var(--color-text-main);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.oracle-card__description {
  margin: 4px 0 0;
  color: var(--color-text-soft);
  font-size: 0.77rem;
  line-height: 1.34;
  overflow-wrap: anywhere;
}

.oracle-card__select {
  min-width: 92px;
}

.oracle-card__controls {
  display: grid;
  min-width: 0;
  gap: 6px;
  align-content: start;
  overflow: visible;
  padding-block: 4px 2px;
}

.oracle-stake-editor {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--color-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(29, 11, 44, 0.92), rgba(14, 6, 24, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 14px rgba(0, 0, 0, 0.08);
  overflow: visible;
}

.oracle-stake-editor__summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.oracle-stake-editor__input-row {
  display: flex;
  justify-content: flex-start;
}

.oracle-stake-editor__field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.oracle-stake-editor__field-label {
  color: rgba(216, 193, 241, 0.72);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.oracle-stake-editor__number {
  width: 110px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(200, 173, 238, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(21, 8, 33, 0.94), rgba(12, 5, 21, 0.98));
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.oracle-stake-editor__number:focus {
  outline: none;
  border-color: rgba(255, 229, 155, 0.34);
  box-shadow:
    0 0 0 3px rgba(177, 122, 255, 0.08),
    0 8px 14px rgba(0, 0, 0, 0.08);
}

.oracle-stake-editor.is-spotlight {
  animation: oracle-stake-editor-spotlight 900ms ease-out;
}

.oracle-stake-editor__slider {
  width: 100%;
  margin: 0;
}

.oracle-stake-editor__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.7rem;
}

.oracle-stake-editor__meta strong {
  color: var(--accent);
  justify-self: center;
  font-size: 0.9rem;
}

.oracle-stake-editor__meta span:last-child {
  justify-self: end;
}

.oracle-stake-editor__actions {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.oracle-card__text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid var(--panel-border-strong);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(34, 13, 49, 0.95), rgba(18, 7, 28, 0.98));
  color: var(--color-gold-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 6px 12px rgba(0, 0, 0, 0.08);
  padding: 0 10px;
  margin: 0;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  flex: 0 0 auto;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.oracle-card__text-action:hover,
.oracle-card__text-action:focus-visible {
  color: var(--color-gold-strong);
  border-color: rgba(255, 229, 155, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(255, 229, 155, 0.04),
    0 8px 14px rgba(0, 0, 0, 0.1);
  transform: translateY(0) scale(1);
}

.oracle-card__text-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.oracle-card__reason.is-hidden {
  display: none;
}

.oracle-chip-row {
  min-width: 0;
  overflow: visible;
  padding-block: 4px 2px;
}

.oracle-chip-row--sectors {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.oracle-chip-row--sectors .oracle-chip {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.oracle-chip-row--digit-count {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-height: 80px;
}

.oracle-chip-row--digit-count .oracle-chip {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.oracle-chip-row--digits {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.oracle-chip-row--digits .oracle-chip {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 999px;
}

.oracle-card--range-view {
  gap: 6px;
}

.oracle-card--range-view .oracle-card__controls {
  gap: 6px;
}

.oracle-card--range-view .oracle-chip-row--sectors {
  gap: 6px;
}

.oracle-card--range-view .oracle-chip-row--sectors .oracle-chip {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 0.78rem;
  line-height: 1.1;
}

.oracle-card--range-view .oracle-inline-note {
  font-size: 0.74rem;
}

.oracle-card--range-view .oracle-card__stats {
  gap: var(--ui-gap-sm);
}

.oracle-card--range-view .oracle-stat {
  padding: 9px 10px;
}

.oracle-card--digit-runes {
  overflow: visible;
}

.oracle-card--digit-runes .oracle-card__controls {
  gap: 8px;
  overflow: visible;
}

.oracle-chip-row--digit-rune-modes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.oracle-chip-row--digit-rune-modes .oracle-chip,
.oracle-chip-row--mode-picker .oracle-chip {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.oracle-chip-row--digit-rune-modes .oracle-chip,
.oracle-chip-row--mode-picker .oracle-chip {
  min-height: 38px;
  padding: 7px 10px;
  font-size: 0.92rem;
  font-weight: 800;
  border-color: rgba(226, 184, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(70, 33, 100, 0.26), rgba(36, 12, 54, 0.82)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.oracle-chip-row--mode-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.oracle-chip-row--digits.is-locked {
  opacity: 0.58;
}

.oracle-inline-note--guide {
  color: var(--color-gold-strong);
  font-weight: 700;
}

.oracle-card__reason,
.oracle-card__success {
  margin: 0;
  min-height: var(--card-footer-height);
  font-size: 0.73rem;
  line-height: 1.16;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  align-self: stretch;
}

.oracle-card__reason {
  color: var(--color-text-soft);
}

.oracle-card__success {
  color: var(--oracle-active-text);
  font-weight: 700;
  text-shadow:
    0 0 10px rgba(var(--oracle-active-rgb), 0.14),
    0 1px 0 rgba(13, 8, 20, 0.6);
}

.oracle-card__reason--dim {
  color: rgba(224, 210, 244, 0.74);
}

.oracle-card--ai-oracle {
  position: relative;
  z-index: 1;
  gap: 10px;
  overflow: hidden;
}

.oracle-card__stats--ai {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oracle-ai-oracle__status-line {
  margin: 4px 0 0;
  color: rgba(216, 193, 241, 0.78);
  font-size: 0.72rem;
  line-height: 1.3;
}

.oracle-ai-oracle__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.oracle-ai-oracle__body,
.oracle-ai-oracle__explanation,
.oracle-ai-oracle__observed,
.oracle-ai-oracle__footer {
  display: grid;
  gap: 6px;
}

.oracle-ai-oracle__eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oracle-ai-oracle__title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
}

.oracle-ai-oracle__explanation {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 3, 14, 0.36);
}

.oracle-ai-oracle__explanation p,
.oracle-ai-oracle__footer p,
.oracle-ai-oracle__observed p {
  margin: 0;
}

.oracle-ai-oracle__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.oracle-card--ai-workspace,
.oracle-card--ai-primary,
.oracle-card--ai-strategy {
  min-height: 0;
}

.oracle-card--ai-workspace {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  overflow: visible;
}

.oracle-card__head--ai-workspace {
  align-items: start;
}

.oracle-ai-workspace__head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.oracle-ai-workspace__layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(360px, 1fr);
  gap: 12px;
  align-items: start;
}

.oracle-ai-workspace__controls,
.oracle-ai-workspace__inspector,
.oracle-ai-workspace__alternatives {
  display: grid;
  gap: 12px;
}

.oracle-ai-workspace__controls {
  grid-template-rows: repeat(5, auto);
  align-content: start;
  align-self: start;
}

.oracle-ai-workspace__controls > .oracle-ai-workspace__control-group {
  grid-template-rows: auto auto;
  align-content: start;
  min-height: 0;
}

.oracle-ai-workspace__controls > .oracle-ai-workspace__control-group .oracle-chip-row {
  align-self: start;
}

.oracle-ai-workspace__inspector {
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: start;
}

.oracle-ai-workspace__preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.oracle-ai-preset {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  min-height: 88px;
  border-radius: 18px;
  border: 1px solid rgba(226, 184, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.oracle-ai-preset strong {
  font-size: 0.92rem;
}

.oracle-ai-preset span {
  color: rgba(216, 193, 241, 0.82);
  font-size: 0.78rem;
  line-height: 1.45;
}

.oracle-ai-preset:hover {
  border-color: rgba(255, 227, 163, 0.28);
}

.oracle-ai-preset.is-active {
  background: rgba(255, 229, 155, 0.12);
  border-color: rgba(255, 229, 155, 0.35);
  color: var(--accent);
}

.oracle-ai-workspace__control-group,
.oracle-ai-workspace__observed {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 3, 14, 0.36);
  overflow: visible;
}

.oracle-ai-workspace__control-group--personal {
  gap: 10px;
}

.oracle-ai-workspace__personal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.oracle-ai-workspace__personal-digits,
.oracle-ai-workspace__personal-strategy {
  display: grid;
  gap: 6px;
}

.oracle-ai-workspace__personal-digit-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 32px;
}

.oracle-ai-workspace__personal-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
}

.oracle-ai-workspace__personal-actions--single {
  grid-template-columns: auto;
  justify-content: end;
}

.oracle-ai-workspace__apply-only {
  display: grid;
  align-content: end;
}

.oracle-ai-workspace__apply-button {
  width: 100%;
  min-height: 52px;
  font-size: 0.98rem;
}

.oracle-ai-workspace__personal-strategy {
  padding-top: 2px;
}

.oracle-card__head--compact {
  align-items: start;
}

.oracle-card--ai-summary {
  display: grid;
  gap: 10px;
}

.oracle-card--ai-summary-compact {
  gap: 6px;
}

.oracle-ai-workspace__summary-copy {
  display: grid;
  gap: 6px;
}

.oracle-card--ai-summary-compact .oracle-ai-workspace__summary-copy {
  gap: 4px;
}

.oracle-ai-workspace__oracle-dialog {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--panel-border-strong);
  background:
    linear-gradient(180deg, rgba(255, 229, 155, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(10, 4, 17, 0.7);
}

.oracle-card--ai-summary-compact .oracle-ai-workspace__oracle-dialog {
  gap: 4px;
  padding: 10px 12px;
}

.oracle-ai-workspace__oracle-dialog p {
  margin: 0;
  color: #efe4ff;
  line-height: 1.48;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-card--ai-workspace {
  gap: 10px;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-card__head--ai-workspace {
  padding-bottom: 2px;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-ai-oracle__status-line {
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(216, 193, 241, 0.76);
}

.oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__layout {
  gap: 10px;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__controls,
.oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__inspector {
  gap: 10px;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__control-group {
  gap: 7px;
  padding: 10px 11px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(13, 6, 22, 0.66), rgba(8, 3, 14, 0.38));
}

.oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__control-copy {
  gap: 2px;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__control-copy strong {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: inherit;
  text-transform: none;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__control-copy p,
.oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__summary-copy p {
  font-size: 0.75rem;
  line-height: 1.35;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-chip-row {
  gap: 6px;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-chip,
.oracle-game[data-prediction-mode="oracle"] .oracle-ghost-button,
.oracle-game[data-prediction-mode="oracle"] .oracle-card__status {
  min-height: 34px;
  padding: 6px 11px;
  font-size: 0.8rem;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-chip,
.oracle-game[data-prediction-mode="oracle"] .oracle-ghost-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(37, 14, 54, 0.96), rgba(18, 7, 28, 0.98));
  border-color: rgba(226, 184, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 16px rgba(0, 0, 0, 0.12);
}

.oracle-game[data-prediction-mode="oracle"] .oracle-chip:hover,
.oracle-game[data-prediction-mode="oracle"] .oracle-chip:focus-visible,
.oracle-game[data-prediction-mode="oracle"] .oracle-ghost-button:hover,
.oracle-game[data-prediction-mode="oracle"] .oracle-ghost-button:focus-visible {
  border-color: rgba(255, 229, 155, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(255, 229, 155, 0.06),
    0 10px 18px rgba(0, 0, 0, 0.14);
}

.oracle-game[data-prediction-mode="oracle"] .oracle-play-button--compact {
  min-height: 38px;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-field__label,
.oracle-game[data-prediction-mode="oracle"] .oracle-stat__label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-field__input {
  min-height: 40px;
  padding: 9px 11px;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__personal-grid {
  gap: 7px;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__personal-digit-pills {
  gap: 6px;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-pill--soft {
  padding: 6px 10px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-card--ai-summary {
  gap: 8px;
  padding-top: 2px;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-stat {
  min-height: 58px;
  padding: 7px 9px;
  border-radius: 14px;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-stat__value {
  font-size: 0.94rem;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-ai-oracle__footer {
  gap: 4px;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-review-stack {
  gap: 8px;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-review-stack--setup {
  width: 100%;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-card--ai-review-settings {
  gap: 8px;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-ai-review-settings__grid {
  gap: 8px;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-ai-review-settings__stack {
  gap: 8px;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-ai-review-settings__lane {
  gap: 6px;
  padding: 10px 11px;
}

.oracle-ai-workspace__control-copy {
  display: grid;
  gap: 3px;
}

.oracle-ai-workspace__control-copy strong {
  font-size: 0.88rem;
}

.oracle-ai-workspace__control-copy p,
.oracle-ai-workspace__observed p,
.oracle-ai-workspace__candidate-pills,
.oracle-ai-workspace__candidate-actions {
  margin: 0;
}

.oracle-ai-workspace__control-copy p {
  font-size: 0.78rem;
  line-height: 1.4;
}

.oracle-ai-workspace__candidate-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.oracle-ai-workspace__candidate-actions,
.oracle-ai-workspace__primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.oracle-review-stack {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.oracle-review-stack--setup {
  width: 100%;
}

.oracle-card--ai-primary {
  gap: 10px;
  overflow: visible;
}

.oracle-ai-workspace__alternatives {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oracle-card--ai-review-settings {
  gap: 10px;
}

.oracle-ai-review-settings__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.oracle-ai-review-settings__stack {
  display: grid;
  gap: 10px;
}

.oracle-ai-review-settings__lane {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(146, 123, 188, 0.18);
  background: linear-gradient(180deg, rgba(13, 6, 22, 0.6), rgba(8, 3, 14, 0.34));
}

.oracle-card__text-action--static {
  color: rgba(208, 233, 217, 0.82);
  pointer-events: none;
}

.oracle-review-stack--setup .oracle-card--ai-summary,
.oracle-review-stack--setup .oracle-card--ai-review-settings {
  width: 100%;
}

.oracle-card--ai-strategy {
  display: grid;
  gap: 10px;
}

.oracle-mode-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-radius: 999px;
  border: 1px solid var(--color-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(32, 12, 46, 0.95), rgba(17, 7, 26, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 16px rgba(0, 0, 0, 0.08);
  overflow: visible;
}

.oracle-mode-switcher__button {
  position: relative;
  overflow: hidden;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(38, 15, 54, 0.92), rgba(18, 7, 28, 0.96));
  color: rgba(231, 220, 255, 0.54);
  border-radius: 999px;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color var(--motion-medium) var(--ease-standard),
    background var(--motion-medium) var(--ease-standard),
    box-shadow var(--motion-medium) var(--ease-standard),
    color var(--motion-medium) var(--ease-standard),
    transform var(--motion-medium) var(--ease-standard),
    opacity var(--motion-fast) var(--ease-soft-out);
}

.oracle-mode-switcher__button::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 229, 155, 0), rgba(255, 229, 155, 0.9), rgba(208, 154, 255, 0));
  opacity: 0;
  transform: scaleX(0.56);
  transition:
    opacity var(--motion-medium) var(--ease-standard),
    transform var(--motion-medium) var(--ease-spring-soft);
}

.oracle-mode-switcher__button:hover {
  color: rgba(248, 239, 255, 0.9);
  border-color: rgba(208, 154, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 6px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(0) scale(1);
}

.oracle-mode-switcher__button.is-active {
  border-color: var(--panel-border-strong);
  background:
    linear-gradient(180deg, rgba(255, 238, 181, 0.15), rgba(177, 122, 255, 0.1) 58%, rgba(28, 11, 42, 0.96)),
    linear-gradient(180deg, rgba(40, 16, 60, 0.98), rgba(18, 7, 28, 0.98));
  color: var(--color-gold-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(255, 229, 155, 0.08),
    0 6px 12px rgba(0, 0, 0, 0.08),
    0 0 10px rgba(255, 229, 155, 0.06);
}

.oracle-mode-switcher__button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.oracle-mode-switcher__button[data-value="oracle"].is-active {
  border-color: var(--color-oracle-border);
  background:
    linear-gradient(180deg, rgba(var(--oracle-active-rgb), 0.14), rgba(var(--oracle-active-strong-rgb), 0.08) 58%, rgba(28, 11, 42, 0.96)),
    linear-gradient(180deg, rgba(40, 16, 60, 0.98), rgba(18, 7, 28, 0.98));
  color: var(--oracle-active-text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(var(--oracle-active-rgb), 0.08),
    0 6px 12px rgba(0, 0, 0, 0.08),
    0 0 10px rgba(var(--oracle-active-rgb), 0.08);
}

.oracle-stepper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.oracle-stepper__rail,
.oracle-stepper__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.oracle-stepper__actions {
  justify-content: flex-end;
  margin-left: auto;
}

.oracle-stepper__utility-cluster {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 18px;
  border: 1px solid rgba(226, 184, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    linear-gradient(180deg, rgba(33, 12, 49, 0.9), rgba(16, 7, 27, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 20px rgba(0, 0, 0, 0.12);
}

.oracle-stepper__apply {
  width: auto;
  min-width: 172px;
  min-height: 46px;
  padding-inline: 22px;
  flex: 0 0 auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 28px rgba(56, 24, 80, 0.22),
    0 0 0 1px rgba(255, 229, 155, 0.08);
}

.oracle-stepper__step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, rgba(34, 12, 49, 0.96), rgba(18, 7, 28, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 18px rgba(0, 0, 0, 0.12);
  color: rgba(231, 220, 255, 0.78);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition:
    transform var(--motion-medium) var(--ease-standard),
    border-color var(--motion-medium) var(--ease-standard),
    background var(--motion-medium) var(--ease-standard),
    box-shadow var(--motion-medium) var(--ease-standard),
    color var(--motion-medium) var(--ease-standard),
    opacity var(--motion-fast) var(--ease-soft-out);
}

.oracle-stepper__actions--review {
  position: sticky;
  top: 0;
  z-index: 6;
  padding: 4px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(40, 14, 58, 0.92), rgba(22, 9, 34, 0.96)),
    rgba(20, 8, 31, 0.9);
  box-shadow:
    0 14px 24px rgba(8, 2, 14, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.oracle-stepper__step.is-active {
  border-color: var(--panel-border-strong);
  color: var(--color-gold-strong);
  background:
    linear-gradient(180deg, rgba(255, 238, 181, 0.15), rgba(177, 122, 255, 0.1) 56%, rgba(34, 12, 49, 0.96)),
    linear-gradient(180deg, rgba(34, 12, 49, 0.96), rgba(18, 7, 28, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 229, 155, 0.08),
    0 6px 12px rgba(0, 0, 0, 0.1),
    0 0 10px rgba(255, 229, 155, 0.06);
}

.oracle-stepper__step:hover:not(:disabled),
.oracle-stepper__step:focus-visible {
  border-color: rgba(255, 229, 155, 0.22);
  color: rgba(255, 244, 205, 0.96);
  transform: translateY(0) scale(1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 14px rgba(0, 0, 0, 0.12),
    0 0 16px rgba(255, 229, 155, 0.08);
}

.oracle-stepper__step.is-disabled {
  opacity: 0.46;
}

.oracle-stepper__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
}

.oracle-step-view {
  transition:
    opacity var(--motion-panel) var(--ease-emphasized),
    transform var(--motion-panel) var(--ease-emphasized),
    filter var(--motion-panel) var(--ease-standard);
}

.oracle-step-view.is-entering {
  opacity: 0;
}

.oracle-step-view.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: blur(0);
}

.oracle-step-view.is-entering[data-step-direction="forward"] {
  transform: translateX(24px) scale(0.985);
  filter: blur(4px);
}

.oracle-step-view.is-entering[data-step-direction="back"] {
  transform: translateX(-24px) scale(0.985);
  filter: blur(4px);
}

.oracle-motion-enter {
  animation: oracle-card-enter var(--motion-panel) var(--ease-emphasized) both;
  animation-delay: calc(var(--stagger-index, 0) * 55ms);
}

.oracle-game[data-mode-transition="leaving"] .oracle-prediction-grid {
  opacity: 0;
  transform: translateY(8px) scale(0.992);
  filter: blur(6px);
}

.oracle-game[data-mode-transition="entering"] .oracle-prediction-grid {
  animation: oracle-view-enter var(--motion-panel) var(--ease-emphasized) both;
}

.oracle-game[data-oracle-step-transition="leaving"][data-oracle-step-direction="forward"] .oracle-step-view.is-leaving {
  animation: oracle-step-exit-forward var(--motion-medium) var(--ease-soft-in) both;
}

.oracle-game[data-oracle-step-transition="leaving"][data-oracle-step-direction="back"] .oracle-step-view.is-leaving {
  animation: oracle-step-exit-back var(--motion-medium) var(--ease-soft-in) both;
}

.oracle-game[data-oracle-step-transition="entering"][data-oracle-step-direction="forward"] .oracle-step-view.is-entering {
  animation: oracle-step-enter-forward var(--motion-panel) var(--ease-emphasized) both;
}

.oracle-game[data-oracle-step-transition="entering"][data-oracle-step-direction="back"] .oracle-step-view.is-entering {
  animation: oracle-step-enter-back var(--motion-panel) var(--ease-emphasized) both;
}

.oracle-game[data-prediction-mode="oracle"][data-oracle-view="build"] .oracle-dashboard,
.oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-dashboard,
.oracle-game[data-prediction-mode="oracle"][data-oracle-view="review"] .oracle-dashboard {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
}

.oracle-game[data-prediction-mode="oracle"][data-oracle-view="build"] .oracle-stage-panel,
.oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-stage-panel,
.oracle-game[data-prediction-mode="oracle"][data-oracle-view="review"] .oracle-stage-panel {
  display: grid;
}

.oracle-game[data-prediction-mode="oracle"][data-oracle-view="build"] .oracle-side-panel,
.oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-side-panel,
.oracle-game[data-prediction-mode="oracle"][data-oracle-view="review"] .oracle-side-panel {
  grid-column: 2;
  grid-row: 1;
  width: auto;
  max-width: none;
  padding-inline: 6px 8px;
}

.oracle-game[data-prediction-mode="oracle"][data-oracle-view="build"] .oracle-prediction-grid,
.oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-prediction-grid,
.oracle-game[data-prediction-mode="oracle"][data-oracle-view="review"] .oracle-prediction-grid {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  overflow: auto;
  padding: 8px 8px 12px;
}

.oracle-game[data-prediction-mode="oracle"][data-oracle-view="build"] .oracle-build-panel,
.oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-build-panel {
  width: 100%;
  max-width: none;
}

.oracle-game[data-prediction-mode="oracle"][data-oracle-view="build"] .oracle-history-panel,
.oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-history-panel,
.oracle-game[data-prediction-mode="oracle"][data-oracle-view="review"] .oracle-history-panel {
  display: grid;
  grid-column: 2;
  grid-row: 2;
}

.oracle-game[data-prediction-mode="oracle"][data-oracle-view="build"] .oracle-side-panel,
.oracle-game[data-prediction-mode="oracle"][data-oracle-view="review"] .oracle-side-panel {
  overflow: hidden;
}

.oracle-game[data-prediction-mode="oracle"][data-oracle-view="build"] .oracle-build-panel {
  height: 100%;
}

.oracle-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--ui-gap);
  align-items: stretch;
}

.oracle-card--oracle-review-header {
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--panel-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.oracle-card--oracle-review-slot {
  min-height: 0;
  height: 100%;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--panel-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.oracle-card--oracle-review-slot-passive {
  cursor: pointer;
}

.oracle-card--oracle-review-slot-passive:hover,
.oracle-card--oracle-review-slot-passive:focus-visible {
  border-color: rgba(255, 229, 155, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 0 0 1px rgba(255, 229, 155, 0.08);
}

.oracle-card--oracle-review-slot .oracle-card__head {
  align-items: center;
  min-height: 0;
}

.oracle-card--oracle-review-slot .oracle-card__head > div {
  flex: 1 1 auto;
  min-width: 0;
}

.oracle-card--oracle-review-slot .oracle-card__title {
  font-size: 1rem;
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: keep-all;
}

.oracle-card--oracle-review-slot .oracle-card__status {
  min-width: 88px;
  min-height: 34px;
  padding-inline: 12px;
  font-size: 0.74rem;
}

.oracle-card--oracle-review-slot .oracle-card__controls {
  gap: 6px;
}

.oracle-review-slot__signal {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 118px;
  padding: 12px 14px 11px;
  border-radius: 16px;
  border: 1px solid rgba(214, 193, 243, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014)),
    linear-gradient(180deg, rgba(34, 14, 49, 0.96), rgba(17, 8, 27, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -10px 14px rgba(0, 0, 0, 0.1),
    0 8px 14px rgba(0, 0, 0, 0.08);
}

.oracle-review-slot__signal-value {
  display: grid;
  gap: 4px;
  align-content: center;
  justify-items: start;
  min-height: 0;
}

.oracle-review-slot__signal-line {
  display: block;
  color: #fff0c4;
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.05em;
  font-variant-numeric: lining-nums tabular-nums;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.36),
    0 0 16px rgba(136, 111, 196, 0.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oracle-review-slot__signal--numeric .oracle-review-slot__signal-line {
  font-size: clamp(3.25rem, 5.6vw, 6.1rem);
  letter-spacing: -0.075em;
}

.oracle-review-slot__signal--range-stacked .oracle-review-slot__signal-line {
  font-size: clamp(1.92rem, 3.12vw, 3.2rem);
  line-height: 0.9;
}

.oracle-review-slot__signal--range .oracle-review-slot__signal-line,
.oracle-review-slot__signal--wide .oracle-review-slot__signal-line {
  font-size: clamp(1.78rem, 2.7vw, 2.55rem);
  letter-spacing: -0.035em;
}

.oracle-review-slot__signal--word .oracle-review-slot__signal-line {
  font-size: clamp(1.58rem, 2.5vw, 2.28rem);
  letter-spacing: 0.02em;
}

.oracle-review-slot__signal-caption {
  margin: 0;
  color: rgba(227, 214, 245, 0.78);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.18;
  text-transform: uppercase;
}

.oracle-card__reason--review {
  min-height: 2.65em;
  font-size: 0.75rem;
  line-height: 1.22;
  font-weight: 600;
}

.oracle-card--oracle-review-slot .oracle-card__stats {
  margin-top: auto;
}

.oracle-card--oracle-review-slot .oracle-stat {
  min-height: 54px;
  padding: 8px 8px 7px;
}

.oracle-card--oracle-review-slot .oracle-stat__label {
  font-size: 0.62rem;
}

.oracle-card--oracle-review-slot .oracle-stat__value {
  font-size: 1rem;
}

.oracle-card--oracle-review-header .oracle-card__reason {
  font-size: 0.8rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oracle-review-stack--composition {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 0;
}

.oracle-review-grid--oracle-composition .oracle-inline-note--review {
  -webkit-line-clamp: 3;
  min-height: 3.55em;
}

.oracle-review-grid--oracle-composition .oracle-card__reason--review {
  min-height: 2.4em;
}

.oracle-review-slot__headline {
  display: block;
  min-height: 1.4em;
  color: #f6efff;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.05em;
  white-space: normal;
  overflow: visible;
  text-wrap: balance;
}

.oracle-review-slot__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.oracle-review-inline-editor {
  display: grid;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(226, 184, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, rgba(24, 10, 35, 0.96), rgba(14, 7, 22, 0.98));
}

.oracle-review-inline-editor__chips {
  gap: 6px;
}

.oracle-review-inline-editor__field {
  gap: 6px;
}

.oracle-review-inline-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.oracle-review-inline-editor__save {
  width: auto;
  min-width: 126px;
}

.oracle-advanced-catalog {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ui-gap);
}

.oracle-card--advanced-catalog,
.oracle-card--lab-panel,
.oracle-card--lab-panel-full {
  min-height: 0;
}

.oracle-card--advanced-intro {
  grid-column: 1 / -1;
  min-height: auto;
}

.oracle-card--lab-panel-full {
  grid-column: 1 / -1;
}

.oracle-card__controls--lab {
  gap: 10px;
}

.oracle-lab-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0;
  margin: 0 0 8px;
  cursor: pointer;
}

.oracle-lab-quote {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.oracle-lab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.oracle-card__controls--advanced-preview {
  gap: 6px;
}

.oracle-inline-note--advanced-preview,
.oracle-card__reason--advanced-preview {
  min-height: 1.2em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oracle-inline-note--advanced-preview {
  -webkit-line-clamp: 2;
}

.oracle-card__reason--advanced-preview {
  -webkit-line-clamp: 1;
}

.oracle-chip-row--advanced-preview {
  gap: 5px;
}

.oracle-card--advanced-catalog .oracle-card__stats {
  margin-top: auto;
}

.oracle-lab-actions--catalog,
.oracle-lab-actions--builder {
  margin-top: auto;
}

.oracle-lab-conditions {
  display: grid;
  gap: 10px;
}

.oracle-lab-condition {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 1180px) {
  .oracle-advanced-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oracle-review--build .oracle-build-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .oracle-mode-dock {
    justify-content: space-between;
    gap: 8px;
  }

  .oracle-mode-dock__switcher {
    width: auto;
  }

  .oracle-advanced-catalog {
    grid-template-columns: minmax(0, 1fr);
  }

  .oracle-review--build .oracle-build-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .oracle-lab-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.oracle-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 1fr);
  min-width: 0;
  height: 100%;
  gap: 5px;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0;
}

.oracle-game[data-focus-area="range"] .oracle-panel--range,
.oracle-game[data-focus-area="stage"] .oracle-stage,
.oracle-game[data-focus-area="predictions"] .oracle-card.is-active {
  border-color: rgba(255, 229, 155, 0.22);
}

.oracle-game[data-focus-area="predictions"] .oracle-card.is-active {
  box-shadow: 0 0 0 1px rgba(255, 229, 155, 0.08);
}

/* Dialogs */
.oracle-dialog {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 16px;
}

.oracle-dialog[hidden] {
  display: none;
}

.oracle-dialog__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 2, 10, 0.72);
  padding: 0;
}

.oracle-dialog__panel {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  overflow: hidden;
  padding: 14px;
  display: grid;
  gap: 12px;
  border-radius: 24px;
  border: 1px solid var(--panel-border-strong);
  background:
    linear-gradient(180deg, rgba(35, 10, 50, 0.96), rgba(19, 6, 28, 0.98)),
    rgba(18, 6, 25, 0.96);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 229, 155, 0.06);
}

.oracle-dialog__content {
  min-height: 0;
  overflow: hidden;
}

.oracle-dialog__content .oracle-card {
  border-color: var(--color-border-mid);
  box-shadow: none;
  padding: 12px;
  gap: 10px;
}

.oracle-dialog[data-mode="demo-login"] .oracle-dialog__panel {
  width: min(440px, calc(100vw - 32px));
}

.oracle-dialog[data-mode="demo-access-gate"] .oracle-dialog__panel {
  width: min(620px, calc(100vw - 32px));
}

.oracle-dialog[data-mode="demo-access-gate"] .oracle-panel__head {
  display: none;
}

.oracle-dialog[data-mode="demo-access-gate"] .oracle-panel__head button[data-action="close-dialog"],
.oracle-dialog[data-mode="demo-access-gate"] .oracle-dialog__backdrop {
  display: none;
}

.oracle-dialog[data-mode="demo-access-gate"] {
  padding: 0;
}

.oracle-dialog[data-mode="demo-access-gate"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at top, rgba(255, 229, 155, 0.18), transparent 30%),
    radial-gradient(circle at bottom, rgba(132, 248, 192, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(6, 1, 12, 0.82), rgba(6, 1, 12, 0.95));
  backdrop-filter: blur(36px) saturate(0.42) brightness(0.42);
  -webkit-backdrop-filter: blur(36px) saturate(0.42) brightness(0.42);
}

.oracle-dialog[data-mode="demo-access-gate"] .oracle-dialog__panel {
  z-index: 2;
  width: min(620px, calc(100vw - 32px));
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(255, 229, 155, 0.18);
  background:
    linear-gradient(180deg, rgba(34, 11, 51, 0.92), rgba(14, 5, 24, 0.96)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    0 48px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 229, 155, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body:has(.oracle-dialog[data-mode="demo-access-gate"]:not([hidden])) .oracle-game {
  pointer-events: none;
  user-select: none;
}

.oracle-game {
  transition:
    filter 420ms ease,
    opacity 420ms ease,
    transform 420ms ease;
}

body.demo-access-locked .oracle-game,
body.demo-access-unlocking .oracle-game {
  filter: blur(28px) saturate(0.42) brightness(0.36);
  opacity: 0.2;
  transform: scale(1.02);
  pointer-events: none;
  user-select: none;
}

body.demo-access-unlocking .oracle-game {
  filter: blur(8px) saturate(0.72) brightness(0.7);
  opacity: 0.58;
  transform: scale(1.008);
}

.oracle-login-mini,
.oracle-access-gate,
.oracle-login-form,
.oracle-account-section,
.oracle-account-metric,
.oracle-account-empty {
  border-radius: 22px;
  border: 1px solid var(--color-border-mid);
  background:
    linear-gradient(180deg, rgba(37, 11, 54, 0.88), rgba(13, 4, 21, 0.94)),
    rgba(255, 255, 255, 0.03);
  padding: 16px;
}

.oracle-login-mini {
  display: grid;
  gap: 14px;
}

.oracle-access-gate {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(32, 11, 47, 0.92), rgba(10, 4, 19, 0.98)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.24);
}

.oracle-access-gate__badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--panel-border-strong);
  background: rgba(255, 229, 155, 0.08);
  color: var(--color-gold-strong);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.oracle-access-gate__headline {
  display: grid;
  gap: 8px;
}

.oracle-access-gate__eyebrow {
  margin: 0;
  color: rgba(255, 229, 155, 0.72);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.oracle-access-gate__title {
  margin: 0;
  color: rgba(255, 247, 225, 0.98);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.oracle-access-gate__subtitle {
  margin: 0;
  color: rgba(218, 204, 233, 0.72);
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oracle-access-gate__copy {
  display: grid;
  gap: 8px;
  padding: 18px 18px 0;
  border-top: 1px solid rgba(255, 229, 155, 0.08);
}

.oracle-access-gate__copy p {
  margin: 0;
  color: rgba(238, 227, 247, 0.82);
  line-height: 1.75;
  font-size: 1rem;
}

.oracle-access-gate__copy strong {
  color: rgba(255, 244, 208, 0.94);
}

.oracle-login-mini__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}

.oracle-login-mini__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 229, 155, 0.18);
  background: rgba(255, 229, 155, 0.08);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oracle-login-form {
  display: grid;
  align-content: start;
  gap: 12px;
}

.oracle-login-form--mini {
  padding: 0;
  border: 0;
  background: transparent;
}

.oracle-play-button--compact {
  min-height: 42px;
  padding-inline: 18px;
  border-radius: 17px;
  letter-spacing: 0.025em;
}

.oracle-login-form__status {
  margin: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 229, 155, 0.16);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.84rem;
}

.oracle-login-form__status[data-state="error"] {
  border-color: rgba(255, 175, 187, 0.28);
  color: #ffd1df;
  background: rgba(82, 14, 38, 0.28);
}

.oracle-login-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.oracle-account-loading {
  padding: 24px 12px;
  color: var(--muted);
  text-align: center;
}

.oracle-account-overlay {
  display: grid;
  gap: 16px;
}

.oracle-account-overlay__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.oracle-account-overlay__title {
  margin: 0;
  font-size: clamp(1.15rem, 1.02rem + 0.35vw, 1.5rem);
}

.oracle-account-overlay__subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
}

.oracle-account-overlay__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.oracle-account-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.oracle-account-metric {
  display: grid;
  gap: 8px;
  min-height: 96px;
}

.oracle-account-metric span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oracle-account-metric strong {
  font-size: clamp(1.1rem, 1.02rem + 0.26vw, 1.45rem);
  font-variant-numeric: tabular-nums;
}

.oracle-account-overlay__layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.oracle-account-section {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.oracle-account-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.oracle-account-section__head h4 {
  margin: 0;
  font-size: 0.96rem;
}

.oracle-account-section__head span {
  color: var(--muted);
  font-size: 0.78rem;
}

.oracle-account-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

.oracle-account-list-item {
  display: grid;
  gap: 6px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
}

.oracle-account-list-item__top,
.oracle-account-list-item__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.oracle-account-list-item__top strong,
.oracle-account-list-item__meta span:last-child,
.oracle-account-list-item__time,
.oracle-account-profile dd,
.oracle-account-profile dt {
  font-variant-numeric: tabular-nums;
}

.oracle-account-list-item__meta,
.oracle-account-list-item__time,
.oracle-account-profile dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.oracle-account-outcome {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 229, 155, 0.16);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.oracle-account-outcome.is-hit {
  border-color: rgba(126, 245, 180, 0.22);
  color: #b9ffd4;
}

.oracle-account-outcome.is-miss {
  border-color: rgba(255, 143, 183, 0.22);
  color: #ffd1df;
}

.oracle-account-outcome.is-pending {
  border-color: rgba(255, 229, 155, 0.24);
  color: var(--accent);
}

.oracle-account-empty {
  display: grid;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.oracle-account-empty--error {
  justify-items: center;
}

.oracle-account-empty p {
  margin: 0;
}

.oracle-account-profile {
  margin: 0;
  display: grid;
  gap: 10px;
}

.oracle-account-profile div {
  display: grid;
  gap: 4px;
}

.oracle-account-profile dd {
  margin: 0;
  color: var(--text);
}

/* History */
.oracle-history__item,
.oracle-empty {
  border-radius: 14px;
  border: 1px solid var(--color-border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, rgba(39, 16, 56, 0.96), rgba(18, 8, 29, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -10px 14px rgba(0, 0, 0, 0.12),
    0 10px 16px rgba(0, 0, 0, 0.08);
  padding: 6px 8px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.oracle-history__item {
  display: grid;
  gap: 2px;
  align-content: start;
  cursor: pointer;
  transition:
    transform var(--motion-medium) var(--ease-standard),
    border-color var(--motion-medium) var(--ease-standard),
    box-shadow var(--motion-medium) var(--ease-standard),
    opacity var(--motion-medium) var(--ease-standard);
}

.oracle-empty--history {
  cursor: pointer;
  align-content: center;
  justify-items: start;
}

.oracle-history__action-slot {
  display: flex;
  min-width: 0;
  min-height: 0;
}

.oracle-history__action-card {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100%;
  padding: 6px 10px;
  border: 1px solid rgba(208, 154, 255, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(208, 154, 255, 0.18), rgba(208, 154, 255, 0.05)),
    linear-gradient(180deg, rgba(36, 14, 52, 0.96), rgba(18, 7, 28, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -10px 14px rgba(0, 0, 0, 0.12),
    0 8px 12px rgba(0, 0, 0, 0.08),
    0 0 14px rgba(208, 154, 255, 0.1);
  color: rgba(238, 214, 255, 0.96);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition:
    border-color var(--motion-medium) var(--ease-standard),
    box-shadow var(--motion-medium) var(--ease-standard),
    color var(--motion-medium) var(--ease-standard),
    background var(--motion-medium) var(--ease-standard);
}

.oracle-history__action-card:hover,
.oracle-history__action-card:focus-visible {
  border-color: rgba(208, 154, 255, 0.38);
  color: rgba(247, 233, 255, 1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(208, 154, 255, 0.06),
    0 10px 14px rgba(0, 0, 0, 0.1),
    0 0 16px rgba(208, 154, 255, 0.16);
}

.oracle-history__action-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.oracle-history__item:hover,
.oracle-history__item:focus-within {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -10px 14px rgba(0, 0, 0, 0.12),
    0 12px 18px rgba(0, 0, 0, 0.1);
}

.oracle-history__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.oracle-history__item--win {
  border-color: rgba(126, 245, 180, 0.28);
  background:
    linear-gradient(180deg, rgba(126, 245, 180, 0.18), rgba(126, 245, 180, 0.05) 46%, rgba(18, 8, 29, 0.98)),
    linear-gradient(180deg, rgba(39, 16, 56, 0.96), rgba(18, 8, 29, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(126, 245, 180, 0.08),
    0 8px 12px rgba(0, 0, 0, 0.08),
    0 0 16px rgba(126, 245, 180, 0.14);
}

.oracle-history__item--lose {
  border-color: rgba(186, 177, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(186, 177, 255, 0.14), rgba(95, 64, 160, 0.04) 52%, rgba(18, 8, 29, 0.98)),
    linear-gradient(180deg, rgba(39, 16, 56, 0.96), rgba(18, 8, 29, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 12px rgba(0, 0, 0, 0.08),
    0 0 14px rgba(186, 177, 255, 0.1);
}

.oracle-history__item.is-new {
  animation: oracle-history-enter 360ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.oracle-history__number {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.32);
}

.oracle-history__prediction,
.oracle-history__meta,
.oracle-empty {
  color: var(--muted);
  line-height: 1.12;
  font-size: 0.68rem;
}

.oracle-history__prediction,
.oracle-history__meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oracle-empty {
  display: flex;
  align-items: center;
}

.oracle-empty--history {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
  border-color: rgba(255, 229, 155, 0.12);
  background:
    linear-gradient(180deg, rgba(46, 16, 67, 0.52), rgba(24, 8, 36, 0.72)),
    rgba(255, 255, 255, 0.03);
}

.oracle-empty__paragraph {
  margin: 0;
  color: rgba(240, 230, 255, 0.9);
  font-size: 0.68rem;
  line-height: 1.18;
}

.oracle-empty__paragraph--note {
  color: rgba(216, 193, 241, 0.78);
  font-size: 0.72rem;
}

.oracle-history__profit--win {
  color: var(--success);
}

.oracle-history__profit--lose {
  color: var(--danger);
}

.oracle-history__profit--win,
.oracle-history__profit--lose {
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.32);
}

@keyframes oracle-card-arm {
  0% {
    transform: translateY(0);
    border-color: rgba(255, 229, 155, 0.24);
    box-shadow:
      inset 0 0 0 1px rgba(255, 229, 155, 0.06),
      0 0 0 0 rgba(255, 229, 155, 0);
  }

  45% {
    transform: translateY(0);
    border-color: rgba(126, 245, 180, 0.34);
    box-shadow:
      inset 0 0 0 1px rgba(126, 245, 180, 0.12),
      inset 0 0 18px rgba(126, 245, 180, 0.07),
      0 10px 20px rgba(29, 108, 71, 0.08);
  }

  100% {
    transform: translateY(0);
    border-color: rgba(255, 229, 155, 0.24);
    box-shadow:
      inset 0 0 0 1px rgba(255, 229, 155, 0.06),
      0 0 0 0 rgba(255, 229, 155, 0);
  }
}

@keyframes oracle-card-win-sweep {
  0% {
    opacity: 0;
    transform: translateX(-32%);
  }

  18% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translateX(32%);
  }
}

@keyframes oracle-stage-hit-pulse {
  0% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 18px 36px rgba(0, 0, 0, 0.28);
  }

  35% {
    box-shadow:
      inset 0 0 0 1px rgba(154, 255, 194, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 0 1px rgba(126, 245, 180, 0.18),
      0 18px 36px rgba(0, 0, 0, 0.28),
      0 0 30px rgba(80, 255, 160, 0.18);
  }

  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 18px 36px rgba(0, 0, 0, 0.28);
  }
}

@keyframes oracle-stage-miss-pulse {
  0% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 18px 36px rgba(0, 0, 0, 0.28);
  }

  50% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 175, 187, 0.14),
      0 18px 36px rgba(0, 0, 0, 0.28),
      0 0 22px rgba(180, 82, 120, 0.12);
  }

  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 18px 36px rgba(0, 0, 0, 0.28);
  }
}

@keyframes oracle-stage-big-hit {
  0% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.008);
    box-shadow:
      inset 0 0 0 1px rgba(255, 240, 192, 0.2),
      0 18px 36px rgba(0, 0, 0, 0.28),
      0 0 34px rgba(255, 229, 155, 0.18),
      0 0 42px rgba(80, 255, 160, 0.16);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes oracle-stage-big-hit-impact {
  0% {
    transform: translateX(0) scale(1);
  }

  16% {
    transform: translateX(-1px) scale(1.004);
  }

  32% {
    transform: translateX(1px) scale(1.008);
  }

  48% {
    transform: translateX(-1px) scale(1.006);
  }

  100% {
    transform: translateX(0) scale(1);
  }
}

@keyframes oracle-view-enter {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
    filter: blur(6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes oracle-view-exit {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: translateY(8px) scale(0.992);
    filter: blur(6px);
  }
}

@keyframes oracle-step-enter-forward {
  0% {
    opacity: 0;
    transform: translateX(24px) scale(0.985);
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes oracle-step-exit-forward {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-18px) scale(0.985);
    filter: blur(4px);
  }
}

@keyframes oracle-step-enter-back {
  0% {
    opacity: 0;
    transform: translateX(-24px) scale(0.985);
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes oracle-step-exit-back {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }

  100% {
    opacity: 0;
    transform: translateX(18px) scale(0.985);
    filter: blur(4px);
  }
}

@keyframes oracle-side-layer-enter {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes oracle-side-layer-exit {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
}

@keyframes oracle-card-enter {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes oracle-build-group-wave {
  0%,
  100% {
    opacity: 0.9;
    transform: translate3d(0, 0, 0) scale(1);
    filter: saturate(1) brightness(1);
  }

  50% {
    opacity: 1;
    transform: translate3d(0, -0.5%, 0) scale(1.01);
    filter: saturate(1.05) brightness(1.03);
  }
}

@keyframes oracle-build-choice-idle {
  0%,
  64%,
  100% {
    filter: saturate(1) brightness(1);
    border-color: rgba(var(--choice-rgb), 0.42);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      inset 0 0 24px rgba(var(--choice-rgb), 0.12),
      inset 0 -8px 16px rgba(0, 0, 0, 0.18),
      0 10px 20px rgba(0, 0, 0, 0.14),
      0 0 18px rgba(var(--choice-rgb), 0.08);
  }

  72% {
    filter: saturate(1.05) brightness(1.04);
    border-color: rgba(var(--choice-rgb), 0.58);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 0 26px rgba(var(--choice-rgb), 0.16),
      inset 0 -8px 16px rgba(0, 0, 0, 0.18),
      0 10px 20px rgba(0, 0, 0, 0.14),
      0 0 20px rgba(var(--choice-rgb), 0.14);
  }

  84% {
    filter: saturate(1.02) brightness(1.02);
    border-color: rgba(var(--choice-rgb), 0.48);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.09),
      inset 0 0 24px rgba(var(--choice-rgb), 0.14),
      inset 0 -8px 16px rgba(0, 0, 0, 0.18),
      0 10px 20px rgba(0, 0, 0, 0.14),
      0 0 16px rgba(var(--choice-rgb), 0.1);
  }
}

@keyframes oracle-build-choice-idle-active {
  0%,
  64%,
  100% {
    filter: saturate(1.02) brightness(1.02);
    border-color: rgba(var(--choice-rgb), 0.72);
    box-shadow:
      0 0 0 1px rgba(var(--choice-rgb), 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 0 24px rgba(var(--choice-rgb), 0.18),
      0 8px 16px rgba(0, 0, 0, 0.12),
      0 0 14px rgba(var(--choice-rgb), 0.14);
  }

  72% {
    filter: saturate(1.08) brightness(1.06);
    border-color: rgba(var(--choice-rgb), 0.88);
    box-shadow:
      0 0 0 1px rgba(var(--choice-rgb), 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      inset 0 0 28px rgba(var(--choice-rgb), 0.24),
      0 10px 18px rgba(0, 0, 0, 0.12),
      0 0 18px rgba(var(--choice-rgb), 0.2);
  }

  84% {
    filter: saturate(1.04) brightness(1.03);
    border-color: rgba(var(--choice-rgb), 0.78);
    box-shadow:
      0 0 0 1px rgba(var(--choice-rgb), 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.13),
      inset 0 0 25px rgba(var(--choice-rgb), 0.2),
      0 8px 16px rgba(0, 0, 0, 0.12),
      0 0 14px rgba(var(--choice-rgb), 0.16);
  }
}

@keyframes oracle-master-node-pulse {
  0%,
  100% {
    opacity: 0.78;
    transform: scale(1);
    box-shadow:
      inset 0 0 0 1px rgba(255, 241, 189, 0.08),
      0 0 0 0 rgba(255, 229, 155, 0);
  }

  48% {
    opacity: 1;
    transform: scale(1.02);
    box-shadow:
      inset 0 0 0 1px rgba(255, 241, 189, 0.16),
      0 0 0 7px rgba(255, 229, 155, 0.06);
  }

  66% {
    opacity: 0.9;
    transform: scale(1.008);
    box-shadow:
      inset 0 0 0 1px rgba(255, 241, 189, 0.12),
      0 0 0 11px rgba(255, 229, 155, 0);
  }
}

@keyframes oracle-build-choice-sheen {
  0%,
  64%,
  100% {
    opacity: 0.96;
    transform: translateX(-8%);
    filter: brightness(1);
  }

  72% {
    opacity: 1;
    transform: translateX(7%);
    filter: brightness(1.08);
  }

  84% {
    opacity: 0.98;
    transform: translateX(1%);
    filter: brightness(1.03);
  }
}

@keyframes oracle-history-enter {
  0% {
    opacity: 0;
    transform: translateX(-16px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes oracle-soft-pulse {
  0%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 12px 24px rgba(0, 0, 0, 0.22),
      0 0 0 1px rgba(255, 229, 155, 0.08),
      0 0 16px rgba(255, 229, 155, 0.08);
  }

  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 18px 30px rgba(0, 0, 0, 0.24),
      0 0 0 1px rgba(255, 229, 155, 0.12),
      0 0 24px rgba(255, 229, 155, 0.16);
  }
}

@keyframes oracle-cta-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 12px 24px rgba(0, 0, 0, 0.22),
      0 0 0 1px rgba(255, 229, 155, 0.08),
      0 0 16px rgba(255, 229, 155, 0.08);
  }

  50% {
    transform: translateY(-1px) scale(1.006);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 16px 28px rgba(0, 0, 0, 0.24),
      0 0 0 1px rgba(255, 229, 155, 0.1),
      0 0 22px rgba(255, 229, 155, 0.14);
  }
}

@keyframes oracle-sheen-sweep {
  0%,
  60% {
    transform: translateX(-135%);
    opacity: 0;
  }

  66% {
    opacity: 0.35;
  }

  82% {
    transform: translateX(135%);
    opacity: 0.72;
  }

  100% {
    transform: translateX(135%);
    opacity: 0;
  }
}

@keyframes oracle-balance-pulse-up {
  0% {
    color: var(--accent);
    transform: translateY(0);
    text-shadow: none;
  }

  40% {
    color: #d6ffe3;
    transform: translateY(-1px);
    text-shadow: 0 0 16px rgba(126, 245, 180, 0.24);
  }

  100% {
    color: var(--accent);
    transform: translateY(0);
    text-shadow: none;
  }
}

@keyframes oracle-balance-pulse-down {
  0% {
    color: var(--accent);
    transform: translateY(0);
  }

  40% {
    color: #ffd2da;
    transform: translateY(1px);
    text-shadow: 0 0 12px rgba(255, 175, 187, 0.16);
  }

  100% {
    color: var(--accent);
    transform: translateY(0);
    text-shadow: none;
  }
}

@keyframes oracle-balance-jackpot {
  0% {
    color: var(--accent);
    transform: translateY(0) scale(1);
    text-shadow: none;
  }

  32% {
    color: #fff5c8;
    transform: translateY(-1px) scale(1.04);
    text-shadow:
      0 0 18px rgba(255, 229, 155, 0.28),
      0 0 28px rgba(126, 245, 180, 0.16);
  }

  100% {
    color: var(--accent);
    transform: translateY(0) scale(1);
    text-shadow: none;
  }
}

@keyframes oracle-big-hit-banner {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 0 1px rgba(255, 229, 155, 0.12),
      inset 0 0 18px rgba(255, 229, 155, 0.06);
  }

  36% {
    transform: scale(1.012);
    box-shadow:
      0 0 0 1px rgba(255, 229, 155, 0.18),
      0 0 26px rgba(255, 229, 155, 0.18),
      inset 0 0 26px rgba(255, 229, 155, 0.1);
  }

  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 1px rgba(255, 229, 155, 0.12),
      inset 0 0 18px rgba(255, 229, 155, 0.06);
  }
}

@keyframes oracle-onboarding-breathe {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 229, 155, 0.05),
      0 8px 18px rgba(0, 0, 0, 0.1),
      inset 0 0 12px rgba(255, 229, 155, 0.03);
    transform: translateY(0);
  }

  50% {
    box-shadow:
      0 0 0 1px rgba(255, 229, 155, 0.1),
      0 12px 24px rgba(0, 0, 0, 0.14),
      inset 0 0 18px rgba(255, 229, 155, 0.06);
    transform: translateY(-0.5px);
  }
}

@keyframes oracle-onboarding-card-bloom {
  0%,
  100% {
    transform: translateY(0);
    border-color: rgba(255, 229, 155, 0.22);
    box-shadow:
      inset 0 0 0 1px rgba(255, 229, 155, 0.08),
      inset 0 0 14px rgba(255, 229, 155, 0.04);
  }

  45% {
    transform: translateY(0);
    border-color: rgba(126, 245, 180, 0.34);
    box-shadow:
      inset 0 0 0 1px rgba(126, 245, 180, 0.14),
      inset 0 0 18px rgba(126, 245, 180, 0.08);
  }
}

@keyframes oracle-onboarding-sweep {
  0%,
  18% {
    opacity: 0;
    transform: translateY(-115%);
  }

  34% {
    opacity: 1;
  }

  52% {
    opacity: 0.9;
    transform: translateY(14%);
  }

  68%,
  100% {
    opacity: 0;
    transform: translateY(125%);
  }
}

@keyframes oracle-idle-rain-fall {
  0% {
    transform: translate3d(0, -12%, 0) scale(var(--idle-rain-scale, 1));
  }

  100% {
    transform: translate3d(var(--idle-rain-drift, 0px), 132%, 0) scale(var(--idle-rain-scale, 1));
  }
}

@keyframes oracle-button-press {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.992);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes oracle-chip-press {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-1px) scale(var(--press-scale));
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes oracle-stake-editor-spotlight {
  0% {
    border-color: rgba(226, 184, 255, 0.1);
    box-shadow: 0 0 0 rgba(255, 229, 155, 0);
  }

  22% {
    border-color: rgba(255, 229, 155, 0.52);
    box-shadow:
      0 0 0 1px rgba(255, 229, 155, 0.18),
      0 0 0 10px rgba(255, 229, 155, 0.08);
  }

  100% {
    border-color: rgba(226, 184, 255, 0.1);
    box-shadow: 0 0 0 rgba(255, 229, 155, 0);
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: var(--motion-panel);
  animation-timing-function: var(--ease-emphasized);
}

/* Responsive */
@media (min-width: 961px) {
  body[data-prediction-mode="simple"],
  body[data-prediction-mode="advanced"],
  body[data-prediction-mode="oracle"] {
    overflow: hidden;
  }

  .oracle-game {
    height: 100svh;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .oracle-dashboard {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    align-items: stretch;
  }

  .oracle-stage-panel {
    position: sticky;
    top: 0;
    align-self: stretch;
    min-height: 0;
    height: 100%;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-ai-panel,
  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-panel {
    display: none;
  }

  .oracle-side-panel {
    grid-template-rows: auto minmax(0, 1fr);
    overflow-x: hidden;
    overflow-y: hidden;
    align-content: stretch;
    gap: 10px;
    padding-right: 6px;
  }

  .oracle-prediction-grid {
    overflow: auto;
    min-height: 0;
    padding-right: 4px;
    align-content: start;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-card--ai-workspace {
    gap: 12px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__layout {
    grid-template-columns: minmax(230px, 0.88fr) minmax(0, 1.12fr);
    gap: 12px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__control-group,
  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__observed {
    padding: 10px 12px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-dashboard {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-stage-panel {
    grid-template-rows: auto minmax(184px, 184px) auto auto minmax(132px, 1fr) auto;
    gap: 8px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-stage {
    width: min(100%, 340px);
    min-height: 184px;
    max-height: 184px;
    border-radius: 18px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-stage__value {
    padding: 18px;
    font-size: clamp(2.5rem, 4.4vw, 4.8rem);
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-stage-feed {
    gap: 5px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-stage-feed__line {
    min-height: 42px;
    padding: 0 10px;
    border-radius: 12px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-stage-feed__message,
  .oracle-game[data-prediction-mode="oracle"] .oracle-onboarding-hint,
  .oracle-game[data-prediction-mode="oracle"] .oracle-inline-note {
    font-size: 0.75rem;
    line-height: 1.22;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-summary-grid,
  .oracle-game[data-prediction-mode="oracle"] .oracle-card__stats {
    min-height: 50px;
    gap: 6px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-summary-tile,
  .oracle-game[data-prediction-mode="oracle"] .oracle-stat {
    min-height: 48px;
    padding: 6px 8px;
    border-radius: 14px;
    gap: 4px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-summary-tile__label,
  .oracle-game[data-prediction-mode="oracle"] .oracle-stat__label {
    font-size: 0.62rem;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-summary-tile__value,
  .oracle-game[data-prediction-mode="oracle"] .oracle-stat__value {
    font-size: 0.88rem;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-play-button,
  .oracle-game[data-prediction-mode="oracle"] .oracle-auto-toggle {
    min-height: 40px;
    border-radius: 15px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-auto-toggle {
    min-width: 92px;
    padding: 0 13px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-prediction-grid {
    display: grid;
    align-content: stretch;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-card--ai-workspace {
    gap: 8px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-card__head--ai-workspace {
    padding-bottom: 0;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-oracle__status-line {
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__layout {
    grid-template-columns: minmax(216px, 0.74fr) minmax(0, 1.02fr);
    gap: 8px;
    min-height: 100%;
    align-items: start;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__controls,
  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__inspector {
    gap: 8px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__controls {
    grid-template-rows: repeat(5, auto);
    align-content: start;
    align-self: start;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__controls > .oracle-ai-workspace__control-group {
    grid-template-rows: auto auto;
    min-height: 0;
    padding: 9px 10px;
    gap: 6px;
    align-content: start;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__controls > .oracle-ai-workspace__control-group .oracle-chip-row {
    align-self: start;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__control-copy strong {
    font-size: 0.8rem;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__control-copy p,
  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__summary-copy p {
    font-size: 0.71rem;
    line-height: 1.22;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-chip-row {
    gap: 5px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-chip,
  .oracle-game[data-prediction-mode="oracle"] .oracle-ghost-button,
  .oracle-game[data-prediction-mode="oracle"] .oracle-card__status {
    min-height: 31px;
    padding: 5px 10px;
    font-size: 0.76rem;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-field__label,
  .oracle-game[data-prediction-mode="oracle"] .oracle-stat__label {
    font-size: 0.68rem;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-field__input {
    min-height: 36px;
    padding: 7px 10px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__personal-grid {
    gap: 6px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-build-screen {
    grid-template-columns: minmax(248px, 0.86fr) minmax(0, 1.14fr);
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-build-panel {
    gap: 8px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-build-option,
  .oracle-game[data-prediction-mode="oracle"] .oracle-personal-signals,
  .oracle-game[data-prediction-mode="oracle"] .oracle-composition-header,
  .oracle-game[data-prediction-mode="oracle"] .oracle-risk-preview,
  .oracle-game[data-prediction-mode="oracle"] .oracle-stake-map,
  .oracle-game[data-prediction-mode="oracle"] .oracle-active-section,
  .oracle-game[data-prediction-mode="oracle"] .oracle-reserve-plays {
    padding: 14px;
    border-radius: 18px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-review {
    gap: 10px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-review--build .oracle-build-grid,
  .oracle-game[data-prediction-mode="oracle"] .oracle-personal-signals__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-review--build .oracle-build-grid--oracle-build-shell {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(212px, auto);
    align-items: start;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-build-grid--oracle-build-shell {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(212px, auto);
    align-items: start;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-build-grid--setup {
    grid-template-columns: minmax(0, 1fr);
  }

  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-build-panel {
    padding: 10px 12px;
    gap: 6px;
  }

  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-build-grid--setup {
    gap: 8px;
  }

  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-build-grid--setup .oracle-build-option {
    padding: 10px 12px;
    gap: 6px;
  }

  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-build-grid--setup .oracle-ai-workspace__control-copy {
    gap: 3px;
  }

  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-build-grid--setup .oracle-ai-workspace__control-copy strong {
    font-size: 0.82rem;
  }

  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-build-grid--setup .oracle-ai-workspace__control-copy p {
    display: block;
    min-height: 0;
    font-size: 0.68rem;
    line-height: 1.16;
  }

  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-slider-meta--compact strong {
    font-size: clamp(1.08rem, 1.8vw, 1.42rem);
  }

  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-slider-meta--compact span {
    font-size: 0.58rem;
  }

  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-controls__slider--compact {
    height: 10px;
  }

  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-controls__slider--compact::-webkit-slider-thumb,
  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-controls__slider--compact::-moz-range-thumb {
    width: 20px;
    height: 20px;
  }

  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-controls__ticks--compact {
    font-size: 0.56rem;
  }

  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-ai-workspace__primary-actions {
    gap: 6px;
  }

  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-ai-workspace__primary-actions .oracle-play-button,
  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-ai-workspace__primary-actions .oracle-ghost-button {
    min-height: 38px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-build-screen__strategy .oracle-build-option {
    gap: 7px;
    padding: 11px 12px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-build-screen__signals .oracle-personal-signals {
    padding: 11px 12px;
    gap: 7px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-build-grid--oracle-build-shell .oracle-build-option,
  .oracle-game[data-prediction-mode="oracle"] .oracle-build-grid--oracle-build-shell .oracle-personal-signals,
  .oracle-game[data-prediction-mode="oracle"] .oracle-build-grid--oracle-build-shell .oracle-build-summary {
    padding: 9px 10px;
    gap: 6px;
    min-height: 212px;
    align-content: start;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-build-choice {
    min-height: 52px;
    font-size: 0.82rem;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-build-choice-grid--focus {
    padding: 8px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-build-choice__center {
    min-width: 102px;
    min-height: 42px;
    font-size: 0.78rem;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-build-screen__signals .oracle-ai-workspace__personal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-build-grid--oracle-build-shell .oracle-ai-workspace__personal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-build-screen__strategy .oracle-ai-workspace__control-copy,
  .oracle-game[data-prediction-mode="oracle"] .oracle-build-screen__signals .oracle-ai-workspace__control-copy {
    min-height: 0;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-build-screen__strategy .oracle-build-option .oracle-ai-workspace__control-copy p,
  .oracle-game[data-prediction-mode="oracle"] .oracle-build-screen__signals .oracle-personal-signals .oracle-ai-workspace__control-copy p {
    display: none;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-build-grid--oracle-build-shell .oracle-build-option .oracle-ai-workspace__control-copy p,
  .oracle-game[data-prediction-mode="oracle"] .oracle-build-grid--oracle-build-shell .oracle-personal-signals .oracle-ai-workspace__control-copy p {
    display: none;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-build-summary .oracle-inline-note,
  .oracle-game[data-prediction-mode="oracle"] .oracle-build-summary .oracle-card__reason {
    font-size: 0.74rem;
    line-height: 1.24;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__primary-actions--oracle-build-card {
    display: grid;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-review__overview {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__personal-digit-pills {
    gap: 5px;
    min-height: 22px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-pill--soft {
    padding: 5px 9px;
    font-size: 0.66rem;
  }

.oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__personal-actions {
  gap: 6px;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__apply-button {
  min-height: 48px;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-card--ai-summary {
  gap: 6px;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-ai-review-settings__grid {
  gap: 8px;
}

.oracle-game[data-prediction-mode="oracle"] .oracle-ai-review-settings__lane {
  gap: 6px;
  padding: 9px 10px;
}

  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-oracle__footer {
    gap: 3px;
  }

  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="setup"] .oracle-prediction-grid {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-history-panel {
    display: grid;
    min-height: auto;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-stepper__step {
    min-height: 31px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-review-grid {
    gap: 6px;
  }

  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="review"] .oracle-prediction-grid {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    overflow: auto;
    padding-bottom: 4px;
  }

  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="review"] .oracle-review-stack {
    grid-column: 1 / -1;
    width: 100%;
    gap: 5px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-review-grid--oracle-composition {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-card--oracle-review-slot {
    padding: 7px;
    gap: 5px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-review-slot__signal {
    min-height: 86px;
    padding: 8px 9px 8px;
    gap: 4px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-review-slot__signal--numeric .oracle-review-slot__signal-line {
    font-size: clamp(2.15rem, 3.8vw, 3.7rem);
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-review-slot__signal--range-stacked .oracle-review-slot__signal-line {
    font-size: clamp(1.3rem, 2.18vw, 2.2rem);
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-review-slot__signal--range .oracle-review-slot__signal-line,
  .oracle-game[data-prediction-mode="oracle"] .oracle-review-slot__signal--wide .oracle-review-slot__signal-line {
    font-size: clamp(1.18rem, 1.86vw, 1.82rem);
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-review-slot__signal--word .oracle-review-slot__signal-line {
    font-size: clamp(1.08rem, 1.72vw, 1.56rem);
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-review-slot__signal-caption {
    font-size: 0.6rem;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-card--oracle-review-slot .oracle-stat {
    min-height: 42px;
    padding: 6px 7px 5px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-card--oracle-review-slot .oracle-card__title {
    font-size: 0.88rem;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-inline-note--review {
    min-height: 1.8em;
    font-size: 0.72rem;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-card__reason--review {
    min-height: 2.05em;
    font-size: 0.64rem;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-review-slot__headline {
    min-height: 1.15em;
    font-size: clamp(1.5rem, 2.12vw, 2.02rem);
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-stepper__apply {
    min-width: 122px;
    min-height: 36px;
    padding-inline: 14px;
  }

  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="review"] .oracle-stepper {
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="review"] .oracle-stepper__actions {
    gap: 6px;
    padding: 4px;
  }

  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="review"] .oracle-stepper__actions .oracle-play-button,
  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="review"] .oracle-stepper__actions .oracle-ghost-button {
    min-height: 36px;
    padding-inline: 12px;
    font-size: 0.78rem;
  }

  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="review"] .oracle-stepper__utility-cluster {
    gap: 6px;
    padding: 3px;
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-history-panel {
    min-height: auto;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-prediction-grid,
  .oracle-game[data-prediction-mode="oracle"] .oracle-prediction-grid {
    gap: 8px;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-prediction-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: 8px;
    overflow: hidden;
    align-content: stretch;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-card {
    height: auto;
    padding: 10px;
    gap: 5px;
    overflow: hidden;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-card__head {
    min-height: 30px;
    gap: 8px;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-card__head-actions {
    gap: 6px;
    flex-wrap: wrap;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-card__title {
    font-size: 0.92rem;
    line-height: 1.04;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-card__controls {
    gap: 5px;
    overflow: visible;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-chip-row {
    gap: 5px;
    overflow: visible;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-chip,
  .oracle-game[data-prediction-mode="simple"] .oracle-ghost-button,
  .oracle-game[data-prediction-mode="simple"] .oracle-card__status {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 0.74rem;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-chip-row--sectors {
    gap: 5px;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-chip-row--sectors .oracle-chip,
  .oracle-game[data-prediction-mode="simple"] .oracle-chip-row--digit-count .oracle-chip {
    min-height: 28px;
    padding: 4px 6px;
    font-size: 0.72rem;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-chip-row--digit-count {
    min-height: 64px;
    gap: 5px;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-chip-row--digits {
    gap: 5px;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-chip-row--digits .oracle-chip {
    min-height: 28px;
    padding: 4px 5px;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-field__label,
  .oracle-game[data-prediction-mode="simple"] .oracle-stat__label {
    font-size: 0.66rem;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-field__input,
  .oracle-game[data-prediction-mode="simple"] .oracle-select {
    min-height: 36px;
    padding: 7px 10px;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-exact-control {
    padding: 3px;
    border-radius: 14px;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-exact-stepper {
    min-width: 36px;
    gap: 3px;
    padding-left: 3px;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-exact-stepper__button {
    min-width: 32px;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-stake-editor {
    gap: 5px;
    padding: 6px 8px;
    overflow: visible;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-stake-editor__summary {
    font-size: 0.66rem;
    line-height: 1.18;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-stake-editor__field {
    gap: 4px;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-stake-editor__number {
    width: 96px;
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 0.82rem;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-stake-editor__meta {
    gap: 6px;
    font-size: 0.63rem;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-stake-editor__meta strong {
    font-size: 0.82rem;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-stake-editor__actions {
    justify-content: flex-start;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-card__stats {
    min-height: 48px;
    gap: 5px;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-stat {
    min-height: 44px;
    padding: 6px 7px;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-stat__value {
    font-size: 0.84rem;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-empty--history {
    padding: 8px 10px;
    gap: 5px;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-empty__paragraph {
    font-size: 0.7rem;
    line-height: 1.26;
  }

  .oracle-game[data-prediction-mode="simple"] .oracle-empty--history .oracle-empty__paragraph:nth-of-type(n+3) {
    display: none;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-prediction-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    overflow: hidden;
    align-content: stretch;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-card,
  .oracle-game[data-prediction-mode="advanced"] .oracle-card--advanced-catalog,
  .oracle-game[data-prediction-mode="advanced"] .oracle-card--lab-panel,
  .oracle-game[data-prediction-mode="advanced"] .oracle-card--lab-panel-full {
    height: auto;
    padding: 10px;
    gap: 5px;
    overflow: hidden;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-card__head {
    min-height: 30px;
    gap: 8px;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-card__head-actions {
    gap: 6px;
    flex-wrap: wrap;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-card__title {
    font-size: 0.92rem;
    line-height: 1.04;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-card__controls {
    gap: 5px;
    overflow: visible;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-card__controls--lab {
    gap: 7px;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-chip-row {
    gap: 5px;
    overflow: visible;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-chip,
  .oracle-game[data-prediction-mode="advanced"] .oracle-ghost-button,
  .oracle-game[data-prediction-mode="advanced"] .oracle-card__status {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 0.74rem;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-chip-row--sectors .oracle-chip,
  .oracle-game[data-prediction-mode="advanced"] .oracle-chip-row--digit-count .oracle-chip {
    min-height: 28px;
    padding: 4px 6px;
    font-size: 0.72rem;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-chip-row--digits .oracle-chip {
    min-height: 28px;
    padding: 4px 5px;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-field__label,
  .oracle-game[data-prediction-mode="advanced"] .oracle-stat__label {
    font-size: 0.66rem;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-field__input,
  .oracle-game[data-prediction-mode="advanced"] .oracle-select {
    min-height: 36px;
    padding: 7px 10px;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-stake-editor {
    gap: 5px;
    padding: 6px 8px;
    overflow: visible;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-stake-editor__summary,
  .oracle-game[data-prediction-mode="advanced"] .oracle-inline-note,
  .oracle-game[data-prediction-mode="advanced"] .oracle-card__reason {
    font-size: 0.7rem;
    line-height: 1.22;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-card__stats {
    min-height: 48px;
    gap: 5px;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-stat {
    min-height: 44px;
    padding: 6px 7px;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-stat__value {
    font-size: 0.84rem;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-card--advanced-catalog .oracle-card__controls .oracle-card__reason,
  .oracle-game[data-prediction-mode="advanced"] .oracle-card--lab-panel .oracle-card__controls > .oracle-inline-note {
    display: none;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-lab-actions,
  .oracle-game[data-prediction-mode="advanced"] .oracle-lab-quote {
    gap: 6px;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-history-panel,
  .oracle-game[data-prediction-mode="oracle"] .oracle-history-panel {
    min-height: auto;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-empty--history,
  .oracle-game[data-prediction-mode="oracle"] .oracle-empty--history {
    padding: 8px 10px;
    gap: 5px;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-empty__paragraph,
  .oracle-game[data-prediction-mode="oracle"] .oracle-empty__paragraph {
    font-size: 0.7rem;
    line-height: 1.26;
  }

  .oracle-game[data-prediction-mode="advanced"] .oracle-empty--history .oracle-empty__paragraph:nth-of-type(n+2),
  .oracle-game[data-prediction-mode="oracle"] .oracle-empty--history .oracle-empty__paragraph:nth-of-type(n+2) {
    display: none;
  }

  .oracle-history-panel {
    margin-top: auto;
    align-self: end;
    position: sticky;
    left: 0;
    bottom: 0;
    z-index: 3;
    padding-top: 6px;
    background: linear-gradient(180deg, rgba(34, 10, 49, 0), rgba(34, 10, 49, 0.96) 38%);
  }

  .oracle-action-row {
    margin-top: auto;
    align-self: end;
    position: sticky;
    left: 0;
    bottom: 0;
    z-index: 3;
    padding-top: 6px;
    background: linear-gradient(180deg, rgba(34, 10, 49, 0), rgba(34, 10, 49, 0.96) 38%);
  }
}

@media (min-width: 961px) and (max-width: 1280px) {
  .oracle-game[data-prediction-mode="advanced"] .oracle-prediction-grid,
  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__layout,
  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-review-settings__grid,
  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__preset-grid,
  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__alternatives {
    grid-template-columns: 1fr;
  }

  .oracle-game[data-prediction-mode="oracle"][data-oracle-view="review"] .oracle-review-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__controls {
    grid-template-rows: repeat(5, auto);
  }

  .oracle-game[data-prediction-mode="oracle"] .oracle-ai-workspace__controls > .oracle-ai-workspace__control-group {
    min-height: 0;
  }
}

@keyframes oracle-aura {
  0% {
    opacity: 0;
    transform: scale(0.88);
  }

  40% {
    opacity: 0.72;
    transform: scale(1.04);
  }

  100% {
    opacity: 0.08;
    transform: scale(1.18);
  }
}

@keyframes oracle-charge {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1.003);
  }
}

@keyframes oracle-core-charge {
  0% {
    transform: translate(-50%, -50%) scale(0.985);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.025);
  }

  100% {
    transform: translate(-50%, -50%) scale(1.01);
  }
}

@keyframes oracle-core-settle {
  0% {
    transform: translate(-50%, -50%) scale(1.035);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes oracle-value-reveal {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes oracle-scanline-drift {
  0% {
    transform: translateY(-12%);
  }

  100% {
    transform: translateY(12%);
  }
}

@keyframes oracle-feed-marquee {
  0%,
  12% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-28%);
  }
}

@media (min-width: 861px) and (max-width: 1100px) {
  :root {
    --card-row-min-height: 0px;
    --metric-strip-height: 70px;
    --metric-tile-height: 60px;
    --metric-value-size: 0.94rem;
  }

  .oracle-toolbar {
    grid-template-columns: 1fr;
  }

  .oracle-dashboard {
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
    align-items: stretch;
  }

  .oracle-panel--range > .oracle-panel__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .oracle-prediction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 10px;
  }

  .oracle-ai-workspace__layout,
  .oracle-review-grid,
  .oracle-ai-review-settings__grid,
  .oracle-ai-workspace__preset-grid,
  .oracle-ai-workspace__alternatives {
    grid-template-columns: 1fr;
  }

  .oracle-ai-workspace__personal-grid {
    grid-template-columns: 1fr;
  }

  .oracle-ai-workspace__controls {
    grid-template-rows: repeat(5, auto);
  }

  .oracle-ai-workspace__controls > .oracle-ai-workspace__control-group {
    min-height: 0;
  }

  .oracle-ai-workspace__personal-actions {
    grid-template-columns: 1fr;
  }

  .oracle-stage {
    width: min(100%, 304px);
    min-height: 176px;
    max-height: 220px;
  }

  .oracle-chip-row--sectors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .oracle-chip-row--digit-count {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 66px;
  }

  .oracle-chip-row--digit-rune-modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --card-row-min-height: 0px;
    --metric-strip-height: 70px;
    --metric-tile-height: 60px;
    --metric-value-size: 0.94rem;
  }

  .oracle-toolbar,
  .oracle-dashboard {
    grid-template-columns: 1fr;
  }

  .oracle-dashboard {
    height: auto;
    overflow: visible;
    align-items: start;
    grid-template-rows: auto auto auto;
  }

  .oracle-panel--range > .oracle-panel__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .oracle-stage-panel {
    grid-column: 1;
    grid-row: 1;
    grid-template-rows: auto auto auto auto auto;
    align-content: start;
  }

  .oracle-side-panel {
    display: flex;
    flex-direction: column;
    overflow: visible;
    padding-right: 0;
    grid-column: 1;
    grid-row: 2;
  }

  .oracle-history-panel {
    grid-column: 1;
    grid-row: 3;
    height: auto;
    max-height: none;
    min-height: 0;
    padding-inline: 0;
  }

  .oracle-prediction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .oracle-stepper {
    grid-template-columns: 1fr;
  }

  .oracle-stepper__actions,
  .oracle-stepper__actions--review {
    width: 100%;
    justify-content: space-between;
  }

  .oracle-stepper__utility-cluster {
    flex: 1 1 auto;
  }

  .oracle-stepper__apply {
    min-width: 0;
  }

  .oracle-ai-workspace__layout,
  .oracle-review-grid,
  .oracle-ai-review-settings__grid,
  .oracle-ai-workspace__preset-grid,
  .oracle-ai-workspace__alternatives {
    grid-template-columns: 1fr;
  }

  .oracle-ai-workspace__personal-grid {
    grid-template-columns: 1fr;
  }

  .oracle-ai-workspace__controls {
    grid-template-rows: repeat(5, auto);
  }

  .oracle-ai-workspace__controls > .oracle-ai-workspace__control-group {
    min-height: 0;
  }

  .oracle-ai-workspace__inspector,
  .oracle-ai-workspace__personal-actions {
    grid-template-columns: 1fr;
  }

  .oracle-action-row {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
}

@media (min-width: 601px) and (max-width: 860px) {
  :root {
    --ui-gap: 9px;
    --ui-gap-sm: 7px;
    --card-padding: 11px;
    --card-radius: 17px;
    --metric-strip-height: 70px;
    --metric-tile-height: 60px;
    --card-footer-height: 30px;
    --metric-label-size: 0.62rem;
    --metric-value-size: 0.86rem;
  }

  .oracle-toolbar {
    gap: 10px;
  }

  .oracle-toolbar__range,
  .oracle-toolbar__economy {
    gap: 8px;
  }

  .oracle-slider-meta {
    min-height: 32px;
  }

  .oracle-stage-panel {
    gap: 8px;
    position: static;
    top: auto;
    z-index: auto;
    padding-bottom: 0;
    margin-bottom: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
  }

  .oracle-stage {
    width: min(100%, 312px);
    min-height: 156px;
    margin-bottom: 4px;
  }

  .oracle-side-panel {
    gap: 10px;
    padding-bottom: 0;
  }

  .oracle-prediction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding-right: 0;
  }

  .oracle-ai-workspace__layout,
  .oracle-ai-workspace__preset-grid,
  .oracle-ai-workspace__alternatives {
    grid-template-columns: 1fr;
  }

  .oracle-ai-workspace__personal-grid {
    grid-template-columns: 1fr;
  }

  .oracle-ai-workspace__controls {
    grid-template-rows: repeat(5, auto);
  }

  .oracle-ai-workspace__inspector,
  .oracle-ai-workspace__personal-actions {
    grid-template-columns: 1fr;
  }

  .oracle-chip-row--sectors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .oracle-chip-row--digit-count {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 66px;
  }

  .oracle-chip-row--digit-rune-modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oracle-action-row {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .oracle-play-button {
    min-height: 46px;
    border-radius: 16px;
  }
}

@media (max-width: 600px) {
  :root {
    --ui-gap: 8px;
    --ui-gap-sm: 6px;
    --card-padding: 10px;
    --card-radius: 16px;
    --card-row-min-height: 0px;
    --metric-strip-height: 72px;
    --metric-tile-height: 62px;
    --card-footer-height: 32px;
    --metric-label-size: 0.63rem;
    --metric-value-size: 0.84rem;
  }

  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .oracle-panel {
    padding: 10px;
    gap: 8px;
    border-radius: 20px;
  }

  .oracle-panel--range {
    padding: 10px;
  }

  .oracle-panel__head {
    gap: 8px;
    flex-wrap: wrap;
  }

  .oracle-balance {
    display: grid;
    gap: 1px;
    justify-items: end;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    pointer-events: none;
    text-align: right;
  }

  .oracle-balance__label {
    color: rgba(231, 220, 255, 0.78);
    font-size: 0.56rem;
    line-height: 1;
  }

  .oracle-balance__value {
    font-size: clamp(1.08rem, 5.2vw, 1.46rem);
    line-height: 0.94;
    text-shadow: 0 2px 12px rgba(18, 6, 28, 0.3);
  }

  .oracle-panel__actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .oracle-panel__title--hero {
    font-size: 0.98rem;
  }

  .oracle-brand-subtitle {
    font-size: 0.48em;
    letter-spacing: 0.06em;
  }

  .oracle-panel__hint--legal {
    font-size: 0.7rem;
    line-height: 1.36;
  }

  .oracle-panel--range > .oracle-panel__head {
    grid-template-columns: minmax(0, 1fr);
  }

  .oracle-panel--range .oracle-pill {
    justify-self: start;
    max-width: 100%;
  }

  .oracle-stage-panel > .oracle-panel__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
  }

  .oracle-stage-panel .oracle-pill {
    max-width: 100%;
    justify-self: end;
  }

  .oracle-game {
    padding-inline: 8px;
    min-height: 100svh;
    height: auto;
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
    overflow: visible;
    grid-template-rows: auto auto;
  }

  .oracle-range-inputs,
  .oracle-stake-row,
  .oracle-inline-fields,
  .oracle-inline-fields--triple {
    grid-template-columns: 1fr;
  }

  .oracle-dashboard {
    padding: 10px;
    min-height: 0;
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px;
    overflow: visible;
    align-items: start;
  }

  .oracle-stage-panel {
    grid-column: 1;
    grid-row: 1;
    grid-template-rows: auto auto auto auto auto;
    gap: 6px;
    position: sticky;
    top: 8px;
    z-index: 20;
    padding-bottom: 8px;
    margin-bottom: 2px;
    border-radius: 0 0 20px 20px;
    overflow: clip;
    background:
      linear-gradient(180deg, rgba(42, 14, 61, 0.98), rgba(32, 11, 47, 0.96)),
      rgba(31, 10, 45, 0.96);
    border-bottom: 1px solid rgba(226, 184, 255, 0.12);
    box-shadow:
      0 10px 22px rgba(7, 1, 13, 0.14),
      inset 0 -1px 0 rgba(226, 184, 255, 0.08);
  }

  .oracle-toolbar {
    gap: 8px;
  }

  .oracle-toolbar__range,
  .oracle-toolbar__economy {
    grid-template-rows: auto auto auto auto;
    gap: 6px;
  }

  .oracle-slider-meta {
    min-height: 28px;
    font-size: 0.74rem;
  }

  .oracle-slider-meta strong {
    font-size: clamp(1.16rem, 6vw, 1.72rem);
  }

  .oracle-controls__slider {
    height: 10px;
  }

  .oracle-slider-loupe {
    width: min(220px, calc(100vw - 26px));
    bottom: calc(100% + 12px);
    padding: 9px 10px 10px;
    border-radius: 16px;
  }

  .oracle-slider-loupe__value {
    font-size: clamp(1.28rem, 5.6vw, 1.68rem);
  }

  .oracle-slider-loupe__hint {
    font-size: 0.64rem;
  }

  .oracle-controls__ticks span {
    font-size: 0.65rem;
  }

  .oracle-stage {
    width: min(100%, 232px);
    min-height: 132px;
    max-height: none;
    border-radius: 18px;
  }

  .oracle-stage__value {
    padding: 10px;
    font-size: clamp(1.72rem, 6.5vw, 2.6rem);
  }

  .oracle-summary-grid,
  .oracle-card__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .oracle-summary-tile,
  .oracle-stat {
    padding: 6px 7px;
    border-radius: 14px;
  }

  .oracle-summary-tile__label,
  .oracle-stat__label {
    font-size: var(--metric-label-size);
  }

  .oracle-summary-tile__value,
  .oracle-stat__value {
    font-size: var(--metric-value-size);
  }

  .oracle-side-panel {
    gap: 8px;
    min-height: 0;
    overflow: visible;
    align-content: start;
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
    overscroll-behavior: auto;
  }

  .oracle-history-panel {
    grid-column: 1;
    grid-row: 3;
    min-height: 0;
    height: auto;
    max-height: none;
    padding-inline: 0;
  }

  .oracle-prediction-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 8px;
    min-height: auto;
    overflow: visible;
    align-content: start;
    padding-right: 0;
    padding-bottom: 0;
  }

  .oracle-card {
    padding: var(--card-padding);
    gap: var(--ui-gap-sm);
    border-radius: var(--card-radius);
    overflow: visible;
    scroll-margin-top: 10px;
    align-content: start;
  }

  .oracle-card__head {
    gap: 6px;
    align-items: center;
  }

  .oracle-card__title {
    font-size: 0.96rem;
  }

  .oracle-card__description {
    font-size: 0.7rem;
    line-height: 1.18;
  }

  .oracle-card__controls {
    gap: 6px;
    overflow: visible;
  }

  .oracle-chip-row {
    gap: 6px;
    overflow: visible;
  }

  .oracle-chip-row--sectors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oracle-chip-row--digit-count {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 66px;
    gap: 6px;
  }

  .oracle-chip-row--digits {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .oracle-chip-row--digit-rune-modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .oracle-chip-row--digits .oracle-chip {
    min-height: 30px;
    padding: 5px 6px;
  }

  .oracle-chip,
  .oracle-ghost-button,
  .oracle-card__status {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 0.82rem;
  }

  .oracle-card__status {
    min-width: 82px;
  }

  .oracle-exact-stepper {
    min-width: 38px;
  }

  .oracle-exact-stepper__button {
    min-width: 34px;
  }

  .oracle-stage-feed {
    gap: 6px;
  }

  .oracle-stage-feed__line {
    min-height: 32px;
    padding-inline: 10px;
  }

  .oracle-onboarding-hint {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 0.72rem;
  }

  .oracle-play-button {
    min-height: 44px;
    border-radius: 16px;
  }

  .oracle-action-row {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    padding: 10px 10px 8px;
    gap: 6px;
    border: 1px solid rgba(255, 229, 155, 0.14);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(74, 40, 101, 0.18), rgba(35, 12, 52, 0.96)),
      rgba(31, 10, 45, 0.96);
    box-shadow:
      0 -12px 28px rgba(0, 0, 0, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
  }

  .oracle-inline-note,
  .oracle-round-banner,
  .oracle-banner,
  .oracle-card__reason,
  .oracle-card__success,
  .oracle-history__prediction,
  .oracle-history__meta,
  .oracle-empty {
    font-size: 0.72rem;
  }

  .oracle-round-banner,
  .oracle-banner {
    padding: 8px 10px;
    border-radius: 14px;
  }

  .oracle-summary-label {
    font-size: 0.9rem;
  }

  .oracle-panel__title {
    font-size: 0.96rem;
  }

  .oracle-pill {
    padding: 6px 9px;
    font-size: 0.68rem;
  }

  .oracle-toggle-pill {
    padding: 6px 9px;
    font-size: 0.68rem;
  }

  .oracle-history-panel,
  .oracle-side-panel > .oracle-panel__head {
    scroll-margin-top: 250px;
  }

  .oracle-history-panel {
    gap: 6px;
    padding-bottom: 4px;
  }

  .oracle-history {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    gap: 6px;
    max-height: none;
    overflow: visible;
  }

  .oracle-history__item,
  .oracle-empty {
    padding: 9px 10px;
  }

  .oracle-dialog {
    padding: 10px;
  }

  .oracle-dialog__panel {
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
    padding: 12px;
  }

  .oracle-dialog[data-mode="demo-login"] .oracle-dialog__panel {
    width: calc(100vw - 20px);
  }

  .oracle-account-metrics,
  .oracle-account-overlay__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oracle-game.is-mobile-balance-floating .oracle-balance {
    position: fixed;
    top: calc(14px + env(safe-area-inset-top, 0px));
    right: 16px;
    z-index: 48;
    pointer-events: none;
  }
}

@media (max-width: 520px) {
  .oracle-game.is-mobile-balance-floating .oracle-balance {
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: 12px;
    max-width: min(124px, 44vw);
    text-align: right;
  }

  .oracle-balance__label {
    font-size: 0.52rem;
  }

  .oracle-balance__value {
    font-size: clamp(1rem, 5vw, 1.34rem);
  }

  .oracle-stage-panel > .oracle-panel__head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .oracle-game.is-mobile-balance-floating .oracle-stage-panel {
    padding-top: 42px;
  }

  .oracle-game.is-mobile-balance-floating .oracle-stage-panel > .oracle-panel__head {
    padding-right: min(128px, 46vw);
  }

  .oracle-stage-panel .oracle-pill {
    justify-self: start;
    display: block;
    max-width: 100%;
    padding: 5px 8px;
    font-size: 0.64rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .oracle-toggle-pill {
    padding: 5px 8px;
    font-size: 0.64rem;
  }

  .oracle-card__status {
    min-width: 0;
  }

  .oracle-login-mini,
  .oracle-account-section,
  .oracle-account-metric,
  .oracle-account-empty {
    padding: 14px;
  }

  .oracle-account-overlay__head,
  .oracle-account-overlay__actions,
  .oracle-login-form__actions,
  .oracle-login-mini__head,
  .oracle-account-list-item__top,
  .oracle-account-list-item__meta {
    align-items: stretch;
    flex-direction: column;
  }

  .oracle-account-metrics,
  .oracle-account-overlay__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .oracle-login-form__actions > *,
  .oracle-account-overlay__actions > * {
    width: 100%;
    justify-content: center;
  }
}

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

  .oracle-matrix-bg {
    opacity: 0.14;
  }

  .oracle-stage.is-burst .oracle-stage__value {
    animation: none;
  }

  .oracle-stage.is-casting .oracle-stage__value,
  .oracle-stage.is-revealing .oracle-stage__value {
    transform: none;
  }

  .oracle-stage__matrix,
  .oracle-stage__scanline {
    transition-duration: 120ms;
  }

  .oracle-stage__scanline.is-active {
    animation: none;
  }

  .oracle-idle-rain {
    opacity: 0.24;
  }

  .oracle-idle-rain__layer {
    animation: none;
    transform: translateY(12%);
  }

  .oracle-stage-feed__message {
    animation: none;
    min-width: 100%;
  }

  .is-onboarding-pulse {
    animation: none;
  }

  .oracle-card.is-onboarding-sweep,
  .oracle-card.is-onboarding-sweep::after {
    animation: none;
  }

  .oracle-card.is-arming,
  .oracle-card.is-feedback-pulse,
  .oracle-stage.is-hit,
  .oracle-stage.is-miss,
  .oracle-stage.is-big-hit,
  .oracle-history__item.is-new,
  .oracle-balance__value.is-balance-up,
  .oracle-balance__value.is-balance-down,
  .oracle-play-button.is-arming {
    animation-duration: 120ms;
  }

  .oracle-fx-layer {
    animation: none;
  }
}
