:root {
  --void: #000000;
  --ink: #ececea;
  --muted: rgba(236, 236, 234, 0.42);
  --faint: rgba(236, 236, 234, 0.14);
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'IBM Plex Mono', monospace;
  --crypto: 'Orbitron', system-ui, sans-serif;
  --feed-line: 17px;
  --header-h: 76px;
  --footer-h: 152px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--void);
  color: var(--ink);
  overflow: hidden;
}

body {
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

.aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 38% 52%, rgba(255,255,255,0.045) 0%, transparent 70%),
    radial-gradient(ellipse 30% 40% at 88% 50%, rgba(255,255,255,0.025) 0%, transparent 65%);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-brand {
  text-align: center;
}

.header-logo {
  font-family: var(--crypto);
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 1;
  margin-right: -0.32em;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.72) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.18));
}

.header-logo-x {
  letter-spacing: 0.18em;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.45) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wallet-btn {
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease;
}

.wallet-btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.35s ease;
}

.wallet-btn:hover {
  transform: translateY(calc(-50% - 1px));
  background: var(--ink);
  color: var(--void);
  border-color: var(--ink);
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.12);
}

.wallet-btn:hover .wallet-btn__icon { opacity: 1; }

.wallet-btn.is-connected {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.06em;
}

.wallet-btn.is-connected:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  box-shadow: none;
}

.wallet-btn--inert {
  cursor: pointer;
}

.wallet-btn--inert:active {
  transform: translateY(calc(-50% + 1px)) scale(0.98);
}

.scene {
  position: relative;
  z-index: 2;
  display: flex;
  margin-top: var(--header-h);
  height: calc(100vh - var(--header-h) - var(--footer-h));
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

/* ─── case reel (CS-style horizontal strip) ─── */
.wheel-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vh, 40px);
  min-width: 0;
  min-height: 0;
  padding: 24px clamp(24px, 4vw, 48px);
}

.wheel-stage {
  position: relative;
  width: 100%;
  max-width: min(960px, 100%);
  margin-inline: auto;
}

.case-stage {
  width: 100%;
}

.case-reel__viewport {
  --case-card-w: 148px;
  --case-card-h: 188px;
  --case-gap: 12px;
  position: relative;
  width: 100%;
  height: 248px;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%),
    rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55) inset,
    0 24px 64px rgba(0, 0, 0, 0.45);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.case-stage.is-spinning .case-reel__viewport {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55) inset,
    0 0 40px rgba(255, 255, 255, 0.06),
    0 28px 72px rgba(0, 0, 0, 0.55);
}

.case-reel__track {
  display: flex;
  align-items: center;
  gap: var(--case-gap);
  height: 100%;
  padding: 0 calc(50% - var(--case-card-w) / 2);
  will-change: transform;
}

.case-reel__edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28%;
  z-index: 2;
  pointer-events: none;
}

.case-reel__edge--left {
  left: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, transparent 100%);
}

.case-reel__edge--right {
  right: 0;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.92) 0%, transparent 100%);
}

.case-reel__marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.case-reel__marker-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0.95) 100%
  );
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.45);
}

.case-reel__marker-cap {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
}

