/* ROYALE HOUSE / HyperFX — adult casino mechanics on a high-key broadcast field. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: var(--ivory);
  background-image:
    linear-gradient(rgba(12, 12, 17, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 12, 17, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 10% -8%, rgba(245, 31, 70, 0.16), transparent 30rem),
    radial-gradient(circle at 92% 0%, rgba(24, 216, 255, 0.12), transparent 27rem);
  background-size: 72px 72px, 72px 72px, auto, auto;
  font-family: var(--font-body);
  line-height: 1.45;
}

body::before {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--red) 0 42%, var(--magenta) 42% 67%, var(--cyan) 67% 100%);
  box-shadow: 3px 0 0 var(--ink);
  content: "";
  pointer-events: none;
}

::selection {
  color: var(--ink);
  background: var(--acid);
}

button,
input {
  min-width: 0;
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
  filter: saturate(0.35);
  opacity: 0.46;
}

button:focus-visible,
input:focus-visible,
summary:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(12, 12, 17, 0.88);
}

pre {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

[hidden] {
  display: none !important;
}

.app-shell,
.layout,
.panel,
.game-stage,
.game-controls,
.pool-layout,
.blackjack-layout,
.prediction-layout,
.crypto-monitor-content {
  min-width: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 14px;
  padding: 11px 15px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-small);
  color: var(--ink);
  background: var(--acid);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(-180%);
  transition: transform var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  width: min(var(--content-max), calc(100% - 32px));
  margin: 18px auto 50px;
}

.panel {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 240, 0.96));
  box-shadow: var(--shadow);
}

.panel::before {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0 12%, var(--acid) 12% 48%, var(--cyan) 48% 76%, var(--magenta) 76% 100%);
  content: "";
  pointer-events: none;
}

.topbar {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  padding: 21px 24px 20px 30px;
  border-color: var(--ink);
  color: var(--paper);
  background:
    linear-gradient(115deg, transparent 0 61%, rgba(24, 216, 255, 0.1) 61% 62%, transparent 62%),
    linear-gradient(90deg, var(--ink), #151721 74%, #0c0c11);
  box-shadow: 10px 12px 0 rgba(245, 31, 70, 0.14), var(--shadow-dark);
}

.topbar::after {
  position: absolute;
  right: -52px;
  bottom: -84px;
  width: 250px;
  height: 160px;
  border: 1px solid rgba(200, 255, 46, 0.32);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(200, 255, 46, 0.12);
  content: "";
  pointer-events: none;
}

.topbar h1,
.topbar h2,
.topbar p,
h2,
p {
  margin: 0;
}

.topbar h1 {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-transform: uppercase;
}

.topbar h1 span {
  color: var(--acid);
  text-shadow: 0 0 22px rgba(200, 255, 46, 0.5);
}

.topbar .eyebrow {
  margin-bottom: 7px;
  color: var(--chrome-light);
}

.topbar-status {
  position: relative;
  z-index: 3;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.connection {
  min-width: 0;
  max-width: 250px;
  overflow-wrap: anywhere;
  color: var(--chrome-light);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

.connection.is-online {
  color: var(--acid);
}

.connection.is-error {
  color: #ff708c;
}

.wallet {
  min-width: 158px;
  padding: 10px 13px 9px;
  border: 1px solid rgba(200, 255, 46, 0.68);
  border-radius: var(--radius-small);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  box-shadow: var(--glow-acid);
}

.wallet span,
.eyebrow {
  display: block;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.wallet span {
  color: var(--chrome-light);
}

.wallet strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 3px;
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 1;
}

.notice {
  position: relative;
  min-width: 0;
  min-height: 30px;
  overflow-wrap: anywhere;
  margin: 12px 4px 10px;
  padding: 6px 10px 5px 15px;
  border-left: 4px solid var(--cyan);
  color: var(--muted-strong);
  background: rgba(255, 254, 253, 0.76);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}

.notice.is-error {
  border-left-color: var(--red);
  color: var(--danger);
  background: rgba(245, 31, 70, 0.07);
}

.game-nav {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5px;
  overflow: hidden;
  padding: 8px;
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 8px 9px 0 rgba(12, 12, 17, 0.1);
}

.game-nav::before {
  background: linear-gradient(90deg, var(--red), var(--acid) 44%, var(--cyan) 72%, var(--magenta));
}

.game-tab,
.choice,
.text-button,
.action,
.secondary-action {
  min-height: var(--touch);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-small);
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1.05;
  text-transform: uppercase;
  transition:
    color var(--duration-fast) ease,
    background-color var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    box-shadow var(--duration-ui) var(--ease-out),
    transform var(--duration-ui) var(--ease-out);
}

.game-tab {
  min-width: 0;
  padding: 10px 6px 9px;
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--chrome-light);
  background: #15171e;
  font-size: clamp(0.61rem, 0.78vw, 0.76rem);
  white-space: normal;
}

.game-tab.is-active,
.game-tab[aria-current="page"] {
  border-color: var(--acid);
  color: var(--ink);
  background: var(--acid);
  box-shadow: 0 0 24px rgba(200, 255, 46, 0.34);
}

.layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.68fr) minmax(520px, 2fr) minmax(230px, 0.76fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.info-panel,
.receipt-panel,
.game-panel {
  min-width: 0;
  padding: 20px;
}

.info-panel,
.receipt-panel {
  box-shadow: 7px 8px 0 rgba(12, 12, 17, 0.07), var(--shadow-sm);
}

.info-panel::after,
.receipt-panel::after {
  position: absolute;
  inset: 12px 12px auto auto;
  width: 10px;
  height: 10px;
  border: 2px solid var(--chrome-dark);
  content: "";
  opacity: 0.55;
}

.game-panel {
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: 11px 12px 0 rgba(12, 12, 17, 0.12), 0 25px 70px rgba(12, 12, 17, 0.12);
}

.game-panel::before {
  height: 5px;
}

.info-panel h2,
.receipt-panel h2,
.game-heading h2 {
  margin-top: 5px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: uppercase;
}

.game-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.info-panel p:not(.eyebrow),
.quiet-list {
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.58;
}

.quiet-list {
  padding-left: 1.1rem;
}

.quiet-list li::marker {
  color: var(--red);
}

.quiet-list li + li {
  margin-top: 8px;
}

.text-button {
  margin-top: 13px;
  padding: 9px 11px;
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
  font-size: 0.72rem;
}

.text-button[aria-pressed="true"] {
  border-color: var(--magenta);
  color: var(--paper);
  background: var(--ink);
  box-shadow: inset 4px 0 0 var(--magenta);
}

.game-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.game-heading > div {
  min-width: 0;
}

.game-heading .text-button {
  flex: 0 0 auto;
  margin: 0;
}

.rules-panel {
  margin: 13px 0 0;
  padding: 13px 15px;
  border: 1px solid var(--ink);
  border-left: 5px solid var(--cyan);
  border-radius: var(--radius-small);
  color: var(--muted-strong);
  background:
    linear-gradient(90deg, rgba(24, 216, 255, 0.08), transparent 45%),
    var(--ivory);
  box-shadow: var(--shadow-xs);
  font-size: 0.86rem;
  line-height: 1.55;
}

.game-stage {
  display: grid;
  width: 100%;
  min-height: 300px;
  align-content: center;
  justify-items: center;
  margin-top: 15px;
}

.game-controls {
  width: 100%;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.game-controls[aria-busy="true"] {
  cursor: progress;
}

.control-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.choice {
  padding: 9px 12px;
  border-color: var(--line-strong);
  color: var(--ink-soft);
  background: linear-gradient(180deg, var(--paper), #eff1f3);
  box-shadow: 0 2px 0 rgba(12, 12, 17, 0.16);
  font-size: 0.76rem;
}

.choice.is-active,
.choice[aria-pressed="true"] {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--acid);
  box-shadow: 0 0 0 1px var(--ink), var(--glow-acid);
}

.choice.is-danger {
  border-color: var(--red);
  color: var(--danger);
  background: rgba(245, 31, 70, 0.055);
}

.field-label {
  color: var(--muted-strong);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-input {
  width: min(100%, 208px);
  min-height: var(--touch);
  padding: 10px 11px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-small);
  color: var(--ink);
  background: var(--paper);
  box-shadow: inset 0 -3px 0 var(--chrome-light);
}

.text-input::placeholder {
  color: var(--muted);
}

.action,
.secondary-action {
  display: block;
  width: min(100%, 390px);
  margin: 13px auto 0;
  padding: 14px 18px 13px;
  font-size: 0.82rem;
}

.action {
  border: 1px solid var(--ink);
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 30%),
    linear-gradient(110deg, var(--red), var(--crimson));
  box-shadow: 0 4px 0 var(--ink), var(--glow-red);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.action::first-letter {
  color: inherit;
}

.action.is-abyss {
  color: var(--paper);
  background: linear-gradient(110deg, var(--magenta), var(--uv));
  box-shadow: 0 4px 0 var(--ink), 0 0 28px rgba(255, 45, 145, 0.24);
}

.secondary-action {
  border-color: var(--ink);
  color: var(--ink);
  background: linear-gradient(100deg, var(--acid), #e7ff9d);
  box-shadow: 0 3px 0 var(--ink), var(--glow-acid);
}

.hint,
.subtle {
  min-width: 0;
  overflow-wrap: anywhere;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.48;
  text-align: center;
}

.hint.is-error,
.subtle.is-error {
  color: var(--danger);
}

.receipt {
  display: grid;
  min-width: 0;
  min-height: 146px;
  overflow-wrap: anywhere;
  margin-top: 13px;
  padding: 14px;
  place-content: center;
  gap: 7px;
  border: 1px solid var(--ink);
  border-left: 5px solid var(--cyan-strong);
  border-radius: var(--radius-small);
  color: var(--muted-strong);
  background:
    linear-gradient(135deg, rgba(24, 216, 255, 0.09), transparent 58%),
    var(--paper);
  font-size: 0.83rem;
  line-height: 1.45;
  text-align: center;
}

.receipt strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.receipt .loss {
  color: var(--danger);
}

.receipt-actions {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.receipt-actions .text-button {
  width: 100%;
  margin: 0;
}

.proof-panel {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.8rem;
}

.proof-panel summary {
  min-height: var(--touch);
  padding: 11px 10px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proof-panel[open] summary {
  color: var(--paper);
  background: var(--ink);
}

.proof-panel pre {
  max-height: 260px;
  margin: 9px 0 0;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-small);
  color: var(--chrome-light);
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.48;
}

.analytics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 14px;
  padding: 17px 20px;
  overflow: hidden;
}

.analytics h2 {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.facts {
  display: grid;
  min-width: min(100%, 570px);
  grid-template-columns: repeat(4, minmax(104px, 1fr));
  gap: 7px;
  margin: 0;
}

.facts div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--cyan);
  background: var(--paper);
}

.facts div:nth-child(2) {
  border-top-color: var(--acid-strong);
}

.facts div:nth-child(3) {
  border-top-color: var(--red);
}

.facts div:nth-child(4) {
  border-top-color: var(--magenta);
}

.facts dt {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.facts dd {
  overflow-wrap: anywhere;
  margin: 5px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1;
}

/* Five-reel server slot — lacquer frame, chrome cells and acid result lock. */
.mythic-shell {
  position: relative;
  width: 100%;
  padding: 13px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(24, 216, 255, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(24, 216, 255, 0.075) 1px, transparent 1px),
    linear-gradient(145deg, #171a23, #090a0f 72%);
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), var(--shadow-dark), var(--glow-cyan);
}

