/* ============================================================
   RUG CLUB — Premium Design System
   ============================================================ */

:root {
  /* Palette */
  --bg:         #06040d;
  --bg-subtle:  #0c0916;
  --surface:    #110d1e;
  --surface-2:  #181230;
  --border:     rgba(255,255,255,0.05);
  --border-hi:  rgba(255,255,255,0.1);
  --text:       #eee8f5;
  --text-2:     #ccc3db;
  --muted:      #7d7394;
  --accent:     #ff3366;
  --accent-glow:rgba(255,51,102,0.25);
  --orange:     #ff8a2b;
  --purple:     #8b5cf6;
  --purple-glow:rgba(139,92,246,0.2);
  --green:      #00d68f;
  --yellow:     #ffc644;
  --red:        #ff4545;
  --r:          16px;
  --r-lg:       22px;
  --r-sm:       10px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text); min-height: 100vh;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
h1,h2,h3,h4,h5,p { margin: 0; }
button { border: 0; font: inherit; cursor: pointer; background: none; color: inherit; }

/* === Layout === */
.shell { max-width: 960px; margin: 0 auto; padding: 0 20px 80px; position: relative; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  display: flex; align-items: center; height: 64px; gap: 8px;
  border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 12px rgba(255,51,102,0.2); }
.nav-title {
  font-size: 1rem; font-weight: 700; letter-spacing: 0.14em;
  background: linear-gradient(135deg, var(--accent), var(--orange));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { margin-left: auto; display: flex; gap: 2px; }
.nav-link {
  font-size: 0.82rem; font-weight: 500; color: var(--muted);
  padding: 8px 14px; border-radius: 8px; transition: all 0.15s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.nav-auth { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.icp-price-badge {
  font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 8px;
  background: rgba(0,214,143,0.08); color: var(--green); border: 1px solid rgba(0,214,143,0.15);
  font-family: 'SF Mono', monospace;
}
.auth-msg { font-size: 0.78rem; color: var(--muted); }
.pid-badge:empty { display: none; }
.pid-badge {
  font-size: 0.7rem; font-family: 'SF Mono', monospace; padding: 4px 10px;
  border-radius: 6px; background: rgba(139,92,246,0.08); color: var(--purple);
  border: 1px solid rgba(139,92,246,0.12);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: var(--r-sm); font-size: 0.85rem; font-weight: 600;
  transition: all 0.2s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--orange));
  color: white; box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-accent:hover { box-shadow: 0 6px 32px var(--accent-glow); }
[hidden] { display: none !important; }

/* Treasury bar */
.treasury-bar {
  display: flex; gap: 12px; margin-bottom: 20px;
}
.treasury-item {
  flex: 1; display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(255,198,68,0.04), rgba(0,214,143,0.03));
  border: 1px solid rgba(255,198,68,0.08);
}
.treasury-label { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.treasury-item strong { font-size: 1.15rem; font-family: 'SF Mono', monospace; color: var(--yellow); margin-left: auto; }
.treasury-unit { font-size: 0.75rem; color: var(--muted); }
.btn-connect {
  background: linear-gradient(135deg, var(--green), #059669);
  color: white; box-shadow: 0 4px 16px rgba(0,214,143,0.2);
  padding: 10px 24px; font-weight: 700;
}
.btn-disconnect {
  background: rgba(255,69,69,0.12); color: var(--red);
  border: 1px solid rgba(255,69,69,0.2); padding: 10px 20px;
}
.btn-disconnect:hover { background: rgba(255,69,69,0.2); }
.btn-ghost { color: var(--muted); padding: 8px 14px; }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.btn-contribute { background: linear-gradient(135deg, #0a7a66, var(--green)); color: white; flex: 1; }
.btn-hold { background: rgba(255,255,255,0.06); color: var(--text-2); flex: 1; border: 1px solid var(--border); }
.btn-hold:hover { border-color: var(--border-hi); }
.btn-rug { background: linear-gradient(135deg, #b91c3a, #d9480f); color: white; flex: 1; box-shadow: 0 4px 16px rgba(185,28,58,0.2); }

.btn-row { display: flex; gap: 8px; }
.back-btn { margin: 12px 0 8px; font-size: 0.82rem; }

/* ============================================================
   TAGS
   ============================================================ */
.tag {
  display: inline-block; font-size: 0.65rem; font-weight: 600; padding: 3px 8px;
  border-radius: 5px; text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(255,255,255,0.04); color: var(--muted);
}
.tag-accent  { background: rgba(255,51,102,0.1);  color: #ff8097; }
.tag-purple  { background: rgba(139,92,246,0.1);  color: #b08ef7; }
.tag-warn    { background: rgba(255,198,68,0.1);  color: #ffe080; }
.tag-danger  { background: rgba(255,69,69,0.08);  color: #ff9090; }
.tag-muted   { background: rgba(255,255,255,0.03); color: var(--muted); }

/* ============================================================
   UTILITIES
   ============================================================ */
.muted { color: var(--muted); }
.small { font-size: 0.82rem; line-height: 1.55; }
.empty { color: var(--muted); font-size: 0.82rem; font-style: italic; padding: 12px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

/* ============================================================
   HERO — Landing Page
   ============================================================ */
.hero {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  margin-bottom: 28px; aspect-ratio: 2.2 / 1; min-height: 280px;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
}
.hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg,
    rgba(6,4,13,0.1) 0%,
    rgba(6,4,13,0.5) 50%,
    rgba(6,4,13,0.85) 100%
  );
  text-align: center; padding: 24px;
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.2rem); font-weight: 700; letter-spacing: 0.1em;
  background: linear-gradient(135deg, #fff 0%, var(--yellow) 45%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 8px; line-height: 1.1;
}
.hero-sub { color: rgba(255,255,255,0.6); font-size: 1.05rem; max-width: 420px; }

/* ============================================================
   GAME TILES — Landing Page
   ============================================================ */
.game-grid-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.game-tile {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); cursor: pointer;
  min-height: 300px; display: flex; align-items: flex-end;
  transition: all 0.3s ease;
}
.game-tile:hover { border-color: rgba(255,51,102,0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px var(--accent-glow); transform: translateY(-4px); }
.tile-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: brightness(0.45) saturate(1.15);
  transition: transform 0.5s ease, filter 0.3s;
}
.game-tile:hover .tile-bg { transform: scale(1.06); filter: brightness(0.55) saturate(1.2); }
.tile-content {
  position: relative; z-index: 1; width: 100%; padding: 28px 24px 24px;
  background: linear-gradient(180deg, transparent, rgba(6,4,13,0.95) 50%);
}
.tile-content h3 { font-size: 1.35rem; margin-bottom: 8px; letter-spacing: 0.02em; }
.tile-content p { color: var(--text-2); font-size: 0.85rem; line-height: 1.55; margin-bottom: 12px; }
.tile-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-dev { background: rgba(255,198,68,0.15); color: var(--yellow); }

/* Under development banner */
.dev-tile { pointer-events: auto; }
.dev-tile .tile-bg { filter: brightness(0.25) saturate(0.5) !important; }
.dev-tile:hover .tile-bg { filter: brightness(0.3) saturate(0.6) !important; transform: none !important; }
.dev-tile:hover { transform: none; box-shadow: none; border-color: var(--border); }
.live-banner {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  padding: 8px 0; text-align: center;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(0,214,143,0.15);
  color: var(--green); border-bottom: 1px solid rgba(0,214,143,0.25);
}
.live-tile:hover { border-color: rgba(0,214,143,0.4); box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(0,214,143,0.1); }
.dev-banner {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  padding: 10px 0; text-align: center;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: repeating-linear-gradient(135deg, rgba(255,198,68,0.15), rgba(255,198,68,0.15) 10px, rgba(255,198,68,0.08) 10px, rgba(255,198,68,0.08) 20px);
  color: var(--yellow); border-bottom: 1px solid rgba(255,198,68,0.2);
}

/* Trust bar */
.trust-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.trust-item {
  display: flex; align-items: center; gap: 14px; padding: 18px 16px;
  border-radius: var(--r); background: var(--surface);
  border: 1px solid var(--border);
}
.trust-icon { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.trust-ii, .trust-chain {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 0.75rem; flex-shrink: 0;
}
.trust-ii { background: linear-gradient(135deg, var(--purple), #6d28d9); color: white; box-shadow: 0 4px 12px var(--purple-glow); }
.trust-chain { background: linear-gradient(135deg, var(--green), #059669); color: white; }
.trust-item strong { font-size: 0.88rem; display: block; margin-bottom: 2px; }
.trust-item .small { font-size: 0.75rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px; position: relative; overflow: hidden;
}
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card h3 { font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-decor {
  position: absolute; right: -16px; bottom: -16px; width: 130px; opacity: 0.06;
  pointer-events: none; image-rendering: auto;
}
.chaos-decor { width: 150px; right: -8px; opacity: 0.05; }

/* ============================================================
   GAME HEADER (shared between games)
   ============================================================ */
.game-header {
  display: flex; align-items: center; gap: 24px; margin-bottom: 20px;
  padding: 24px 28px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(139,92,246,0.05), rgba(255,51,102,0.03));
  border: 1px solid var(--border);
}
.swap-header { background: linear-gradient(135deg, rgba(255,51,102,0.05), rgba(255,138,43,0.03)); }
.gh-art {
  width: 96px; height: 96px; border-radius: var(--r); object-fit: cover;
  flex-shrink: 0; box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.06);
}
.gh-text h2 { font-size: 1.5rem; margin-bottom: 6px; }
.gh-text .muted { font-size: 0.88rem; }

/* ============================================================
   BOSS HP BAR
   ============================================================ */
/* (Boss bar + Signal box removed — Rug King game was removed) */

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ============================================================
   STATS
   ============================================================ */
.stat-row { display: grid; gap: 8px; margin-bottom: 10px; }
.stat-row.three { grid-template-columns: repeat(3, 1fr); }
.stat-row.two { grid-template-columns: repeat(2, 1fr); }
.stat {
  padding: 14px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.015); border: 1px solid var(--border);
}
.stat.highlight { border-color: rgba(255,198,68,0.12); background: rgba(255,198,68,0.02); }
.stat-l { display: block; font-size: 0.62rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.stat strong { font-size: 1.2rem; }

/* Player list */
.player-wrap { margin-top: 16px; }
.player-wrap h4 { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
#playerList { list-style: none; }
#playerList li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-radius: 8px; font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
#playerList li:last-child { border: none; }
#playerList li:hover { background: rgba(255,255,255,0.015); }
#playerList li.dead { opacity: 0.3; }
.pl-bal { color: var(--yellow); font-weight: 600; font-size: 0.82rem; font-family: 'SF Mono', monospace; }
.pl-dead { color: var(--red); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

.resolution {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm);
  background: rgba(139,92,246,0.03); border: 1px solid rgba(139,92,246,0.06);
  color: var(--text-2); font-size: 0.82rem; line-height: 1.6;
}

/* Action section */
.target-picker {
  margin-top: 12px; padding: 14px; border-radius: var(--r-sm);
  background: rgba(0,0,0,0.2); border: 1px solid var(--border);
}
.select {
  width: 100%; padding: 10px 12px; border-radius: 8px; font: inherit; font-size: 0.85rem;
  background: rgba(255,255,255,0.03); color: var(--text); border: 1px solid var(--border);
}
.select option { background: var(--surface); }

/* ============================================================
   SCOTT SWAP — Pool
   ============================================================ */
.pool-hero {
  padding: 32px; border-radius: var(--r-lg); margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(255,51,102,0.04), rgba(255,138,43,0.02)), var(--surface);
  border: 1px solid rgba(255,51,102,0.08);
}
.pool-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.pool-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 4px; }
.pool-row { display: flex; align-items: baseline; gap: 8px; }
.pool-amount { font-size: 2.8rem; font-weight: 700; color: var(--accent); line-height: 1; }
.pool-unit { font-size: 1rem; color: var(--muted); }
.pool-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; color: var(--muted); font-size: 0.88rem; }
.pool-stat-pills { display: flex; gap: 8px; }
.pool-pill {
  padding: 6px 14px; border-radius: 8px; font-size: 0.82rem;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
}
.pool-pill strong { color: var(--yellow); }
.countdown-subtle { color: var(--muted); font-size: 0.78rem; font-style: italic; }
.pool-splits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.ps {
  text-align: center; padding: 14px; border-radius: var(--r-sm);
  background: rgba(0,0,0,0.15); border: 1px solid rgba(255,255,255,0.03);
}
.ps span { display: block; font-size: 0.62rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 5px; }
.ps strong { font-size: 1.1rem; }

/* Deposit form */
.input-row { display: flex; gap: 8px; }
.input {
  flex: 1; padding: 13px 16px; border-radius: var(--r-sm);
  background: rgba(255,255,255,0.02); color: var(--text);
  border: 1px solid var(--border); font: inherit; font-size: 1rem;
  transition: all 0.2s;
}
.input::placeholder { color: rgba(125,115,148,0.4); }
.input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139,92,246,0.08); }

/* Deposit list */
.dep-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 8px; font-size: 0.82rem; margin-bottom: 3px;
}
.dep-row.hot { background: rgba(255,51,102,0.03); border: 1px solid rgba(255,51,102,0.06); }
.dep-rank { color: var(--accent); font-weight: 700; min-width: 28px; font-size: 0.78rem; }
.dep-amt { margin-left: auto; color: var(--yellow); font-weight: 600; font-family: 'SF Mono', monospace; font-size: 0.8rem; }

/* Rank table */
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table td { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 0.88rem; }
.rank-table tr:last-child td { border: none; }
.rank-pct { text-align: right; font-weight: 700; font-size: 1.05rem; color: var(--green); }

/* Rug history */
.hist-item {
  padding: 16px; border-radius: var(--r-sm); margin-bottom: 8px;
  background: rgba(255,51,102,0.02); border: 1px solid rgba(255,51,102,0.04);
}
.hist-head { font-weight: 600; color: var(--accent); font-size: 0.88rem; margin-bottom: 8px; }
.hist-pay { font-size: 0.8rem; color: var(--muted); padding: 3px 0; }

/* ============================================================
   PROFILE
   ============================================================ */
.profile-hero { text-align: center; margin-bottom: -50px; position: relative; z-index: 0; }
.profile-hero-art {
  width: 180px; margin: 0 auto; opacity: 0.5;
  mask-image: linear-gradient(180deg, black 40%, transparent);
  -webkit-mask-image: linear-gradient(180deg, black 40%, transparent);
}
.profile-card { position: relative; z-index: 1; text-align: center; max-width: 480px; margin: 0 auto; overflow: visible; }
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%; margin: -36px auto 20px;
  object-fit: cover; border: 3px solid var(--surface); box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.profile-card h2 { margin-bottom: 24px; font-size: 1.3rem; }
.pf-field {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem;
}
.pf-field:last-child { border: none; }
.pf-label { color: var(--muted); font-weight: 500; }
.pf-code {
  font-size: 0.7rem; color: var(--purple); word-break: break-all;
  background: rgba(139,92,246,0.05); padding: 5px 10px; border-radius: 6px;
  font-family: 'SF Mono', monospace; border: 1px solid rgba(139,92,246,0.08);
  max-width: 280px; text-align: right;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-hero {
  display: flex; align-items: center; gap: 24px; margin-bottom: 20px;
  padding: 28px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(139,92,246,0.04), rgba(255,51,102,0.02));
  border: 1px solid var(--border);
}
.faq-hero-art {
  width: 88px; height: 88px; object-fit: cover; flex-shrink: 0;
  border-radius: var(--r); box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.faq-hero h2 { font-size: 1.4rem; }
.faq-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.faq-item:last-child { border: none; padding-bottom: 0; }
.faq-item h4 { font-size: 0.95rem; margin-bottom: 8px; }
.faq-item p { color: var(--text-2); font-size: 0.85rem; line-height: 1.7; }

/* ============================================================
   WALLET
   ============================================================ */
.wallet-bal { display: flex; flex-direction: column; gap: 2px; }
.wb-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px; border-radius: var(--r-sm); background: rgba(255,255,255,0.015);
  border: 1px solid var(--border);
}
.wb-row + .wb-row { margin-top: 6px; }
.wb-token {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--yellow);
  padding: 3px 10px; border-radius: 5px; background: rgba(255,198,68,0.08);
}
.wb-scott { color: var(--purple); background: rgba(139,92,246,0.08); }
.wb-mcdoms { color: var(--accent); background: rgba(255,51,102,0.08); }
.wb-row strong { font-size: 1.15rem; font-family: 'SF Mono', monospace; }

.wallet-addr { margin-bottom: 14px; }
.wallet-addr:last-child { margin-bottom: 0; }
.wa-label { display: block; font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.wa-row { display: flex; gap: 8px; align-items: center; }
.wa-code {
  flex: 1; font-size: 0.7rem; font-family: 'SF Mono', monospace; color: var(--purple);
  padding: 10px 12px; border-radius: 8px; background: rgba(139,92,246,0.04);
  border: 1px solid rgba(139,92,246,0.08); word-break: break-all; line-height: 1.4;
}
.btn-copy { padding: 8px 12px; font-size: 0.78rem; flex-shrink: 0; }

/* Profile extras */
.setup-hint {
  text-align: center; padding: 12px 16px; margin-bottom: 16px;
  border-radius: var(--r-sm); background: rgba(255,198,68,0.06);
  border: 1px solid rgba(255,198,68,0.12); color: var(--yellow);
  font-size: 0.88rem; font-weight: 600;
}
.input-sm {
  padding: 8px 12px; font-size: 0.88rem; border-radius: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  color: var(--text); width: 180px; text-align: right;
}
.input-sm:focus { outline: none; border-color: var(--purple); }

/* Avatar upload */
.avatar-upload-wrap { position: relative; display: flex; flex-direction: column; align-items: center; margin: -48px auto 16px; }
.avatar-upload-wrap .profile-avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--surface); box-shadow: 0 6px 24px rgba(0,0,0,0.6);
  cursor: pointer; transition: filter 0.2s; background: var(--surface);
}
.avatar-upload-wrap:hover .profile-avatar { filter: brightness(0.7); }
.avatar-upload-label {
  display: inline-block; margin-top: 8px; padding: 5px 14px;
  border-radius: 8px; font-size: 0.75rem; font-weight: 600;
  background: rgba(139,92,246,0.1); color: var(--purple);
  border: 1px solid rgba(139,92,246,0.15); cursor: pointer;
  transition: all 0.15s;
}
.avatar-upload-label:hover { background: rgba(139,92,246,0.18); }
.avatar-input-hidden { display: none; }

/* Inline avatars (deposit lists, player lists, leaderboards) */
.inline-avatar {
  width: 24px; height: 24px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(255,255,255,0.08); flex-shrink: 0;
  vertical-align: middle; display: inline-block;
}
.dep-row .inline-avatar { margin-right: 2px; }
.dep-name { flex: 1; }
#playerList li .inline-avatar { margin-right: 8px; }
.hist-pay { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.hist-pay .inline-avatar { width: 20px; height: 20px; }
.hist-amt { margin-left: auto; color: var(--green); font-weight: 600; font-family: 'SF Mono', monospace; font-size: 0.82rem; }

/* Rug animation avatar */
.rpr-avatar {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1); flex-shrink: 0;
}

/* Profile stats grid */
.profile-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.ps-card {
  padding: 16px; border-radius: var(--r-sm); text-align: left;
  background: rgba(255,255,255,0.015); border: 1px solid var(--border);
}
.ps-label { display: block; font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.ps-stat { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; }
.ps-stat strong { font-size: 1.1rem; }
.ps-stat span { font-size: 0.72rem; color: var(--muted); }

/* Last Winner card */
.last-winner-card { border-color: rgba(255,198,68,0.12); background: linear-gradient(135deg, rgba(255,198,68,0.03), rgba(0,214,143,0.02)), var(--surface); }
.lw-inner { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-sm); background: rgba(0,0,0,0.2); }
.lw-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--yellow); flex-shrink: 0; }
.lw-inner strong { display: block; font-size: 1rem; }
.lw-amt { color: var(--green); font-weight: 700; font-size: 1.1rem; font-family: 'SF Mono', monospace; }
.lw-badge { margin-left: auto; padding: 5px 12px; border-radius: 8px; font-size: 0.7rem; font-weight: 700; background: rgba(255,198,68,0.12); color: var(--yellow); text-transform: uppercase; letter-spacing: 0.06em; }

/* Lifetime stats */
.ls-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.ls-row:last-child { border: none; }
.ls-row span { color: var(--muted); }
.ls-row strong { color: var(--text); font-family: 'SF Mono', monospace; }

/* ============================================================
   BIKE HEIST GAME
   ============================================================ */
.heist-game-wrap {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); background: #0a0816;
}
.heist-canvas {
  width: 100%; height: auto; display: block;
  aspect-ratio: 800 / 500; background: #0a0816;
  image-rendering: auto;
}
.heist-controls {
  display: flex; gap: 10px; padding: 14px 18px;
  background: rgba(0,0,0,0.4); border-top: 1px solid var(--border);
  justify-content: center;
}
.heist-rug-btn {
  background: linear-gradient(135deg, #b91c3a, #d9480f) !important;
  color: white !important; font-size: 1.6rem !important; font-weight: 900 !important;
  padding: 22px 0 !important; border-radius: 18px !important; width: 100% !important;
  box-shadow: 0 6px 32px rgba(185,28,58,0.4), 0 0 60px rgba(255,69,69,0.15);
  animation: rugBtnPulse 1s ease infinite;
  text-transform: uppercase; letter-spacing: 0.12em;
  position: sticky; bottom: 0; z-index: 100;
}
.heist-play-btn {
  padding: 14px 36px !important; font-size: 1rem !important;
}
@keyframes rugBtnPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(185,28,58,0.3); }
  50% { box-shadow: 0 4px 32px rgba(185,28,58,0.5), 0 0 48px rgba(255,69,69,0.15); }
}
.heist-instructions {
  display: flex; gap: 20px; justify-content: center; padding: 10px 16px;
  background: rgba(0,0,0,0.3); border-top: 1px solid rgba(255,255,255,0.02);
  color: var(--muted); font-size: 0.75rem;
}
.heist-instructions span { display: flex; align-items: center; gap: 4px; }

/* ============================================================
   LEADERBOARD
   ============================================================ */
.lb-tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.lb-tab {
  padding: 8px 16px; border-radius: 8px; font-size: 0.82rem; font-weight: 600;
  background: rgba(255,255,255,0.03); color: var(--muted); border: 1px solid var(--border);
  cursor: pointer; transition: all 0.15s;
}
.lb-tab:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.lb-tab.active { background: rgba(255,51,102,0.1); color: var(--accent); border-color: rgba(255,51,102,0.2); }

.lb-list { display: flex; flex-direction: column; gap: 4px; }
.lb-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-radius: var(--r-sm); background: rgba(255,255,255,0.015); border: 1px solid var(--border);
}
.lb-row.lb-top { border-color: rgba(255,198,68,0.15); background: rgba(255,198,68,0.02); }
.lb-rank { font-size: 1.1rem; font-weight: 700; min-width: 28px; color: var(--yellow); text-align: center; }
.lb-name { flex: 1; font-size: 0.88rem; }
.lb-val { font-weight: 700; font-family: 'SF Mono', monospace; color: var(--green); font-size: 0.9rem; }

/* ============================================================
   ACTIVITY FEED
   ============================================================ */
.activity-feed { margin-bottom: 20px; padding: 16px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.activity-list { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; }
.activity-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 8px; font-size: 0.8rem; background: rgba(255,255,255,0.01);
}
.activity-row:hover { background: rgba(255,255,255,0.03); }
.activity-icon { font-size: 1rem; flex-shrink: 0; }
.activity-who { font-weight: 600; flex-shrink: 0; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
.activity-detail { color: var(--muted); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-val { color: var(--green); font-weight: 600; font-family: 'SF Mono', monospace; flex-shrink: 0; }

/* ============================================================
   RUG KING: TIMING MODE
   ============================================================ */
.tk-danger-wrap { margin-bottom: 16px; }
.tk-danger-bar { height: 24px; border-radius: 99px; background: rgba(255,255,255,0.04); overflow: hidden; border: 1px solid var(--border); }
.tk-danger-fill { height: 100%; border-radius: 99px; width: 0%; transition: width 0.3s ease, background 0.5s; background: linear-gradient(90deg, var(--green), var(--yellow), var(--accent), var(--red)); }
.tk-danger-labels { display: flex; justify-content: space-between; padding: 4px 8px; font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.tk-danger-text { font-weight: 700; color: var(--yellow); }
.tk-pool { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.tk-pool-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.tk-players { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 16px; }
.tk-player-card { padding: 12px; border-radius: var(--r-sm); background: rgba(255,255,255,0.02); border: 1px solid var(--border); text-align: center; font-size: 0.82rem; }
.tk-player-card.escaped { border-color: rgba(0,214,143,0.3); background: rgba(0,214,143,0.04); }
.tk-player-card.rugged { border-color: rgba(255,69,69,0.3); background: rgba(255,69,69,0.04); opacity: 0.5; }
.tk-player-card .inline-avatar { width: 36px; height: 36px; margin: 0 auto 6px; display: block; }
.tk-controls { margin-bottom: 12px; }
.tk-cashout-btn {
  width: 100% !important; padding: 24px 0 !important; font-size: 2rem !important; font-weight: 900 !important;
  background: linear-gradient(135deg, var(--green), #059669) !important; color: white !important;
  border-radius: 18px !important; letter-spacing: 0.1em;
  box-shadow: 0 6px 32px rgba(0,214,143,0.3); animation: rugBtnPulse 1.2s ease infinite;
}
.tk-escaped-strip { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tk-escaped-chip { padding: 6px 12px; border-radius: 8px; background: rgba(0,214,143,0.06); border: 1px solid rgba(0,214,143,0.12); font-size: 0.78rem; display: flex; align-items: center; gap: 6px; }
.tk-escaped-chip .inline-avatar { width: 18px; height: 18px; }

/* ============================================================
   SCOTT POTATO
   ============================================================ */
.sp-pot { text-align: center; padding: 20px; margin-bottom: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.sp-table { position: relative; width: 100%; max-width: 500px; margin: 0 auto 20px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,246,0.06), transparent 70%); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; }
.sp-center { text-align: center; }
.sp-scott-img { width: 80px; height: 80px; image-rendering: auto; border-radius: 12px; filter: drop-shadow(0 4px 16px rgba(255,51,102,0.3)); }
.sp-scott-text { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }
.sp-player-node { position: absolute; width: 60px; text-align: center; }
.sp-player-node .inline-avatar { width: 40px; height: 40px; margin: 0 auto 4px; display: block; border: 2px solid var(--border); }
.sp-player-node.holding .inline-avatar { border-color: var(--red); box-shadow: 0 0 16px rgba(255,69,69,0.5); animation: rugBtnPulse 0.5s ease infinite; }
.sp-player-node.exploded .inline-avatar { filter: grayscale(1); opacity: 0.3; }
.sp-player-node .sp-name { font-size: 0.7rem; color: var(--muted); }
.sp-player-node.holding .sp-name { color: var(--red); font-weight: 700; }
.sp-controls { text-align: center; }

/* Heist splash */
.heist-splash {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(180deg, rgba(6,4,13,0.95), rgba(10,8,22,0.98));
  z-index: 5; gap: 12px; padding: 24px;
}
.heist-splash-art { width: 100px; image-rendering: auto; border-radius: 16px; }
.heist-splash h2 { font-size: 1.5rem; background: linear-gradient(135deg, var(--accent), var(--orange)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.heist-splash p { color: var(--muted); font-size: 0.92rem; }
.heist-splash-rules { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.heist-splash-rules span { padding: 7px 12px; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); font-size: 0.78rem; color: var(--text-2); }
.heist-game-wrap { position: relative; }

/* Sell SCOTT card */
.sell-scott-card {
  margin-bottom: 16px;
  border-color: rgba(0,214,143,0.12);
  background: linear-gradient(135deg, rgba(0,214,143,0.03), rgba(139,92,246,0.02)), var(--surface);
}
.pct-buttons { display: flex; gap: 6px; }
.btn-pct {
  flex: 1; padding: 8px 0 !important; font-size: 0.82rem !important; font-weight: 700 !important;
  background: rgba(255,255,255,0.04) !important; color: var(--text) !important;
  border: 1px solid var(--border) !important; border-radius: 8px !important;
}
.btn-pct:hover { background: rgba(255,255,255,0.08) !important; border-color: var(--green) !important; }
.btn-pct-max { background: rgba(0,214,143,0.1) !important; color: var(--green) !important; border-color: rgba(0,214,143,0.2) !important; }

/* Swap overlay animation */
.swap-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(6,4,13,0.92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  animation: rugFadeIn 0.2s ease;
}
.swap-overlay.swap-fadeout { animation: rugFadeOut 0.4s ease forwards; }
.swap-overlay-inner {
  text-align: center; max-width: 420px; padding: 32px 24px;
  background: rgba(17,13,30,0.95); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px; box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.swap-scott {
  width: 120px; height: 120px; margin: 0 auto 16px; image-rendering: auto;
  animation: swapBounce 0.8s ease infinite alternate; border-radius: 16px;
}
.swap-loader {
  width: 48px; height: 48px; margin: 0 auto 20px;
  border: 3px solid rgba(255,255,255,0.08); border-top-color: var(--green);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
.swap-quote {
  font-size: 1.1rem; font-weight: 600; color: var(--text); line-height: 1.5;
  margin-bottom: 8px; font-style: italic;
}
.swap-sub { color: var(--muted); font-size: 0.85rem; }

/* Swap success */
.swap-success { background: rgba(0,214,143,0.06); }
.swap-pump-text {
  font-size: clamp(2rem, 8vw, 3.5rem); font-weight: 700; letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--green), var(--yellow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: rugTitleSlam 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  margin-bottom: 12px;
}
.swap-success-quote { color: var(--green); font-size: 1.1rem; line-height: 1.5; font-weight: 500; }
.swap-scott-success {
  width: 88px; margin: 16px auto 0; border-radius: 14px;
  animation: swapBounce 0.6s ease infinite alternate;
  filter: drop-shadow(0 4px 16px rgba(139,92,246,0.3));
}

@keyframes swapBounce { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Chart */
.chart-card {
  margin-bottom: 16px; padding: 20px 24px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #080515, #0c0920);
  border: 1px solid rgba(0,214,143,0.1);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.02);
}
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.chart-header h3 { font-size: 0.95rem; margin: 0; }
.chart-price { font-size: 1.5rem; font-weight: 800; color: #00d68f; font-family: 'SF Mono', 'Courier New', monospace; text-shadow: 0 0 12px rgba(0,214,143,0.4); letter-spacing: -0.02em; }
.chart-wrap { width: 100%; overflow: hidden; border-radius: 8px; background: rgba(0,0,0,0.2); }
.chart-wrap canvas { width: 100%; height: 360px; display: block; border-radius: 8px; }

/* ============================================================
   RUG PULL ANIMATION
   ============================================================ */
body.rug-active { overflow: hidden; }

.rug-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(6,4,13,0.97);
  display: flex; align-items: center; justify-content: center;
  animation: rugFadeIn 0.3s ease;
}
.rug-overlay.rug-fadeout { animation: rugFadeOut 0.4s ease forwards; }

.rug-cinema { width: 100%; max-width: 700px; padding: 20px; text-align: center; }

.rug-stage {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 50vh; gap: 16px;
}

/* Stage 1: Warning */
.rug-warning { animation: rugPulseRed 0.5s ease infinite alternate; }
.rug-alert-text {
  font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 700;
  color: var(--red); letter-spacing: 0.1em;
  animation: rugFlicker 0.15s ease infinite;
}
.rug-siren {
  width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(circle, var(--red), #8b0000);
  box-shadow: 0 0 40px var(--red), 0 0 80px rgba(255,69,69,0.4);
  animation: rugSirenPulse 0.4s ease infinite alternate;
}

/* Stage 2: Scott runs */
.rug-pull { position: relative; overflow: hidden; flex-direction: row; }
.rug-scott-run {
  width: 340px; max-width: 80vw; image-rendering: auto; border-radius: 16px;
  animation: rugRunIn 2.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  filter: drop-shadow(0 8px 32px rgba(255,51,102,0.4));
}
.rug-trail {
  position: absolute; bottom: 20%; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--red), var(--orange), transparent);
  animation: rugTrailSlide 1.5s ease infinite;
}

/* Stage 3: RUGGED title */
.rug-title-text {
  font-size: clamp(3rem, 12vw, 6rem); font-weight: 700; letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--yellow));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: rugTitleSlam 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  filter: drop-shadow(0 4px 20px rgba(255,51,102,0.5));
}
.rug-subtitle { color: var(--muted); font-size: 1.1rem; margin-top: 8px; }
.rug-pool-text {
  font-size: 2rem; font-weight: 700; color: var(--yellow); margin-top: 12px;
  font-family: 'SF Mono', monospace;
}
.rug-cycle { color: var(--accent); }

/* Stage 4: Payouts */
.rug-payout-title {
  font-size: 1.6rem; letter-spacing: 0.12em; margin-bottom: 20px;
  color: var(--green);
}
.rug-payout-list { width: 100%; max-width: 400px; }
.rug-payout-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  margin-bottom: 6px; border-radius: 12px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
  animation: rugPayoutSlide 0.4s ease both;
}
.rpr-medal { font-size: 1.3rem; min-width: 32px; text-align: center; }
.rpr-who { flex: 1; color: var(--text-2); font-size: 0.88rem; font-family: 'SF Mono', monospace; }
.rpr-amt { color: var(--green); font-weight: 700; font-size: 1rem; }

.rug-coins { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rug-coin-particle {
  position: absolute; top: -30px; font-size: 1.4rem; color: var(--yellow);
  animation: rugCoinFall linear infinite;
  opacity: 0.7;
}

/* Stage 5: Blame */
.rug-blame-img {
  width: 320px; max-width: 80vw; image-rendering: auto; border-radius: 16px;
  animation: rugBlameIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  filter: drop-shadow(0 8px 32px rgba(139,92,246,0.3));
}

/* Stage 6: Close */
.rug-close-text { color: var(--muted); font-size: 1.05rem; margin-bottom: 20px; }
.rug-close-btn {
  padding: 14px 32px; border-radius: 12px; font-size: 1rem; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--orange));
  color: white; border: none; cursor: pointer;
  box-shadow: 0 4px 24px rgba(255,51,102,0.3);
  transition: transform 0.2s;
}
.rug-close-btn:hover { transform: scale(1.05); }

/* Shake modifier */
.rug-shake { animation: rugShake 0.6s ease; }
.rug-flash::before {
  content: ''; position: fixed; inset: 0; z-index: 10000;
  background: rgba(255,51,102,0.3); pointer-events: none;
  animation: rugFlashFade 0.3s ease forwards;
}

/* Keyframes */
@keyframes rugFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rugFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes rugPulseRed { from { background: rgba(255,69,69,0.02); } to { background: rgba(255,69,69,0.06); } }
@keyframes rugFlicker { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }
@keyframes rugSirenPulse { from { transform: scale(0.9); opacity: 0.7; } to { transform: scale(1.1); opacity: 1; } }
@keyframes rugRunIn { 0% { transform: translateX(-120%) rotate(-5deg); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateX(0) rotate(0deg); opacity: 1; } }
@keyframes rugTrailSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes rugTitleSlam { 0% { transform: scale(3) rotate(-5deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes rugPayoutSlide { from { transform: translateX(-30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes rugCoinFall { 0% { transform: translateY(-30px) rotate(0deg); opacity: 0.7; } 100% { transform: translateY(100vh) rotate(360deg); opacity: 0; } }
@keyframes rugBlameIn { 0% { transform: scale(0.5) rotate(5deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes rugShake { 0%,100% { transform: translateX(0); } 10%,30%,50%,70%,90% { transform: translateX(-6px); } 20%,40%,60%,80% { transform: translateX(6px); } }
@keyframes rugFlashFade { from { opacity: 1; } to { opacity: 0; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .shell { padding: 0 12px 60px; }
  .two-col, .game-grid-menu { grid-template-columns: 1fr; }
  .trust-bar, .treasury-bar { flex-direction: column; }
  .nav { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 6px; }
  .nav-links { margin-left: 0; order: 10; width: 100%; justify-content: center; }
  .nav-auth { margin-left: auto; }
  .game-header, .faq-hero { flex-direction: column; text-align: center; }
  .gh-art, .faq-hero-art { width: 72px; height: 72px; }
  .stat-row.three { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 180px; aspect-ratio: auto; }
  .hero-title { font-size: 2rem; }
  .pool-top { flex-direction: column; }
  .pool-right { align-items: flex-start; }
  .pool-amount { font-size: 1.8rem; }
  .card { padding: 18px; }
  .heist-canvas { max-height: 300px; }
  .heist-rug-btn { font-size: 1.2rem !important; padding: 18px 0 !important; }
  .heist-instructions { flex-wrap: wrap; gap: 8px; font-size: 0.7rem; }
  .pct-buttons { flex-wrap: wrap; }
  .wb-row { flex-direction: column; gap: 6px; align-items: flex-start; }
  .wb-row strong { font-size: 1rem; }
  .wa-row { flex-direction: column; gap: 6px; }
  .wa-code { font-size: 0.65rem; }
}

@media (max-width: 480px) {
  .btn-row { flex-direction: column; }
  .input-row { flex-direction: column; }
  .game-tile { min-height: 220px; }
  .hero-title { font-size: 1.6rem; letter-spacing: 0.06em; }
  .hero-sub { font-size: 0.85rem; }
  .pool-splits { grid-template-columns: 1fr; }
  .pool-amount { font-size: 1.5rem; }
  .pf-field { flex-direction: column; align-items: flex-start; gap: 6px; }
  .pf-code { max-width: 100%; text-align: left; font-size: 0.6rem; }
  .nav-title { font-size: 0.9rem; }
  .nav-logo { width: 28px; height: 28px; }
  .sell-scott-card .input-row { flex-direction: row; } /* keep sell button inline */
  .treasury-item { flex-wrap: wrap; }
  .treasury-item strong { font-size: 1rem; }
  .pool-highlights { grid-template-columns: 1fr 1fr; }
}

/* ===== P&L CARD ===== */
.pnl-card {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  padding: 16px;
}
.pnl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.9rem;
}
.pnl-label { color: var(--muted); }
.pnl-val { font-weight: 600; }
.pnl-green { color: #00ff88; }
.pnl-red { color: #ff4444; }
.pnl-divider { border-top: 1px solid var(--border-hi); margin: 8px 0; }
.pnl-total { font-size: 1.1rem; }
.pnl-total .pnl-val { font-size: 1.2rem; }

/* ===== POOL HIGHLIGHTS ===== */
.pool-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0 16px;
}
.pool-card {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.pool-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.pool-val { font-size: 1.05rem; font-weight: 700; color: var(--text); }

/* ===== GAME ACTIVITY FEED (per-game) ===== */
.game-activity {
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.82rem;
}
.game-activity .activity-row {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

/* ===== P&L LEADERBOARD ===== */
.pnl-lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface);
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.pnl-lb-row:hover { background: var(--surface-2); }
.pnl-lb-rank { font-weight: 700; width: 28px; text-align: center; color: var(--muted); }
.pnl-lb-name { flex: 1; font-weight: 500; }
.pnl-lb-spent { color: #ff4444; font-size: 0.85rem; min-width: 80px; text-align: right; }
.pnl-lb-earned { color: #00ff88; font-size: 0.85rem; min-width: 80px; text-align: right; }
.pnl-lb-net { font-weight: 700; font-size: 0.95rem; min-width: 90px; text-align: right; }

/* ===== SWAP NOTIFICATION TOAST ===== */
.swap-toast {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: linear-gradient(135deg, #1a0f2e, #2d1b52);
  border: 1px solid var(--purple);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 9000;
  animation: slideInRight 0.4s ease;
  box-shadow: 0 4px 20px rgba(139,92,246,0.3);
  max-width: 280px;
}
.swap-toast:hover { transform: scale(1.02); }
@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== SWAP HYPE BANNER ===== */
.swap-hype-banner {
  width: 100%;
  background: linear-gradient(90deg, #1a0525, #2d0a3e 40%, #3d0a1e 70%, #1a0525);
  border-bottom: 2px solid var(--accent);
  padding: 0;
  position: relative;
  z-index: 800;
  animation: shbSlideDown 0.4s ease;
  overflow: hidden;
}
.swap-hype-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,51,102,0.08), transparent);
  animation: shbShimmer 3s linear infinite;
}
@keyframes shbSlideDown {
  from { max-height: 0; opacity: 0; }
  to { max-height: 80px; opacity: 1; }
}
@keyframes shbShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.shb-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  position: relative;
  z-index: 1;
}
.shb-icon { font-size: 1.3rem; flex-shrink: 0; }
.shb-text {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}
.shb-text strong { color: #00ff88; }
.shb-cta {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  animation: shbPulse 1.5s ease-in-out infinite;
}
@keyframes shbPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(255,51,102,0.3); }
  50% { box-shadow: 0 0 16px rgba(255,51,102,0.6); }
}
.shb-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
}
.shb-close:hover { color: var(--text); }
@media (max-width: 600px) {
  .shb-inner { flex-wrap: wrap; gap: 6px; }
  .shb-cta { width: 100%; text-align: center; }
}

/* ===== PULSING EFFECTS (dopamine triggers) ===== */
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(255,51,102,0.2); }
  50% { box-shadow: 0 0 20px rgba(255,51,102,0.5), 0 0 40px rgba(255,51,102,0.15); }
}
.pulse-banner {
  animation: pulseBanner 1.5s ease-in-out infinite;
}
@keyframes pulseBanner {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

/* ===== 6TH GAME PLACEHOLDER ===== */
.coming-soon-tile {
  position: relative;
  overflow: hidden;
  cursor: default !important;
  opacity: 0.7;
}
.coming-soon-tile:hover { opacity: 0.85; }
.coming-soon-banner {
  position: absolute;
  top: 14px; left: 0; right: 0;
  text-align: center;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--purple);
  padding: 6px 12px;
  z-index: 2;
  text-shadow: 0 0 12px var(--purple-glow);
}
.tag-purple { background: var(--purple); color: #fff; }

/* ===== TILE POOL INLINE ===== */
.tile-pool {
  font-size: 0.85rem;
  font-weight: 700;
  color: #00ff88;
  margin: 6px 0;
  text-shadow: 0 0 8px rgba(0,255,136,0.3);
}

/* ===== JACKPOT PAGE ===== */
.jackpot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.jackpot-card {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-hi);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.jackpot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  border-color: var(--accent);
}
.jackpot-live {
  border-color: var(--accent);
  animation: pulseGlow 2.5s ease-in-out infinite;
}
.jackpot-icon { font-size: 2.5rem; margin-bottom: 8px; }
.jackpot-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.jackpot-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: #00ff88;
  margin: 12px 0;
  text-shadow: 0 0 16px rgba(0,255,136,0.4);
}
.jackpot-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.jackpot-play-btn {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ===== BETTER BUTTONS (dopamine) ===== */
.btn-accent {
  position: relative;
  overflow: hidden;
}
.btn-accent::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}
.btn-accent:hover::after { left: 100%; }

/* Game tile hover glow based on type */
.live-tile:hover { box-shadow: 0 0 30px rgba(255,51,102,0.3); }
.dev-tile:hover { box-shadow: 0 0 20px rgba(139,92,246,0.2); }

/* ===== TILE REWARD BADGES ===== */
.tile-reward {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #00ff88;
  letter-spacing: 0.03em;
}
.reward-icon { width: 16px; height: 16px; border-radius: 50%; vertical-align: middle; }

/* ===== SCOTT SCAM TRACKER ===== */
.scott-scam-section { margin: 20px 0 12px; }
.scam-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.scam-card {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  padding: 16px;
  position: relative;
}
.scam-active { border-color: #ff4444; background: linear-gradient(135deg, #1a0808, #200e0e); }
.scam-confirmed { border-color: #00ff88; background: linear-gradient(135deg, #081a0e, #0e200e); }
.scam-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  background: #ff4444;
  color: #fff;
  margin-bottom: 8px;
}
.scam-card h4 { font-size: 1rem; margin-bottom: 4px; }
.scam-meta {
  display: flex;
  gap: 16px;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 8px;
}

/* ===== CLICKABLE PROFILES ===== */
.clickable-profile {
  cursor: pointer;
  transition: opacity 0.15s;
}
.clickable-profile:hover { opacity: 0.8; }

/* ===== LAST 5 RUGS SECTION ===== */
.last-rugs-section {
  margin: 20px 0 12px;
}
.rug-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.rug-history-card {
  background: linear-gradient(135deg, #1a0a0a, #200e1e);
  border: 1px solid rgba(255,51,102,0.2);
  border-radius: 12px;
  padding: 14px;
  font-size: 0.82rem;
}
.rug-history-card .rhc-head {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 4px;
}
.rug-history-card .rhc-time {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.rug-history-card .rhc-payout {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  font-size: 0.78rem;
}
.rug-history-card .rhc-rank {
  color: var(--orange);
  font-weight: 700;
  min-width: 20px;
}
.rug-history-card .rhc-amt {
  margin-left: auto;
  color: #00ff88;
  font-weight: 600;
}
.hist-time {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.hist-rank {
  font-size: 0.75rem;
  color: var(--orange);
  font-weight: 700;
  margin: 0 6px;
}

/* ===== LEADERBOARD STATS BAR ===== */
.lb-stats-bar {
  display: flex;
  gap: 12px;
  margin: 12px 0;
  flex-wrap: wrap;
}
.lb-stat {
  flex: 1;
  min-width: 120px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
}
.lb-stat-val { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.lb-stat-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== SCOTTY PINATI ===== */
.pinata-game-area { max-width: 500px; margin: 0 auto; }
.pinata-status-bar {
  display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.pinata-stat {
  flex: 1; min-width: 80px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px; text-align: center;
}
.pinata-label { display: block; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.pinata-val { display: block; font-size: 1.1rem; font-weight: 700; margin-top: 4px; }
.pinata-visual {
  position: relative; text-align: center; margin: 20px 0;
  min-height: 200px; display: flex; align-items: center; justify-content: center;
}
.pinata-img {
  width: 180px; height: 180px; object-fit: contain; image-rendering: pixelated;
  filter: drop-shadow(0 8px 24px rgba(255,51,102,0.3));
  transition: transform 0.1s;
}
.pinata-shake { animation: pinataShake 0.3s ease; }
@keyframes pinataShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-12deg) scale(1.05); }
  50% { transform: rotate(8deg) scale(0.95); }
  75% { transform: rotate(-5deg); }
}
.pinata-hit-flash {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 3rem; font-weight: 900; color: #ffc644;
  text-shadow: 0 0 20px rgba(255,198,68,0.5);
  animation: pinataFlash 0.4s ease-out;
}
@keyframes pinataFlash { from { opacity: 1; transform: translate(-50%, -50%) scale(1.5); } to { opacity: 0; transform: translate(-50%, -80%) scale(1); } }
.pinata-reward-basket {
  background: var(--surface); border: 1px solid var(--border-hi);
  border-radius: 12px; padding: 14px; text-align: center; margin-bottom: 16px;
}
.pinata-reward-basket h4 { font-size: 0.85rem; margin-bottom: 8px; color: var(--muted); }
.pinata-rewards { display: flex; gap: 16px; justify-content: center; font-weight: 700; font-size: 1rem; }
.pinata-hit-btn { font-size: 1.3rem; letter-spacing: 0.05em; }

/* ===== RUG VS RUG STOP-LIGHT ===== */
.rvr-game-area { max-width: 760px; margin: 0 auto; }
.rvr-score-bar { display: flex; gap: 10px; margin-top: 16px; opacity: 0.92; }
.rvr-stat {
  flex: 1; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 10px; text-align: center;
}
.rvr-label { display: block; font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.rvr-val { display: block; font-size: 1.15rem; font-weight: 700; margin-top: 4px; }
.rvr-green { color: #00ff88; }
.rvr-red { color: #ff4545; }
.rvr-arena {
  position: relative; text-align: center; background: radial-gradient(circle at 50% 4%, rgba(255,255,255,0.1), rgba(15,9,27,0.98) 70%);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 28px;
  padding: 18px 18px 24px; margin-bottom: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
}
.rvr-arena::before {
  content: ''; position: absolute; inset: 10px; border-radius: 24px;
  background: radial-gradient(circle at 50% 0%, rgba(255,198,68,0.08), transparent 34%), linear-gradient(180deg, rgba(255,255,255,0.04), transparent 16%);
  pointer-events: none;
}
.rvr-topline {
  width: 100%; display: flex; justify-content: center; align-items: center; gap: 12px;
  margin-bottom: 6px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; position: relative; z-index: 1;
}
.rvr-phase-badge {
  padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); font-weight: 800;
}
.rvr-arcade-shell {
  width: min(100%, 700px); margin: 0 auto; position: relative; z-index: 1;
  padding: 14px 16px 12px; border-radius: 30px;
  background: linear-gradient(180deg, rgba(31,22,53,0.98), rgba(14,9,24,0.98));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.06), 0 24px 54px rgba(0,0,0,0.35), 0 0 40px rgba(255,51,102,0.12);
}
.rvr-arcade-shell::before {
  content: ''; position: absolute; inset: 8px; border-radius: 24px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent 24%, rgba(255,138,43,0.05) 62%, transparent 100%);
}
.rvr-shell-speaker {
  position: absolute; top: 18px; width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0 10%, rgba(11,8,21,0.96) 11% 22%, rgba(70,73,85,0.85) 23% 27%, rgba(12,10,20,0.98) 28% 100%);
  border: 1px solid rgba(255,255,255,0.08); box-shadow: inset 0 0 18px rgba(0,0,0,0.55);
}
.rvr-shell-speaker-left { left: 18px; }
.rvr-shell-speaker-right { right: 18px; }
.rvr-shell-marquee {
  display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 auto 2px; padding: 6px 76px 0;
}
.rvr-shell-title {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(255,255,255,0.75); font-weight: 800;
}
.rvr-distance-text { font-size: 0.8rem; color: var(--yellow); font-weight: 700; }
.rvr-prize-board {
  width: min(100%, 420px); margin: 6px auto 8px; padding: 10px 14px;
  border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.1); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  text-align: center;
}
.rvr-prize-board-main { display: grid; gap: 2px; }
.rvr-prize-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.7); font-weight: 800; }
.rvr-prize-jackpot { font-size: clamp(1.5rem, 4vw, 2rem); color: #dffff0; text-shadow: 0 0 18px rgba(0,214,143,0.25); }
.rvr-prize-board-secondary { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.rvr-prize-row { display: inline-flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.05); font-size: 0.78rem; }
.rvr-prize-row strong { color: #fff5d6; }
.rvr-machine-face {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 168px; align-items: center; gap: 18px; margin-bottom: 2px;
}
.rvr-stoplight {
  --ring-size: min(100vw - 136px, 520px);
  --track-angle: -126deg;
  --track-radius: calc(var(--ring-size) * -0.425);
  --jackpot-angle: 0deg;
  --jackpot-radius: calc(var(--ring-size) * -0.425);
  position: relative; width: min(100%, var(--ring-size)); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(14,10,26,0.46) 0 66%, rgba(22,14,34,0.16) 67% 82%, rgba(11,8,22,0) 83% 100%);
  filter: drop-shadow(0 14px 24px rgba(0,0,0,0.2));
}
.rvr-stoplight::before {
  content: ''; position: absolute; inset: 10%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(15,10,26,0.56) 0 72%, rgba(34,20,50,0.08) 73% 86%, rgba(0,0,0,0) 87% 100%);
  border: 1px solid rgba(255,255,255,0.025);
  box-shadow: inset 0 0 12px rgba(0,0,0,0.18);
}
.rvr-stoplight::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255,198,68,0.05) 0 8%, rgba(255,198,68,0) 9% 100%);
  opacity: 0.4;
}
.rvr-light-ring {
  position: absolute; inset: 0; border-radius: 50%;
}
.rvr-light-ring::before {
  content: ''; position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(18,12,30,0.52) 0 10%, rgba(18,12,30,0) 11% 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), inset 0 0 18px rgba(255,198,68,0.025);
  opacity: 0.72;
}
.rvr-spiral-board { overflow: visible; }
.rvr-spiral-svg {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.22));
}
.rvr-spiral-path {
  fill: none; stroke: rgba(255,248,230,0.1); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
}
.rvr-lamp {
  position: absolute; top: var(--lamp-y); left: var(--lamp-x); width: 10px; height: 10px; margin: 0;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,250,235,0.92) 0 24%, rgba(255,214,112,0.8) 25% 52%, rgba(110,60,16,0.92) 53% 100%);
  box-shadow: 0 0 8px rgba(255,198,68,0.18), 0 0 14px rgba(255,138,43,0.08);
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: transform 80ms linear, box-shadow 80ms linear, background 80ms linear, opacity 80ms linear;
}
.rvr-lamp.is-active {
  width: 14px; height: 14px;
  background: radial-gradient(circle, rgba(250,255,252,1) 0 24%, rgba(34,235,170,0.98) 25% 58%, rgba(8,90,64,0.98) 59% 100%);
  box-shadow: 0 0 0 2px rgba(9,6,18,0.72), 0 0 12px rgba(0,214,143,0.34), 0 0 18px rgba(0,214,143,0.16);
  z-index: 8;
}
.rvr-lamp.is-trail {
  width: 11px; height: 11px;
  background: radial-gradient(circle, rgba(230,255,250,0.78) 0 22%, rgba(0,214,143,0.44) 23% 54%, rgba(8,90,64,0.76) 55% 100%);
  box-shadow: 0 0 5px rgba(0,214,143,0.12);
}
.rvr-lamp.is-trail-soft {
  width: 10px; height: 10px;
  background: radial-gradient(circle, rgba(230,255,250,0.42) 0 20%, rgba(0,214,143,0.18) 21% 50%, rgba(8,90,64,0.62) 51% 100%);
  box-shadow: none;
}
.rvr-lamp.is-jackpot-target {
  box-shadow: 0 0 0 2px rgba(8,5,16,0.8), 0 0 10px rgba(255,186,71,0.2);
}
.rvr-lamp.is-near-target {
  box-shadow: 0 0 0 2px rgba(8,5,16,0.74), 0 0 8px rgba(255,225,116,0.14);
}
.rvr-lamp.is-stopped {
  width: 16px; height: 16px;
  background: radial-gradient(circle, rgba(255,255,255,1) 0 28%, rgba(0,214,143,0.98) 29% 62%, rgba(8,90,64,1) 63% 100%);
  box-shadow: 0 0 0 3px rgba(12,15,20,0.72), 0 0 20px rgba(0,214,143,0.56), 0 0 38px rgba(0,214,143,0.34);
  z-index: 7;
  animation: rvrStoppedLock 0.55s ease-out 1;
}
@keyframes rvrStoppedLock {
  0% { transform: translate(-50%, -50%) scale(1.25); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
.rvr-pocket-cluster { position: absolute; inset: 0; z-index: 4; }
.rvr-pocket-light {
  position: absolute; top: var(--pocket-y, 0%); left: var(--pocket-x, 0%); width: 18px; height: 18px; margin: 0; border-radius: 50%;
  transform-origin: center center;
  box-shadow: 0 0 0 3px rgba(8,5,16,0.9), 0 0 14px rgba(255,255,255,0.12);
  transform: translate(-50%, -50%);
}
.rvr-pocket-light-dead {
  width: 14px; height: 14px;
  background: radial-gradient(circle, rgba(155,65,82,0.72) 0 34%, rgba(54,17,26,0.92) 70% 100%);
  box-shadow: 0 0 0 2px rgba(8,5,16,0.82), 0 0 8px rgba(120,45,60,0.1);
}
.rvr-pocket-light-weak {
  width: 14px; height: 14px;
  background: radial-gradient(circle, #ffd98c 0 38%, #8b5a17 72% 100%);
  box-shadow: 0 0 0 2px rgba(8,5,16,0.84), 0 0 10px rgba(255,179,71,0.14);
}
.rvr-pocket-light-strong {
  width: 16px; height: 16px;
  background: radial-gradient(circle, #fff1ae 0 42%, #77620d 72% 100%);
  box-shadow: 0 0 0 2px rgba(8,5,16,0.86), 0 0 12px rgba(255,225,116,0.18);
}
.rvr-pocket-light-jackpot {
  width: 17px; height: 12px; margin: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffe9b8 0%, #ffb347 24%, #ff7a59 58%, #b33b62 100%);
  border: 1px solid rgba(255,240,200,0.42);
  box-shadow: 0 0 0 2px rgba(8,5,16,0.88), 0 0 10px rgba(255,138,43,0.18), 0 0 12px rgba(0,214,143,0.12);
  transform: translate(-50%, -50%) rotate(-8deg);
  overflow: visible;
  z-index: 5;
}
.rvr-pocket-light-jackpot::before,
.rvr-pocket-light-jackpot::after {
  content: '';
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 2px;
  background: rgba(255,244,214,0.35);
  border-radius: 999px;
}
.rvr-pocket-light-jackpot::before { left: 5px; }
.rvr-pocket-light-jackpot::after { right: 5px; }
.rvr-pocket-light-jackpot span,
.rvr-pocket-light-jackpot-mark {
  display: none;
}
.rvr-pocket-light-jackpot:after {
  box-shadow: 0 0 6px rgba(255,240,200,0.18);
}
.rvr-pocket-light-jackpot::marker { content: ''; }

.rvr-scott-core {
  position: absolute; right: 1%; bottom: 4%; z-index: 4; display: grid; justify-items: center; pointer-events: none;
  transform: rotate(-5deg) scale(0.92);
}
.rvr-center-badge {
  position: absolute; left: 50%; top: 82%; transform: translateX(-50%); border-radius: 999px; z-index: 4;
  background: linear-gradient(180deg, rgba(46,51,62,0.16), rgba(16,12,24,0.32));
  border: 1px solid rgba(255,255,255,0.06);
  display: grid; place-items: center;
  padding: 8px 16px;
  box-shadow: 0 0 22px rgba(255,198,68,0.08);
  backdrop-filter: blur(1px);
}
.rvr-center-badge strong { font-size: clamp(0.95rem, 3vw, 1.2rem); letter-spacing: 0.14em; color: #fff5d6; text-shadow: 0 0 10px rgba(255,198,68,0.22); }
.rvr-sweeper {
  position: absolute; top: var(--track-y); left: var(--track-x); width: 0; height: 0; z-index: 4;
  margin: 0; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
.rvr-sweeper::before,
.rvr-sweeper::after {
  content: none;
}
.rvr-sweeper.is-pulsing { animation: none; }
.rvr-lamp-32 { opacity: 1; }
@keyframes rvrLampPulse {
  from { box-shadow: 0 0 0 3px rgba(9,6,18,0.62), 0 0 12px rgba(0,214,143,0.28), 0 0 22px rgba(0,214,143,0.16); }
  to { box-shadow: 0 0 0 3px rgba(9,6,18,0.62), 0 0 18px rgba(0,214,143,0.4), 0 0 30px rgba(0,214,143,0.24); }
}
.rvr-scott {
  width: 100%; max-width: 94px; aspect-ratio: 1 / 1.14; object-fit: cover; object-position: center 14%;
  border-radius: 26px;
  opacity: 0.68;
  filter: saturate(0.72) brightness(0.84) drop-shadow(0 10px 16px rgba(255,51,102,0.08));
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 220ms ease, filter 220ms ease, box-shadow 220ms ease, border-color 220ms ease, opacity 220ms ease;
  box-shadow: 0 10px 16px rgba(0,0,0,0.18);
}
.rvr-scott.is-jackpot { border-color: rgba(0,255,136,0.65); filter: drop-shadow(0 0 28px rgba(0,255,136,0.42)); transform: translateY(-8px) rotate(-6deg) scale(1.04); }
.rvr-scott.is-strong { border-color: rgba(255,198,68,0.65); filter: drop-shadow(0 0 24px rgba(255,198,68,0.36)); transform: rotate(-3deg) translateY(-4px); }
.rvr-scott.is-weak { border-color: rgba(255,138,43,0.6); filter: drop-shadow(0 0 18px rgba(255,138,43,0.34)); transform: rotate(-1deg); }
.rvr-scott.is-miss { border-color: rgba(255,69,69,0.42); filter: grayscale(0.04) drop-shadow(0 0 16px rgba(255,69,69,0.2)); }
.rvr-control-deck {
  width: min(100%, 520px); margin: -2px auto 0; display: grid; gap: 8px; position: relative; z-index: 1;
}
.rvr-timer-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.rvr-timer-text { color: #fff1ae; font-size: 0.98rem; }
.rvr-action-slot {
  position: relative; min-height: 72px;
}
.rvr-action-btn {
  position: absolute; inset: 0; width: 100%; min-height: 72px;
}
.rvr-clarity-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.rvr-clarity-pill {
  padding: 7px 11px; border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.05);
}
.rvr-clarity-pill-track { color: #ffe7a2; background: rgba(255,198,68,0.12); }
.rvr-clarity-pill-pocket { color: #c7ffea; background: rgba(0,214,143,0.14); }
.rvr-prize-strip {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.rvr-prize-pill {
  padding: 8px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05);
}
.rvr-prize-pill-jackpot { color: #dffff0; background: rgba(0,214,143,0.18); }
.rvr-prize-pill-strong { color: #fff1ae; background: rgba(255,198,68,0.12); }
.rvr-prize-pill-weak { color: #ffd5ad; background: rgba(255,138,43,0.12); }
.rvr-prize-pill-dead { color: #ffb2b2; background: rgba(255,69,69,0.12); }
.rvr-stoplight-legend { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.rvr-message {
  font-size: 1.02rem; font-weight: 900; letter-spacing: 0.03em; line-height: 1.08; position: relative; z-index: 1; text-align: center;
}
.rvr-rug-btn { animation: rvrPulse 0.6s ease-in-out infinite; min-height: 64px; }
.rvr-progressive-hook { margin: 0; opacity: 0.72; }
@keyframes rvrPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(255,51,102,0.3); }
  50% { transform: scale(1.03); box-shadow: 0 0 24px rgba(255,51,102,0.6); }
}
.rvr-arena.is-ready { box-shadow: 0 0 0 1px rgba(255,198,68,0.22), 0 0 24px rgba(255,198,68,0.08); }
.rvr-arena.is-running { box-shadow: 0 0 0 1px rgba(255,198,68,0.3), 0 0 30px rgba(255,198,68,0.12); }
.rvr-arena.is-jackpot { box-shadow: 0 0 0 1px rgba(0,255,136,0.35), 0 0 30px rgba(0,255,136,0.2); }
.rvr-arena.is-strong { box-shadow: 0 0 0 1px rgba(255,198,68,0.34), 0 0 28px rgba(255,198,68,0.16); }
.rvr-arena.is-weak { box-shadow: 0 0 0 1px rgba(255,138,43,0.34), 0 0 28px rgba(255,138,43,0.16); }
.rvr-arena.is-miss { box-shadow: 0 0 0 1px rgba(255,69,69,0.34), 0 0 28px rgba(255,69,69,0.16); }

@media (max-width: 600px) {
  .jackpot-grid { grid-template-columns: 1fr; }
  .jackpot-amount { font-size: 1.4rem; }
  .lb-stats-bar { gap: 8px; }
  .lb-stat { min-width: 90px; padding: 8px; }
  .pinata-img { width: 140px; height: 140px; }
  .rvr-topline { justify-content: center; gap: 8px; }
  .rvr-score-bar { flex-wrap: wrap; }
  .rvr-stat { min-width: calc(50% - 8px); }
  .rvr-arena { padding: 12px 10px 18px; }
  .rvr-arcade-shell { padding: 10px 8px 10px; }
  .rvr-shell-marquee { margin-bottom: 2px; padding: 0 44px; }
  .rvr-prize-board { width: min(100%, 100%); margin: 4px auto 8px; padding: 8px 10px; }
  .rvr-prize-board-secondary { gap: 8px; }
  .rvr-prize-row { font-size: 0.72rem; padding: 5px 8px; }
  .rvr-machine-face { grid-template-columns: 1fr; gap: 12px; }
  .rvr-stoplight { --ring-size: min(100vw - 24px, 332px); }
  .rvr-shell-speaker { width: 40px; height: 40px; top: 12px; }
  .rvr-center-badge { top: 84%; }
  .rvr-scott-core { right: 1%; bottom: 10%; }
  .rvr-control-deck { gap: 6px; margin-top: -14px; }
  .rvr-message { font-size: 0.94rem; }
  .rvr-scott { max-width: 82px; }
}