.case-reel__marker-cap--top {
  border-top: 10px solid var(--ink);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.case-reel__marker-cap--bottom {
  border-bottom: 10px solid var(--ink);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.case-stage.is-spinning .case-reel__marker-line {
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.65);
}

.case-reel__marker.is-lock .case-reel__marker-line {
  animation: markerLock 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes markerLock {
  0% { opacity: 1; filter: brightness(1); }
  45% { opacity: 1; filter: brightness(1.8); }
  100% { opacity: 1; filter: brightness(1); }
}

.case-card {
  flex: 0 0 var(--case-card-w);
  width: var(--case-card-w);
  height: var(--case-card-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.case-card__value {
  font-family: Orbitron, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: rgba(236, 236, 234, 0.94);
}

.case-card__unit {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(236, 236, 234, 0.45);
}

.case-card--lose {
  background: linear-gradient(180deg, rgba(190, 45, 45, 0.32) 0%, rgba(90, 18, 18, 0.2) 100%);
  border-color: rgba(255, 90, 90, 0.42);
}

.case-card--lose .case-card__value {
  font-size: 18px;
  color: #ffc4c4;
}

.case-card--lose .case-card__unit {
  color: rgba(255, 180, 180, 0.55);
}

.case-card.is-winner {
  transform: scale(1.06);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 32px rgba(255, 255, 255, 0.18),
    0 12px 32px rgba(0, 0, 0, 0.45);
}

.case-card--lose.is-winner {
  border-color: rgba(255, 120, 120, 0.65);
  box-shadow:
    0 0 0 1px rgba(255, 100, 100, 0.15) inset,
    0 0 32px rgba(255, 80, 80, 0.22),
    0 12px 32px rgba(0, 0, 0, 0.45);
}

/* ─── bet picker ─── */
.bet-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  flex-shrink: 0;
  width: min(100%, 480px);
  margin-inline: auto;
  position: relative;
  z-index: 5;
}

.bet-bar__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(236, 236, 234, 0.72);
}

.bet-bar__opts {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.bet-opt {
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 10px;
  font-family: var(--crypto);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  cursor: pointer;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.bet-opt:hover:not(:disabled) {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.bet-opt.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(180, 220, 255, 0.48);
  box-shadow:
    0 0 22px rgba(160, 200, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bet-opt:disabled {
  opacity: 0.35;
  cursor: wait;
}

/* ─── spin button ─── */
.spin-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  margin-top: 2px;
  width: 100%;
}

.spin-cta {
  position: relative;
  z-index: 1;
  margin-top: 0;
  width: 100%;
  min-width: 0;
  padding: 18px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.spin-cta__ring {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
  transition:
    border-color 0.4s ease,
    background 0.4s ease,
    box-shadow 0.4s ease;
}

.spin-cta__sheen {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255,255,255,0.14) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  pointer-events: none;
}

.spin-cta__label {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-width: 0;
  text-align: center;
  font-family: var(--crypto);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  pointer-events: none;
}

.spin-cta--demo .spin-cta__label {
  color: rgba(236, 236, 234, 0.82);
}

.spin-cta:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
}

.spin-cta:hover:not(:disabled) .spin-cta__ring {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.08);
  box-shadow:
    0 0 40px rgba(255,255,255,0.12),
    inset 0 0 20px rgba(255,255,255,0.04);
}

.spin-cta:hover:not(:disabled) .spin-cta__sheen {
  animation: ctaSheen 0.75s ease;
}

.spin-cta:active:not(:disabled) {
  transform: translateY(-1px) scale(0.99);
}

.spin-cta:disabled {
  opacity: 0.35;
  cursor: wait;
}

.spin-cta--inert {
  cursor: pointer;
}

.spin-cta--inert:disabled {
  opacity: 1;
  cursor: pointer;
}

.spin-cta:disabled .spin-cta__ring {
  animation: ctaPulse 1.2s ease-in-out infinite;
}

.spin-cta--demo .spin-cta__ring {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.spin-cta--demo:hover:not(:disabled) .spin-cta__ring {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.08);
}

@keyframes ctaSheen {
  to { transform: translateX(120%); }
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,255,255,0.06); }
  50% { box-shadow: 0 0 50px rgba(255,255,255,0.18); }
}

/* ─── feed ─── */
.feed {
  position: relative;
  width: clamp(268px, 26vw, 300px);
  flex-shrink: 0;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 14px 10px 0;
}

.feed-title {
  flex-shrink: 0;
  padding: 0 4px 14px 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  text-transform: uppercase;
  color: rgba(236, 236, 234, 0.55);
  letter-spacing: 0.18em;
}

.feed-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.feed-scroll::-webkit-scrollbar {
  width: 4px;
}

.feed-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.feed-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px 4px 16px 16px;
}