.mythic-shell::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan), var(--acid), var(--red));
  content: "";
}

.mythic-shell.is-abyss {
  background:
    linear-gradient(90deg, rgba(255, 45, 145, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 45, 145, 0.07) 1px, transparent 1px),
    linear-gradient(145deg, #24121f, #0d0912 72%);
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), var(--shadow-dark), 0 0 30px rgba(255, 45, 145, 0.22);
}

.mythic-shell.is-abyss::before {
  background: linear-gradient(90deg, var(--magenta), var(--red), var(--uv));
}

.realm-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 11px;
  padding: 4px 2px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.realm-bar > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.is-abyss .realm-bar {
  color: #ff8bc1;
}

.slot-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.slot-cell {
  display: grid;
  min-width: 0;
  min-height: 78px;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 7px 3px 6px;
  overflow: hidden;
  border: 1px solid var(--chrome-dark);
  border-radius: var(--radius-small);
  color: var(--ink);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(224, 229, 235, 0.96)),
    var(--paper);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), inset 0 -5px 0 rgba(174, 183, 194, 0.28);
  text-align: center;
}

.slot-symbol {
  color: var(--red);
  font-size: clamp(1.65rem, 4.4vw, 2.45rem);
  line-height: 1;
  filter: drop-shadow(2px 3px 0 rgba(12, 12, 17, 0.12));
}

.slot-cell:nth-child(5n + 2) .slot-symbol,
.slot-cell:nth-child(5n + 5) .slot-symbol {
  color: var(--cyan-strong);
}

.slot-cell:nth-child(5n + 3) .slot-symbol {
  color: var(--emerald);
}

.slot-symbol-label {
  overflow: hidden;
  max-width: 100%;
  color: var(--muted-strong);
  font-family: var(--font-display);
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.is-abyss .slot-cell {
  color: var(--ink);
  background: linear-gradient(145deg, #fff7fb, #e7dce7);
}

.is-abyss .slot-symbol {
  color: var(--magenta);
}

.slot-cell.is-winning {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--acid);
  box-shadow: inset 0 0 0 2px var(--paper), 0 0 20px rgba(200, 255, 46, 0.68);
  animation: winning-symbol 760ms var(--ease-out) infinite alternate;
}

.slot-cell.is-winning .slot-symbol,
.slot-cell.is-winning .slot-symbol-label {
  color: var(--ink);
}

.slot-grid-result .slot-cell {
  animation: reel-land 480ms var(--ease-settle) both;
}

.slot-grid-result .slot-cell:nth-child(5n + 2) {
  animation-delay: 50ms;
}

.slot-grid-result .slot-cell:nth-child(5n + 3) {
  animation-delay: 100ms;
}

.slot-grid-result .slot-cell:nth-child(5n + 4) {
  animation-delay: 150ms;
}

.slot-grid-result .slot-cell:nth-child(5n + 5) {
  animation-delay: 200ms;
}

.slot-reels {
  display: grid;
  height: 334px;
  min-width: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  overflow: hidden;
  padding: 5px;
  border: 1px solid var(--chrome-dark);
  border-radius: var(--radius-small);
  background: rgba(0, 0, 0, 0.62);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.78);
}

.slot-reel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-small);
  background: #0b0c12;
}

.slot-reel::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  box-shadow: inset 0 30px 30px rgba(0, 0, 0, 0.42), inset 0 -30px 30px rgba(0, 0, 0, 0.48);
  content: "";
  pointer-events: none;
}

.slot-reel-strip {
  display: grid;
  gap: 7px;
  padding: 3px;
  transform: translateY(-6px);
}

.slot-reel .slot-cell {
  min-height: 74px;
}

.slot-reel .slot-symbol-label {
  display: none;
}

.slot-reels.is-spinning .slot-reel-strip {
  animation: reel-roll 420ms linear infinite;
  animation-delay: var(--reel-delay);
}

.slot-reels.is-slowing .slot-reel-strip {
  animation: reel-slow 930ms var(--ease-settle) both;
  animation-delay: var(--reel-delay);
}

.slot-caption {
  margin-top: 10px;
  color: var(--chrome-light);
  font-size: 0.76rem;
  line-height: 1.4;
  text-align: center;
}

.mode-picker {
  display: flex;
  width: 100%;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

/* Shared black broadcast stage for dice, roulette, poker and classic reels. */
.simple-surface {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 280px;
  place-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(24, 216, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 216, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 50% 10%, rgba(24, 216, 255, 0.15), transparent 48%),
    #0c0e14;
  background-size: 40px 40px, 40px 40px, auto, auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), var(--shadow-dark);
}

.simple-surface::before {
  position: absolute;
  inset: 0;
  border-top: 4px solid var(--cyan);
  border-bottom: 1px solid rgba(200, 255, 46, 0.5);
  content: "";
  pointer-events: none;
}

.simple-surface > * {
  position: relative;
  z-index: 1;
}

