:root {
  --bg: #0b0708;
  --bg-raised: #120c0e;
  --panel: #171013;
  --panel-2: #1f1519;
  --panel-3: #2a1c21;
  --line: rgba(255, 90, 100, 0.1);
  --line-strong: rgba(255, 90, 100, 0.2);
  --text: #f6f0f1;
  --text-2: #bcaeb1;
  --text-3: #7f6e72;
  --accent: #e50914;
  --accent-hover: #ff1f2a;
  --accent-ink: #ffffff;
  --accent-soft: rgba(229, 9, 20, 0.14);
  --accent-glow: rgba(229, 9, 20, 0.4);
  --win: #3fd87f;
  --win-soft: rgba(63, 216, 127, 0.13);
  --loss: #ff5462;
  --loss-soft: rgba(255, 84, 98, 0.13);
  --warn: #f3c15a;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --container: 1240px;
  --topbar-h: 64px;
  --tabbar-h: 64px;
  --chat-w: 340px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1000px 520px at 50% -10%, rgba(229, 9, 20, 0.14), transparent 62%),
    radial-gradient(700px 520px at 4% 30%, rgba(130, 0, 20, 0.12), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

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

img,
svg {
  display: block;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.mono,
.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--text-2);
}

.faint {
  color: var(--text-3);
}

.win {
  color: var(--win);
}

.loss {
  color: var(--loss);
}

.eyebrow {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--topbar-h);
  background: rgba(11, 7, 8, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(12px);
}

.topbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 20px;
}

.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  font-family: "Fraunces", var(--serif);
  font-weight: 800;
  font-size: 27px;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.01em;
  color: var(--accent);
  transition: color 0.15s, filter 0.15s;
}

.brand:hover {
  color: var(--accent-hover);
  filter: drop-shadow(0 0 12px rgba(229, 9, 20, 0.35));
}

.wordmark {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}

.wordmark__s {
  display: inline-block;
  width: 0.62em;
  height: 0.9em;
  margin: 0 0.01em 0 0.03em;
  vertical-align: -0.14em;
  overflow: visible;
}

.topnav {
  display: flex;
  gap: 4px;
}

.topnav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 600;
  transition: color 0.15s, background 0.15s;
}

.topnav a:hover {
  color: var(--text);
  background: var(--panel);
}

.topnav a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(229, 9, 20, 0.35);
}

.topbar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.icon-btn:hover {
  color: var(--text);
  background: var(--panel-2);
}

.chat-open .chat-toggle {
  color: #fff;
  background: var(--accent-soft);
  border-color: rgba(229, 9, 20, 0.5);
}

.chat-toggle__dot,
.tabbar__dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg);
}

.balance-pill {
  display: flex;
  align-items: center;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}

.balance-pill__value {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-family: var(--mono);
  font-weight: 600;
}

