@font-face {
  font-family: Geist;
  src: url("assets/font.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Royal;
  src: url("assets/display.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --header: 72px;
  --chat: 248px;
  --purple: #b15bef;
  --line: #ffffff10;
  --panel: #0a080ff5;
  --muted: #8e869e;
  --green: #64dfad;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #080710;
  color: #f5f1fa;
  font:
    12px Geist,
    Arial,
    sans-serif;
}
body:before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: var(--header) 0 0 var(--chat);
  background:
    linear-gradient(#04070c1f, #04070c61 58%, #05070bad),
    url("assets/background.webp") center top/cover no-repeat;
}
button,
input,
select {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #18151f;
  border-radius: 6px;
  transition:
    background 0.12s,
    box-shadow 0.12s,
    transform 0.12s;
}
button:hover:not(:disabled) {
  background: #282131;
  border-color: #b56df54d;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid #d0a4ff;
  outline-offset: 3px;
}
input,
select {
  min-width: 0;
  color: #eee6f9;
  background: #0c0912;
  border: 1px solid #44304e;
  border-radius: 6px;
  height: 38px;
  padding: 0 10px;
  outline: none;
  width: 100%;
}
input:focus,
select:focus {
  border-color: #b66cef;
}
input[type="number"] {
  appearance: textfield;
}
input::-webkit-inner-spin-button {
  appearance: none;
}
button.primary {
  background: linear-gradient(180deg, #ad4add, #7925b2);
  border: 1px solid #c779ef66;
  box-shadow:
    inset 0 1px #ffffff25,
    0 3px 18px #9024c718;
  font-weight: 700;
  min-height: 42px;
  padding: 0 24px;
}
button.primary:hover:not(:disabled) {
  background: linear-gradient(#bd61ed, #9131ca);
  box-shadow: 0 0 22px #9930d933;
}
.win {
  color: var(--green) !important;
}
.loss {
  color: #ea7696 !important;
}
.muted {
  color: var(--muted);
}
.online-dot {
  width: 5px;
  height: 5px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px #66dfaf33;
  flex-shrink: 0;
}
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header);
  z-index: 20;
  background: #08090dfc;
  border-bottom: 1px solid #36303d;
  display: flex;
  align-items: center;
  gap: 27px;
  padding: 0 24px;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(var(--chat) - 48px);
  color: white;
  flex-shrink: 0;
  font:
    800 23px Royal,
    Arial,
    sans-serif;
}
.brand > img {
  width: 26px;
  height: 38px;
  object-fit: contain;
}
.brand > span > span {
  color: #b66eef;
}
.header-games {
  font: 800 14px Royal;
  border: 0;
  background: none;
  padding: 12px 0;
}
.header-games span {
  font: 12px Geist;
  margin-left: 6px;
  color: #b9b0c4;
}
.demo-badge {
  padding: 9px 16px;
  background: linear-gradient(130deg, #ad48dd, #6d299b);
  border: 1px solid #b063da66;
  box-shadow: 0 0 18px #b052e02b;
  border-radius: 7px;
  font-weight: 800;
  letter-spacing: 0.4px;
  font-size: 10px;
  text-align: center;
}
.demo-badge span {
  display: block;
  font-size: 9px;
  font-weight: 400;
  margin-top: 2px;
  letter-spacing: 0;
}
.wallet {
  margin-left: auto;
  display: grid;
  grid-template-columns: auto 17px;
  gap: 1px 9px;
  align-items: center;
  text-align: right;
}
.wallet small {
  grid-column: 1;
  font-size: 8px;
  color: #8c8198;
  letter-spacing: 1px;
}
.wallet b {
  grid-column: 1;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.wallet img {
  grid-column: 2;
  grid-row: 1/3;
  width: 17px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  background: #0d0d14;
  min-width: 115px;
  font-size: 11px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #71469c, #22162e);
  border: 1px solid #c297ee3b;
  border-radius: 5px;
  color: #e6c3ff;
  font-size: 12px;
  font-weight: 700;
}
.chat-panel {
  position: fixed;
  top: var(--header);
  bottom: 0;
  left: 0;
  width: var(--chat);
  background: #090b0efc;
  border-right: 1px solid #38303f;
  display: flex;
  flex-direction: column;
  z-index: 15;
  padding: 0 9px;
}
.chat-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #c5b4d4;
  font: 800 12px Royal;
  letter-spacing: 0.8px;
  height: 44px;
}
.chat-title button {
  margin-left: auto;
  background: transparent;
  border: 0;
  font-size: 25px;
  color: #a588c3;
}
.local-note {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #38273f;
  background: linear-gradient(130deg, #24132d77, #100d16);
  padding: 14px 9px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 3px #ffffff03;
}
.local-note img {
  width: 25px;
  height: 34px;
  object-fit: contain;
}
.local-note b {
  display: block;
  font-size: 11px;
}
.local-note small {
  display: block;
  color: #9b8aa8;
  font-size: 9px;
  margin-top: 4px;
}
#chat {
  flex: 1;
  overflow: auto;
  padding: 18px 2px;
  scrollbar-width: thin;
}
.chat-empty {
  text-align: center;
  color: #c1b0cf;
  font-size: 11px;
  padding: 32px 12px;
}
.chat-empty small {
  display: block;
  font-size: 10px;
  line-height: 1.9;
  color: #6f6979;
  margin-top: 10px;
}
.chat-message {
  display: flex;
  gap: 9px;
  margin-bottom: 23px;
}
.chat-message b {
  font-size: 10px;
  color: #d9b6e7;
}
.chat-message p {
  margin: 7px 0 0;
  font-size: 11px;
  line-height: 1.65;
  color: #e1dce5;
  overflow-wrap: anywhere;
}
#chatForm {
  display: flex;
  padding: 5px;
  border: 1px solid #372b41;
  border-radius: 7px;
  background: #121017;
  gap: 5px;
}
#chatForm input {
  border: 0;
  background: none;
  height: 36px;
  font-size: 10px;
  padding: 5px;
  flex: 1;
}
#chatForm button {
  width: 30px;
  background: #6e3b90;
  color: #eed7ff;
}
.chat-bottom {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  color: #8b8196;
  letter-spacing: 0.5px;
}
#showChat {
  display: none;
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 20;
  padding: 8px;
  color: #c491ef;
}
.chat-collapsed {
  --chat: 0px;
}
.chat-collapsed .chat-panel {
  display: none;
}
.chat-collapsed .brand {
  width: 190px;
}
.chat-collapsed #showChat {
  display: block;
}
main {
  margin: var(--header) 0 0 var(--chat);
  padding: 16px 28px 24px;
  min-height: calc(100vh - var(--header));
}
#nav {
  max-width: 1000px;
  margin: 0 auto 12px;
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 4px;
  background: #0b0812ba;
  border: 1px solid #c69aed1c;
  backdrop-filter: blur(16px);
  border-radius: 7px;
  width: fit-content;
}
#nav button {
  background: none;
  border: 0;
  padding: 9px 21px;
  font: 800 14px Royal;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #cabed5;
}
#nav button.active {
  color: white;
  background: #9250bd35;
  box-shadow: inset 0 -2px #bc71ee;
  border-radius: 4px;
}
#game {
  max-width: 1000px;
  margin: 0 auto;
}
.game-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  padding: 0 22px;
  border-bottom: 1px solid #e1e7f121;
  background: linear-gradient(90deg, #07090ee0, #090b11ad);
  gap: 12px;
}
.game-heading h1 {
  font: 800 30px Royal;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 2px 15px #000;
}
.game-heading button {
  padding: 10px 20px;
}
.game-panel {
  background: linear-gradient(120deg, #0d0a13f5, #100b1ae8);
  border: 1px solid #c6a0ec24;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 60px #0006;
}
#arena {
  position: relative;
}
#arena > .win-popup {
  width: min(400px, calc(100% - 32px));
}
.tower-row button.pending {
  transform: scale(0.95);
  filter: brightness(1.4);
}
.tower-row button {
  transition:
    background 0.16s,
    transform 0.16s,
    box-shadow 0.16s;
  touch-action: manipulation;
}
.plinko-payout {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.payout-neutral {
  color: #9e99a8;
}
.payout-standard {
  color: #66dfb0;
  text-shadow: 0 0 12px #66dfb040;
}
.payout-epic {
  color: #ce9aff;
  text-shadow: 0 0 18px #ce9aff80;
}
.payout-legendary {
  color: #ffda83;
  text-shadow: 0 0 22px #ffda8390;
}
.controls {
  padding: 20px 24px;
  border-top: 1px solid #ffffff0d;
  background: #0c0911b8;
}
.control-row {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  flex: 1;
}
.field > span,
.chance > span {
  font-size: 10px;
  color: #afa2be;
  font-weight: 600;
}
.wager-field {
  flex: 1.6;
  min-width: 220px;
}
.wager-input {
  display: flex;
  height: 42px;
  border: 1px solid #44304e;
  border-radius: 6px;
  background: #09070e;
  overflow: hidden;
}
.wager-input input {
  border: 0;
  background: none;
  height: 40px;
  flex: 1;
  width: 90px;
  font-weight: 600;
}
.wager-input button {
  border: 0;
  border-left: 1px solid #ffffff0b;
  border-radius: 0;
  padding: 0 10px;
  font-size: 10px;
  background: none;
}
.field > input,
.field > select {
  height: 42px;
}
.control-row > .primary {
  min-width: 150px;
  flex: 1;
  max-width: 220px;
}
.chance {
  align-self: flex-end;
  min-width: 105px;
  padding: 0 10px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chance strong {
  font-size: 21px;
  font-weight: 500;
  color: #e0d5e8;
}
.chance small {
  font-size: 13px;
  margin-left: 3px;
  color: #8e819a;
}
.mode-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.mode-controls .mode-tabs {
  margin-bottom: 0;
}
#turbo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 4px;
  border: 0;
  background: transparent;
  color: #b9a9c5;
  font-size: 11px;
}
.turbo-check {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid #675273;
  border-radius: 4px;
  color: transparent;
  transition:
    background 140ms,
    border-color 140ms;
}
#turbo[aria-pressed="true"] .turbo-check {
  color: white;
  background: #8d42be;
  border-color: #c17ce9;
}
.room-row .battle-status {
  flex-shrink: 0;
  border: 1px solid #af76d44a;
  border-radius: 5px;
  padding: 5px 8px;
  color: #d9a7fc;
  background: #8c42bc20;
  font-size: 10px;
}
.tower-row.current button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px #b15feb26;
}
.mode-tabs {
  display: flex;
  width: fit-content;
  gap: 3px;
  margin-bottom: 18px;
  padding: 3px;
  background: #07060c;
  border-radius: 6px;
}
.mode-tabs button {
  background: none;
  border: 0;
  padding: 7px 20px;
  font-size: 11px;
  color: #a697b3;
}
.mode-tabs button[aria-pressed="true"] {
  background: #392047;
  color: #f1d4ff;
}
.auto-fields {
  display: flex;
  gap: 15px;
  margin-bottom: 18px;
  max-width: 180px;
}
[hidden] {
  display: none !important;
}
.segmented {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid #42314e;
  border-radius: 6px;
  height: 42px;
  background: #09070e;
}
.segmented button {
  background: none;
  border: 0;
  flex: 1;
  padding: 0 11px;
  white-space: nowrap;
  font-size: 11px;
}
.segmented button[aria-pressed="true"] {
  background: #6d3797;
  color: white;
  box-shadow: inset 0 1px #ffffff18;
}
.limbo-stage {
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #a04de515, transparent 60%);
}
#limboValue {
  font: 800 clamp(48px, 7vw, 96px) / 1 Royal;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
  text-shadow: 0 0 50px #bc68e22b;
}
#limboValue.is-rolling {
  animation: limboCharge 700ms ease-in-out infinite alternate;
}
@keyframes limboCharge {
  from { filter: brightness(1); text-shadow: 0 0 24px #bc68e22b; }
  to { filter: brightness(1.2); text-shadow: 0 0 55px #bc68e288; }
}
@media (prefers-reduced-motion: reduce) {
  #limboValue.is-rolling { animation: none; }
}
#limboValue.loss,
#limboValue.loss > span,
.result.loss {
  color: #f07889;
}
#limboValue > span {
  color: #c480f2;
  font-size: 0.65em;
  margin-left: 5px;
}
.result {
  height: 27px;
  line-height: 27px;
  text-align: center;
  color: #b3a2c2;
  font-size: 12px;
  margin-top: 12px;
  font-weight: 600;
}
.celebrate {
  animation: winPulse 1s ease-out 2;
}
@keyframes winPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  35% {
    filter: brightness(1.6);
    text-shadow: 0 0 20px #75ffb899;
  }
}
.history-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 24px;
  min-height: 47px;
  overflow: hidden;
  border-top: 1px solid #ffffff09;
}
.history-strip span {
  flex: none;
  border-radius: 4px;
  padding: 5px 10px;
  background: #ffffff06;
  font-size: 10px;
  color: #b09abe;
}
.history-strip .win {
  background: #5ec69313;
}
.tower-stage {
  padding: 22px 36px 12px;
  max-width: 700px;
  margin: auto;
}
#towerGrid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.tower-row {
  display: flex;
  align-items: center;
  gap: 15px;
}
.tower-row > span {
  width: 66px;
  text-align: right;
  color: #776586;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.tower-row > div {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(var(--columns), 1fr);
  gap: 8px;
}
.tower-row button {
  height: 39px;
  position: relative;
  background: #20132d;
  border: 1px solid #493158;
  color: #e5bfff;
  font-size: 19px;
  opacity: 1;
}
.tower-row button i {
  width: 6px;
  height: 6px;
  display: block;
  background: #69407e;
  transform: rotate(45deg);
  margin: auto;
}
.tower-row.current button {
  background: linear-gradient(#54286b, #391c4d);
  border-color: #9b56bb;
  box-shadow: inset 0 1px #ffffff12;
}
.tower-row.current > span {
  color: #dbc0ec;
}
.tower-row button.safe {
  background: #143b32;
  color: #77ebbb;
  border-color: #386857;
}
.tower-row button.trap {
  background: #3d1a31;
  color: #e47f9e;
  border-color: #65314b;
}
.tower-row button.chosen {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}
.plinko-stage {
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 12px 10px;
}
#board {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
#pegs circle {
  fill: #c1acd2;
  filter: drop-shadow(0 0 2px #b590c777);
}
#balls circle {
  filter: drop-shadow(0 0 5px #ffa92977);
}
#slots {
  display: grid;
  grid-template-columns: repeat(var(--slots), 1fr);
  gap: 2px;
  margin: -4.6% auto 0;
  position: relative;
}
#slots > div {
  min-width: 0;
  height: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: color-mix(in srgb, #b63663 calc(var(--heat) * 100%), #d29a36);
  color: #190d15;
  text-align: center;
  font-size: clamp(7px, 0.75vw, 10px);
  font-weight: 800;
  box-shadow: 0 3px 0 #0005;
}
#slots small {
  font-size: 7px;
  line-height: 1;
}
.rooms {
  padding: 0 24px 24px;
}
.room-category h2 {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  margin: 24px 0 12px;
  color: #cdbadf;
}
.room-category h2 > span {
  font-size: 10px;
  color: #8e77a2;
  font-weight: 400;
}
.room-row {
  display: flex;
  gap: 20px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  border: 1px solid #ffffff0c;
  background: #ffffff03;
  border-radius: 7px;
  margin-bottom: 7px;
}
.room-players {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.room-players b {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.room-row > strong {
  min-width: 56px;
  text-align: right;
  font-size: 12px;
}
.room-row > button {
  padding: 9px 15px;
  min-width: 103px;
  font-size: 10px;
}
.versus {
  color: #655372;
  font-size: 10px;
}
.empty {
  padding: 20px;
  color: #766782;
  text-align: center;
  font-size: 11px;
}
.bot-label {
  font-size: 8px;
  border: 1px solid #81624766;
  background: #8764481f;
  color: #d2b891;
  padding: 2px 4px;
  border-radius: 3px;
}
.mini-coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 0;
  flex-shrink: 0;
  border: 0;
}
.heads {
  background: url("assets/coin-heads.svg") center / contain no-repeat;
}
.tails {
  background: url("assets/coin-tails.svg") center / contain no-repeat;
}
.coin-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 55px;
  padding: 55px 0;
}
.coin-preview .coin-face {
  cursor: pointer;
  opacity: 0.85;
  transition:
    transform 140ms ease,
    opacity 140ms ease,
    box-shadow 140ms ease;
}
.coin-preview .coin-face[aria-pressed="true"] {
  opacity: 1;
  outline: 3px solid #ead0ff;
  outline-offset: 7px;
}
.coin-preview .coin-face:hover:not(:disabled) {
  opacity: 1;
  transform: translateY(-4px);
}
.coin-preview .coin-face:active:not(:disabled) {
  transform: scale(0.96);
}
.coin-preview .coin-face:focus-visible,
#turbo:focus-visible {
  outline: 3px solid white;
  outline-offset: 7px;
}
#turbo[aria-pressed="true"] {
  color: #f1d4ff;
}
.player-head {
  flex: 0 0 28px;
  border-radius: 4px;
  image-rendering: pixelated;
  background: #261a34;
}
.player-identity {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.round-player > div {
  align-items: center;
}
.round-player > div > b {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.coin-face {
  width: 166px;
  height: 166px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  box-shadow: 0 8px 20px #0005;
  font-size: 0;
}
.coin-create {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.coin-create > .wager-field {
  grid-column: 1/-1;
}
.coin-create > .field {
  grid-column: 1/-1;
}
.coin-create > .primary {
  grid-column: 1/-1;
}
.coin-create .segmented {
  height: 70px;
  gap: 10px;
  border: 0;
  background: none;
  padding: 0;
}
.coin-create .segmented button {
  border: 1px solid #684774;
  background: #1b1323;
  font: 800 28px Royal;
}
.coin-create .segmented button small {
  font: 600 11px Geist;
  margin-left: 10px;
}
.coin-create .segmented button[data-value="heads"][aria-pressed="true"] {
  border-color: #d4aa5f;
  background: #614821;
}
.coin-create .segmented button[data-value="tails"][aria-pressed="true"] {
  border-color: #b591de;
  background: #553573;
}
.battle-players {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 35px 20px 0;
}
.battle-players > div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 230px;
  border-radius: 9px;
  padding: 12px;
}
.battle-players > div > span:last-child {
  width: 100%;
  text-align: center;
  color: #ae97bd;
  font-size: 11px;
}
.battle-players .winner {
  background: #55c59312;
  box-shadow: 0 0 20px #55c59315;
}
.battle-players b {
  font-size: 12px;
}
.coin-stage {
  height: 350px;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.coin-stage::before {
  content: "";
  position: absolute;
  top: calc(50% + 7px);
  width: 280px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    #b89bc326,
    #75608018 58%,
    transparent 72%
  );
  border-bottom: 1px solid #ba99cd28;
}
.coin3d {
  width: 180px;
  height: 180px;
  transform-style: preserve-3d;
  position: relative;
  z-index: 1;
  will-change: transform;
}
.coin3d .coin-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-shadow: none;
  backface-visibility: hidden;
}
.coin3d .heads {
  transform: translateZ(6px);
}
.coin3d .tails {
  transform: rotateX(180deg) translateZ(6px);
}
.coin-edge {
  position: absolute;
  left: calc(50% - 4.6px);
  top: calc(50% - 6px);
  width: 9.2px;
  height: 12px;
  background:
    repeating-linear-gradient(
      90deg,
      #fff1b666 0 1px,
      #4c290a55 1px 2px,
      transparent 2px 3px
    ),
    linear-gradient(#fff1a8, #bc7e26 28%, #e8bb65 55%, #73420f 80%, #ffe4a0);
  transform: rotateZ(var(--angle)) translateY(-89.8px) rotateX(90deg);
  filter: brightness(var(--light));
}
.coin3d .coin-face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    var(--light-angle, 125deg),
    #fff4cd22,
    transparent 40%,
    #0002 72%,
    #fff4cd16
  );
  opacity: var(--shine, 0.65);
}
.coin-shadow {
  position: absolute;
  top: calc(50% + 17px);
  width: 176px;
  height: 90px;
  background: #000b;
  filter: blur(3px);
  border-radius: 50%;
}
.battle-status {
  text-align: center;
  min-height: 25px;
  font-size: 13px;
  color: #a997b6;
}
.battle-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 22px;
}
.battle-actions > button {
  padding: 10px 25px;
}
#roundClock {
  text-align: right;
  color: #d4b8e9;
}
#roundClock small {
  display: block;
  font-size: 8px;
  letter-spacing: 1px;
  margin-bottom: 4px;
  color: #ac91ba;
}
#roundClock b {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.baccarat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 235px;
}
.baccarat-main {
  min-width: 0;
}
.baccarat-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 230px;
  padding: 26px 20px 10px;
  gap: 14px;
  background: radial-gradient(ellipse at center, #22424820, transparent 75%);
}
.hand {
  min-width: 0;
}
.hand header {
  text-align: center;
  letter-spacing: 2px;
  font: 800 15px Royal;
  color: #8bb9ff;
}
.hand header > b {
  display: inline-block;
  margin-left: 10px;
  min-width: 20px;
  font: 600 18px Geist;
}
.banker-hand header {
  color: #f18caa;
}
.cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 140px;
  position: relative;
}
.card {
  position: relative;
  flex: none;
  width: 57px;
  height: 82px;
  border-radius: 5px;
  background: #f5f0e9;
  color: #242237;
  box-shadow: 0 3px 9px #0006;
  animation: dealCard 0.35s ease-out;
  font-family: Georgia, serif;
}
.card.red {
  color: #bd2846;
}
.card > span {
  position: absolute;
  left: 5px;
  top: 4px;
  font-size: 15px;
  line-height: 14px;
}
.card small {
  display: block;
  font-size: 12px;
}
.card > span:last-child {
  inset: auto 5px 4px auto;
  transform: rotate(180deg);
}
.card > b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 27px;
}
.card.third {
  transform: rotate(90deg);
  margin: 0 14px;
  animation: dealThird 0.4s ease-out;
}
@keyframes dealCard {
  from {
    opacity: 0;
    transform: translateY(-20px) rotateY(80deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes dealThird {
  from {
    opacity: 0;
    transform: translateY(-15px) rotate(90deg) rotateY(80deg);
  }
  to {
    opacity: 1;
    transform: rotate(90deg);
  }
}
.baccarat-table > .result {
  grid-column: 1/-1;
  margin: 0;
  height: 25px;
  line-height: 25px;
}
.betting-table {
  display: grid;
  grid-template-columns: 1fr 0.75fr 1fr;
  gap: 6px;
  padding: 0 20px 14px;
}
.bet-zone {
  height: 96px;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid;
}
.bet-zone b {
  font: 800 23px Royal;
  letter-spacing: 1px;
}
.bet-zone span {
  font-size: 9px;
  opacity: 0.7;
}
.bet-zone strong {
  font-size: 11px;
  margin-top: 3px;
}
.player-zone {
  background: #163966 !important;
  border-color: #4579ba !important;
  color: #c2ddff;
}
.banker-zone {
  background: #54213a !important;
  border-color: #a74a66 !important;
  color: #ffc6d5;
}
.tie-zone {
  background: #183e34 !important;
  border-color: #438569 !important;
  color: #b4ebce;
}
.bet-zone:disabled {
  opacity: 0.8;
  cursor: default;
}
.winning-zone {
  box-shadow:
    inset 0 0 25px #ffffff20,
    0 0 15px #ffffff18;
  animation: winPulse 1s ease-out 2;
}
.round-sidebar {
  border-left: 1px solid #ffffff0b;
  background: #09070d55;
  min-width: 0;
}
.round-sidebar > header {
  padding: 19px 16px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #b099c2;
  display: flex;
  justify-content: space-between;
}
#roundBets {
  max-height: 520px;
  overflow: auto;
  scrollbar-width: thin;
}
.round-player {
  padding: 14px 15px;
  border-top: 1px solid #ffffff08;
}
.round-player.you {
  background: #a457d109;
}
.round-player > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
}
.round-player b {
  overflow-wrap: anywhere;
}
.round-player strong {
  color: #dac3e9;
  font-size: 10px;
  white-space: nowrap;
}
.round-player p {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 0;
  font-size: 9px;
}
.player-text {
  color: #7caeee;
}
.banker-text {
  color: #e48ca9;
}
.tie-text {
  color: #7bbea0;
}
.payout {
  display: block;
  margin-top: 8px;
  color: #97889f;
  font-size: 10px;
}
.roads {
  padding: 0 20px 18px;
}
.road-heading {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1px;
  color: #8e7c9e;
  margin: 10px 0 6px;
}
.big-road {
  overflow-x: auto;
  scrollbar-width: thin;
  border: 1px solid #b18dd329;
  border-radius: 5px;
  background: #100c18;
}
.road-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), 20px);
  grid-template-rows: repeat(6, 20px);
  min-width: calc(var(--cols) * 20px);
  width: 100%;
  background:
    linear-gradient(to right, #b0a9b519 1px, transparent 1px),
    linear-gradient(to bottom, #b0a9b519 1px, transparent 1px);
  background-size: 20px 20px;
}
.road-mark {
  width: 14px;
  height: 14px;
  margin: 3px auto;
  border: 2px solid;
  border-radius: 50%;
  position: relative;
}
.road-mark.player {
  border-color: #70afff;
}
.road-mark.banker {
  border-color: #f17e9b;
}
.road-mark.tie {
  border-color: transparent;
}
.road-mark i {
  position: absolute;
  background: #6bdca2;
  width: 18px;
  height: 2px;
  transform: rotate(-45deg);
  left: -4px;
  top: 4px;
}
.road-mark small {
  font: 700 8px Arial;
  position: absolute;
  color: #a3efc5;
  inset: 0;
  text-align: center;
}
.baccarat-controls {
  padding: 0 20px 12px;
  gap: 12px;
}
.secondary {
  height: 42px;
  padding: 0 24px;
}
#message {
  position: fixed;
  bottom: 25px;
  left: calc(50% + var(--chat) / 2);
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  background: #201229fa;
  border: 1px solid #a26fbe66;
  padding: 13px 20px;
  border-radius: 8px;
  z-index: 100;
  font-size: 12px;
  transition: 0.2s;
  max-width: 90vw;
}
#message.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1600px) {
  #game {
    max-width: 1040px;
  }
}
@media (max-width: 1200px) {
  :root {
    --chat: 215px;
  }
  .site-header {
    gap: 20px;
  }
  .demo-badge {
    display: none;
  }
  .baccarat-layout {
    grid-template-columns: minmax(0, 1fr) 190px;
  }
  .card {
    width: 46px;
    height: 69px;
  }
  .card.third {
    margin: 0 11px;
  }
  .baccarat-table {
    padding-left: 12px;
    padding-right: 12px;
    gap: 8px;
  }
  .cards {
    gap: 5px;
  }
  .control-row {
    gap: 14px;
  }
  .control-row > .primary {
    min-width: 120px;
  }
  .segmented button {
    padding: 0 8px;
  }
}
@media (max-width: 1000px) {
  :root {
    --chat: 0px;
  }
  .chat-panel {
    display: none;
  }
  .brand {
    width: auto;
  }
  .chat-collapsed #showChat {
    display: none;
  }
  main {
    padding: 12px 20px 24px;
  }
  .site-header {
    padding: 0 20px;
  }
  .baccarat-layout {
    grid-template-columns: minmax(0, 1fr) 215px;
  }
}
@media (max-width: 700px) {
  :root {
    --header: 60px;
  }
  .site-header {
    padding: 0 12px;
    gap: 14px;
  }
  .brand {
    font-size: 18px;
    gap: 7px;
  }
  .brand > img {
    width: 20px;
    height: 29px;
  }
  .header-games {
    display: none;
  }
  .profile {
    min-width: 0;
    padding: 5px;
  }
  .profile #identity {
    display: none;
  }
  .profile .avatar {
    width: 26px;
    height: 26px;
  }
  .wallet b {
    font-size: 13px;
  }
  .wallet img {
    width: 14px;
  }
  .wallet {
    gap: 1px 6px;
  }
  main {
    padding: 10px 10px 24px;
  }
  #nav {
    width: 100%;
    gap: 0;
    justify-content: space-between;
    margin-bottom: 5px;
  }
  #nav button {
    font-size: 11px;
    padding: 9px 8px;
  }
  .game-heading {
    height: 54px;
    padding: 0 15px;
  }
  .game-heading h1 {
    font-size: 27px;
  }
  .game-heading button {
    padding: 8px 14px;
    font-size: 10px;
  }
  .game-panel {
    border-radius: 9px;
  }
  .controls {
    padding: 16px;
  }
  .control-row {
    gap: 16px 12px;
  }
  .control-row .wager-field {
    flex-basis: 100%;
    min-width: 0;
  }
  .control-row > .primary {
    flex-basis: 100%;
    max-width: none;
    min-width: 100%;
  }
  .field {
    flex-basis: 40%;
  }
  .chance {
    flex: 1;
    padding-left: 15px;
  }
  .limbo-stage {
    height: 270px;
  }
  #limboValue {
    font-size: clamp(44px, 13vw, 76px);
  }
  .auto-fields {
    gap: 8px;
  }
  .auto-fields .field {
    flex-basis: 0;
  }
  .auto-fields .field > span {
    font-size: 9px;
  }
  .auto-fields input,
  .auto-fields select {
    padding: 0 7px;
    font-size: 11px;
  }
  .mode-tabs {
    margin-bottom: 16px;
  }
  .history-strip {
    padding: 11px 16px;
  }
  .tower-stage {
    padding: 25px 18px 12px;
  }
  .tower-row {
    gap: 9px;
  }
  .tower-row > span {
    width: 51px;
    font-size: 9px;
  }
  .tower-row > div {
    gap: 6px;
  }
  .tower-row button {
    height: 37px;
  }
  .plinko-stage {
    padding: 14px 6px 8px;
    max-width: 480px;
  }
  #slots {
    margin-top: -4.6%;
  }
  #slots > div {
    font-size: 7px;
    height: 30px;
    padding: 0;
  }
  #slots small {
    font-size: 6px;
  }
  .rooms {
    padding: 0 12px 16px;
  }
  .room-row {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
  }
  .room-players {
    flex-basis: 100%;
    gap: 9px;
  }
  .room-row > strong {
    margin-right: auto;
    text-align: left;
    padding-left: 39px;
  }
  .room-row > button {
    min-width: 105px;
  }
  .room-category h2 {
    margin-top: 19px;
  }
  .coin-preview {
    gap: 30px;
    padding: 40px 0;
  }
  .coin-preview .coin-face {
    width: 113px;
    height: 113px;
  }
  .coin-create {
    gap: 18px;
  }
  .battle-players {
    gap: 4px;
    padding: 20px 8px 0;
    align-items: flex-start;
  }
  .battle-players > div {
    width: 44%;
    gap: 7px;
    padding: 8px;
  }
  .battle-players b {
    font-size: 10px;
  }
  .battle-players > .versus {
    margin-top: 21px;
  }
  .battle-players .mini-coin {
    width: 26px;
    height: 26px;
  }
  .coin-stage {
    height: 330px;
  }
  .baccarat-layout {
    grid-template-columns: 1fr;
  }
  .baccarat-table {
    padding: 20px 8px 0;
    min-height: 222px;
    gap: 2px;
  }
  .hand header {
    font-size: 12px;
    letter-spacing: 1px;
  }
  .hand header > b {
    font-size: 16px;
    margin-left: 6px;
  }
  .cards {
    height: 120px;
    gap: 4px;
  }
  .card {
    width: 38px;
    height: 57px;
  }
  .card > span {
    font-size: 11px;
    line-height: 10px;
    left: 3px;
    top: 3px;
  }
  .card > span:last-child {
    right: 3px;
    bottom: 3px;
  }
  .card small {
    font-size: 9px;
  }
  .card > b {
    font-size: 21px;
  }
  .card.third {
    margin: 0 9px;
  }
  .betting-table {
    padding: 0 12px 14px;
    gap: 5px;
  }
  .bet-zone {
    height: 87px;
  }
  .bet-zone b {
    font-size: 20px;
  }
  .roads {
    padding: 0 12px 15px;
  }
  .round-sidebar {
    border-left: 0;
    border-top: 1px solid #ffffff0b;
  }
  .round-sidebar > header {
    padding: 13px 15px;
  }
  #roundBets {
    max-height: 175px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .round-player {
    border-right: 1px solid #ffffff08;
    padding: 12px;
  }
  .round-player p {
    font-size: 8px;
  }
  .round-player .payout {
    font-size: 9px;
  }
  .baccarat-controls .wager-field {
    flex-basis: calc(100% - 90px);
  }
  .baccarat-controls .secondary {
    padding: 0 16px;
  }
  .baccarat-controls {
    padding: 0 12px 12px;
  }
  #message {
    font-size: 11px;
    bottom: 16px;
    padding: 12px 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
