:root {
  color-scheme: dark;
  font-family: Inter, "Noto Sans", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  font-size: 16px;
  color: #fbf6ff;
  background: #100f16;
  --ink: #100f16;
  --surface: #1a1822;
  --edge: #ffffff1e;
  --muted: #b8afc4;
  --gold: #ffcf91;
  --stars-image: url("/assets/telegram-stars.png");
  --highlight: #ecc3ff;
  --soft-gold: #6d5037;
  --glass: #221c30;
  --text-dark: #27192f;
  --dock-space: calc(98px + env(safe-area-inset-bottom, 0px));
  scroll-padding-block: calc(76px + env(safe-area-inset-top, 0px)) var(--dock-space);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(ellipse 800px 560px at 50% -190px, #392640, transparent 100%), var(--ink);
}
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
button:focus-visible { outline: 2px solid #ffe0ac; outline-offset: 3px; }
button:not(:disabled):active { translate: 0 1px; }
img { display: block; user-select: none; }
h1, h2, h3, p { margin: 0; }
a { color: #ffe2bb; }
.app { min-height: 100dvh; }
.announce, .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.value-stars {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .27em;
  white-space: nowrap;
  vertical-align: baseline;
  font-variant-numeric: tabular-nums;
}
.stars-icon {
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  overflow: hidden;
}
/* The clip follows the gold star in the supplied 480px image. */
.stars-icon::before {
  content: "";
  position: absolute;
  inset: -64.90% auto auto -65.38%;
  width: 230.77%;
  height: 230.77%;
  background: var(--stars-image) center / 100% 100% no-repeat;
  clip-path: polygon(
    49.17% 29.17%, 50.83% 29.17%, 51.67% 30%, 56.25% 41.46%, 56.88% 42.08%,
    57.50% 42.50%, 70% 43.33%, 71.46% 44.17%, 71.67% 46.04%, 67.50% 50%,
    63.13% 53.33%, 61.25% 55.63%, 61.25% 57.08%, 62.08% 59.38%, 63.33% 65.83%,
    64.17% 67.92%, 64.17% 69.17%, 63.13% 70.42%, 61.25% 70.42%, 55.83% 67.08%,
    50.83% 63.75%, 49.17% 63.75%, 46.25% 65.42%, 40% 69.38%, 38.33% 70.42%,
    37.08% 70.42%, 35.83% 69.17%, 35.83% 67.92%, 37.50% 61.46%, 38.33% 59.79%,
    40.83% 57.50%, 52.50% 52.08%, 52.92% 51.46%, 52.92% 50.42%, 52.08% 49.58%,
    51.04% 49.58%, 40.42% 51.67%, 35.83% 51.67%, 33.75% 50.83%, 31.46% 48.75%,
    28.33% 46.25%, 28.33% 44.38%, 30% 43.33%, 42.29% 42.50%, 43.13% 42.08%,
    43.75% 41.25%, 47.92% 30.63%
  );
}
.value-stars .stars-icon { font-size: .88em; }
.telegram-gift {
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 1;
  border-radius: 8px;
}
.telegram-gift:is(.reel-face, .reel-item, .gift-main) {
  mask-image: linear-gradient(90deg, transparent, #000 6% 94%, transparent),
    linear-gradient(0deg, transparent, #000 6% 94%, transparent);
  mask-composite: intersect;
}

.theme-miner { --accent: #ffd18e; --shade: #442d20; --deep: #251810; --rim: #a871495e; --signal: #f5ae62; --scene-ink: #422615; }
.theme-slots { --accent: #ffcce9; --shade: #4a2946; --deep: #2d1a37; --rim: #bd6c9c69; --signal: #df8abf; --scene-ink: #46263e; }
.theme-mines { --accent: #b4e5ff; --shade: #1e334b; --deep: #142131; --rim: #679bd16a; --signal: #73c3fc; --scene-ink: #173a55; }
.theme-claw { --accent: #a9f5dc; --shade: #23463f; --deep: #152a2b; --rim: #6cbb9a65; --signal: #7de7b3; --scene-ink: #1b413a; }

.topbar {
  position: sticky;
  z-index: 8;
  top: 0;
  background: #100e17ed;
  border-bottom: 1px solid #ffffff13;
  backdrop-filter: blur(15px);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1032px);
  min-height: 69px;
  padding: 8px 24px;
  gap: 16px;
  margin: auto;
}
.top-start { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand, .top-profile {
  display: flex;
  align-items: center;
  min-height: 45px;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 840;
  letter-spacing: .17em;
}
.top-profile {
  min-width: 0;
  text-align: start;
  letter-spacing: 0;
}
.top-profile-copy { display: grid; min-width: 0; gap: 2px; }
.top-profile-copy b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.top-profile-copy small { color: var(--muted); font-size: 9px; letter-spacing: .17em; }
.brand-mark, .player-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #efc9ab36;
  box-shadow: 0 3px 14px #100910;
}
.player-avatar {
  position: relative;
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at top left, #6a416e, #2a203f 85%);
  color: #ffe4bf;
  font-size: 17px;
  font-weight: 780;
}
.player-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player-avatar img[hidden] { display: none; }
.top-avatar { border-radius: 50%; transition: box-shadow 180ms ease; }
.top-profile:hover .top-avatar { box-shadow: 0 0 0 2px #f3bb8f69; }
.balance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
  min-width: 80px;
  min-height: 44px;
  border: 1px solid #a582784a;
  border-radius: 14px;
  box-shadow: inset 0 1px #fff2;
  background: linear-gradient(145deg, #2c212d, #1b1821);
  padding: 6px 13px;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  transition: background 180ms ease, border-color 180ms ease;
}
.balance:hover { border-color: #ffe2ae8f; background: #392936; }
.balance .stars-icon { font-size: 19px; }
.balance .icon-forward {
  width: 7px;
  height: 7px;
  border: solid #baa4be;
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffff28;
  border-radius: 13px;
  background: #24202c;
  font-size: 18px;
  font-weight: 740;
}
.back-button { flex: none; margin-left: -4px; }

.bottom-dock {
  position: fixed;
  z-index: 8;
  inset: auto 0 0;
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(0deg, #100f16f2, #100f16cc 42%, transparent);
  pointer-events: none;
}
.bottom-nav {
  width: min(100%, 584px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  border: 1px solid #bb9bc633;
  border-radius: 17px;
  background: linear-gradient(150deg, #282030f7, #1b1725f5);
  box-shadow: 0 10px 27px #08070f88, inset 0 1px #ffffff12;
  backdrop-filter: blur(14px);
  pointer-events: auto;
}
.nav-item {
  border: 1px solid transparent;
  border-radius: 11px;
  min-height: 46px;
  padding: 5px 4px;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 650;
}
.nav-item:not(.selected):is(:hover, :focus-visible) { background: #ffffff09; color: #fff2ff; }
.nav-item.selected {
  color: #ffe3b6;
  border-color: #ffd4a02b;
  background: radial-gradient(ellipse at 50% -40%, #d39d6840, #ffe4b40a);
  box-shadow: inset 0 1px #ffdda81f;
}
.icon { display: block; width: 17px; height: 17px; position: relative; flex-shrink: 0; }
.icon-back {
  width: 10px;
  height: 10px;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  transform: rotate(45deg) translate(1px, -1px);
}
.icon-games { border-radius: 4px; border: 1.7px solid currentColor; }
.icon-games::before, .icon-games::after { position: absolute; content: ""; background: currentColor; border-radius: 1px; }
.icon-games::before { left: 6px; top: 1px; width: 1.6px; height: 11px; }
.icon-games::after { top: 6px; left: 1px; width: 11px; height: 1.6px; }
.icon-wallet { height: 13px; border: 1.7px solid currentColor; border-radius: 4px; }
.icon-wallet::after { content: ""; position: absolute; right: 2px; top: 4px; height: 3px; width: 3px; background: currentColor; border-radius: 50%; }
.icon-friends::before, .icon-profile::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: 0;
  left: 4px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.icon-friends::after, .icon-profile::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 6px;
  bottom: 0;
  left: .5px;
  border: 1.5px solid currentColor;
  border-radius: 8px 8px 2px 2px;
}
.icon-friends { filter: drop-shadow(4px -1px #ac9dc660); transform: translateX(-2px); }

.content { width: min(100%, 1032px); margin: 0 auto; padding: 25px 24px var(--dock-space); }
.section-head { display: flex; align-items: end; justify-content: space-between; margin: 0 0 15px; }
.section-head h1 {
  font-size: clamp(2rem, 5vw, 2.84rem);
  line-height: 1.11;
  font-weight: 790;
  letter-spacing: -.064em;
}
.activity-strip { margin: -3px 0 12px; min-width: 0; }
.activity-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.activity-heading h2 { font-size: 14px; letter-spacing: -.014em; }
.activity-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c8f4da;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.online-dot {
  flex: none;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #89efb1;
  box-shadow: 0 0 8px #76ecaaaf;
  animation: online-glow 2.4s ease-in-out infinite;
}
@keyframes online-glow { 50% { opacity: .7; box-shadow: 0 0 12px #76ecaac0; } }
.activity-rail {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 3px 1px 7px;
  overflow-x: auto;
  list-style: none;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 1px;
  scrollbar-width: thin;
  scrollbar-color: #c9a7dc44 transparent;
}
.activity-rail li { scroll-snap-align: start; }
.activity-rail:focus-visible { outline: 2px solid #efd2fc99; outline-offset: 1px; border-radius: 9px; }
.ticker-gift {
  flex: 1 0 clamp(59px, 16vw, 93px);
  display: grid;
  justify-items: center;
  width: 100%;
  padding: 3px 2px 5px;
  border: 1px solid #bca8d328;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 0%, #3a304e, #1b1725 76%);
  box-shadow: inset 0 1px #ffffff12;
}
.ticker-gift b { font-size: 12px; line-height: 15px; }
.ticker-gift .ticker-art {
  width: 43px;
  mask-image: linear-gradient(90deg, transparent, #000 12% 88%, transparent),
    linear-gradient(0deg, transparent, #000 11% 89%, transparent);
  mask-composite: intersect;
}
.ticker-win {
  flex: 0 0 clamp(214px, 59vw, 245px);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 65px;
  padding: 5px 7px;
  color: var(--accent);
  border: 1px solid var(--rim);
  border-radius: 12px;
  background: radial-gradient(ellipse at left top, var(--shade), #1b1725 88%);
  box-shadow: inset 0 1px #ffffff13;
}
.ticker-win .ticker-art { flex: 0 0 46px; width: 46px; height: 46px; object-fit: cover; border-radius: 8px; }
.ticker-win div { display: grid; gap: 3px; min-width: 0; }
.ticker-win small { color: #e4d7e8; font-size: 11px; }
.ticker-win b {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: .28em;
  color: #fff4df;
  font-size: 15px;
}
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.game-card {
  text-align: left;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  padding: 0;
  width: 100%;
  min-width: 0;
  min-height: 204px;
  aspect-ratio: 2.06;
  border: 1px solid var(--rim);
  border-radius: 21px;
  background: var(--deep);
  box-shadow: 0 12px 24px #05030b60, inset 0 0 1px #fff3;
}
.card-art, .title-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  transition: transform 400ms ease;
}
.game-card:hover .card-art { transform: scale(1.045); }
.game-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(117deg, transparent 24%, #fff2df20 46%, transparent 64%);
  transform: translateX(-110%);
  transition: transform 800ms ease;
}
.game-card:is(:hover, :focus-visible)::after { transform: translateX(110%); }
.game-card.theme-slots .card-art { filter: brightness(.55) saturate(.88); }
.slot-gift-preview {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid #d59c9d83;
  border-radius: 12px;
  padding: 5px;
  background: #241725e8;
  box-shadow: 0 5px 18px #170d1eaf, inset 0 1px #ffd9bf3b;
}
.slot-gift-preview .telegram-gift { min-width: 0; width: 100%; border-radius: 5px; }
.card-slot-gifts { z-index: 2; left: 9%; right: 9%; top: 50%; transform: translateY(-50%); margin-inline: auto; width: min(82%, 245px); }
.title-slot-gifts { right: 60px; width: min(42%, 218px); opacity: .83; align-self: center; }
.game-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(0deg, #100e18f5, #14111ac4 15%, #14111a2b 54%, #130d1818 75%);
  pointer-events: none;
}
.game-badge {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 14px;
  background: #15121cdc;
  color: var(--accent);
  border: 1px solid var(--rim);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 730;
  padding: 5px 8px;
  backdrop-filter: blur(8px);
}
.game-badge.activity {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 28px);
  padding: 7px 11px;
  border-color: #eaf8f227;
  border-radius: 999px;
  background: #0d111be8;
  box-shadow: 0 4px 12px #09071556;
  color: #fbfffd;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.game-badge.activity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-badge.activity .online-dot { width: 7px; height: 7px; background: #47dfa4; }
.game-badge.resume { background: var(--shade); }
.card-caption {
  position: absolute;
  z-index: 2;
  bottom: 15px;
  left: 16px;
  right: 45px;
  display: grid;
  gap: 4px;
}
.card-caption b {
  font-size: clamp(1.25rem, 3.3vw, 2rem);
  letter-spacing: -.052em;
  line-height: 1.08;
  font-weight: 800;
  color: #fffaff;
}
.card-caption small { color: #eadfed; font-size: 13px; font-weight: 520; line-height: 1.25; }
.card-launch {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  right: 13px;
  bottom: 14px;
  border-radius: 11px;
  border: 1px solid var(--rim);
  background: #191521ce;
  color: var(--accent);
  backdrop-filter: blur(6px);
}
.card-launch i { width: 0; height: 0; border: solid transparent; border-width: 5px 0 5px 7px; border-left-color: currentColor; translate: 1px 0; }
.friends-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 6px 14px 6px 9px;
  width: 100%;
  background: linear-gradient(95deg, #302235, #201a29 58%, #1b1823);
  border: 1px solid #bc83a53c;
  border-radius: 16px;
  text-align: left;
}
.friends-banner b { font-size: 14px; }
.friends-banner small { display: block; margin-top: 2px; font-size: 12px; color: #cdc0d6; }
.friends-banner-art { width: 48px; height: 48px; }
.friend-counter { margin-left: auto; color: #f8d2ed; font-variant-numeric: tabular-nums; white-space: nowrap; }
.recent-rounds {
  margin-top: 13px;
  padding: 10px 13px 13px;
  border: 1px solid #b999cc2c;
  border-radius: 16px;
  background: radial-gradient(ellipse at right top, #3d294b92, transparent 78%), #1b1824;
}
.recent-head {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.recent-head h2 { font-size: 17px; letter-spacing: -.027em; }
.text-button {
  flex-shrink: 0;
  min-height: 44px;
  padding: 3px 6px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #e8c8f2;
  font-size: 12px;
  font-weight: 670;
}
.text-button:hover { background: #ffffff0d; }
.recent-empty {
  color: #c9bdd5;
  border-left: 2px solid #dcb7ee56;
  padding: 5px 0 5px 9px;
  font-size: 13px;
  line-height: 1.4;
}
.recent-rounds ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.recent-round {
  min-height: 46px;
  min-width: 0;
  padding: 5px 7px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--rim);
  background: linear-gradient(110deg, var(--deep), #1a1721);
  border-radius: 10px;
  font-size: 12px;
}
.recent-art { width: 32px; height: 32px; flex-shrink: 0; border-radius: 6px; object-fit: cover; }
.recent-round small { display: block; color: #c3b5cd; margin-top: 2px; font-size: 11px; }
.recent-round strong { margin-inline-start: auto; white-space: nowrap; font-size: 13px; }
.recent-round .win { color: #ffe09c; }
.recent-round .even { color: #d6cbdf; }
.recent-round .loss { color: #f1c2c0; }

.game-view { padding-top: 17px; }
.game-title {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 108px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(115deg, var(--shade), var(--deep));
  padding: 14px 17px;
  border: 1px solid var(--rim);
  border-radius: 18px;
  box-shadow: inset 0 1px #ffffff24;
}
.title-art {
  inset: 0 0 0 auto;
  width: 60%;
  opacity: .79;
  mask-image: linear-gradient(90deg, transparent 1%, #000 57%);
}
.game-title div, .title-help { z-index: 1; position: relative; }
.game-title h1 { font-size: clamp(1.9rem, 5.3vw, 2.6rem); line-height: 1.06; letter-spacing: -.065em; }
.game-subtitle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 7px;
  color: #f1e7f3;
  font-size: 13px;
  margin-top: 5px;
}
.game-presence {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border: 1px solid #baf0d43b;
  border-radius: 999px;
  background: #111a1acd;
  color: #d9f9e9;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.game-presence[hidden] { display: none; }
.title-help { flex: none; color: var(--accent); background: #17111cd9; border-color: var(--rim); }
.play-layout { display: grid; grid-template-columns: minmax(0, 1.57fr) minmax(240px, 1fr); gap: 12px; align-items: start; margin-top: 12px; }
.stage {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--rim);
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 12%, var(--shade), transparent 82%), var(--deep);
  box-shadow: inset 0 1px #ffffff1a, 0 9px 22px #0c0a1180;
}
.stage-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent);
  font-size: 13px;
  font-weight: 710;
  padding-bottom: 9px;
  gap: 8px;
}
.stage-label span:last-child { font-variant-numeric: tabular-nums; }
.controls {
  background: #1a1722;
  border: 1px solid #ffffff1e;
  border-radius: 18px;
  padding: 12px;
  display: grid;
  gap: 9px;
}
.hint { color: #c8bdd1; font-size: 13px; line-height: 1.48; }
.hint.warn { color: #ffd6ac; }
.control-field { display: grid; gap: 6px; }
.control-field > span, .control-state > span { color: #e1d9e7; font-size: 13px; }
.control-state { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 21px; }
.control-state strong { font-size: 14px; color: #fff5fc; white-space: nowrap; }
.pills { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; }
.pill {
  background: #272332;
  border: 1px solid #ffffff20;
  border-radius: 10px;
  padding: 4px;
  font-size: 13px;
  font-weight: 690;
  min-width: 0;
  min-height: 44px;
  white-space: nowrap;
}
.pill.selected { background: var(--shade); color: var(--accent); border-color: var(--signal); box-shadow: inset 0 1px #ffffff26; }
.primary, .secondary {
  font-weight: 770;
  min-height: 46px;
  border-radius: 12px;
  padding: 8px 11px;
  text-align: center;
  font-size: 14px;
}
.primary {
  background: linear-gradient(165deg, #ffffff32, transparent 41%), var(--accent, var(--highlight));
  color: #23172a;
  border: 1px solid #ffffff50;
  box-shadow: inset 0 1px #fff8;
}
.primary:disabled, .pill:disabled { opacity: .5; }
.secondary {
  border: 1px solid #d5adf34d;
  background: #58396760;
  color: #ffe9fa;
}
.rules-link {
  min-height: 44px;
  border: 1px solid #ffffff1a;
  border-radius: 10px;
  padding: 4px 8px;
  background: #ffffff08;
  color: var(--accent);
  font-size: 13px;
  font-weight: 690;
}
.outcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  border-radius: 11px;
  padding: 8px 9px;
  min-height: 39px;
  font-size: 13px;
}
.outcome b { font-size: 15px; }
.outcome.quiet { background: #322838; border: 1px solid #c1a5cb32; color: #dfd4e2; }
.outcome.win {
  justify-content: flex-start;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: 7px;
  min-height: 64px;
  color: #fff0cc;
  border: 1px solid #f8ca758a;
  background: radial-gradient(ellipse at 11% 104%, #ae6d2b78, transparent 72%), linear-gradient(116deg, #503122, #302331 90%);
  box-shadow: inset 0 1px #ffeabc37;
}
.win-star { position: relative; width: 42px; height: 42px; flex-shrink: 0; object-fit: contain; }
.win-titles { display: grid; gap: 2px; line-height: 1.24; }
.win-titles strong { font-size: clamp(15px, 3.9vw, 20px); letter-spacing: -.025em; }
.win-titles small { font-size: 11px; color: #e8cda7; }
.outcome.win b {
  margin-inline-start: auto;
  font-size: clamp(18px, 5vw, 25px);
  color: #fff0c8;
}
.win-sparks { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.win-sparks i {
  position: absolute;
  left: 25px;
  top: 50%;
  width: 5px;
  height: 4px;
  background: #ffd185;
  opacity: 0;
  border-radius: 1px;
}
.win-sparks i:nth-child(even) { background: #e4b4ff; }
.celebrating { animation: win-arrival 480ms ease-out both; }
.celebrating .win-star { animation: win-star-pop 670ms ease-out both; }
.celebrating .win-sparks i { animation: confetti 1080ms 30ms cubic-bezier(.13,.53,.35,1) both; }
@keyframes win-arrival {
  0% { opacity: .55; transform: translateY(4px); }
  100% { opacity: 1; transform: none; }
}
@keyframes win-star-pop {
  0% { transform: scale(.78) rotate(-14deg); }
  41% { transform: scale(1.14) rotate(6deg); }
  100% { transform: none; }
}
@keyframes confetti {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  15%, 40% { opacity: .85; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(120deg); opacity: 0; }
}

.mine-shaft {
  display: grid;
  gap: 5px;
  background:
    repeating-linear-gradient(158deg, transparent 0 13px, #ac744c09 13px 14px, transparent 14px 21px),
    radial-gradient(ellipse 75% 120% at 47% 0%, #3b281a, #1f150f);
  border: 1px solid #c8915442;
  border-radius: 12px;
  padding: 6px;
}
.stratum {
  display: grid;
  align-items: center;
  grid-template-columns: 28px 1fr 1fr minmax(41px, auto);
  gap: 6px;
  padding: 3px 4px;
  border: 1px solid transparent;
  border-radius: 10px;
}
.stratum.current {
  border-color: #d6954869;
  background: linear-gradient(90deg, #ce89412b, #dd9c4926);
  box-shadow: 0 0 18px #d8933921;
}
.level, .layer-payout { font-variant-numeric: tabular-nums; font-size: 12px; text-align: center; }
.level { color: #d6ad86; }
.layer-payout { color: #f6cf9d; white-space: nowrap; font-weight: 700; }
.mine-rock {
  min-width: 0;
  min-height: 45px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 8px;
  position: relative;
}
.rock-depth {
  position: absolute;
  inset: 1px;
  border-radius: 6px;
  background:
    linear-gradient(130deg, transparent 23%, #dbb0901e 24%, transparent 30%),
    repeating-linear-gradient(156deg, #bd8a6628 0 2px, transparent 2px 9px),
    linear-gradient(162deg, #6c4d3b, #42322c 55%, #2a231e 100%);
  box-shadow: inset 0 1px 2px #e7bc8c6b, inset -3px -4px 8px #0d080784, 0 2px 3px #1b100c;
  border: 1px solid #d3a07061;
  clip-path: polygon(5% 0, 95% 0, 100% 13%, 100% 86%, 94% 100%, 5% 100%, 0 86%, 0 12%);
}
.stratum:not(.current):not(.cleared) .rock-depth { filter: brightness(.73) saturate(.73); }
.mine-rock:not(:disabled):hover .rock-depth { filter: brightness(1.23); }
.mine-rock.star .rock-depth { background: radial-gradient(ellipse, #db8b2d9f, #6b4524), linear-gradient(130deg, #b37c3b, #593323); border-color: #f0b66487; }
.mine-rock.ash .rock-depth { background: linear-gradient(145deg, #623c37, #382522); border-color: #e98c7857; }
.reward-star { position: relative; z-index: 1; width: 39px; height: 39px; object-fit: contain; filter: drop-shadow(0 0 6px #ffa83770); }
.miner-bomb {
  position: relative;
  z-index: 3;
  width: 27px;
  height: 25px;
  margin-top: 5px;
  border-radius: 50%;
  border: 1px solid #d99a7c;
  background: radial-gradient(circle at 33% 26%, #978184, #463844 37%, #221c24 73%);
  box-shadow: 0 2px 8px #1c100bd4, inset 0 -3px #140c14aa;
}
.miner-bomb i {
  position: absolute;
  left: 57%;
  top: -7px;
  width: 11px;
  height: 9px;
  border-top: 2px solid #e1ab7f;
  border-right: 2px solid #e1ab7f;
  border-radius: 2px 5px 1px 0;
  transform: rotate(21deg);
}
.miner-bomb.lit { animation: reveal-bomb 805ms ease both; }
.miner-bomb.lit i::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffe0a3;
  box-shadow: 0 0 10px 2px #ffb14a;
  animation: lit-fuse 390ms 400ms ease-out both;
}
.miner-bomb.spent { opacity: .83; }
.miner-blast {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
}
.miner-blast > span {
  position: absolute;
  width: 44px;
  height: 44px;
  left: calc(50% - 22px);
  top: calc(50% - 22px);
  border: 3px solid #ffad67;
  border-radius: 50%;
  background: radial-gradient(circle, #ffcb88 5%, #f39a5485 48%, transparent 73%);
  box-shadow: 0 0 16px #e979555d;
  animation: detonation 490ms 790ms cubic-bezier(.13,.65,.42,1) both;
}
.miner-blast i {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 5px;
  height: 4px;
  background: #ffc47f;
  border-radius: 1px;
  box-shadow: 0 0 5px #ff914f;
  animation: blast-debris 430ms 822ms ease-out forwards;
  visibility: hidden;
}
.exploding .rock-depth { animation: rock-hit 780ms ease, blast-tile 400ms 791ms ease-out both; }
@keyframes reveal-bomb {
  0%, 37% { opacity: 0; transform: scale(.75); }
  52%, 96% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes lit-fuse {
  from { opacity: .45; transform: scale(.68); }
  to { opacity: 1; transform: scale(1.2); }
}
@keyframes detonation {
  from { opacity: 0; transform: scale(.35); }
  19% { opacity: .86; }
  to { opacity: 0; transform: scale(2.38); }
}
@keyframes blast-tile {
  0%, 100% { transform: none; }
  14% { transform: translateX(-3px); filter: brightness(1.3); }
  31% { transform: translateX(3px); }
}
@keyframes blast-debris {
  from { visibility: visible; transform: scale(.65); opacity: 1; }
  to { visibility: visible; transform: translate(var(--dx), var(--dy)) rotate(110deg) scale(.28); opacity: 0; }
}
.fracture {
  position: absolute;
  z-index: 3;
  inset: 4px;
  opacity: 0;
  background: repeating-conic-gradient(from 22deg at 50% 52%, transparent 0deg 46deg, #ffe3a9 47deg 48deg, transparent 49deg 60deg);
  mask-image: radial-gradient(ellipse at center, #000 0, #0008 42%, transparent 78%);
  animation: cracks 780ms ease both;
}
.swing {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  right: -11%;
  top: -126%;
  width: min(148%, 156px);
  height: 114px;
  pointer-events: none;
  transform-origin: 32% 85%;
  animation: pick-swing 780ms cubic-bezier(.38,.13,.31,.99) both;
}
.pickaxe { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 7px #130b08aa); }
.striking .rock-depth { animation: rock-hit 780ms ease; }
.strike-sparks { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.strike-sparks i {
  position: absolute;
  width: 3px;
  height: 3px;
  left: 51%;
  top: 48%;
  background: #fff2bd;
  border-radius: 50%;
  box-shadow: 0 0 9px #ffba4f;
  animation: sparks 460ms 260ms ease-out both;
}
@keyframes pick-swing {
  0% { opacity: 0; transform: rotate(30deg) translate(9px, -12px); }
  20% { opacity: 1; transform: rotate(19deg) translate(5px, -11px); }
  39% { opacity: 1; transform: rotate(-44deg) translate(-1px, 19px); }
  51% { opacity: 1; transform: rotate(-37deg) translate(2px, 13px); }
  81% { opacity: .8; transform: rotate(12deg) translate(7px, 2px); }
  100% { opacity: 0; transform: rotate(26deg) translate(8px, -6px); }
}
@keyframes rock-hit {
  0%, 31%, 100% { transform: none; }
  39% { transform: translate(2px, 1px) scale(.97); filter: brightness(1.47); }
  47% { transform: translate(-2px, 0); }
  57% { transform: translate(1px, 1px); }
  70% { transform: none; }
}
@keyframes cracks { 0%, 33% { opacity: 0; } 39%, 78% { opacity: .92; } 100% { opacity: .36; } }
@keyframes sparks { from { transform: scale(.5); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.15); opacity: 0; } }

.vault-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 0 auto;
  max-width: 431px;
  padding: 8px;
  border: 1px solid #8ecaf35c;
  background:
    repeating-linear-gradient(90deg, transparent 0 19px, #8bb4d718 19px 20px, transparent 20px 35px),
    #172638;
  border-radius: 13px;
  box-shadow: inset 0 0 18px #0a151d;
}
.vault-tile {
  display: grid;
  place-items: center;
  position: relative;
  aspect-ratio: 1;
  border: 1px solid #8fb7dc60;
  border-radius: 9px;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(146deg, #536a83, #334b65 42%, #26384d);
  box-shadow: inset 0 2px #d9eeff33, inset -3px -4px 7px #12203388, 0 2px 4px #10161e;
  transform-style: preserve-3d;
}
.vault-tile:not(:disabled):hover { filter: brightness(1.24); }
.tile-pin {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border: 1px solid #a9c9e87a;
  border-radius: 2px;
  background: #7c9db93d;
  box-shadow: inset 0 1px #131e29;
}
.vault-tile.safe { background: radial-gradient(circle at center, #335d7d, #20364d); border-color: #7dd4ff96; box-shadow: inset 0 0 13px #61c8ff54; }
.vault-tile.hit { background: radial-gradient(circle at 50% 42%, #84464b, #37252f); border-color: #ff9e8d90; }
.gem { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 0 7px #a4e9ff55); }
.hazard {
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #bfa4aa, #754c61 28%, #201c2b 74%);
  border: 1px solid #efab8e;
  box-shadow: 0 0 8px #ff8f7954;
}
.hazard::before { content: ""; position: absolute; left: 57%; top: 18%; width: 14%; height: 12%; border: solid #ffcf98; border-width: 2px 2px 0 0; border-radius: 4px; }
.vault-tile.flipping { animation: vault-turn 460ms ease-in-out both; }
@keyframes vault-turn {
  0% { transform: perspective(140px) rotateX(0); }
  62% { transform: perspective(140px) rotateX(85deg) scale(.94); filter: brightness(1.7); }
  100% { transform: perspective(140px) rotateX(10deg); filter: brightness(1.14); }
}
.vault-ladder {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 5px;
  max-width: 431px;
  margin: 8px auto 0;
}
.vault-multiplier {
  padding: 4px 5px;
  text-align: center;
  border-radius: 6px;
  border: 1px solid #9dc5e629;
  background: #172b3e85;
  color: #c1daea;
  font-size: 11px;
  font-weight: 680;
  white-space: nowrap;
}
.vault-multiplier.banked { border-color: #8ee2b58a; color: #b4f4cf; background: #264b47; }
.vault-multiplier.upcoming { border-color: #87cbf792; color: #d0edff; background: #284257; }

.slot-cabinet {
  padding: 16px 13px 13px;
  border: 1px solid #d99aaf77;
  background: radial-gradient(ellipse at 50% 0%, #64425d, transparent 76%), linear-gradient(165deg, #36253d, #281b32);
}
.slot-marquee, .slot-base { display: flex; align-items: center; justify-content: center; gap: 9px; color: #fad4da; }
.slot-marquee { margin-bottom: 12px; font-size: clamp(13px, 3.5vw, 18px); letter-spacing: .19em; }
.slot-base { margin-top: 11px; color: #ffe7ed; font-size: 13px; }
.slot-marquee span, .slot-base span { width: 24px; height: 1px; background: linear-gradient(90deg, transparent, #ffe2b88c); }
.slot-marquee span:last-child, .slot-base span:last-child { transform: rotate(180deg); }
.slot-marquee span { animation: brass-sheen 4300ms ease-in-out infinite alternate; }
@keyframes brass-sheen { from { opacity: .54; } to { opacity: 1; box-shadow: 0 0 6px #ffd7b34d; } }
.slot-window {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  gap: 6px;
  padding: 8px;
  overflow: hidden;
  border-radius: 14px;
  border: 2px solid #f2be9eaa;
  background: #1a101d;
  box-shadow: 0 0 17px #f4b3c838, inset 0 0 12px #cc928349, 0 8px 15px #1a0d1b;
}
.reel {
  display: grid;
  position: relative;
  place-items: center;
  aspect-ratio: .84;
  min-height: 89px;
  max-height: 164px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e4aa9b9c;
  background: linear-gradient(0deg, #47313e, #17212b 23% 77%, #533846);
  box-shadow: inset 0 0 16px #17121ed0;
}
.reel-face, .reel-item { width: 89%; max-width: 108px; }
.payline {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  pointer-events: none;
  background: #ffe1de58;
  box-shadow: 0 0 9px #ffb2d780;
}
.combo .payline { background: #ffdbb1a3; box-shadow: 0 0 10px #ffd1a7b5; }
.rolling {
  position: absolute;
  z-index: 2;
  display: grid;
  justify-items: center;
  top: -68%;
  width: 100%;
  animation: reel-roll 185ms linear infinite, disappear 1ms steps(1, end) var(--stop) both;
  filter: blur(1px);
}
.rolling .reel-item { opacity: .83; margin-bottom: 8px; }
.spinning .reel-face { animation: reel-stop 170ms ease-out var(--stop) both; }
@keyframes reel-roll { from { transform: translateY(0); } to { transform: translateY(32%); } }
@keyframes reel-stop { from { opacity: 0; transform: translateY(-21px) scale(.94); } 75% { opacity: 1; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes disappear { from { visibility: visible; } to { visibility: hidden; } }

.claw-glass {
  isolation: isolate;
  position: relative;
  height: clamp(218px, 51vw, 326px);
  border: 1px solid #bbf0da70;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(ellipse at 48% -5%, #367a67, #1c4a44 45%, #102c2a);
  box-shadow: inset 0 0 32px #071918b5;
}
.claw-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  margin-top: 8px;
  padding: 5px 13px;
  border: 1px solid #86d4b547;
  border-radius: 12px;
  background: linear-gradient(113deg, #112d2b, #22463b);
  color: #b7dbcf;
}
.claw-score > span { font-size: 13px; font-weight: 710; }
.claw-multiplier {
  flex-shrink: 0;
  color: #f2fff8;
  font-size: clamp(2.35rem, 8.6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -.064em;
  font-variant-numeric: tabular-nums;
}
.claw-score.revealed { border-color: #9de2c574; color: #e5fff2; }
.claw-score.winning {
  border-color: #a4f6bdba;
  color: #effff3;
  background: radial-gradient(ellipse at 95% 100%, #6ceab343, transparent 65%), linear-gradient(106deg, #132e2a, #2e664e);
}
.claw-score.winning strong { text-shadow: 0 0 22px #a3f8c47c; }
.glass-backdrop {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .13;
  filter: blur(4px);
  mask-image: linear-gradient(0deg, transparent 32%, #000 65%);
}
.claw-glass::after {
  content: "";
  z-index: 4;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(104deg, #dafef10b 6%, transparent 13% 78%, #e7fff320 81%, transparent 89%);
  box-shadow: inset 0 1px 0 #d2fff252;
}
.claw-rail {
  position: absolute;
  z-index: 1;
  top: 17px;
  left: 4%;
  right: 4%;
  height: 6px;
  border: 1px solid #badbd9;
  border-radius: 4px;
  background: linear-gradient(#bfd9d7, #547673 50%, #2f5c59);
  box-shadow: 0 0 15px #bbf6e362;
}
.capsule-pile { position: absolute; inset: 0; z-index: 2; }
.ball {
  display: grid;
  place-items: center;
  width: var(--diameter, 36px);
  aspect-ratio: 1;
  position: absolute;
  left: var(--x, 50%);
  bottom: var(--y, 0);
  translate: -50% 0;
  border-radius: 50%;
  border: 1px solid #d2fff286;
  background:
    radial-gradient(ellipse at 35% 18%, #fffcf8b9 0 4%, transparent 21%),
    radial-gradient(circle at 69% 77%, #fff1bb3d, transparent 28%),
    linear-gradient(155deg, var(--bright), var(--ball-mid) 49%, var(--ball-dark) 91%);
  box-shadow: inset 0 1px 3px #edfff366, inset 0 -3px 8px #10262b94, 0 4px 8px #0e121d7d;
}
.ball::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 92%;
  height: 26%;
  top: 34%;
  left: 4%;
  border-bottom: 1px solid #f1fbf8c4;
  box-shadow: 0 1px 1px #20243356;
  border-radius: 48%;
  transform: rotate(-10deg);
  pointer-events: none;
}
.ball.jade { --bright: #90e6bc; --ball-mid: #3a9b7d; --ball-dark: #204e51; }
.ball.violet { --bright: #e0a8ee; --ball-mid: #a3649a; --ball-dark: #583055; }
.ball.mint { --bright: #c2e8f4; --ball-mid: #7acbc8; --ball-dark: #39767c; }
.ball.honey { --bright: #ffe3a2; --ball-mid: #c69650; --ball-dark: #865a41; }
.ball.picked { display: none; }
.ball.being-picked { animation: disappear 1ms step-end 900ms both; }
.carriage {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 18px;
  translate: -50% 0;
  width: 64px;
  height: 91px;
  filter: drop-shadow(0 5px 7px #091416af);
}
.cable { position: absolute; width: 5px; height: 24px; top: 0; left: 30px; background: linear-gradient(90deg, #455f64, #c1d6d7, #648288); border-radius: 2px; }
.bracket { position: absolute; top: 21px; left: 19px; width: 26px; height: 15px; background: linear-gradient(#c7e0e0, #62828a 61%, #28424b); border-radius: 4px; border: 1px solid #d0e9e0; }
.pincer { position: absolute; top: 31px; width: 21px; height: 25px; border: 4px solid #b5d4d4; border-top-width: 2px; box-shadow: 0 2px 1px #193439; }
.pincer.left { left: 8px; transform: rotate(18deg); border-right-color: transparent; border-radius: 13px 2px 2px 16px; }
.pincer.right { right: 8px; transform: rotate(-18deg); border-left-color: transparent; border-radius: 2px 13px 16px 2px; }
.held {
  top: 46px;
  bottom: auto;
  --diameter: 34px;
  z-index: -1;
}
.grabbing .carriage { animation: grab-path 1760ms ease-in-out both; }
.grabbing .held { animation: catch-orb 1760ms linear both; }
.grabbing .pincer.left { animation: close-left 1760ms ease-in-out both; }
.grabbing .pincer.right { animation: close-right 1760ms ease-in-out both; }
.grabbing .cable { animation: extend-cable 1760ms ease-in-out both; transform-origin: bottom; }
@keyframes grab-path {
  0%, 9% { top: 18px; left: 50%; }
  27% { top: 18px; left: clamp(8%, var(--target), 92%); }
  53%, 60% { top: var(--drop); left: clamp(8%, var(--target), 92%); }
  84% { top: 18px; left: clamp(8%, var(--target), 92%); }
  100% { top: 18px; left: 50%; }
}
@keyframes extend-cable { 0%, 25%, 85%, 100% { transform: none; } 51%, 61% { transform: scaleY(6); } }
@keyframes catch-orb { 0%, 51% { visibility: hidden; } 52%, 100% { visibility: visible; } }
@keyframes close-left { 0%, 47% { transform: rotate(25deg); } 60%, 100% { transform: rotate(-7deg); } }
@keyframes close-right { 0%, 47% { transform: rotate(-25deg); } 60%, 100% { transform: rotate(7deg); } }

.account { max-width: 708px; }
.wallet-card, .gift-card, .profile-card, .friends-panel {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid #d69ac552;
  background: radial-gradient(ellipse at right top, #5a335c, #2e233d 73%);
}
.wallet-card, .gift-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  overflow: hidden;
}
.wallet-card > div { display: grid; gap: 7px; }
.wallet-card {
  min-height: 136px;
  padding-inline: clamp(14px, 5vw, 28px);
  background: radial-gradient(ellipse at 84% 60%, #f3a14536, transparent 49%),
    linear-gradient(130deg, #342640, #4d2f56 82%);
}
.wallet-card > div > span { font-size: 14px; color: #ead9f2; }
.wallet-card strong .value-stars { font-size: clamp(2rem, 7vw, 2.7rem); letter-spacing: -.05em; }
.wallet-card .value-stars .stars-icon { font-size: .62em; }
.wallet-art, .gift-main { width: min(31%, 115px); height: auto; aspect-ratio: 1; filter: drop-shadow(0 1px 14px #f8956258); }
.gift-card h2 { font-size: clamp(1.6rem, 5vw, 2.06rem); line-height: 1.1; letter-spacing: -.045em; }
.gift-card p { color: #f7d6ef; font-size: 13px; margin-top: 7px; }
.friends-panel {
  margin-top: 10px;
  display: grid;
  gap: 9px;
  background: var(--surface);
  border-color: var(--edge);
}
.referral-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.referral-progress i { height: 7px; border-radius: 3px; background: #bbb2d830; border: 1px solid #d7bbeb23; }
.gift-shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 54px)); gap: 7px; margin: 3px 0; }
.gift-shelf .telegram-gift { width: 100%; border-radius: 9px; box-shadow: 0 0 0 1px #ffffff14; }
.profile-card { display: grid; justify-items: center; gap: 9px; text-align: center; }
.profile-avatar { width: 90px; height: 90px; border-radius: 50%; border-color: #f7da9f65; font-size: 36px; }
.profile-card h2 { font-size: 20px; overflow-wrap: anywhere; }
.profile-card p { color: #ddd0e7; font-size: 13px; overflow-wrap: anywhere; }
.details-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 9px; }
.account-link {
  display: grid;
  gap: 6px;
  text-align: left;
  background: var(--surface);
  color: #f7e7fb;
  border-radius: 13px;
  border: 1px solid var(--edge);
  min-height: 66px;
  padding: 9px;
  font-size: 13px;
}
.account-link strong { color: var(--gold); }
.offer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-top: 8px;
  padding-inline: 12px;
  text-decoration: none;
}
.offer-link span { color: var(--gold); font-size: 21px; }
.offer-back { margin-bottom: 12px; }
.offer-draft {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #eec38e47;
  border-radius: 14px;
  background: #ffe1b410;
  color: #f5e3cf;
  font-size: 13px;
  line-height: 1.45;
}
.offer-document {
  display: grid;
  gap: 16px;
  margin-bottom: 12px;
  padding: clamp(13px, 3vw, 21px);
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: var(--surface);
  color: #e8ddec;
  font-size: 14px;
  line-height: 1.55;
}
.offer-document section { display: grid; gap: 6px; }
.offer-document section + section { padding-top: 13px; border-top: 1px solid var(--edge); }
.offer-document h2 { color: #fbf1fc; font-size: 17px; line-height: 1.25; }
.offer-paths {
  display: grid;
  gap: 4px;
  margin: 4px 0;
  padding: 10px;
  border-radius: 10px;
  background: #ffffff08;
}
.offer-paths dt { color: var(--gold); font-weight: 650; }
.offer-paths dt:not(:first-child) { margin-top: 5px; }
.offer-paths dd { margin: 0; }
.offer-page a:focus-visible, .offer-link:focus-visible, .payment-consent a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.ledger { background: var(--surface); border: 1px solid var(--edge); border-radius: 15px; padding: 12px; margin-top: 10px; }
.ledger ul { list-style: none; padding: 0; margin: 6px 0 0; }
.ledger h2 { font-size: 18px; letter-spacing: -.025em; }
.ledger li { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; font-size: 13px; }
.ledger li + li { border-top: 1px solid #ffffff10; }
.ledger li small { display: block; color: var(--muted); margin-top: 2px; font-size: 11px; }
.ledger li .positive { color: #b9ecd4; }
.ledger li .negative { color: #f3cece; }
.build { text-align: right; margin-top: 11px; color: #bcb2c8; font-size: 11px; }

.modal {
  color: #fcf4ff;
  background: #211c2d;
  border: 1px solid #eec8f347;
  border-radius: 17px;
  padding: 0;
  width: min(calc(100vw - 28px), 480px);
  max-height: min(77dvh, 650px);
  box-shadow: 0 24px 80px #10091799;
}
.modal::backdrop { background: #100b17b8; backdrop-filter: blur(4px); }
.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px;
  background: #211c2dfc;
  border-bottom: 1px solid #ffffff16;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.modal-head h2 { font-size: 21px; line-height: 1.1; letter-spacing: -.036em; }
.modal-body { display: grid; gap: 8px; padding: 12px; font-size: 14px; line-height: 1.53; }
.modal-body p { color: #e4d5ec; }
.modal-body table { width: 100%; text-align: right; border-spacing: 0; font-variant-numeric: tabular-nums; font-size: 13px; }
.modal-body th, .modal-body td { padding: 7px 5px; border-bottom: 1px solid #ffffff16; }
.modal-body th { color: #f4cbea; }
.modal-body th:first-child, .modal-body td:first-child { text-align: left; }
.quote { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.quote > div { display: grid; align-content: center; justify-items: center; min-height: 54px; padding: 3px; border-radius: 10px; background: #ffffff0c; color: #ffe0aa; }
.quote > .quote-total { background: #ffe4b925; }
.quote > div > span { font-size: 11px; color: #d8cadc; }
.payment-note {
  padding: 8px 10px;
  border-left: 2px solid var(--gold);
  background: #ffe1b40b;
  font-size: 13px;
}
.payment-consent { display: grid; gap: 7px; }
.payment-consent a { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
.offer-acceptance {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 9px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  cursor: pointer;
}
.offer-acceptance input {
  flex: none;
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--gold);
}
.payment-consent [role="status"]:empty { display: none; }

@media (max-width: 680px) {
  :root { --dock-space: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .modal.payment-sheet {
    inset: auto 0 0;
    width: min(100%, 480px);
    margin: 0 auto;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-radius: 17px 17px 0 0;
  }
  .topbar-inner { min-height: 61px; gap: 10px; padding-inline: 14px; }
  .bottom-dock { padding: 7px 8px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav { gap: 3px; padding: 4px; border-radius: 14px; }
  .bottom-nav .nav-item { flex-direction: column; gap: 2px; padding: 4px 1px; font-size: 11px; }
  .content { padding: 17px 12px var(--dock-space); }
  .section-head { margin-bottom: 12px; }
  .activity-strip { margin-bottom: 9px; }
  .activity-heading h2 { font-size: 13px; }
  .game-grid { gap: 8px; }
  .game-card { min-height: clamp(180px, 54vw, 252px); aspect-ratio: auto; border-radius: 15px; }
  .card-art { object-position: 52% center; }
  .theme-claw .card-art { object-position: 61% center; }
  .card-slot-gifts { top: 46%; }
  .title-slot-gifts { width: min(34%, 128px); right: 61px; }
  .card-caption { left: 8px; right: 5px; bottom: 9px; gap: 2px; }
  .card-caption b { font-size: clamp(1.1rem, 4.4vw, 1.55rem); }
  .card-caption small { font-size: 11px; }
  .game-badge { left: 7px; top: 8px; font-size: 11px; padding: 4px 5px; }
  .game-badge.activity { max-width: calc(100% - 46px); font-size: 12px; padding: 5px 7px; gap: 5px; }
  .card-launch { top: 7px; right: 6px; bottom: auto; width: 27px; height: 27px; border-radius: 8px; }
  .card-launch i { border-width: 4px 0 4px 6px; }
  .recent-rounds ul { grid-template-columns: 1fr; }
  .recent-rounds { padding-inline: 10px; }
  .play-layout { grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
  .game-view { padding: 9px 12px var(--dock-space); }
  .game-title { min-height: 79px; padding: 10px 11px; border-radius: 14px; }
  .game-subtitle { margin-top: 3px; }
  .stage { padding: 8px; border-radius: 14px; }
  .controls { padding: 9px; border-radius: 13px; }
  .mine-shaft { padding: 3px; gap: 2px; }
  .stratum { grid-template-columns: 23px 1fr 1fr minmax(42px, auto); gap: 4px; padding: 2px; }
  .mining-stage .stage-label { padding-bottom: 6px; }
  .vault-grid { padding: 5px; gap: 4px; }
  .reel-face, .reel-item { max-width: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .miner-blast, .win-sparks { display: none; }
  .online-dot { animation: none; }
}
.reduced *, .reduced *::before, .reduced *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
.reduced :is(.miner-blast, .win-sparks) { display: none; }
.reduced .online-dot { animation: none; }

/* Server-backed controls and status feedback */
:root {
  --safe-top: max(env(safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px));
}
button, .account-link { min-height: 44px; }
.vault-tile { min-height: 0; }
.dragless { user-select: none; }
.stack { display: grid; gap: 12px; }
.ledger ul, .stack-list { list-style: none; padding: 0; margin: 0; }
.stack-item { padding: 13px; display: grid; gap: 8px; border: 1px solid #eee0f128; border-radius: 12px; overflow-wrap: anywhere; }
.stack-item p { margin: 0; }
.stack-item small, .subtle { color: var(--muted); }
.stack-item .inline-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.status-text, .problem { margin-block: .8rem; }
.problem { color: #ffd0db; }
.problem > p { margin-bottom: .5rem; }
.number-controls { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 6px; align-items: stretch; }
.number-controls input, .field-input {
  min-width: 0; width: 100%; min-height: 44px; padding: 8px 12px; color: inherit; background: #141018;
  border: 1px solid #fff2  ; border-radius: 10px; font: inherit;
}
.number-controls input { text-align: center; }
.field-input[readonly] { overflow: hidden; text-overflow: ellipsis; }
.control-state { gap: 10px; }
.resume-panel {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px; margin-bottom: 12px; padding: 10px; border: 1px solid var(--edge);
  border-radius: 12px; background: var(--surface); overflow-wrap: anywhere;
}
.controls .resume-panel { margin-bottom: 0; }
.controls .resume-panel button { width: 100%; }
.motion-explanation { margin-top: 8px; }
.control-state > span { min-width: 0; }
.mode-options { display: flex; gap: 8px; flex-wrap: wrap; }
.mode-options .pill { flex: 1 1 auto; }
.field-group { display: grid; gap: 7px; }
.field-group > label, .field-label { font-weight: 600; }
.field-input:focus-visible, .number-controls input:focus-visible { outline: 2px solid #b4e5ff; outline-offset: 1px; }
a.secondary, a.primary { text-align: center; text-decoration: none; }
.offer-copy { white-space: pre-line; overflow-wrap: anywhere; }
.wallet-ledger-status { display: block; }
.route-loader { min-height: 36vh; display: grid; place-items: center; }
.copy-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.bonus-wheel {
  display: grid; width: min(52vw, 165px); aspect-ratio: 1; margin: 0 auto 16px; border-radius: 50%; place-items: center;
  font-size: 2.1rem; font-weight: 800; color: #23170f; background: radial-gradient(circle, #ffeac9 0 42%, transparent 43%),
    conic-gradient(#ffba79 0 45deg, #d88bc7 45deg 90deg, #ffba79 90deg 135deg, #d88bc7 135deg 180deg,
    #ffba79 180deg 225deg, #d88bc7 225deg 270deg, #ffba79 270deg 315deg, #d88bc7 315deg 360deg);
  border: 5px solid #ffeac9; box-shadow: 0 0 28px #ffba7960;
}
.bonus-wheel.spinning { animation: wheel-turn 750ms ease-out; }
@keyframes wheel-turn { from { transform: rotate(-540deg); } to { transform: rotate(0deg); } }
.gift-result { display: flex; align-items: center; gap: 10px; }
.gift-result .telegram-gift { width: 45px; flex: 0 0 45px; }
.entry-screen .brand-mark { width: 64px; height: 64px; }
.entry-screen { padding-top: 11vh; }
@media (prefers-reduced-motion: reduce) { .bonus-wheel.spinning { animation: none; } }
body.reduced .bonus-wheel.spinning { animation: none; }
.notice {
  max-width: min(90vw, 420px); position: fixed; z-index: 10; inset: auto 0 calc(100px + env(safe-area-inset-bottom, 0px)); margin: auto;
  padding: 12px 15px; background: #3e3043; border: 1px solid #b986b7; border-radius: 12px; box-shadow: 0 10px 30px #0008;
}
.admission-alert { margin-block: 12px; max-width: 1000px; padding-block: 12px; border: 1px solid #bc7f9940; border-radius: 12px; background: #2c2029; }
body.suspended *, body.suspended *::before, body.suspended *::after { animation-play-state: paused !important; }
.friends-panel progress { width: 100%; accent-color: #f3a8d1; }
.topbar { padding-top: var(--safe-top); }
.bottom-dock { padding-bottom: calc(9px + var(--safe-bottom)); }
@media (max-width: 680px) {
  :root { --dock-space: calc(88px + var(--safe-bottom)); }
  .bottom-dock { padding-bottom: calc(6px + var(--safe-bottom)); }
  .modal.payment-sheet { padding-bottom: var(--safe-bottom); }
  .field-input, .number-controls input { font-size: 16px; }
}

@media (max-width: 360px) {
  .topbar-inner { padding-inline: 10px; gap: 6px; }
  .pills { grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); grid-auto-flow: row; }
  .friends-panel, .gift-card, .controls, .stage { min-width: 0; }
  .control-state, .friends-banner > span { overflow-wrap: anywhere; }
  .friends-panel .inline-row { flex-wrap: wrap; }
  .nav-item span { overflow-wrap: anywhere; }
}

.topbar {
  background: #15111cbb;
  -webkit-backdrop-filter: blur(23px) saturate(145%);
  backdrop-filter: blur(23px) saturate(145%);
}
.bottom-nav {
  background: linear-gradient(150deg, #30243cca, #171321c4);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
}
.modal::backdrop {
  background: #100b1799;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.header-wallet {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding-inline-end: 3px;
  background: linear-gradient(145deg, #33263ce6, #201827dc);
  border: 1px solid #e8c4e643;
  border-radius: 14px;
  box-shadow: inset 0 1px #fff2;
}
.header-wallet .balance {
  min-width: 0;
  padding-inline: 10px 2px;
  background: transparent;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
}
.header-wallet .balance b { max-width: 22vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.balance-plus {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
}
.balance-plus span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(150deg, #ffdfaa, #edaf69);
  box-shadow: inset 0 1px #fff8, 0 3px 8px #120d16ae;
  color: #2d1b1f;
  font-size: 21px;
  font-weight: 820;
  line-height: 1;
}
.balance-plus:hover span { background: #ffe5b9; }
.lobby { padding-top: 17px; }
.vault-star { font-size: clamp(20px, 6vw, 38px); filter: drop-shadow(0 0 8px #ffc568ae); }
@media (max-width: 400px) {
  .topbar-inner { padding-inline: 10px; gap: 6px; }
  .top-start { gap: 6px; }
  .header-wallet .balance { font-size: 15px; padding-inline-start: 8px; }
  .header-wallet .balance .stars-icon { font-size: 16px; }
  .lobby { padding-top: 12px; }
}

/* VELTRIS 1.1 surfaces */
body { min-width: 280px; }
.top-start { flex: 1 1 auto; }
.top-profile { flex: 1 1 auto; }
.top-profile-copy, .top-profile-copy b { min-width: 0; }
.header-wallet .balance b { max-width: 11ch; }
.lobby .activity-strip { margin-bottom: 8px; }
.earn-banner {
  width: 100%;
  min-height: 56px;
  margin: 0 0 13px;
  padding: 8px 13px;
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: start;
  background: linear-gradient(120deg, #3e2754, #241b41 68%, #322752);
  border: 1px solid #c3a2ee59;
  border-radius: 14px;
  box-shadow: inset 0 1px #fff2, 0 4px 14px #0a071c60;
  color: #f5eaff;
}
.earn-banner > span:first-child {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #d1a0e519;
  color: #ffc981;
  font-size: 19px;
}
.earn-banner > span:last-child { color: #dfc1fe; font-size: 24px; }
.earn-banner:hover { border-color: #e1b9ffb0; }
.ticker-win .ticker-win-copy { display: grid; gap: 2px; min-width: 0; }
.ticker-win-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-gift { position: relative; background: transparent; }
.gift-poster, .gift-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: contain;
}
.gift-animation { display: block; opacity: 0; pointer-events: none; }
.gift-animation.playing { opacity: 1; background: inherit; }
.gift-history-line { display: flex; align-items: center; gap: 9px; }
.gift-history-line > .catalog-gift, .gift-history-line > .telegram-gift { width: 44px; flex: 0 0 44px; }
.gift-shelf { overflow-x: auto; }
.gift-shelf > .catalog-gift { min-width: 37px; }
.wallet-origin { margin-block: 8px 10px; }
.promo-quantities { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.promo-quantities > label { min-width: 0; }
.promo-launch { margin-top: 9px; }
.promo-history { margin-top: 10px; }
.promo-history .control-state { align-items: flex-start; }
.promo-history .control-state strong { white-space: normal; text-align: end; }
.promo-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.promo-actions > button { flex: 1 1 auto; }
.entry-terms-document summary { cursor: pointer; min-height: 36px; padding-block: 6px; font-weight: 650; }
.entry-terms-document .offer-copy { margin-top: 8px; }
.tasks-back { justify-self: start; }

.theme-mines {
  --accent: #bee8ff;
  --shade: #19365d;
  --deep: #101f37;
  --rim: #65b6ee63;
  --signal: #62baff;
  --scene-ink: #17446b;
}
.theme-mines .vault {
  background: radial-gradient(ellipse at 50% -12%, #234674 0%, #101c32 63%, #0b1427);
}
.vault-grid { border-color: #63baff5e; background: #0c1c34; }
.vault-tile {
  background: linear-gradient(145deg, #2d6398, #1f4775 49%, #173558);
  border-color: #72bdfe8a;
  border-radius: 7px;
}
.vault-tile.safe { background: radial-gradient(ellipse at center, #214f82, #143456 78%); }
.vault-tile.hit { background: radial-gradient(ellipse at center, #723949, #281d3c); border-color: #ff8c90ce; }
.vault-tile .hazard {
  width: 58%;
  height: auto;
  aspect-ratio: 1;
  background: radial-gradient(circle, #4b253b 46%, #f78e85 50% 58%, #3a1c35 62%);
  clip-path: polygon(50% 0%, 58% 15%, 73% 8%, 77% 25%, 94% 28%, 86% 42%, 100% 50%,
    85% 59%, 94% 73%, 77% 77%, 73% 94%, 58% 86%, 50% 100%, 41% 85%, 27% 94%,
    23% 77%, 6% 73%, 14% 59%, 0% 50%, 14% 42%, 6% 27%, 23% 23%, 27% 6%, 41% 15%);
  border-radius: 0;
}
.vault-tile .hazard::after {
  width: 19%; height: 19%; inset: 40% auto auto 40%; border-radius: 50%;
  background: #ff9e92; box-shadow: 0 0 10px #ffbdbc; transform: none;
}
.vault-flare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  z-index: 1;
  font-size: clamp(19px, 6vw, 38px);
}
.vault-flare > .stars-icon {
  filter: drop-shadow(0 0 12px #ffe4a8);
  animation: mines-gold-flare 430ms cubic-bezier(.18,.75,.22,1) both;
}
.vault-glints { position: absolute; inset: 50% auto auto 50%; }
.vault-glints i {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #ffe6ab;
  animation: mines-gold-glint 430ms ease-out both;
}
@keyframes mines-gold-flare {
  0%, 13% { opacity: 0; scale: .55; }
  56% { opacity: 1; scale: 1.25; }
  to { opacity: .92; scale: 1; }
}
@keyframes mines-gold-glint {
  0%, 22% { opacity: 0; transform: translate(0); }
  38% { opacity: 1; }
  to { opacity: 0; transform: translate(var(--dx), var(--dy)); }
}
.stake-shortfall { gap: 7px; }

.theme-claw {
  --accent: #baefd8;
  --shade: #194537;
  --deep: #0e2c24;
  --rim: #c9af7664;
  --signal: #b9d9ac;
  --scene-ink: #174436;
}
.claw-cabinet {
  border-color: #c8a7638c;
  background: linear-gradient(104deg, #16392c, #0b2721 34%, #1a3c2f 72%, #1a392d);
  box-shadow: inset 0 0 0 2px #030d0a99, 0 8px 22px #070f17a0;
}
.claw-canopy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 9px;
  min-height: 35px;
  padding: 6px 10px;
  background: linear-gradient(155deg, #3e5238, #142920 55%, #243e2e);
  box-shadow: inset 0 1px #f4d89182, 0 2px 7px #07120f96;
  border: 1px solid #cbae70a4;
  border-radius: 8px;
  color: #f4d797;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.claw-canopy b { letter-spacing: .18em; }
.claw-canopy i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #e7ce858c, transparent); }
.claw-glass {
  border: 2px solid #b49455ba;
  background: radial-gradient(ellipse at 51% -20%, #518064 0%, #285246 42%, #173b32 72%, #0a2520);
  box-shadow: inset 1px 0 0 #ebd39950, inset 0 0 28px #051410be;
}
.claw-rail {
  background: linear-gradient(#e8cf9d, #907444 50%, #584526);
  border-color: #ecce8db0;
  box-shadow: 0 0 10px #d9b66070;
}
.claw-glass .bracket {
  border-color: #efd69a;
  background: linear-gradient(#f2dda8, #b39656 61%, #5c4b35);
}
.claw-glass .pincer { border-color: #d9c18d; }
.claw-glass .pincer.left { border-right-color: transparent; }
.claw-glass .pincer.right { border-left-color: transparent; }
.claw-glass .ball {
  --ball-light: color-mix(in srgb, var(--bright) 48%, transparent);
  background:
    radial-gradient(ellipse at 35% 20%, #fffad3a3 0%, transparent 18%),
    radial-gradient(circle at 58% 76%, var(--ball-light), transparent 45%),
    linear-gradient(150deg, var(--ball-light), #123a30bd 78%, #102a26e0);
}
.claw-shell {
  display: grid;
  flex: 0 0 39px;
  width: 39px;
  aspect-ratio: 1;
  position: relative;
  place-items: center;
  color: #ffd681;
}
.claw-shell > span { position: absolute; }
.claw-shell .shell-lid, .claw-shell .shell-base {
  width: 35px;
  height: 17px;
  border: 1px solid #e6d296a0;
  background: linear-gradient(145deg, #edecb85c, #65a38938 48%, #2b5a4878);
  box-shadow: inset 0 1px #f7f6d7ae, 0 3px 7px #0b231982;
}
.claw-shell .shell-lid { top: 1px; left: -1px; border-radius: 25px 25px 4px 3px; transform: rotate(-18deg) translate(-3px,-4px); }
.claw-shell .shell-base { bottom: 2px; left: 2px; border-radius: 4px 4px 25px 25px; }
.claw-shell .stars-icon {
  font-size: 23px;
  filter: drop-shadow(0 0 9px #ffcd70);
  animation: claw-star-rise 480ms ease-out both;
}
@keyframes claw-star-rise {
  from { opacity: 0; transform: translateY(8px) scale(.6); }
  to { opacity: 1; transform: translateY(-2px) scale(1); }
}
.claw-score {
  background: linear-gradient(110deg, #122b23, #2c4f37);
  border-color: #b49959a8;
}
.claw-score.winning { background: radial-gradient(ellipse at 70% 100%, #ae94445a, transparent 72%), linear-gradient(110deg,#122b23,#254833); }
.claw-score .claw-multiplier { color: #ffe4aa; }
.claw-score > span { flex: 1; }
.claw-score .claw-shell { animation: claw-open 420ms ease-out both; }
@keyframes claw-open {
  from { opacity: .35; transform: translateY(8px) scale(.88); }
  to { opacity: 1; transform: none; }
}

.first-bonus {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  width: min(61vw, 176px);
  aspect-ratio: 1;
  margin: 5px auto 10px;
  border: 1px solid #f8d690;
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px #bc874965, inset 0 0 40px #eeb94f39, 0 0 32px #ffe2a345;
  background: radial-gradient(circle at 50% 34%, #74522b, #3b2c2c 52%, #221b28 82%);
  color: #ffe6a7;
}
.first-bonus .stars-icon { font-size: 58px; filter: drop-shadow(0 3px 17px #ffd25f9a); }
.first-bonus strong { font-size: 31px; line-height: 1; font-weight: 850; }
.first-bonus.spinning .stars-icon, .first-bonus.revealed .stars-icon { animation: first-bonus-flare 730ms ease-out both; }
@keyframes first-bonus-flare {
  0% { transform: rotate(-25deg) scale(.85); }
  58% { transform: rotate(10deg) scale(1.2); filter: drop-shadow(0 0 25px #fff29ddf); }
  to { transform: none; }
}
@media (max-width: 335px) {
  .top-avatar { width: 34px; height: 34px; }
  .top-profile { gap: 5px; }
  .top-profile-copy b { font-size: 13px; }
  .top-profile-copy small { font-size: 8px; }
  .game-card { min-height: 156px; }
  .card-caption b { font-size: clamp(.95rem, 4.35vw, 1.16rem); }
  .card-caption small { font-size: 10px; }
  .game-badge { font-size: 10px; padding-inline: 4px; }
  .card-launch { height: 23px; width: 23px; }
  .vault-grid { gap: 4px; padding: 4px; }
  .vault-tile { border-radius: 6px; }
  .claw-canopy b { letter-spacing: .12em; }
  .claw-score { gap: 7px; padding-inline: 9px; }
  .claw-score > span { font-size: 12px; }
  .modal-body th, .modal-body td { padding-inline: 3px; }
  .modal-body table { font-size: 11px; }
}