.balance-pill__action {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: linear-gradient(180deg, #ff2b35, var(--accent));
  color: #fff;
  font-weight: 700;
  transition: filter 0.15s;
}

.balance-pill__action:hover {
  filter: brightness(1.1);
}

.menu {
  position: relative;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px 0 6px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary:hover,
.menu[open] summary {
  background: var(--panel);
  border-color: var(--line-strong);
}

.menu__name {
  font-weight: 600;
}

.tint-0 { --tint: #ff3b45; }
.tint-1 { --tint: #ff7a1a; }
.tint-2 { --tint: #ffd23f; }
.tint-3 { --tint: #3fd87f; }
.tint-4 { --tint: #1fc8db; }
.tint-5 { --tint: #6b92ff; }
.tint-6 { --tint: #a97bff; }
.tint-7 { --tint: #ff4fa3; }
.tint-8 { --tint: #f4eeee; }
.tint-9 { --tint: #8bd450; }

.avatar {
  --avatar-size: 28px;
  flex: none;
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 30%;
  display: grid;
  place-items: center;
  overflow: hidden;
  object-fit: cover;
  background: #1c1215;
  color: var(--tint, #ff3b45);
  box-shadow: inset 0 0 0 1.5px var(--tint, rgba(255, 255, 255, 0.12));
  font-size: calc(var(--avatar-size) * 0.46);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
}

img.avatar {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.avatar--xs { --avatar-size: 20px; }
.avatar--sm { --avatar-size: 28px; }
.avatar--md { --avatar-size: 40px; }
.avatar--lg { --avatar-size: 64px; }
.avatar--xl { --avatar-size: 112px; }

.tinted { color: var(--tint); }

.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 70;
  min-width: 210px;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.menu__panel a,
.menu__panel button {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: none;
  text-align: left;
  color: var(--text-2);
  font-weight: 500;
  cursor: pointer;
}

.menu__panel a:hover,
.menu__panel button:hover {
  background: var(--panel-2);
  color: var(--text);
}

.menu__panel hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 6px 0;
}

.shell {
  min-height: calc(100vh - var(--topbar-h));
  display: flex;
  flex-direction: column;
  transition: margin-right 0.2s ease;
}

.main {
  flex: 1;
  padding: 28px 0 64px;
  container-type: inline-size;
  container-name: main;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--text-3);
  font-size: 13px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  font-family: "Fraunces", var(--serif);
  font-weight: 800;
  font-size: 16px;
  color: var(--accent);
  margin-right: 10px;
}

.footer__links {
  display: flex;
  gap: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, filter 0.15s, transform 0.1s;
}

.btn:hover {
  background: var(--panel-2);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary,
.btn--glow {
  border-color: #ff4a53;
  background: linear-gradient(180deg, #ff2b35 0%, var(--accent) 55%, #b8060f 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 24px -10px var(--accent-glow);
}

.btn--primary:hover,
.btn--glow:hover {
  background: linear-gradient(180deg, #ff3d46 0%, #f00d19 55%, #c80711 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 30px -8px var(--accent-glow);
}

.btn--dark {
  background: #1d1418;
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn--dark:hover {
  background: #281c21;
}

.btn--outline {
  background: rgba(20, 4, 6, 0.6);
  border-color: rgba(229, 9, 20, 0.45);
  color: #ff4a53;
}

.btn--outline:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.btn--ghost {
  border-color: transparent;
  background: none;
  color: var(--text-2);
  font-weight: 600;
}

.btn--ghost:hover {
  color: var(--text);
  background: var(--panel);
}

.btn--sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 9px;
}

.btn--lg {
  height: 50px;
  padding: 0 24px;
  font-size: 15px;
}

.btn--block {
  width: 100%;
}

.btn:disabled,
.btn[aria-busy="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #1d1418;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 700;
  transition: background 0.15s;
}

.pill-link:hover {
  background: #281c21;
}

.panel {
  background: linear-gradient(180deg, rgba(28, 18, 22, 0.9), rgba(20, 13, 16, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.panel__title {
  font-size: 15px;
  font-weight: 700;
}

.panel__body {
  padding: 18px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.page-head h1 {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.page-head p {
  margin-top: 6px;
  color: var(--text-2);
}

.section-title,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 40px 0 14px;
}

.section-title h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-head h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.label-row .label {
  margin: 0;
}

.field {
  margin-bottom: 16px;
}

.input,
.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  outline: none;
  font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus,
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea.input {
  height: auto;
  min-height: 84px;
  padding: 12px 14px;
  font-family: var(--font);
  line-height: 1.45;
  resize: vertical;
}

.input--mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.field__help {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 12px;
}

.errorlist {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  color: var(--loss);
  font-size: 12px;
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  margin-bottom: 16px;
}

.alert--error {
  border-color: rgba(255, 84, 98, 0.4);
  background: var(--loss-soft);
  color: #ffc7cc;
}

.alert--success {
  border-color: rgba(63, 216, 127, 0.35);
  background: var(--win-soft);
  color: #c6f5d9;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-2);
  cursor: pointer;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.checkbox a {
  color: #ff4a53;
  font-weight: 600;
}

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 4px;
  gap: 4px;
  border-radius: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  border-radius: 9px;
  color: var(--text-2);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

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

.segmented input:checked + label {
  background: var(--panel-3);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(229, 9, 20, 0.5);
}

.segmented input:focus-visible + label {
  outline: 2px solid var(--accent);
}

.locks {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.locks__sign {
  margin-right: -6px;
}

.lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.lock__icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: none;
}

.lock__icon--wl {
  image-rendering: pixelated;
}

.locks--sm .lock__icon {
  width: 14px;
  height: 14px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th {
  padding: 12px 18px;
  text-align: left;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover {
  background: rgba(229, 9, 20, 0.04);
}

.table .right {
  text-align: right;
}

.table .right .locks {
  justify-content: flex-end;
}

.table-empty {
  padding: 36px 18px;
  text-align: center;
  color: var(--text-3);
}

.row-new {
  animation: row-in 0.6s ease-out;
}

@keyframes row-in {
  from {
    background: rgba(229, 9, 20, 0.16);
  }
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: var(--panel-3);
  color: var(--text-2);
}

.tag--win {
  background: var(--win-soft);
  color: var(--win);
}

.tag--loss {
  background: var(--loss-soft);
  color: var(--loss);
}

.tag--warn {
  background: rgba(243, 193, 90, 0.12);
  color: var(--warn);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
}

.pagination__links {
  display: flex;
  gap: 6px;
}

.pagination .btn {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(229, 9, 20, 0.3);
  background: rgba(229, 9, 20, 0.08);
  color: #ff4a53;
  font-size: 12px;
  font-weight: 600;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.pill--off {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--text-3);
}

.pill--off::before {
  background: var(--text-3);
  animation: none;
}

.hero__tagline {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--text-2);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
}

.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.6);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(229, 9, 20, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229, 9, 20, 0);
  }
}

.banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 190px;
  padding: 26px 28px;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s, box-shadow 0.2s;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px 260px at 88% 50%, rgba(255, 255, 255, 0.18), transparent 70%);
}

.banner:hover {
  transform: translateY(-2px);
}

.banner--arena {
  background: linear-gradient(120deg, #7a0610 0%, #d10a17 55%, #ff3d47 100%);
  box-shadow: 0 24px 60px -30px rgba(229, 9, 20, 0.8);
}

.banner--gold {
  background: linear-gradient(120deg, #7a4a00 0%, #d99100 55%, #ffc93c 100%);
  box-shadow: 0 24px 60px -30px rgba(240, 160, 0, 0.7);
}

.banner__copy {
  position: relative;
  z-index: 1;
  max-width: 58%;
}

.banner__tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.banner__title {
  margin-top: 12px;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.banner__text {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  font-size: 15px;
}

.banner__art {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 46%;
  max-width: 280px;
  transform: translateY(-50%);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

.art {
  width: 100%;
  height: auto;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  aspect-ratio: 3 / 4;
  padding: 14px 12px 16px;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(160px 120px at 50% 30%, rgba(255, 255, 255, 0.22), transparent 70%),
    linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.35));
}

.tile:hover {
  transform: translateY(-4px);
}

.tile .art {
  position: absolute;
  top: 10%;
  left: 6%;
  width: 88%;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s;
}

.tile:hover .art {
  transform: scale(1.05) rotate(-2deg);
}

.tile--arena {
  background: linear-gradient(160deg, #ff4a52 0%, #c8071a 55%, #5c000c 100%);
  box-shadow: 0 20px 40px -24px rgba(229, 9, 20, 0.9);
}

.tile--dice {
  background: linear-gradient(160deg, #7c6dff 0%, #4330c8 55%, #1b125e 100%);
  box-shadow: 0 20px 40px -24px rgba(90, 70, 255, 0.9);
}

.tile--limbo {
  background: linear-gradient(160deg, #ffc93c 0%, #f08a00 55%, #7a3400 100%);
  box-shadow: 0 20px 40px -24px rgba(240, 138, 0, 0.9);
}

.tile--coinflip {
  background: linear-gradient(160deg, #2ee59d 0%, #0a9f6b 55%, #04402a 100%);
  box-shadow: 0 20px 40px -24px rgba(10, 159, 107, 0.9);
}

.tile--chicken {
  background: linear-gradient(160deg, #4cc9ff 0%, #1a7fd6 55%, #0b2f66 100%);
  box-shadow: 0 20px 40px -24px rgba(26, 127, 214, 0.9);
}

.tile__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: #b3000f;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.tile__badge--soft {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
}

.tile__title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.tile__brand {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.deposit-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.12), rgba(28, 18, 22, 0.9) 60%);
}

.deposit-strip__rates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-family: var(--mono);
  font-weight: 600;
}

.deposit-strip__rates span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.deposit-strip__rates i {
  font-style: normal;
  color: var(--text-3);
}

.deposit-strip__world {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deposit-strip__world strong {
  font-size: 16px;
  letter-spacing: 0.04em;
}

.feed-user {
  font-weight: 600;
}

.play {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.controls {
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
}

.amount-box {
  display: flex;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.amount-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.amount-box input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 0;
  background: none;
  outline: none;
  font-family: var(--mono);
  font-size: 16px;
}

.amount-box__tools {
  display: flex;
  padding: 5px;
  gap: 5px;
}

.amount-box__tools button {
  width: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.amount-box__tools button:hover {
  color: var(--text);
  background: rgba(229, 9, 20, 0.25);
}

.unit-select {
  margin-top: 8px;
}

.unit-select img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.stat {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
}

.stat__label {
  color: var(--text-3);
  font-size: 12px;
}

.stat__value {
  margin-top: 2px;
  font-family: var(--mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.form-error {
  min-height: 18px;
  margin-top: 10px;
  color: var(--loss);
  font-size: 12px;
  text-align: center;
}

.stage {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stage__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.stage__recent {
  display: flex;
  gap: 6px;
  overflow: hidden;
  min-height: 26px;
}

.chip {
  flex: none;
  height: 26px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  background: var(--loss-soft);
  color: var(--loss);
  animation: chip-in 0.25s ease-out;
}

.chip--win {
  background: var(--win-soft);
  color: var(--win);
}

@keyframes chip-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
}

.stage__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 36px;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(229, 9, 20, 0.12), transparent 70%),
    rgba(8, 5, 6, 0.5);
}

.big-result {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(56px, 9vw, 96px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.05em;
  text-align: center;
  color: var(--text);
  transition: color 0.2s, text-shadow 0.2s;
}

.big-result.is-win {
  color: var(--win);
  text-shadow: 0 0 40px rgba(63, 216, 127, 0.3);
}

.big-result.is-loss {
  color: var(--loss);
  text-shadow: 0 0 40px rgba(255, 84, 98, 0.3);
}

.big-result__sub {
  margin-top: 12px;
  min-height: 22px;
  text-align: center;
  color: var(--text-2);
}

.dice-track {
  position: relative;
  margin: 56px 6px 0;
}

.dice-track__bar {
  position: relative;
  height: 12px;
  border-radius: 6px;
  background: var(--loss);
  overflow: hidden;
}

.dice-track__win {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--win);
  transition: left 0.15s, width 0.15s;
}

.dice-track__marker {
  position: absolute;
  top: -40px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: left 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dice-track__marker span {
  padding: 3px 7px;
  border-radius: 6px;
  background: #fff;
  color: var(--bg);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.dice-track__marker::after {
  content: "";
  width: 2px;
  height: 22px;
  background: #fff;
}

.dice-track__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 11px;
}

.dice-range {
  position: absolute;
  inset: -8px 0 auto;
  width: 100%;
  height: 28px;
  margin: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  touch-action: pan-y;
}

.dice-range::-webkit-slider-runnable-track {
  height: 28px;
  background: transparent;
}

.dice-range::-moz-range-track {
  height: 28px;
  background: transparent;
}

.dice-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  border: 4px solid var(--accent);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.dice-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 8px;
  background: #fff;
  border: 4px solid var(--accent);
}

.dice-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.swap-btn {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  font-family: var(--mono);
  cursor: pointer;
}

.swap-btn:hover {
  border-color: var(--accent);
}

.swap-btn svg {
  color: var(--accent);
}

.coin-stage {
  display: grid;
  place-items: center;
  perspective: 900px;
}

.coin {
  position: relative;
  width: clamp(130px, 30vw, 170px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
}

.coin.is-flipping {
  transition: transform 1s cubic-bezier(0.3, 0.1, 0.2, 1);
}

.coin__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  backface-visibility: hidden;
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 900;
}

.coin__face--heads {
  background: radial-gradient(circle at 35% 30%, #ff5a60, var(--accent) 55%, #7c030a);
  color: #fff;
  box-shadow: inset 0 0 0 8px rgba(0, 0, 0, 0.16), 0 20px 60px -16px var(--accent-glow);
}

.coin__face--tails {
  background: radial-gradient(circle at 35% 30%, #4a3a3c, #2a1c1e 60%, #170e0f);
  color: var(--text);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.05);
  transform: rotateY(180deg);
}

.side-picker label {
  height: 40px;
}

.side-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.side-dot--heads {
  background: var(--accent);
}

.side-dot--tails {
  background: #5d4b4d;
}

.auth {
  max-width: 420px;
  margin: 24px auto 0;
}

.auth h1 {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.auth__sub {
  margin: 8px 0 22px;
  color: var(--text-2);
  font-size: 15px;
}

.auth__alt {
  margin-top: 18px;
  text-align: center;
  color: var(--text-2);
}

.auth__alt a {
  color: #ff4a53;
  font-weight: 700;
}

.wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wallet-balance {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wallet-balance__total {
  font-family: var(--mono);
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.wallet-balance__total small {
  font-size: 15px;
  color: var(--text-3);
  margin-left: 6px;
}

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

.breakdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
}

.breakdown__item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.breakdown__value {
  font-family: var(--mono);
  font-weight: 600;
}

.breakdown__label {
  color: var(--text-3);
  font-size: 11px;
}

.steps {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 14px 34px;
  color: var(--text-2);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--line-strong);
  color: #ff4a53;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.steps strong {
  color: var(--text);
  font-weight: 700;
}

.kv {
  display: grid;
  gap: 14px;
}

.kv__row {
  display: grid;
  gap: 6px;
}

.kv__key {
  color: var(--text-3);
  font-size: 12px;
}

.code {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
  word-break: break-all;
}

.fair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.inline-form {
  display: flex;
  gap: 8px;
}

.inline-form .input {
  flex: 1;
  min-width: 0;
}

.verify-result {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  min-height: 48px;
  overflow-wrap: anywhere;
}

.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filters a {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-2);
  font-weight: 600;
  font-size: 13px;
}

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

.filters a[aria-current="true"] {
  border-color: rgba(229, 9, 20, 0.4);
  background: var(--accent-soft);
  color: #ff4a53;
}

.prose {
  max-width: 68ch;
  color: var(--text-2);
}

.prose h2 {
  margin: 28px 0 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p + p {
  margin-top: 10px;
}

.error-page {
  max-width: 460px;
  margin: 10vh auto;
  text-align: center;
}

.error-page__code {
  font-family: var(--serif);
  font-size: 110px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  filter: drop-shadow(0 12px 40px rgba(229, 9, 20, 0.3));
}

.error-page h1 {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 900;
}

.error-page p {
  margin: 10px 0 26px;
  color: var(--text-2);
}

.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-width: 240px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
  animation: toast-in 0.2s ease-out;
}

.toast--error {
  border-color: rgba(255, 84, 98, 0.45);
}

.toast--success {
  border-color: rgba(63, 216, 127, 0.4);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.tabbar {
  display: none;
}

.drawer-open {
  overflow: hidden;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  animation: fade-in 0.2s ease-out;
}

.drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(320px, 86vw);
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--panel);
  border-right: 1px solid var(--line-strong);
  animation: slide-in 0.22s ease-out;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.drawer__section {
  display: grid;
  gap: 2px;
  margin-bottom: 22px;
}

.drawer__section .eyebrow {
  margin: 0 0 6px 12px;
}

.drawer__section a,
.drawer__section button {
  display: block;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.drawer__section a:hover,
.drawer__section button:hover {
  background: var(--panel-2);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes slide-in {
  from {
    transform: translateX(-100%);
  }
}

.chat {
  position: fixed;
  top: var(--topbar-h);
  right: 0;
  bottom: 0;
  z-index: 50;
  width: var(--chat-w);
  display: flex;
  flex-direction: column;
  background: #120c0e;
  border-left: 1px solid var(--line-strong);
}

.chat-open .shell {
  margin-right: var(--chat-w);
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.chat__head .icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.chat__tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
}

.chat__tabs button {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--text-2);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.chat__tabs button[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
}

.chat__online {
  margin-left: auto;
  color: var(--text-3);
  font-size: 12px;
  white-space: nowrap;
}

.chat__list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat__empty {
  margin: auto;
  color: var(--text-3);
}

.chat-msg {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 7px 10px;
  border-radius: 10px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.chat-msg:hover {
  background: rgba(255, 255, 255, 0.03);
}

.chat-msg__user {
  margin-right: 6px;
  color: var(--tint, var(--text));
  font-weight: 700;
}

.chat-msg__user:hover {
  text-decoration: underline;
}

.chat-msg--staff .chat-msg__user {
  color: #ff4a53;
}

.chat-msg__badge {
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  vertical-align: 1px;
}

.chat-msg__body {
  color: var(--text-2);
}

.chat__jump {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 8px 20px -6px var(--accent-glow);
}

.chat__form {
  display: flex;
  gap: 8px;
  padding: 10px 12px 4px;
  border-top: 1px solid var(--line);
}

.chat__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-raised);
  outline: none;
  font-size: 16px;
}

.chat__input:focus {
  border-color: var(--accent);
}

.chat__send {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.chat__error {
  min-height: 20px;
  padding: 0 14px 8px;
  color: var(--loss);
  font-size: 12px;
}

.chat__signin {
  padding: 12px;
  border-top: 1px solid var(--line);
}

.btn--google {
  gap: 10px;
  background: #fff;
  border-color: #fff;
  color: #1f1f1f;
  font-weight: 700;
}

.btn--google:hover {
  background: #f1f1f1;
}

.auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-3);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auth__divider::before,
.auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

.auth__forgot {
  margin-top: 14px;
  text-align: center;
}

.auth__forgot a,
.auth__legal a,
.legal a {
  color: #ff4a53;
  font-weight: 600;
}

.auth__legal {
  margin-top: 14px;
  color: var(--text-3);
  font-size: 12px;
  text-align: center;
}

.auth__row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.input--code {
  height: 56px;
  font-size: 26px;
  letter-spacing: 0.4em;
  text-align: center;
}

.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(243, 193, 90, 0.4);
  border-radius: 12px;
  background: rgba(243, 193, 90, 0.08);
}

.notice--info {
  border-color: var(--line-strong);
  background: var(--accent-soft);
}

.settings {
  max-width: 980px;
}

.settings__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  align-items: start;
}

.settings__value {
  margin-bottom: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.settings__cta {
  margin-bottom: 16px;
}

.settings__method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.settings__method:last-of-type {
  border-bottom: 0;
}

.settings__privacy {
  display: grid;
  gap: 10px;
}

.legal {
  max-width: 820px;
}

.legal__table {
  margin: 8px 0 4px;
}

.legal__table td {
  white-space: normal;
  vertical-align: top;
  color: var(--text-2);
}

.linklike {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.footer__links .linklike {
  text-decoration: none;
}

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

.legal .linklike {
  color: #ff4a53;
  font-weight: 600;
}

.arena-lobby__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3vh 0 30px;
}

.arena-title {
  margin-top: 18px;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(44px, 8vw, 100px);
  line-height: 0.95;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ff2b33 0%, #e50914 45%, #9d0710 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 40px rgba(229, 9, 20, 0.28));
}

.arena-lobby__grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 16px;
  max-width: 940px;
  margin: 0 auto;
  align-items: start;
}

.arena-join {
  border-color: rgba(229, 9, 20, 0.28);
  box-shadow: 0 30px 80px -30px rgba(229, 9, 20, 0.45);
}

.arena-join__resume {
  margin: 8px 0 16px;
  color: var(--text-2);
}

.arena-join__limits {
  margin-top: 10px;
  text-align: center;
}

.arena-rules .steps {
  margin: 0;
  padding: 18px 18px 6px;
}

.arena-stage {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #050203;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.arena-playing {
  overflow: hidden;
}

.arena-playing .shell {
  margin-right: 0;
}

.arena-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.arena-hud {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.arena-hud--tl {
  top: calc(14px + env(safe-area-inset-top));
  left: calc(14px + env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.arena-minimap {
  width: 120px;
  height: 120px;
}

.arena-ping {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-transform: uppercase;
}

.arena-chat-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(14, 4, 6, 0.75);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.arena-chat-btn svg {
  width: 16px;
  height: 16px;
}

.arena-hud--tr {
  top: calc(14px + env(safe-area-inset-top));
  right: calc(14px + env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.arena-brand {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--accent);
}

.arena-brand span {
  margin-left: 0.25em;
  color: var(--text);
}

.arena-board {
  width: 210px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(14, 4, 6, 0.72);
}

.arena-board ol {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 5px;
  font-size: 12px;
}

.arena-board li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.arena-board__name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-2);
}

.arena-board__name > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.arena-board__rank {
  width: 12px;
  color: var(--text-3);
  font-family: var(--mono);
}

.arena-board .avatar--xs {
  --avatar-size: 16px;
}

.arena-board__value {
  font-family: var(--mono);
  color: var(--text);
}

.arena-hud--bc {
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.arena-value {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(14, 4, 6, 0.8);
  font-weight: 700;
  white-space: nowrap;
}

.arena-value__label {
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.arena-value__sep {
  width: 1px;
  height: 16px;
  background: var(--line-strong);
}

.arena-cashout {
  position: relative;
  overflow: hidden;
  min-width: 180px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid #ff4a53;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff2b35, var(--accent) 55%, #b8060f);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  pointer-events: auto;
  touch-action: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 30px -10px var(--accent-glow);
}

.arena-cashout__fill {
  position: absolute;
  inset: 0;
  background: rgba(63, 216, 127, 0.92);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.08s linear;
}

.arena-cashout__text {
  position: relative;
}

.arena-hint,
.arena-hud--bl {
  color: var(--text-3);
  font-size: 12px;
}

.arena-hud--bl {
  left: calc(16px + env(safe-area-inset-left));
  bottom: calc(16px + env(safe-area-inset-bottom));
}

kbd {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  text-align: center;
}

.arena-hint__touch {
  display: none;
}

.arena-boost {
  display: none;
  position: absolute;
  right: calc(20px + env(safe-area-inset-right));
  bottom: calc(26px + env(safe-area-inset-bottom));
  z-index: 2;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid rgba(229, 9, 20, 0.55);
  background: rgba(229, 9, 20, 0.22);
  color: #fff;
  font-weight: 800;
  touch-action: none;
}

.arena-boost:active {
  background: rgba(229, 9, 20, 0.5);
}

.arena-stick {
  position: absolute;
  z-index: 2;
  width: 110px;
  height: 110px;
  margin: -55px 0 0 -55px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.arena-stick span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.75);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.arena-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: rgba(5, 2, 3, 0.62);
  backdrop-filter: blur(3px);
}

.arena-overlay__card {
  width: min(420px, calc(100% - 32px));
  padding: 30px 28px;
  text-align: center;
  border-radius: 20px;
  border: 1px solid rgba(229, 9, 20, 0.3);
  background: linear-gradient(180deg, rgba(48, 6, 10, 0.94), rgba(18, 4, 6, 0.96));
  box-shadow: 0 30px 80px -24px rgba(229, 9, 20, 0.45);
}

.arena-overlay__title {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.arena-overlay__text {
  margin-top: 10px;
  color: var(--text-2);
}

.arena-overlay__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.arena-playing .chat {
  top: auto;
  right: auto;
  left: calc(14px + env(safe-area-inset-left));
  bottom: calc(90px + env(safe-area-inset-bottom));
  z-index: 120;
  width: min(340px, calc(100vw - 28px));
  height: min(420px, 48vh);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(14, 6, 8, 0.86);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.arena-playing .arena-hud--bl {
  display: none;
}

@container main (max-width: 900px) {
  .stage .road-dock {
    display: block;
  }

  .play .chicken-actions,
  .play .chicken-hint,
  .play .bet-main,
  .crash .controls [data-action] {
    display: none;
  }

  .play {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .play__main {
    display: contents;
  }

  .play__main > * {
    order: 3;
  }

  .play__main > .stage {
    order: 1;
  }

  .controls {
    position: static;
    order: 2;
    margin-top: 16px;
  }

  .wallet-grid,
  .fair-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@container main (max-width: 760px) {
  .banners {
    grid-template-columns: minmax(0, 1fr);
  }

  .arena-lobby__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tiles {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 42%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    margin: 0 -16px;
    padding: 4px 16px 12px;
    scrollbar-width: none;
  }

  .tiles::-webkit-scrollbar {
    display: none;
  }

  .tile {
    scroll-snap-align: start;
  }

  .dice-fields {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .dice-fields > :last-child {
    grid-column: span 2;
  }

  .breakdown {
    grid-template-columns: minmax(0, 1fr);
  }
}

@container main (max-width: 480px) {
  .tiles {
    grid-auto-columns: 46%;
  }

  .stage__body {
    padding: 30px 16px;
  }

  .stage {
    min-height: 330px;
  }

  .banner {
    min-height: 168px;
    padding: 22px 20px;
  }

  .banner__title {
    font-size: 27px;
  }

  .banner__text {
    font-size: 14px;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .table th,
  .table td {
    padding: 11px 12px;
  }

  .hide-sm {
    display: none;
  }
}

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

.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

.wallet-grid--send {
  margin-top: 16px;
}

.transfer-fee {
  font-size: 11px;
}

.profile {
  display: grid;
  gap: 16px;
}

.profile__hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tint) 16%, transparent), transparent 60%),
    var(--panel);
  overflow: hidden;
}

.profile__who {
  flex: 1;
  min-width: 0;
}

.profile__name {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.profile__bio {
  margin-top: 10px;
  max-width: 60ch;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.profile__actions {
  display: flex;
  gap: 8px;
  align-self: flex-start;
}

.profile__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.profile__stats .stat {
  padding: 14px 16px;
}

.profile__stats .stat__value {
  margin-top: 6px;
  font-size: 18px;
}

.settings__profile {
  margin-bottom: 16px;
}

.profile-edit {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}

.profile-edit__avatar {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.profile-edit__avatar form {
  width: 100%;
}

.file-btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-btn:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.swatches input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tint);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}

.swatch:hover {
  transform: scale(1.08);
}

.swatches input:checked + .swatch {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--tint);
}

.swatches input:focus-visible + .swatch {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 16px;
  color: var(--text-2);
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.confirm-wrap {
  display: grid;
  place-items: start center;
  padding-top: 24px;
}

.confirm {
  width: min(460px, 100%);
}

.confirm__who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.confirm__name {
  font-size: 22px;
  font-weight: 800;
}

.confirm__rows {
  display: grid;
  gap: 2px;
  margin: 0 0 14px;
}

.confirm__rows > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.confirm__rows dt {
  color: var(--text-2);
}

.confirm__rows dd {
  margin: 0;
}

.confirm__total dt {
  color: var(--text);
  font-weight: 700;
}

.confirm__actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  margin-top: 16px;
}

.chat-msg__avatar {
  margin-top: 1px;
}

.feed-user {
  white-space: nowrap;
}

.feed-user .avatar {
  display: inline-grid;
  vertical-align: middle;
  margin-right: 8px;
}

.feed-user a {
  color: inherit;
}

.conn .panel__body {
  display: grid;
  gap: 26px;
}

.conn__value {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.conn__verdict {
  margin-top: 12px;
  max-width: 62ch;
  color: var(--text-2);
}

.conn__route {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
}

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

.conn__label {
  font-weight: 700;
}

.conn__dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-3);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.conn__dot--end {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.conn__leg {
  position: relative;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}

.conn__leg span {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}

.conn [data-rerun] {
  justify-self: start;
}

.room-pick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.room-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.room-pick label {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-raised);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.room-pick input:checked + label {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.room-pick input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.room-pick input:disabled + label {
  opacity: 0.45;
  cursor: not-allowed;
}

.room-pick__name {
  font-weight: 800;
}

.room-pick__meta,
.room-pick__count {
  color: var(--text-3);
  font-size: 12px;
}

.room-pick__count {
  font-family: var(--mono);
}

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

.chicken-levels input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chicken-levels label {
  display: grid;
  gap: 2px;
  padding: 9px 4px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-raised);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.chicken-levels small {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
}

.chicken-levels input:checked + label {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.chicken-levels input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.chicken-levels input:disabled + label {
  opacity: 0.5;
  cursor: not-allowed;
}

.chicken-actions {
  display: grid;
  gap: 8px;
}

.chicken-hint {
  margin-top: 8px;
  text-align: center;
}

.chicken-stage {
  position: relative;
  overflow: hidden;
}

.road {
  --lane-w: 120px;
  --road-h: 410px;
  --sprite: 100px;
  --side-w: 150px;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  background: #1d2026;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.road::-webkit-scrollbar {
  display: none;
}

.road img {
  pointer-events: none;
  -webkit-user-drag: none;
}

@media (hover: hover) and (pointer: fine) {
  .road {
    cursor: grab;
    user-select: none;
  }

  .road.is-dragging,
  .road.is-dragging .lane,
  .road.is-dragging .lane__plate {
    cursor: grabbing;
  }
}

.road__track {
  --mid: 248px;
  position: relative;
  display: flex;
  width: max-content;
  min-width: 100%;
  height: var(--road-h);
}

.road__track::before,
.road__track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  height: 70px;
  pointer-events: none;
}

.road__track::before {
  top: 0;
  background: linear-gradient(180deg, rgba(12, 8, 10, 0.85), transparent);
}

.road__track::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(12, 8, 10, 0.7), transparent);
}

.road__side {
  position: relative;
  flex: none;
  width: var(--side-w);
  overflow: hidden;
}

.road__side--start {
  background:
    radial-gradient(ellipse 90px 60px at 58% calc(var(--mid) + 20px), rgba(255, 214, 140, 0.22), transparent 70%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.25), transparent 35%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(0, 0, 0, 0.28) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 48px, rgba(0, 0, 0, 0.2) 48px 50px),
    linear-gradient(180deg, #5a5f69, #4a4e57);
}

.road__side--end {
  flex: 1 0 var(--side-w);
  background:
    radial-gradient(circle at 20% 30%, #ffd84d 0 2px, transparent 2.5px) 0 0 / 46px 58px,
    radial-gradient(circle at 70% 60%, #ff7aa8 0 2px, transparent 2.5px) 0 0 / 38px 44px,
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0 2px, transparent 3px) 0 0 / 14px 14px,
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 30%),
    linear-gradient(180deg, #2f9a4f, #237a3c);
}

.road__curb {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 10px;
  background: repeating-linear-gradient(180deg, #f2f2f2 0 22px, #d63a3a 22px 44px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 0 12px rgba(0, 0, 0, 0.35);
}

.road__side--start .road__curb {
  right: 0;
}

.road__side--end .road__curb {
  left: 0;
}

.road__lamp {
  position: absolute;
  left: 22px;
  top: calc(var(--mid) - 150px);
  width: 6px;
  height: 150px;
  border-radius: 3px;
  background: linear-gradient(90deg, #2c2f36, #50545d, #2c2f36);
}

.road__lamp::before {
  content: "";
  position: absolute;
  top: 0;
  left: 3px;
  width: 44px;
  height: 6px;
  border-radius: 3px;
  background: #3f434b;
}

.road__lamp i {
  position: absolute;
  top: 4px;
  left: 34px;
  width: 22px;
  height: 10px;
  border-radius: 0 0 11px 11px;
  background: #fff2c4;
  box-shadow: 0 0 18px 6px rgba(255, 220, 140, 0.55), 0 0 60px 20px rgba(255, 200, 110, 0.18);
  animation: lamp-hum 3.2s ease-in-out infinite;
}

.road__bush {
  position: absolute;
  left: 8px;
  bottom: 34px;
  width: 58px;
  height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 40%, #3fb366 0 12px, transparent 13px),
    radial-gradient(circle at 65% 35%, #36a45b 0 14px, transparent 15px),
    radial-gradient(circle at 50% 65%, #2c8c4c 0 18px, transparent 19px);
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.35));
}

.road__flag {
  position: absolute;
  left: 46px;
  top: calc(var(--mid) - 110px);
  z-index: 2;
  width: 4px;
  height: 104px;
  border-radius: 2px;
  background: linear-gradient(90deg, #bdbdbd, #f4f4f4, #bdbdbd);
}

.road__flag::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 48px;
  height: 32px;
  border-radius: 2px 4px 4px 2px;
  background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0 / 12px 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  transform-origin: left center;
  animation: flag-wave 1.6s ease-in-out infinite alternate;
}

.road__nest {
  position: absolute;
  left: 60px;
  top: calc(var(--mid) - 8px);
  z-index: 2;
  width: 76px;
  filter: drop-shadow(0 0 16px rgba(245, 180, 0, 0.35));
}

.road__nest svg {
  display: block;
  width: 100%;
}

.road__lanes {
  display: flex;
}

.lane {
  position: relative;
  flex: none;
  width: var(--lane-w);
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 18%, rgba(0, 0, 0, 0.1) 24% 28%, transparent 34% 66%, rgba(0, 0, 0, 0.1) 72% 76%, transparent 82%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 14%, transparent 86%, rgba(0, 0, 0, 0.12)),
    #2a2d34;
}

.lane::after {
  content: "";
  position: absolute;
  top: -270px;
  left: 0;
  right: 0;
  height: calc(100% + 270px);
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0 26px, transparent 26px 54px) right top / 3px 100% no-repeat,
    repeating-linear-gradient(180deg, transparent 0 100px, rgba(0, 0, 0, 0.06) 100px 190px, transparent 190px 270px);
  pointer-events: none;
  will-change: transform;
  animation: lane-flow 3s linear infinite;
}

.lane:last-child::after {
  background: repeating-linear-gradient(180deg, transparent 0 100px, rgba(0, 0, 0, 0.06) 100px 190px, transparent 190px 270px);
}

.lane.is-blocked::after {
  animation-play-state: paused;
}

@keyframes lane-flow {
  to {
    transform: translate3d(0, 270px, 0);
  }
}

.lane::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  pointer-events: none;
  transition: background 0.3s;
}

.lane.is-next {
  cursor: pointer;
}

.lane.is-next::before {
  background: linear-gradient(180deg, rgba(229, 9, 20, 0), rgba(229, 9, 20, 0.08) 40%, rgba(229, 9, 20, 0.16));
}

.lane.is-crossed::before {
  background: linear-gradient(180deg, rgba(63, 216, 127, 0), rgba(63, 216, 127, 0.07));
}

.lane--crash::before,
.lane--danger::before {
  background: linear-gradient(180deg, rgba(255, 84, 98, 0.05), rgba(255, 84, 98, 0.24));
}

.lane--locked {
  opacity: 0.35;
}

.lane__cars {
  position: absolute;
  inset: 0;
}

.car {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 4;
  width: 44px;
  height: 80px;
  margin-left: -22px;
  will-change: transform;
}

.car--truck {
  width: 48px;
  height: 112px;
  margin-left: -24px;
}

.car svg {
  display: block;
  width: 100%;
  height: 100%;
}

.car--killer svg {
  filter: drop-shadow(0 0 10px rgba(255, 84, 98, 0.6));
}

.lane__barrier {
  position: absolute;
  top: calc(var(--mid) - var(--sprite) * 0.62 - 22px);
  left: 8px;
  right: 8px;
  z-index: 3;
  height: 13px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 45%, rgba(0, 0, 0, 0.25)),
    repeating-linear-gradient(-45deg, #ffcf2e 0 9px, #17171b 9px 18px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-12px) scaleX(0.5);
  transition: opacity 0.2s, transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.lane__barrier::before,
.lane__barrier::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff9f1a;
  box-shadow: 0 0 8px 2px rgba(255, 159, 26, 0.75);
  animation: barrier-blink 1s steps(2, jump-none) infinite;
}

.lane__barrier::before {
  left: 5px;
}

.lane__barrier::after {
  right: 5px;
  animation-delay: 0.5s;
}

.lane.is-blocked .lane__barrier {
  opacity: 1;
  transform: none;
}

.lane__plate {
  --plate-hi: #7a808c;
  --plate-lo: #2c3038;
  --plate-rim: #17191e;
  --plate-edge: #545a67;
  --plate-size: 84px;
  position: absolute;
  top: calc(var(--mid) + var(--sprite) * 0.3 - var(--plate-size) / 2);
  left: 50%;
  z-index: 2;
  width: var(--plate-size);
  height: var(--plate-size);
  margin-left: calc(var(--plate-size) / -2);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  font: inherit;
  perspective: 420px;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s ease;
}

.lane__plate:not(:disabled) {
  cursor: pointer;
}

.lane__plate:not(:disabled):hover {
  transform: scale(1.07);
}

.lane__plate:not(:disabled):active {
  transform: scale(0.95);
}

.lane__plate:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.lane__plate::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.lane__coin {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.3, 1.35, 0.5, 1) 0.08s;
}

.lane.is-passed .lane__coin {
  transform: rotateY(180deg);
}

.lane__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 4px solid var(--plate-rim);
  border-radius: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.lane__face--front {
  background: radial-gradient(circle at 34% 28%, var(--plate-hi), var(--plate-lo) 74%);
  box-shadow:
    0 0 0 2px var(--plate-edge),
    0 6px 0 rgba(0, 0, 0, 0.42),
    inset 0 3px 4px rgba(255, 255, 255, 0.16),
    inset 0 -6px 10px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.25s;
}

.lane__face--front::before {
  content: "";
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0 3px, rgba(255, 255, 255, 0.08) 3px 4px, transparent 4px 9px);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.28), inset 0 0 8px rgba(0, 0, 0, 0.3);
}

.lane__face--front::after {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--plate-edge) 0 2px, transparent 2.5px) 50% 0 / 7px 7px no-repeat,
    radial-gradient(circle, var(--plate-edge) 0 2px, transparent 2.5px) 50% 100% / 7px 7px no-repeat,
    radial-gradient(circle, var(--plate-edge) 0 2px, transparent 2.5px) 0 50% / 7px 7px no-repeat,
    radial-gradient(circle, var(--plate-edge) 0 2px, transparent 2.5px) 100% 50% / 7px 7px no-repeat;
}

.lane__face--back {
  border-color: #8a5a06;
  background: radial-gradient(circle at 34% 28%, #fff4b8, #f7c843 42%, #d99a14 72%, #9a6408);
  box-shadow:
    0 0 0 2px #ffd65c,
    0 6px 0 rgba(0, 0, 0, 0.4),
    0 0 22px rgba(255, 201, 58, 0.45),
    inset 0 3px 5px rgba(255, 255, 255, 0.55),
    inset 0 -6px 10px rgba(120, 70, 0, 0.45);
  transform: rotateY(180deg);
}

.lane__face--back::before {
  content: "";
  position: absolute;
  inset: 11%;
  border: 2px solid rgba(138, 90, 6, 0.45);
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.lane__face--back .lock__icon {
  position: relative;
  width: 50%;
  height: 50%;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}

.lane__value {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  max-width: calc(var(--plate-size) - 10px);
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.74);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.lane__value .locks {
  gap: 4px;
}

.lane__value .lock__icon {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6));
}

.lane.is-next .lane__plate {
  --plate-hi: #ff5b64;
  --plate-lo: #8f0610;
  --plate-rim: #5c030a;
  --plate-edge: #ff3a45;
}

.lane.is-next .lane__face--front {
  box-shadow:
    0 0 0 2px var(--plate-edge),
    0 6px 0 rgba(0, 0, 0, 0.42),
    0 0 28px 4px var(--accent-glow),
    inset 0 3px 4px rgba(255, 255, 255, 0.22),
    inset 0 -6px 10px rgba(0, 0, 0, 0.4);
}

.lane.is-next .lane__plate::after {
  animation: plate-pulse 1.4s ease-out infinite;
}

.lane--crash .lane__plate,
.lane--danger .lane__plate {
  --plate-hi: #8a2230;
  --plate-lo: #3a0910;
  --plate-rim: #22050a;
  --plate-edge: #ff5462;
}

.lane.is-here .lane__value,
.lane--crash .lane__value {
  opacity: 0;
}

.lane.is-collected .lane__plate {
  animation: plate-collect 0.55s ease-out;
}

.lane--danger .lane__value {
  color: #ffc1c7;
}

.lane--locked .lane__value {
  opacity: 0.6;
}

.car--sport {
  height: 76px;
}

.car--van {
  width: 46px;
  height: 96px;
  margin-left: -23px;
}

.car--bus {
  width: 52px;
  height: 170px;
  margin-left: -26px;
}

.hen__wing {
  transform-box: fill-box;
  transform-origin: 30% 20%;
}

.hen.is-hop .hen__wing {
  animation: hen-flap 0.32s ease-in-out;
}

.hen.is-winner .hen__wing {
  animation: hen-flap 0.25s ease-in-out infinite alternate;
}

@keyframes hen-flap {
  0%,
  100% {
    transform: rotate(0);
  }
  35% {
    transform: rotate(-38deg) translateY(-2px);
  }
  70% {
    transform: rotate(-10deg);
  }
}

.car::before {
  content: "";
  position: absolute;
  top: 88%;
  left: -20%;
  right: -20%;
  height: 90px;
  background: radial-gradient(ellipse 50% 70% at 50% 0%, rgba(255, 238, 170, 0.2), transparent 75%);
  pointer-events: none;
}

.car--killer::before {
  background: radial-gradient(ellipse 50% 70% at 50% 0%, rgba(255, 120, 120, 0.35), transparent 75%);
}

.hen {
  position: absolute;
  left: 0;
  top: calc(var(--mid) - var(--sprite) * 0.62);
  z-index: 3;
  width: var(--sprite);
  height: var(--sprite);
  pointer-events: none;
  transform: translateX(var(--x, 0));
  transition: transform 0.32s cubic-bezier(0.3, 0.7, 0.4, 1);
}

.hen.no-motion {
  transition: none;
}

.hen.is-running {
  transition-duration: var(--run-ms, 800ms);
  transition-timing-function: cubic-bezier(0.45, 0.05, 0.35, 1);
}

.hen.is-running .hen__body {
  animation: hen-run 0.2s ease-in-out infinite alternate;
}

.hen.is-running .hen__wing {
  animation: hen-flap 0.2s ease-in-out infinite alternate;
}

.hen.is-facing-back .hen__body svg {
  transform: scaleX(-1);
}

@keyframes hen-run {
  from {
    transform: translateY(0) rotate(-4deg);
  }
  to {
    transform: translateY(-11px) rotate(4deg);
  }
}

.hen__shadow {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 2%;
  height: 12%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  filter: blur(2px);
}

.hen__body {
  position: absolute;
  inset: 0;
  transform-origin: 50% 92%;
  animation: hen-idle 1.4s ease-in-out infinite alternate;
}

.hen__body svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25));
}

.hen.is-hop .hen__body {
  animation: hen-hop 0.32s ease-out;
}

.hen.is-hop .hen__shadow {
  animation: hen-shadow 0.32s ease-out;
}

.hen.is-squashed .hen__body {
  animation: none;
  filter: grayscale(0.4) brightness(0.9);
  transform: scaleY(0.22) scaleX(1.25);
  transition: transform 0.12s ease-in, filter 0.3s;
}

.hen.is-winner .hen__body {
  animation: hen-cheer 0.5s ease-in-out infinite alternate;
}

.hen.is-winner .hen__body svg {
  filter: drop-shadow(0 0 14px rgba(63, 216, 127, 0.7));
}

.hen__feathers {
  position: absolute;
  left: 50%;
  top: 55%;
}

.hen__feathers i {
  position: absolute;
  width: 12px;
  height: 6px;
  margin: -3px 0 0 -6px;
  border-radius: 50% 50% 50% 0;
  background: #f4f5f7;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: feather 1s ease-out forwards;
}

.chicken.is-shaking .road {
  animation: shake 0.45s;
}

@keyframes hen-idle {
  from {
    transform: translateY(0) scale(1, 1);
  }
  to {
    transform: translateY(-1px) scale(1.01, 0.99);
  }
}

@keyframes hen-hop {
  0% {
    transform: translateY(0) scale(1.05, 0.9);
  }
  45% {
    transform: translateY(-30px) scale(0.96, 1.06) rotate(-6deg);
  }
  85% {
    transform: translateY(0) scale(1.08, 0.88);
  }
  100% {
    transform: translateY(0) scale(1, 1);
  }
}

@keyframes hen-shadow {
  45% {
    transform: scale(0.6);
    opacity: 0.5;
  }
}

@keyframes hen-cheer {
  from {
    transform: translateY(0) rotate(-5deg);
  }
  to {
    transform: translateY(-10px) rotate(5deg);
  }
}

@keyframes feather {
  from {
    opacity: 1;
    transform: translate(0, 0) rotate(0);
  }
  to {
    opacity: 0;
    transform: translate(var(--dx), calc(var(--dy) + 40px)) rotate(var(--spin));
  }
}

@keyframes flag-wave {
  from {
    transform: skewY(0);
  }
  to {
    transform: skewY(-6deg) scaleX(0.94);
  }
}

.hen__eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: hen-blink 4.2s infinite;
}

.hen.is-squashed .hen__eye {
  animation: none;
}

.fx-puff {
  position: absolute;
  bottom: 2%;
  width: 20px;
  height: 12px;
  border-radius: 50%;
  background: rgba(220, 220, 230, 0.55);
  filter: blur(1px);
  pointer-events: none;
  animation: fx-puff 0.6s ease-out forwards;
}

.fx-puff--left {
  left: 12%;
  --drift: -22px;
}

.fx-puff--right {
  right: 12%;
  --drift: 22px;
}

.fx-gain {
  position: absolute;
  left: 50%;
  bottom: 96%;
  z-index: 6;
  pointer-events: none;
  animation: fx-gain 1.15s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

.fx-gain__value {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe07a, #f5b400);
  color: #2b1800;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 18px -6px rgba(245, 180, 0, 0.7);
}

.fx-coins {
  position: absolute;
  left: 50%;
  top: 40%;
  pointer-events: none;
}

.fx-coins i {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3b0, #f5b400 55%, #b37800);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: fx-coin 1.1s cubic-bezier(0.2, 0.7, 0.4, 1) var(--delay) forwards;
}

.road-dock {
  display: none;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 12, 14, 0.96), rgba(12, 8, 10, 0.98));
}

.road-dock__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.road-dock__row[hidden] {
  display: none;
}

.road-dock__row--single {
  grid-template-columns: minmax(0, 1fr);
}

.road-dock__bet {
  display: grid;
  align-content: center;
  gap: 1px;
  min-width: 0;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-raised);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.road-dock__label {
  color: var(--text-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.road-dock__summary {
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.road-dock .btn--lg {
  min-height: 52px;
}

.road-dock__go {
  font-size: 17px;
  letter-spacing: 0.02em;
}

@keyframes lamp-hum {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.86;
  }
}

@keyframes barrier-blink {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.25;
  }
}

.road-hud {
  position: absolute;
  top: 66px;
  left: 50%;
  z-index: 6;
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(10, 7, 9, 0.72);
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  animation: pop 0.25s ease-out;
}

.road-hud[hidden] {
  display: none;
}

.road-hud__cell {
  display: grid;
  gap: 2px;
  min-width: 86px;
  padding: 6px 12px;
  border-radius: 10px;
  text-align: center;
}

.road-hud__cell span {
  color: var(--text-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.road-hud__cell strong {
  display: flex;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

.road-hud__cell--next {
  background: var(--accent-soft);
}

.road-flash {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
}

.road-flash--win {
  background: radial-gradient(circle at 50% 60%, rgba(63, 216, 127, 0.35), transparent 65%);
  animation: road-flash 0.9s ease-out;
}

.road-flash--loss {
  background: radial-gradient(circle at 50% 60%, rgba(255, 84, 98, 0.4), transparent 70%);
  animation: road-flash 0.8s ease-out;
}

.chicken .chicken-result {
  top: 36%;
  min-width: 250px;
  padding: 18px 28px 16px;
  border-radius: 20px;
  background: rgba(10, 7, 9, 0.9);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%);
  animation: result-in 0.35s cubic-bezier(0.2, 1.3, 0.4, 1);
}

.chicken .chicken-result__title {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chicken-result__amount {
  display: flex;
  justify-content: center;
  margin-top: 6px;
  font-size: 30px;
  font-weight: 900;
}

.chicken-result__amount:empty {
  display: none;
}

.chicken-result__amount .lock__icon {
  width: 28px;
  height: 28px;
}

.chicken-result--win .chicken-result__amount {
  color: var(--win);
}

.chicken-result--loss .chicken-result__amount {
  color: var(--loss);
}

@keyframes plate-pulse {
  from {
    opacity: 0.9;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.35);
  }
}

@keyframes plate-collect {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.18);
    filter: brightness(1.6);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes hen-blink {
  0%,
  93%,
  100% {
    transform: scaleY(1);
  }
  96% {
    transform: scaleY(0.1);
  }
}

@keyframes fx-puff {
  from {
    opacity: 0.9;
    transform: translateX(0) scale(0.6);
  }
  to {
    opacity: 0;
    transform: translateX(var(--drift)) scale(1.6);
  }
}

@keyframes fx-gain {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px) scale(0.7);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -6px) scale(1.08);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -28px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -44px) scale(0.95);
  }
}

@keyframes fx-coin {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.5);
  }
  60% {
    opacity: 1;
    transform: translate(var(--dx), var(--dy)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), calc(var(--dy) + 50px)) scale(0.8);
  }
}

@keyframes road-flash {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes result-in {
  from {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.chicken-result {
  position: absolute;
  left: 50%;
  top: 62px;
  z-index: 5;
  min-width: 220px;
  padding: 14px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(11, 7, 8, 0.9);
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  animation: pop 0.25s ease-out;
}

.chicken-result--win {
  border-color: rgba(63, 216, 127, 0.5);
}

.chicken-result--loss {
  border-color: rgba(255, 84, 98, 0.5);
}

.chicken-result__title {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
}

.chicken-result--win .chicken-result__title {
  color: var(--win);
}

.chicken-result--loss .chicken-result__title {
  color: var(--loss);
}

.chicken-result__text {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 13px;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-8px);
  }
  50% {
    transform: translateX(7px);
  }
  75% {
    transform: translateX(-4px);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.tile--crash {
  background: linear-gradient(160deg, #ff8a4c 0%, #e0431b 55%, #611505 100%);
  box-shadow: 0 20px 40px -24px rgba(224, 67, 27, 0.9);
}

.tile--roulette {
  background: linear-gradient(160deg, #3c3f4a 0%, #1c1e25 55%, #08090c 100%);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.9);
}

.tile--mines {
  background: linear-gradient(160deg, #b86bff 0%, #7a2fd6 55%, #2f0b66 100%);
  box-shadow: 0 20px 40px -24px rgba(122, 47, 214, 0.9);
}

.amount-box__suffix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 14px;
}

.seed-cell {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-3);
}

.live-players tr.is-me td,
.roulette-col__list li.is-me {
  background: var(--accent-soft);
}

.mines-count {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.mines-count select {
  appearance: none;
  height: 46px;
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 15px;
  background:
    linear-gradient(45deg, transparent 50%, var(--text-3) 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, var(--text-3) 50%, transparent 50%) calc(100% - 12px) 50% / 6px 6px no-repeat,
    var(--bg-raised);
}

.mines-count__gems {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--win);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.mines-stage {
  overflow: hidden;
}

.mines-board {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 28px 20px 32px;
  background:
    radial-gradient(520px 280px at 50% 0%, rgba(122, 47, 214, 0.16), transparent 70%),
    rgba(8, 5, 6, 0.5);
}

.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 460px);
}

.mine-tile {
  position: relative;
  aspect-ratio: 1;
  padding: 18%;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #2f2530, #231a22);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s, opacity 0.2s;
}

.mine-tile:not(:disabled):hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, #3d3040, #2c2130);
}

.mine-tile:disabled {
  cursor: default;
}

.mine-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mine-tile svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mine-tile.is-pending {
  animation: tile-wait 0.6s ease-in-out infinite alternate;
}

.mine-tile.is-gem {
  background: linear-gradient(180deg, #16301f, #10241a);
  box-shadow: inset 0 0 0 1px rgba(63, 216, 127, 0.35);
}

.mine-tile.is-mine {
  background: linear-gradient(180deg, #3a1419, #2a0d11);
  box-shadow: inset 0 0 0 1px rgba(255, 84, 98, 0.35);
}

.mine-tile.is-boom {
  background: radial-gradient(circle at 50% 50%, #ff7a3c, #c40d1d 70%);
  box-shadow: 0 0 0 3px rgba(255, 84, 98, 0.35), 0 0 30px rgba(255, 84, 98, 0.6);
  animation: tile-boom 0.4s ease-out;
}

.mine-tile.is-dim {
  opacity: 0.38;
}

.mine-tile.is-pop svg {
  animation: tile-pop 0.28s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.mines.is-shaking .mines-grid {
  animation: shake 0.45s;
}

.mines-result {
  top: 50%;
  transform: translate(-50%, -50%);
  animation: none;
}

@keyframes tile-wait {
  to {
    transform: scale(0.94);
    opacity: 0.7;
  }
}

@keyframes tile-pop {
  from {
    transform: scale(0.3);
    opacity: 0;
  }
}

@keyframes tile-boom {
  0% {
    transform: scale(0.8);
  }
  60% {
    transform: scale(1.12);
  }
}

.crash-view {
  position: relative;
  flex: 1;
  min-height: 360px;
  background:
    radial-gradient(640px 300px at 50% 100%, rgba(63, 216, 127, 0.08), transparent 70%),
    rgba(8, 5, 6, 0.5);
}

.crash-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.crash-center {
  position: absolute;
  top: 26%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}

.crash-multi {
  font-family: var(--mono);
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.crash-multi.is-running {
  color: var(--text);
}

.crash-multi.is-waiting {
  color: var(--text-2);
}

.crash-multi.is-crashed {
  color: var(--loss);
}

.crash-label {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.crash-bar,
.roulette-status__bar {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.crash-bar {
  position: absolute;
  left: 50%;
  bottom: 56px;
  width: min(60%, 320px);
  transform: translateX(-50%);
}

.crash-bar span,
.roulette-status__bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
}

.crash-view.is-crash {
  animation: crash-flash 0.5s ease-out;
}

.crash-action.btn--glow {
  background: linear-gradient(180deg, #3fd87f, #1f9d55);
  color: #04160b;
}

@keyframes crash-flash {
  0% {
    box-shadow: inset 0 0 0 999px rgba(255, 84, 98, 0.18);
  }
  100% {
    box-shadow: inset 0 0 0 999px rgba(255, 84, 98, 0);
  }
}

.roulette-recent {
  gap: 5px;
}

.roulette-dot {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  animation: chip-in 0.25s ease-out;
}

.roulette-dot--red,
.roulette-tile--red {
  background: linear-gradient(180deg, #ff3b47, #c20613);
  color: #fff;
}

.roulette-dot--black,
.roulette-tile--black {
  background: linear-gradient(180deg, #34363f, #1b1c22);
  color: #e6e7ea;
}

.roulette-dot--green,
.roulette-tile--green {
  background: linear-gradient(180deg, #3fe08a, #0f9a4f);
  color: #03140a;
}

.roulette-view {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: 36px 0 30px;
  overflow: hidden;
  background:
    radial-gradient(640px 260px at 50% 50%, rgba(229, 9, 20, 0.1), transparent 70%),
    rgba(8, 5, 6, 0.5);
}

.roulette-view::before,
.roulette-view::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 18%;
  pointer-events: none;
}

.roulette-view::before {
  left: 0;
  background: linear-gradient(90deg, var(--panel), transparent);
}

.roulette-view::after {
  right: 0;
  background: linear-gradient(270deg, var(--panel), transparent);
}

.roulette-track {
  display: flex;
  gap: 8px;
  width: max-content;
  will-change: transform;
}

.roulette-tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 14px;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
}

.roulette-view.is-landed .roulette-tile {
  opacity: 0.45;
}

.roulette-view.is-landed .roulette-tile.is-winner {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 0 0 3px #fff, 0 12px 30px rgba(0, 0, 0, 0.5);
}

.roulette-reel {
  position: relative;
}

.roulette-marker {
  position: absolute;
  top: -16px;
  bottom: -16px;
  left: 50%;
  z-index: 3;
  width: 20px;
  margin-left: -10px;
  pointer-events: none;
}

.roulette-marker::before,
.roulette-marker::after {
  content: "";
  position: absolute;
  left: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

.roulette-marker::before {
  top: 0;
  border-top: 12px solid #fff;
}

.roulette-marker::after {
  bottom: 0;
  border-bottom: 12px solid #fff;
}

.stage__top > .faint {
  flex: none;
  white-space: nowrap;
}

.roulette-status {
  display: grid;
  justify-items: center;
  gap: 10px;
  position: relative;
  z-index: 3;
}

.roulette-status__text {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
}

.roulette-status__text.is-red {
  color: #ff5a64;
}

.roulette-status__text.is-green {
  color: var(--win);
}

.roulette-status__text.is-black {
  color: #d3d5da;
}

.roulette-status__bar {
  width: min(60%, 320px);
}

.roulette-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.roulette-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.3s, box-shadow 0.3s;
}

.roulette-col.is-winner {
  box-shadow: 0 0 0 2px var(--win);
}

.roulette-col.is-loser {
  opacity: 0.5;
}

.roulette-col__bet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 12px 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.12s, filter 0.15s;
}

.roulette-col--red .roulette-col__bet {
  background: linear-gradient(180deg, #ff3b47, #c20613);
  color: #fff;
}

.roulette-col--green .roulette-col__bet {
  background: linear-gradient(180deg, #3fe08a, #0f9a4f);
  color: #03140a;
}

.roulette-col--black .roulette-col__bet {
  background: linear-gradient(180deg, #3a3c46, #1e1f26);
  color: #fff;
}

.roulette-col__bet:not(:disabled):hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.roulette-col__bet:disabled {
  cursor: not-allowed;
  filter: saturate(0.6) brightness(0.8);
}

.roulette-col__multi {
  font-family: var(--mono);
  font-size: 13px;
  opacity: 0.9;
}

.roulette-col__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
}

.roulette-col__list {
  margin: 0;
  padding: 6px 0;
  list-style: none;
  max-height: 360px;
  overflow-y: auto;
}

.roulette-col__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 16px;
  font-size: 13px;
}

.roulette-col__list a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-2);
  font-weight: 600;
}

.roulette-col__list a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roulette-col__amount {
  flex: none;
}

.roulette-mine {
  display: grid;
  gap: 6px;
}

.roulette-mine__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg-raised);
  border-left: 3px solid;
  font-size: 13px;
  font-weight: 600;
}

.roulette-mine__row--red {
  border-left-color: #ff3b47;
}

.roulette-mine__row--green {
  border-left-color: #3fe08a;
}

.roulette-mine__row--black {
  border-left-color: #5b5e6b;
}

.range-input {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.risk-select,
.segment-select {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}

.play--plinko .stage__body,
.play--wheel .stage__body,
.play--keno .stage__body,
.play--diamonds .stage__body {
  padding: 22px 20px 26px;
}

.plinko {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.plinko__board {
  display: block;
  width: 100%;
}

.plinko__slots {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 4px;
}

.plinko__slot {
  flex: none;
  width: calc(var(--slot-w) - 3px);
  padding: 6px 0;
  margin: 0 1.5px;
  border-radius: 6px;
  background: var(--slot-color);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
  color: #1b0d05;
  font-family: var(--mono);
  font-size: min(10px, calc(var(--slot-w) * 0.27));
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}

.plinko__slot.is-hit {
  animation: slot-hit 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes slot-hit {
  0% {
    transform: translateY(0);
    filter: brightness(1);
  }
  35% {
    transform: translateY(6px);
    filter: brightness(1.45);
  }
  100% {
    transform: translateY(0);
    filter: brightness(1);
  }
}

.wheel {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.wheel__frame {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
}

.wheel__disc {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5));
}

.wheel__spin {
  transform-box: fill-box;
  transform-origin: center;
}

.wheel__spin path {
  stroke: rgba(10, 7, 8, 0.85);
  stroke-width: 0.8;
  transition: opacity 0.3s;
}

.wheel__spin path.is-dim {
  opacity: 0.28;
}

.wheel__ring {
  fill: #140d10;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 2;
}

.wheel__hub {
  position: absolute;
  inset: 32%;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #2a1c21, #120c0e);
  box-shadow: inset 0 -6px 14px rgba(0, 0, 0, 0.5);
  font-family: var(--mono);
  font-size: clamp(18px, 4.6vw, 26px);
  font-weight: 800;
}

.wheel__hub .win {
  color: var(--win);
}

.wheel__hub .loss {
  color: var(--text-3);
}

.wheel__pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 26px;
  height: 30px;
  margin-left: -13px;
  background: #fff;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}

.wheel__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.wheel__chip {
  display: grid;
  min-width: 74px;
  padding: 8px 12px;
  border-top: 3px solid var(--chip);
  border-radius: 10px;
  background: var(--bg-raised);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wheel__chip strong {
  font-family: var(--mono);
  font-size: 14px;
}

.wheel__chip span {
  color: var(--text-3);
  font-size: 11px;
}

.wheel__chip.is-hit {
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px var(--chip), 0 10px 22px -8px var(--chip);
}

.keno-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.keno {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

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

.keno__cell {
  aspect-ratio: 1;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #2f2530, #231a22);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.35);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.keno__cell:hover {
  transform: translateY(-2px);
  color: var(--text);
}

.keno__cell.is-picked {
  background: linear-gradient(180deg, #ff3b47, #b3000d);
  color: #fff;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.3), 0 6px 16px -6px var(--accent-glow);
}

.keno__cell.is-drawn.is-miss {
  background: linear-gradient(180deg, #4a4452, #353040);
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.keno.has-draw .keno__cell.is-picked:not(.is-hit) {
  opacity: 0.5;
}

.field.is-locked {
  opacity: 0.55;
}

.keno__cell.is-drawn.is-hit {
  background: linear-gradient(180deg, #3fe08a, #0f9a4f);
  color: #04160b;
  box-shadow: 0 0 0 2px rgba(63, 216, 127, 0.5), 0 8px 20px -6px rgba(63, 216, 127, 0.7);
  animation: tile-pop 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.keno__pays {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.keno__pay {
  display: grid;
  min-width: 58px;
  padding: 6px 8px;
  border-radius: 9px;
  background: var(--bg-raised);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.keno__pay strong {
  font-family: var(--mono);
  font-size: 12px;
}

.keno__pay span {
  color: var(--text-3);
  font-size: 10px;
}

.keno__pay.is-zero strong {
  color: var(--text-3);
}

.keno__pay.is-hit {
  transform: translateY(-3px);
  box-shadow: 0 0 0 2px var(--win);
}

.diamonds {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: 100%;
}

.diamonds__row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 76px));
  gap: 10px;
}

.gem-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 16px;
  background: linear-gradient(180deg, #2a1f26, #1b1418);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.35);
}

.gem-slot svg {
  width: 70%;
  height: 70%;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.4));
}

.gem-slot.is-shown svg {
  animation: tile-pop 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.gem-slot.is-match {
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.35), 0 0 22px rgba(255, 255, 255, 0.15);
}

.diamonds__hand {
  min-height: 24px;
  color: var(--text-2);
  font-size: 16px;
  font-weight: 800;
}

.diamonds__table {
  display: grid;
  gap: 5px;
  width: min(100%, 420px);
}

.diamonds__pay {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 9px;
  background: var(--bg-raised);
  font-size: 13px;
  transition: box-shadow 0.2s, background 0.2s;
}

.diamonds__pay strong {
  font-family: var(--mono);
}

.diamonds__pay.is-hit {
  background: rgba(63, 216, 127, 0.1);
  box-shadow: 0 0 0 1px rgba(63, 216, 127, 0.6);
}

.diamonds__dots {
  display: flex;
  gap: 4px;
}

.diamonds__dots i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  transform: rotate(45deg) scale(0.8);
}

.tower-levels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.tower-levels input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tower-levels label {
  display: grid;
  gap: 2px;
  padding: 9px 2px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-raised);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.tower-levels small {
  color: var(--text-3);
  font-size: 10px;
}

.tower-levels input:checked + label {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.tower-levels input:disabled + label {
  opacity: 0.5;
  cursor: not-allowed;
}

.tower-board {
  position: relative;
  flex: 1;
  padding: 18px 16px 22px;
  background:
    radial-gradient(520px 300px at 50% 100%, rgba(245, 180, 0, 0.1), transparent 70%),
    rgba(8, 5, 6, 0.5);
}

.tower-grid {
  display: grid;
  gap: 7px;
  width: min(100%, 480px);
  margin: 0 auto;
}

.tower-floor {
  display: grid;
  grid-template-columns: 1fr 92px;
  align-items: center;
  gap: 10px;
  padding: 5px;
  border-radius: 12px;
  transition: background 0.2s, box-shadow 0.2s;
}

.tower-floor.is-current {
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(229, 9, 20, 0.45);
}

.tower-floor.is-cleared .tower-floor__win {
  color: var(--win);
}

.tower-floor.is-locked {
  opacity: 0.35;
}

.tower-floor.is-pop {
  animation: floor-pop 0.35s ease-out;
}

.tower-floor__tiles {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 7px;
}

.tower-floor__win {
  display: flex;
  justify-content: flex-end;
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tower-tile {
  height: 38px;
  padding: 4px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, #2f2530, #231a22);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, opacity 0.2s;
}

.tower-tile:disabled {
  cursor: default;
}

.tower-floor.is-current .tower-tile:not(:disabled) {
  background: linear-gradient(180deg, #4a2a32, #33191f);
}

.tower-floor.is-current .tower-tile:not(:disabled):hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #5c2f38, #3d1d24);
}

.tower-tile svg {
  display: block;
  height: 100%;
  margin: 0 auto;
}

.tower-tile.is-safe {
  background: linear-gradient(180deg, #3a2f10, #2a220a);
  box-shadow: inset 0 0 0 1px rgba(245, 180, 0, 0.45);
}

.tower-tile.is-bad {
  background: linear-gradient(180deg, #3a1419, #2a0d11);
  box-shadow: inset 0 0 0 1px rgba(255, 84, 98, 0.35);
}

.tower-tile.is-boom {
  background: radial-gradient(circle, #ff7a3c, #c40d1d 75%);
  animation: tile-boom 0.4s ease-out;
}

.tower-tile.is-dim {
  opacity: 0.4;
}

.tower-tile.is-pending {
  animation: tile-wait 0.6s ease-in-out infinite alternate;
}

.tower-result,
.hilo-result {
  top: 50%;
  transform: translate(-50%, -50%);
  animation: result-in 0.35s cubic-bezier(0.2, 1.3, 0.4, 1);
}

.tower .chicken-result__title,
.hilo .chicken-result__title {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tower.is-shaking .tower-grid,
.hilo.is-shaking .hilo-row {
  animation: shake 0.45s;
}

@keyframes floor-pop {
  40% {
    transform: scale(1.02);
  }
}

.hilo-table {
  position: relative;
  flex: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
  padding: 26px 16px;
  background:
    radial-gradient(560px 300px at 50% 40%, rgba(31, 122, 76, 0.22), transparent 70%),
    rgba(8, 5, 6, 0.5);
}

.hilo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: min(100%, 560px);
}

.hilo-guess {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 16px 10px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s, filter 0.15s, opacity 0.2s;
}

.hilo-guess--hi {
  background: linear-gradient(180deg, #22c55e, #15803d);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25), 0 12px 24px -12px rgba(34, 197, 94, 0.8);
}

.hilo-guess--lo {
  background: linear-gradient(180deg, #ff3b47, #b3000d);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25), 0 12px 24px -12px var(--accent-glow);
}

.hilo-guess:not(:disabled):hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.hilo-guess:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.hilo-guess__icon {
  font-size: 18px;
  line-height: 1;
}

.hilo-guess__label {
  font-size: 14px;
}

.hilo-guess__odds {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
}

.play-card {
  position: relative;
  display: grid;
  place-items: center;
  width: 124px;
  height: 172px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #eef0f4);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  color: #1b1b22;
  transition: box-shadow 0.25s;
}

.play-card.is-red {
  color: #d7182a;
}

.play-card__back {
  position: absolute;
  inset: 8px;
  border-radius: 9px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, #e50914, #8a0610);
}

.play-card__corner {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 800;
}

.play-card__suit {
  font-size: 30px;
  line-height: 1;
  opacity: 0.9;
  transform: translateY(-18px);
}

.play-card__rank {
  position: absolute;
  bottom: 22px;
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}

.play-card.is-flip {
  animation: card-flip 0.4s ease-out;
}

.play-card.is-right {
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5), 0 0 0 3px var(--win), 0 0 26px rgba(63, 216, 127, 0.5);
}

.play-card.is-wrong {
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5), 0 0 0 3px var(--loss), 0 0 26px rgba(255, 84, 98, 0.5);
}

.hilo-trail .play-card--mini {
  width: 38px;
  height: 52px;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.play-card--mini .play-card__corner {
  top: 3px;
  left: 4px;
  font-size: 10px;
}

.play-card--mini .play-card__suit,
.play-card--mini .play-card__rank {
  display: none;
}

.play-card--mini.is-right {
  box-shadow: 0 0 0 2px var(--win);
}

.play-card--mini.is-wrong {
  box-shadow: 0 0 0 2px var(--loss);
}

.hilo-skip {
  min-width: 140px;
}

.hilo-trail {
  display: flex;
  gap: 6px;
  width: min(100%, 560px);
  min-height: 60px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hilo-trail::-webkit-scrollbar {
  display: none;
}

.hilo-trail__item {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
}

.hilo-trail__move {
  color: var(--text-3);
  font-size: 11px;
}

@keyframes card-flip {
  from {
    transform: rotateY(90deg) scale(0.95);
  }
  to {
    transform: rotateY(0) scale(1);
  }
}

.tile--plinko {
  background: linear-gradient(160deg, #ff5fa2 0%, #d61f69 55%, #5c0a2e 100%);
  box-shadow: 0 20px 40px -24px rgba(214, 31, 105, 0.9);
}

.tile--wheel {
  background: linear-gradient(160deg, #6d7cff 0%, #3a3fd6 55%, #151763 100%);
  box-shadow: 0 20px 40px -24px rgba(58, 63, 214, 0.9);
}

.tile--keno {
  background: linear-gradient(160deg, #2ee6c9 0%, #0e9e8a 55%, #053f38 100%);
  box-shadow: 0 20px 40px -24px rgba(14, 158, 138, 0.9);
}

.tile--diamonds {
  background: linear-gradient(160deg, #5ad7ff 0%, #1c8fd6 55%, #0a3566 100%);
  box-shadow: 0 20px 40px -24px rgba(28, 143, 214, 0.9);
}

.tile--tower {
  background: linear-gradient(160deg, #ffb45c 0%, #d9731a 55%, #5c2a05 100%);
  box-shadow: 0 20px 40px -24px rgba(217, 115, 26, 0.9);
}

.tile--hilo {
  background: linear-gradient(160deg, #3fcf7a 0%, #1b8a48 55%, #083d1f 100%);
  box-shadow: 0 20px 40px -24px rgba(27, 138, 72, 0.9);
}

.tiles--live {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 8px;
}

.tiles--live .tile {
  aspect-ratio: 4 / 3;
}

.tiles--live .tile .art {
  top: 4%;
  left: 22%;
  width: 56%;
}

.games-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 600;
}

.games-menu__caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s;
}

.games-menu[open] .games-menu__caret {
  transform: translateY(1px) rotate(-135deg);
}

.games-menu__panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  width: 380px;
  right: auto;
  left: 0;
}

.games-menu__item {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.games-menu__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}

.games-menu__item--arena .games-menu__dot { background: #ff4a52; }
.games-menu__item--crash .games-menu__dot { background: #ff8a4c; }
.games-menu__item--roulette .games-menu__dot { background: #3c3f4a; box-shadow: inset 0 0 0 2px #3fe08a; }
.games-menu__item--plinko .games-menu__dot { background: #ff5fa2; }
.games-menu__item--mines .games-menu__dot { background: #b86bff; }
.games-menu__item--chicken .games-menu__dot { background: #4cc9ff; }
.games-menu__item--tower .games-menu__dot { background: #ffb45c; }
.games-menu__item--hilo .games-menu__dot { background: #3fcf7a; }
.games-menu__item--keno .games-menu__dot { background: #2ee6c9; }
.games-menu__item--wheel .games-menu__dot { background: #6d7cff; }
.games-menu__item--diamonds .games-menu__dot { background: #5ad7ff; }
.games-menu__item--dice .games-menu__dot { background: #7c6dff; }
.games-menu__item--limbo .games-menu__dot { background: #ffc93c; }
.games-menu__item--coinflip .games-menu__dot { background: #2ee59d; }

.games-menu__tag {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ff8a93;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.games-menu__tag--live {
  background: rgba(63, 216, 127, 0.14);
  color: var(--win);
}

.games-menu__item[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--text);
}

@media (max-width: 1179px) {
  .chat {
    top: 0;
    z-index: 140;
    width: 100%;
    border-left: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .chat-open .shell {
    margin-right: 0;
  }

  .chat-open:not(.arena-playing) {
    overflow: hidden;
  }

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

@media (max-width: 900px) {
  :root {
    --topbar-h: 58px;
  }

  .topnav,
  .topbar .chat-toggle,
  .menu {
    display: none;
  }

  .topbar__inner {
    padding: 0 14px;
    gap: 12px;
  }

  .container {
    padding: 0 16px;
  }

  .main {
    padding-top: 18px;
  }

  body {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  }

  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding: 0 6px env(safe-area-inset-bottom);
    background: rgba(14, 9, 11, 0.96);
    border-top: 1px solid var(--line-strong);
    backdrop-filter: blur(10px);
  }

  .tabbar a,
  .tabbar button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    background: none;
    color: var(--text-2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .tabbar [aria-current="page"],
  .chat-open .tabbar [data-chat-toggle] {
    color: #fff;
  }

  .tabbar__main svg {
    width: 44px;
    height: 44px;
    padding: 9px;
    margin-top: -18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ff2b35, var(--accent) 60%, #b8060f);
    color: #fff;
    box-shadow: 0 10px 24px -8px var(--accent-glow), 0 0 0 4px var(--bg);
  }

  .tabbar__dot {
    top: 8px;
    right: calc(50% - 16px);
  }

  .chat {
    bottom: 0;
    height: auto;
  }

  body.chat-open:not(.arena-playing) .chat {
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  }

  .toasts {
    left: 16px;
    right: 16px;
    bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom));
  }

  .toast {
    max-width: none;
  }

  .arena-playing .tabbar {
    display: none;
  }

  .arena-board {
    width: 150px;
    padding: 10px 12px;
  }

  .arena-brand {
    font-size: 15px;
  }

  .arena-minimap {
    width: 86px;
    height: 86px;
  }

  .arena-value {
    gap: 8px;
    padding: 6px 12px;
    font-size: 13px;
  }

  .arena-cashout {
    min-width: 150px;
    height: 46px;
  }

  .arena-playing .chat {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 55vh;
    border-radius: 18px 18px 0 0;
  }
}

@media (max-width: 560px) {
  .keno__grid {
    gap: 5px;
  }

  .keno__cell {
    border-radius: 8px;
    font-size: 12px;
  }

  .tower-levels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tower-floor {
    grid-template-columns: 1fr 74px;
    gap: 6px;
  }

  .tower-tile {
    height: 32px;
  }

  .hilo-row {
    gap: 10px;
  }

  .play-card {
    width: 96px;
    height: 134px;
  }

  .play-card__rank {
    bottom: 16px;
    font-size: 40px;
  }

  .hilo-guess {
    padding: 12px 6px;
  }

  .hilo-guess__label {
    font-size: 12px;
  }

  .diamonds__row {
    gap: 6px;
  }

  .play--plinko .stage__body,
  .play--wheel .stage__body,
  .play--keno .stage__body,
  .play--diamonds .stage__body {
    padding: 16px 10px 18px;
  }

  .roulette-tile {
    width: 64px;
    height: 64px;
    font-size: 17px;
  }

  .roulette-columns {
    gap: 8px;
  }

  .roulette-col__bet {
    flex-direction: column;
    gap: 2px;
    margin: 8px 8px 0;
    padding: 10px 6px;
    font-size: 13px;
  }

  .roulette-col__total {
    flex-direction: column;
    gap: 2px;
    padding: 8px;
  }

  .roulette-col__list li {
    padding: 6px 8px;
    font-size: 12px;
  }

  .roulette-col__list .avatar {
    display: none;
  }

  .mines-grid {
    gap: 7px;
  }

  .mines-board {
    padding: 18px 12px 22px;
  }

  .crash-view {
    min-height: 280px;
  }

  .road {
    --lane-w: 92px;
    --road-h: 340px;
    --sprite: 80px;
    --side-w: 104px;
  }

  .road__lamp {
    left: 14px;
    height: 130px;
    top: calc(var(--mid) - 130px);
  }

  .road__bush {
    width: 44px;
    height: 30px;
  }

  .road__nest {
    left: 40px;
    width: 58px;
  }

  .road__track::before,
  .road__track::after {
    height: 50px;
  }

  .car {
    width: 38px;
    height: 69px;
    margin-left: -19px;
  }

  .car--truck {
    width: 42px;
    height: 98px;
    margin-left: -21px;
  }

  .car--sport {
    height: 66px;
  }

  .car--van {
    width: 40px;
    height: 83px;
    margin-left: -20px;
  }

  .car--bus {
    width: 44px;
    height: 144px;
    margin-left: -22px;
  }

  .lane__value {
    padding: 2px 5px;
    font-size: 11px;
  }

  .lane__value .lock__icon {
    width: 12px;
    height: 12px;
  }

  .lane__plate {
    --plate-size: 66px;
  }

  .lane__face {
    border-width: 3px;
  }

  .road-hud {
    top: 60px;
    gap: 2px;
    padding: 4px;
  }

  .road-hud__cell {
    min-width: 0;
    padding: 5px 8px;
  }

  .road-hud__cell strong {
    font-size: 12px;
  }

  .road-hud__cell span {
    font-size: 9px;
    letter-spacing: 0.03em;
  }

  .chicken-levels label {
    font-size: 12px;
  }

  .chicken-result {
    top: 54px;
    min-width: 0;
    width: calc(100% - 32px);
  }

  .conn__route {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .conn__leg {
    width: 2px;
    height: 34px;
    margin-left: 5px;
    background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px);
  }

  .conn__leg span {
    left: 16px;
    bottom: 50%;
    transform: translateY(50%);
  }

  .profile__hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .profile__actions {
    align-self: stretch;
  }

  .profile__actions .btn {
    flex: 1;
  }

  .profile-edit {
    grid-template-columns: 1fr;
  }

  .brand {
    font-size: 23px;
    gap: 7px;
  }

  .brand__mark {
    width: 25px;
    height: 25px;
  }

  .balance-pill__action {
    display: none;
  }

  .balance-pill__value {
    padding: 0 10px;
  }

  .topbar__right .btn {
    height: 38px;
    padding: 0 14px;
  }

  .auth h1 {
    font-size: 30px;
  }

  .page-head h1 {
    font-size: 28px;
  }

  .arena-board {
    display: none;
  }

  .arena-brand {
    display: none;
  }

  .arena-hint {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .topbar__right .btn--dark {
    display: none;
  }
}

@media (pointer: coarse) {
  .arena-boost {
    display: block;
  }

  .arena-hint__keys,
  .arena-hud--bl {
    display: none;
  }

  .arena-hint__touch {
    display: inline;
  }

  .arena-hud--bc {
    left: calc(20px + env(safe-area-inset-left));
    transform: none;
    align-items: flex-start;
  }
}

.tile--blackjack {
  background: linear-gradient(160deg, #ffd65c 0%, #c98b12 55%, #4f3104 100%);
  box-shadow: 0 20px 40px -24px rgba(201, 139, 18, 0.9);
}

.bj-table {
  --card-w: 84px;
  --card-h: 118px;
  position: relative;
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  align-items: center;
  min-height: 520px;
  padding: 22px 16px 28px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(52, 168, 110, 0.32), transparent 60%),
    radial-gradient(90% 60% at 50% 110%, rgba(4, 30, 19, 0.7), transparent 70%),
    linear-gradient(180deg, #10301f 0%, #0b2016 55%, #08170f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -40px 70px rgba(0, 0, 0, 0.35);
}

.bj-seat {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 34px;
  width: 100%;
  min-height: calc(var(--card-h) + 36px);
}

.bj-seat--dealer {
  align-items: flex-start;
}

.bj-seat--player {
  align-items: flex-end;
}

.bj-hand {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  transition: opacity 0.25s, filter 0.25s;
}

.bj-hand__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
}

.bj-hand__name {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bj-cards {
  display: flex;
  min-width: var(--card-w);
  min-height: var(--card-h);
  perspective: 800px;
}

.bj-cards > .bj-card + .bj-card {
  margin-left: calc(var(--card-w) * -0.6);
}

.bj-card {
  position: relative;
  flex: none;
  width: var(--card-w);
  height: var(--card-h);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #eceef3);
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.18), 0 10px 22px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  color: #1b1b22;
  user-select: none;
}

.bj-card.is-red {
  color: #d7182a;
}

.bj-card__corner {
  position: absolute;
  top: 6px;
  left: 7px;
  display: grid;
  justify-items: center;
  font-family: var(--mono);
  line-height: 1;
}

.bj-card__corner b {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.bj-card__corner i {
  margin-top: 2px;
  font-size: 13px;
  font-style: normal;
}

.bj-card__corner--tail {
  top: auto;
  left: auto;
  right: 7px;
  bottom: 6px;
  transform: rotate(180deg);
}

.bj-card__pip {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 38px;
  line-height: 1;
}

.bj-card__pip.is-face {
  inset: 22px 16px;
  border: 1.5px solid currentColor;
  border-radius: 6px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 900;
  opacity: 0.92;
}

.bj-card.is-down {
  background: #fdfbfb;
}

.bj-card__back {
  position: absolute;
  inset: 5px;
  border-radius: 7px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 6px, transparent 6px 12px),
    linear-gradient(180deg, #e50914, #8a0610);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.bj-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.bj-total[hidden] {
  display: none;
}

.bj-total.is-best {
  border-color: transparent;
  background: linear-gradient(180deg, #ffe07a, #d49a1c);
  color: #2a1a00;
}

.bj-total.is-bust {
  border-color: rgba(255, 84, 98, 0.55);
  background: rgba(255, 84, 98, 0.16);
  color: #ff8a94;
}

.bj-stake {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 12px;
  font-weight: 700;
}

.bj-stake:empty {
  display: none;
}

.bj-stake__x {
  color: #ffd65c;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.bj-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  animation: pop 0.25s ease-out;
}

.bj-tag[hidden] {
  display: none;
}

.bj-tag--win {
  background: var(--win);
  color: #04210f;
}

.bj-tag--blackjack {
  background: linear-gradient(180deg, #ffe07a, #e0a526);
  color: #2a1a00;
}

.bj-tag--push {
  background: #ece6e8;
  color: #1b1b22;
}

.bj-tag--lose,
.bj-tag--bust {
  background: var(--loss);
  color: #fff;
}

.bj-hand.is-lose .bj-cards,
.bj-hand.is-bust .bj-cards {
  opacity: 0.55;
  filter: saturate(0.6);
}

.bj-hand.is-win .bj-cards,
.bj-hand.is-blackjack .bj-cards {
  filter: drop-shadow(0 0 16px rgba(63, 216, 127, 0.35));
}

.bj-stage.is-playing .bj-seat--player.is-split .bj-hand:not(.is-active) {
  opacity: 0.5;
}

.bj-hand.is-active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -12px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.bj-shoe {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 50px;
  height: 70px;
}

.bj-shoe span {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: #fdfbfb;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.bj-shoe span::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 5px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 5px, transparent 5px 10px),
    linear-gradient(180deg, #e50914, #8a0610);
}

.bj-shoe span:nth-child(1) {
  transform: translate(-7px, 5px) rotate(-9deg);
}

.bj-shoe span:nth-child(2) {
  transform: translate(-3px, 2px) rotate(-4deg);
}

.bj-felt {
  width: min(100%, 600px);
  height: auto;
  overflow: visible;
  pointer-events: none;
}

.bj-felt__line {
  stroke: rgba(255, 214, 120, 0.26);
  stroke-width: 1.5;
}

.bj-felt__big {
  fill: rgba(255, 222, 150, 0.6);
  font-family: var(--font);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.bj-felt__small {
  fill: rgba(255, 255, 255, 0.4);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.bj-insure {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: min(92%, 380px);
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 214, 120, 0.35);
  border-radius: 16px;
  background: rgba(11, 7, 8, 0.94);
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
  animation: result-in 0.35s cubic-bezier(0.2, 1.3, 0.4, 1);
}

.bj-insure[hidden] {
  display: none;
}

.bj-insure__title {
  color: #ffd65c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bj-insure__text {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.45;
}

.bj-insure__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.bj-table .bj-result {
  top: 50%;
  width: auto;
  min-width: 220px;
  transform: translate(-50%, -50%);
  animation: result-in 0.35s cubic-bezier(0.2, 1.3, 0.4, 1);
}

.bj-table .bj-result {
  padding: 10px 20px 12px;
}

.bj-result .chicken-result__amount {
  margin-top: 2px;
  font-size: 24px;
}

.bj-result .chicken-result__amount .lock__icon {
  width: 22px;
  height: 22px;
}

.bj-result .chicken-result__text {
  margin-top: 2px;
  font-size: 12px;
}

.chip--push {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-2);
}

.bj-result .chicken-result__title {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chicken-result--push {
  border-color: rgba(255, 255, 255, 0.28);
}

.chicken-result--push .chicken-result__title,
.chicken-result--push .chicken-result__amount {
  color: var(--text);
}

.bj-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: rgba(8, 5, 6, 0.6);
}

.bj-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-raised);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.15s, background 0.15s, opacity 0.2s;
}

.bj-action svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bj-action--hit svg {
  color: var(--win);
}

.bj-action--stand svg {
  color: var(--loss);
}

.bj-action--double svg {
  color: #ffd65c;
}

.bj-action--split svg {
  color: #6fb6ff;
  stroke-width: 2;
}

.bj-action:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.26);
  background: #1c1316;
}

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

.bj-action:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.bj-stage.is-playing .road-dock {
  display: none;
}

.bj-rules__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
}

.bj-rules__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
}

@container main (max-width: 520px) {
  .bj-table {
    --card-w: 60px;
    --card-h: 84px;
    min-height: 420px;
    padding: 16px 10px 22px;
  }

  .bj-seat {
    gap: 18px;
  }

  .bj-card {
    border-radius: 8px;
  }

  .bj-card__corner {
    top: 4px;
    left: 5px;
  }

  .bj-card__corner--tail {
    right: 5px;
    bottom: 4px;
  }

  .bj-card__corner b {
    font-size: 13px;
  }

  .bj-card__corner i {
    font-size: 10px;
  }

  .bj-card__pip {
    font-size: 26px;
  }

  .bj-card__pip.is-face {
    inset: 17px 12px;
    font-size: 24px;
  }

  .bj-shoe {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 50px;
  }

  .bj-felt__small {
    display: none;
  }

  .bj-felt__big {
    font-size: 26px;
  }

  .bj-actions {
    gap: 6px;
    padding: 10px;
  }

  .bj-action {
    flex-direction: column;
    gap: 3px;
    min-height: 52px;
    padding: 0 4px;
    font-size: 12px;
  }

  .bj-action svg {
    width: 16px;
    height: 16px;
  }

  .bj-total,
  .bj-stake {
    height: 22px;
    font-size: 11px;
  }
}

.bj-seat--player:empty::before {
  content: "Place a bet to deal";
  align-self: center;
  color: rgba(255, 255, 255, 0.34);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head .pill-link {
  flex: none;
  white-space: nowrap;
}

@container main (max-width: 760px) {
  .tiles--live {
    grid-template-columns: none;
    grid-auto-columns: 64%;
  }
}

@container main (max-width: 520px) {
  .bj-stage .stage__top > .faint {
    display: none;
  }
}

@container main (max-width: 480px) {
  .section-head h2 {
    font-size: 20px;
  }
}

.stage__top > .stage__recent {
  flex: 1 1 auto;
  min-width: 0;
}

.sound-toggle {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.sound-toggle:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.sound-toggle.is-off {
  color: var(--text-3);
}

.sound-toggle svg {
  width: 16px;
  height: 16px;
}

.arena-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arena-tools .sound-toggle {
  pointer-events: auto;
  width: 34px;
  height: 34px;
  border-color: var(--line-strong);
  border-radius: 10px;
  background: rgba(14, 4, 6, 0.75);
  color: var(--text);
}

.sound-control {
  position: relative;
  flex: none;
  display: inline-flex;
}

.sound-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: 240px;
  padding: 12px 12px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #140d10;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  animation: sound-menu-in 0.14s ease-out;
}

.sound-menu[hidden] {
  display: none;
}

.sound-control--left .sound-menu {
  left: 0;
  right: auto;
}

.sound-menu__title {
  margin-bottom: 4px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sound-menu__row {
  display: grid;
  grid-template-columns: 30px 58px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.sound-menu__mute {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  pointer-events: auto;
}

.sound-menu__mute:hover {
  border-color: var(--line-strong);
}

.sound-menu__mute.is-off {
  color: var(--text-3);
}

.sound-menu__mute svg {
  width: 16px;
  height: 16px;
}

.sound-menu__label {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
}

.sound-menu__range {
  --fill: 50%;
  width: 100%;
  height: 20px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
}

.sound-menu__range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent) var(--fill), rgba(255, 255, 255, 0.12) var(--fill));
}

.sound-menu__range::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  -webkit-appearance: none;
}

.sound-menu__range::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}

.sound-menu__range::-moz-range-progress {
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
}

.sound-menu__range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.sound-menu__range:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

@keyframes sound-menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}

.menu__panel .menu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu summary {
  position: relative;
}

.menu__dot {
  position: absolute;
  top: 6px;
  left: 26px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
}

.stat__sub {
  margin-left: 6px;
  font-size: 13px;
}

.btn.is-static {
  cursor: default;
  pointer-events: none;
}

.profile__actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.profile__actions form {
  display: contents;
}

.btn svg {
  flex: none;
}

.friends {
  display: grid;
  gap: 14px;
  max-width: 860px;
}

.friends .section-title {
  margin-top: 8px;
}

.friends-add__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.people {
  margin: 0;
  padding: 4px 0;
  list-style: none;
}

.people__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}

.people__row:first-child {
  border-top: 0;
}

.people__who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.people__name {
  overflow: hidden;
  color: var(--tint);
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.people__meta {
  font-size: 13px;
}

.people__actions {
  display: flex;
  gap: 6px;
}

.people__count {
  margin-left: 6px;
  font-size: 15px;
  font-weight: 700;
}

.pcard {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 16px;
}

.pcard[hidden] {
  display: none;
}

.pcard__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 2, 3, 0.62);
  backdrop-filter: blur(3px);
  animation: pcard-fade 0.16s ease-out;
}

.pcard__panel {
  position: relative;
  width: min(100%, 420px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  outline: none;
  animation: pcard-in 0.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.pcard__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-2);
  cursor: pointer;
}

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

.pcard__content {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.pcard__hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -20px -20px 0;
  padding: 22px 56px 18px 20px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--tint, var(--accent)) 18%, transparent), transparent 65%);
}

.pcard__who {
  min-width: 0;
}

.pcard__name {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pcard__name .tag {
  font-family: var(--font);
}

.pcard__meta {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 13px;
}

.pcard__bio {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  overflow-wrap: anywhere;
}

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

.pcard__stat {
  min-width: 0;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.pcard__stats.is-loading .pcard__stat {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  background-size: 200% 100%;
  animation: pcard-shimmer 1.1s linear infinite;
}

.pcard__stat-label {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pcard__stat-value {
  margin-top: 5px;
  overflow: hidden;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pcard__sub {
  margin-left: 5px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 700;
}

.pcard__private {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--text-2);
  font-size: 14px;
  text-align: center;
}

.pcard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pcard__actions .btn {
  flex: 1 1 auto;
  justify-content: center;
}

.pcard__ghost {
  background: rgba(255, 255, 255, 0.06);
}

.pcard-open {
  overflow: hidden;
}

@keyframes pcard-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

@keyframes pcard-fade {
  from {
    opacity: 0;
  }
}

@keyframes pcard-shimmer {
  to {
    background-position: -200% 0;
  }
}

@container main (max-width: 560px) {
  .people__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .people__meta {
    display: none;
  }
}

@media (max-width: 560px) {
  .pcard {
    place-items: end stretch;
    padding: 0;
  }

  .pcard__panel {
    width: 100%;
    max-height: 88dvh;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    animation: pcard-sheet 0.24s cubic-bezier(0.2, 1, 0.3, 1);
  }

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

  .profile__hero {
    flex-wrap: wrap;
  }

  .profile__actions {
    justify-content: flex-start;
    width: 100%;
  }
}

@keyframes pcard-sheet {
  from {
    transform: translateY(100%);
  }
}
