/* ORESHNICK — Royal Walnut design system */

:root {
  --rw-bg: #090705;
  --rw-bg-2: #120d08;
  --rw-card: #1b130c;
  --rw-surface: #291b10;
  --rw-gold: #ffb82e;
  --rw-gold-light: #ffe0a0;
  --rw-bronze: #a96525;
  --rw-walnut: #75401f;
  --rw-text: #ffffff;
  --rw-muted: #a99a8a;
  --rw-line: rgba(255, 184, 46, 0.22);
  --rw-line-strong: rgba(255, 184, 46, 0.5);
  --rw-glow: 0 0 34px rgba(255, 184, 46, 0.28);
  --rw-radius: 22px;
  --rw-shadow: 0 26px 70px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 224, 160, 0.09);

  --forest-900: #090705;
  --forest-800: #120d08;
  --bog-900: #090705;
  --gold: #ffb82e;
  --gold-soft: #ffe0a0;
  --gold-deep: #a96525;
  --beige: #ffe0a0;
  --autumn: #a96525;
  --moss: #a96525;
  --moss-deep: #75401f;
  --text: #ffffff;
  --muted: #a99a8a;
  --danger: #ff7a6a;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow-panel: var(--rw-shadow);
}

body.rw {
  color: var(--rw-text);
  background:
    radial-gradient(1100px 720px at 50% -10%, rgba(255, 184, 46, 0.12), transparent 62%),
    radial-gradient(900px 600px at 100% 12%, rgba(117, 64, 31, 0.25), transparent 60%),
    radial-gradient(800px 700px at 0% 80%, rgba(169, 101, 37, 0.12), transparent 60%),
    linear-gradient(170deg, #0b0806 0%, #090705 42%, #120d08 100%);
}

body.rw::before {
  background:
    repeating-linear-gradient(102deg, rgba(255, 224, 160, 0.018) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(7deg, rgba(0, 0, 0, 0.22) 0 2px, transparent 2px 13px),
    radial-gradient(circle at 20% 24%, rgba(255, 184, 46, 0.07), transparent 46%),
    radial-gradient(circle at 84% 76%, rgba(117, 64, 31, 0.24), transparent 48%);
  opacity: 1;
}

.rw .canopy .glow {
  background: radial-gradient(circle, rgba(255, 184, 46, 0.2), transparent 70%);
}

.rw .leaf {
  background: linear-gradient(160deg, #75401f, #a96525);
  opacity: 0.24;
}

.rw h1,
.rw h2,
.rw h3,
.rw .section-title {
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0.01em;
}

.rw .panel {
  border: 1px solid var(--rw-line);
  background:
    linear-gradient(160deg, rgba(41, 27, 16, 0.78), rgba(18, 13, 8, 0.94));
  box-shadow: var(--rw-shadow);
}

.rw .section-title {
  color: var(--rw-text);
}

.rw .eyebrow {
  color: var(--rw-gold);
}

.rw .badge--moss {
  border-color: rgba(169, 101, 37, 0.55);
  background: rgba(169, 101, 37, 0.16);
  color: var(--rw-gold-light);
}

.rw .text-link {
  color: var(--rw-gold-light);
}

.rw .btn--acorn {
  border: 1px solid rgba(255, 224, 160, 0.55);
  background: linear-gradient(180deg, #ffe0a0 0%, #ffb82e 46%, #a96525 100%);
  color: #241305;
  box-shadow: 0 10px 26px rgba(255, 184, 46, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.rw .btn--acorn:hover {
  box-shadow: 0 14px 34px rgba(255, 184, 46, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.rw .btn--ghost {
  border: 1px solid var(--rw-line-strong);
  background: rgba(41, 27, 16, 0.52);
  color: var(--rw-gold-light);
}

.rw .history {
  overflow-x: auto;
}

.rw .history table {
  width: 100%;
  border-collapse: collapse;
}

.rw .history th,
.rw .history td {
  border-bottom: 1px solid rgba(255, 184, 46, 0.12);
}

.rw .history thead th {
  color: var(--rw-muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Tournaments */

.rw-tour-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  margin-bottom: 26px;
}

.rw-tour-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 46, 0.3), transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}

.rw-tour-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.05;
}

.rw-tour-hero p {
  margin: 0;
  max-width: 46ch;
  color: var(--rw-muted);
}

.rw-tour-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rw-tour-stat {
  padding: 14px 12px;
  border: 1px solid var(--rw-line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(41, 27, 16, 0.7), rgba(18, 13, 8, 0.75));
  text-align: center;
}

.rw-tour-stat b {
  display: block;
  color: var(--rw-gold);
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.18rem;
}

.rw-tour-stat span {
  color: var(--rw-muted);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rw-tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.rw-tour-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--rw-line);
  border-radius: 18px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 184, 46, 0.1), transparent 55%),
    linear-gradient(160deg, #21160e, #140e09);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.rw-tour-card:hover,
.rw-tour-card.is-active {
  transform: translateY(-3px);
  border-color: var(--rw-line-strong);
  box-shadow: var(--rw-glow);
}

.rw-tour-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.rw-tour-card p {
  margin: 0;
  color: var(--rw-muted);
  font-size: 0.84rem;
}

.rw-tour-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rw-tour-card__state {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--rw-line);
  color: var(--rw-muted);
}

.rw-tour-card__state.is-live {
  border-color: rgba(255, 184, 46, 0.6);
  color: #231405;
  background: linear-gradient(180deg, #ffe0a0, #ffb82e);
}

.rw-tour-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: start;
}

.rw-board {
  padding: clamp(16px, 3vw, 26px);
}

.rw-board__head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rw-board__head h2 {
  margin: 0;
  font-size: 1.24rem;
}

.rw-prize-list {
  display: grid;
  gap: 10px;
}

.rw-prize {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 184, 46, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(41, 27, 16, 0.7), rgba(18, 13, 8, 0.72));
}

.rw-prize__place {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 800;
  color: #241305;
  background: radial-gradient(circle at 35% 30%, #ffe0a0, #ffb82e 60%, #a96525);
  box-shadow: 0 0 16px rgba(255, 184, 46, 0.34);
}

.rw-prize__value {
  color: var(--rw-gold-light);
  font-weight: 700;
}

.rw-empty {
  padding: 22px;
  border: 1px dashed var(--rw-line);
  border-radius: 16px;
  color: var(--rw-muted);
  text-align: center;
}

.rw-rank {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.76rem;
  color: var(--rw-muted);
  background: rgba(255, 184, 46, 0.08);
  border: 1px solid rgba(255, 184, 46, 0.18);
}

tr.is-top .rw-rank {
  color: #241305;
  background: radial-gradient(circle at 35% 30%, #ffe0a0, #ffb82e 62%, #a96525);
  border-color: transparent;
  box-shadow: 0 0 14px rgba(255, 184, 46, 0.35);
}

.rw-player {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rw-player__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rw-gold);
  box-shadow: 0 0 10px rgba(255, 184, 46, 0.7);
}

@media (max-width: 860px) {
  .rw-tour-hero,
  .rw-tour-layout {
    grid-template-columns: 1fr;
  }
  .rw-tour-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 470px) {
  .rw-tour-stats {
    grid-template-columns: 1fr;
  }
  .rw-tour-card {
    padding: 15px;
  }
}

/* ===== Game Hall ===== */

.rw-games {
  display: grid;
  gap: 18px;
}

.rw-games__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.rw-games__head h1 {
  margin: 2px 0 6px;
  font-family: "Montserrat", "Cinzel", sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 8%, #ffe0a0 46%, #ffb82e 74%, #a96525 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 28px rgba(255, 184, 46, 0.24));
}

.rw-games__head p {
  margin: 0;
  color: var(--rw-muted);
}

.rw-launcher {
  gap: 26px;
}

.rw-launcher__head {
  align-items: flex-start;
}

.rw-launcher__title {
  margin: 4px 0 8px;
  font-family: "Montserrat", "Cinzel", sans-serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff6df 0%, #ffe0a0 38%, #ffb82e 72%, #a96525 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 28px rgba(255, 184, 46, 0.16));
}

.rw-launcher__subtitle {
  margin: 0;
  color: var(--rw-muted);
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
}

.rw-game-list {
  display: grid;
  gap: 18px;
}

.rw-game-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 216px;
  padding: clamp(24px, 3.2vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(255, 224, 160, 0.16);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--rw-text);
  text-decoration: none;
  animation: rwCardIn 0.55s cubic-bezier(0.2, 0.75, 0.25, 1) both;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.rw-game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(9, 7, 5, 0.78) 0%, rgba(9, 7, 5, 0.48) 46%, rgba(9, 7, 5, 0.02) 76%);
  pointer-events: none;
}

.rw-game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 224, 160, 0.34);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(255, 184, 46, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.rw-game-card:active {
  transform: scale(0.98);
}

.rw-game-card:focus-visible {
  outline: 3px solid var(--rw-gold);
  outline-offset: 3px;
}

.rw-game-card:nth-child(1) { animation-delay: 0.04s; }
.rw-game-card:nth-child(2) { animation-delay: 0.1s; }
.rw-game-card:nth-child(3) { animation-delay: 0.16s; }
.rw-game-card:nth-child(4) { animation-delay: 0.22s; }
.rw-game-card:nth-child(5) { animation-delay: 0.28s; }

.rw-game-card__glow {
  position: absolute;
  inset: -30% -10% -30% auto;
  z-index: 0;
  width: 58%;
  background: radial-gradient(circle at 60% 50%, rgba(255, 224, 160, 0.12), transparent 68%);
  pointer-events: none;
}

.rw-game-card__copy {
  position: relative;
  z-index: 2;
  width: 60%;
  max-width: 580px;
}

.rw-game-card__kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--rw-gold-light);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rw-game-card__title {
  margin: 0;
  font-family: "Montserrat", "Cinzel", sans-serif;
  font-weight: 900;
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.rw-game-card__text {
  max-width: 430px;
  margin: 12px 0 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  line-height: 1.48;
}

.rw-game-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid rgba(255, 224, 160, 0.6);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe0a0, #ffb82e 58%, #c9772f);
  box-shadow: 0 10px 26px rgba(255, 184, 46, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  color: #241305;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rw-game-card__cta span {
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.rw-game-card:hover .rw-game-card__cta span {
  transform: translateX(3px);
}

.rw-game-card__image {
  position: absolute;
  top: 50%;
  right: clamp(6px, 2vw, 30px);
  z-index: 1;
  width: min(340px, 38%);
  aspect-ratio: 320 / 220;
  transform: translateY(-50%);
  pointer-events: none;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
  transition: transform 0.35s ease;
}

.rw-game-card:hover .rw-game-card__image {
  transform: translateY(-50%) translateX(-5px) scale(1.03);
}

.rw-game-card__image svg {
  display: block;
  width: 100%;
  height: 100%;
}

.rw-game-card--plinko {
  background:
    radial-gradient(90% 140% at 88% 50%, rgba(112, 92, 255, 0.34), transparent 56%),
    radial-gradient(70% 120% at 0% 100%, rgba(255, 184, 46, 0.1), transparent 56%),
    linear-gradient(125deg, #101126 0%, #1a1836 48%, #2b1a3a 100%);
}

.rw-game-card--crash {
  background:
    radial-gradient(90% 140% at 88% 50%, rgba(255, 110, 44, 0.36), transparent 56%),
    radial-gradient(70% 120% at 0% 100%, rgba(255, 184, 46, 0.1), transparent 56%),
    linear-gradient(125deg, #1b0b06 0%, #351109 50%, #4a160b 100%);
}

.rw-game-card--mines {
  background:
    radial-gradient(90% 140% at 88% 50%, rgba(94, 139, 58, 0.32), transparent 56%),
    radial-gradient(70% 120% at 0% 100%, rgba(255, 184, 46, 0.09), transparent 56%),
    linear-gradient(125deg, #0b140b 0%, #152411 50%, #1d2b14 100%);
}

.rw-game-card--lucky {
  background:
    radial-gradient(90% 140% at 88% 50%, rgba(255, 184, 46, 0.36), transparent 56%),
    radial-gradient(70% 120% at 0% 100%, rgba(255, 122, 46, 0.14), transparent 56%),
    linear-gradient(125deg, #241304 0%, #4a2505 50%, #6b3608 100%);
}

.rw-game-card--pvp {
  background:
    radial-gradient(90% 140% at 88% 50%, rgba(179, 107, 255, 0.32), transparent 56%),
    radial-gradient(70% 120% at 0% 100%, rgba(255, 184, 46, 0.12), transparent 56%),
    linear-gradient(125deg, #1b0f23 0%, #2a1736 50%, #3a1f33 100%);
}

@keyframes rwCardIn {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

.rw-game-page {
  display: grid;
  gap: 18px;
}

.rw-game-page__head {
  display: grid;
  gap: 8px;
}

.rw-game-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 184, 46, 0.18);
  border-radius: 999px;
  background: rgba(27, 19, 12, 0.72);
  color: var(--rw-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.rw-game-back:hover {
  color: var(--rw-gold-light);
  border-color: rgba(255, 184, 46, 0.42);
}

.rw-game-page__title {
  margin: 0;
  font-family: "Montserrat", "Cinzel", sans-serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff6df 0%, #ffe0a0 38%, #ffb82e 72%, #a96525 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rw-game-panel {
  display: none;
}

.rw-game-panel.is-active {
  display: block;
  animation: rwPanelIn 0.35s ease both;
}

@keyframes rwPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.rw-game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.72fr);
  gap: 18px;
  align-items: stretch;
}

.rw-bet-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--rw-line);
  border-radius: var(--rw-radius);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 184, 46, 0.08), transparent 55%),
    linear-gradient(165deg, rgba(41, 27, 16, 0.9), rgba(18, 13, 8, 0.96));
  box-shadow: var(--rw-shadow);
}

.rw-bet-panel__title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rw-gold);
}

.rw-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 184, 46, 0.18);
  border-radius: 12px;
  background: rgba(9, 7, 5, 0.6);
}