.feed-card {
  padding: 11px 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.feed-card.is-new {
  animation: feedCardIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.feed-card--lose {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

.feed-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.feed-card__addr {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: rgba(236, 236, 234, 0.38);
  letter-spacing: 0.02em;
}

.feed-card__stake {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: rgba(236, 236, 234, 0.42);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.feed-card__stake-label {
  color: rgba(236, 236, 234, 0.3);
}

.feed-card__result {
  font-family: var(--crypto);
  font-size: 18px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.feed-card__result--lose {
  font-size: 16px;
  color: rgba(236, 236, 234, 0.32);
}

@keyframes feedCardIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── outcome ─── */
.outcome {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s;
}

.outcome.is-open { opacity: 1; visibility: visible; }

.outcome-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(236, 236, 234, 0.88);
}

.outcome-value {
  font-family: var(--crypto);
  font-size: clamp(44px, 9vw, 80px);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.outcome-dismiss {
  margin-top: 28px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.outcome-dismiss:hover { color: var(--ink); }

/* ─── footer ─── */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  height: auto;
  min-height: var(--footer-h);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0 clamp(24px, 4vw, 56px);
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 1200px;
  padding: 18px 0 16px;
}

.site-footer__bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__brand {
  margin: 0;
  justify-self: start;
  font-family: var(--crypto);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(236, 236, 234, 0.55);
}

.site-footer__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.site-footer__link {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(236, 236, 234, 0.55);
  transition: color 0.25s ease;
}

.site-footer__link:hover { color: var(--ink); }

.site-footer__notice {
  width: 100%;
  text-align: center;
}

.site-footer__notice-title {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(236, 236, 234, 0.62);
}

.site-footer__disclaimer {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: rgba(236, 236, 234, 0.42);
  max-width: 72ch;
  margin-inline: auto;
}

/* ─── legal pages ─── */
.page-legal {
  overflow: auto;
  min-height: 100%;
}

.page-legal .header-logo-link {
  text-decoration: none;
  color: inherit;
}

.legal-main {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 48px) clamp(20px, 5vw, 40px) calc(var(--footer-h) + 48px);
}

.legal-doc__title {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 40px;
}

.legal-doc section {
  margin-bottom: 32px;
}

.legal-doc h2 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(236, 236, 234, 0.65);
  margin-bottom: 12px;
}

.legal-doc p,
.legal-doc li {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: rgba(236, 236, 234, 0.78);
}

.legal-doc p + p { margin-top: 12px; }

.legal-doc ul,
.legal-doc ol {
  margin: 12px 0 0;
  padding-left: 1.25em;
}

.legal-doc li + li { margin-top: 8px; }

.legal-doc a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(236, 236, 234, 0.35);
  transition: text-decoration-color 0.2s;
}

.legal-doc a:hover { text-decoration-color: var(--ink); }

@media (max-width: 860px) {
  body { overflow: auto; }
  :root { --header-h: 68px; --footer-h: 168px; }
  .aura {
    background: radial-gradient(ellipse 80% 55% at 50% 32%, rgba(255, 255, 255, 0.03) 0%, transparent 72%);
  }
  .header {
    background: #000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .scene {
    flex-direction: column;
    height: auto;
    margin-top: var(--header-h);
    min-height: calc(100vh - var(--header-h));
    padding-bottom: 0;
    overflow: visible;
  }
  .wheel-area {
    flex-direction: column;
    width: 100%;
    min-height: auto;
    padding: 20px 16px 36px;
    justify-content: flex-start;
    gap: 28px;
  }
  .wheel-stage { width: 100%; display: flex; justify-content: center; overflow: visible; }
  .case-stage { width: 100%; max-width: none; }
  .case-reel__viewport {
    --case-card-w: 124px;
    --case-card-h: 160px;
    height: 204px;
    border-radius: 14px;
  }
  .case-card__value { font-size: 20px; }
  .bet-bar {
    width: 100%;
    max-width: 480px;
    margin-top: 0;
    gap: 16px;
    align-items: stretch;
  }
  .bet-bar__label {
    font-size: 11px;
    letter-spacing: 0.18em;
    color: rgba(236, 236, 234, 0.68);
  }
  .bet-bar__opts {
    gap: 8px;
    width: 100%;
    justify-content: center;
  }
  .bet-opt {
    flex: 1 1 0;
    min-width: 0;
    max-width: 76px;
    padding: 13px 10px;
    font-size: 13px;
    border-radius: 100px;
  }
  .spin-actions {
    width: 100%;
    max-width: none;
    margin-top: 6px;
    gap: 8px;
  }
  .spin-cta {
    padding: 17px 8px;
  }
  .spin-cta__label {
    font-size: clamp(9px, 2.8vw, 11px);
    letter-spacing: 0.08em;
  }
  .feed {
    width: 100%;
    height: auto;
    min-height: 320px;
    max-height: none;
    padding: 16px 16px 8px;
  }
  .feed-scroll {
    flex: none;
    width: 100%;
    max-height: min(48vh, 440px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  }

  .feed-scroll::-webkit-scrollbar {
    width: 4px;
  }

  .feed-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
  }

  .feed-title { padding-left: 0; font-size: 11px; letter-spacing: 0.16em; }
  .feed-track { padding-left: 0; }
  .feed-card__result { font-size: 17px; }
  .header-logo { font-size: 20px; letter-spacing: 0.26em; margin-right: -0.26em; }
  .wallet-btn { padding: 9px 14px; gap: 0; }
  .wallet-btn__icon { display: none; }
  .wallet-btn__label { font-size: 9px; }
  .site-footer {
    position: static;
    z-index: auto;
    padding: 16px 20px calc(18px + env(safe-area-inset-bottom, 0px));
    background: #080808;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .page-legal .legal-main {
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }

  .site-footer__inner {
    gap: 12px;
    align-items: center;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .site-footer__bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-footer__brand {
    display: block;
    margin-bottom: 12px;
    font-size: 10px;
    letter-spacing: 0.24em;
    color: rgba(236, 236, 234, 0.45);
  }

  .site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px 28px;
    width: auto;
    order: unset;
  }

  .site-footer__link {
    display: inline;
    padding: 0;
    font-size: 9px;
    letter-spacing: 0.14em;
    text-align: center;
    color: rgba(236, 236, 234, 0.55);
    background: none;
    border: none;
    border-radius: 0;
  }

  .site-footer__notice {
    order: unset;
    max-width: none;
    text-align: center;
    padding: 0;
    border-radius: 0;
    background: none;
    border: none;
  }

  .site-footer__notice-title {
    display: inline;
    margin-bottom: 0;
    font-size: 9px;
    color: rgba(236, 236, 234, 0.55);
  }

  .site-footer__disclaimer {
    text-align: center;
    font-family: var(--mono);
    font-size: 10px;
    font-style: normal;
    line-height: 1.65;
    letter-spacing: 0.04em;
    color: rgba(236, 236, 234, 0.42);
    max-width: 36ch;
    margin-inline: auto;
  }
}

@media (max-width: 420px) {
  .wheel-area { padding: 16px 12px 32px; }
  .case-reel__viewport {
    --case-card-w: 112px;
    --case-card-h: 148px;
    height: 192px;
  }
  .case-card__value { font-size: 17px; }
  .bet-bar { max-width: 100%; gap: 14px; }
  .bet-opt { padding: 12px 6px; font-size: 12px; max-width: none; }
  .spin-cta { padding: 16px 6px; }
  .spin-cta__label { font-size: 9px; letter-spacing: 0.06em; }
  .wallet-btn__label { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .feed-card.is-new { animation: none; }
  .case-reel__marker.is-lock .case-reel__marker-line { animation: none; }
}