.dice-surface {
  background:
    linear-gradient(115deg, transparent 0 48%, rgba(255, 45, 145, 0.1) 48% 49%, transparent 49%),
    radial-gradient(circle at 50% 20%, rgba(112, 71, 255, 0.2), transparent 48%),
    #0c0e14;
}

.poker-surface,
.roulette-surface {
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 20%, rgba(0, 168, 107, 0.44), transparent 58%),
    #063b2b;
  background-size: 38px 38px, 38px 38px, auto, auto;
}

.dice-faces {
  display: flex;
  gap: clamp(14px, 4vw, 28px);
  perspective: 700px;
}

.die {
  display: grid;
  width: clamp(92px, 17vw, 116px);
  height: clamp(92px, 17vw, 116px);
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 15px;
  border: 1px solid var(--ink);
  border-radius: 18px;
  background: linear-gradient(145deg, #ffffff 0%, #e7ebf0 58%, #aeb7c2 100%);
  box-shadow: inset 4px 4px 0 rgba(255, 255, 255, 0.82), inset -5px -7px 12px rgba(75, 83, 94, 0.24), 0 14px 0 #05060a, 0 0 25px rgba(24, 216, 255, 0.2);
}

.die:nth-child(2) {
  box-shadow: inset 4px 4px 0 rgba(255, 255, 255, 0.82), inset -5px -7px 12px rgba(75, 83, 94, 0.24), 0 14px 0 #05060a, 0 0 25px rgba(255, 45, 145, 0.22);
}

.die i {
  width: 14px;
  height: 14px;
  align-self: center;
  justify-self: center;
  border-radius: 50%;
  background: transparent;
}

.die i.is-pip {
  background: var(--ink);
  box-shadow: inset 2px 2px 2px rgba(255, 255, 255, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.dice-faces.is-spinning .die {
  animation: dice-tumble 280ms linear infinite;
}

.dice-faces.is-spinning .die:nth-child(2) {
  animation-delay: -140ms;
}

.dice-faces.is-slowing .die {
  animation: dice-settle 850ms var(--ease-settle) both;
}

.dice-faces.is-slowing .die:nth-child(2) {
  animation-delay: 80ms;
}

.classic-slot-machine {
  position: relative;
  width: min(100%, 420px);
  padding: 13px;
  border: 1px solid #000;
  border-radius: var(--radius);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(145deg, #e2e7ed 0%, #87919e 18%, #14161d 19% 80%, #5d6671 81%, #dce2e8 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.14), 0 16px 0 rgba(8, 8, 11, 0.92), var(--shadow-dark), var(--glow-red);
}

.classic-slot-machine::before {
  position: absolute;
  inset: 0 12px auto;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--acid), var(--cyan));
  content: "";
  box-shadow: 0 0 18px rgba(200, 255, 46, 0.45);
}

.classic-slot-top {
  margin: 2px 0 10px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.classic-slot-window {
  display: grid;
  height: 126px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  overflow: hidden;
  padding: 7px;
  border: 3px solid #05060a;
  border-radius: var(--radius-small);
  background: #05060a;
  box-shadow: inset 0 0 22px #000, 0 0 0 1px rgba(200, 255, 46, 0.35);
}

.classic-reel {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 9px;
  color: var(--red);
  font-size: 3.4rem;
  line-height: 1;
  text-align: center;
  transform: translateY(-49px);
}

.classic-reel span {
  display: grid;
  height: 104px;
  place-items: center;
  border: 1px solid var(--chrome-dark);
  border-radius: var(--radius-small);
  background: linear-gradient(145deg, #fffefd, #dfe4e9);
  box-shadow: inset 0 -7px 0 rgba(174, 183, 194, 0.28);
  text-shadow: 2px 3px 0 rgba(12, 12, 17, 0.12);
}

.classic-slot-payline {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 67px;
  left: 8px;
  border-top: 3px solid var(--red);
  box-shadow: 0 0 12px var(--red), 0 0 22px rgba(245, 31, 70, 0.45);
  pointer-events: none;
}

.classic-slot-machine.is-spinning .classic-reel {
  animation: classic-reel-roll 220ms linear infinite;
  animation-delay: var(--reel-delay);
}

.classic-slot-machine.is-slowing .classic-reel {
  animation: classic-reel-settle 850ms var(--ease-settle) both;
  animation-delay: var(--reel-delay);
}

.roulette-wheel {
  --ball-angle: 0deg;
  --ball-radius: -105px;
  --pocket-radius: -100px;
  position: relative;
  display: grid;
  width: min(72vw, 270px);
  height: min(72vw, 270px);
  place-items: center;
  border: 7px solid var(--chrome-light);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 5px var(--chrome-dark), inset 0 0 0 9px var(--ink), 0 16px 0 #05060a, 0 0 34px rgba(24, 216, 255, 0.24);
}

.roulette-wheel::before {
  position: absolute;
  z-index: 2;
  top: -16px;
  left: 50%;
  width: 24px;
  height: 31px;
  background: var(--acid);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: "";
  filter: drop-shadow(0 0 8px rgba(200, 255, 46, 0.66));
  transform: translateX(-50%);
}

.roulette-rotor {
  position: absolute;
  inset: 13px;
  border: 6px solid var(--chrome);
  border-radius: 50%;
  background:
    conic-gradient(from -4.865deg, var(--emerald-dark) 0 9.73deg, transparent 9.73deg),
    repeating-conic-gradient(from 4.865deg, var(--red) 0 9.73deg, #11131a 9.73deg 19.46deg);
  box-shadow: inset 0 0 0 24px #073f2d, inset 0 0 0 30px var(--chrome-light), inset 0 0 0 34px var(--ink);
}

.roulette-pocket {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  margin: -8px 0 0 -11px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 2px #000;
  transform: rotate(var(--pocket-angle)) translateY(var(--pocket-radius));
  transform-origin: center;
}

.roulette-pocket.is-zero {
  color: var(--acid);
}

.roulette-ball {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff, #e3e7ec 28%, #6a727d 68%);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 22px rgba(24, 216, 255, 0.5);
  transform: translate(-50%, -50%) rotate(var(--ball-angle)) translateY(var(--ball-radius));
}

.roulette-readout {
  position: relative;
  z-index: 5;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 2px solid var(--acid);
  border-radius: 50%;
  color: var(--acid);
  background: radial-gradient(circle, #191c24, #07080c);
  box-shadow: 0 0 0 7px #063c2b, var(--glow-acid);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-align: center;
}

.roulette-wheel.is-settled .roulette-readout {
  animation: result-lock 620ms var(--ease-out) both;
}

.roulette-wheel.is-spinning .roulette-rotor {
  animation: roulette-wheel-spin 530ms linear infinite;
}

.roulette-wheel.is-spinning .roulette-ball {
  animation: roulette-ball-spin 310ms linear infinite;
}

.roulette-wheel.is-slowing .roulette-rotor {
  animation: roulette-wheel-slow 850ms var(--ease-settle) both;
}

.roulette-wheel.is-slowing .roulette-ball {
  animation: roulette-ball-slow 850ms var(--ease-settle) both;
}

.roulette-number-picker {
  display: grid;
  width: min(100%, 590px);
  max-width: 590px;
  grid-template-columns: repeat(10, minmax(34px, 1fr));
  gap: 5px;
  margin: 14px auto 0;
}

.roulette-number {
  min-width: 0;
  min-height: 38px;
  padding: 6px 3px;
  border-color: #090a0f;
  color: var(--paper);
  background: #171922;
  box-shadow: none;
}

.roulette-number.is-red {
  color: var(--paper);
  background: var(--crimson);
}

.roulette-number.is-zero {
  color: var(--paper);
  background: var(--emerald-dark);
}

.roulette-number.is-active,
.roulette-number[aria-pressed="true"] {
  outline: 2px solid var(--acid);
  outline-offset: 1px;
  color: var(--ink);
  background: var(--acid);
}

.poker-table {
  display: flex;
  max-width: 100%;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  perspective: 900px;
}

.card {
  display: grid;
  width: 70px;
  height: 104px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), transparent 42%),
    linear-gradient(145deg, #fffefd, #dfe4e9);
  box-shadow: inset 0 0 0 2px var(--paper), 0 8px 0 rgba(5, 6, 10, 0.84), 0 14px 20px rgba(0, 0, 0, 0.25);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 900;
}

.card.is-red {
  color: var(--crimson);
}

.card.is-hidden {
  color: var(--paper);
  background:
    linear-gradient(45deg, transparent 43%, rgba(200, 255, 46, 0.7) 44% 46%, transparent 47% 53%, rgba(24, 216, 255, 0.68) 54% 56%, transparent 57%),
    var(--ink);
  background-size: 14px 14px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.65);
}

.poker-table.is-spinning .card {
  animation: card-flip 420ms linear infinite;
}

.poker-table.is-slowing .card {
  animation: card-land 850ms var(--ease-settle) both;
}

.poker-table.is-slowing .card:nth-child(2) {
  animation-delay: 80ms;
}

.poker-table.is-slowing .card:nth-child(3) {
  animation-delay: 160ms;
}

.poker-table.is-slowing .card:nth-child(4) {
  animation-delay: 240ms;
}

.poker-table.is-slowing .card:nth-child(5) {
  animation-delay: 320ms;
}

/* Rocket — a broadcast chart, not a decorative fake-live counter. */
.rocket-surface {
  position: relative;
  width: 100%;
  min-height: 310px;
  overflow: hidden;
  padding: 15px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(24, 216, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 216, 255, 0.09) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 110%, rgba(24, 216, 255, 0.27), transparent 48%),
    linear-gradient(180deg, #151824, #090a0f);
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), var(--shadow-dark), var(--glow-cyan);
}

.rocket-surface::before {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan), var(--acid) 55%, var(--magenta));
  content: "";
  box-shadow: 0 0 20px rgba(24, 216, 255, 0.5);
}

.rocket-surface::after {
  position: absolute;
  z-index: 0;
  right: -18px;
  bottom: -45px;
  width: 150%;
  height: 74%;
  border-top: 2px solid var(--cyan);
  content: "";
  opacity: 0.28;
  transform: rotate(-12deg);
  transform-origin: right center;
}

.rocket-chart {
  position: absolute;
  z-index: 1;
  inset: 12px 10px 6px;
  width: calc(100% - 20px);
  height: calc(100% - 18px);
  overflow: visible;
}

.rocket-grid {
  stroke: rgba(229, 233, 238, 0.18);
  stroke-dasharray: 5 7;
  stroke-width: 1;
}

.rocket-area {
  fill: rgba(24, 216, 255, 0.17);
}

.rocket-area.is-crashed {
  fill: rgba(245, 31, 70, 0.16);
}

.rocket-line {
  fill: none;
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
  filter: drop-shadow(0 0 8px rgba(24, 216, 255, 0.85));
}

.rocket-line.is-crashed {
  stroke: var(--red);
  filter: drop-shadow(0 0 8px rgba(245, 31, 70, 0.8));
}

.rocket-marker {
  fill: var(--paper);
  stroke: var(--acid);
  stroke-width: 5;
  filter: drop-shadow(0 0 10px rgba(200, 255, 46, 0.95));
  animation: marker-pulse 800ms ease-in-out infinite alternate;
}

.rocket-marker.is-crashed {
  fill: var(--paper);
  stroke: var(--red);
  filter: drop-shadow(0 0 10px rgba(245, 31, 70, 0.9));
  animation: none;
}

.rocket-readout {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 273px;
  place-content: center;
  gap: 5px;
  pointer-events: none;
  text-align: center;
}

.rocket-readout strong {
  color: var(--acid);
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.88;
  text-shadow: 0 0 36px rgba(200, 255, 46, 0.46);
}

.rocket-readout .crashed {
  color: #ff5575;
  text-shadow: 0 0 36px rgba(245, 31, 70, 0.52);
}

.rocket-readout .subtle {
  max-width: 330px;
  color: var(--chrome-light);
}

.rocket-state {
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Pool, cards and prediction layouts use crisp betting-slip geometry. */
.pool-layout,
.blackjack-layout,
.prediction-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.52fr);
  gap: 12px;
}

