:root {
  color-scheme: dark;
  --page: #15171c;
  --app: #1d1f25;
  --panel: #292c34;
  --panel-strong: #32353e;
  --panel-soft: #24272e;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f7f8fc;
  --muted: #9498a4;
  --muted-2: #737783;
  --blue: #3477ff;
  --blue-dark: #2459dc;
  --violet: #8b55f7;
  --gold: #ffbd38;
  --green: #35d7a0;
  --red: #ff6573;
  --radius: 22px;
  --app-width: 430px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--page); }
body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font: 16px/1.42 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid #85a8ff; outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }

.desktop-glow {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .12;
  pointer-events: none;
}
.glow-one { top: -180px; left: 12%; background: #3477ff; }
.glow-two { right: 8%; bottom: -180px; background: #8b55f7; }

.app-shell {
  position: relative;
  width: min(100%, var(--app-width));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding-bottom: 92px;
  background: var(--app);
  box-shadow: 0 0 80px rgba(0, 0, 0, .28);
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  background: linear-gradient(180deg, rgba(29, 31, 37, .98) 82%, rgba(29, 31, 37, .9));
  backdrop-filter: blur(18px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .025em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(145deg, #5b91ff, #2457db);
  box-shadow: 0 4px 14px rgba(52, 119, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .22);
  font-size: .72rem;
  font-style: italic;
  font-weight: 950;
}
.balance-rail { display: flex; align-items: center; justify-content: center; gap: 8px; }
.balance-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 82px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 15px;
  background: var(--panel);
  padding: 6px 8px 6px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.balance-pill strong { flex: 1; font-size: .9rem; line-height: 1; text-align: center; }
.balance-symbol { font-size: .88rem; font-weight: 950; line-height: 1; }
.star-symbol { color: var(--gold); }
.ticket-symbol {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(139, 85, 247, .2);
  color: #b995ff;
  font-size: .72rem;
}
.add-symbol {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 3px 10px rgba(52, 119, 255, .3);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.live-strip {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  margin: 0;
  border-block: 1px solid rgba(255, 255, 255, .055);
  background: #24272d;
  overflow: hidden;
}
.live-badge {
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: stretch;
  padding: 0 13px;
  background: #30333a;
  font-size: .75rem;
  font-weight: 900;
}
.live-badge i, .online-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(53, 215, 160, .11);
}
.ticker-window { min-width: 0; flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track {
  display: flex;
  width: max-content;
  gap: 34px;
  color: #c8cad1;
  font-size: .75rem;
  font-weight: 650;
  white-space: nowrap;
  animation: ticker 22s linear infinite;
}
@keyframes ticker { to { transform: translateX(-50%); } }

main { padding: 0 16px 20px; }
.page { display: none; animation: page-in .2s ease both; }
.page.active { display: block; }
@keyframes page-in { from { opacity: 0; transform: translateY(4px); } }
.eyebrow {
  color: #8faef9;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.page-heading { padding: 25px 2px 16px; }
.game-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.page-heading h1 { margin: 3px 0 0; font-size: 1.68rem; line-height: 1.08; letter-spacing: -.04em; }
.page-heading > p { max-width: 330px; margin: 8px auto 0; color: var(--muted); font-size: .86rem; }
.centered-heading { text-align: center; }
.centered-heading h1 { font-size: 2rem; }
.online-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .055);
  padding: 0 10px;
  color: #b8bbc4;
  font-size: .7rem;
  font-weight: 750;
}

.pvp-intro {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(78, 130, 255, .2);
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(48, 89, 183, .24), rgba(42, 44, 53, .96));
  padding: 13px 14px;
}
.pvp-intro::after { content: ""; position: absolute; right: -40px; width: 130px; height: 130px; border-radius: 50%; background: #3477ff; filter: blur(48px); opacity: .16; }
.crossed-swords {
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, #3c7eff, #234fc3);
  box-shadow: 0 8px 20px rgba(36, 87, 219, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
  font-size: 1.45rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}
.pvp-intro strong { display: block; font-size: .88rem; }
.pvp-intro p { margin: 3px 0 0; color: #a8acb7; font-size: .72rem; line-height: 1.38; }

.rooms-grid { display: grid; gap: 11px; }
.room-card {
  --room-accent: #69a0ff;
  --room-deep: #214ebc;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 168px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #3678f5, var(--room-deep));
  padding: 17px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 8px 18px rgba(0, 0, 0, .12);
  transition: transform .16s ease, filter .16s ease;
  cursor: pointer;
}
.room-card[data-room="pro"] { --room-accent: #bd83ff; --room-deep: #6b28cc; background: linear-gradient(135deg, #9250e8, #6522c0); }
.room-card[data-room="highroller"] { --room-accent: #ffb15c; --room-deep: #b64920; background: linear-gradient(135deg, #e26c2d, #9e351f); }
.room-card[data-room="bonus"] { --room-accent: #8bf0dd; --room-deep: #176e75; background: linear-gradient(135deg, #258d88, #5341b2); }
.room-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 170px;
  height: 170px;
  right: -65px;
  top: -80px;
  border-radius: 50%;
  background: var(--room-accent);
  filter: blur(28px);
  opacity: .35;
}
.room-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 120px;
  height: 120px;
  left: 38%;
  bottom: -100px;
  border: 20px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
}
.room-card:hover { filter: brightness(1.06); transform: translateY(-1px); }
.room-card:active { transform: scale(.988); }
.room-art {
  position: absolute;
  z-index: -1;
  right: 17px;
  top: 35px;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
}
.room-icon { font-size: 2.9rem; line-height: 1; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .28)); transform: rotate(-6deg); }
.room-card[data-room="bonus"] .room-icon { transform: rotate(6deg); }
.room-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-right: 82px; }
.room-card-head h3 { margin: 2px 0 2px; font-size: 1.12rem; line-height: 1.1; }
.room-limit { color: rgba(255, 255, 255, .72); font-size: .7rem; font-weight: 650; }
.room-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 9px;
  background: rgba(0, 0, 0, .2);
  padding: 0 8px;
  color: rgba(255, 255, 255, .78);
  font-size: .62rem;
  font-weight: 850;
  text-transform: uppercase;
}
.room-state.running { background: rgba(22, 49, 36, .45); color: #a1ffdb; }
.room-bank { margin-top: 18px; }
.room-bank > span { display: block; color: rgba(255, 255, 255, .67); font-size: .65rem; font-weight: 650; }
.room-bank strong { display: block; margin-top: -1px; font-size: 1.55rem; letter-spacing: -.04em; }
.room-bank strong i { color: #ffe088; font-style: normal; font-size: 1rem; }
.room-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); }
.room-people { display: flex; align-items: center; min-width: 0; }
.avatars { display: flex; padding-left: 5px; }
.mini-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -6px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .76);
  border-radius: 50%;
  background: linear-gradient(145deg, #a98aff, #e05cff);
  color: white;
  font-size: .64rem;
  font-weight: 900;
}
.mini-avatar img, .profile-avatar img, .winner-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.player-count { margin-left: 7px; color: rgba(255, 255, 255, .72); font-size: .68rem; font-weight: 650; white-space: nowrap; }
.countdown {
  --progress: 0deg;
  position: relative;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: conic-gradient(#fff var(--progress), rgba(0, 0, 0, .18) 0);
  font-size: .65rem;
  font-weight: 900;
}
.countdown::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: rgba(27, 30, 39, .76); }
.countdown span { position: relative; z-index: 1; }
.waiting-label { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .72); font-size: .66rem; font-weight: 700; }
.waiting-label i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .8); box-shadow: 0 0 0 4px rgba(255, 255, 255, .1); animation: wait-pulse 1.7s ease-in-out infinite; }
@keyframes wait-pulse { 50% { opacity: .35; transform: scale(.75); } }
.skeleton { background: linear-gradient(90deg, #292c33 20%, #343740 42%, #292c33 68%); background-size: 300% 100%; animation: skeleton 1.35s infinite; }
.room-skeleton { min-height: 168px; border-radius: var(--radius); }
@keyframes skeleton { to { background-position: -150% 0; } }
.fair-note { display: flex; align-items: center; gap: 10px; margin: 14px 4px 0; color: var(--muted); }
.fair-note p { margin: 0; font-size: .69rem; }
.fair-note strong { color: #c8cad2; }
.shield-icon { flex: 0 0 27px; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; background: rgba(53, 215, 160, .1); color: var(--green); font-size: .78rem; font-weight: 900; }

.bonus-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 13px 14px;
}
.bonus-balance-card span { display: block; color: var(--muted); font-size: .68rem; }
.bonus-balance-card strong { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 1.2rem; }
.bonus-balance-card strong i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(139, 85, 247, .16); color: #bc9aff; font-size: .7rem; font-style: normal; }
.bonus-balance-card button { min-height: 35px; border: 0; border-radius: 11px; background: var(--blue); padding: 0 15px; font-size: .74rem; font-weight: 800; }
.wheel-stage { position: relative; width: min(65vw, 258px); aspect-ratio: 1; margin: 13px auto 16px; }
.wheel-halo { position: absolute; inset: -8%; border-radius: 50%; background: radial-gradient(circle, rgba(92, 125, 255, .15), transparent 65%); filter: blur(10px); }
.daily-wheel {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 9px solid #343740;
  border-radius: 50%;
  background: conic-gradient(#7150e9 0 60deg, #e85d85 60deg 120deg, #db8738 120deg 180deg, #2e9ea4 180deg 240deg, #3978ed 240deg 300deg, #9850de 300deg);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .12), 0 20px 38px rgba(0, 0, 0, .28);
  transition: transform 4.2s cubic-bezier(.12, .72, .08, 1);
}
.daily-wheel::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; }
.wheel-center {
  position: relative;
  z-index: 3;
  display: grid;
  place-content: center;
  width: 32%;
  height: 32%;
  border: 5px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: #202229;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .35);
  text-align: center;
}
.wheel-center span { font-size: 1.6rem; font-style: italic; font-weight: 950; line-height: 1; }
.wheel-center small { margin-top: 2px; color: #8c90a0; font-size: .48rem; font-weight: 900; letter-spacing: .14em; }
.wheel-pointer { position: absolute; z-index: 5; top: -7px; left: calc(50% - 15px); width: 30px; height: 40px; background: white; clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 5px 5px rgba(0, 0, 0, .35)); }
.wheel-label { position: absolute; z-index: 2; display: grid; place-items: center; min-width: 38px; min-height: 26px; border-radius: 9px; background: rgba(25, 27, 33, .32); color: white; font-size: .69rem; font-weight: 900; text-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.label-one { top: 14%; left: 43%; }
.label-two { top: 29%; right: 10%; transform: rotate(60deg); }
.label-three { right: 10%; bottom: 28%; transform: rotate(120deg); }
.label-four { bottom: 13%; left: 43%; transform: rotate(180deg); }
.label-five { left: 8%; bottom: 29%; transform: rotate(240deg); }
.label-six { left: 10%; top: 29%; transform: rotate(300deg); font-size: 1rem; }
.primary-button { width: 100%; min-height: 50px; border: 0; border-radius: 15px; background: linear-gradient(135deg, #4382ff, #2862e9); box-shadow: 0 9px 22px rgba(40, 98, 233, .26), inset 0 1px 0 rgba(255, 255, 255, .2); font-size: .9rem; font-weight: 850; }
.primary-button:disabled { opacity: .46; box-shadow: none; cursor: default; }
.spin-button { width: min(100%, 340px); display: block; margin: 0 auto; }
.spin-timer { min-height: 19px; margin: 8px 0 18px; color: var(--muted); text-align: center; font-size: .72rem; }
.bonus-rules { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); padding: 14px; }
.rules-icon { flex: 0 0 35px; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: rgba(139, 85, 247, .15); color: #bc9aff; font-weight: 950; }
.bonus-rules strong { font-size: .82rem; }
.bonus-rules p { margin: 4px 0 0; color: var(--muted); font-size: .7rem; }
.prize-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.prize-chip { border: 1px solid var(--line); border-radius: 13px; background: rgba(255, 255, 255, .025); padding: 9px 4px; color: var(--muted); text-align: center; font-size: .62rem; }
.prize-chip b { display: block; margin-bottom: 2px; color: var(--text); font-size: .76rem; }

.profile-hero { display: flex; align-items: center; gap: 14px; padding: 30px 2px 17px; }
.profile-avatar, .winner-avatar { display: grid; place-items: center; width: 68px; height: 68px; overflow: hidden; border: 3px solid rgba(255, 255, 255, .12); border-radius: 22px; background: linear-gradient(145deg, #4d88ff, #8755ed); box-shadow: 0 10px 24px rgba(52, 83, 188, .24); font-size: 1.55rem; font-weight: 950; }
.profile-hero h1 { margin: 3px 0 1px; font-size: 1.45rem; letter-spacing: -.035em; }
.profile-hero p { margin: 0; color: var(--muted); font-size: .78rem; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 12px 0; }
.profile-stats > div { text-align: center; }
.profile-stats > div + div { border-left: 1px solid var(--line); }
.profile-stats strong { display: block; font-size: 1.05rem; }
.profile-stats span { color: var(--muted); font-size: .63rem; }
.wallet-stack { display: grid; gap: 9px; margin-top: 12px; }
.wallet-card { display: grid; grid-template-columns: 43px 1fr auto; align-items: center; gap: 11px; min-height: 70px; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); padding: 11px; }
.wallet-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; background: rgba(255, 189, 56, .12); color: var(--gold); font-weight: 950; }
.bonus-wallet .wallet-icon { background: rgba(139, 85, 247, .14); color: #bc9aff; }
.wallet-card span { display: block; color: var(--muted); font-size: .66rem; }
.wallet-card strong { display: block; font-size: 1.12rem; }
.small-button { min-height: 35px; border: 0; border-radius: 11px; background: rgba(255, 255, 255, .1); padding: 0 11px; font-size: .68rem; font-weight: 800; }
.main-wallet .small-button { background: var(--blue); }
.history-section { margin-top: 25px; }
.section-heading { margin-bottom: 8px; }
.section-heading h2 { margin: 2px 0 0; font-size: 1.22rem; letter-spacing: -.03em; }
.history-list { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); padding: 0 13px; }
.history-item { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; min-height: 63px; align-content: center; border-bottom: 1px solid var(--line); }
.history-item:last-child { border-bottom: 0; }
.history-item strong { font-size: .76rem; }
.history-item span { color: var(--muted); font-size: .64rem; }
.history-item b { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--red); font-size: .72rem; }
.history-item b.won { color: var(--green); }
.empty-state { margin: 0; padding: 25px 0; color: var(--muted); text-align: center; font-size: .72rem; }
.responsible-note { margin: 20px 15px 0; color: var(--muted-2); text-align: center; font-size: .62rem; }

.bottom-nav {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 0;
  width: min(100%, var(--app-width));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  transform: translateX(-50%);
  border-top: 1px solid rgba(255, 255, 255, .07);
  background: rgba(24, 26, 31, .96);
  padding: 7px 20px max(8px, env(safe-area-inset-bottom));
  backdrop-filter: blur(18px);
}
.nav-item { display: grid; justify-items: center; gap: 2px; border: 0; background: transparent; padding: 3px; color: #818590; font-size: .64rem; font-weight: 700; }
.nav-icon { display: grid; place-items: center; width: 32px; height: 30px; border-radius: 10px; }
.nav-item svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active { color: #4d87ff; }
.nav-item.active .nav-icon { background: rgba(52, 119, 255, .1); }

dialog { color: var(--text); }
dialog::backdrop { background: rgba(7, 8, 11, .74); backdrop-filter: blur(5px); }
.sheet {
  position: fixed;
  inset: auto 0 0;
  width: min(100%, var(--app-width));
  max-height: 89vh;
  max-height: 89svh;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background: #24272e;
  padding: 26px 17px max(24px, env(safe-area-inset-bottom));
  box-shadow: 0 -24px 70px rgba(0, 0, 0, .36);
}
.sheet[open] { animation: sheet-up .25s ease both; }
@keyframes sheet-up { from { opacity: 0; transform: translateY(30px); } }
.sheet-handle { width: 40px; height: 4px; margin: -14px auto 16px; border-radius: 5px; background: #555965; }
.close-button { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .07); color: #a5a8b2; font-size: 1.35rem; line-height: 1; }
.sheet h2 { margin: 5px 0 6px; font-size: 1.48rem; letter-spacing: -.035em; }
.sheet-copy { margin-bottom: 13px; color: var(--muted); font-size: .76rem; }
.room-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 100px;
  margin: 16px 0 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, #396fe4, #7346ca);
  padding: 15px;
}
.room-visual::after { content: "⚔"; position: absolute; right: 16px; color: rgba(255, 255, 255, .2); font-size: 5rem; }
.room-visual span { display: block; color: rgba(255, 255, 255, .72); font-size: .66rem; }
.room-visual strong { display: block; font-size: 1.75rem; letter-spacing: -.04em; }
.room-visual .dialog-count { position: relative; z-index: 1; text-align: right; }
.room-visual .dialog-count strong { font-size: 1.15rem; }
.players-title { margin: 14px 0 2px; color: #b9bcc5; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.players-list { margin-bottom: 14px; }
.player-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; min-height: 53px; border-bottom: 1px solid var(--line); }
.player-row:last-child { border-bottom: 0; }
.player-row .mini-avatar { width: 36px; height: 36px; margin: 0; border-color: #5c606b; }
.player-row-name { min-width: 0; }
.player-row-name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; }
.chance-track { height: 4px; margin-top: 5px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, .07); }
.chance-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4b84ff, #9c63fa); }
.player-value { text-align: right; font-size: .72rem; }
.player-value span { display: block; color: var(--muted); font-size: .61rem; }
.empty-players { padding: 14px 0; color: var(--muted); text-align: center; font-size: .7rem; }
.amount-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 11px 0 9px; }
.amount-presets button { min-height: 38px; border: 1px solid var(--line); border-radius: 11px; background: #30333b; font-size: .7rem; font-weight: 750; }
.amount-presets button:active { background: #3b3f49; }
.amount-field { display: flex; align-items: center; min-height: 50px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 14px; background: #1c1e24; padding: 4px 12px; }
.amount-field span { color: var(--muted); font-size: .7rem; }
.amount-field input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: white; padding: 10px 8px; text-align: right; font-size: 1rem; font-weight: 850; }
.amount-field b { color: var(--gold); }
.microcopy { margin: 9px 0 0; color: var(--muted-2); text-align: center; font-size: .61rem; }
.deposit-icon { display: grid; place-items: center; width: 49px; height: 49px; margin: 0 0 13px; border-radius: 15px; background: rgba(255, 189, 56, .13); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255, 189, 56, .1); font-size: 1.35rem; }

.result-dialog { width: min(calc(100% - 32px), 380px); overflow: hidden; border: 1px solid rgba(96, 136, 255, .35); border-radius: 25px; background: radial-gradient(circle at 50% 0, #334b8d, #242630 54%); padding: 29px 22px 20px; text-align: center; }
.result-dialog[open] { animation: result-in .3s cubic-bezier(.2, .9, .2, 1.12); }
@keyframes result-in { from { opacity: 0; transform: scale(.88); } }
.result-dialog h2 { margin: 5px 0 20px; font-size: 1.55rem; }
.winner-avatar { width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%; }
.winner-name { display: block; font-size: 1.05rem; }
.result-dialog p { color: var(--muted); font-size: .78rem; }
.result-dialog p b { color: var(--gold); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 88px; width: max-content; max-width: calc(100% - 30px); transform: translate(-50%, 16px); border: 1px solid var(--line); border-radius: 13px; background: #343741; padding: 10px 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .28); font-size: .72rem; opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(255, 101, 115, .35); }

@media (max-width: 360px) {
  main { padding-inline: 12px; }
  .room-card { padding: 15px; }
  .room-art { right: 12px; }
  .amount-presets { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 700px) {
  .app-shell { border-inline: 1px solid rgba(255, 255, 255, .035); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
