:root {
  color-scheme: dark;
  --bg: #09090b;
  --panel: rgba(20, 20, 24, 0.86);
  --panel-strong: rgba(32, 30, 34, 0.96);
  --text: #f7f2e8;
  --muted: #b8afa2;
  --gold: #f4c76b;
  --gold-2: #a67828;
  --red: #d7293a;
  --green: #0fa66a;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(215, 41, 58, 0.28), transparent 32rem),
    radial-gradient(circle at 90% 16%, rgba(244, 199, 107, 0.18), transparent 30rem),
    linear-gradient(140deg, #080709 0%, #13100f 46%, #0b1210 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 90%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.74);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #1a0e05;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff1b4, #d79831 54%, #7d4a13);
  box-shadow: 0 12px 28px rgba(244, 199, 107, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

nav a:hover {
  color: var(--text);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 36px;
  align-items: end;
  min-height: calc(100svh - 82px);
  padding: clamp(56px, 8vw, 110px) clamp(18px, 4vw, 56px) 42px;
}

.hero-copy {
  max-width: 820px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(48px, 8.5vw, 108px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 0.94;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
}

.hero-actions,
.quick-row,
.section-head,
.amount-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.primary-button,
.secondary-button,
.ghost-button,
.spin-button,
.quick-row button,
.pick,
.easter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.link-button {
  width: fit-content;
}

.primary-button,
.spin-button {
  padding: 0 22px;
  color: #170e03;
  font-weight: 900;
  border-color: rgba(244, 199, 107, 0.7);
  background: linear-gradient(135deg, #ffe28c, #d7962f 62%, #9b611f);
  box-shadow: 0 18px 38px rgba(215, 151, 47, 0.28);
}

.secondary-button,
.ghost-button,
.quick-row button,
.easter {
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.06);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.spin-button:hover,
.quick-row button:hover,
.pick:hover,
.easter:hover {
  transform: translateY(-1px);
  border-color: rgba(244, 199, 107, 0.45);
}

.hero-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
}

.hero-panel div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.hero-panel span {
  color: var(--muted);
}

.hero-panel strong {
  color: var(--gold);
  white-space: nowrap;
}

.landing-hero h1 {
  text-transform: lowercase;
}

.ticker {
  display: flex;
  gap: 12px;
  padding: 12px clamp(18px, 4vw, 56px);
  overflow-x: auto;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.ticker span {
  flex: 0 0 auto;
  padding: 9px 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.route-grid {
  display: grid;
  width: min(1180px, calc(100% - 36px));
  margin: 72px auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.route-card {
  position: relative;
  min-height: 330px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

.route-card::after {
  position: absolute;
  right: -48px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  content: "";
  border: 26px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.route-red {
  background: linear-gradient(145deg, rgba(215, 41, 58, 0.23), rgba(255, 255, 255, 0.055));
}

.route-gold {
  background: linear-gradient(145deg, rgba(244, 199, 107, 0.2), rgba(255, 255, 255, 0.055));
}

.route-green {
  background: linear-gradient(145deg, rgba(15, 166, 106, 0.22), rgba(255, 255, 255, 0.055));
}

.route-card span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 90px;
  color: #1a0e05;
  font-weight: 900;
  border-radius: 50%;
  background: var(--gold);
}

.route-card h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.route-card p {
  max-width: 290px;
  color: var(--muted);
  line-height: 1.55;
}

.app-shell,
.cashier,
.history-section,
.support {
  width: min(1180px, calc(100% - 36px));
  margin: 72px auto;
}

.page-title {
  margin-bottom: 0;
  font-size: clamp(42px, 6vw, 72px);
}

.app-shell {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(244, 199, 107, 0.2);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(23, 23, 27, 0.94), rgba(14, 14, 16, 0.94));
  box-shadow: var(--shadow);
}

.table-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.balance-box {
  min-width: 190px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.balance-box span,
.field label,
.cash-card label,
.checkout-card label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.balance-box strong {
  font-size: 28px;
}

.game-grid {
  display: grid;
  grid-template-columns: minmax(330px, 1fr) 380px;
  gap: 24px;
}

.wheel-zone,
.bet-panel,
.cash-card,
.vip-card,
.support {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.wheel-zone {
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 26px;
}

.wheel-wrap {
  position: relative;
  width: min(430px, 86vw);
  aspect-ratio: 1;
}

.wheel {
  position: absolute;
  inset: 0;
  border: 10px solid #392111;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      #c72131 0 30deg,
      #111 30deg 60deg,
      #c72131 60deg 90deg,
      #111 90deg 120deg,
      #0b8d57 120deg 150deg,
      #c72131 150deg 180deg,
      #111 180deg 210deg,
      #c72131 210deg 240deg,
      #111 240deg 270deg,
      #c72131 270deg 300deg,
      #111 300deg 330deg,
      #c72131 330deg 360deg
    );
  box-shadow:
    inset 0 0 0 9px rgba(255, 221, 136, 0.28),
    inset 0 0 44px rgba(0, 0, 0, 0.72),
    0 28px 60px rgba(0, 0, 0, 0.55);
  transition: transform 4s cubic-bezier(0.12, 0.74, 0.08, 1);
}

.slot {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin: -18px;
  color: white;
  font-weight: 900;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.slot:nth-child(1) { transform: rotate(15deg) translateY(-182px) rotate(-15deg); }
.slot:nth-child(2) { transform: rotate(45deg) translateY(-182px) rotate(-45deg); }
.slot:nth-child(3) { transform: rotate(75deg) translateY(-182px) rotate(-75deg); }
.slot:nth-child(4) { transform: rotate(105deg) translateY(-182px) rotate(-105deg); }
.slot:nth-child(5) { transform: rotate(135deg) translateY(-182px) rotate(-135deg); }
.slot:nth-child(6) { transform: rotate(165deg) translateY(-182px) rotate(-165deg); }
.slot:nth-child(7) { transform: rotate(195deg) translateY(-182px) rotate(-195deg); }
.slot:nth-child(8) { transform: rotate(225deg) translateY(-182px) rotate(-225deg); }
.slot:nth-child(9) { transform: rotate(255deg) translateY(-182px) rotate(-255deg); }
.slot:nth-child(10) { transform: rotate(285deg) translateY(-182px) rotate(-285deg); }
.slot:nth-child(11) { transform: rotate(315deg) translateY(-182px) rotate(-315deg); }
.slot:nth-child(12) { transform: rotate(345deg) translateY(-182px) rotate(-345deg); }

.slot.red { background: #a31624; }
.slot.black { background: #080808; }
.slot.zero { background: #08754a; }

.pointer {
  position: absolute;
  left: 50%;
  top: -8px;
  z-index: 3;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 42px solid var(--gold);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.4));
}

.wheel-center {
  position: absolute;
  inset: 31%;
  display: grid;
  place-items: center;
  text-align: center;
  border: 8px solid rgba(244, 199, 107, 0.5);
  border-radius: 50%;
  background: radial-gradient(circle, #25201a, #090909 72%);
  box-shadow: 0 0 34px rgba(0, 0, 0, 0.62);
}

.wheel-center span {
  font-size: 56px;
  font-weight: 950;
}

.wheel-center strong {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.status-line {
  width: min(430px, 100%);
  min-height: 50px;
  margin-top: 26px;
  padding: 14px 16px;
  color: var(--muted);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.bet-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 22px;
}

.amount-row {
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

input {
  width: 100%;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
}

.amount-row span {
  color: var(--gold);
  font-weight: 800;
}

.quick-row {
  flex-wrap: wrap;
}

.quick-row button {
  flex: 1 1 74px;
}

.color-picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pick {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 14px 10px;
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
}

.pick span,
.pick strong {
  display: block;
}

.pick strong {
  font-size: 24px;
}

.pick.red.active {
  border-color: rgba(215, 41, 58, 0.8);
  box-shadow: inset 0 0 0 1px rgba(215, 41, 58, 0.35);
}

.pick.black.active {
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.pick.zero.active {
  border-color: rgba(15, 166, 106, 0.85);
  box-shadow: inset 0 0 0 1px rgba(15, 166, 106, 0.42);
}

.spin-button {
  width: 100%;
  min-height: 58px;
  font-size: 18px;
}

.spin-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.fineprint,
.cashier-copy p,
.vip-card p,
.support p {
  color: var(--muted);
  line-height: 1.55;
}

.cashier {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
  gap: 28px;
  align-items: center;
}

.cash-page {
  display: grid;
  width: min(1080px, calc(100% - 36px));
  min-height: calc(100svh - 166px);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) 0;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 480px);
  gap: 32px;
  align-items: center;
}

.cash-hero .balance-box {
  width: min(280px, 100%);
  margin-top: 30px;
}

.checkout-card {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(244, 199, 107, 0.22);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(31, 31, 35, 0.94), rgba(14, 14, 16, 0.96));
  box-shadow: var(--shadow);
}

.checkout-card h2 {
  margin-bottom: 4px;
  font-size: 32px;
}

.checkout-card input {
  height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.checkout-card .primary-button {
  width: 100%;
  margin-top: 4px;
}

.cashier-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cash-card {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.cash-card input {
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.vip {
  display: grid;
  width: min(1180px, calc(100% - 36px));
  margin: 72px auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.vip-card {
  min-height: 220px;
  padding: 24px;
}

.vip-card span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 26px;
  color: #1a0e05;
  font-weight: 900;
  border-radius: 50%;
  background: var(--gold);
}

.history-section {
  padding-bottom: 24px;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 18px;
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.history-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.history-item strong.win {
  color: #54e39b;
}

.history-item strong.loss {
  color: #ff6b78;
}

.support {
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
}

.support p {
  max-width: 720px;
  margin-inline: auto;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.easter {
  color: rgba(247, 242, 232, 0.32);
}

/* Shared Redline footer signature. */
footer .easter {
  position: relative;
  min-height: 34px;
  overflow: hidden;
  padding: 0 14px;
  border: 1px solid rgba(255, 65, 89, 0.28);
  border-radius: 999px;
  color: #858991;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(255, 31, 60, 0.04);
  box-shadow: inset 0 0 18px rgba(255, 31, 60, 0.03);
}
footer .easter::before {
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  content: "";
  background: #f51d3f;
  box-shadow: 0 0 9px rgba(245, 29, 63, 0.8);
}
footer .easter:hover { border-color: rgba(255, 65, 89, 0.7); color: #f4f4f6; background: rgba(255, 31, 60, 0.1); box-shadow: 0 8px 26px rgba(245,29,63,0.13); }
footer .easter.is-hit { animation: easter-hit 520ms cubic-bezier(.2,.8,.2,1); }

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(380px, calc(100vw - 36px));
  padding: 14px 16px;
  color: var(--text);
  border: 1px solid rgba(244, 199, 107, 0.32);
  border-radius: 8px;
  background: rgba(18, 18, 20, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Google Identity Services inside the Redline account sheet. */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after { height: 1px; flex: 1; content: ""; background: rgba(255, 255, 255, 0.1); }
.google-signin-wrap { display: grid; justify-items: center; gap: 8px; width: 100%; }
#googleSignInButton { min-height: 44px; width: 100%; display: grid; place-items: center; }
#googleSignInButton > div,
#googleSignInButton iframe { max-width: 100% !important; }
.google-signin-wrap p { margin: 0; color: rgba(255, 255, 255, 0.46); font-size: 10px; text-align: center; }
.google-signin-error { padding: 12px; color: #ff8b98; border: 1px solid rgba(255, 45, 75, 0.25); border-radius: 999px; font-size: 11px; }

@media (max-width: 600px) {
  .auth-card { width: min(100% - 24px, 420px); max-height: calc(100dvh - 24px); overflow-y: auto; }
  .auth-divider { margin-block: 14px 10px; }
  .google-signin-wrap p { display: none; }
}

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 37, 61, 0.42), transparent 30rem),
    radial-gradient(circle at 88% 24%, rgba(0, 228, 147, 0.18), transparent 24rem),
    radial-gradient(circle at 18% 72%, rgba(244, 199, 107, 0.16), transparent 24rem),
    linear-gradient(135deg, #07070a 0%, #15070b 42%, #050608 100%);
}

.topbar {
  border-bottom-color: rgba(255, 37, 61, 0.24);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.brand-mark {
  color: #fff4ed;
  background:
    radial-gradient(circle at 35% 28%, #ffb0ad, transparent 28%),
    linear-gradient(145deg, #ff273f, #8f0718 58%, #160306);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 18px 34px rgba(255, 37, 61, 0.28);
}

.account-dock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.compact {
  min-height: 38px;
  padding: 0 13px;
  font-size: 14px;
}

.user-pill,
.account-chip {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.user-pill {
  padding: 9px 12px;
  color: var(--gold);
  font-weight: 800;
}

.landing-hero {
  position: relative;
}

.landing-hero::after {
  position: absolute;
  right: clamp(24px, 9vw, 130px);
  top: 18%;
  z-index: -1;
  width: clamp(260px, 36vw, 520px);
  aspect-ratio: 1;
  content: "";
  border: 34px solid rgba(255, 255, 255, 0.07);
  border-top-color: rgba(255, 38, 60, 0.54);
  border-right-color: rgba(244, 199, 107, 0.34);
  border-radius: 50%;
  filter: drop-shadow(0 0 60px rgba(255, 37, 61, 0.24));
  animation: slowSpin 18s linear infinite;
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

.route-card {
  transform-style: preserve-3d;
}

.route-card:hover {
  transform: translateY(-4px) rotateX(1deg);
  border-color: rgba(255, 37, 61, 0.42);
}

.game-stage {
  position: relative;
}

.game-stage::before {
  position: absolute;
  inset: 10px;
  z-index: -1;
  content: "";
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 37, 61, 0.22), transparent),
    linear-gradient(180deg, transparent, rgba(244, 199, 107, 0.12), transparent);
  filter: blur(22px);
}

.casino-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.casino-ribbon div {
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.casino-ribbon span,
.account-chip span,
.limit-meter span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.casino-ribbon strong,
.account-chip strong {
  display: flex;
  align-items: center;
  min-height: 28px;
  color: var(--text);
}

.mini-number {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  margin-right: 4px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  border-radius: 50%;
}

.mini-number.red {
  background: var(--red);
}

.mini-number.black {
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.mini-number.zero {
  background: var(--green);
}

.wheel-wrap {
  filter: drop-shadow(0 36px 60px rgba(0, 0, 0, 0.55));
}

.wheel {
  border-width: 14px;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(255, 255, 255, 0.1) 0deg 1deg,
      transparent 1deg 30deg
    ),
    conic-gradient(
      from 0deg,
      #e71f36 0 30deg,
      #050506 30deg 60deg,
      #b91527 60deg 90deg,
      #090909 90deg 120deg,
      #0dae70 120deg 150deg,
      #e92a3f 150deg 180deg,
      #070707 180deg 210deg,
      #b71929 210deg 240deg,
      #0a0a0a 240deg 270deg,
      #f23a4c 270deg 300deg,
      #040405 300deg 330deg,
      #c4172a 330deg 360deg
    );
  box-shadow:
    inset 0 0 0 9px rgba(255, 221, 136, 0.26),
    inset 0 0 0 31px rgba(0, 0, 0, 0.18),
    inset 0 0 54px rgba(0, 0, 0, 0.78),
    0 0 70px rgba(255, 37, 61, 0.16);
}

.orbit {
  position: absolute;
  inset: 9%;
  z-index: 4;
  border-radius: 50%;
  transition: transform 3.9s cubic-bezier(0.11, 0.72, 0.04, 1);
}

.ball {
  position: absolute;
  left: 50%;
  top: -8px;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #f7d98a 45%, #9a5d12);
  box-shadow:
    0 0 18px rgba(255, 241, 188, 0.9),
    0 5px 12px rgba(0, 0, 0, 0.5);
}

.wheel-center {
  background:
    radial-gradient(circle at 45% 36%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle, #23130f, #050505 72%);
}

.account-chip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
}

.tool-row button.active {
  color: #170e03;
  border-color: rgba(244, 199, 107, 0.7);
  background: var(--gold);
}

.bet-readout {
  min-height: 44px;
  padding: 12px 14px;
  color: var(--gold);
  font-weight: 900;
  text-align: center;
  border: 1px solid rgba(244, 199, 107, 0.24);
  border-radius: 8px;
  background: rgba(244, 199, 107, 0.08);
}

.limit-meter {
  width: min(340px, 100%);
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.limit-meter div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.limit-meter strong {
  color: var(--gold);
}

meter {
  width: 100%;
  height: 14px;
}

meter::-webkit-meter-bar {
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

meter::-webkit-meter-optimum-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(16px);
  opacity: 1;
  pointer-events: auto;
  transition: opacity 180ms ease;
}

.auth-modal[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

.auth-card {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(430px, 100%);
  padding: 26px;
  border: 1px solid rgba(255, 37, 61, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(38, 19, 22, 0.98), rgba(10, 10, 12, 0.98)),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.auth-card form {
  display: grid;
  gap: 14px;
}

.auth-card input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.text-button {
  min-height: 34px;
  color: var(--muted);
  border: 0;
  background: transparent;
}

.text-button:hover {
  color: var(--text);
}

@media (max-width: 980px) {
  nav {
    display: none;
  }

  .hero,
  .game-grid,
  .cashier,
  .cash-page {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .wheel-zone {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding-block: 12px;
  }

  .brand small {
    display: none;
  }

  .hero-actions,
  .table-head,
  .cashier-panels,
  .route-grid,
  .vip,
  footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions button,
  .hero-actions a,
  .table-head .balance-box,
  .cashier-panels button {
    width: 100%;
  }

  .link-button {
    width: 100%;
  }

  .color-picks {
    grid-template-columns: 1fr;
  }

  .casino-ribbon {
    grid-template-columns: 1fr;
  }

  .account-dock {
    grid-column: 1 / -1;
  }

  .slot {
    width: 30px;
    height: 30px;
    margin: -15px;
    font-size: 12px;
  }

  .slot:nth-child(n) {
    transform: rotate(var(--angle, 0deg)) translateY(-39vw) rotate(calc(var(--angle, 0deg) * -1));
  }

  .slot:nth-child(1) { --angle: 15deg; }
  .slot:nth-child(2) { --angle: 45deg; }
  .slot:nth-child(3) { --angle: 75deg; }
  .slot:nth-child(4) { --angle: 105deg; }
  .slot:nth-child(5) { --angle: 135deg; }
  .slot:nth-child(6) { --angle: 165deg; }
  .slot:nth-child(7) { --angle: 195deg; }
  .slot:nth-child(8) { --angle: 225deg; }
  .slot:nth-child(9) { --angle: 255deg; }
  .slot:nth-child(10) { --angle: 285deg; }
  .slot:nth-child(11) { --angle: 315deg; }
  .slot:nth-child(12) { --angle: 345deg; }

  .friends-page {
    width: min(100% - 28px, 620px);
    padding-block: 32px 44px;
  }

  .friends-head,
  .friends-layout {
    grid-template-columns: 1fr;
  }

  .friends-head {
    gap: 20px;
  }

  .friends-layout,
  .chat-panel {
    min-height: 500px;
  }

  .friends-sidebar {
    order: 2;
  }

  .chat-panel {
    order: 1;
  }

  .friend-search > div:not(.friend-results),
  .message-form {
    align-items: stretch;
    flex-direction: column;
  }

  .message-form .primary-button {
    width: 100%;
  }

  .multiplayer-page {
    width: min(100% - 28px, 620px);
    padding-block: 32px 44px;
  }

  .multiplayer-head,
  .lobby-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .lobby-shell {
    min-height: 500px;
    padding: 18px;
  }

  .mode-grid,
  .lobby-grid {
    grid-template-columns: 1fr;
  }

  #lobbySetup {
    margin-block: 32px;
  }

  .lobby-grid {
    padding-top: 16px;
  }

  .lobby-side {
    grid-template-rows: auto auto;
  }

  .winner-tape,
  .profile-grid,
  .profile-details {
    grid-template-columns: 1fr;
  }

  .winner-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-page {
    width: min(100% - 28px, 620px);
    padding-block: 32px 44px;
  }

  .profile-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .profile-balance {
    width: 100%;
    margin: 0;
    text-align: left;
  }

  .avatar-upload {
    opacity: 1;
  }
}

/* Landing refresh */
.landing-main {
  overflow: hidden;
}

.redline-hero {
  position: relative;
  display: flex;
  min-height: calc(100svh - 72px);
  align-items: center;
  overflow: hidden;
  padding: clamp(58px, 8vw, 116px) max(6vw, calc((100vw - 1240px) / 2)) 126px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: #08090c;
}

.hero-emblem {
  position: absolute;
  top: 50%;
  right: max(-8vw, -110px);
  width: min(68vw, 860px);
  max-width: none;
  transform: translateY(-50%);
  opacity: 0.78;
  filter: saturate(1.08) contrast(1.06);
}

.hero-frame {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
}

.hero-frame .kicker {
  margin: 0 0 16px;
  color: #ff5568;
}

.hero-frame h1 {
  margin: 0;
  color: #f7f7f9;
  font-size: clamp(54px, 8vw, 118px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-frame h1 span {
  color: #e51831;
}

.hero-statement {
  max-width: 520px;
  margin: 28px 0;
  color: #b6bac5;
  font-size: 17px;
  line-height: 1.55;
}

.landing-text-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  color: #f2f3f6;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-text-link:hover { color: #ff5a6d; border-color: #ff5a6d; }

.hero-livebar {
  position: absolute;
  right: max(6vw, calc((100vw - 1240px) / 2));
  bottom: 24px;
  left: max(6vw, calc((100vw - 1240px) / 2));
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-livebar div { padding: 15px 18px 0 0; }
.hero-livebar div + div { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, 0.13); }
.hero-livebar span { display: block; color: #9ba0aa; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.hero-livebar strong { display: block; margin-top: 5px; color: #fff; font-size: 17px; }

.hero-scroll {
  position: absolute;
  right: 24px;
  bottom: 30px;
  z-index: 1;
  writing-mode: vertical-rl;
  color: #9da1aa;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.winner-tape {
  margin-top: 0;
  margin-bottom: 80px;
  padding-block: 25px;
}

.landing-intro {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 24px;
}

.landing-intro .kicker { margin: 0 0 9px; color: #ff5265; }
.landing-intro h2 { max-width: 780px; margin: 0; font-size: clamp(26px, 4vw, 52px); line-height: 1; }

.landing-routes {
  margin-bottom: 92px;
}

.landing-routes .route-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: #111217;
}

.landing-routes .route-card:nth-child(2) { background: #151215; }
.landing-routes .route-card:nth-child(3) { background: #101516; }
.landing-routes .route-card span {
  width: auto;
  height: auto;
  margin-bottom: auto;
  padding: 0;
  box-shadow: none;
  color: #aeb3be;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: transparent;
}

.landing-routes .route-card h2 { margin: 14px 0 10px; font-size: 30px; letter-spacing: 0; text-transform: none; }
.landing-routes .route-card p { min-height: 52px; margin: 0; color: #aeb3be; line-height: 1.5; }
.landing-routes .route-card b { margin-top: 20px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.landing-routes .route-card:hover { transform: translateY(-5px); border-color: rgba(255, 82, 101, 0.7); }

.landing-closing {
  display: flex;
  width: min(1180px, calc(100% - 36px));
  min-height: 255px;
  margin: 0 auto 84px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 82, 101, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.landing-closing .kicker { margin: 0 0 11px; color: #ff5265; }
.landing-closing h2 { margin: 0; font-size: clamp(30px, 4vw, 58px); line-height: 0.98; }

@media (max-width: 760px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    min-height: auto;
    padding: 10px 14px;
  }

  .topbar nav {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .topbar nav::-webkit-scrollbar { display: none; }
  .topbar nav a { flex: 0 0 auto; }
  .topbar .header-action { justify-self: end; }
  .topbar .account-dock { grid-column: 1 / -1; justify-self: start; }

  .redline-hero { min-height: calc(100svh - 72px); padding: 48px 20px 150px; align-items: flex-start; }
  .hero-emblem { top: auto; right: -32vw; bottom: 70px; width: 120vw; transform: none; opacity: 0.46; }
  .hero-frame { margin-top: 40px; }
  .hero-statement { font-size: 15px; }
  .hero-livebar { right: 20px; bottom: 20px; left: 20px; }
  .hero-livebar div { padding: 11px 7px 0 0; }
  .hero-livebar div + div { padding-left: 7px; }
  .hero-livebar span { font-size: 8px; }
  .hero-livebar strong { font-size: 13px; }
  .hero-scroll { display: none; }
  .winner-tape { margin-bottom: 56px; }
  .landing-routes .route-card { min-height: 250px; }
  .landing-closing { min-height: 260px; align-items: flex-start; flex-direction: column; justify-content: space-between; }
}

/* REDLINE redesign */
:root {
  --bg: #020203;
  --panel: rgba(8, 8, 10, 0.78);
  --panel-strong: rgba(12, 12, 15, 0.96);
  --text: #f6f7fb;
  --muted: #a8adb9;
  --gold: #f2f4f8;
  --gold-2: #8a909b;
  --red: #ff1028;
  --green: #00c878;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 38px 90px rgba(0, 0, 0, 0.62);
}

body {
  background:
    linear-gradient(140deg, #0d0e12 0%, #07080b 52%, #111216 100%);
}

body::before {
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(255, 255, 255, 0.025) 46% 47%, transparent 47% 100%);
  background-size: 22px 22px;
  opacity: 0.65;
  mask-image: none;
}

.topbar {
  padding-block: 12px;
  border-bottom-color: rgba(255, 16, 40, 0.26);
  background:
    linear-gradient(90deg, rgba(255, 16, 40, 0.08), transparent 22%, rgba(255, 255, 255, 0.04)),
    rgba(2, 2, 3, 0.78);
}

.brand {
  gap: 11px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 14px rgba(255, 16, 40, 0.7));
}

.brand strong {
  color: var(--text);
  font-size: 18px;
  letter-spacing: 0.12em;
}

.brand small {
  color: #d9dce5;
  letter-spacing: 0.42em;
}

nav {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.topbar {
  gap: 24px;
  min-height: 72px;
  padding-inline: clamp(18px, 4vw, 64px);
  background: rgba(7, 8, 11, 0.92);
  backdrop-filter: blur(18px);
}

.topbar nav {
  flex: 1;
  justify-content: center;
  gap: clamp(16px, 2.3vw, 34px);
}

.topbar nav a {
  position: relative;
  padding: 10px 0;
  font-size: 12px;
}

.topbar nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: var(--red);
  transition: transform 180ms ease;
}

.topbar nav a:hover::after {
  transform: scaleX(1);
}

.header-action,
.header-account-link,
.header-account-create {
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #f4f5f7;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
}

.header-action {
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 16, 40, 0.8);
}

.header-action:hover,
.header-account-link:hover,
.header-account-create:hover {
  color: #ff5b6c;
}

.account-dock {
  gap: 14px;
}

.header-account-create {
  color: #ff5265;
}

.user-pill {
  border: 0;
  border-radius: 0;
  color: #d6d9e1;
  background: transparent;
}

.primary-button,
.spin-button {
  color: #fff;
  border-color: rgba(255, 16, 40, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(135deg, #ff3146, #b50018 62%, #4b0008);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 18px 42px rgba(255, 16, 40, 0.34);
}

.secondary-button,
.ghost-button,
.quick-row button,
.easter {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
}

.cinema-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  min-height: calc(100svh - 79px);
  padding: clamp(54px, 8vw, 104px) clamp(18px, 4vw, 64px) 48px;
}

.cinema-hero::before {
  position: absolute;
  left: 6vw;
  right: 6vw;
  bottom: 8%;
  z-index: -1;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 16, 40, 0.95), transparent);
  box-shadow: 0 0 46px 9px rgba(255, 16, 40, 0.35);
}

.cinema-hero h1 {
  max-width: 850px;
  font-size: clamp(54px, 9vw, 128px);
  text-transform: uppercase;
  text-shadow:
    0 0 24px rgba(255, 16, 40, 0.22),
    0 22px 54px rgba(0, 0, 0, 0.7);
}

.cinema-hero .lead {
  max-width: 720px;
  color: #d4d8e2;
}

.logo-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 16, 40, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 16, 40, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow:
    var(--shadow),
    0 0 70px rgba(255, 16, 40, 0.13) inset;
}

.logo-stage img {
  width: min(86%, 520px);
  filter: drop-shadow(0 0 26px rgba(255, 16, 40, 0.48));
}

.scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0 47%, rgba(255, 255, 255, 0.16) 50%, transparent 53%);
  animation: scan 4.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scan {
  0%, 100% { transform: translateY(-52%); opacity: 0; }
  18%, 70% { opacity: 0.7; }
  85% { transform: translateY(52%); opacity: 0; }
}

.hero-metrics {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hero-metrics div,
.casino-ribbon div,
.balance-box,
.bet-panel,
.wheel-zone,
.checkout-card,
.limit-meter,
.history-item {
  border-color: rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(2, 2, 3, 0.58);
}

.hero-metrics div {
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.hero-metrics span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.hero-metrics strong {
  color: #fff;
}

.cinematic-ticker {
  border-block-color: rgba(255, 16, 40, 0.24);
  background: rgba(255, 16, 40, 0.045);
}

.ticker span {
  color: #e8eaf0;
  border-color: rgba(255, 16, 40, 0.2);
}

.route-card {
  min-height: 380px;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(160deg, rgba(255, 16, 40, 0.17), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.route-card span {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent),
    #e00019;
  box-shadow: 0 0 24px rgba(255, 16, 40, 0.42);
}

.route-card h2 {
  text-transform: uppercase;
}

.promo-strip {
  display: grid;
  width: min(1180px, calc(100% - 36px));
  margin: 72px auto;
  grid-template-columns: 0.8fr 1fr;
  gap: 28px;
  align-items: end;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(255, 16, 40, 0.25);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(255, 16, 40, 0.16), transparent 45%),
    rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
}

.promo-strip p {
  color: #c7ccd8;
  line-height: 1.6;
}

.app-shell {
  border-color: rgba(255, 16, 40, 0.25);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 16, 40, 0.16), transparent 34rem),
    linear-gradient(145deg, rgba(9, 9, 12, 0.96), rgba(2, 2, 3, 0.96));
}

.page-title {
  text-transform: uppercase;
}

.casino-ribbon {
  grid-template-columns: 0.65fr 0.65fr 1.2fr;
}

.wheel-zone {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 16, 40, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}

.wheel-wrap {
  width: min(500px, 86vw);
}

.wheel {
  border: 8px solid #191a1f;
  background:
    conic-gradient(
      from 0deg,
      #d71932 0 30deg,
      #18191d 30deg 60deg,
      #c4142c 60deg 90deg,
      #18191d 90deg 120deg,
      #098458 120deg 150deg,
      #d71932 150deg 180deg,
      #18191d 180deg 210deg,
      #c4142c 210deg 240deg,
      #18191d 240deg 270deg,
      #d71932 270deg 300deg,
      #18191d 300deg 330deg,
      #c4142c 330deg 360deg
    );
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.13),
    inset 0 0 0 19px rgba(0, 0, 0, 0.14),
    inset 0 0 36px rgba(0, 0, 0, 0.56),
    0 24px 54px rgba(0, 0, 0, 0.46);
}

.wheel::after {
  inset: 16px;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.slot {
  width: 34px;
  height: 34px;
  margin: -17px;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
}

.slot:nth-child(1) { transform: rotate(15deg) translateY(-205px) rotate(-15deg); }
.slot:nth-child(2) { transform: rotate(45deg) translateY(-205px) rotate(-45deg); }
.slot:nth-child(3) { transform: rotate(75deg) translateY(-205px) rotate(-75deg); }
.slot:nth-child(4) { transform: rotate(105deg) translateY(-205px) rotate(-105deg); }
.slot:nth-child(5) { transform: rotate(135deg) translateY(-205px) rotate(-135deg); }
.slot:nth-child(6) { transform: rotate(165deg) translateY(-205px) rotate(-165deg); }
.slot:nth-child(7) { transform: rotate(195deg) translateY(-205px) rotate(-195deg); }
.slot:nth-child(8) { transform: rotate(225deg) translateY(-205px) rotate(-225deg); }
.slot:nth-child(9) { transform: rotate(255deg) translateY(-205px) rotate(-255deg); }
.slot:nth-child(10) { transform: rotate(285deg) translateY(-205px) rotate(-285deg); }
.slot:nth-child(11) { transform: rotate(315deg) translateY(-205px) rotate(-315deg); }
.slot:nth-child(12) { transform: rotate(345deg) translateY(-205px) rotate(-345deg); }

.pointer {
  border-top-color: #ff1028;
  filter: drop-shadow(0 0 14px rgba(255, 16, 40, 0.9));
}

.ball {
  background: radial-gradient(circle at 35% 35%, #fff, #dfe4ef 45%, #747b8d);
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.9),
    0 0 24px rgba(255, 16, 40, 0.55);
}

.wheel-center {
  inset: 34%;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 45% 36%, rgba(255, 255, 255, 0.12), transparent 28%),
    radial-gradient(circle, #24262c, #0d0e12 72%);
}

.wheel-center span {
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 16, 40, 0.35);
}

.amount-row {
  gap: 8px;
}

.amount-step {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 7px;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.07);
}

.amount-step:hover {
  color: #fff;
  background: rgba(255, 16, 40, 0.2);
}

.balance-bets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.balance-bets button {
  min-width: 0;
  min-height: 36px;
  padding: 0 6px;
  color: #dfe2e9;
  font-size: 12px;
}

#lastNumbers {
  display: flex;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  overflow: hidden;
}

#lastNumbers .mini-number {
  display: inline-flex;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 1;
}

.friends-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 58px 0 76px;
}

.friends-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 26px;
}

.friends-head .lead {
  max-width: 610px;
}

.friend-search,
.friends-sidebar,
.chat-panel {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)), rgba(4, 5, 8, 0.72);
}

.friend-search {
  padding: 18px;
}

.friend-search label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.friend-search > div:not(.friend-results) {
  display: flex;
  gap: 8px;
}

.friend-search input {
  min-width: 0;
  flex: 1;
}

.friend-search .primary-button,
.message-form .primary-button {
  min-height: 44px;
  padding-inline: 16px;
}

.friend-results {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.friends-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  min-height: 570px;
  gap: 18px;
}

.friends-sidebar {
  padding: 12px;
}

.friends-group {
  padding: 9px 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.friends-group:last-child {
  border-bottom: 0;
}

.friends-group h2 {
  margin: 0;
  font-size: 14px;
}

.friends-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 8px;
}

.friends-group-head span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  background: rgba(255, 16, 40, 0.75);
}

.outgoing-group > h2 {
  padding: 0 6px 8px;
}

.friend-list {
  display: grid;
  gap: 6px;
}

.friend-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 6px;
}

.friend-item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-avatar {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 16, 40, 0.58);
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(135deg, #d5152d, #4a080f);
}

.friend-avatar-image,
.friend-avatar {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.friend-avatar-image { object-fit: cover; }
.friend-item [hidden] { display: none !important; }

.friend-button {
  cursor: pointer;
}

.friend-button:hover,
.friend-button.active {
  border-color: rgba(255, 16, 40, 0.5);
  background: rgba(255, 16, 40, 0.1);
}

.friend-actions {
  display: flex;
  gap: 5px;
  margin-left: auto;
}

.mini-action {
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  color: var(--text);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
}

.mini-action.accept {
  border-color: rgba(255, 16, 40, 0.65);
  background: rgba(255, 16, 40, 0.75);
}

.search-result {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.suggestions-label {
  margin: 3px 2px 6px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.search-result img,
.search-result .friend-avatar {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.search-user-copy {
  min-width: 0;
}

.search-user-copy strong,
.search-user-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-user-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.search-result .mini-action,
.request-note {
  margin-left: auto;
}

.request-note,
.empty-friends {
  color: var(--muted);
  font-size: 12px;
}

.empty-friends {
  margin: 6px;
  line-height: 1.45;
}

.chat-panel {
  display: grid;
  min-width: 0;
  min-height: 570px;
  height: min(680px, calc(100svh - 150px));
  overflow: hidden;
}

.chat-empty {
  display: grid;
  place-content: center;
  padding: 30px;
  text-align: center;
}

.chat-empty h2 {
  margin: 16px 0 6px;
}

.chat-empty p {
  margin: 0;
  color: var(--muted);
}

.chat-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 16, 40, 0.7);
  border-radius: 50%;
  color: #fff;
  font-size: 25px;
  font-weight: 900;
  background: rgba(255, 16, 40, 0.12);
}

.chat-content {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.chat-panel [hidden] {
  display: none !important;
}

.chat-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.chat-header span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.chat-header h2 {
  margin: 3px 0 0;
  font-size: 20px;
}

.chat-person {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.chat-person img,
.chat-avatar-fallback {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.chat-person img { object-fit: cover; }
.chat-avatar-fallback { display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 800; background: #84101d; }
.chat-person [hidden] { display: none !important; }
.chat-person > div { min-width: 0; }
.chat-person h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-person small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }

.message-list {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px;
}

.message {
  align-self: flex-start;
  max-width: min(76%, 520px);
  padding: 9px 11px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.message.own {
  align-self: flex-end;
  border-color: rgba(255, 16, 40, 0.5);
  background: rgba(255, 16, 40, 0.14);
}

.message p {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.message time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.empty-chat {
  margin: auto;
  color: var(--muted);
  text-align: center;
}

.message-form {
  display: flex;
  gap: 9px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.16);
}

.message-form textarea {
  min-height: 46px;
  max-height: 112px;
  flex: 1;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: var(--text);
  line-height: 1.35;
  resize: none;
  background: rgba(255, 255, 255, 0.055);
  transition: border-color 160ms ease, background 160ms ease;
}

.message-form textarea::placeholder { color: #7f8592; }
.message-form textarea:focus { border-color: rgba(255, 16, 40, 0.72); background: rgba(255, 16, 40, 0.06); }
.message-form .primary-button { min-width: 112px; min-height: 46px; }

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

.play-with-friend {
  margin-left: auto;
}

.multiplayer-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 56px 0 76px;
}

.multiplayer-head,
.lobby-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.lobby-shell {
  min-height: 580px;
  margin-top: 24px;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(18, 19, 24, 0.94), rgba(5, 6, 9, 0.94));
}

.lobby-empty,
.lobby-waiting {
  display: grid;
  min-height: 500px;
  place-content: center;
  text-align: center;
}

.lobby-shell [hidden] {
  display: none !important;
}

.lobby-empty h2,
.lobby-waiting h2 {
  margin: 16px 0 6px;
}

.lobby-empty p,
.lobby-waiting p {
  max-width: 400px;
  margin: 0;
  color: var(--muted);
}

#lobbySetup {
  max-width: 820px;
  margin: 80px auto;
}

#lobbySetup h2 {
  margin: 8px 0 26px;
  font-size: clamp(28px, 4vw, 48px);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mode-choice {
  display: grid;
  min-height: 188px;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
}

.mode-choice:hover {
  border-color: rgba(255, 16, 40, 0.6);
  background: rgba(255, 16, 40, 0.09);
}

.mode-choice strong {
  font-size: 24px;
}

.mode-choice span {
  color: var(--muted);
  line-height: 1.5;
}

.lobby-status {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.lobby-status span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.lobby-status strong {
  font-size: 22px;
}

.lobby-grid {
  display: grid;
  min-height: 420px;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  padding-top: 18px;
}

.lobby-wheel-card,
.lobby-score,
.lobby-feed {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.lobby-wheel-card {
  display: grid;
  place-items: center;
  align-content: center;
  padding: 28px;
}

.lobby-wheel-wrap {
  width: min(500px, 100%);
}

.lobby-wheel-card .wheel-center {
  inset: 34%;
}

.lobby-result {
  display: grid;
  width: min(220px, 48vw);
  aspect-ratio: 1;
  place-content: center;
  border: 8px solid #1a1b20;
  border-radius: 50%;
  text-align: center;
  background: conic-gradient(#d71932 0 30deg, #191a1e 30deg 60deg, #c4142c 60deg 90deg, #191a1e 90deg 120deg, #098458 120deg 150deg, #d71932 150deg 180deg, #191a1e 180deg 210deg, #c4142c 210deg 240deg, #191a1e 240deg 270deg, #d71932 270deg 300deg, #191a1e 300deg 330deg, #c4142c 330deg);
  box-shadow: inset 0 0 0 34px #111217, 0 20px 44px rgba(0, 0, 0, 0.36);
}

.lobby-result span {
  font-size: 56px;
  font-weight: 900;
}

.lobby-result strong {
  color: #d9dce2;
  font-size: 12px;
}

.lobby-turn {
  margin: 20px 0 13px;
  color: var(--muted);
}

.lobby-bet-controls {
  display: grid;
  width: min(430px, 100%);
  gap: 9px;
}

.lobby-colors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.lobby-color {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  color: #fff;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
}

.lobby-color.active.red { background: rgba(215, 25, 50, 0.72); }
.lobby-color.active.black { background: #1a1b20; }
.lobby-color.active.zero { background: rgba(9, 132, 88, 0.72); }

.lobby-side {
  display: grid;
  min-height: 0;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}

.lobby-score,
.lobby-feed {
  padding: 17px;
}

.lobby-score h2,
.lobby-feed h2 {
  margin: 0 0 12px;
  font-size: 15px;
}

.lobby-player-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 3px 8px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lobby-player-row img,
.lobby-player-chip img,
.lobby-player-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.lobby-player-avatar { display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; background: #84101d; }
.lobby-player-row [hidden],
.lobby-player-chip [hidden] { display: none !important; }
.lobby-player-row strong { min-width: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.lobby-player-row span { grid-column: 2; color: var(--muted); font-size: 11px; }
.lobby-player-row em { grid-column: 3; grid-row: 1 / span 2; align-self: center; color: #ff7584; font-size: 11px; font-style: normal; }

.lobby-feed { overflow: auto; }
.lobby-feed p { margin: 0; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); color: var(--muted); font-size: 12px; }

.lobby-summary {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 16, 40, 0.4);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 16, 40, 0.1);
}

.lobby-status-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lobby-overview {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.lobby-overview-main,
.lobby-player-chip {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.lobby-overview-main span,
.lobby-player-chip span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.lobby-overview-main strong {
  display: block;
  margin-top: 4px;
  font-size: 21px;
}

.lobby-player-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lobby-player-chip { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 8px; }
.lobby-player-chip strong { display: block; margin-bottom: 4px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

.lobby-result-note {
  min-height: 18px;
  margin: -6px 0 13px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.lobby-amount-row {
  display: flex;
  height: 46px;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.2);
}

.lobby-amount-row button,
.lobby-quick-bets button {
  min-height: 30px;
  border: 0;
  border-radius: 4px;
  color: var(--text);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
}

.lobby-amount-row button { flex: 0 0 43px; }
.lobby-amount-row span { color: var(--muted); font-size: 11px; }
.lobby-amount-row input { min-width: 0; text-align: center; }
.lobby-quick-bets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.lobby-quick-bets button { min-width: 0; min-height: 34px; padding: 0 4px; }
.lobby-amount-row button:hover,
.lobby-quick-bets button:hover { background: rgba(255, 16, 40, 0.22); }
.lobby-amount-row button:disabled,
.lobby-quick-bets button:disabled { cursor: default; opacity: 0.45; }

.winner-tape {
  display: grid;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 58px;
  grid-template-columns: 0.34fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 18px 22px;
  border-block: 1px solid rgba(255, 255, 255, 0.12);
}

.winner-tape h2 { margin: 4px 0 0; font-size: 20px; }
.winner-tape .kicker { margin: 0; }

.winner-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.winner-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.11);
}

.winner-item img,
.winner-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.winner-avatar {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: #b91527;
}

.winner-item [hidden] {
  display: none !important;
}

.winner-item strong,
.winner-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.winner-item strong { font-size: 12px; }
.winner-item small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.winner-item em { color: #ff6677; font-size: 11px; font-style: normal; white-space: nowrap; }

.profile-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 58px 0 76px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-head h1 { margin: 5px 0 2px; }
.profile-head .kicker { margin: 0; }
.profile-handle { margin: 0; color: var(--muted); }

.profile-avatar-wrap { position: relative; flex: 0 0 88px; width: 88px; height: 88px; }
.profile-avatar,
.profile-avatar-fallback { width: 100%; height: 100%; border-radius: 50%; }
.profile-avatar { object-fit: cover; }
.profile-avatar-fallback { display: grid; place-items: center; border: 1px solid rgba(255, 16, 40, 0.7); color: #fff; font-size: 30px; font-weight: 900; background: #8d1020; }
.profile-avatar-wrap [hidden] { display: none !important; }

.avatar-upload {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  height: 31px;
  place-items: center;
  overflow: hidden;
  border-radius: 0 0 44px 44px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  background: rgba(4, 5, 8, 0.72);
  transition: opacity 160ms ease;
}

.profile-avatar-wrap:hover .avatar-upload,
.profile-avatar-wrap:focus-within .avatar-upload { opacity: 1; }

.avatar-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.profile-balance { margin-left: auto; text-align: right; }
.profile-balance span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.profile-balance strong { font-size: 24px; }

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.72fr;
  gap: 16px;
  margin-top: 24px;
}

.profile-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.profile-card h2 { margin: 0 0 18px; font-size: 18px; }
.profile-card .field { margin-bottom: 14px; }
.profile-card .primary-button,
.profile-card .secondary-button { width: 100%; }

.profile-stats { display: grid; grid-template-columns: 1fr; align-content: start; gap: 12px; }
.profile-stats div { padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.profile-stats span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.profile-stats strong { display: block; margin-top: 4px; font-size: 19px; }

.profile-details { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 16px; margin-top: 16px; }
.profile-details .section-head { margin-bottom: 12px; }
.profile-details .section-head h2 { margin: 0; }

.profile-friends { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.profile-friend { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 7px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; }
.profile-friend img,
.tiny-avatar { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.tiny-avatar { display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; background: #84101d; }
.profile-friend strong,
.profile-friend small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-friend strong { font-size: 12px; }
.profile-friend small { color: var(--muted); font-size: 10px; }

.profile-history { display: grid; }
.profile-history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.profile-history-row strong,
.profile-history-row small { display: block; }
.profile-history-row small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.profile-history-row em { color: #ff6c7d; font-size: 13px; font-style: normal; white-space: nowrap; }

.pick {
  position: relative;
  overflow: hidden;
}

.pick::after {
  position: absolute;
  inset: auto -20% -45% auto;
  width: 88px;
  height: 88px;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.pick.red.active,
.pick.black.active,
.pick.zero.active {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 28px rgba(255, 16, 40, 0.28);
}

.spin-button {
  min-height: 66px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cash-page {
  min-height: calc(100svh - 150px);
}

.checkout-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 16, 40, 0.16), transparent 18rem),
    linear-gradient(145deg, rgba(18, 18, 22, 0.96), rgba(3, 3, 5, 0.96));
}

.auth-card {
  border-color: rgba(255, 16, 40, 0.36);
}

@media (max-width: 980px) {
  .cinema-hero,
  .promo-strip {
    grid-template-columns: 1fr;
  }

  .logo-stage {
    min-height: 420px;
  }
}

/* Cash challenge and profile workspace. */
[hidden] { display: none !important; }

[data-page="deposit"] {
  background: #060608;
}

[data-page="deposit"] .cash-page {
  width: min(1160px, calc(100% - 40px));
  min-height: calc(100svh - 145px);
  grid-template-columns: minmax(300px, 0.72fr) minmax(480px, 1.28fr);
  align-items: center;
  gap: 70px;
  padding-block: 62px;
}

[data-page="deposit"] .cash-hero .page-title {
  max-width: 520px;
  margin-block: 9px 16px;
  font-size: 58px;
  line-height: 0.96;
}

[data-page="deposit"] .cash-hero .lead { max-width: 420px; font-size: 16px; }
[data-page="deposit"] .balance-box { margin-top: 38px; }

.deposit-challenge {
  position: relative;
  display: grid;
  gap: 22px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #0c0c0f;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
}

.deposit-challenge::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, #ff1738 42%, transparent 84%);
}

.challenge-head,
.challenge-meta,
.challenge-amount > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.challenge-head .kicker { margin: 0 0 5px; color: #ff5a70; }
.challenge-head h2 { margin: 0; font-size: 26px; }
.challenge-score { display: flex; gap: 7px; }
.challenge-score span {
  width: 26px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.challenge-score span.active { border-color: #ff1738; background: #ff1738; box-shadow: 0 0 18px rgba(255, 23, 56, 0.62); }

.challenge-amount label { display: block; margin-bottom: 8px; color: #8f939d; font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; }
.challenge-amount > div {
  min-height: 64px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}
.challenge-amount input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 850;
  background: transparent;
  outline: 0;
}
.challenge-amount input:disabled { opacity: 0.74; }
.challenge-amount > div span { color: #8f939d; font-size: 12px; text-transform: uppercase; }

.challenge-arena {
  padding: 28px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #070709;
  background-size: 32px 100%;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.challenge-arena.hit { border-color: rgba(65, 219, 151, 0.68); box-shadow: inset 0 0 34px rgba(65, 219, 151, 0.08); }
.challenge-arena.miss { border-color: rgba(255, 23, 56, 0.58); box-shadow: inset 0 0 34px rgba(255, 23, 56, 0.08); }
.challenge-arena.complete { border-color: rgba(65, 219, 151, 0.85); }

.challenge-track {
  position: relative;
  height: 64px;
  margin-inline: 5px;
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}
.challenge-track::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.18);
}
.challenge-target {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 40%;
  width: 18%;
  border: 1px solid rgba(255, 23, 56, 0.72);
  background: rgba(255, 23, 56, 0.13);
  box-shadow: 0 0 30px rgba(255, 23, 56, 0.18);
}
.challenge-marker {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  z-index: 2;
  width: 3px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 9px #fff, 0 0 22px rgba(255, 255, 255, 0.7);
}
.challenge-marker::after {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 9px;
  height: 9px;
  content: "";
  transform: translateX(-50%) rotate(45deg);
  background: #fff;
}
.challenge-meta { margin-top: 14px; color: #9a9da7; font-size: 11px; }
.challenge-meta strong { color: #fff; font-size: 11px; }
.challenge-button { width: 100%; min-height: 56px; }

[data-page="profile"] { background: #060608; }

.profile-v2 {
  width: min(1220px, calc(100% - 40px));
  padding-block: 48px 74px;
}

.profile-v2 .profile-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  padding: 28px 0 34px;
  border-top: 1px solid rgba(255, 23, 56, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.13);
}
.profile-identity { display: flex; min-width: 0; align-items: center; gap: 20px; }
.profile-v2 .profile-avatar-wrap { flex-basis: 104px; width: 104px; height: 104px; }
.profile-v2 .profile-avatar,
.profile-v2 .profile-avatar-fallback { border-radius: 4px; }
.profile-v2 .profile-avatar-fallback { font-size: 38px; background: #991126; }
.profile-v2 .avatar-upload { height: 34px; border-radius: 0; background: rgba(5, 5, 7, 0.82); }
.profile-v2 .profile-head h1 {
  max-width: 560px;
  margin: 4px 0 4px;
  overflow: hidden;
  font-size: 48px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-v2 .profile-handle { font-size: 14px; }

.profile-summary {
  display: grid;
  min-width: 420px;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  align-self: stretch;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.profile-summary > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding-left: 24px;
}
.profile-summary > div + div { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.profile-summary span { color: #8f939e; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
.profile-summary strong { margin-top: 7px; overflow: hidden; color: #fff; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.profile-summary .profile-balance { margin: 0; text-align: left; }
.profile-summary .profile-balance strong { font-size: 24px; }

.profile-workspace {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 18px;
  margin-top: 20px;
}
.profile-settings,
.profile-activity { display: grid; align-content: start; gap: 18px; }
.profile-v2 .profile-card {
  position: relative;
  padding: 24px;
  border-radius: 4px;
  background: #0b0b0e;
}
.profile-v2 .profile-card h2 { margin: 3px 0 22px; font-size: 21px; }
.profile-card-index { margin: 0; color: #ff5369; font-size: 9px; font-weight: 800; letter-spacing: 0.14em; }
.profile-v2 .profile-card input { min-height: 48px; background: #070709; }
.profile-v2 .profile-card .primary-button,
.profile-v2 .profile-card .secondary-button { min-height: 48px; }
.profile-v2 .section-head { align-items: flex-start; }
.profile-v2 .section-head h2 { margin-bottom: 0; }
.profile-friends-section { min-height: 180px; }
.profile-v2 .profile-friends { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-v2 .profile-friend { min-height: 52px; border-radius: 3px; background: #070709; }
.profile-v2 .profile-friend [hidden] { display: none !important; }
.profile-v2 .profile-history-row { min-height: 56px; }
.profile-v2 .profile-history-row:first-child { border-top: 0; }

@media (max-width: 900px) {
  [data-page="deposit"] .cash-page { grid-template-columns: 1fr; gap: 28px; }
  [data-page="deposit"] .cash-hero .page-title { font-size: 46px; }
  [data-page="deposit"] .balance-box { margin-top: 20px; }
  .profile-v2 .profile-head { grid-template-columns: 1fr; }
  .profile-summary { min-width: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); border-left: 0; }
  .profile-summary > div { padding: 20px 16px 0 0; }
  .profile-workspace { grid-template-columns: 1fr; }
  .profile-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  [data-page="deposit"] .cash-page {
    width: calc(100% - 20px);
    gap: 18px;
    padding-block: 24px 38px;
  }
  [data-page="deposit"] .cash-hero .page-title { margin-block: 6px 10px; font-size: 32px; }
  [data-page="deposit"] .cash-hero .lead { font-size: 13px; }
  [data-page="deposit"] .balance-box { margin-top: 14px; }
  [data-page="deposit"] .limit-meter { margin-top: 12px; }
  .deposit-challenge { gap: 15px; padding: 16px; }
  .challenge-head h2 { font-size: 21px; }
  .challenge-score span { width: 20px; }
  .challenge-amount > div { min-height: 52px; padding-inline: 13px; }
  .challenge-amount input { font-size: 23px; }
  .challenge-arena { padding: 20px 12px 13px; }
  .challenge-track { height: 56px; }
  .challenge-meta { font-size: 10px; }
  .challenge-button { min-height: 50px; }

  .profile-v2 { width: calc(100% - 20px); padding-block: 24px 40px; }
  .profile-v2 .profile-head { gap: 20px; padding: 18px 0 22px; }
  .profile-identity { gap: 13px; }
  .profile-v2 .profile-avatar-wrap { flex-basis: 74px; width: 74px; height: 74px; }
  .profile-v2 .profile-head h1 { max-width: 220px; font-size: 29px; }
  .profile-v2 .profile-handle { font-size: 12px; }
  .profile-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-summary > div { padding: 14px 8px 0; }
  .profile-summary > div:first-child { padding-left: 0; }
  .profile-summary strong,
  .profile-summary .profile-balance strong { font-size: 15px; }
  .profile-workspace { gap: 10px; margin-top: 12px; }
  .profile-settings { grid-template-columns: 1fr; gap: 10px; }
  .profile-activity { gap: 10px; }
  .profile-v2 .profile-card { padding: 16px; }
  .profile-v2 .profile-card h2 { margin-bottom: 16px; font-size: 18px; }
  .profile-v2 .profile-friends { grid-template-columns: 1fr; }
  .profile-v2 .avatar-upload { opacity: 1; }
}

/* Landing 2026: isolated from the application screens. */
[data-page="landing"] {
  --landing-red: #ff1738;
  --landing-red-hot: #ff5268;
  --landing-ink: #050507;
  --landing-surface: #0b0b0e;
  --landing-line: rgba(255, 255, 255, 0.13);
  background: #050507;
}

[data-page="landing"]::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.44;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 74%);
}

[data-page="landing"] .noise { opacity: 0.055; }

[data-page="landing"] .landing-topbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  min-height: 84px;
  padding: 14px max(32px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(22px) saturate(1.25);
}

[data-page="landing"] .landing-topbar .brand-logo {
  width: 48px;
  height: 48px;
}

[data-page="landing"] .landing-topbar .brand strong { font-size: 17px; }
[data-page="landing"] .landing-topbar .brand small { font-size: 10px; }
[data-page="landing"] .landing-topbar nav:not(.mobile-menu) { flex: 0 1 auto; }
[data-page="landing"] .landing-topbar nav:not(.mobile-menu) a { color: #b9bbc3; }
[data-page="landing"] .landing-topbar nav:not(.mobile-menu) a:hover { color: #fff; }

.mobile-menu-button,
.mobile-menu { display: none; }

.account-dock {
  display: flex;
  align-items: center;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.account-copy { text-align: right; }
.account-copy strong,
.account-copy small { display: block; }
.account-copy strong { max-width: 132px; overflow: hidden; color: #fff; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-copy small { margin-top: 2px; color: #9297a3; font-size: 10px; }
.account-avatar {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 23, 56, 0.66);
  border-radius: 50%;
  color: #fff;
  background: #a90e24;
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-avatar b { font-size: 14px; }

[data-page="landing"] .landing-main { overflow: clip; }

[data-page="landing"] .redline-hero {
  --pointer-x: 70%;
  --pointer-y: 40%;
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(360px, 0.9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: 30px;
  overflow: hidden;
  padding: 132px max(32px, calc((100vw - 1320px) / 2)) 122px;
  isolation: isolate;
  border-bottom: 1px solid var(--landing-line);
  background: #050507;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(600px) rotateX(58deg) scale(1.4) translateY(25%);
  transform-origin: bottom;
  mask-image: linear-gradient(to bottom, transparent 4%, #000 54%, transparent 97%);
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(circle 360px at var(--pointer-x) var(--pointer-y), rgba(255, 23, 56, 0.2), transparent 72%);
  transition: background-position 90ms linear;
}

[data-page="landing"] .hero-frame {
  z-index: 5;
  width: min(610px, 100%);
}

[data-page="landing"] .hero-frame .kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #d7d8dd;
  font-size: 10px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--landing-red);
  box-shadow: 0 0 0 5px rgba(255, 23, 56, 0.12), 0 0 16px rgba(255, 23, 56, 0.8);
  animation: landing-pulse 1.8s ease-in-out infinite;
}

[data-page="landing"] .hero-frame h1 {
  max-width: 690px;
  font-size: 78px;
  line-height: 0.9;
  text-wrap: balance;
}

[data-page="landing"] .hero-frame h1 span {
  color: #fff;
  text-shadow: 0 0 42px rgba(255, 23, 56, 0.18);
}

[data-page="landing"] .hero-statement {
  max-width: 500px;
  margin: 28px 0 30px;
  color: #a8abb5;
  font-size: 16px;
}

[data-page="landing"] .hero-actions { display: flex; align-items: center; gap: 24px; }
[data-page="landing"] .hero-primary { min-width: 245px; justify-content: space-between; gap: 24px; }
[data-page="landing"] .hero-primary b,
[data-page="landing"] .landing-closing .link-button b { font-size: 20px; font-weight: 400; transition: transform 180ms ease; }
[data-page="landing"] .hero-primary:hover b,
[data-page="landing"] .landing-closing .link-button:hover b { transform: translateX(5px); }
[data-page="landing"] .landing-text-link {
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0;
  color: #d7d8dd;
  background: transparent;
}

.hero-machine {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  z-index: 2;
  width: min(620px, 46vw);
  aspect-ratio: 1;
  justify-self: end;
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 170ms ease-out;
}

.hero-machine::before,
.hero-machine::after {
  position: absolute;
  inset: 8%;
  z-index: -1;
  border: 1px solid rgba(255, 23, 56, 0.18);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 90px rgba(255, 23, 56, 0.14), inset 0 0 70px rgba(255, 23, 56, 0.08);
}
.hero-machine::after { inset: 20%; border-color: rgba(255, 255, 255, 0.1); }

.hero-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-ring-outer {
  inset: 1%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-top: 2px solid rgba(255, 23, 56, 0.92);
  border-right-color: rgba(255, 23, 56, 0.42);
  animation: landing-spin 18s linear infinite;
}
.hero-ring-inner {
  inset: 15%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  animation: landing-spin-back 26s linear infinite;
}

[data-page="landing"] .hero-emblem {
  position: absolute;
  top: 50%;
  right: auto;
  left: 50%;
  width: 62%;
  max-width: none;
  transform: translate(-50%, -50%) translateZ(55px);
  opacity: 0.96;
  filter: drop-shadow(0 0 24px rgba(255, 23, 56, 0.32));
  animation: emblem-float 5s ease-in-out infinite;
}

.number-track {
  position: absolute;
  inset: 0;
  animation: landing-spin 34s linear infinite;
}
.number-track span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dddfe5;
  font-size: 10px;
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 30deg)) translateY(-285px) rotate(calc(var(--i) * -30deg));
  background: rgba(6, 6, 8, 0.86);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.46);
}
.number-track span:nth-child(3n + 1) { border-color: rgba(255, 23, 56, 0.52); color: #ff6579; }
.number-track span:first-child { border-color: rgba(34, 202, 128, 0.72); color: #55e0a6; }

.machine-label {
  position: absolute;
  right: 5%;
  bottom: 8%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-left: 2px solid var(--landing-red);
  background: rgba(5, 5, 7, 0.82);
}
.machine-label span { color: #fff; font-size: 10px; font-weight: 900; letter-spacing: 0.16em; }
.machine-label strong { color: #888d98; font-size: 8px; letter-spacing: 0.12em; }

[data-page="landing"] .hero-livebar {
  right: max(32px, calc((100vw - 1320px) / 2));
  bottom: 22px;
  left: max(32px, calc((100vw - 1320px) / 2));
  grid-template-columns: repeat(3, minmax(0, 230px));
  justify-content: flex-start;
}
[data-page="landing"] .hero-livebar strong { font-size: 15px; }
.table-status { color: #50d59d !important; }

[data-page="landing"] .hero-scroll {
  right: max(32px, calc((100vw - 1320px) / 2));
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  writing-mode: horizontal-tb;
}
[data-page="landing"] .hero-scroll span { width: 38px; height: 1px; background: rgba(255, 255, 255, 0.4); }

[data-page="landing"] .winner-tape {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 34px 0;
  border-bottom: 1px solid var(--landing-line);
}

[data-page="landing"] .winner-list { gap: 1px; }
[data-page="landing"] .winner-item {
  min-height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0d;
  transition: border-color 180ms ease, transform 180ms ease;
}
[data-page="landing"] .winner-item:hover { z-index: 2; transform: translateY(-3px); border-color: rgba(255, 23, 56, 0.55); }

[data-page="landing"] .landing-intro {
  display: grid;
  width: min(1240px, calc(100% - 64px));
  grid-template-columns: 1fr 0.7fr;
  align-items: end;
  gap: 50px;
  margin: 110px auto 38px;
}
[data-page="landing"] .landing-intro .kicker { grid-column: 1 / -1; margin-bottom: -30px; }
[data-page="landing"] .landing-intro h2 { font-size: 52px; }
[data-page="landing"] .landing-intro > p:last-child { margin: 0; color: #969aa5; line-height: 1.65; }

[data-page="landing"] .landing-routes {
  width: min(1240px, calc(100% - 64px));
  gap: 1px;
  margin-bottom: 110px;
  background: rgba(255, 255, 255, 0.1);
}
[data-page="landing"] .landing-routes .route-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #0a0a0d;
  transition: background 250ms ease, transform 250ms ease;
}
[data-page="landing"] .landing-routes .route-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: var(--landing-red);
  transition: transform 260ms ease;
}
[data-page="landing"] .landing-routes .route-card:hover { z-index: 2; transform: translateY(-8px); background: #101014; }
[data-page="landing"] .landing-routes .route-card:hover::after { transform: scaleX(1); }
[data-page="landing"] .landing-routes .route-card i {
  position: absolute;
  top: 32px;
  right: 28px;
  color: rgba(255, 255, 255, 0.055);
  font-size: 112px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  transition: color 250ms ease, transform 250ms ease;
}
[data-page="landing"] .landing-routes .route-card:hover i { color: rgba(255, 23, 56, 0.14); transform: rotate(-6deg) scale(1.06); }

[data-page="landing"] .landing-closing {
  width: min(1240px, calc(100% - 64px));
  min-height: 310px;
}
[data-page="landing"] .landing-closing h2 { font-size: 58px; }
[data-page="landing"] footer { border-top: 1px solid var(--landing-line); background: #050507; }

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
.landing-routes [data-reveal]:nth-child(2) { transition-delay: 90ms; }
.landing-routes [data-reveal]:nth-child(3) { transition-delay: 180ms; }

@keyframes landing-spin { to { transform: rotate(360deg); } }
@keyframes landing-spin-back { to { transform: rotate(-360deg); } }
@keyframes emblem-float {
  0%, 100% { margin-top: -5px; }
  50% { margin-top: 7px; }
}
@keyframes landing-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@media (max-width: 980px) {
  [data-page="landing"] .redline-hero { grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.8fr); }
  [data-page="landing"] .hero-frame h1 { font-size: 62px; }
  .hero-machine { width: min(520px, 48vw); }
  .number-track span { transform: translate(-50%, -50%) rotate(calc(var(--i) * 30deg)) translateY(-238px) rotate(calc(var(--i) * -30deg)); }
}

@media (max-width: 760px) {
  [data-page="landing"] { background: #060608; }
  [data-page="landing"]::before { display: none; }
  [data-page="landing"].menu-open { overflow: hidden; }

  [data-page="landing"] .landing-topbar {
    position: fixed;
    display: grid;
    min-height: 64px;
    grid-template-columns: 42px minmax(0, 1fr) minmax(78px, auto);
    gap: 8px;
    padding: 8px 12px;
    background: rgba(5, 5, 7, 0.92);
  }
  [data-page="landing"] .landing-topbar > nav:not(.mobile-menu) { display: none !important; }
  [data-page="landing"] .landing-topbar .brand { justify-self: center; gap: 7px; }
  [data-page="landing"] .landing-topbar .brand-logo { width: 38px; height: 38px; }
  [data-page="landing"] .landing-topbar .brand strong { font-size: 13px; letter-spacing: 0.08em; }
  [data-page="landing"] .landing-topbar .brand small { display: block; margin-top: 0; font-size: 7px; letter-spacing: 0.27em; }

  .mobile-menu-button {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 11px;
    align-content: center;
    gap: 5px;
    border: 0;
    color: #fff;
    background: transparent;
  }
  .mobile-menu-button span { display: block; width: 20px; height: 1px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
  .mobile-menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .mobile-menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mobile-menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  [data-page="landing"] .account-dock { justify-self: end; gap: 7px; }
  [data-page="landing"] .header-account-link,
  [data-page="landing"] .header-account-create { min-height: 32px; font-size: 9px; letter-spacing: 0; }
  [data-page="landing"] .header-account-create { font-size: 8px; }
  [data-page="landing"] .account-copy { display: none; }
  [data-page="landing"] #logoutButton { display: none; }
  [data-page="landing"] .account-avatar { width: 38px; height: 38px; }

  [data-page="landing"] .mobile-menu {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 49;
    display: grid;
    align-content: start;
    gap: 0;
    padding: 34px 20px;
    background: rgba(5, 5, 7, 0.98);
    backdrop-filter: blur(24px);
  }
  [data-page="landing"] .mobile-menu[hidden] { display: none !important; }
  [data-page="landing"] .mobile-menu a {
    display: flex;
    min-height: 68px;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
  }
  [data-page="landing"] .mobile-menu a span { color: var(--landing-red); font-size: 9px; letter-spacing: 0.12em; }

  [data-page="landing"] .redline-hero {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    justify-content: flex-start;
    padding: 98px 16px 18px;
  }
  .hero-grid { background-size: 44px 44px; opacity: 0.46; }
  .hero-spotlight { display: none; }
  [data-page="landing"] .hero-frame { order: 1; }
  [data-page="landing"] .hero-frame .kicker { margin-bottom: 14px; font-size: 8px; }
  [data-page="landing"] .hero-frame h1 { max-width: 360px; font-size: 43px; line-height: 0.93; }
  [data-page="landing"] .hero-statement { max-width: 340px; margin: 14px 0 17px; font-size: 13px; line-height: 1.45; }
  [data-page="landing"] .hero-actions { gap: 12px; }
  [data-page="landing"] .hero-primary { min-width: 0; width: auto; min-height: 46px; flex: 1; padding-inline: 16px; font-size: 10px; }
  [data-page="landing"] .landing-text-link { min-height: 36px; font-size: 9px; }

  .hero-machine {
    order: 2;
    width: min(310px, 78vw);
    margin: 2px auto -2px;
    align-self: center;
  }
  .hero-ring-outer { animation-duration: 28s; }
  .hero-ring-inner { animation: none; }
  .number-track { animation-duration: 48s; }
  .number-track span { width: 28px; height: 28px; font-size: 8px; }
  .number-track span { transform: translate(-50%, -50%) rotate(calc(var(--i) * 30deg)) translateY(-140px) rotate(calc(var(--i) * -30deg)); }
  .machine-label { display: none; }
  [data-page="landing"] .hero-emblem { width: 59%; filter: drop-shadow(0 0 14px rgba(255, 23, 56, 0.28)); animation: none; }

  [data-page="landing"] .hero-livebar {
    position: static;
    order: 3;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    margin-top: auto;
    padding-top: 10px;
  }
  [data-page="landing"] .hero-livebar div { padding: 8px 7px 0; }
  [data-page="landing"] .hero-livebar div:first-child { padding-left: 0; }
  [data-page="landing"] .hero-livebar span { font-size: 7px; }
  [data-page="landing"] .hero-livebar strong { font-size: 11px; }
  [data-page="landing"] .hero-scroll { display: none; }

  [data-page="landing"] .winner-tape {
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: 26px 0 34px;
  }
  [data-page="landing"] .winner-tape h2 { font-size: 20px; }
  [data-page="landing"] .winner-list { gap: 7px; scroll-snap-type: x mandatory; }
  [data-page="landing"] .winner-item { min-width: 210px; scroll-snap-align: start; }

  [data-page="landing"] .landing-intro {
    display: block;
    width: calc(100% - 32px);
    margin: 64px auto 22px;
  }
  [data-page="landing"] .landing-intro .kicker { margin: 0 0 11px; }
  [data-page="landing"] .landing-intro h2 { font-size: 31px; }
  [data-page="landing"] .landing-intro > p:last-child { margin-top: 17px; font-size: 13px; }

  [data-page="landing"] .landing-routes { width: calc(100% - 32px); gap: 8px; margin-bottom: 60px; background: transparent; }
  [data-page="landing"] .landing-routes .route-card { min-height: 190px; padding: 20px; border: 1px solid rgba(255, 255, 255, 0.1); }
  [data-page="landing"] .landing-routes .route-card i { top: 18px; right: 18px; font-size: 76px; }
  [data-page="landing"] .landing-routes .route-card h2 { font-size: 24px; }

  [data-page="landing"] .landing-closing {
    width: calc(100% - 32px);
    min-height: 250px;
    margin-bottom: 38px;
  }
  [data-page="landing"] .landing-closing h2 { font-size: 34px; }
  [data-page="landing"] .landing-closing .link-button { width: 100%; justify-content: space-between; }
}

@media (max-width: 380px) {
  [data-page="landing"] .hero-frame h1 { font-size: 38px; }
  [data-page="landing"] .hero-statement { font-size: 12px; }
  [data-page="landing"] .hero-machine { width: min(270px, 74vw); }
  [data-page="landing"] .number-track span { transform: translate(-50%, -50%) rotate(calc(var(--i) * 30deg)) translateY(-122px) rotate(calc(var(--i) * -30deg)); }
  [data-page="landing"] .landing-text-link { max-width: 88px; line-height: 1.2; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  [data-page="landing"] *,
  [data-page="landing"] *::before,
  [data-page="landing"] *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .hero-metrics {
    position: static;
    grid-template-columns: 1fr;
    width: 100%;
    padding: 14px;
  }

  .logo-stage {
    min-height: auto;
  }

  .casino-ribbon {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .slot {
    width: 30px;
    height: 30px;
    margin: -15px;
    font-size: 12px;
  }

  .slot:nth-child(n) {
    transform: rotate(var(--angle, 0deg)) translateY(-39vw) rotate(calc(var(--angle, 0deg) * -1));
  }

  .slot:nth-child(1) { --angle: 15deg; }
  .slot:nth-child(2) { --angle: 45deg; }
  .slot:nth-child(3) { --angle: 75deg; }
  .slot:nth-child(4) { --angle: 105deg; }
  .slot:nth-child(5) { --angle: 135deg; }
  .slot:nth-child(6) { --angle: 165deg; }
  .slot:nth-child(7) { --angle: 195deg; }
  .slot:nth-child(8) { --angle: 225deg; }
  .slot:nth-child(9) { --angle: 255deg; }
  .slot:nth-child(10) { --angle: 285deg; }
  .slot:nth-child(11) { --angle: 315deg; }
  .slot:nth-child(12) { --angle: 345deg; }
}

@media (max-width: 760px) {
  body { overflow-x: hidden; }
  .multiplayer-page { width: min(100% - 24px, 680px); padding: 28px 0 46px; }
  .multiplayer-head,
  .lobby-status { align-items: flex-start; flex-direction: column; gap: 14px; }
  .multiplayer-head .header-action { align-self: flex-start; }
  .lobby-shell { min-height: 0; margin-top: 16px; padding: 16px; }
  .lobby-empty,
  .lobby-waiting { min-height: 330px; }
  #lobbySetup { margin: 28px auto; }
  #lobbySetup h2 { margin-bottom: 18px; font-size: 30px; }
  .mode-grid,
  .lobby-grid { grid-template-columns: 1fr; }
  .mode-choice { min-height: 132px; padding: 18px; }
  .mode-choice strong { font-size: 20px; }
  .lobby-grid { gap: 12px; padding-top: 12px; }
  .lobby-wheel-card { padding: 20px 14px; }
  .lobby-wheel-wrap { width: min(430px, 92vw); }
  .lobby-side { grid-template-rows: auto auto; gap: 12px; }
  .lobby-color { min-height: 44px; padding: 4px; font-size: 10px; }
  .lobby-status-actions { width: 100%; justify-content: space-between; gap: 12px; }
  .friends-layout { min-height: 0; gap: 12px; }
  .friends-sidebar,
  .chat-panel { min-height: 0; }
  .friends-sidebar { order: 1; }
  .chat-panel { order: 2; }
  .chat-panel { min-height: 520px; }
  .message-list { min-height: 260px; padding: 14px; }
  .message-form { padding: 10px; }
  .message-form .primary-button { padding-inline: 12px; }
  .friend-search { padding: 14px; }
  .friend-results { max-height: 290px; overflow-y: auto; }
  .search-result { align-items: center; }
  .search-result .mini-action { flex: 0 0 auto; margin-left: 6px; }
  .search-result .mini-action:disabled { opacity: 0.72; cursor: default; }
}

/* Phone-first layout pass */
@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; }
  body { min-width: 320px; }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    gap: 8px 12px;
    padding: 8px 12px;
  }

  .topbar nav {
    display: flex !important;
    gap: 18px;
    padding: 4px 0 1px;
  }

  .topbar nav a { padding: 7px 0; font-size: 10px; }
  .brand { gap: 7px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand strong { font-size: 14px; }
  .brand small { display: none; }
  .topbar .header-action { min-height: 30px; font-size: 10px; }
  .account-dock { gap: 10px; }

  footer { gap: 10px; padding: 20px 14px; font-size: 11px; }

  /* Main roulette: the bet is always before the wheel on a phone. */
  .app-shell {
    width: calc(100% - 20px);
    margin: 14px auto 30px;
    padding: 13px;
  }

  .table-head {
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }

  .table-head .kicker { display: none; }
  .table-head .page-title { font-size: 24px; line-height: 1; }
  .table-head .balance-box { width: auto; min-width: 108px; padding: 8px 10px; }
  .balance-box span { margin-bottom: 2px; font-size: 9px; }
  .balance-box strong { font-size: 17px; }
  .casino-ribbon { display: none; }
  .game-grid { gap: 10px; }
  .bet-panel { order: -1; gap: 10px; padding: 12px; }
  .account-chip { display: none; }
  .bet-panel .field label { margin-bottom: 5px; font-size: 11px; }
  .amount-row { height: 46px; padding: 0 9px; }
  .amount-step { min-width: 44px; min-height: 34px; font-size: 11px; }
  .balance-bets { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .balance-bets button { min-height: 34px; font-size: 11px; }
  .tool-row { display: none; }
  .color-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .pick { min-height: 58px; gap: 2px; padding: 7px 6px; text-align: center; }
  .pick span { font-size: 11px; }
  .pick strong { font-size: 17px; }
  .spin-button { min-height: 48px; font-size: 11px; }
  .bet-readout { min-height: 16px; font-size: 11px; }
  .wheel-zone { order: 1; min-height: 0; padding: 16px 10px 10px; }
  .wheel-wrap { width: min(310px, 82vw); }
  .wheel-center span { font-size: 42px; }
  .wheel-center strong { font-size: 10px; }
  .pointer { top: -6px; border-left-width: 13px; border-right-width: 13px; border-top-width: 31px; }
  .status-line { min-height: 0; margin-top: 12px; padding: 8px 4px 0; font-size: 11px; }
  .history-section { width: calc(100% - 20px); margin: 26px auto 36px; }
  .history-section .section-head { margin-bottom: 10px; }

  /* Landing: preserve the first action and remove empty vertical space. */
  .redline-hero { min-height: 560px; padding: 38px 16px 24px; }
  .hero-frame { margin-top: 0; }
  .hero-frame h1 { font-size: clamp(38px, 12vw, 54px); line-height: 0.94; }
  .hero-statement { max-width: 310px; margin: 16px 0 22px; font-size: 14px; }
  .hero-actions { gap: 12px; }
  .hero-actions .primary-button { min-height: 48px; }
  .hero-emblem { right: -44vw; bottom: 20px; width: 112vw; opacity: 0.3; }
  .hero-livebar { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: 100%; margin-top: auto; }
  .hero-livebar div { min-width: 0; padding: 9px 6px 0; }
  .hero-livebar span { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  .hero-livebar strong { font-size: 12px; }
  .winner-tape { width: calc(100% - 20px); grid-template-columns: 1fr; gap: 12px; margin: 28px auto 38px; padding: 14px 0; }
  .winner-tape h2 { font-size: 18px; }
  .winner-list { display: flex; overflow-x: auto; gap: 0; scrollbar-width: none; }
  .winner-item { min-width: 168px; }
  .landing-intro,
  .landing-routes,
  .landing-closing { width: calc(100% - 20px); }
  .landing-intro { margin: 0 auto 18px; }
  .landing-intro h2 { font-size: 28px; }
  .landing-routes { display: grid; gap: 8px; margin: 0 auto 34px; }
  .landing-routes .route-card { min-height: 154px; padding: 18px; }
  .landing-routes .route-card h2 { margin: 8px 0 4px; font-size: 22px; }
  .landing-routes .route-card p { min-height: 0; font-size: 12px; }
  .landing-routes .route-card b { margin-top: 10px; }
  .landing-closing { min-height: 210px; margin: 0 auto 26px; padding: 22px 0; }
  .landing-closing h2 { font-size: 30px; }

  /* Profile, friends, lobby and cashier keep their useful content first. */
  .profile-page,
  .friends-page,
  .multiplayer-page { width: calc(100% - 20px); padding: 24px 0 38px; }
  .profile-head { gap: 12px; padding-bottom: 18px; }
  .profile-avatar-wrap { flex-basis: 64px; width: 64px; height: 64px; }
  .profile-avatar-fallback { font-size: 23px; }
  .profile-head h1 { max-width: 210px; overflow: hidden; font-size: 27px; text-overflow: ellipsis; white-space: nowrap; }
  .profile-balance { display: flex; width: auto; align-items: baseline; gap: 8px; }
  .profile-balance strong { font-size: 19px; }
  .profile-grid,
  .profile-details { gap: 10px; margin-top: 12px; }
  .profile-card { padding: 15px; }
  .profile-card h2 { margin-bottom: 13px; font-size: 16px; }
  .profile-friends { grid-template-columns: 1fr; }
  .profile-history-row { padding: 8px 0; }
  .profile-history-row strong { font-size: 13px; }

  .friends-head { gap: 14px; margin-bottom: 14px; }
  .friends-head .page-title,
  .multiplayer-head .page-title { font-size: 30px; }
  .friends-head .lead { margin: 7px 0 0; font-size: 13px; }
  .friends-sidebar { padding: 8px; }
  .friends-group { padding: 8px 0 10px; }
  .chat-panel { min-height: 420px; }
  .chat-empty { min-height: 250px; padding: 20px; }
  .message-list { min-height: 220px; }

  .multiplayer-head { margin-bottom: 0; }
  .lobby-shell { padding: 12px; }
  .lobby-wheel-card { padding: 14px 8px; }
  .lobby-wheel-wrap { width: min(310px, 82vw); }
  .lobby-overview { grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
  .lobby-overview-main { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 12px; }
  .lobby-overview-main strong { margin: 0; font-size: 18px; }
  .lobby-player-chip { padding: 9px 10px; }
  .lobby-result-note { margin: -2px 0 10px; font-size: 11px; }
  .lobby-amount-row { height: 42px; }
  .lobby-quick-bets button { min-height: 31px; font-size: 10px; }
  .lobby-bet-controls { gap: 7px; }
  .lobby-side { gap: 10px; }
  .lobby-score,
  .lobby-feed { padding: 13px; }
  .mode-choice { min-height: 112px; }

  .cash-page { width: calc(100% - 20px); min-height: 0; gap: 18px; padding: 28px 0 38px; }
  .cash-hero .page-title { font-size: 31px; }
  .cash-hero .lead { font-size: 13px; }
  .checkout-card { padding: 16px; }
  .checkout-card h2 { margin-bottom: 16px; font-size: 20px; }
  .checkout-card input { min-height: 46px; }
}

@media (max-width: 380px) {
  .table-head .page-title { font-size: 21px; }
  .table-head .balance-box { min-width: 94px; }
  .balance-bets button { padding-inline: 2px; font-size: 10px; }
  .pick span { font-size: 10px; }
  .pick strong { font-size: 15px; }
  .hero-livebar strong { font-size: 10px; }
}

/* Compact single-table roulette for phones. */
@media (max-width: 760px) {
  [data-page="game"] .game-grid {
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 7px;
    background:
      radial-gradient(circle at 50% 12%, rgba(255, 16, 40, 0.12), transparent 14rem),
      rgba(255, 255, 255, 0.025);
  }

  [data-page="game"] .wheel-zone,
  [data-page="game"] .bet-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  [data-page="game"] .wheel-zone {
    order: 0;
    padding: 12px 10px 4px;
  }

  [data-page="game"] .wheel-wrap {
    width: min(250px, 64vw);
  }

  [data-page="game"] .slot:nth-child(n) {
    transform: rotate(var(--angle, 0deg)) translateY(calc(-1 * clamp(104px, 31vw, 122px))) rotate(calc(var(--angle, 0deg) * -1));
  }

  [data-page="game"] .wheel-center { inset: 34%; }
  [data-page="game"] .wheel-center span { font-size: 35px; }
  [data-page="game"] .wheel-center strong { font-size: 9px; }
  [data-page="game"] .status-line { display: none; }

  [data-page="game"] .bet-panel {
    order: 1;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  [data-page="game"] .amount-row { height: 42px; }
  [data-page="game"] .balance-bets button { min-height: 31px; }
  [data-page="game"] .pick { min-height: 52px; }
  [data-page="game"] .spin-button { min-height: 44px; }
}

@media (max-width: 760px) {
  .redline-hero {
    min-height: calc(100svh - 98px);
    justify-content: space-between;
  }

  .hero-frame { width: 100%; }
  .hero-actions { width: 100%; }
  .hero-actions .link-button { width: 100%; }
  .landing-text-link { display: inline-flex; min-height: 40px; align-items: center; }
  .hero-livebar { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .winner-list { padding-bottom: 2px; }
  .landing-routes .route-card { display: flex; flex-direction: column; }
  .landing-routes .route-card b { margin-top: auto; }

  .chat-panel {
    height: 520px;
    min-height: 520px;
  }
}

/* Final mobile landing constraints live after the legacy phone rules. */
@media (max-width: 760px) {
  [data-page="landing"] .hero-actions {
    display: flex;
    grid-template-columns: none;
  }

  [data-page="landing"] .hero-actions .hero-primary {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    white-space: nowrap;
  }

  [data-page="landing"] .hero-actions .landing-text-link {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Landing continuation: one clear route instead of a stack of unrelated sections. */
[data-page="landing"] .landing-deck {
  display: grid;
  width: min(1240px, calc(100% - 64px));
  grid-template-columns: minmax(280px, 0.72fr) minmax(500px, 1.28fr);
  gap: 68px;
  margin: 0 auto;
  padding: 108px 0 98px;
}

[data-page="landing"] .deck-heading { align-self: start; padding-top: 20px; }
[data-page="landing"] .deck-heading .kicker { margin: 0 0 15px; color: #ff5369; }
[data-page="landing"] .deck-heading h2 { margin: 0; color: #f7f7fa; font-size: 49px; line-height: 0.94; }
[data-page="landing"] .deck-heading > p:last-child { max-width: 330px; margin: 22px 0 0; color: #9398a3; font-size: 14px; line-height: 1.6; }

.deck-stage {
  display: grid;
  min-height: 438px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.52fr);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #09090c;
}

.deck-main {
  position: relative;
  display: flex;
  min-height: 438px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 23, 56, 0.14), transparent 43%),
    #0c0c10;
}

.deck-main::before,
.deck-main::after {
  position: absolute;
  content: "";
  pointer-events: none;
}
.deck-main::before {
  top: -94px;
  right: -94px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 23, 56, 0.48);
  border-radius: 50%;
  box-shadow: inset 0 0 48px rgba(255, 23, 56, 0.11), 0 0 60px rgba(255, 23, 56, 0.08);
  transition: transform 400ms ease;
}
.deck-main::after {
  top: 28px;
  right: 35px;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotate(45deg);
  transition: transform 400ms ease;
}
.deck-main:hover::before { transform: scale(1.14); }
.deck-main:hover::after { transform: rotate(135deg); }
.deck-main > * { position: relative; z-index: 1; }
.deck-main > span { margin-bottom: auto; color: #b0b4bd; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; }
.deck-main h3 { margin: 0; color: #fff; font-size: 38px; line-height: 0.96; }
.deck-main h3 b { color: #ff2745; }
.deck-main p { max-width: 330px; margin: 18px 0 26px; color: #a5a9b2; font-size: 13px; line-height: 1.55; }
.deck-main strong { display: inline-flex; align-items: center; gap: 11px; color: #fff; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.deck-main strong i { color: #ff5369; font-size: 20px; font-style: normal; transition: transform 180ms ease; }
.deck-main:hover strong i { transform: translateX(5px); }

.deck-rail { display: grid; grid-template-rows: repeat(2, 1fr); }
.deck-rail a {
  display: grid;
  min-width: 0;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #09090c;
  transition: background 180ms ease, padding 180ms ease;
}
.deck-rail a:last-child { border-bottom: 0; }
.deck-rail a:hover { padding-left: 25px; background: #101014; }
.deck-rail a > span { color: #ff5369; font-size: 10px; font-weight: 800; }
.deck-rail strong,
.deck-rail small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deck-rail strong { color: #f0f1f3; font-size: 15px; }
.deck-rail small { margin-top: 5px; color: #858a95; font-size: 11px; }
.deck-rail b { color: #ff5369; font-size: 17px; font-weight: 400; }

@media (max-width: 920px) {
  [data-page="landing"] .landing-deck { grid-template-columns: 1fr; gap: 26px; }
  [data-page="landing"] .deck-heading { max-width: 560px; padding: 0; }
  [data-page="landing"] .deck-heading > p:last-child { max-width: 520px; }
}

@media (max-width: 760px) {
  [data-page="landing"] .landing-deck {
    width: calc(100% - 32px);
    gap: 22px;
    padding: 62px 0 44px;
  }
  [data-page="landing"] .deck-heading h2 { font-size: 32px; }
  [data-page="landing"] .deck-heading > p:last-child { margin-top: 14px; font-size: 13px; }
  .deck-stage { min-height: 0; grid-template-columns: 1fr; }
  .deck-main { min-height: 260px; padding: 20px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .deck-main::before { top: -68px; right: -68px; width: 190px; height: 190px; }
  .deck-main::after { top: 22px; right: 28px; width: 54px; height: 54px; }
  .deck-main h3 { font-size: 29px; }
  .deck-main p { margin: 13px 0 18px; font-size: 12px; }
  .deck-rail { grid-template-rows: auto; }
  .deck-rail a { min-height: 78px; padding: 16px; }
}

/* Account, social and challenge screens: a separate product UI. */
body:not([data-page="landing"]) .topbar .account-dock { margin-left: 2px; }
body:not([data-page="landing"]) .topbar .user-pill {
  min-width: 168px;
  justify-content: flex-start;
  padding: 5px 10px 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.035);
}
body:not([data-page="landing"]) .topbar .account-copy strong { max-width: 118px; }
body:not([data-page="landing"]) .topbar .account-copy { text-align: left; }
body:not([data-page="landing"]) .topbar .account-avatar { width: 34px; height: 34px; flex-basis: 34px; }

[data-page="profile"],
[data-page="friends"],
[data-page="deposit"] { background: #060608; }

.account-page {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 76px;
}
.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 46px;
  padding: 32px 0 24px;
  border-top: 2px solid #e51b36;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}
.account-identity { display: flex; min-width: 0; align-items: center; gap: 18px; }
.account-avatar-large { position: relative; width: 104px; height: 104px; flex: 0 0 104px; }
.account-avatar-large .profile-avatar,
.account-avatar-large .profile-avatar-fallback { width: 100%; height: 100%; border-radius: 5px; }
.account-avatar-large .profile-avatar { object-fit: cover; }
.account-avatar-large .profile-avatar-fallback { display: grid; place-items: center; color: #fff; font-size: 37px; font-weight: 900; background: #a20f25; }
.account-avatar-large [hidden] { display: none !important; }
.account-avatar-large .avatar-upload { border-radius: 0 0 5px 5px; }
.account-identity h1 { max-width: 500px; margin: 5px 0 3px; overflow: hidden; color: #fff; font-size: 48px; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.account-identity .kicker { margin: 0; color: #ff5b70; }
.account-identity .profile-handle { margin: 0; color: #8f949f; font-size: 14px; }
.account-hero-actions { display: flex; align-items: center; gap: 18px; }
.account-hero-actions .primary-button { min-width: 164px; justify-content: space-between; }
.plain-link { color: #c9ccd4; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.plain-link:hover { color: #ff5a70; }
.account-metrics { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.account-metrics > div { min-width: 0; padding: 17px 20px 0 0; }
.account-metrics > div + div { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.account-metrics span { display: block; color: #858a95; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
.account-metrics strong { display: block; margin-top: 6px; overflow: hidden; color: #f7f7f9; font-size: 22px; text-overflow: ellipsis; white-space: nowrap; }

.account-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 34px; margin-top: 30px; }
.account-controls { padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.account-panel-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.account-panel-title .kicker { margin: 0 0 6px; color: #ff5369; }
.account-panel-title h2 { margin: 0; color: #f4f5f7; font-size: 24px; }
.account-controls form { margin-top: 26px; }
.account-controls .field { margin-bottom: 14px; }
.account-controls input { min-height: 48px; background: #0b0b0e; }
.account-controls .primary-button,
.account-controls .secondary-button { width: 100%; min-height: 48px; }
.password-form { padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.password-form h3 { margin: 0 0 18px; color: #eef0f4; font-size: 16px; }
.account-feed { display: grid; gap: 18px; }
.account-panel { padding: 26px; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 5px; background: #0b0b0e; }
.account-friends { min-height: 175px; }
.account-history { min-height: 320px; }
.account-panel .profile-friends { margin-top: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.account-panel .profile-friend { border-radius: 3px; background: #070709; }
.account-panel .profile-friend [hidden] { display: none !important; }
.account-panel .profile-history { margin-top: 16px; }
.account-panel .profile-history-row { padding: 13px 0; }
.account-panel .profile-history-row:first-child { border-top: 0; }

.social-page { width: min(1220px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 70px; }
.social-shell { display: grid; min-height: min(740px, calc(100svh - 150px)); grid-template-columns: 370px minmax(0, 1fr); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 6px; background: #0a0a0d; }
.people-pane { display: grid; min-height: 0; grid-template-rows: auto auto minmax(0, 1fr); border-right: 1px solid rgba(255, 255, 255, 0.12); background: #0d0d10; }
.people-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 24px 22px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.people-head .kicker { margin: 0 0 6px; color: #ff546b; }
.people-head h1 { margin: 0; color: #fff; font-size: 30px; }
.lobby-link { padding-bottom: 3px; border-bottom: 1px solid #f42543; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.people-pane .friend-search { margin: 14px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.people-pane .friend-search label { font-size: 10px; }
.people-pane .friend-search input { min-height: 42px; background: #070709; }
.people-pane .friend-search .primary-button { min-height: 42px; padding-inline: 12px; font-size: 10px; }
.people-scroll { min-height: 0; overflow-y: auto; padding: 0 14px 14px; }
.people-pane .friends-group { padding: 15px 0; }
.people-pane .friends-group-head { padding-inline: 2px; }
.people-pane .friends-group h2 { font-size: 12px; letter-spacing: 0.02em; }
.people-pane .friend-item { min-height: 50px; padding: 8px; border-radius: 4px; }
.people-pane .friend-button.active { border-color: #e51c37; background: rgba(229, 28, 55, 0.14); }
.people-pane .friend-button:hover { background: rgba(255, 255, 255, 0.055); }
.people-pane .mini-action { min-height: 28px; }
.social-chat { min-height: 0; height: auto; border: 0; border-radius: 0; background: #09090c; }
.social-chat .chat-empty { background: radial-gradient(circle at 50% 36%, rgba(255, 22, 52, 0.12), transparent 17rem); }
.social-chat .chat-mark { width: 64px; height: 64px; border-radius: 5px; }
.social-chat .chat-header { padding: 20px 24px; background: #0c0c0f; }
.social-chat .message-list { padding: 22px 24px; }
.social-chat .message-form { padding: 14px 18px; background: #0c0c0f; }
.social-chat .message-form textarea { min-height: 46px; padding: 12px; border-radius: 4px; background: #070709; }
.social-chat .message-form .primary-button { min-height: 46px; }
.chat-back { display: none; }

.challenge-page { width: min(1060px, calc(100% - 48px)); margin: 0 auto; padding: 50px 0 76px; }
.challenge-page-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; padding-bottom: 25px; border-bottom: 1px solid rgba(255, 255, 255, 0.13); }
.challenge-page-head .kicker { margin: 0 0 10px; color: #ff5369; }
.challenge-page-head h1 { margin: 0; color: #f8f8fa; font-size: 56px; line-height: 0.9; }
.challenge-bank { display: grid; width: 250px; grid-template-columns: 1fr auto; gap: 5px 14px; padding: 12px 0 2px 20px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.challenge-bank span,
.challenge-bank small { color: #898e99; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.challenge-bank strong { color: #fff; font-size: 25px; text-align: right; }
.challenge-bank small { grid-column: 1 / -1; margin-top: 9px; }
.challenge-bank small b { color: #f0f1f4; font-weight: 700; }
.challenge-bank meter { width: 100%; grid-column: 1 / -1; height: 5px; }
.challenge-page .challenge-game { width: min(660px, 100%); margin: 54px auto 0; }
.challenge-page .challenge-game::after { position: absolute; right: -25px; bottom: -25px; z-index: -1; width: 190px; height: 190px; content: ""; border: 1px solid rgba(255, 23, 56, 0.2); transform: rotate(45deg); }

@media (max-width: 900px) {
  .account-hero { grid-template-columns: 1fr; }
  .account-hero-actions { justify-content: flex-start; }
  .account-layout { grid-template-columns: 1fr; gap: 22px; }
  .account-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .account-controls .account-panel-title { grid-column: 1 / -1; }
  .account-controls form { margin-top: 0; }
  .social-shell { grid-template-columns: 330px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  body:not([data-page="landing"]) .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  body:not([data-page="landing"]) .topbar .header-action { display: none; }
  body:not([data-page="landing"]) .topbar .account-dock { grid-column: 2 !important; justify-self: end !important; gap: 7px; }
  body:not([data-page="landing"]) .topbar .user-pill { min-width: 0; gap: 7px; padding: 3px; border: 0; background: transparent; }
  body:not([data-page="landing"]) .topbar .account-copy { display: block; text-align: right; }
  body:not([data-page="landing"]) .topbar .account-copy strong { max-width: 78px; font-size: 10px; }
  body:not([data-page="landing"]) .topbar .account-copy small { font-size: 8px; }
  body:not([data-page="landing"]) .topbar #logoutButton { display: none; }
  body:not([data-page="landing"]) .topbar .account-avatar { width: 36px; height: 36px; flex-basis: 36px; }

  .account-page { width: calc(100% - 24px); padding: 22px 0 42px; }
  .account-hero { gap: 20px; padding: 18px 0; }
  .account-avatar-large { width: 76px; height: 76px; flex-basis: 76px; }
  .account-identity { gap: 12px; }
  .account-identity h1 { max-width: 214px; font-size: 30px; }
  .account-hero-actions { gap: 15px; }
  .account-hero-actions .primary-button { min-height: 42px; min-width: 148px; font-size: 10px; }
  .account-metrics > div { padding: 13px 8px 0; }
  .account-metrics > div:first-child { padding-left: 0; }
  .account-metrics > div + div { padding-left: 8px; }
  .account-metrics strong { font-size: 15px; }
  .account-controls { display: grid; grid-template-columns: 1fr; gap: 0; }
  .account-controls .account-panel-title { padding-bottom: 16px; }
  .account-controls form { margin-top: 20px; }
  .account-controls .password-form { margin-top: 24px; }
  .account-panel { padding: 18px; }
  .account-panel .profile-friends { grid-template-columns: 1fr; }
  .account-panel-title h2 { font-size: 21px; }

  .social-page { width: 100%; padding: 0 0 38px; }
  .social-shell { display: flex; min-height: 0; flex-direction: column; border: 0; border-radius: 0; }
  .people-pane { min-height: 0; max-height: none; border-right: 0; border-bottom: 0; }
  .people-head { padding: 20px 14px 14px; }
  .people-head h1 { font-size: 26px; }
  .people-pane .friend-search { margin: 10px 14px; }
  .people-scroll { display: flex; flex-direction: column; overflow: visible; padding: 0 10px 10px; }
  .people-pane .friends-group { padding: 11px 0; }
  .people-pane .friends-group:nth-child(3) { order: -3; }
  .people-pane .game-invites-group { order: -2; }
  .people-pane .outgoing-group { order: 2; }
  .social-chat { height: 520px; min-height: 520px; }
  .social-chat .chat-header { padding: 16px; }
  .social-chat .message-list { padding: 16px; }
  .social-chat .message-form { padding: 10px; }
  .social-chat .message-form .primary-button { padding-inline: 12px; font-size: 10px; }
  .chat-back { display: inline-flex; align-items: center; min-height: 31px; margin: 0 0 12px; padding: 0; border: 0; color: #f5f5f7; font: inherit; font-size: 11px; font-weight: 800; background: transparent; }
  .chat-back::before { margin-right: 6px; content: "←"; color: #ff5369; font-size: 16px; }
  body[data-page="friends"].chat-open .people-pane { display: none; }
  body[data-page="friends"].chat-open .social-chat { display: grid; height: calc(100svh - 74px); min-height: calc(100svh - 74px); }
  body[data-page="friends"].chat-open .social-shell { min-height: calc(100svh - 74px); }

  .challenge-page { width: calc(100% - 24px); padding: 24px 0 42px; }
  .challenge-page-head { align-items: flex-start; flex-direction: column; gap: 22px; padding-bottom: 20px; }
  .challenge-page-head h1 { font-size: 37px; }
  .challenge-bank { width: 100%; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.13); border-left: 0; }
  .challenge-page .challenge-game { margin-top: 24px; }
}

.mobile-app-home { display: none; }

@media (max-width: 760px) {
  /* This is a purpose-built phone entry screen, independent from the desktop campaign hero. */
  [data-page="landing"] .redline-hero,
  [data-page="landing"] .landing-deck { display: none; }

  [data-page="landing"] .landing-main { min-height: calc(100svh - 70px); }
  [data-page="landing"] .mobile-app-home {
    display: flex;
    min-height: calc(100svh - 70px);
    flex-direction: column;
    align-items: stretch;
    padding: 94px 20px 22px;
    background:
      linear-gradient(155deg, rgba(255, 23, 56, 0.12), transparent 36%),
      #0a0b0c;
  }
  [data-page="landing"] .mobile-home-pulse {
    position: relative;
    display: grid;
    width: 104px;
    height: 104px;
    margin: 0 auto 27px;
    place-items: center;
    border: 1px solid rgba(255, 57, 83, 0.64);
    border-radius: 50%;
    color: #fff;
    background: #10080b;
    box-shadow: 0 0 42px rgba(238, 20, 48, 0.22), inset 0 0 30px rgba(255, 19, 54, 0.15);
  }
  [data-page="landing"] .mobile-home-pulse::before,
  [data-page="landing"] .mobile-home-pulse::after {
    position: absolute;
    border: 1px solid rgba(255, 69, 91, 0.3);
    border-radius: 50%;
    content: "";
  }
  [data-page="landing"] .mobile-home-pulse::before { inset: -10px; }
  [data-page="landing"] .mobile-home-pulse::after { inset: -25px; opacity: 0.45; }
  [data-page="landing"] .mobile-home-pulse span { position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,0.16); border-radius: 50%; }
  [data-page="landing"] .mobile-home-pulse i { position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: #ff2445; box-shadow: 0 0 12px #ff2445; }
  [data-page="landing"] .mobile-home-pulse b { position: relative; font-size: 43px; font-style: italic; }
  [data-page="landing"] .mobile-app-home .kicker { align-self: center; margin: 0 0 12px; color: #b8bcc5; font-size: 9px; }
  [data-page="landing"] .mobile-app-home h1 { margin: 0; color: #f6f6f8; font-size: 39px; line-height: 0.9; text-align: center; }
  [data-page="landing"] .mobile-app-home h1 b { color: #ff3150; }
  [data-page="landing"] .mobile-app-home > p:not(.kicker) { max-width: 260px; margin: 16px auto 25px; color: #969ba6; font-size: 13px; line-height: 1.5; text-align: center; }
  [data-page="landing"] .mobile-play { display: flex; min-height: 54px; align-items: center; justify-content: space-between; padding: 0 18px; font-size: 11px; }
  [data-page="landing"] .mobile-play b { font-size: 20px; font-weight: 400; }
  [data-page="landing"] .mobile-home-routes { display: grid; gap: 1px; margin-top: 18px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255,255,255,0.1); }
  [data-page="landing"] .mobile-home-routes a { display: grid; min-height: 59px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 12px; padding: 11px 13px; background: #0e0f11; }
  [data-page="landing"] .mobile-home-routes span { color: #f2f2f4; font-size: 13px; font-weight: 800; }
  [data-page="landing"] .mobile-home-routes small { grid-column: 1; margin-top: 2px; color: #858b96; font-size: 10px; }
  [data-page="landing"] .mobile-home-routes b { grid-column: 2; grid-row: 1 / 3; color: #ff4760; font-size: 18px; font-weight: 400; }
  [data-page="landing"] .mobile-home-status { display: flex; justify-content: space-between; margin-top: auto; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #818691; font-size: 9px; }
  [data-page="landing"] .mobile-home-status b { display: block; margin-top: 4px; color: #f2f2f4; font-size: 12px; }
}

/* Mobile landing is an app home, not a compressed desktop hero. */
@media (max-width: 760px) {
  [data-page="landing"] .redline-hero {
    min-height: 0;
    gap: 0;
    padding: 78px 16px 18px;
    background:
      linear-gradient(180deg, rgba(255, 24, 54, 0.09), transparent 34%),
      #070709;
  }

  [data-page="landing"] .hero-grid {
    opacity: 0.26;
    transform: none;
    mask-image: linear-gradient(to bottom, #000, transparent 62%);
  }

  [data-page="landing"] .hero-machine {
    order: 1;
    width: min(228px, 60vw);
    margin: 0 auto 8px;
  }

  [data-page="landing"] .hero-machine::before { box-shadow: 0 0 54px rgba(255, 23, 56, 0.16); }
  [data-page="landing"] .hero-ring-outer { animation-duration: 36s; }
  [data-page="landing"] .number-track span { width: 22px; height: 22px; font-size: 7px; transform: translate(-50%, -50%) rotate(calc(var(--i) * 30deg)) translateY(-102px) rotate(calc(var(--i) * -30deg)); }
  [data-page="landing"] .hero-emblem { width: 58%; }

  [data-page="landing"] .hero-frame {
    order: 2;
    width: 100%;
    text-align: left;
  }

  [data-page="landing"] .hero-frame .kicker {
    width: max-content;
    margin: 0 0 10px;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #c6c9d0;
    background: rgba(255, 255, 255, 0.03);
  }

  [data-page="landing"] .hero-frame h1 {
    max-width: none;
    font-size: 34px;
    line-height: 0.94;
  }

  [data-page="landing"] .hero-statement { display: none; }
  [data-page="landing"] .hero-actions { margin-top: 17px; gap: 0; }
  [data-page="landing"] .hero-actions .hero-primary { min-height: 52px; padding-inline: 18px; font-size: 11px; }
  [data-page="landing"] .hero-actions .landing-text-link { display: none; }

  [data-page="landing"] .hero-livebar {
    order: 3;
    width: calc(100% + 32px);
    margin: 18px -16px -18px;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #0b0b0e;
  }

  [data-page="landing"] .hero-livebar div { min-height: 62px; padding: 12px 10px; }
  [data-page="landing"] .hero-livebar div + div { border-left: 1px solid rgba(255, 255, 255, 0.1); }
  [data-page="landing"] .hero-livebar span { font-size: 7px; letter-spacing: 0.06em; }
  [data-page="landing"] .hero-livebar strong { margin-top: 4px; font-size: 11px; }

  [data-page="landing"] .landing-deck { gap: 18px; padding: 36px 0 32px; }
  [data-page="landing"] .deck-heading .kicker { margin-bottom: 8px; }
  [data-page="landing"] .deck-heading h2 { font-size: 27px; }
  [data-page="landing"] .deck-heading > p:last-child { display: none; }
  [data-page="landing"] .deck-stage { border-radius: 5px; }
  [data-page="landing"] .deck-main { min-height: 215px; padding: 18px; }
  [data-page="landing"] .deck-main > span { font-size: 8px; }
  [data-page="landing"] .deck-main h3 { font-size: 27px; }
  [data-page="landing"] .deck-main p { display: none; }
  [data-page="landing"] .deck-main strong { margin-top: 16px; }
  [data-page="landing"] .deck-rail a { min-height: 68px; padding: 13px 15px; }
  [data-page="landing"] .deck-rail strong { font-size: 14px; }
  [data-page="landing"] .deck-rail small { margin-top: 3px; font-size: 10px; }
}

@media (max-width: 380px) {
  [data-page="landing"] .hero-machine { width: min(208px, 58vw); }
  [data-page="landing"] .number-track span { transform: translate(-50%, -50%) rotate(calc(var(--i) * 30deg)) translateY(-92px) rotate(calc(var(--i) * -30deg)); }
  [data-page="landing"] .hero-frame h1 { font-size: 31px; }
}

/* Quiet charcoal canvas: interfaces carry the colour, not the page background. */
html,
body,
body[data-page],
[data-page="profile"],
[data-page="friends"],
[data-page="deposit"] {
  background: #0a0b0c;
}

body::before { display: none; }
.noise { opacity: 0.04; }

/* Statistics is an information surface, not a marketing page. */
.statistics-page { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 50px 0 76px; }
.statistics-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, 0.13); }
.statistics-head .kicker { margin: 0 0 9px; color: #ff5369; }
.statistics-head h1 { margin: 0; color: #f7f7fa; font-size: 56px; line-height: 0.9; }
.statistics-head > div > p:last-child { margin: 14px 0 0; color: #9297a1; font-size: 14px; }
.statistics-head .primary-button { min-height: 46px; }
.statistics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 28px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.1); }
.statistics-grid article { min-height: 124px; padding: 20px; background: #0c0d0f; }
.statistics-grid span { display: block; color: #8e939e; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.statistics-grid strong { display: block; margin-top: 13px; overflow: hidden; color: #f7f7f9; font-size: clamp(21px, 2.5vw, 31px); text-overflow: ellipsis; white-space: nowrap; }
.statistics-grid .positive { color: #67d8a0; }
.statistics-grid .negative { color: #ff5d70; }
.leaderboard-panel { margin-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.13); }
.leaderboard-panel > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 24px 0 17px; }
.leaderboard-panel .kicker { margin: 0 0 6px; color: #ff5369; }
.leaderboard-panel h2 { margin: 0; color: #f4f5f7; font-size: 25px; }
.leaderboard-panel > header > span { color: #848a94; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.leaderboard-list { border: 1px solid rgba(255, 255, 255, 0.12); background: #0c0d0f; }
.leaderboard-row { display: grid; min-width: 0; grid-template-columns: 48px 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 68px; padding: 10px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.leaderboard-row:last-child { border-bottom: 0; }
.leaderboard-row.current-player { background: linear-gradient(90deg, rgba(255, 24, 53, 0.17), transparent 70%); }
.leaderboard-place { color: #90959f; font-size: 11px; font-weight: 800; }
.leaderboard-row img,
.leaderboard-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.leaderboard-avatar { display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; background: #85111e; }
.leaderboard-row [hidden] { display: none !important; }
.leaderboard-row div { min-width: 0; }
.leaderboard-row strong,
.leaderboard-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-row strong { color: #f4f4f6; font-size: 14px; }
.leaderboard-row small { margin-top: 3px; color: #878c96; font-size: 10px; }
.leaderboard-row > b { color: #f5f5f7; font-size: 15px; white-space: nowrap; }

/* The cashier keeps a calm, solid surface. */
body[data-page="deposit"] .challenge-page { position: relative; }
body[data-page="deposit"] .challenge-page::before,
body[data-page="deposit"] .challenge-page::after { display: none; }
body[data-page="deposit"] .challenge-game { background: #0c0d0f; box-shadow: none; }
body[data-page="deposit"] .challenge-game::after { display: none; }

/* Persistent account alerts. */
.notification-button { position: relative; display: inline-grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 50%; color: transparent; background: #101115; }
.notification-button > span { width: 10px; height: 10px; border: 2px solid #f3f4f6; border-radius: 50%; box-shadow: 0 5px 0 -3px #f3f4f6; }
.notification-button:hover { border-color: rgba(255, 61, 85, 0.7); }
.notification-button b { position: absolute; top: -5px; right: -6px; display: grid; min-width: 17px; height: 17px; place-items: center; padding: 0 3px; border-radius: 10px; color: #fff; font-size: 9px; background: #e61835; }
.notification-panel { position: fixed; top: 72px; right: clamp(12px, 3vw, 48px); z-index: 50; width: min(390px, calc(100vw - 24px)); max-height: min(580px, calc(100svh - 88px)); overflow: auto; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 6px; background: #0d0e11; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); }
.notification-panel[hidden] { display: none; }
.notification-panel > header { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.11); }
.notification-panel header span { color: #ff5870; font-size: 9px; font-weight: 800; letter-spacing: 0.1em; }
.notification-panel h2 { margin: 4px 0 0; color: #f7f7f9; font-size: 20px; }
.notification-panel header button { width: 30px; height: 30px; border: 0; color: #c9ccd2; font-size: 22px; background: transparent; }
.notification-item { display: grid; width: 100%; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 14px 17px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.09); color: inherit; text-align: left; background: transparent; }
.notification-item:hover { background: rgba(255, 42, 67, 0.08); }
.notification-item img,
.notification-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.notification-avatar { display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; background: #85111e; }
.notification-item [hidden] { display: none !important; }
.notification-item div { min-width: 0; }
.notification-item strong,
.notification-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notification-item strong { color: #f2f3f5; font-size: 12px; }
.notification-item small { margin-top: 4px; color: #9297a2; font-size: 11px; }
.notification-panel .empty-friends { margin: 18px; }

/* The lobby uses the same roulette controls as the personal table. */
.lobby-wheel-card { align-content: start; }
.lobby-bet-panel { width: min(500px, 100%); margin-top: 12px; padding: 14px; border-radius: 5px; background: #0b0c0f; }
.lobby-bet-panel .amount-row { width: 100%; }
.lobby-bet-panel .amount-row input { min-width: 0; flex: 1; text-align: center; }
.lobby-bet-panel .balance-bets { width: 100%; }
.lobby-bet-panel .color-picks { width: 100%; }
.lobby-turn { width: min(500px, 100%); margin: 16px 0 8px; color: #d8dbe1; font-size: 13px; font-weight: 700; text-align: center; }
.lobby-turn.waiting { color: #ff6578; }
.lobby-result-note { width: min(500px, 100%); margin: 0 0 7px; }

/* The conversation owns its scrolling; it must never make the page taller. */
.social-shell { height: min(740px, calc(100svh - 150px)); }
.people-pane,
.social-chat,
.social-chat .chat-content { min-height: 0; overflow: hidden; }
.social-chat { height: 100%; }
.social-chat .message-list { min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; }

@media (max-width: 760px) {
  body:not([data-page="landing"]) .topbar { grid-template-columns: minmax(0, 1fr) auto auto; }
  body:not([data-page="landing"]) .topbar .account-dock { grid-column: 3 !important; }
  body:not([data-page="landing"]) .topbar .notification-button { grid-column: 2; grid-row: 1; justify-self: end; }
  .statistics-page { width: calc(100% - 24px); padding: 24px 0 42px; }
  .statistics-head { align-items: flex-start; flex-direction: column; gap: 20px; padding-bottom: 20px; }
  .statistics-head h1 { font-size: 38px; }
  .statistics-head .primary-button { width: 100%; min-height: 48px; justify-content: space-between; }
  .statistics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
  .statistics-grid article { min-height: 102px; padding: 14px; }
  .statistics-grid strong { margin-top: 10px; font-size: 20px; }
  .leaderboard-panel { margin-top: 20px; }
  .leaderboard-panel > header { padding: 20px 0 13px; }
  .leaderboard-panel h2 { font-size: 21px; }
  .leaderboard-row { grid-template-columns: 30px 34px minmax(0, 1fr) auto; gap: 9px; min-height: 60px; padding: 9px 10px; }
  .leaderboard-row img,
  .leaderboard-avatar { width: 34px; height: 34px; }
  .leaderboard-row > b { font-size: 12px; }
  .notification-button { width: 32px; height: 32px; }
  .notification-panel { top: 64px; right: 12px; }
  .lobby-bet-panel { padding: 11px; }
  body[data-page="friends"]:not(.chat-open) .social-chat { display: none; }
  body[data-page="friends"]:not(.chat-open) .social-shell { height: auto; }
  body[data-page="friends"].chat-open .social-chat { height: calc(100svh - 74px); }
body[data-page="friends"].chat-open .message-list { min-height: 0; }
}

/* Keep the footer where a footer belongs, not attached to a growing chat. */
body { display: flex; min-height: 100svh; flex-direction: column; }
body > main { flex: 1 0 auto; }
footer { flex: 0 0 auto; margin-top: auto; }
body[data-page="friends"].chat-open footer { display: none; }

/* Account identity is a compact control, not another navigation button. */
body:not([data-page="landing"]) .topbar .account-dock { gap: 9px; }
body:not([data-page="landing"]) .topbar .user-pill {
  min-width: 178px;
  gap: 9px;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(255, 31, 57, 0.1), rgba(255, 255, 255, 0.025));
}
body:not([data-page="landing"]) .topbar .user-pill:hover { border-color: rgba(255, 61, 85, 0.65); background: rgba(255, 31, 57, 0.13); }
body:not([data-page="landing"]) .topbar .account-avatar { width: 36px; height: 36px; flex-basis: 36px; border: 1px solid rgba(255, 73, 96, 0.8); }
body:not([data-page="landing"]) .topbar .account-copy strong { max-width: 122px; color: #f6f6f8; font-size: 12px; }
body:not([data-page="landing"]) .topbar .account-copy small { color: #9ca1ab; font-size: 10px; }
body:not([data-page="landing"]) .topbar #logoutButton { padding-inline: 4px; color: #8d929c; font-size: 10px; }

@media (max-width: 760px) {
  body:not([data-page="landing"]) .topbar .user-pill { min-width: 0; padding: 2px; border: 0; background: transparent; }
  body:not([data-page="landing"]) .topbar .account-avatar { width: 36px; height: 36px; flex-basis: 36px; }
  body:not([data-page="landing"]) .topbar .account-copy strong { max-width: 78px; font-size: 10px; }
body:not([data-page="landing"]) .topbar .account-copy small { font-size: 8px; }
}

/* Club leaderboard: rank, current balance and actual play results for every player. */
.leaderboard-columns,
.leaderboard-row {
  display: grid;
  grid-template-columns: 54px 38px minmax(150px, 1fr) minmax(104px, 0.55fr) 84px 74px minmax(104px, 0.55fr);
  align-items: center;
  column-gap: 12px;
}
.leaderboard-columns { padding: 0 18px 9px; color: #7f858f; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.leaderboard-columns span:nth-child(1) { grid-column: 1; }
.leaderboard-columns span:nth-child(2) { grid-column: 2 / 4; }
.leaderboard-columns span:nth-child(3) { grid-column: 4; text-align: right; }
.leaderboard-columns span:nth-child(4) { grid-column: 5; text-align: center; }
.leaderboard-columns span:nth-child(5) { grid-column: 6; text-align: center; }
.leaderboard-columns span:nth-child(6) { grid-column: 7; text-align: right; }
.leaderboard-row { min-height: 72px; padding: 10px 18px; }
.leaderboard-place { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 50%; color: #a7acb6; font-size: 12px; background: #101115; }
.leaderboard-row img,
.leaderboard-avatar { grid-column: 2; }
.leaderboard-row > div { grid-column: 3; padding-left: 0; }
.leaderboard-balance { grid-column: 4; color: #f4f5f7; font-size: 14px; text-align: right; }
.leaderboard-stat { color: #aeb3bc; font-size: 13px; text-align: center; }
.leaderboard-stat.wins { grid-column: 5; }
.leaderboard-stat:not(.wins):not(.total-won) { grid-column: 6; }
.leaderboard-stat.total-won { grid-column: 7; }
.leaderboard-stat.wins { color: #ff6a7e; font-weight: 800; }
.leaderboard-stat.total-won { color: #68dba1; text-align: right; }
.leaderboard-row.place-1 { border-left: 3px solid #f4c76b; background: linear-gradient(90deg, rgba(244, 199, 107, 0.15), transparent 68%); }
.leaderboard-row.place-2 { border-left: 3px solid #c7ced8; background: linear-gradient(90deg, rgba(199, 206, 216, 0.1), transparent 68%); }
.leaderboard-row.place-3 { border-left: 3px solid #ce8556; background: linear-gradient(90deg, rgba(206, 133, 86, 0.1), transparent 68%); }
.leaderboard-row.place-1 .leaderboard-place { width: 36px; height: 36px; border-color: rgba(244, 199, 107, 0.75); color: #18130a; font-size: 16px; background: #f4c76b; box-shadow: 0 0 24px rgba(244, 199, 107, 0.2); }
.leaderboard-row.place-2 .leaderboard-place { border-color: rgba(205, 211, 220, 0.65); color: #eef0f3; background: #606873; }
.leaderboard-row.place-3 .leaderboard-place { border-color: rgba(209, 136, 91, 0.7); color: #fff0e7; background: #874c2f; }
.leaderboard-row.place-1 .leaderboard-balance { color: #ffe59a; }

@media (max-width: 760px) {
  .leaderboard-columns { display: none; }
  .leaderboard-row { grid-template-columns: 28px 34px minmax(0, 1fr) auto; grid-template-rows: 30px 18px; gap: 2px 8px; min-height: 68px; padding: 8px 10px; }
  .leaderboard-place { width: 26px; height: 26px; grid-column: 1; grid-row: 1 / 3; font-size: 10px; }
  .leaderboard-row.place-1 .leaderboard-place { width: 30px; height: 30px; font-size: 13px; }
  .leaderboard-row img,
  .leaderboard-avatar { grid-column: 2; grid-row: 1 / 3; }
  .leaderboard-row > div { grid-column: 3; grid-row: 1; padding-left: 0; }
  .leaderboard-row > div small::after { content: " · " attr(data-stats); }
  .leaderboard-balance { grid-column: 4; grid-row: 1; font-size: 12px; }
  .leaderboard-stat { grid-row: 2; font-size: 10px; text-align: left; }
  .leaderboard-stat.wins { grid-column: 3; }
  .leaderboard-stat:not(.wins):not(.total-won) { display: none; }
  .leaderboard-stat.total-won { grid-column: 4; font-size: 10px; text-align: right; }
}

/* Profile studio: a focused personal dashboard. */
.profile-studio { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 76px; }
.profile-command { position: relative; overflow: hidden; padding: 24px 28px 0; border: 1px solid rgba(255, 255, 255, 0.14); background: linear-gradient(120deg, rgba(255, 27, 55, 0.15), transparent 38%), #0d0e11; }
.profile-command::after { position: absolute; top: -130px; right: -72px; width: 290px; height: 290px; border: 1px solid rgba(255, 58, 82, 0.4); border-radius: 50%; box-shadow: 0 0 76px rgba(255, 24, 53, 0.13); content: ""; }
.profile-command-line { display: flex; align-items: center; gap: 12px; color: #a7acb5; font-size: 9px; font-weight: 800; letter-spacing: 0.12em; }
.profile-command-line i { width: 38px; height: 1px; background: #ff3f59; }
.profile-command-line small { color: #727782; font-size: 9px; }
.profile-presence { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 30px 0 25px; }
.studio-avatar { position: relative; width: 108px; height: 108px; flex: 0 0 108px; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 75, 99, 0.8), 0 18px 35px rgba(0, 0, 0, 0.35); }
.studio-avatar .profile-avatar,
.studio-avatar .profile-avatar-fallback { width: 100%; height: 100%; border-radius: 50%; }
.studio-avatar .profile-avatar { object-fit: cover; }
.studio-avatar .profile-avatar-fallback { display: grid; place-items: center; color: #fff; font-size: 38px; font-weight: 900; background: #951225; }
.studio-avatar [hidden] { display: none !important; }
.studio-avatar .avatar-upload { border-radius: 0 0 54px 54px; }
.profile-title { min-width: 0; }
.profile-title .kicker { margin: 0 0 7px; color: #ff6276; }
.profile-title h1 { max-width: 530px; margin: 0; overflow: hidden; color: #f7f7f9; font-size: 50px; line-height: 0.94; text-overflow: ellipsis; white-space: nowrap; }
.profile-title .profile-handle { margin: 8px 0 0; color: #9ba0aa; font-size: 14px; }
.profile-actions { display: grid; justify-items: end; gap: 13px; }
.profile-actions .primary-button { min-width: 176px; justify-content: space-between; }
.profile-pulse { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 -28px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.profile-pulse > div { min-width: 0; padding: 17px 28px 20px; }
.profile-pulse > div + div { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.profile-pulse span { display: block; color: #8b909a; font-size: 9px; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.profile-pulse strong { display: block; margin-top: 7px; overflow: hidden; color: #fff; font-size: 24px; text-overflow: ellipsis; white-space: nowrap; }
.profile-workbench { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 28px; margin-top: 28px; }
.profile-settings { align-self: start; padding: 22px; border-top: 2px solid #ee2743; background: #0d0e11; }
.profile-settings > .studio-panel-head { display: block; }
.studio-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.studio-panel-head .kicker { margin: 0 0 6px; color: #ff566d; }
.studio-panel-head h2 { margin: 0; color: #f4f4f6; font-size: 23px; }
.profile-settings > .studio-panel-head > p:last-child { margin: 13px 0 0; color: #858a94; font-size: 12px; line-height: 1.5; }
.deposit-reset-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 28px 0 0; padding: 18px 22px; border-left: 3px solid #f12845; background: #0d0e11; }
.deposit-reset-banner span,
.deposit-reset-banner small { display: block; }
.deposit-reset-banner span { color: #f2f3f5; font-size: 13px; font-weight: 800; }
.deposit-reset-banner small { margin-top: 4px; color: #858b96; font-size: 11px; line-height: 1.4; }
.deposit-reset-banner strong { color: #ff5369; font-size: clamp(22px, 3vw, 34px); line-height: 1; text-align: right; white-space: nowrap; }
.deposit-reset-banner + .challenge-game { margin-top: 28px; }
.profile-settings form { margin-top: 24px; }
.profile-settings .field { margin-bottom: 13px; }
.profile-settings input { min-height: 47px; background: #090a0c; }
.profile-settings .primary-button,
.profile-settings .secondary-button { width: 100%; min-height: 47px; }
.profile-settings .password-form { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.profile-settings .password-form h3 { margin: 0 0 17px; color: #e8e9ed; font-size: 15px; }
.profile-overview { display: grid; gap: 18px; }
.profile-module { padding: 24px; border: 1px solid rgba(255, 255, 255, 0.13); background: #0d0e11; }
.profile-module .profile-friends { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 21px; }
.profile-module .profile-friend { border-radius: 4px; background: #090a0c; transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.profile-module .profile-friend:hover { transform: translateY(-2px); border-color: rgba(255, 75, 99, 0.55); background: #111217; }
.profile-module .profile-friend [hidden] { display: none !important; }
.profile-module .profile-history { margin-top: 16px; }
.profile-module .profile-history-row { padding: 13px 0; }
.profile-module .profile-history-row:first-child { border-top: 0; }

/* Motion language shared by product screens. */
@keyframes ui-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ui-sheen { 0%, 100% { opacity: 0.22; transform: translateX(-18%); } 50% { opacity: 0.62; transform: translateX(18%); } }
@keyframes ui-breathe { 0%, 100% { box-shadow: 0 0 0 rgba(255, 30, 57, 0); } 50% { box-shadow: 0 0 30px rgba(255, 30, 57, 0.17); } }
body:not([data-page="landing"]) main > * { animation: ui-rise 460ms cubic-bezier(.2,.8,.2,1) both; }
body:not([data-page="landing"]) main > *:nth-child(2) { animation-delay: 70ms; }
[data-animate] { animation: ui-rise 520ms cubic-bezier(.2,.8,.2,1) both; }
.app-shell, .challenge-game, .social-shell, .lobby-shell, .statistics-grid, .leaderboard-panel, .profile-command { animation: ui-breathe 4.2s ease-in-out infinite; }
.topbar .brand-logo { transition: transform 240ms ease, filter 240ms ease; }
.topbar .brand:hover .brand-logo { transform: rotate(-4deg) scale(1.06); filter: drop-shadow(0 0 10px rgba(255, 40, 64, 0.5)); }
.primary-button, .secondary-button, .spin-button, .header-action, .notification-button, .mode-choice, .friend-item, .leaderboard-row, .deck-main, .deck-rail a { transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.primary-button:hover, .spin-button:hover { transform: translateY(-2px); box-shadow: 0 16px 35px rgba(255, 27, 53, 0.3); }
.secondary-button:hover, .mode-choice:hover, .friend-item:hover, .leaderboard-row:hover { transform: translateX(3px); }
.statistics-grid article { transition: background 200ms ease, transform 200ms ease; }
.statistics-grid article:hover { transform: translateY(-3px); background: #14151a; }
.challenge-target, .live-dot { animation: ui-breathe 2.2s ease-in-out infinite; }

@media (max-width: 760px) {
  .profile-studio { width: calc(100% - 24px); padding: 22px 0 42px; }
  .profile-command { padding: 18px 16px 0; }
  .profile-command::after { top: -110px; right: -115px; width: 245px; height: 245px; }
  .profile-presence { grid-template-columns: 76px minmax(0, 1fr); gap: 13px; padding: 23px 0 19px; }
  .studio-avatar { width: 76px; height: 76px; }
  .studio-avatar .profile-avatar-fallback { font-size: 28px; }
  .profile-title h1 { max-width: 210px; font-size: 31px; }
  .profile-title .profile-handle { margin-top: 5px; font-size: 12px; }
  .profile-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
  .profile-actions .primary-button { min-width: 150px; min-height: 42px; font-size: 10px; }
  .profile-actions .plain-link { font-size: 9px; }
  .profile-pulse { margin: 0 -16px; }
  .profile-pulse > div { padding: 13px 10px 15px; }
  .profile-pulse > div:first-child { padding-left: 16px; }
  .profile-pulse strong { font-size: 15px; }
  .profile-workbench { grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
  .profile-settings, .profile-module { padding: 17px; }
  .profile-module .profile-friends { grid-template-columns: 1fr; margin-top: 16px; }
  .profile-command-line small { display: none; }
  body:not([data-page="landing"]) main > * { animation-duration: 360ms; }
  .deposit-reset-banner { align-items: flex-start; flex-direction: column; gap: 13px; margin-top: 18px; padding: 16px; }
  .deposit-reset-banner strong { font-size: 27px; text-align: left; }
}

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

/* Premium landing rebuild. Kept at the end to retire the earlier split mobile landing. */
body[data-page="landing"] {
  --landing-red: #f51d3f;
  --landing-red-hot: #ff516a;
  --landing-green: #28bf83;
  --landing-ink: #050506;
  --landing-panel: #0b0b0d;
  --landing-line: rgba(255, 255, 255, 0.13);
  overflow-x: clip;
  color: #f5f5f7;
  background: var(--landing-ink);
}
html:has(body[data-page="landing"]) { scroll-behavior: auto; }

body[data-page="landing"]::before { display: none; }
body[data-page="landing"] .landing-main { overflow: clip; }
body[data-page="landing"] .mobile-app-home { display: none !important; }

.landing-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: 2px;
  pointer-events: none;
}
.landing-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--landing-red);
  box-shadow: 0 0 14px rgba(245, 29, 63, 0.7);
}

body[data-page="landing"] .landing-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 80;
  display: grid;
  min-height: 82px;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  padding: 12px max(30px, calc((100vw - 1380px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 5, 6, 0.48);
  backdrop-filter: blur(18px) saturate(1.25);
  transition: min-height 280ms ease, background 280ms ease, transform 280ms ease;
}
body[data-page="landing"] .landing-topbar.is-scrolled {
  min-height: 68px;
  background: rgba(5, 5, 6, 0.91);
}
body[data-page="landing"] .landing-topbar .brand { justify-self: start; gap: 11px; }
body[data-page="landing"] .landing-topbar .brand-logo {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 0 12px rgba(245, 29, 63, 0.24));
  transition: transform 400ms cubic-bezier(.2,.8,.2,1);
}
body[data-page="landing"] .landing-topbar .brand:hover .brand-logo { transform: rotate(-8deg) scale(1.06); }
body[data-page="landing"] .landing-topbar .brand strong { font-size: 15px; letter-spacing: 0.12em; }
body[data-page="landing"] .landing-topbar .brand small { margin-top: 2px; color: #ff5b71; font-size: 8px; letter-spacing: 0.34em; }
body[data-page="landing"] .desktop-nav { display: flex; justify-content: center; gap: clamp(22px, 3vw, 48px); }
body[data-page="landing"] .desktop-nav a {
  position: relative;
  padding: 10px 0;
  color: #c2c4ca;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
body[data-page="landing"] .desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--landing-red);
  transition: transform 240ms ease;
}
body[data-page="landing"] .desktop-nav a:hover { color: #fff; }
body[data-page="landing"] .desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
body[data-page="landing"] .account-dock { justify-self: end; gap: 8px; }
body[data-page="landing"] .header-account-link,
body[data-page="landing"] .header-account-create { min-height: 38px; padding-inline: 15px; border-radius: 0; font-size: 9px; letter-spacing: 0.08em; }
body[data-page="landing"] .header-account-link { border: 0; background: transparent; }
body[data-page="landing"] .header-account-create { border: 1px solid rgba(255, 255, 255, 0.34); background: rgba(255,255,255,0.04); }
body[data-page="landing"] .header-account-create:hover { border-color: var(--landing-red); background: var(--landing-red); }
body[data-page="landing"] .user-pill { color: inherit; }
body[data-page="landing"] .account-avatar { width: 42px; height: 42px; flex-basis: 42px; }
body[data-page="landing"] .mobile-menu-button,
body[data-page="landing"] .mobile-menu { display: none; }

.premium-hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: 130px max(30px, calc((100vw - 1380px) / 2)) 132px;
  isolation: isolate;
  background: #050506;
}
.hero-media {
  position: absolute;
  inset: -5% -3%;
  z-index: -4;
  background-image: url("./assets/redline-hero-v2.jpg");
  background-position: center center;
  background-size: cover;
  filter: saturate(0.9) contrast(1.04);
  transform: scale(1.04);
  will-change: transform;
  animation: hero-media-in 1.6s cubic-bezier(.2,.75,.2,1) both;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5,5,6,0.96) 0%, rgba(5,5,6,0.72) 35%, rgba(5,5,6,0.1) 72%),
    linear-gradient(180deg, rgba(5,5,6,0.42) 0%, transparent 38%, rgba(5,5,6,0.78) 100%);
}
.hero-orbit {
  position: absolute;
  z-index: -2;
  width: min(48vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}
.orbit-one { right: -13vw; bottom: -36%; animation: orbit-turn 28s linear infinite; }
.orbit-one::after {
  position: absolute;
  top: 13%;
  left: 13%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--landing-red);
  box-shadow: 0 0 20px var(--landing-red);
}
.orbit-two { right: -4vw; bottom: -23%; width: min(35vw, 530px); border-style: dashed; opacity: 0.65; animation: orbit-turn-back 36s linear infinite; }
.premium-hero-copy { position: relative; z-index: 3; width: min(700px, 58vw); }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 24px;
  color: #d8d9dd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  animation: hero-copy-in 900ms 250ms cubic-bezier(.2,.8,.2,1) both;
}
.premium-hero h1 {
  max-width: 750px;
  margin: 0;
  color: #f7f7f8;
  font-size: clamp(66px, 7.8vw, 124px);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
  animation: hero-copy-in 1s 330ms cubic-bezier(.2,.8,.2,1) both;
}
.premium-hero h1 .hero-line { display: block; width: max-content; max-width: 100%; padding-top: 0.015em; color: #f7f7f8; }
.premium-hero h1 .hero-line + .hero-line { margin-top: 0.07em; }
.premium-hero h1 .hero-line-outline { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.72); }
.premium-hero h1 em.hero-line { padding-top: 0.06em; padding-bottom: 0.04em; color: var(--landing-red); font-style: normal; text-shadow: 0 0 42px rgba(245, 29, 63, 0.22); }
.hero-lead {
  max-width: 470px;
  margin: 30px 0 32px;
  color: #b2b4bb;
  font-size: 16px;
  line-height: 1.65;
  animation: hero-copy-in 1s 420ms cubic-bezier(.2,.8,.2,1) both;
}
.premium-hero .hero-actions { display: flex; align-items: center; gap: 26px; animation: hero-copy-in 1s 510ms cubic-bezier(.2,.8,.2,1) both; }
.hero-cta,
.outline-cta {
  display: inline-flex;
  min-width: 236px;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 20px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-cta { border: 1px solid var(--landing-red); background: var(--landing-red); box-shadow: 0 14px 50px rgba(245, 29, 63, 0.22); }
.hero-cta { position: relative; overflow: hidden; }
.hero-cta::after { position: absolute; top: -35%; bottom: -35%; left: -28%; width: 18%; content: ""; transform: skewX(-18deg); background: rgba(255,255,255,0.24); transition: left 520ms cubic-bezier(.2,.8,.2,1); }
.hero-cta:hover::after { left: 112%; }
.hero-cta b,
.outline-cta b { font-size: 21px; font-weight: 400; transition: transform 220ms ease; }
.hero-cta:hover { background: #ff3654; }
.hero-cta:hover b,
.outline-cta:hover b { transform: translate(3px, -3px); }
.hero-login {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  border-radius: 0;
  color: #f2f2f4;
  font-size: 11px;
  background: transparent;
}
.hero-login:hover { border-color: var(--landing-red); color: #ff6a7e; }
.hero-status {
  position: absolute;
  right: max(30px, calc((100vw - 1380px) / 2));
  bottom: 30px;
  left: max(30px, calc((100vw - 1380px) / 2));
  display: grid;
  width: min(650px, 64vw);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,0.19);
}
.hero-status div { min-height: 62px; padding: 15px 20px 0 0; }
.hero-status div + div { padding-left: 20px; border-left: 1px solid rgba(255,255,255,0.15); }
.hero-status span { display: block; color: #858991; font-size: 8px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.hero-status strong { display: block; margin-top: 6px; color: #fff; font-size: 15px; }
.hero-status div:last-child { display: flex; align-items: center; gap: 9px; padding-top: 0; }
.hero-status div:last-child strong { margin: 0; color: #64dba9; font-size: 11px; text-transform: uppercase; }
.status-pulse { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--landing-green); box-shadow: 0 0 12px var(--landing-green); animation: landing-pulse 1.7s ease-in-out infinite; }
.premium-hero .hero-scroll {
  right: max(30px, calc((100vw - 1380px) / 2));
  bottom: 31px;
  left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a9acb3;
  writing-mode: horizontal-tb;
}
.premium-hero .hero-scroll span { position: relative; width: 54px; height: 1px; overflow: hidden; background: rgba(255,255,255,0.24); }
.premium-hero .hero-scroll span::after { position: absolute; inset: 0; content: ""; transform: translateX(-100%); background: #fff; animation: scroll-line 2s ease-in-out infinite; }
.premium-hero .hero-scroll small { font-size: 8px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }

.kinetic-strip { overflow: hidden; scroll-margin-top: 70px; border-block: 1px solid var(--landing-line); background: #08080a; }
.kinetic-track {
  display: flex;
  width: max-content;
  align-items: center;
  padding: 24px 0;
  animation: ticker-right 26s linear infinite;
}
.kinetic-group { display: flex; flex: 0 0 auto; align-items: center; gap: 34px; padding-right: 34px; }
.kinetic-track span { font-size: clamp(32px, 4.3vw, 74px); font-weight: 900; line-height: 0.9; letter-spacing: 0; }
.kinetic-track .word-red { color: var(--landing-red); }
.kinetic-track .word-black { color: #111216; -webkit-text-stroke: 1px rgba(255,255,255,0.72); }
.kinetic-track .word-zero { color: #23b77b; }
.kinetic-track i { color: var(--landing-red); font-size: 14px; font-style: normal; }

.section-index { margin: 0 0 19px; color: #ff5d73; font-size: 9px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.experience-section {
  display: grid;
  width: min(1380px, calc(100% - 60px));
  min-height: 860px;
  grid-template-columns: minmax(340px, 0.72fr) minmax(560px, 1.28fr);
  align-items: center;
  gap: clamp(50px, 7vw, 120px);
  margin: 0 auto;
  padding: 120px 0;
}
.experience-copy { position: relative; z-index: 3; }
.experience-copy h2,
.live-section h2,
.social-copy h2,
.final-call h2 {
  margin: 0;
  color: #f2f2f4;
  font-size: clamp(48px, 5.4vw, 84px);
  line-height: 0.88;
  letter-spacing: 0;
}
.experience-copy h2 span,
.social-copy h2 span,
.final-call h2 span { color: var(--landing-red); }
.experience-copy > p:not(.section-index),
.social-copy > p:not(.section-index) { max-width: 430px; margin: 28px 0; color: #989ba4; font-size: 15px; line-height: 1.7; }
.experience-copy > a { display: inline-flex; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.3); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.experience-copy > a b { color: var(--landing-red); font-size: 17px; }

.experience-stage {
  position: relative;
  display: grid;
  min-height: 680px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px),
    #09090b;
  background-size: 52px 52px;
}
.experience-stage::before {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  content: "";
  pointer-events: none;
}
.experience-stage::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle 190px at var(--stage-x, 50%) var(--stage-y, 50%), rgba(245,29,63,0.1), transparent 72%);
  opacity: 0;
  transition: opacity 260ms ease;
}
.experience-stage:hover::after { opacity: 1; }
.stage-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54%;
  height: 54%;
  border: 1px solid rgba(245,29,63,0.17);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 110px rgba(245,29,63,0.12), inset 0 0 90px rgba(245,29,63,0.06);
}
.experience-stage .hero-machine { width: min(560px, 68%); justify-self: center; transition: transform 450ms cubic-bezier(.2,.8,.2,1); }
.experience-stage:hover .hero-machine { transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(1.025); }
.experience-stage .hero-machine.stage-spin { animation: stage-kick 720ms cubic-bezier(.2,.8,.2,1); }
.experience-stage .number-track span { transform: translate(-50%, -50%) rotate(calc(var(--i) * 30deg)) translateY(-258px) rotate(calc(var(--i) * -30deg)); }
.experience-stage .hero-emblem { width: 57%; }
.machine-ball {
  position: absolute;
  top: 4%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px rgba(255,255,255,0.88);
  animation: ball-orbit 7s linear infinite;
  transform-origin: 0 calc(46% + 240px);
}

.experience-stage .landing-wheel-wrap {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  z-index: 2;
  width: min(500px, 68%);
  filter: drop-shadow(0 34px 52px rgba(0,0,0,0.58));
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
}
.experience-stage:hover .landing-wheel-wrap { transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(1.018); }
.experience-stage .landing-wheel {
  animation: landing-wheel-cruise 16s linear infinite;
  transition: none;
  will-change: transform;
}
.experience-stage .landing-wheel-center {
  z-index: 3;
  transform: translateZ(18px);
}
.experience-stage .landing-wheel-center span { color: #fff; font-size: 64px; font-style: italic; line-height: 0.8; }
.experience-stage .landing-wheel-center strong { margin-top: 8px; color: #ff6075; font-size: 9px; letter-spacing: 0.2em; }
.stage-bets {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.12);
}
.stage-bet {
  display: grid;
  min-height: 64px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 0;
  border-radius: 0;
  color: #d4d5da;
  background: rgba(8,8,10,0.94);
  transition: color 180ms ease, background 180ms ease;
}
.stage-bet i { width: 9px; height: 9px; border-radius: 50%; background: #e02743; box-shadow: 0 0 12px rgba(224,39,67,0.45); }
.stage-bet[data-stage-color="black"] i { border: 1px solid #777; background: #17171a; box-shadow: none; }
.stage-bet[data-stage-color="green"] i { background: #21a96f; box-shadow: 0 0 12px rgba(33,169,111,0.42); }
.stage-bet span { font-size: 10px; font-weight: 800; text-align: left; }
.stage-bet b { color: #777c86; font-size: 9px; }
.stage-bet.is-active { color: #fff; background: #17171a; }
.stage-bet.is-active b { color: #fff; }

.live-section { padding: 120px max(30px, calc((100vw - 1380px) / 2)); border-block: 1px solid var(--landing-line); background: #09090b; }
.live-section > header { display: grid; grid-template-columns: 1fr minmax(260px, 420px); align-items: end; gap: 60px; margin-bottom: 58px; }
.live-section > header > p { margin: 0 0 4px; color: #9699a2; font-size: 14px; line-height: 1.7; }
.winner-viewport { position: relative; overflow: hidden; }
.winner-viewport::after { position: absolute; top: 0; right: 0; bottom: 0; width: 90px; content: ""; pointer-events: none; background: linear-gradient(90deg, transparent, #09090b); }
body[data-page="landing"] .winner-list { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 1px; background: rgba(255,255,255,0.1); }
body[data-page="landing"] .winner-item {
  position: relative;
  display: grid;
  min-height: 112px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 17px;
  border: 0;
  border-radius: 0;
  background: #0d0d10;
  transition: background 220ms ease, transform 220ms ease;
}
body[data-page="landing"] .winner-item::before { position: absolute; top: 0; right: 0; left: 0; height: 2px; content: ""; transform: scaleX(0); transform-origin: left; background: var(--landing-red); transition: transform 240ms ease; }
body[data-page="landing"] .winner-item:hover { z-index: 2; transform: translateY(-4px); background: #141417; }
body[data-page="landing"] .winner-item:hover::before { transform: scaleX(1); }
body[data-page="landing"] .winner-item img,
body[data-page="landing"] .winner-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
body[data-page="landing"] .winner-avatar { display: grid; place-items: center; border: 1px solid rgba(245,29,63,0.5); background: #8f1023; }
body[data-page="landing"] .winner-item strong { font-size: 12px; }
body[data-page="landing"] .winner-item small { color: #777c85; font-size: 9px; }
body[data-page="landing"] .winner-item em { color: #ff6177; font-size: 13px; font-weight: 900; }

.social-section {
  display: grid;
  width: min(1380px, calc(100% - 60px));
  min-height: 760px;
  grid-template-columns: minmax(480px, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(50px, 8vw, 130px);
  margin: 0 auto;
  padding: 110px 0;
}
.social-visual {
  position: relative;
  display: grid;
  min-height: 580px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: #09090b;
}
.social-visual::before,
.social-visual::after { position: absolute; width: 58%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; content: ""; }
.social-visual::before { transform: translate(-32%, -17%); animation: social-drift 8s ease-in-out infinite; }
.social-visual::after { transform: translate(32%, 17%); border-color: rgba(245,29,63,0.23); animation: social-drift 8s -4s ease-in-out infinite reverse; }
.social-visual img { position: relative; z-index: 2; width: 39%; filter: drop-shadow(0 0 30px rgba(245,29,63,0.3)); animation: emblem-float 5s ease-in-out infinite; }
.social-line { position: absolute; width: 60%; height: 1px; background: linear-gradient(90deg, transparent, rgba(245,29,63,0.75), transparent); }
.line-a { transform: rotate(24deg); }
.line-b { transform: rotate(-24deg); }
.outline-cta { min-width: 220px; border: 1px solid rgba(255,255,255,0.35); background: transparent; }
.outline-cta:hover { border-color: var(--landing-red); background: rgba(245,29,63,0.08); }

.final-call {
  position: relative;
  display: flex;
  min-height: 720px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--landing-line);
  text-align: center;
}
.final-call-media { position: absolute; inset: -12%; z-index: -2; background: url("./assets/redline-hero-v2.jpg") center 58% / cover; filter: saturate(0.55) brightness(0.5); transform: scaleX(-1); }
.final-call::after { position: absolute; inset: 0; z-index: -1; content: ""; background: rgba(5,5,6,0.68); }
.final-call-copy { display: flex; align-items: center; flex-direction: column; }
.final-call h2 { font-size: clamp(62px, 8vw, 122px); }
.final-call .hero-cta { min-width: 280px; margin-top: 38px; }

.landing-footer {
  display: grid;
  min-height: 150px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 34px max(30px, calc((100vw - 1380px) / 2));
  border-top: 1px solid var(--landing-line);
  background: #050506;
}
.footer-brand { display: inline-flex; align-items: center; justify-self: start; gap: 9px; color: #fff; }
.footer-brand img { width: 42px; height: 42px; object-fit: contain; }
.footer-brand strong,
.footer-brand small { display: block; }
.footer-brand strong { font-size: 13px; letter-spacing: 0.11em; }
.footer-brand small { color: #ff5c72; font-size: 7px; letter-spacing: 0.32em; }
.landing-footer > div { display: flex; gap: 30px; }
.landing-footer > div a { color: #9498a1; font-size: 9px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.landing-footer > div a:hover { color: #fff; }
.landing-footer .easter { justify-self: end; color: #555861; }

body[data-page="landing"] [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 850ms ease, transform 850ms cubic-bezier(.16,.8,.2,1); }
body[data-page="landing"] [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes hero-media-in { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1.04); } }
@keyframes hero-copy-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes orbit-turn { to { transform: rotate(360deg); } }
@keyframes orbit-turn-back { to { transform: rotate(-360deg); } }
@keyframes scroll-line { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }
@keyframes ticker-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes social-drift { 0%,100% { margin: -12px 0 0 -8px; } 50% { margin: 12px 0 0 8px; } }
@keyframes ball-orbit { to { transform: rotate(360deg); } }
@keyframes stage-kick { 0% { filter: brightness(1); } 45% { filter: brightness(1.35) drop-shadow(0 0 18px rgba(245,29,63,0.3)); } 100% { filter: brightness(1); } }
@keyframes landing-wheel-cruise { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  body[data-page="landing"] .landing-topbar { grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr); }
  body[data-page="landing"] .desktop-nav { gap: 20px; }
  .premium-hero-copy { width: 66vw; }
  .experience-section { grid-template-columns: 0.7fr 1.3fr; gap: 40px; }
  .experience-stage { min-height: 600px; }
  .experience-stage .hero-machine { width: min(480px, 70%); }
  .experience-stage .number-track span { transform: translate(-50%, -50%) rotate(calc(var(--i) * 30deg)) translateY(-218px) rotate(calc(var(--i) * -30deg)); }
  .experience-stage .landing-wheel-wrap { width: min(430px, 72%); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(1) { transform: rotate(15deg) translateY(-174px) rotate(-15deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(2) { transform: rotate(45deg) translateY(-174px) rotate(-45deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(3) { transform: rotate(75deg) translateY(-174px) rotate(-75deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(4) { transform: rotate(105deg) translateY(-174px) rotate(-105deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(5) { transform: rotate(135deg) translateY(-174px) rotate(-135deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(6) { transform: rotate(165deg) translateY(-174px) rotate(-165deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(7) { transform: rotate(195deg) translateY(-174px) rotate(-195deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(8) { transform: rotate(225deg) translateY(-174px) rotate(-225deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(9) { transform: rotate(255deg) translateY(-174px) rotate(-255deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(10) { transform: rotate(285deg) translateY(-174px) rotate(-285deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(11) { transform: rotate(315deg) translateY(-174px) rotate(-315deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(12) { transform: rotate(345deg) translateY(-174px) rotate(-345deg); }
}

@media (max-width: 760px) {
  body[data-page="landing"] { background: #050506; }
  body[data-page="landing"].menu-open { overflow: hidden; }
  body[data-page="landing"].menu-open .landing-topbar { background: #050506; backdrop-filter: none; }
  body[data-page="landing"] .landing-topbar {
    display: grid;
    min-height: 68px;
    grid-template-columns: 44px minmax(0, 1fr) minmax(72px, auto);
    gap: 6px;
    padding: 8px 12px;
    background: rgba(5,5,6,0.88);
  }
  body[data-page="landing"] .landing-topbar.is-scrolled { min-height: 62px; }
  body[data-page="landing"] .landing-topbar .desktop-nav { display: none; }
  body[data-page="landing"] .landing-topbar .brand { grid-column: 2; grid-row: 1; justify-self: center; gap: 6px; }
  body[data-page="landing"] .landing-topbar .brand-logo { width: 37px; height: 37px; }
  body[data-page="landing"] .landing-topbar .brand strong { font-size: 11px; }
  body[data-page="landing"] .landing-topbar .brand small { font-size: 6px; }
  body[data-page="landing"] .mobile-menu-button {
    display: grid;
    grid-column: 1;
    grid-row: 1;
    width: 44px;
    height: 44px;
    align-content: center;
    gap: 5px;
    padding: 11px;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: transparent;
  }
  body[data-page="landing"] .mobile-menu-button span { display: block; width: 21px; height: 1px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
  body[data-page="landing"] .mobile-menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body[data-page="landing"] .mobile-menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  body[data-page="landing"] .mobile-menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  body[data-page="landing"] .mobile-menu-button:focus,
  body[data-page="landing"] .mobile-menu-button:focus-visible { outline: 0; box-shadow: none; }
  body[data-page="landing"] .account-dock { grid-column: 3 !important; grid-row: 1 !important; align-self: center; justify-self: end; gap: 2px; }
  body[data-page="landing"] .header-account-link,
  body[data-page="landing"] .header-account-create { min-height: 31px; padding-inline: 5px; border: 0; font-size: 7px; letter-spacing: 0; white-space: nowrap; background: transparent; }
  body[data-page="landing"] .header-account-link { color: #ededf0 !important; }
  body[data-page="landing"] .header-account-create { color: #ff6177; }
  body[data-page="landing"] .account-copy { display: block; text-align: right; }
  body[data-page="landing"] .account-copy strong { max-width: 67px; font-size: 9px; }
  body[data-page="landing"] .account-copy small { max-width: 67px; overflow: hidden; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
  body[data-page="landing"] #logoutButton { display: none; }
  body[data-page="landing"] .account-avatar { width: 36px; height: 36px; flex-basis: 36px; }

  body[data-page="landing"] .mobile-menu {
    position: fixed;
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    z-index: -1;
    display: flex;
    width: 100vw;
    min-height: 100svh;
    flex-direction: column;
    padding: 104px 22px 28px;
    background: rgba(5,5,6,0.98);
    backdrop-filter: blur(22px);
    opacity: 0;
    transform: translateY(-14px);
    transition: opacity 260ms ease, transform 260ms cubic-bezier(.2,.8,.2,1);
  }
  body[data-page="landing"] .mobile-menu.is-open { opacity: 1; transform: none; }
  body[data-page="landing"] .mobile-menu.is-closing { opacity: 0; transform: translateY(-14px); }
  body[data-page="landing"] .mobile-menu[hidden] { display: none !important; }
  .mobile-menu-label { margin-bottom: 10px; color: #70747c; font-size: 8px; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }
  body[data-page="landing"] .mobile-menu a {
    display: grid;
    min-height: 69px;
    grid-template-columns: 26px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.11);
    color: #fff;
  }
  body[data-page="landing"] .mobile-menu a span { color: #ff536a; font-size: 8px; font-weight: 900; letter-spacing: 0.12em; }
  body[data-page="landing"] .mobile-menu a strong { font-size: 22px; letter-spacing: 0; }
  body[data-page="landing"] .mobile-menu a b { color: #777b84; font-size: 20px; font-weight: 400; }
  body[data-page="landing"] .mobile-menu p { max-width: 230px; margin: auto 0 0; color: #737780; font-size: 12px; line-height: 1.5; }

  .premium-hero {
    min-height: 100svh;
    align-items: flex-end;
    padding: 112px 18px 118px;
  }
  .hero-media {
    inset: 0;
    background-position: 67% center;
    transform: scale(1.02);
    animation-name: hero-media-mobile-in;
  }
  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(5,5,6,0.38) 0%, rgba(5,5,6,0.06) 27%, rgba(5,5,6,0.9) 72%, #050506 100%),
      linear-gradient(90deg, rgba(5,5,6,0.72), transparent 76%);
  }
  .hero-orbit { width: 90vw; }
  .orbit-one { right: -48vw; bottom: 13%; }
  .orbit-two { right: -28vw; bottom: 19%; width: 66vw; }
  .premium-hero-copy { width: 100%; }
  .hero-eyebrow { margin-bottom: 15px; font-size: 8px; }
  .premium-hero h1 { max-width: 380px; font-size: clamp(46px, 15.3vw, 65px); line-height: 0.9; }
  .premium-hero h1 .hero-line-outline { color: #f7f7f8; -webkit-text-stroke: 0; }
  .premium-hero h1 em.hero-line { padding-top: 0.08em; padding-bottom: 0.05em; }
  .premium-hero h1 .hero-line + .hero-line { margin-top: 0.09em; }
  .hero-lead { max-width: 330px; margin: 20px 0 22px; font-size: 13px; line-height: 1.55; }
  .premium-hero .hero-actions { width: 100%; gap: 0; }
  .hero-cta { width: 100%; min-height: 54px; min-width: 0; }
  .premium-hero .hero-login { display: none; }
  .hero-status {
    right: 18px;
    bottom: 17px;
    left: 18px;
    width: auto;
  }
  .hero-status div { min-height: 48px; padding: 10px 8px 0 0; }
  .hero-status div + div { padding-left: 8px; }
  .hero-status span { font-size: 6px; letter-spacing: 0.06em; }
  .hero-status strong { margin-top: 4px; font-size: 11px; }
  .hero-status div:last-child { gap: 6px; }
  .hero-status div:last-child strong { font-size: 8px; }
  .status-pulse { width: 6px; height: 6px; flex-basis: 6px; }
  .premium-hero .hero-scroll { display: none; }

  .kinetic-track { padding: 18px 0; animation-duration: 19s; }
  .kinetic-group { gap: 18px; padding-right: 18px; }
  .kinetic-track span { font-size: 35px; }
  .kinetic-track i { font-size: 8px; }

  .experience-section {
    display: flex;
    width: 100%;
    min-height: 0;
    flex-direction: column;
    gap: 34px;
    padding: 76px 16px 16px;
  }
  .experience-copy { width: 100%; }
  .experience-copy h2,
  .live-section h2,
  .social-copy h2 { font-size: 42px; }
  .experience-copy > p:not(.section-index),
  .social-copy > p:not(.section-index) { margin: 20px 0; font-size: 13px; }
  .experience-stage { width: 100%; min-height: 500px; background-size: 38px 38px; }
  .experience-stage::before { inset: 12px; }
  .experience-stage .hero-machine { width: min(310px, 73vw); }
  .experience-stage .number-track span { width: 25px; height: 25px; font-size: 7px; transform: translate(-50%, -50%) rotate(calc(var(--i) * 30deg)) translateY(-142px) rotate(calc(var(--i) * -30deg)); }
  .machine-ball { transform-origin: 0 calc(46% + 132px); }
  .experience-stage .landing-wheel-wrap { width: min(310px, 82vw); }
  .experience-stage .landing-wheel-wrap .wheel { border-width: 7px; }
  .experience-stage .landing-wheel-wrap .slot { width: 26px; height: 26px; margin: -13px; font-size: 9px; }
  .experience-stage .landing-wheel-wrap .slot:nth-child(1) { transform: rotate(15deg) translateY(-127px) rotate(-15deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(2) { transform: rotate(45deg) translateY(-127px) rotate(-45deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(3) { transform: rotate(75deg) translateY(-127px) rotate(-75deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(4) { transform: rotate(105deg) translateY(-127px) rotate(-105deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(5) { transform: rotate(135deg) translateY(-127px) rotate(-135deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(6) { transform: rotate(165deg) translateY(-127px) rotate(-165deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(7) { transform: rotate(195deg) translateY(-127px) rotate(-195deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(8) { transform: rotate(225deg) translateY(-127px) rotate(-225deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(9) { transform: rotate(255deg) translateY(-127px) rotate(-255deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(10) { transform: rotate(285deg) translateY(-127px) rotate(-285deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(11) { transform: rotate(315deg) translateY(-127px) rotate(-315deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(12) { transform: rotate(345deg) translateY(-127px) rotate(-345deg); }
  .experience-stage .landing-wheel-center span { font-size: 42px; }
  .experience-stage .landing-wheel-center strong { font-size: 7px; }
  .stage-bets { right: 12px; bottom: 12px; left: 12px; }
  .stage-bet { min-height: 55px; grid-template-columns: auto minmax(0,1fr); gap: 7px; padding: 0 9px; }
  .stage-bet span { font-size: 9px; }
  .stage-bet b { display: none; }

  .live-section { padding: 76px 16px; }
  .live-section > header { display: block; margin-bottom: 32px; }
  .live-section > header > p { max-width: 340px; margin-top: 22px; font-size: 12px; }
  .winner-viewport { width: calc(100% + 16px); overflow-x: auto; padding-right: 16px; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .winner-viewport::-webkit-scrollbar { display: none; }
  .winner-viewport::after { display: none; }
  body[data-page="landing"] .winner-list { display: flex; width: max-content; background: transparent; }
  body[data-page="landing"] .winner-item { width: min(78vw, 280px); min-height: 92px; scroll-snap-align: start; border-right: 1px solid rgba(255,255,255,0.1); }

  .social-section {
    display: flex;
    width: 100%;
    min-height: 0;
    flex-direction: column-reverse;
    gap: 34px;
    padding: 76px 16px;
  }
  .social-copy { width: 100%; }
  .social-visual { width: 100%; min-height: 390px; }
  .social-visual img { width: 44%; }
  .outline-cta { width: 100%; min-height: 54px; }

  .final-call { min-height: 640px; padding: 60px 18px; }
  .final-call-media { background-position: 65% center; }
  .final-call h2 { font-size: clamp(52px, 16vw, 72px); }
  .final-call .hero-cta { min-width: 0; margin-top: 28px; }

  .landing-footer {
    min-height: 210px;
    grid-template-columns: 1fr auto;
    align-content: center;
    gap: 28px 16px;
    padding: 34px 18px;
  }
  .landing-footer > div { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 12px; }
  .landing-footer .easter { grid-column: 2; grid-row: 1; }
}

@media (max-width: 380px) {
  .premium-hero { padding-inline: 14px; }
  .premium-hero h1 { font-size: 45px; }
  .hero-lead { font-size: 12px; }
  .hero-status { right: 14px; left: 14px; }
  .experience-copy h2,
  .live-section h2,
  .social-copy h2 { font-size: 37px; }
  .experience-stage { min-height: 450px; }
  .experience-stage .hero-machine { width: 270px; }
  .experience-stage .number-track span { transform: translate(-50%, -50%) rotate(calc(var(--i) * 30deg)) translateY(-123px) rotate(calc(var(--i) * -30deg)); }
  .machine-ball { transform-origin: 0 calc(46% + 114px); }
  .experience-stage .landing-wheel-wrap { width: 270px; }
  .experience-stage .landing-wheel-wrap .slot:nth-child(1) { transform: rotate(15deg) translateY(-109px) rotate(-15deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(2) { transform: rotate(45deg) translateY(-109px) rotate(-45deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(3) { transform: rotate(75deg) translateY(-109px) rotate(-75deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(4) { transform: rotate(105deg) translateY(-109px) rotate(-105deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(5) { transform: rotate(135deg) translateY(-109px) rotate(-135deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(6) { transform: rotate(165deg) translateY(-109px) rotate(-165deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(7) { transform: rotate(195deg) translateY(-109px) rotate(-195deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(8) { transform: rotate(225deg) translateY(-109px) rotate(-225deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(9) { transform: rotate(255deg) translateY(-109px) rotate(-255deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(10) { transform: rotate(285deg) translateY(-109px) rotate(-285deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(11) { transform: rotate(315deg) translateY(-109px) rotate(-315deg); }
  .experience-stage .landing-wheel-wrap .slot:nth-child(12) { transform: rotate(345deg) translateY(-109px) rotate(-345deg); }
}

@media (hover: none), (pointer: coarse) {
  .experience-stage .hero-machine { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="landing"] .hero-media,
  body[data-page="landing"] .kinetic-track,
  body[data-page="landing"] .hero-orbit,
  body[data-page="landing"] .machine-ball,
  body[data-page="landing"] .social-visual::before,
  body[data-page="landing"] .social-visual::after { animation: none !important; }
}

@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes hero-media-mobile-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1.02); } }
@keyframes easter-hit { 0%,100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-2px) scale(1.05); box-shadow: 0 0 28px rgba(245,29,63,0.28); } }

/* Redline notifications and landing roulette polish. */
.toast {
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: grid;
  width: min(390px, calc(100vw - 44px));
  max-width: none;
  min-height: 78px;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  overflow: hidden;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  color: #f7f7f9;
  background: rgba(10,10,13,0.94);
  box-shadow: 0 24px 70px rgba(0,0,0,0.58), inset 3px 0 0 #f51d3f;
  backdrop-filter: blur(20px) saturate(1.2);
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.98);
  pointer-events: none;
  transition: opacity 200ms ease, transform 300ms cubic-bezier(.16,.8,.2,1);
}
.toast.show { opacity: 1; transform: none; }
.toast-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(245,29,63,0.48);
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  background: rgba(245,29,63,0.12);
  box-shadow: 0 0 24px rgba(245,29,63,0.13);
}
.toast-copy { min-width: 0; }
.toast-copy small,
.toast-copy strong { display: block; }
.toast-copy small { margin-bottom: 5px; color: #ff5c73; font-size: 8px; font-weight: 900; letter-spacing: 0.16em; }
.toast-copy strong { overflow: hidden; color: #f4f4f6; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; }
.toast-timer { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; transform-origin: left; background: #f51d3f; }
.toast.show .toast-timer { animation: toast-timer 3.6s linear both; }
.toast[data-tone="success"] { box-shadow: 0 24px 70px rgba(0,0,0,0.58), inset 3px 0 0 #28bf83; }
.toast[data-tone="success"] .toast-mark { border-color: rgba(40,191,131,0.5); color: #7ce0b7; background: rgba(40,191,131,0.11); }
.toast[data-tone="success"] .toast-copy small { color: #63d6a6; }
.toast[data-tone="success"] .toast-timer { background: #28bf83; }
.toast[data-tone="error"] { box-shadow: 0 24px 70px rgba(0,0,0,0.58), inset 3px 0 0 #ff3d58; }
.toast[data-tone="error"] .toast-mark { color: #ff7488; }

.notification-button {
  border-color: rgba(255,255,255,0.16);
  background: rgba(15,15,19,0.9);
  box-shadow: inset 0 0 18px rgba(255,255,255,0.02);
}
.notification-button:hover { transform: translateY(-1px); border-color: rgba(245,29,63,0.72); box-shadow: 0 8px 24px rgba(245,29,63,0.12); }
.notification-button b { border: 2px solid #0a0a0d; animation: notification-badge 2s ease-in-out infinite; }
.notification-panel {
  overflow: hidden auto;
  border-color: rgba(255,255,255,0.16);
  border-radius: 8px;
  background: rgba(10,10,13,0.97);
  box-shadow: 0 30px 90px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(24px) saturate(1.2);
  animation: notification-panel-in 240ms cubic-bezier(.16,.8,.2,1) both;
}
.notification-panel > header { position: sticky; top: 0; z-index: 2; min-height: 82px; padding: 18px 20px; background: rgba(10,10,13,0.94); backdrop-filter: blur(18px); }
.notification-panel > header::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 1px; content: ""; background: linear-gradient(90deg, #f51d3f, rgba(245,29,63,0.04) 55%, transparent); }
.notification-panel h2 { font-size: 22px; letter-spacing: 0; }
.notification-panel header button { display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; transition: border-color 180ms ease, transform 180ms ease; }
.notification-panel header button:hover { transform: rotate(90deg); border-color: rgba(245,29,63,0.62); color: #fff; }
.notification-item {
  position: relative;
  min-height: 76px;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 14px 42px 14px 18px;
  transition: background 180ms ease, padding-left 180ms ease;
}
.notification-item::after { position: absolute; top: 50%; right: 18px; content: "→"; color: #60646d; font-size: 15px; transform: translateY(-50%); transition: color 180ms ease, transform 180ms ease; }
.notification-item:hover { padding-left: 21px; background: rgba(245,29,63,0.075); }
.notification-item:hover::after { color: #ff5d73; transform: translate(3px,-50%); }
.notification-item img,
.notification-avatar { width: 44px; height: 44px; border: 1px solid rgba(255,77,100,0.48); box-shadow: 0 0 18px rgba(245,29,63,0.11); }
.notification-item strong { font-size: 12px; }
.notification-item small { margin-top: 5px; font-size: 10px; }
.notification-invite::before { position: absolute; top: 12px; left: 51px; z-index: 2; width: 7px; height: 7px; border: 2px solid #0d0d10; border-radius: 50%; content: ""; background: #28bf83; box-shadow: 0 0 9px rgba(40,191,131,0.72); }

.experience-stage .landing-wheel-wrap::before,
.experience-stage .landing-wheel-wrap::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.experience-stage .landing-wheel-wrap::before {
  inset: -3.5%;
  z-index: 0;
  border: 1px solid rgba(255,255,255,0.14);
  background: #090a0d;
  box-shadow: inset 0 0 0 7px #17181d, inset 0 0 0 9px rgba(255,255,255,0.06), 0 0 54px rgba(245,29,63,0.16), 0 32px 60px rgba(0,0,0,0.6);
}
.experience-stage .landing-wheel-wrap::after {
  inset: 6%;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 0 18px rgba(0,0,0,0.62);
}
.experience-stage .landing-wheel { z-index: 1; }
.landing-ball-track {
  position: absolute;
  inset: 7.5%;
  z-index: 4;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  pointer-events: none;
  animation: landing-ball-orbit 5.4s linear infinite reverse;
}
.landing-ball-track i {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 13px;
  height: 13px;
  margin-left: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #e1e4ec 48%, #676d79 100%);
  box-shadow: 0 0 14px rgba(255,255,255,0.92), 0 0 22px rgba(245,29,63,0.42), 0 5px 10px rgba(0,0,0,0.5);
}
.experience-stage .landing-wheel-center { z-index: 5; border-width: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 0 34px rgba(0,0,0,0.7), 0 0 40px rgba(245,29,63,0.12); }
.experience-stage .landing-wheel-center::before { position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,0.09); border-radius: 50%; content: ""; }
.experience-stage .landing-wheel-center span { position: relative; z-index: 1; font-style: normal; }
.experience-stage .landing-wheel-center strong { position: relative; z-index: 1; }
.experience-stage .landing-wheel-center[data-tone="zero"] strong { color: #54d8a0; }
.experience-stage .landing-wheel-center[data-tone="black"] strong { color: #c6c9d0; }
.experience-stage .landing-wheel-center.is-changing { animation: landing-result-pulse 520ms cubic-bezier(.2,.8,.2,1); }
.landing-wheel-plaque {
  position: absolute;
  right: 8%;
  bottom: 10%;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  background: rgba(8,8,10,0.82);
  backdrop-filter: blur(8px);
}
.landing-wheel-plaque span { color: #d9dbe0; font-size: 7px; font-weight: 900; letter-spacing: 0.1em; }
.landing-wheel-plaque b { color: #55dca4; font-size: 6px; letter-spacing: 0.12em; }

@keyframes toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes notification-panel-in { from { opacity: 0; transform: translateY(-10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes notification-badge { 0%,100% { box-shadow: 0 0 0 0 rgba(230,24,53,0); } 50% { box-shadow: 0 0 0 4px rgba(230,24,53,0.16); } }
@keyframes landing-ball-orbit { to { transform: rotate(360deg); } }
@keyframes landing-result-pulse { 0% { transform: scale(0.96); filter: brightness(0.85); } 55% { transform: scale(1.045); filter: brightness(1.3); } 100% { transform: scale(1); filter: none; } }

@media (max-width: 760px) {
  .toast { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); left: 12px; width: auto; min-height: 72px; grid-template-columns: 38px minmax(0,1fr); gap: 11px; padding: 11px 13px; }
  .toast-mark { width: 38px; height: 38px; }
  .toast-copy strong { font-size: 11px; }
  .notification-panel { top: 70px; right: 10px; left: 10px; width: auto; max-height: calc(100svh - 82px); }
  .notification-panel > header { min-height: 72px; padding: 14px 16px; }
  .notification-panel h2 { font-size: 19px; }
  .notification-item { min-height: 72px; grid-template-columns: 40px minmax(0,1fr); padding: 12px 38px 12px 14px; }
  .notification-item img,
  .notification-avatar { width: 40px; height: 40px; }
  .notification-invite::before { left: 44px; }
  .landing-ball-track i { top: -5px; width: 10px; height: 10px; margin-left: -5px; }
  .landing-wheel-plaque { right: 6%; bottom: 8%; padding: 5px 6px; }
  .landing-wheel-plaque span { font-size: 6px; }
}