.pool-pot,
.blackjack-table {
  position: relative;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-small);
  background:
    linear-gradient(135deg, rgba(174, 183, 194, 0.16), transparent 42%),
    var(--paper);
  box-shadow: 5px 6px 0 rgba(12, 12, 17, 0.08);
}

.pool-pot::before,
.blackjack-table::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--acid));
  content: "";
}

.pool-value {
  overflow-wrap: anywhere;
  margin: 7px 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.progress {
  height: 14px;
  margin-top: 13px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius-tight);
  background: var(--chrome-light);
}

.progress > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--acid));
  box-shadow: 0 0 16px rgba(200, 255, 46, 0.5);
  transition: width var(--duration-scene) var(--ease-out);
}

.entries {
  max-height: 182px;
  overflow: auto;
  scrollbar-color: var(--chrome-dark) var(--chrome-light);
}

.entry {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 0.8rem;
}

.entry > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.entry strong {
  color: var(--emerald-dark);
  font-weight: 900;
  text-align: right;
}

.blackjack-table {
  width: 100%;
  min-height: 250px;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 0, rgba(0, 168, 107, 0.64), transparent 68%),
    linear-gradient(145deg, #07573f, #063426);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), 5px 6px 0 rgba(12, 12, 17, 0.14);
}

.blackjack-table::before {
  background: linear-gradient(90deg, var(--red), var(--acid), var(--cyan));
}

.hand-label {
  margin: 11px 0 6px;
  color: var(--chrome-light);
  font-family: var(--font-display);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blackjack-table .subtle {
  color: var(--chrome-light);
}

.hand {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid transparent;
}

.hand.is-active {
  border-color: var(--acid);
  border-radius: var(--radius-small);
  background: rgba(200, 255, 46, 0.08);
  box-shadow: var(--glow-acid);
}

.payout {
  margin-top: 9px;
  color: var(--emerald-dark);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.blackjack-table .payout {
  color: var(--acid);
}

.prediction-layout {
  align-items: stretch;
}

.prediction-question {
  margin: 8px 0 13px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.04;
  text-transform: uppercase;
}

.prediction-quote {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.prediction-quote > div {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--ink);
  border-top: 4px solid var(--emerald);
  border-radius: var(--radius-small);
  background: linear-gradient(145deg, rgba(0, 168, 107, 0.1), transparent 58%), var(--paper);
}

.prediction-quote > .no {
  border-top-color: var(--red);
  background: linear-gradient(145deg, rgba(245, 31, 70, 0.1), transparent 58%), var(--paper);
}

.prediction-quote span {
  display: block;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.prediction-quote strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 5px;
  color: var(--emerald-dark);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.prediction-quote .no strong {
  color: var(--danger);
}

.prediction-facts {
  display: grid;
  align-content: start;
  gap: 7px;
}

.prediction-facts div {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 0.8rem;
}

.prediction-facts strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 3px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
}

.crypto-market-reference {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 11px;
}

.crypto-market-reference > div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--cyan);
  border-radius: var(--radius-small);
  background: rgba(24, 216, 255, 0.055);
}