.rw-seg button {
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--rw-muted);
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}

.rw-seg button.is-active {
  color: #241305;
  background: linear-gradient(180deg, #ffe0a0, #ffb82e);
  box-shadow: 0 4px 12px rgba(255, 184, 46, 0.24);
}

.rw-field {
  display: grid;
  gap: 6px;
  color: var(--rw-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rw-field b {
  color: var(--rw-gold-light);
}

.rw-field input[type="number"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 184, 46, 0.24);
  border-radius: 12px;
  background: rgba(9, 7, 5, 0.72);
  color: var(--rw-text);
  font-size: 1.08rem;
  font-weight: 700;
  outline: none;
  transition: 0.2s ease;
}

.rw-field input[type="number"]:focus {
  border-color: var(--rw-gold);
  box-shadow: 0 0 0 3px rgba(255, 184, 46, 0.12);
}

.rw-field input[type="range"] {
  width: 100%;
  accent-color: var(--rw-gold);
}

.rw-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.rw-presets button {
  padding: 8px 4px;
  border: 1px solid rgba(255, 184, 46, 0.18);
  border-radius: 9px;
  background: rgba(41, 27, 16, 0.6);
  color: var(--rw-muted);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.rw-presets button:hover {
  color: #241305;
  border-color: transparent;
  background: linear-gradient(180deg, #ffe0a0, #ffb82e);
}

.rw-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin-top: 2px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 224, 160, 0.55);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffe0a0 0%, #ffb82e 48%, #a96525 100%);
  color: #241305;
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(255, 184, 46, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.rw-action-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(255, 184, 46, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.rw-action-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.rw-action-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.rw-action-btn--cash {
  background: linear-gradient(180deg, #fff6df, #ffe0a0 46%, #ffb82e);
}

.rw-action-btn__acorn {
  width: 16px;
  height: 18px;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 35% 28%, #fff3d2, #ffb82e 38%, #75401f 100%);
  box-shadow: 0 2px 6px rgba(36, 19, 5, 0.5);
}

.rw-status {
  min-height: 2.4em;
  margin: 0;
  color: var(--rw-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.rw-status.is-win { color: var(--rw-gold); }
.rw-status.is-loss { color: #ff9a82; }

.rw-confetti {
  position: absolute;
  top: -12px;
  width: 7px;
  height: 13px;
  border-radius: 2px;
  opacity: 0;
  animation: rwConfettiFall 1.7s ease-in forwards;
}

@keyframes rwConfettiFall {
  0% { opacity: 1; transform: translateY(0) rotate(0); }
  100% { opacity: 0; transform: translateY(320px) rotate(520deg); }
}

/* Plinko */

.rw-plinko-wrap {
  display: grid;
  gap: 10px;
}

.rw-plinko {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  aspect-ratio: 1.08 / 1;
  border: 1px solid var(--rw-line);
  border-radius: 26px;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(255, 184, 46, 0.12), transparent 62%),
    radial-gradient(70% 60% at 50% 100%, rgba(169, 101, 37, 0.2), transparent 65%),
    linear-gradient(180deg, #140e09, #090705 58%, #120d08);
  box-shadow: var(--rw-shadow);
}

.rw-plinko__glow {
  position: absolute;
  inset: auto 50% -30% auto;
  width: 70%;
  height: 60%;
  transform: translateX(50%);
  background: radial-gradient(circle, rgba(255, 184, 46, 0.18), transparent 70%);
  pointer-events: none;
}

.rw-plinko__pegs,
.rw-plinko__balls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rw-peg {
  position: absolute;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe0a0, #c9772f 60%, #75401f);
  box-shadow: 0 0 10px rgba(255, 184, 46, 0.55);
}

.rw-ball {
  position: absolute;
  z-index: 4;
  width: 19px;
  height: 19px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff6df, #ffb82e 34%, #a96525 66%, #4b250b 100%);
  box-shadow: 0 0 18px rgba(255, 184, 46, 0.8), 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: left 0.1s linear, top 0.1s linear;
}

.rw-ball.is-landed {
  animation: rwBallLand 0.35s ease both;
}

@keyframes rwBallLand {
  0% { transform: translate(-50%, -50%) scale(1); }
  45% { transform: translate(-50%, -50%) scale(1.5); }
  100% { transform: translate(-50%, -50%) scale(0.7); opacity: 0; }
}

.rw-plinko__slots {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 5%;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 4px;
}

.rw-slot {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 54px;
  padding: 4px 2px;
  border: 1px solid rgba(255, 184, 46, 0.2);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(117, 64, 31, 0.55), rgba(27, 19, 12, 0.9));
  color: var(--rw-gold-light);
  font-size: 0.68rem;
  font-weight: 800;
  transition: 0.2s ease;
}

.rw-slot__nut {
  width: 10px;
  height: 11px;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 35% 25%, #ffe0a0, #a96525);
  opacity: 0.55;
}

.rw-slot.is-hit {
  border-color: var(--rw-gold);
  background: linear-gradient(180deg, #ffe0a0, #ffb82e 56%, #a96525);
  color: #241305;
  box-shadow: 0 0 24px rgba(255, 184, 46, 0.6);
  transform: translateY(-4px);
}

.rw-slot.is-hit .rw-slot__nut {
  background: radial-gradient(circle at 35% 25%, #fff6df, #75401f);
  opacity: 1;
}

.rw-slot.is-loss {
  background: linear-gradient(180deg, #4a2a14, #1b130c);
  color: var(--rw-muted);
  box-shadow: none;
}

.rw-plinko__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 0 6px;
  color: var(--rw-muted);
  font-size: 0.78rem;
}

.rw-plinko__caption b {
  color: var(--rw-gold-light);
}

/* Crash */

.rw-crash {
  display: grid;
  gap: 10px;
}

.rw-crash__space {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(255, 184, 46, 0.24);
  border-radius: 26px;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(255, 184, 46, 0.14), transparent 60%),
    radial-gradient(70% 70% at 15% 90%, rgba(117, 64, 31, 0.3), transparent 60%),
    linear-gradient(180deg, #0d0906, #090705 55%, #140e09);
  box-shadow: var(--rw-shadow);
}

.rw-crash__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 18% 24%, rgba(255, 224, 160, 0.8), transparent),
    radial-gradient(1.2px 1.2px at 72% 18%, rgba(255, 224, 160, 0.55), transparent),
    radial-gradient(1.6px 1.6px at 42% 62%, rgba(255, 184, 46, 0.65), transparent),
    radial-gradient(1.2px 1.2px at 88% 52%, rgba(255, 224, 160, 0.5), transparent),
    radial-gradient(1.4px 1.4px at 28% 82%, rgba(255, 184, 46, 0.45), transparent),
    radial-gradient(1.1px 1.1px at 62% 88%, rgba(255, 224, 160, 0.5), transparent);
  opacity: 0.9;
  animation: rwStarDrift 16s linear infinite alternate;
}

@keyframes rwStarDrift {
  from { transform: translateY(0); }
  to { transform: translateY(-16px); }
}

.rw-crash__multiplier {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 0 34px rgba(255, 184, 46, 0.55), 0 10px 28px rgba(0, 0, 0, 0.7);
  transition: color 0.2s ease;
}

.rw-crash__space.is-crashed .rw-crash__multiplier {
  color: #ff9a82;
  text-shadow: 0 0 34px rgba(255, 122, 106, 0.5), 0 10px 28px rgba(0, 0, 0, 0.7);
}

.rw-crash__state {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--rw-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.rw-crash__history {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  gap: 6px;
  overflow: hidden;
}

.rw-crash__chip {
  padding: 4px 8px;
  border: 1px solid rgba(255, 184, 46, 0.22);
  border-radius: 999px;
  background: rgba(9, 7, 5, 0.6);
  color: var(--rw-muted);
  font-size: 0.64rem;
  font-weight: 700;
  white-space: nowrap;
}

.rw-crash__chip[data-value="1.00"] { color: #ff9a82; }

.rw-crash__rocket {
  position: absolute;
  z-index: 3;
  left: 12%;
  bottom: 10%;
  width: 54px;
  height: 62px;
  transition: left 0.9s linear, bottom 0.9s linear, transform 0.4s ease, opacity 0.4s ease;
}

.rw-crash__body {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 26px;
  height: 40px;
  transform: translateX(-50%);
  border-radius: 50% 50% 44% 44%;
  background:
    radial-gradient(circle at 38% 28%, #fff6df, #ffb82e 32%, #a96525 68%, #4b250b 100%);
  box-shadow: 0 0 22px rgba(255, 184, 46, 0.55);
}

.rw-crash__wing {
  position: absolute;
  bottom: 16px;
  width: 22px;
  height: 12px;
  background: linear-gradient(160deg, #a96525, #75401f);
  border: 1px solid rgba(255, 224, 160, 0.25);
}

.rw-crash__wing--l {
  left: 1px;
  border-radius: 12px 2px 12px 10px;
  transform: rotate(-18deg);
}

.rw-crash__wing--r {
  right: 1px;
  border-radius: 2px 12px 10px 12px;
  transform: rotate(18deg);
}

.rw-crash__flame {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 12px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 50% 50% 50% 50%;
  background: linear-gradient(180deg, #fff6df, #ffb82e 38%, rgba(255, 122, 106, 0) 100%);
  opacity: 0;
  filter: blur(1px);
}

.rw-crash__rocket.is-flying .rw-crash__flame {
  opacity: 1;
  animation: rwFlame 0.18s ease-in-out infinite alternate;
}

@keyframes rwFlame {
  from { transform: translateX(-50%) scaleY(0.8); }
  to { transform: translateX(-50%) scaleY(1.3); }
}

.rw-crash__rocket.is-crashed {
  transform: rotate(140deg) scale(0.7);
  opacity: 0.35;
}

.rw-crash__spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffb82e;
  opacity: 0;
  pointer-events: none;
}

.rw-crash__space.is-crashed .rw-crash__spark {
  animation: rwSpark 0.7s ease-out both;
}

@keyframes rwSpark {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(255, 184, 46, 0.6); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(14); box-shadow: 0 0 60px 30px rgba(255, 184, 46, 0); }
}

.rw-crash__players {
  display: grid;
  gap: 6px;
  max-height: 132px;
  overflow-y: auto;
  padding-right: 4px;
}

.rw-crash__player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 184, 46, 0.12);
  border-radius: 10px;
  background: rgba(27, 19, 12, 0.72);
  color: var(--rw-muted);
  font-size: 0.76rem;
}

.rw-crash__player.is-self {
  border-color: var(--rw-line-strong);
  color: var(--rw-gold-light);
}

.rw-crash__player b {
  color: var(--rw-gold-light);
}

/* Mines */

.rw-mines {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--rw-line);
  border-radius: var(--rw-radius);
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(255, 184, 46, 0.08), transparent 60%),
    linear-gradient(180deg, #140e09, #090705);
  box-shadow: var(--rw-shadow);
}

.rw-mines__head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rw-mines__head > div {
  padding: 10px 12px;
  border: 1px solid rgba(255, 184, 46, 0.16);
  border-radius: 12px;
  background: rgba(27, 19, 12, 0.72);
}

.rw-mines__head span {
  display: block;
  color: var(--rw-muted);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rw-mines__head b {
  display: block;
  margin-top: 3px;
  color: var(--rw-gold-light);
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.1rem;
}

.rw-mines-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(5px, 1vw, 10px);
  padding: clamp(6px, 1.5vw, 12px);
  border-radius: 18px;
  background: rgba(9, 7, 5, 0.5);
}

.rw-mine-cell {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 184, 46, 0.2);
  border-radius: 12px;
  background:
    radial-gradient(70% 70% at 35% 28%, rgba(169, 101, 37, 0.42), transparent 70%),
    linear-gradient(160deg, #2d1c10, #160f09);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.rw-mine-cell:hover:not(.is-revealed) {
  transform: translateY(-2px);
  border-color: var(--rw-line-strong);
  box-shadow: 0 0 18px rgba(255, 184, 46, 0.18);
}

.rw-mine-cell__nut,
.rw-mine-cell__bomb {
  position: absolute;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.rw-mine-cell__nut {
  width: 42%;
  height: 46%;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 35% 28%, #fff6df, #ffb82e 34%, #a96525 68%, #4b250b);
  box-shadow: 0 0 20px rgba(255, 184, 46, 0.55);
}

.rw-mine-cell__bomb {
  display: grid;
  place-items: center;
  width: 46%;
  height: 46%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5b3418, #1b130c 70%);
  color: #ff9a82;
  font-size: 1.1rem;
  line-height: 1;
}

.rw-mine-cell.is-safe {
  border-color: rgba(255, 184, 46, 0.55);
  background: radial-gradient(circle at 50% 50%, rgba(255, 184, 46, 0.16), rgba(27, 19, 12, 0.9));
}

.rw-mine-cell.is-safe .rw-mine-cell__nut {
  opacity: 1;
  transform: scale(1);
}

.rw-mine-cell.is-bomb {
  border-color: rgba(255, 122, 106, 0.6);
  background: radial-gradient(circle at 50% 50%, rgba(255, 122, 106, 0.18), rgba(27, 19, 12, 0.92));
}

.rw-mine-cell.is-bomb .rw-mine-cell__bomb {
  opacity: 1;
  transform: scale(1);
  animation: rwBomb 0.4s ease both;
}

@keyframes rwBomb {
  0% { transform: scale(0.2) rotate(-20deg); }
  60% { transform: scale(1.25) rotate(6deg); }
  100% { transform: scale(1) rotate(0); }
}

.rw-mine-cell.is-dimmed {
  opacity: 0.38;
  cursor: default;
}

.rw-mines__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--rw-muted);
  font-size: 0.78rem;
}

.rw-mines__foot .rw-action-btn {
  width: auto;
  min-width: 190px;
  min-height: 46px;
  font-size: 0.8rem;
}

/* Lucky */

.rw-lucky {
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--rw-line);
  border-radius: var(--rw-radius);
  background:
    radial-gradient(80% 70% at 50% 10%, rgba(255, 184, 46, 0.1), transparent 65%),
    linear-gradient(180deg, #140e09, #090705);
  box-shadow: var(--rw-shadow);
}

.rw-lucky__wheel-wrap {
  position: relative;
  width: min(360px, 76vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.rw-lucky__pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  z-index: 4;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 24px solid #ffe0a0;
  filter: drop-shadow(0 0 10px rgba(255, 184, 46, 0.7));
}

.rw-lucky__wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid #2d1c10;
  background:
    conic-gradient(
      from 0deg,
      #75401f 0deg 60deg,
      #c9772f 60deg 120deg,
      #ffb82e 120deg 180deg,
      #75401f 180deg 240deg,
      #c9772f 240deg 300deg,
      #ffb82e 300deg 360deg
    );
  box-shadow:
    0 0 0 3px rgba(255, 184, 46, 0.5),
    0 0 0 12px rgba(117, 64, 31, 0.5),
    0 26px 60px rgba(0, 0, 0, 0.6),
    inset 0 0 40px rgba(0, 0, 0, 0.45);
  will-change: transform;
}

.rw-lucky__wheel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 224, 160, 0.28);
}

.rw-lucky__hub {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 24%;
  height: 24%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe0a0, #ffb82e 46%, #a96525 74%, #4b250b);
  border: 3px solid #2d1c10;
  box-shadow: 0 0 24px rgba(255, 184, 46, 0.55);
}

.rw-lucky__crown {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  color: #241305;
  font-size: 1.6rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.rw-lucky__confetti,
.rw-pvp__confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.rw-lucky__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--rw-muted);
  font-size: 0.76rem;
}

.rw-lucky__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 50%;
}

.rw-lucky__dot--bronze { background: #75401f; }
.rw-lucky__dot--caramel { background: #c9772f; }
.rw-lucky__dot--gold { background: #ffb82e; box-shadow: 0 0 10px rgba(255, 184, 46, 0.7); }

.rw-color-pick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.rw-color {
  padding: 10px 4px;
  border: 1px solid rgba(255, 184, 46, 0.2);
  border-radius: 10px;
  background: rgba(9, 7, 5, 0.55);
  color: var(--rw-muted);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.rw-color.is-active {
  color: #241305;
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.rw-color--bronze.is-active { background: linear-gradient(180deg, #c9772f, #75401f); color: #fff; }
.rw-color--caramel.is-active { background: linear-gradient(180deg, #ffb82e, #c9772f); }
.rw-color--gold.is-active { background: linear-gradient(180deg, #ffe0a0, #ffb82e); }

.rw-lucky__result {
  min-height: 1.4em;
  margin: 0;
  color: var(--rw-muted);
  font-size: 0.82rem;
}

.rw-lucky__result .is-win {
  color: var(--rw-gold);
  font-weight: 800;
}

/* PvP */

.rw-pvp {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--rw-line);
  border-radius: var(--rw-radius);
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(255, 184, 46, 0.1), transparent 62%),
    linear-gradient(180deg, #140e09, #090705);
  box-shadow: var(--rw-shadow);
}

.rw-pvp__top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rw-pvp__top > div {
  padding: 10px 12px;
  border: 1px solid rgba(255, 184, 46, 0.16);
  border-radius: 12px;
  background: rgba(27, 19, 12, 0.72);
}

.rw-pvp__top span {
  display: block;
  color: var(--rw-muted);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rw-pvp__top b {
  color: var(--rw-gold-light);
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.1rem;
}

.rw-pvp__arena {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 290px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(60% 70% at 50% 50%, rgba(255, 184, 46, 0.12), transparent 65%),
    radial-gradient(circle at 20% 20%, rgba(117, 64, 31, 0.24), transparent 55%),
    #090705;
}

.rw-pvp__wheel {
  position: relative;
  width: min(190px, 46vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 6px solid #2d1c10;
  background: conic-gradient(
    from 0deg,
    #75401f 0deg 45deg,
    #c9772f 45deg 90deg,
    #ffb82e 90deg 135deg,
    #75401f 135deg 180deg,
    #c9772f 180deg 225deg,
    #ffb82e 225deg 270deg,
    #75401f 270deg 315deg,
    #c9772f 315deg 360deg
  );
  box-shadow: 0 0 0 3px rgba(255, 184, 46, 0.45), 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 0, 0, 0.45);
  will-change: transform;
}

.rw-pvp__wheel-hub {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 32%;
  height: 32%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid #2d1c10;
  background: radial-gradient(circle at 35% 30%, #ffe0a0, #ffb82e 48%, #a96525);
  color: #241305;
  font-size: 1.2rem;
  box-shadow: 0 0 20px rgba(255, 184, 46, 0.55);
}

.rw-pvp__flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 184, 46, 0.28), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rw-pvp__winner {
  position: absolute;
  inset: auto 14px 14px;
  z-index: 3;
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid var(--rw-line-strong);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(41, 27, 16, 0.96), rgba(18, 13, 8, 0.96));
  box-shadow: var(--rw-glow);
  animation: rwPanelIn 0.4s ease both;
}

.rw-pvp__winner span {
  color: var(--rw-muted);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rw-pvp__winner b {
  color: var(--rw-gold);
  font-size: 1.05rem;
}

.rw-pvp__players {
  display: grid;
  gap: 6px;
  max-height: 190px;
  overflow-y: auto;
  padding-right: 4px;
}

.rw-pvp__player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid rgba(255, 184, 46, 0.12);
  border-radius: 10px;
  background: rgba(27, 19, 12, 0.72);
  color: var(--rw-muted);
  font-size: 0.78rem;
}

.rw-pvp__player.is-self {
  border-color: var(--rw-line-strong);
  color: var(--rw-gold-light);
  background: rgba(41, 27, 16, 0.9);
}

.rw-pvp__player-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.rw-pvp__player-chance {
  color: var(--rw-gold);
  font-size: 0.7rem;
}

.rw-pvp__player b {
  color: var(--rw-gold-light);
  white-space: nowrap;
}

/* Toast tones */

.toast.toast--win {
  border-color: rgba(255, 184, 46, 0.6);
  box-shadow: 0 18px 50px rgba(255, 184, 46, 0.28);
}

/* Responsive game hall */

@media (max-width: 900px) {
  .rw-game-layout {
    grid-template-columns: 1fr;
  }
  .rw-plinko {
    min-height: 380px;
  }
  .rw-crash__space {
    min-height: 360px;
  }
  .rw-bet-panel {
    padding: 16px;
  }
}

@media (max-width: 760px) {
  .rw-game-card {
    min-height: 204px;
    padding: 24px 20px;
  }
  .rw-game-card::after {
    background: linear-gradient(90deg, rgba(9, 7, 5, 0.9) 0%, rgba(9, 7, 5, 0.62) 56%, rgba(9, 7, 5, 0.04) 100%);
  }
  .rw-game-card__copy {
    width: 76%;
  }
  .rw-game-card__title {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }
  .rw-game-card__text {
    margin: 9px 0 14px;
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .rw-game-card__image {
    right: -9%;
    width: 64%;
    opacity: 0.55;
  }
}

@media (max-width: 560px) {
  .rw-games__head {
    align-items: flex-start;
  }
  .rw-balance-pills {
    width: 100%;
  }
  .rw-balance-pill {
    flex: 1;
    justify-content: center;
  }
  .rw-game-card {
    min-height: 190px;
    padding: 20px 18px;
    border-radius: 22px;
  }
  .rw-game-card__copy {
    width: 82%;
  }
  .rw-game-card__kicker {
    margin-bottom: 7px;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }
  .rw-game-card__title {
    font-size: 1.9rem;
  }
  .rw-game-card__text {
    max-width: 250px;
    margin: 8px 0 13px;
    font-size: 0.74rem;
    line-height: 1.4;
  }
  .rw-game-card__cta {
    padding: 8px 13px;
    font-size: 0.64rem;
  }
  .rw-game-card__image {
    right: -19%;
    width: 70%;
    opacity: 0.44;
  }
  .rw-game-page__head {
    gap: 6px;
  }
  .rw-plinko {
    min-height: 330px;
  }
  .rw-slot {
    min-height: 44px;
    font-size: 0.58rem;
  }
  .rw-slot__nut {
    display: none;
  }
  .rw-crash__space {
    min-height: 320px;
  }
  .rw-mines {
    padding: 12px;
  }
  .rw-mines__head > div,
  .rw-pvp__top > div {
    padding: 8px;
  }
  .rw-lucky {
    padding: 14px;
  }
  .rw-pvp {
    padding: 12px;
  }
}

/* ===== Profile ===== */

.rw-profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  padding: clamp(20px, 3.5vw, 34px);
  margin-bottom: 18px;
  overflow: hidden;
}

.rw-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(118px, 17vw, 158px);
  aspect-ratio: 1;
}

.rw-avatar__wreath {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 20deg, #a96525, #ffb82e, #75401f, #ffe0a0, #a96525);
  box-shadow: 0 0 40px rgba(255, 184, 46, 0.3);
  animation: rwWreathSpin 18s linear infinite;
}

.rw-avatar__wreath::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #120d08;
}

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

.rw-avatar__core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 78%;
  height: 78%;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid rgba(255, 224, 160, 0.4);
  background: radial-gradient(circle at 40% 30%, #3a2410, #120d08 70%);
}

.rw-avatar__core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rw-profile-info h1 {
  margin: 4px 0 6px;
}

.rw-profile-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.05;
  color: var(--rw-gold-light);
}

.rw-profile-handle {
  margin: 0 0 10px;
  color: var(--rw-muted);
  font-size: 0.86rem;
}

.rw-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.rw-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rw-treasury-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.rw-treasury {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--rw-line);
  border-radius: var(--rw-radius);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 184, 46, 0.14), transparent 55%),
    linear-gradient(160deg, #21160e, #120d08);
  box-shadow: var(--rw-shadow);
}

.rw-treasury--ton {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 224, 160, 0.1), transparent 55%),
    linear-gradient(160deg, #1d130b, #0d0906);
}

.rw-treasury__label {
  margin: 0;
  color: var(--rw-muted);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rw-treasury__value {
  margin: 4px 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--rw-gold);
}

.rw-treasury__value small {
  font-size: 0.9rem;
  color: var(--rw-gold-light);
}

.rw-treasury__hint {
  margin: 0;
  color: var(--rw-muted);
  font-size: 0.74rem;
}

.rw-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.rw-stat-card {
  padding: 14px 16px;
  border: 1px solid rgba(255, 184, 46, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(41, 27, 16, 0.8), rgba(18, 13, 8, 0.86));
}

.rw-stat-card span {
  display: block;
  color: var(--rw-muted);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rw-stat-card b {
  display: block;
  margin-top: 4px;
  color: var(--rw-gold-light);
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
}

.rw-stat-card b.is-loss {
  color: #ff9a82;
}

.rw-referral {
  padding: clamp(18px, 3vw, 28px);
  margin-bottom: 18px;
}

.rw-referral__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
  gap: 10px;
}

.rw-referral__code,
.rw-referral__stat {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 184, 46, 0.18);
  border-radius: 14px;
  background: rgba(9, 7, 5, 0.55);
}

.rw-referral__code span,
.rw-referral__stat span {
  color: var(--rw-muted);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rw-referral__code b,
.rw-referral__stat b {
  color: var(--rw-gold);
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  word-break: break-all;
}

.rw-copy {
  justify-self: start;
  margin-top: 4px;
  padding: 6px 12px;
  border: 1px solid var(--rw-line-strong);
  border-radius: 8px;
  background: rgba(255, 184, 46, 0.08);
  color: var(--rw-gold-light);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.rw-copy:hover {
  background: linear-gradient(180deg, #ffe0a0, #ffb82e);
  color: #241305;
}

.rw-referral__note {
  margin: 12px 0 0;
  color: var(--rw-muted);
  font-size: 0.78rem;
}

.rw-history-panel {
  padding: 6px 4px;
}

@media (max-width: 900px) {
  .rw-profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rw-referral__grid {
    grid-template-columns: 1fr 1fr;
  }
  .rw-referral__code {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .rw-profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .rw-avatar {
    margin: 0 auto;
  }
  .rw-profile-badges,
  .rw-profile-actions {
    justify-content: center;
  }
  .rw-treasury-grid {
    grid-template-columns: 1fr;
  }
  .rw-treasury {
    flex-direction: column;
    align-items: flex-start;
  }
  .rw-referral__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Shop / Market ===== */

.rw-shop-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 3.5vw, 36px);
  margin-bottom: 18px;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 184, 46, 0.16), transparent 55%),
    linear-gradient(160deg, #21160e, #120d08);
}

.rw-shop-hero h1 {
  margin: 2px 0 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.rw-shop-hero h1 span {
  color: var(--rw-gold);
}

.rw-shop-hero p {
  margin: 0;
  max-width: 52ch;
  color: var(--rw-muted);
}

.rw-shop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.rw-shop-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 16px;
  border: 1px solid var(--rw-line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(41, 27, 16, 0.78), rgba(18, 13, 8, 0.9));
}

.rw-shop-tab {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--rw-muted);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.rw-shop-tab:hover {
  color: var(--rw-gold-light);
}

.rw-shop-tab.is-active {
  color: #241305;
  border-color: rgba(255, 224, 160, 0.5);
  background: linear-gradient(180deg, #ffe0a0, #ffb82e 58%, #c9772f);
  box-shadow: 0 8px 22px rgba(255, 184, 46, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.rw-shop-panel {
  display: none;
}

.rw-shop-panel.is-active {
  display: block;
  animation: rwPanelIn 0.35s ease both;
}

.rw-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.rw-shop-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rw-line);
  border-radius: 20px;
  background: linear-gradient(165deg, #21160e, #120d08);
  box-shadow: var(--rw-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rw-shop-card:hover {
  transform: translateY(-4px);
  border-color: var(--rw-line-strong);
  box-shadow: var(--rw-glow);
}

.rw-shop-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.2 / 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 184, 46, 0.22), transparent 62%),
    linear-gradient(160deg, #2d1c10, #0d0906);
}

.rw-shop-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rw-shop-card__nut {
  width: 84px;
  height: 92px;
  border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 34% 26%, #fff6df, #ffb82e 30%, #a96525 64%, #4b250b 100%);
  box-shadow: 0 0 40px rgba(255, 184, 46, 0.5), inset -8px -10px 24px rgba(36, 19, 5, 0.5);
}

.rw-shop-card__rarity {
  position: absolute;
  top: 10px;
  left: 10px;
}

.rw-shop-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
}

.rw-shop-card__body h3 {
  margin: 0;
  font-size: 1rem;
}

.rw-shop-card__body p {
  flex: 1;
  margin: 0;
  color: var(--rw-muted);
  font-size: 0.76rem;
}

.rw-shop-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rw-shop-card__price {
  color: var(--rw-gold);
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  font-size: 1.02rem;
}

.rw-action-btn--buy {
  width: auto;
  min-width: 110px;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.74rem;
}

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

.rw-topup {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 3vw, 28px);
}

.rw-topup__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rw-topup__head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.rw-topup__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe0a0, #ffb82e 58%, #a96525);
  color: #241305;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(255, 184, 46, 0.35);
}

.rw-topup__icon--ton {
  font-size: 0.62rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff6df, #ffe0a0 50%, #a96525);
}

.rw-topup__text {
  margin: 0;
  color: var(--rw-muted);
  font-size: 0.82rem;
}

.rw-pay-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--rw-line-strong);
  border-radius: 12px;
  background: rgba(255, 184, 46, 0.08);
  color: var(--rw-gold-light);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  transition: 0.2s ease;
}

.rw-pay-link:hover {
  background: linear-gradient(180deg, #ffe0a0, #ffb82e);
  color: #241305;
}

@media (max-width: 760px) {
  .rw-topup-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Royal Walnut shell: splash, topbar, balances, bottom nav
   ========================================================= */

.rw-topbar {
  position: sticky;
  top: 8px;
  gap: 14px;
  border: 1px solid rgba(255, 184, 46, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(117, 64, 31, 0.5), transparent 52%),
    linear-gradient(180deg, rgba(27, 19, 12, 0.96), rgba(9, 7, 5, 0.96));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 224, 160, 0.12);
  backdrop-filter: blur(16px);
}

.rw-brand .brand__mark {
  width: 42px;
  height: 42px;
  background:
    radial-gradient(circle at 34% 28%, #ffe9b8, #ffb82e 44%, #a96525 78%, #75401f);
  box-shadow: 0 0 20px rgba(255, 184, 46, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.rw-brand .brand__text strong {
  font-family: "Montserrat", var(--font-display, sans-serif);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #ffe0a0;
}

.rw-brand .brand__text small {
  color: #a99a8a;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
}

.rw-tabbar {
  border-color: rgba(255, 184, 46, 0.12);
  background: rgba(9, 7, 5, 0.5);
}

.rw-tabbar .tab {
  color: #a99a8a;
}

.rw-tabbar .tab:hover {
  color: #ffe0a0;
  background: rgba(255, 184, 46, 0.07);
}

.rw-tabbar .tab.is-active {
  color: #ffb82e;
  background: linear-gradient(180deg, rgba(255, 184, 46, 0.18), rgba(255, 184, 46, 0.07));
  box-shadow: inset 0 0 0 1px rgba(255, 184, 46, 0.3);
}

.rw-top-balances {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.rw-topbar .rw-balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 184, 46, 0.26);
  border-radius: 999px;
  background: rgba(9, 7, 5, 0.6);
  color: #ffe0a0;
  font-size: 0.8rem;
  line-height: 1;
  white-space: nowrap;
}

.rw-topbar .rw-balance-pill span {
  color: #ffb82e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.rw-topbar .rw-balance-pill b {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.rw-topbar .rw-balance-pill--ton span {
  color: #a99a8a;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

/* Splash */

.splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 28px;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(117, 64, 31, 0.5), transparent 58%),
    radial-gradient(ellipse at 50% 110%, rgba(255, 184, 46, 0.14), transparent 52%),
    #090705;
  animation: none;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.splash__stage {
  position: relative;
  width: min(330px, 78vw);
  height: 270px;
}

.splash-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  animation: splashScene 7s linear both;
}

.splash-scene--1 { animation-delay: 0s; }
.splash-scene--2 { animation-delay: 1.15s; }
.splash-scene--3 { animation-delay: 2.3s; }
.splash-scene--4 { animation-delay: 3.45s; }
.splash-scene--5 { animation-delay: 4.6s; }
.splash-scene--6 { animation-delay: 5.75s; }

.splash[data-repeat="true"] .splash-scene {
  display: none;
}

.splash[data-repeat="true"] .splash-scene--1 {
  display: grid;
  animation: splashSceneRepeat 1.5s ease both;
}

@keyframes splashScene {
  0% { opacity: 0; transform: scale(0.94); }
  5% { opacity: 1; transform: scale(1); }
  14% { opacity: 1; transform: scale(1); }
  18% { opacity: 0; transform: scale(1.03); }
  100% { opacity: 0; transform: scale(1.03); }
}

@keyframes splashSceneRepeat {
  0% { opacity: 0; transform: scale(0.96); }
  30% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}

.splash__brand {
  text-align: center;
}

.splash__logo {
  font-family: "Montserrat", var(--font-display, sans-serif);
  font-size: clamp(1.5rem, 7vw, 2.5rem);
  font-weight: 900;
  letter-spacing: 0.24em;
  color: #ffe0a0;
  text-shadow: 0 0 26px rgba(255, 184, 46, 0.42);
}

.splash__subtitle {
  margin: 6px 0 0;
  color: #a99a8a;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.splash__progress {
  width: min(210px, 56vw);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 224, 160, 0.12);
}

.splash__progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a96525, #ffb82e, #ffe0a0);
  box-shadow: 0 0 12px rgba(255, 184, 46, 0.7);
  animation: splashProgress 7s linear forwards;
}

.splash[data-repeat="true"] .splash__progress span {
  animation-duration: 1.5s;
}

@keyframes splashProgress {
  from { width: 0; }
  to { width: 100%; }
}

/* Splash objects */

.splash-acorn {
  position: relative;
  width: 58px;
  height: 66px;
  animation: none;
}

.splash-acorn::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 16px;
  bottom: 0;
  border-radius: 50% 50% 46% 46% / 55% 55% 45% 45%;
  background: radial-gradient(circle at 34% 30%, #fff3c0, #ffb82e 44%, #a96525 76%, #75401f);
  box-shadow: 0 0 34px rgba(255, 184, 46, 0.5);
}

.splash-acorn::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 3px;
  height: 21px;
  border-radius: 50% 50% 34% 34%;
  background: linear-gradient(180deg, #75401f, #3a2410);
  box-shadow: inset 0 2px 0 rgba(255, 224, 160, 0.24);
}

.splash-acorn--fall { animation: acornFall 1.5s cubic-bezier(0.42, 0, 0.7, 1) both; }
.splash-acorn--bounce { animation: acornBounce 1.5s ease-in-out both; }
.splash-acorn--hero { transform: scale(1.5); animation: acornHero 1.7s ease both; }

@keyframes acornFall {
  0% { transform: translateY(-150px) rotate(-18deg); opacity: 0; }
  20% { opacity: 1; }
  70% { transform: translateY(24px) rotate(8deg); }
  100% { transform: translateY(40px) rotate(0deg); opacity: 1; }
}

@keyframes acornBounce {
  0% { transform: translateY(46px) rotate(-10deg); opacity: 0; }
  25% { transform: translateY(-34px) rotate(9deg); opacity: 1; }
  50% { transform: translateY(18px) rotate(-6deg); }
  72% { transform: translateY(-16px) rotate(4deg); }
  100% { transform: translateY(4px) rotate(0deg); }
}

@keyframes acornHero {
  0% { transform: scale(1.1); opacity: 0; filter: blur(2px); }
  40% { transform: scale(1.6); opacity: 1; filter: blur(0); }
  100% { transform: scale(1.5); opacity: 1; }
}

.splash-branch {
  position: absolute;
  top: 64%;
  left: 50%;
  width: 150px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #75401f 22%, #a96525 50%, #75401f 78%, transparent);
  transform: translateX(-50%) rotate(-4deg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6);
}

.splash-branch--wide {
  width: 210px;
  top: 70%;
}

.splash-ring {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 184, 46, 0.34);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(255, 184, 46, 0.14), inset 0 0 40px rgba(255, 184, 46, 0.08);
}

.splash-ring--burst { animation: ringBurst 1.5s ease-out both; }
.splash-ring--soft { width: 190px; height: 190px; opacity: 0.7; }

@keyframes ringBurst {
  0% { transform: scale(0.3); opacity: 0; }
  45% { opacity: 1; }
  100% { transform: scale(1.55); opacity: 0; }
}

.splash-spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffe0a0;
  box-shadow: 0 0 12px rgba(255, 184, 46, 0.9);
}

.splash-spark--a { top: 34%; left: 30%; animation: sparkDrift 1.4s ease-out both; }
.splash-spark--b { top: 46%; right: 26%; animation: sparkDrift 1.4s 0.15s ease-out both; }

@keyframes sparkDrift {
  0% { transform: translateY(10px) scale(0.4); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(-40px) scale(1.2); opacity: 0; }
}

.splash-coin {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff3c0, #ffb82e 50%, #a96525 82%);
  box-shadow: 0 0 18px rgba(255, 184, 46, 0.45);
}

.splash-coin--a { left: 24%; top: 52%; animation: coinUp 1.5s ease-out both; }
.splash-coin--b { left: 48%; top: 60%; width: 32px; height: 32px; animation: coinUp 1.5s 0.1s ease-out both; }
.splash-coin--c { left: 70%; top: 50%; animation: coinUp 1.5s 0.2s ease-out both; }

@keyframes coinUp {
  0% { transform: translateY(20px) scale(0.3); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateY(-60px) scale(1); opacity: 0; }
}

.splash-tree {
  position: relative;
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  animation: treeGrow 1.5s ease-out both;
}

.splash-tree__trunk {
  position: absolute;
  bottom: 24px;
  width: 18px;
  height: 100px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(90deg, #3a2410, #75401f, #3a2410);
}

.splash-tree__crown {
  position: absolute;
  top: 8px;
  width: 150px;
  height: 128px;
  border-radius: 52% 48% 46% 54% / 56% 52% 48% 44%;
  background: radial-gradient(circle at 50% 32%, rgba(255, 184, 46, 0.32), rgba(117, 64, 31, 0.2) 52%, transparent 72%);
  border: 1px solid rgba(255, 184, 46, 0.28);
  box-shadow: 0 0 60px rgba(255, 184, 46, 0.18);
}

@keyframes treeGrow {
  0% { transform: scale(0.4); opacity: 0; }
  45% { opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.splash-crown {
  color: #ffb82e;
  font-size: 5rem;
  line-height: 1;
  text-shadow: 0 0 34px rgba(255, 184, 46, 0.55);
  animation: crownIn 1.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

@keyframes crownIn {
  0% { transform: translateY(22px) scale(0.5); opacity: 0; }
  55% { transform: translateY(-8px) scale(1.08); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Home fallback */

.rw-landing {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 72vh;
  padding: 40px 20px;
  overflow: hidden;
  text-align: center;
}

.rw-landing__halo {
  position: absolute;
  width: min(520px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 46, 0.14), transparent 66%);
  filter: blur(8px);
  pointer-events: none;
}

.rw-landing__acorn {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 78px;
  margin-bottom: 18px;
  border-radius: 50% 50% 46% 46% / 55% 55% 45% 45%;
  background: radial-gradient(circle at 34% 30%, #fff3c0, #ffb82e 44%, #a96525 76%, #75401f);
  box-shadow: 0 0 46px rgba(255, 184, 46, 0.45);
}

.rw-landing__acorn::before {
  content: "";
  position: absolute;
  inset: -10px -4px auto;
  height: 26px;
  border-radius: 50% 50% 34% 34%;
  background: linear-gradient(180deg, #75401f, #3a2410);
  box-shadow: inset 0 2px 0 rgba(255, 224, 160, 0.24);
}

.rw-eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: #a96525;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.rw-landing__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Montserrat", var(--font-display, sans-serif);
  font-size: clamp(2.2rem, 10vw, 4.6rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #ffe0a0;
  text-shadow: 0 0 34px rgba(255, 184, 46, 0.35);
}

.rw-landing__lead {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 16px 0 26px;
  color: #a99a8a;
  font-size: 0.94rem;
  line-height: 1.65;
}

.rw-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.rw-btn--gold {
  color: #23160a;
  background: linear-gradient(135deg, #ffe0a0, #ffb82e 55%, #a96525);
  box-shadow: 0 14px 30px rgba(255, 184, 46, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

@media (max-width: 860px) {
  .rw-topbar {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 9px 12px;
  }

  .rw-brand .brand__text small { display: none; }
  .rw-brand .brand__text strong { font-size: 0.78rem; letter-spacing: 0.1em; }

  .rw-top-balances { gap: 6px; }
  .rw-topbar .rw-balance-pill { padding: 7px 9px; font-size: 0.73rem; }
  .rw-topbar .rw-balance-pill--ton { display: none; }

  .rw-tabbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 60;
    justify-content: space-between;
    margin: 0;
    padding: 6px;
    border: 1px solid rgba(255, 184, 46, 0.22);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(27, 19, 12, 0.98), rgba(9, 7, 5, 0.98));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 224, 160, 0.1);
    backdrop-filter: blur(18px);
  }

  .rw-tabbar .tab {
    flex: 1 1 0;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    min-height: 50px;
    padding: 7px 4px;
    font-size: 0.6rem;
    letter-spacing: 0.02em;
    border-radius: 13px;
  }

  .rw-tabbar .tab span { line-height: 1; }

  .app-shell {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .footer { padding-bottom: 12px; }
}

@media (max-width: 420px) {
  .rw-brand .brand__text { display: none; }
  .splash__stage { height: 240px; }
  .splash-crown { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .splash-scene,
  .splash__progress span,
  .splash-acorn,
  .splash-tree,
  .splash-crown,
  .splash-coin,
  .splash-spark,
  .splash-ring {
    animation: none !important;
  }

  .splash-scene { opacity: 0; }
  .splash-scene--6 { opacity: 1; }

  .rw-game-card {
    animation: none !important;
    transition: none;
  }
}