.crypto-market-reference span {
  display: block;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.crypto-market-reference strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.79rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crypto-monitor {
  margin-top: 13px;
  overflow: hidden;
  color: var(--paper);
  background:
    linear-gradient(rgba(24, 216, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 216, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #151824, #090a0f);
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: var(--shadow-dark), var(--glow-cyan);
}

.crypto-monitor::before {
  background: linear-gradient(90deg, var(--cyan), var(--acid), var(--magenta));
}

.crypto-monitor .eyebrow {
  color: var(--cyan);
}

.crypto-monitor .subtle,
.crypto-monitor .hint {
  color: var(--chrome-light);
}

.crypto-monitor-heading,
.crypto-monitor-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.crypto-monitor-heading > * {
  min-width: 0;
}

.crypto-monitor-heading .secondary-action {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
}

.crypto-monitor h3 {
  margin: 3px 0 12px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 900;
  text-transform: uppercase;
}

.crypto-monitor-meta {
  align-items: flex-start;
  margin-bottom: 10px;
}

.crypto-mode {
  display: inline-flex;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--emerald);
  border-radius: var(--radius-tight);
  color: var(--acid);
  background: rgba(0, 168, 107, 0.14);
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-transform: uppercase;
}

.crypto-mode.is-offline_fixture {
  border-color: var(--acid);
  color: var(--acid);
  background: rgba(200, 255, 46, 0.08);
}

.crypto-mode.is-partial_read_only,
.crypto-mode.is-unavailable {
  border-color: var(--red);
  color: #ff8aa0;
  background: rgba(245, 31, 70, 0.12);
}

.crypto-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.crypto-quote {
  position: relative;
  min-width: 0;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(229, 233, 238, 0.22);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.045);
}

.crypto-quote::after {
  position: absolute;
  inset: auto -12% -30px;
  height: 50px;
  background: radial-gradient(ellipse, rgba(24, 216, 255, 0.24), transparent 68%);
  content: "";
  pointer-events: none;
}

.crypto-quote strong {
  position: relative;
  display: block;
  overflow-wrap: anywhere;
  margin: 4px 0 3px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.52rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
}

.crypto-difference {
  display: grid;
  gap: 2px;
  margin-top: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(200, 255, 46, 0.48);
  border-left: 4px solid var(--acid);
  border-radius: var(--radius-small);
  color: var(--chrome-light);
  background: rgba(200, 255, 46, 0.07);
}

.crypto-difference strong {
  overflow-wrap: anywhere;
  color: var(--acid);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
}

.crypto-difference small {
  color: var(--chrome-light);
}

.crypto-disclaimer {
  margin-bottom: 0;
}

/* HyperFX shell media: atmospheric only; receipts and live surfaces stay authoritative. */
.ambient-field,
.ambient-grid {
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
}

.ambient-field {
  background-image:
    linear-gradient(90deg, rgba(248, 246, 240, 0.96) 0 18%, rgba(248, 246, 240, 0.72) 48%, rgba(248, 246, 240, 0.94) 100%),
    var(--hyperfx-cover-image, none);
  background-position: center, center top;
  background-repeat: no-repeat;
  background-size: cover, min(100vw, 1700px) auto;
  filter: saturate(1.08) contrast(1.02);
  opacity: 0.28;
}

.ambient-grid {
  z-index: -1;
  background:
    linear-gradient(rgba(12, 12, 17, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 12, 17, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.brand-lockup {
  position: relative;
  z-index: 3;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 15px;
}

.brand-mark {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  place-items: center;
  border: 1px solid var(--acid);
  color: var(--ink);
  background: var(--acid);
  box-shadow: 6px 6px 0 var(--red), var(--glow-acid);
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  transform: skewX(-5deg);
}

.brand-copy {
  min-width: 0;
}

.topbar-meta {
  max-width: 470px;
  margin-top: 7px !important;
  color: var(--chrome-light);
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.3;
}

.motion-grammar {
  display: grid;
  grid-template-columns: repeat(4, minmax(116px, 1fr)) minmax(250px, 1.5fr);
  gap: 1px;
  margin-top: 10px;
  overflow: hidden;
  padding: 1px;
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 7px 8px 0 rgba(12, 12, 17, 0.08);
}

.motion-grammar::before {
  background: linear-gradient(90deg, var(--cyan), var(--acid) 44%, var(--red) 72%, var(--magenta));
}

.motion-step {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.1;
  text-transform: uppercase;
}

.motion-step b {
  color: var(--crimson);
  font-size: 0.8rem;
}

.motion-step:nth-child(2) b {
  color: var(--cyan-dark);
}

.motion-step:nth-child(3) b {
  color: var(--emerald-dark);
}

.motion-step:nth-child(4) b {
  color: var(--magenta-dark);
}

.motion-step.is-honest {
  color: var(--acid);
  background: var(--ink);
  font-size: 0.66rem;
  letter-spacing: 0.055em;
}

.game-tab .tab-code,
.game-tab .tab-label {
  display: block;
}

.tab-code {
  margin-bottom: 4px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.055em;
}

.tab-label {
  color: inherit;
}

.game-tab.is-active .tab-code,
.game-tab[aria-current="page"] .tab-code {
  color: var(--ink);
}

body[data-fx-game="mythic"],
body[data-fx-game="slot"] {
  --fx-accent: var(--red);
  --fx-accent-soft: rgba(245, 31, 70, 0.24);
}

body[data-fx-game="dice"] {
  --fx-accent: var(--uv);
  --fx-accent-soft: rgba(112, 71, 255, 0.24);
}

body[data-fx-game="roulette"],
body[data-fx-game="blackjack"] {
  --fx-accent: var(--emerald);
  --fx-accent-soft: rgba(0, 168, 107, 0.24);
}

body[data-fx-game="poker"],
body[data-fx-game="jackpot"] {
  --fx-accent: var(--acid-strong);
  --fx-accent-soft: rgba(200, 255, 46, 0.25);
}

body[data-fx-game="rocket"],
body[data-fx-game="raffle"] {
  --fx-accent: var(--cyan-strong);
  --fx-accent-soft: rgba(24, 216, 255, 0.24);
}

body[data-fx-game="predictions"] {
  --fx-accent: var(--magenta);
  --fx-accent-soft: rgba(255, 45, 145, 0.22);
}

.game-panel > :not(.game-aura) {
  position: relative;
  z-index: 1;
}

.game-aura {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: min(64%, 560px);
  height: 285px;
  background-image:
    linear-gradient(90deg, var(--paper) 0, rgba(255, 254, 253, 0.72) 32%, rgba(255, 254, 253, 0.08) 100%),
    var(--hyperfx-hero-image, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(1.12) contrast(1.05);
  mask-image: linear-gradient(110deg, transparent 0 5%, black 52%, transparent 100%);
  mix-blend-mode: multiply;
  opacity: 0.105;
  pointer-events: none;
  transition:
    opacity var(--duration-scene) var(--ease-out),
    filter var(--duration-scene) var(--ease-out),
    transform var(--duration-scene) var(--ease-out);
}

body[data-fx-phase="action"] .game-panel {
  border-color: var(--cyan-strong);
  box-shadow: 11px 12px 0 rgba(12, 12, 17, 0.12), 0 25px 70px rgba(12, 12, 17, 0.12), var(--glow-cyan);
}

body[data-fx-phase="result"] .game-panel {
  border-color: var(--fx-accent, var(--emerald));
  box-shadow: 11px 12px 0 rgba(12, 12, 17, 0.12), 0 25px 70px rgba(12, 12, 17, 0.12), 0 0 30px var(--fx-accent-soft, rgba(0, 168, 107, 0.2));
}

body[data-fx-phase="surge"] .game-panel {
  border-color: var(--acid-strong);
  animation: verified-surge 760ms var(--ease-out) both;
}

body[data-fx-phase="action"] .game-aura,
body[data-fx-phase="result"] .game-aura,
body[data-fx-phase="surge"] .game-aura {
  background-image:
    linear-gradient(90deg, var(--paper) 0, rgba(255, 254, 253, 0.74) 32%, rgba(255, 254, 253, 0.1) 100%),
    var(--hyperfx-active-image, var(--hyperfx-hero-image, none));
  filter: blur(3px) saturate(1.3) contrast(1.06);
  transform: scale(1.025);
}

body[data-fx-phase="action"] .game-aura,
body[data-fx-phase="result"] .game-aura {
  opacity: 0.16;
}

body[data-fx-phase="surge"] .game-aura {
  filter: blur(3px) saturate(1.45) contrast(1.08);
  opacity: 0.21;
}

.game-index {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -20px -20px 17px;
  padding: 10px 15px 9px;
  border-bottom: 1px solid var(--ink);
  color: var(--chrome-light);
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.1;
  text-transform: uppercase;
}

.game-index > span:first-child {
  color: var(--cyan);
}

.game-phase {
  max-width: 70%;
  padding: 5px 8px;
  border-left: 3px solid var(--fx-accent, var(--red));
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  overflow-wrap: anywhere;
  text-align: right;
}

body[data-fx-phase="action"] .game-phase {
  border-left-color: var(--cyan);
  color: var(--cyan);
}

body[data-fx-phase="result"] .game-phase {
  color: var(--acid);
}

body[data-fx-phase="surge"] .game-phase {
  border-left-color: var(--magenta);
  color: var(--acid);
}

.motion-library {
  margin-top: 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-small);
  background: var(--ivory);
}

.motion-library-summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 13px;
  color: var(--paper);
  background: var(--ink);
  cursor: pointer;
  list-style-position: inside;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-transform: uppercase;
}

.motion-library-summary::marker {
  color: var(--acid);
}

.motion-library-summary > span {
  min-width: 0;
}

.motion-library-summary b,
.motion-library-summary small {
  display: block;
}

.motion-library-summary b {
  color: var(--acid);
}

.motion-library-summary small {
  margin-top: 3px;
  color: var(--chrome-light);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.motion-library[open] .motion-library-summary {
  border-bottom: 3px solid var(--acid);
}

.motion-disclosure {
  margin: 12px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  border-left: 4px solid var(--red);
  color: var(--muted-strong);
  background: var(--paper);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
}

.motion-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 0 12px 12px;
}

.motion-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius-small);
  color: var(--paper);
  background: var(--ink);
  box-shadow: 4px 5px 0 rgba(12, 12, 17, 0.12);
}

.motion-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  background: #08090d;
}

.motion-card-media::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.48));
  content: "";
  pointer-events: none;
}

.motion-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.motion-card-media > span {
  position: absolute;
  z-index: 2;
  right: 7px;
  bottom: 7px;
  max-width: calc(100% - 14px);
  padding: 4px 6px;
  border: 1px solid var(--acid);
  color: var(--acid);
  background: rgba(12, 12, 17, 0.88);
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1.05;
  text-align: right;
  text-transform: uppercase;
}

.motion-card-copy {
  padding: 9px 10px 10px;
  border-left: 3px solid var(--cyan);
}

.motion-card.is-result .motion-card-copy {
  border-left-color: var(--emerald);
}

.motion-card.is-surge .motion-card-copy {
  border-left-color: var(--magenta);
}

.motion-card-copy strong,
.motion-card-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.motion-card-copy strong {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.07em;
}

.motion-card-copy small {
  margin-top: 3px;
  color: var(--chrome-light);
  font-size: 0.65rem;
  line-height: 1.25;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding: 12px 3px;
  border-top: 2px solid var(--ink);
  color: var(--muted-strong);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.site-footer span:nth-child(2) {
  color: var(--danger);
  text-align: center;
}

.site-footer span:last-child {
  text-align: right;
}

@media (hover: hover) and (pointer: fine) {
  .game-tab:hover:not(:disabled) {
    border-color: var(--cyan);
    color: var(--paper);
    background: #20232d;
    transform: translateY(-1px);
  }

  .game-tab.is-active:hover:not(:disabled) {
    color: var(--ink);
    background: var(--acid);
  }

  .choice:hover:not(:disabled),
  .text-button:hover:not(:disabled) {
    border-color: var(--cyan-strong);
    box-shadow: 0 3px 0 rgba(12, 12, 17, 0.24), 0 0 18px rgba(24, 216, 255, 0.18);
    transform: translateY(-1px);
  }

  .action:hover:not(:disabled),
  .secondary-action:hover:not(:disabled) {
    box-shadow: 0 6px 0 var(--ink), 0 0 30px rgba(245, 31, 70, 0.32);
    transform: translateY(-2px);
  }

  .secondary-action:hover:not(:disabled) {
    box-shadow: 0 5px 0 var(--ink), 0 0 28px rgba(200, 255, 46, 0.4);
  }
}

@keyframes reel-roll {
  from { transform: translateY(-6px); }
  to { transform: translateY(-492px); }
}

@keyframes reel-slow {
  0% { transform: translateY(-6px); }
  52% { transform: translateY(-310px); }
  78% { transform: translateY(-410px); }
  100% { transform: translateY(-486px); }
}

@keyframes reel-land {
  from { opacity: 0.18; transform: translateY(-24px) scale(0.94); }
  70% { opacity: 1; transform: translateY(3px) scale(1.01); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes winning-symbol {
  to { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--paper), 0 0 28px rgba(200, 255, 46, 0.85); }
}

@keyframes dice-tumble {
  to { transform: rotateX(360deg) rotateY(290deg); }
}

@keyframes dice-settle {
  55% { transform: rotateX(420deg) rotateY(315deg) scale(1.08); }
  84% { transform: rotateX(356deg) rotateY(364deg) scale(0.98); }
  100% { transform: rotateX(360deg) rotateY(360deg) scale(1); }
}

@keyframes classic-reel-roll {
  to { transform: translateY(-264px); }
}

@keyframes classic-reel-settle {
  from { transform: translateY(-49px); }
  68% { transform: translateY(-218px); }
  to { transform: translateY(-49px); }
}

@keyframes roulette-wheel-spin {
  to { transform: rotate(360deg); }
}

@keyframes roulette-ball-spin {
  to { transform: translate(-50%, -50%) rotate(720deg) translateY(var(--ball-radius)); }
}

@keyframes roulette-wheel-slow {
  from { transform: rotate(0); }
  to { transform: rotate(620deg); }
}

@keyframes roulette-ball-slow {
  from { transform: translate(-50%, -50%) rotate(0) translateY(var(--ball-radius)); }
  to { transform: translate(-50%, -50%) rotate(calc(670deg + var(--ball-angle))) translateY(var(--ball-radius)); }
}

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.language-picker { display: grid; gap: 3px; color: var(--muted); font-family: var(--font-display); font-size: 0.58rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.language-picker select { min-height: 34px; max-width: 130px; border: 1px solid var(--ink); border-radius: var(--radius-small); color: var(--ink); background: var(--paper); font: inherit; letter-spacing: 0; text-transform: none; }
.account-toggle { width: auto; min-height: 34px; margin: 12px 0 0; padding: 7px 10px; }
.account-panel { display: grid; gap: 12px; margin-top: 12px; padding: 18px; }
.account-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.account-heading h2 { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; }
.account-heading .text-button { width: auto; margin: 0; }
.account-description { margin: 0; color: var(--muted-strong); }
.account-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 0; }
.account-facts div { padding: 10px; border: 1px solid var(--line); background: var(--paper); }
.account-facts dt { color: var(--muted); font-family: var(--font-display); font-size: 0.6rem; font-weight: 900; letter-spacing: 0.07em; }
.account-facts dd { margin: 5px 0 0; color: var(--ink); font-family: var(--font-display); font-weight: 900; }
.persona-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.persona-choice { min-width: 0; min-height: 88px; padding: 9px; border: 1px solid var(--ink); color: var(--ink); background: var(--paper); text-align: left; }
.persona-choice.is-active { border-color: var(--acid-strong); background: var(--acid); box-shadow: 3px 3px 0 var(--ink); }
.persona-choice strong, .persona-choice small { display: block; overflow-wrap: anywhere; }
.persona-choice strong { font-family: var(--font-display); font-size: 0.68rem; text-transform: uppercase; }
.persona-choice small { margin-top: 5px; color: var(--muted-strong); font-size: 0.66rem; }
html[dir="rtl"] .account-heading { direction: rtl; }
@media (max-width: 760px) { .topbar-actions { width: 100%; justify-content: space-between; } .account-facts, .persona-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Server-authored d6: a real 3D cube rather than two static decorative faces. */
.dice-faces {
  display: grid;
  width: min(100%, 200px);
  min-height: 158px;
  place-items: center;
  perspective: 800px;
}

.dice-cube-scene {
  width: clamp(104px, 25vw, 136px);
  aspect-ratio: 1;
  perspective: 800px;
}

.dice-cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotateX(var(--die-x)) rotateY(var(--die-y));
  transform-style: preserve-3d;
}

.die-face {
  position: absolute;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 15px;
  box-sizing: border-box;
  border: 1px solid var(--ink);
  border-radius: 18px;
  backface-visibility: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #e7ebf0 58%, #aeb7c2 100%);
  box-shadow: inset 4px 4px 0 rgba(255, 255, 255, 0.82), inset -5px -7px 12px rgba(75, 83, 94, 0.24), 0 14px 0 #05060a, 0 0 25px rgba(24, 216, 255, 0.2);
}

.die-face:nth-child(1) { transform: translateZ(calc(clamp(104px, 25vw, 136px) / 2)); }
.die-face:nth-child(2) { transform: rotateY(90deg) translateZ(calc(clamp(104px, 25vw, 136px) / 2)); }
.die-face:nth-child(3) { transform: rotateX(90deg) translateZ(calc(clamp(104px, 25vw, 136px) / 2)); }
.die-face:nth-child(4) { transform: rotateX(-90deg) translateZ(calc(clamp(104px, 25vw, 136px) / 2)); }
.die-face:nth-child(5) { transform: rotateY(-90deg) translateZ(calc(clamp(104px, 25vw, 136px) / 2)); }
.die-face:nth-child(6) { transform: rotateY(180deg) translateZ(calc(clamp(104px, 25vw, 136px) / 2)); }

.die-face i {
  width: clamp(10px, 2.7vw, 14px);
  height: clamp(10px, 2.7vw, 14px);
  align-self: center;
  justify-self: center;
  border-radius: 50%;
  background: transparent;
}

.die-face i.is-pip {
  background: var(--ink);
  box-shadow: inset 2px 2px 2px rgba(255, 255, 255, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.dice-faces.is-spinning .dice-cube {
  animation: dice-cube-spin 310ms linear infinite;
}

.dice-faces.is-slowing .dice-cube {
  animation: dice-cube-land 850ms var(--ease-settle) both;
}

@keyframes dice-cube-spin {
  to { transform: rotateX(720deg) rotateY(990deg) rotateZ(360deg); }
}

@keyframes dice-cube-land {
  0% { transform: rotateX(900deg) rotateY(-720deg) rotateZ(180deg) scale(1.06); }
  72% { transform: rotateX(calc(360deg + var(--die-x))) rotateY(calc(360deg + var(--die-y))) rotateZ(-12deg) scale(1.04); }
  100% { transform: rotateX(var(--die-x)) rotateY(var(--die-y)) rotateZ(0) scale(1); }
}

@keyframes result-lock {
  0% { transform: scale(0.88); filter: brightness(1.8); }
  70% { transform: scale(1.06); }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes card-flip {
  to { transform: rotateY(180deg); }
}

@keyframes card-land {
  from { opacity: 0.3; transform: translateY(-18px) rotateY(180deg); }
  74% { opacity: 1; transform: translateY(3px) rotateY(-4deg); }
  to { opacity: 1; transform: translateY(0) rotateY(0); }
}

@keyframes marker-pulse {
  to { r: 9px; opacity: 0.82; }
}

@keyframes verified-surge {
  0% { box-shadow: 11px 12px 0 rgba(12, 12, 17, 0.12), 0 25px 70px rgba(12, 12, 17, 0.12); }
  50% { box-shadow: 11px 12px 0 rgba(12, 12, 17, 0.12), 0 25px 70px rgba(12, 12, 17, 0.12), 0 0 34px rgba(200, 255, 46, 0.46), 0 0 60px rgba(255, 45, 145, 0.18); }
  100% { box-shadow: 11px 12px 0 rgba(12, 12, 17, 0.12), 0 25px 70px rgba(12, 12, 17, 0.12), 0 0 22px rgba(200, 255, 46, 0.26); }
}

@media (max-width: 1240px) {
  .motion-grammar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .motion-step.is-honest {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .game-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .layout {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.44fr);
  }

  .info-panel {
    grid-column: 1 / -1;
  }

  .info-panel .quiet-list {
    display: flex;
    gap: 18px 28px;
    flex-wrap: wrap;
  }

  .analytics {
    align-items: flex-start;
    flex-direction: column;
  }

  .facts {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .motion-preview {
    grid-template-columns: 1fr;
  }

  .layout {
    display: flex;
    flex-direction: column;
  }

  .game-panel {
    width: 100%;
    order: 1;
  }

  .info-panel {
    width: 100%;
    order: 2;
  }

  .receipt-panel {
    width: 100%;
    order: 3;
  }

  .topbar,
  .topbar-status {
    align-items: flex-start;
  }

  .pool-layout,
  .blackjack-layout,
  .prediction-layout {
    grid-template-columns: 1fr;
  }

  .receipt {
    min-height: 112px;
  }
}

@media (max-width: 640px) {
  body {
    background-size: 48px 48px, 48px 48px, auto, auto;
  }

  body::before {
    width: 4px;
    box-shadow: 2px 0 0 var(--ink);
  }

  .app-shell {
    width: calc(100% - 14px);
    margin: 7px auto 32px;
  }

  .topbar {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 17px;
    padding: 20px 17px 17px;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .motion-grammar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .motion-step {
    min-height: 44px;
    padding: 9px;
    font-size: 0.62rem;
  }

  .motion-step.is-honest {
    grid-column: 1 / -1;
  }

  .topbar-status {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .connection {
    max-width: none;
    text-align: left;
  }

  .wallet {
    width: 100%;
  }

  .notice {
    margin-inline: 1px;
  }

  .game-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 7px;
  }

  .game-tab {
    min-height: 46px;
    padding: 9px 6px;
    font-size: 0.68rem;
  }

  .info-panel,
  .receipt-panel,
  .game-panel {
    padding: 16px;
  }

  .game-index {
    margin: -16px -16px 15px;
  }

  .game-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .game-heading .text-button {
    width: 100%;
  }

  .game-stage {
    min-height: 260px;
    margin-top: 13px;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slot-grid {
    gap: 5px;
  }

  .slot-cell {
    min-height: 62px;
    padding-inline: 2px;
  }

  .slot-symbol-label {
    font-size: 0.5rem;
  }

  .slot-reels {
    height: 292px;
    gap: 5px;
  }

  .slot-reel-strip {
    gap: 5px;
  }

  .slot-reel .slot-cell {
    min-height: 64px;
  }

  .simple-surface {
    min-height: 258px;
    padding: 14px;
  }

  .roulette-number-picker {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
  }

  .roulette-number {
    min-height: 42px;
  }

  .card {
    width: 56px;
    height: 84px;
    font-size: 1.18rem;
  }

  .crypto-monitor-heading,
  .crypto-monitor-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .crypto-monitor-heading .secondary-action {
    width: 100%;
  }

  .crypto-quotes,
  .crypto-market-reference {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .app-shell {
    width: calc(100% - 8px);
    margin-top: 4px;
  }

  .panel {
    border-radius: 6px;
    box-shadow: 5px 6px 0 rgba(12, 12, 17, 0.08), var(--shadow-sm);
  }

  .topbar {
    padding: 18px 14px 15px;
  }

  .topbar h1 {
    font-size: clamp(1.9rem, 12vw, 2.65rem);
  }

  .brand-lockup {
    gap: 11px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    font-size: 1rem;
    box-shadow: 4px 4px 0 var(--red), var(--glow-acid);
  }

  .topbar-meta {
    font-size: 0.68rem;
  }

  .motion-step {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .topbar .eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .game-nav {
    gap: 4px;
    padding: 6px;
  }

  .game-tab {
    padding-inline: 4px;
    font-size: 0.64rem;
    letter-spacing: 0.025em;
  }

  .info-panel,
  .receipt-panel {
    padding: 14px;
  }

  .game-panel {
    padding: 13px 11px 14px;
  }

  .game-index {
    margin: -13px -11px 14px;
    padding: 9px 10px;
    font-size: 0.6rem;
  }

  .game-phase {
    max-width: 72%;
    padding: 4px 6px;
  }

  .game-aura {
    width: 82%;
    height: 230px;
    opacity: 0.075;
  }

  body[data-fx-phase="action"] .game-aura,
  body[data-fx-phase="result"] .game-aura {
    opacity: 0.11;
  }

  body[data-fx-phase="surge"] .game-aura {
    opacity: 0.15;
  }

  .game-heading h2 {
    font-size: 1.85rem;
  }

  .game-stage {
    min-height: 242px;
  }

  .game-controls {
    margin-top: 12px;
    padding-top: 12px;
  }

  .control-row {
    gap: 6px;
  }

  .field-label {
    width: 100%;
    text-align: center;
  }

  .choice {
    padding-inline: 10px;
  }

  .text-input,
  .action,
  .secondary-action {
    width: 100%;
  }

  .mythic-shell {
    padding: 9px 7px 10px;
  }

  .realm-bar {
    align-items: flex-start;
    flex-direction: column;
    font-size: 0.61rem;
  }

  .slot-grid {
    gap: 4px;
  }

  .slot-cell {
    min-height: 56px;
    gap: 1px;
  }

  .slot-symbol {
    font-size: 1.45rem;
  }

  .slot-symbol-label {
    font-size: 0.62rem;
  }

  .slot-reels {
    height: 270px;
    gap: 4px;
    padding: 4px;
  }

  .slot-reel .slot-cell {
    min-height: 58px;
  }

  .mode-picker {
    gap: 6px;
  }

  .mode-picker .choice {
    flex: 1 1 0;
  }

  .simple-surface {
    min-height: 238px;
    padding: 11px 8px;
  }

  .dice-faces {
    gap: 14px;
  }

  .die {
    width: 88px;
    height: 88px;
    gap: 6px;
    padding: 12px;
    border-radius: 15px;
    box-shadow: inset 3px 3px 0 rgba(255, 255, 255, 0.82), inset -4px -5px 10px rgba(75, 83, 94, 0.24), 0 10px 0 #05060a, 0 0 20px rgba(24, 216, 255, 0.2);
  }

  .die i {
    width: 12px;
    height: 12px;
  }

  .classic-slot-machine {
    padding: 10px;
  }

  .classic-slot-window {
    height: 116px;
    gap: 5px;
    padding: 5px;
  }

  .classic-reel {
    font-size: 2.9rem;
  }

  .roulette-wheel {
    --ball-radius: -97px;
    --pocket-radius: -92px;
    width: min(76vw, 252px);
    height: min(76vw, 252px);
  }

  .roulette-number-picker {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
  }

  .roulette-number {
    min-height: var(--touch);
    font-size: 0.7rem;
  }

  .poker-table {
    gap: 5px;
  }

  .card {
    width: 51px;
    height: 76px;
    border-radius: 5px;
    font-size: 1.04rem;
    box-shadow: inset 0 0 0 1px var(--paper), 0 5px 0 rgba(5, 6, 10, 0.84), 0 9px 14px rgba(0, 0, 0, 0.2);
  }

  .rocket-surface {
    min-height: 260px;
    padding: 10px;
  }

  .rocket-readout {
    min-height: 235px;
  }

  .rocket-readout strong {
    font-size: clamp(3.2rem, 17vw, 4.6rem);
  }

  .pool-pot,
  .blackjack-table {
    padding: 13px;
  }

  .prediction-quote {
    grid-template-columns: 1fr;
  }

  .entry {
    align-items: flex-start;
    flex-direction: column;
  }

  .entry strong {
    text-align: left;
  }

  .facts {
    gap: 5px;
  }

  .facts div {
    padding: 9px 8px;
  }

  .motion-library-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .motion-disclosure {
    margin: 9px;
    padding: 9px;
  }

  .motion-preview {
    gap: 8px;
    padding: 0 9px 9px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-inline: 7px;
  }

  .site-footer span:nth-child(2),
  .site-footer span:last-child {
    text-align: left;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .panel,
  .notice,
  .mythic-shell,
  .simple-surface,
  .rocket-surface,
  .crypto-monitor {
    backdrop-filter: none;
    background-image: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-delay: 0ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation-delay: 0ms !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.01ms !important;
}

body.reduce-motion .rocket-marker,
body.reduce-motion .slot-cell.is-winning,
body.reduce-motion .roulette-wheel.is-settled .roulette-readout {
  animation: none !important;
}

body.reduce-motion .game-aura,
body[data-hyperfx-reduced-motion="true"] .game-aura {
  transition: none !important;
}

@media (forced-colors: active) {
  :root {
    --focus: Highlight;
  }

  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body,
  .panel,
  .notice,
  .rules-panel,
  .receipt,
  .facts div,
  .slot-cell,
  .pool-pot,
  .prediction-quote > div,
  .crypto-market-reference > div {
    color: CanvasText;
    background: Canvas;
  }

  body::before,
  .ambient-field,
  .ambient-grid,
  .panel::before,
  .topbar::after,
  .info-panel::after,
  .receipt-panel::after,
  .mythic-shell::before,
  .simple-surface::before,
  .rocket-surface::before,
  .rocket-surface::after,
  .classic-slot-machine::before {
    display: none;
  }

  .brand-mark,
  .motion-step,
  .motion-card,
  .motion-library,
  .motion-disclosure,
  .site-footer {
    border: 1px solid CanvasText;
    color: CanvasText;
    background: Canvas;
  }

  .game-aura {
    display: none;
  }

  .game-index,
  .motion-library-summary {
    border: 1px solid CanvasText;
    color: CanvasText;
    background: Canvas;
  }

  .game-index > span:first-child,
  .game-phase,
  .motion-library-summary b,
  .motion-library-summary small,
  .motion-card-copy strong,
  .motion-card-copy small,
  .motion-card-media > span,
  .tab-code {
    color: CanvasText;
  }

  .topbar,
  .game-nav,
  .mythic-shell,
  .simple-surface,
  .classic-slot-machine,
  .rocket-surface,
  .blackjack-table,
  .crypto-monitor,
  .proof-panel pre {
    border: 2px solid CanvasText;
    color: CanvasText;
    background: Canvas;
  }

  .topbar h1,
  .topbar h1 span,
  .topbar .eyebrow,
  .connection,
  .wallet span,
  .wallet strong,
  .realm-bar,
  .slot-caption,
  .rocket-readout strong,
  .rocket-readout .subtle,
  .rocket-state,
  .blackjack-table .hand-label,
  .crypto-monitor .eyebrow,
  .crypto-monitor .subtle,
  .crypto-monitor .hint,
  .crypto-monitor h3,
  .crypto-quote strong,
  .crypto-difference,
  .crypto-difference strong,
  .crypto-difference small {
    color: CanvasText;
  }

  .game-tab,
  .choice,
  .text-button,
  .action,
  .secondary-action,
  .text-input,
  .roulette-number {
    border: 2px solid ButtonText;
    color: ButtonText;
    background: ButtonFace;
  }

  .game-tab.is-active,
  .game-tab[aria-current="page"],
  .choice.is-active,
  .choice[aria-pressed="true"],
  .roulette-number.is-active,
  .roulette-number[aria-pressed="true"] {
    outline: 3px solid Highlight;
    outline-offset: -4px;
    color: HighlightText;
    background: Highlight;
  }

  .roulette-number::after {
    content: " B";
    font-size: 0.72em;
    font-weight: 900;
  }

  .roulette-number.is-red::after {
    content: " R";
  }

  .roulette-number.is-zero::after {
    content: " G";
  }

  .card,
  .die {
    border: 2px solid CanvasText;
    color: CanvasText;
    background: Canvas;
  }

  .card.is-hidden {
    color: Canvas;
    background: CanvasText;
  }

  .die i.is-pip {
    forced-color-adjust: none;
    outline: 1px solid Canvas;
    background: CanvasText;
  }

  .slot-cell.is-winning {
    forced-color-adjust: none;
    outline: 3px solid Highlight;
    outline-offset: -4px;
    color: HighlightText;
    background: Highlight;
  }

  .slot-cell.is-winning .slot-symbol,
  .slot-cell.is-winning .slot-symbol-label {
    color: HighlightText;
  }

  .progress > i {
    forced-color-adjust: none;
    background: Highlight;
  }

  .roulette-wheel {
    border-color: CanvasText;
    background: Canvas;
  }

  .roulette-wheel::before {
    forced-color-adjust: none;
    border: 1px solid CanvasText;
    background: Highlight;
    filter: none;
  }

  .roulette-rotor {
    forced-color-adjust: none;
    border-color: ButtonText;
    background:
      conic-gradient(from -4.865deg, Highlight 0 9.73deg, transparent 9.73deg),
      repeating-conic-gradient(from 4.865deg, ButtonText 0 9.73deg, Canvas 9.73deg 19.46deg);
  }

  .roulette-pocket,
  .roulette-pocket.is-zero {
    forced-color-adjust: none;
    color: Highlight;
    text-shadow: 0 0 1px Canvas;
  }

  .roulette-ball {
    border-color: Highlight;
    background: Highlight;
  }

  .roulette-readout {
    border-color: Highlight;
    color: Highlight;
    background: Canvas;
  }

  .rocket-grid {
    stroke: GrayText;
  }

  .rocket-line,
  .rocket-line.is-crashed,
  .rocket-marker,
  .rocket-marker.is-crashed {
    stroke: Highlight;
    filter: none;
  }

  .rocket-area,
  .rocket-area.is-crashed {
    fill: transparent;
  }

  button:disabled,
  input:disabled {
    color: GrayText;
    border-color: GrayText;
    opacity: 1;
  }
}
