:root {
  --bg: #050c07;
  --bg-2: #08140b;
  --panel: rgba(15, 30, 19, 0.72);
  --panel-strong: rgba(18, 36, 22, 0.88);
  --line: rgba(120, 255, 140, 0.13);
  --line-strong: rgba(120, 255, 140, 0.3);
  --text: #f1f7f2;
  --muted: #8e9e92;
  --green: #55ee76;
  --green-bright: #92fb95;
  --green-deep: #27cf55;
  --glow: rgba(90, 255, 120, 0.6);
  --sidebar-w: clamp(102px, 29vw, 132px);
  --safe-top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: calc(var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px));
  --vh: var(--tg-viewport-stable-height, 100vh);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body {
  background: transparent;
  user-select: none;
  -webkit-user-select: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 85% 8%, rgba(46, 140, 64, 0.28), transparent 60%),
    radial-gradient(80% 50% at 10% 70%, rgba(30, 90, 42, 0.22), transparent 70%);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: transform 0.16s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s, filter 0.2s;
}

button:active {
  transition-duration: 0.06s;
}

h1,
h2,
p {
  margin: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-fill {
  fill: currentColor;
  stroke: none;
}

.accent {
  background: linear-gradient(180deg, #b6ffb0 0%, #66f57f 50%, #2fd85f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.deco {
  position: absolute;
  pointer-events: none;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.deco-chip-a {
  width: 58px;
  right: -16px;
  top: 92px;
  transform: rotate(-18deg);
  filter: blur(1.2px);
  opacity: 0.5;
}

.deco-chip-b {
  width: 44px;
  left: calc(var(--sidebar-w) - 14px);
  top: -6px;
  transform: rotate(14deg);
  filter: blur(2px);
  opacity: 0.4;
}

.deco-chip-c {
  width: 52px;
  right: -14px;
  top: 360px;
  transform: rotate(24deg);
  filter: blur(1.6px);
  opacity: 0.4;
}

.deco-die-a {
  width: 40px;
  right: -12px;
  top: 216px;
  transform: rotate(16deg);
  filter: blur(1.6px);
  opacity: 0.42;
}

.deco-wide-a,
.deco-wide-b,
.deco-wide-c,
.deco-wide-d,
.deco-wide-e,
.deco-wide-f,
.deco-wide-g,
.deco-wide-h {
  display: none;
}

@media (min-width: 900px) {
  .deco-wide-a,
  .deco-wide-b,
  .deco-wide-c,
  .deco-wide-d,
  .deco-wide-e,
  .deco-wide-f,
  .deco-wide-g,
  .deco-wide-h {
    display: block;
  }

  .deco-wide-a {
    left: 6%;
    top: 14%;
    width: 96px;
    transform: rotate(-14deg);
    filter: blur(2.2px);
    opacity: 0.38;
  }

  .deco-wide-b {
    left: 15%;
    top: 58%;
    width: 124px;
    transform: rotate(12deg);
    filter: blur(1.6px);
    opacity: 0.34;
  }

  .deco-wide-c {
    left: 4%;
    top: 76%;
    width: 84px;
    transform: rotate(20deg);
    filter: blur(2.6px);
    opacity: 0.34;
  }

  .deco-wide-d {
    left: 21%;
    top: 30%;
    width: 66px;
    transform: rotate(-8deg);
    filter: blur(3px);
    opacity: 0.3;
  }

  .deco-wide-e {
    right: 7%;
    top: 20%;
    width: 104px;
    transform: rotate(16deg);
    filter: blur(1.8px);
    opacity: 0.4;
  }

  .deco-wide-f {
    right: 17%;
    top: 66%;
    width: 128px;
    transform: rotate(-18deg);
    filter: blur(1.6px);
    opacity: 0.34;
  }

  .deco-wide-g {
    right: 4%;
    top: 52%;
    width: 78px;
    transform: rotate(-22deg);
    filter: blur(2.6px);
    opacity: 0.34;
  }

  .deco-wide-h {
    right: 22%;
    top: 8%;
    width: 70px;
    transform: rotate(10deg);
    filter: blur(3px);
    opacity: 0.3;
  }
}

.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  max-width: 560px;
  min-height: var(--vh);
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 0;
  height: var(--vh);
  display: flex;
  flex-direction: column;
  padding: calc(22px + var(--safe-top)) 9px calc(14px + var(--safe-bottom));
  background:
    linear-gradient(180deg, rgba(12, 26, 15, 0.94), rgba(6, 14, 8, 0.96));
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  isolation: isolate;
  min-width: 0;
  transition: opacity 0.22s ease, padding 0.3s ease, border-color 0.3s ease;
}

.sidebar-deco {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.deco-side-die-a {
  width: 62px;
  left: -20px;
  top: 47%;
  transform: rotate(-12deg);
  filter: blur(2px);
  opacity: 0.4;
}

.deco-side-die-b {
  width: 52px;
  right: -8px;
  top: 55%;
  transform: rotate(14deg);
  filter: blur(1.4px);
  opacity: 0.42;
}

.deco-side-chip-a {
  width: 86px;
  left: -26px;
  top: 64%;
  transform: rotate(-16deg);
  filter: blur(1px);
  opacity: 0.38;
}

.deco-side-chip-b {
  width: 68px;
  right: -24px;
  top: 70%;
  transform: rotate(22deg);
  filter: blur(2px);
  opacity: 0.28;
}

.deco-side-chip-c {
  width: 70px;
  left: 18px;
  top: 77%;
  transform: rotate(-6deg);
  filter: blur(1.2px);
  opacity: 0.32;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 2px;
  margin-bottom: 26px;
}

.logo-die {
  width: 34px;
  height: 32px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--glow));
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 8px 4px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}

.nav-item span {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.nav-item .icon {
  flex: none;
  width: 22px;
  height: 22px;
}

.nav-item:active {
  background: rgba(122, 255, 142, 0.06);
}

.nav-item.is-active {
  color: var(--green-bright);
  background: linear-gradient(180deg, rgba(70, 215, 100, 0.5), rgba(30, 120, 55, 0.42));
  border-color: rgba(140, 255, 150, 0.55);
  box-shadow: 0 0 22px rgba(90, 255, 120, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.nav-item.is-active span {
  color: #c9ffcb;
}

.bot-link {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 6px 8px 7px;
  border-radius: 14px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.bot-link-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 9px;
  background: rgba(124, 198, 255, 0.12);
  color: #7cc6ff;
}

.bot-link-icon .icon {
  width: 16px;
  height: 16px;
}

.bot-link-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.bot-link-text b {
  font-size: 11px;
  font-weight: 700;
}

.bot-link-text small {
  font-size: 9.5px;
  color: var(--muted);
}

.chevron {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--muted);
}

.main {
  position: relative;
  min-width: 0;
  container-type: inline-size;
  padding: calc(12px + var(--safe-top)) 12px calc(18px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
}

.wallet {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(10, 20, 12, 0.82);
  border: 1px solid var(--line-strong);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #18261b;
  color: #8a9a8d;
  overflow: hidden;
}

.avatar .icon {
  width: 17px;
  height: 17px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.balance {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding-left: 2px;
}

.coins {
  width: 16px;
  height: 16px;
  align-self: center;
  fill: var(--green-bright);
  stroke: #062a10;
  stroke-width: 1.3;
  filter: drop-shadow(0 0 4px var(--glow));
}

.balance-value {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.balance-unit {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
}

.plus {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #a6fca2, #4fe57a);
  color: #062a10;
  box-shadow: 0 0 16px var(--glow);
}

.plus .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.6;
}

.hero {
  position: relative;
  height: 212px;
  margin-top: -6px;
}

.deco-hero-chip {
  width: 62px;
  left: -2px;
  top: -40px;
  transform: rotate(-16deg);
  opacity: 0.9;
  filter: blur(0.4px);
}

.hero-text {
  position: absolute;
  left: 0;
  top: 46px;
  z-index: 3;
}

.hero-text h1 {
  display: flex;
  flex-direction: column;
  font-size: clamp(30px, 10.5cqw, 44px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero-text h1 .accent {
  filter: drop-shadow(0 0 14px rgba(88, 255, 112, 0.35));
}

.hero-text p {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  color: #c9d4cb;
}

.squiggle {
  width: 32px;
  height: 12px;
  margin-top: 8px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px var(--glow));
}

.hero-visual {
  position: absolute;
  right: -12px;
  top: -14px;
  width: 58%;
  max-width: 200px;
  height: 230px;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(88, 255, 112, 0.42), rgba(88, 255, 112, 0.1) 45%, transparent 70%);
  filter: blur(6px);
}

.orbit {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 190px;
  height: 114px;
  transform: translate(-50%, -50%);
  fill: none;
  stroke: url(#ring);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 4px rgba(120, 255, 140, 0.8));
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 34%);
  mask-image: linear-gradient(90deg, transparent 4%, #000 34%);
}

.orbit-back {
  opacity: 0.55;
}

.orbit-front {
  z-index: 2;
  stroke-width: 2.2;
}

.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  fill: #d8ffd8;
  filter: drop-shadow(0 0 4px #7dff8c);
  animation: twinkle 3.2s ease-in-out infinite;
}

.sparkle.s1 { left: 18%; top: 8%; width: 9px; height: 9px; }
.sparkle.s2 { right: 10%; top: 20%; width: 12px; height: 12px; animation-delay: 1.1s; }
.sparkle.s3 { left: 6%; top: 52%; width: 7px; height: 7px; animation-delay: 0.6s; }
.sparkle.s4 { right: 4%; top: 64%; width: 8px; height: 8px; animation-delay: 2s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1); }
}

.pedestal {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 168px;
  height: 46px;
  transform: translateX(-46%);
}

.pedestal-base {
  position: absolute;
  left: 0;
  right: 0;
  top: 14px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(180deg, #0f2314, #020604);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.7);
}

.pedestal-body {
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;
  height: 15px;
  background: linear-gradient(90deg, #07110a, #163020 45%, #07110a);
}

.pedestal-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(60% 60% at 50% 45%, #1b4a25, #08160c 70%);
  border: 1.5px solid rgba(141, 255, 150, 0.85);
  box-shadow: 0 0 16px rgba(88, 255, 112, 0.65), inset 0 0 14px rgba(88, 255, 112, 0.45);
}

.die {
  --s: 80px;
  position: relative;
  width: var(--s);
  height: var(--s);
  perspective: calc(var(--s) * 7);
}

.die-sway,
.die-cube {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.die-cube {
  transform: rotateX(-22deg) rotateY(-34deg);
}

.die-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 15%;
  border-radius: 20%;
  background:
    radial-gradient(120% 120% at 28% 22%, rgba(52, 110, 62, 0.92), rgba(12, 32, 17, 0.9) 52%, rgba(4, 13, 7, 0.94));
  border: 1.5px solid rgba(132, 255, 148, 0.6);
  box-shadow:
    inset 0 0 calc(var(--s) * 0.2) rgba(88, 255, 112, 0.3),
    0 0 calc(var(--s) * 0.1) rgba(88, 255, 112, 0.3);
}

.die-face[data-n="1"] { transform: translateZ(calc(var(--s) / 2)); }
.die-face[data-n="6"] { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.die-face[data-n="3"] { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.die-face[data-n="4"] { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.die-face[data-n="2"] { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.die-face[data-n="5"] { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }

.die-pip {
  width: 72%;
  aspect-ratio: 1;
  align-self: center;
  justify-self: center;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f3fff3 0 16%, #a8ffa9 34%, #48e562 64%, #1d9c35 100%);
  box-shadow:
    0 0 calc(var(--s) * 0.05) rgba(140, 255, 150, 0.95),
    0 0 calc(var(--s) * 0.13) rgba(88, 255, 112, 0.6);
}

.die--hero {
  --s: clamp(70px, 23cqw, 96px);
  position: absolute;
  left: 50%;
  top: 44%;
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  z-index: 1;
  animation: float 4.6s ease-in-out infinite;
}

.die--hero .die-sway {
  animation: sway 9s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes sway {
  0%, 100% { transform: rotateY(-14deg) rotateX(4deg); }
  50% { transform: rotateY(16deg) rotateX(-4deg); }
}

.card {
  position: relative;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.play-card {
  z-index: 2;
  padding: 16px 14px 14px;
  overflow: hidden;
}

.play-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 240px;
  height: 200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(88, 255, 112, 0.16), transparent);
  pointer-events: none;
}

.card-head {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.card-head h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.card-head .muted {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.play-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 168px;
}

.play-shadow {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 120px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(88, 255, 112, 0.4), transparent);
  filter: blur(4px);
}

.play-die {
  position: relative;
  width: clamp(96px, 28cqw, 118px);
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5));
}

.roll-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(100deg, #a6fba3 0%, #7cf28f 55%, #4fe37c 100%);
  color: #03140a;
  font-size: clamp(15px, 6.2cqw, 20px);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 0 24px rgba(90, 255, 120, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -2px 0 rgba(0, 90, 30, 0.25);
  transition: transform 0.12s, filter 0.2s;
}

.roll-btn .icon {
  width: 18px;
  height: 18px;
}

.roll-btn:active {
  transform: scale(0.98);
}

.quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 10px 8px 10px 10px;
  border-radius: 16px;
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  background: rgba(85, 238, 118, 0.16);
  color: var(--green-bright);
}

.quick-icon .icon {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 4px var(--glow));
}

.quick-text {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
}

.banner {
  display: flex;
  align-items: center;
  min-height: 108px;
  padding: 16px 14px;
  overflow: hidden;
  background:
    radial-gradient(70% 120% at 85% 50%, rgba(70, 200, 90, 0.28), transparent 70%),
    var(--panel);
}

.banner-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 58%;
}

.banner-text b {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.banner-text small {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 500;
}

.banner-art {
  position: absolute;
  right: -6px;
  top: 0;
  bottom: 0;
  width: 52%;
}

.banner-chip-a {
  position: absolute;
  right: 34px;
  bottom: 2px;
  width: 92px;
  transform: rotate(-10deg);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55));
}

.banner-chip-b {
  position: absolute;
  left: 2px;
  top: 8px;
  width: 42px;
  transform: rotate(-20deg);
  filter: blur(0.8px);
  opacity: 0.75;
}

.banner-die {
  position: absolute;
  right: 12px;
  top: 2px;
  width: 58px;
  transform: rotate(12deg);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
}

.banner-arrow {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  color: var(--green-bright);
  filter: drop-shadow(0 0 6px var(--glow));
}

.banner-arrow .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.quick-item:active,
.banner:active,
.bot-link:active {
  transform: scale(0.985);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + var(--safe-bottom));
  z-index: 70;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(16, 32, 20, 0.95);
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 8, 4, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gate[hidden] {
  display: none;
}

.gate-box {
  max-width: 300px;
  text-align: center;
}

.gate-die {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 0 16px var(--glow));
}

.gate-box h2 {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 800;
}

.gate-box p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}

.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: screen-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.screen.is-leaving {
  animation: screen-out 0.16s ease-in forwards;
  pointer-events: none;
}

@keyframes screen-out {
  to { opacity: 0; transform: translateY(-6px); }
}

.screen[hidden] {
  display: none;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.page-head h1 {
  font-size: clamp(26px, 8.6cqw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.page-head p {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.page-head--big h1 {
  font-size: clamp(32px, 11cqw, 44px);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.page-head--big p {
  font-size: 15px;
  color: #c3cfc6;
}

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

.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px 9px;
  border-radius: 16px;
  text-align: center;
}

.cat b {
  font-size: 11.5px;
  font-weight: 700;
}

.cat small {
  font-size: 9.5px;
  color: var(--muted);
}

.cat:active,
.tile:active {
  transform: scale(0.97);
}

.cat-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 52px;
  margin-bottom: 4px;
}

.cat-art img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.shelf h2 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 800;
}

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

.tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tile-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 0.86;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(88, 255, 112, 0.3), transparent 70%),
    linear-gradient(160deg, #0f2a16, #050d07);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.tile-art img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.tile-name {
  overflow: hidden;
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1.2;
  color: #dbe5dd;
  overflow-wrap: anywhere;
}

.game-card {
  display: flex;
  flex-direction: column;
  padding: 18px 16px 16px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dice-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 168px;
  margin-bottom: 10px;
}

.dice-stage--result {
  height: 150px;
  margin: 18px 0 12px;
}

.prop-kinds {
  margin-bottom: 18px;
}

.prop-kinds[hidden] {
  display: none;
}

.prop-kinds button:disabled {
  opacity: 0.6;
}

.ladder-steps {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 66px;
  padding: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}

.roll-btn .roll-ico[hidden] {
  display: none;
}

.dice-stage.has-ladder .sparkle {
  display: none;
}

.dice-stage.has-ladder .lottie-die,
.dice-stage.has-ladder .die,
.dice-stage.has-ladder .stage-emoji,
.dice-stage.has-ladder .dice-glow {
  margin-left: -33px;
}

.ladder-steps::-webkit-scrollbar {
  display: none;
}

.ladder-steps[hidden] {
  display: none;
}

.ladder-step {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 100%;
  padding: 4px 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c3cfc6;
}

.ladder-step small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.ladder-step b {
  font-size: 12.5px;
  font-weight: 800;
}

.ladder-step.is-done {
  background: rgba(90, 255, 120, 0.16);
  border-color: rgba(140, 255, 150, 0.45);
  color: var(--green-bright);
}

.ladder-step.is-next {
  border-color: #f6c843;
  color: #f6d36b;
  background: rgba(246, 200, 67, 0.08);
}

.ghost-btn.ladder-cash,
.ghost-btn.ladder-next {
  height: 46px;
  margin-top: 8px;
}

.roll-btn.is-compact {
  height: 48px;
  font-size: 16px;
}

.roll-btn.is-compact .icon {
  width: 14px;
  height: 14px;
}

.ladder-cash[hidden],
.ladder-next[hidden] {
  display: none;
}

.row.is-muted dd,
.row.is-muted dt {
  color: var(--muted);
}

.dice-glow {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 150px;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(88, 255, 112, 0.5), transparent);
  filter: blur(5px);
}

.die--game {
  --s: clamp(84px, 26cqw, 104px);
}

.lottie-die {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.dice-stage--result .lottie-die {
  width: 170px;
  height: 170px;
}

.dice-stage.has-lottie .lottie-die {
  display: block;
}

.dice-stage.has-lottie .die,
.dice-stage.has-lottie .dice-glow {
  display: none;
}

.die--result {
  --s: clamp(74px, 22cqw, 92px);
}

.die.is-rolling {
  animation: hop 0.5s ease-in-out infinite;
}

.die.is-rolling .die-sway {
  animation: tumble 0.5s linear infinite;
}

@keyframes tumble {
  from { transform: rotateX(0) rotateY(0) rotateZ(0); }
  to { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

@keyframes hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.die.is-landing {
  animation: land 0.45s ease-out;
}

@keyframes land {
  0% { transform: translateY(-14px); }
  60% { transform: translateY(3px); }
  100% { transform: translateY(0); }
}

.die.is-landing .die-cube {
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.field-label {
  display: block;
  margin: 4px 0 12px;
  font-size: 18px;
  font-weight: 500;
}

.field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field:focus-within {
  border-color: rgba(141, 255, 150, 0.45);
  box-shadow: 0 0 0 3px rgba(88, 255, 112, 0.08);
}

.field.is-invalid {
  border-color: rgba(255, 110, 110, 0.6);
}

.field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 20px;
  font-weight: 500;
  user-select: text;
  -webkit-user-select: text;
}

.field input::placeholder {
  color: #66766a;
  font-weight: 600;
}

.field-icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
}

.field-unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.field-hint {
  min-height: 16px;
  margin: 6px 2px 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.field-hint.is-error {
  color: #ff8a8a;
}

.field-note {
  margin: 8px 2px 0;
  font-size: 12.5px;
  color: #8f9c93;
}

.field-note + .field-hint {
  margin-top: 2px;
}

.picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pick {
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c8d1cb;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.pick.is-selected {
  background: rgba(70, 220, 100, 0.1);
  border: 1.5px solid #6ef07f;
  color: #8ff59a;
  box-shadow: 0 0 14px rgba(90, 255, 120, 0.25), inset 0 0 10px rgba(90, 255, 120, 0.08);
}

.pick:active {
  transform: scale(0.97);
}

.pick:disabled {
  opacity: 0.55;
}

.coef {
  margin: 10px 2px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-bright);
  text-shadow: 0 0 8px rgba(90, 255, 120, 0.45);
}

.roll-btn:disabled {
  background: linear-gradient(180deg, #3a443c, #2a322c);
  color: #7f8b82;
  box-shadow: none;
  cursor: default;
}

.roll-btn:disabled .icon g {
  fill: #2a322c;
}

.roll-btn:disabled:active {
  transform: none;
}

.roll-btn.is-busy:disabled,
.pk-confirm.is-busy:disabled {
  background: linear-gradient(100deg, #a6fba3 0%, #7cf28f 55%, #4fe37c 100%);
  color: #03140a;
  opacity: 0.9;
}

.roll-btn.is-busy::before,
.pk-confirm.is-busy::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(3, 20, 10, 0.25);
  border-top-color: #03140a;
  border-radius: 50%;
  animation: lv-spin 0.8s linear infinite;
}

.pk-confirm.is-busy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ghost-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 56px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(20, 34, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 700;
  color: #cfd9d1;
}

.ghost-btn .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.ghost-btn:active {
  transform: scale(0.98);
}

.verdict {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(20, 34, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: clamp(14px, 5.6cqw, 17px);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: #cfd9d1;
}

.verdict .icon {
  width: 24px;
  height: 24px;
}

.verdict .verdict-win {
  display: none;
}

.verdict.is-win {
  background: linear-gradient(180deg, rgba(76, 200, 92, 0.22), rgba(40, 120, 54, 0.14));
  border-color: rgba(141, 255, 150, 0.45);
  color: var(--green-bright);
  font-size: 20px;
  box-shadow: 0 0 18px rgba(88, 255, 112, 0.18);
}

.verdict.is-win .verdict-win {
  display: block;
  filter: drop-shadow(0 0 6px var(--glow));
}

.verdict.is-win .verdict-loss {
  display: none;
}

.rows {
  margin: 0 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 10, 6, 0.45);
  overflow: hidden;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 10px;
  min-height: 46px;
  padding: 6px 12px;
}

.row + .row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.row[hidden] {
  display: none;
}

.row dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(12px, 4.6cqw, 13px);
  color: #b9c5bc;
}

.row dt .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.row dd {
  margin: 0 0 0 auto;
  font-size: clamp(13px, 5cqw, 14px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.row-win dt,
.row-win dd,
.row-win dt .icon {
  color: var(--green-bright);
}

.screen--table {
  isolation: isolate;
}

.table-glow {
  position: absolute;
  left: -12px;
  right: -12px;
  top: -70px;
  height: 460px;
  z-index: -1;
  background:
    radial-gradient(60% 45% at 60% 55%, rgba(70, 200, 90, 0.25), transparent 70%),
    radial-gradient(90% 40% at 50% 85%, rgba(20, 70, 32, 0.6), transparent 75%);
  pointer-events: none;
}

.table-art {
  position: relative;
  height: 200px;
  margin: -6px -12px -28px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
}

.felt {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -40px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(60% 70% at 50% 30%, #1f6a31, #0a2a14 70%);
  border-top: 2px solid rgba(232, 196, 104, 0.75);
  box-shadow: inset 0 10px 30px rgba(0, 0, 0, 0.4);
}

.felt::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 16px;
  height: 100px;
  border-radius: 50%;
  border-top: 1.5px solid rgba(232, 196, 104, 0.6);
}

.table-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(10px 10px at 18% 22%, rgba(120, 255, 140, 0.55), transparent),
    radial-gradient(14px 14px at 84% 14%, rgba(120, 255, 140, 0.45), transparent),
    radial-gradient(8px 8px at 66% 30%, rgba(160, 255, 170, 0.5), transparent),
    radial-gradient(18px 18px at 92% 46%, rgba(90, 230, 110, 0.35), transparent),
    radial-gradient(12px 12px at 8% 44%, rgba(90, 230, 110, 0.35), transparent);
  filter: blur(2px);
}

.big-card {
  position: absolute;
  bottom: 26px;
  width: 30%;
  max-width: 104px;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}

.big-card.c1 {
  left: 24%;
  transform: rotate(-9deg);
}

.big-card.c2 {
  left: 46%;
  transform: rotate(7deg) translateY(4px);
}

.table-form {
  position: relative;
  z-index: 2;
  background: rgba(8, 16, 11, 0.88);
}

.picks--modes {
  margin-bottom: 16px;
}

.bj-table {
  --card-w: clamp(38px, min(15cqw, 7.6vh), 66px);
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 4px;
  min-height: 318px;
  padding: 22px 10px 26px;
  border-radius: 26px;
  overflow: hidden;
  background: #050c07 url("/static/tables/blackjack.webp?v=3d5cfb08eb") center 42% / cover no-repeat;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(120, 255, 140, 0.12);
}

.bj-table::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 18px 0 22px -12px rgba(0, 0, 0, 0.75), inset -18px 0 22px -12px rgba(0, 0, 0, 0.75);
  pointer-events: none;
}

.bj-hand {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bj-hand--player {
  flex-direction: column-reverse;
}

.bj-tag {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bj-tag span,
.bj-tag b,
.bj-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 9px;
  background: rgba(6, 14, 9, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  font-weight: 600;
  color: #dfe8e1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bj-tag b {
  min-width: 30px;
  justify-content: center;
  border-color: rgba(120, 255, 140, 0.35);
  color: #ffffff;
  font-weight: 800;
}

.bj-tag b[hidden] {
  display: none;
}

.bj-hand[hidden],
.bj-split[hidden] {
  display: none;
}

.bj-split {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
  --card-w: clamp(32px, min(12cqw, 6.4vh), 54px);
}

.bj-part {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bj-split:has(.is-active) .bj-part:not(.is-active) {
  opacity: 0.6;
}

.bj-part.is-active {
  transform: translateY(-6px);
}

.bj-part.is-active .bj-tag span {
  border-color: rgba(120, 255, 140, 0.55);
  color: #ffffff;
}

.bj-part.is-win .bj-tag span {
  background: rgba(40, 150, 70, 0.85);
  border-color: rgba(120, 255, 140, 0.6);
  color: #ffffff;
}

.bj-part.is-lost .bj-cards img {
  opacity: 0.55;
  filter: grayscale(0.5);
}

.bj-cards {
  display: flex;
  justify-content: center;
  min-height: calc(var(--card-w) * 1.41);
}

.bj-cards img {
  width: var(--card-w);
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.55);
}

.bj-cards img + img {
  margin-left: calc(var(--card-w) * -0.42);
}

.bj-cards img:nth-child(odd) {
  transform: rotate(-3deg);
}

.bj-cards img:nth-child(even) {
  transform: rotate(3deg) translateY(2px);
}

.bj-cards img.is-new {
  animation: bj-deal 0.38s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.bj-cards img.is-flip {
  animation: bj-flip 0.36s ease-out;
}

@keyframes bj-deal {
  from { opacity: 0; transform: translate(70px, -90px) rotate(18deg) scale(0.7); }
}

@keyframes bj-flip {
  0% { transform: scaleX(1); }
  50% { transform: scaleX(0.05); }
  100% { transform: scaleX(1); }
}

.bj-bet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.chip-img {
  object-fit: contain;
}

.bj-chip {
  width: 64px;
  height: 45px;
  filter: drop-shadow(0 0 12px rgba(90, 255, 120, 0.45)) drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6));
}

.bj-pill {
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  border-color: rgba(120, 255, 140, 0.3);
}

.bj-result {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 62%;
  padding: 10px 18px;
  border-radius: 16px;
  background: rgba(6, 14, 9, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%);
  text-align: center;
  animation: bj-pop 0.3s ease-out;
}

.bj-result[hidden] {
  display: none;
}

.bj-result b {
  font-size: 18px;
  font-weight: 800;
}

.bj-result span {
  font-size: 14px;
  font-weight: 700;
  color: #c8d1cb;
}

.bj-result.is-win {
  border-color: rgba(140, 255, 150, 0.6);
  box-shadow: 0 0 26px rgba(90, 255, 120, 0.35), 0 12px 30px rgba(0, 0, 0, 0.6);
}

.bj-result.is-win b,
.bj-result.is-win span {
  color: var(--green-bright);
}

@keyframes bj-pop {
  from { opacity: 0; transform: translate(-50%, -40%) scale(0.92); }
}

.bj-panel {
  padding: 12px;
}

.bj-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bj-actions[hidden],
.bj-after[hidden] {
  display: none;
}

.bj-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 84px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e9f1eb;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  transition: transform 0.12s, opacity 0.2s;
}

.bj-act .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.7;
  color: var(--green-bright);
}

.bj-act.is-primary {
  background: linear-gradient(135deg, #a6fba3 0%, #7cf28f 55%, #4fe37c 100%);
  border-color: transparent;
  color: #03140a;
  box-shadow: 0 0 22px rgba(90, 255, 120, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.bj-act.is-primary .icon {
  color: #03140a;
}

.bj-act:active {
  transform: scale(0.97);
}

.bj-act:disabled,
.bj-act.is-primary:disabled {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  color: #6b766e;
  box-shadow: none;
}

.bj-act:disabled .icon {
  color: #59635c;
}

.bj-act:disabled:active {
  transform: none;
}

.bj-after .ghost-btn {
  margin-top: 10px;
}

.pk-table {
  --card-w: clamp(34px, min(13.5cqw, 6.8vh), 60px);
  --board-w: clamp(30px, min(11cqw, 5.4vh), 52px);
  min-height: 360px;
  padding: 18px 8px 22px;
}

.pk-seat {
  gap: 6px;
}

.pk-say {
  position: absolute;
  top: 32px;
  left: 50%;
  z-index: 3;
  padding: 4px 9px;
  border-radius: 9px;
  background: linear-gradient(135deg, #a6fba3, #4fe37c);
  color: #03140a;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 0 14px rgba(90, 255, 120, 0.45);
  animation: bj-pop 0.25s ease-out;
}

.bj-hand--player .pk-say {
  top: auto;
  bottom: 32px;
}

.pk-say[hidden] {
  display: none;
}

.pk-middle {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pk-board {
  min-height: calc(var(--board-w) * 1.41);
  gap: 4px;
}

.pk-board img {
  width: var(--board-w);
}

.pk-board img + img {
  margin-left: 0;
}

.pk-board img:nth-child(odd),
.pk-board img:nth-child(even) {
  transform: none;
}

.pk-pot {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pk-chip {
  width: 38px;
  height: 27px;
}

.pk-pot-label {
  margin-top: -4px;
  font-size: 11px;
  font-weight: 600;
  color: #b9c5bc;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.pk-status {
  min-height: 18px;
  margin: 10px 2px 0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: #b9c5bc;
}

.pk-status.is-bot {
  color: var(--green-bright);
  animation: pk-blink 1.1s ease-in-out infinite;
}

@keyframes pk-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.bj-panel.is-raising .bj-actions,
.bj-panel.is-raising .pk-status {
  visibility: hidden;
}

.pk-raise[hidden] {
  display: none;
}

.pk-raise {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 calc(max(0px, (100vw - 560px) / 2) + 10px) calc(10px + var(--safe-bottom));
  background: rgba(1, 4, 2, 0.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: pk-dim 0.2s ease-out;
}

@keyframes pk-dim {
  from { opacity: 0; }
}

@keyframes pk-sheet {
  from { opacity: 0; transform: translateY(24px); }
}

.pk-raise-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-end;
  gap: 10px;
  width: 92px;
  margin: 0 6px 14px 0;
  animation: pk-sheet 0.24s ease-out;
}

.pk-bubble {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.pk-bubble-chip {
  position: absolute;
  right: 8px;
  width: 22px;
  height: 16px;
  pointer-events: none;
}

.pk-amount {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 30px 0 10px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: #020403;
  color: #ffffff;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  outline: 0;
  user-select: text;
  -webkit-user-select: text;
}

.pk-amount.is-invalid {
  color: #ff3b3b;
}

.pk-slider {
  position: relative;
  width: 100%;
  height: min(38vh, 300px);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(14, 30, 18, 0.97), rgba(5, 12, 7, 0.98));
  border: 1px solid rgba(120, 255, 140, 0.22);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.65), 0 0 30px rgba(90, 255, 120, 0.12);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

.pk-slider-track {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 50%;
  width: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transform: translateX(-50%);
}

.pk-slider-track i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #92fb95, #27cf55);
  box-shadow: 0 0 12px rgba(90, 255, 120, 0.6);
}

.pk-slider-thumb {
  position: absolute;
  bottom: 22px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 40px;
  transform: translate(-50%, 50%);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.pk-slider-thumb svg,
.pk-slider-thumb .chip-img {
  width: 56px;
  height: 39px;
  transition: transform 0.15s;
}

.pk-raise.is-dragging .pk-slider-thumb .chip-img,
.pk-raise.is-dragging .pk-slider-thumb svg {
  transform: scale(1.1);
}

.pk-stepper {
  display: flex;
  gap: 8px;
}

.pk-step {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(120, 255, 140, 0.55);
  background: radial-gradient(circle at 50% 35%, rgba(60, 140, 75, 0.35), rgba(6, 16, 9, 0.9));
  box-shadow: 0 0 12px rgba(90, 255, 120, 0.22);
  color: #e6ffe6;
}

.pk-step .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.pk-step:active {
  transform: scale(0.95);
}

.pk-raise-foot {
  padding: 12px 14px 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(14, 30, 18, 0.97), rgba(5, 12, 7, 0.98));
  border: 1px solid rgba(120, 255, 140, 0.22);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.65), 0 0 30px rgba(90, 255, 120, 0.12);
  animation: pk-sheet 0.24s ease-out;
}

.pk-raise-foot .pk-raise-error {
  margin: 0 0 8px;
}

.pk-raise-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
  gap: 8px;
}

.pk-raise-row .pk-cancel {
  margin-top: 0;
}

.pk-raise-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 20px;
  margin: 10px 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #ff3b3b;
}

.pk-raise-error .icon {
  width: 18px;
  height: 18px;
}

.pk-raise-error.is-empty {
  visibility: hidden;
}

.pk-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.pk-q {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  height: 60px;
  padding: 0 2px;
  border-radius: 12px;
  border: 1px solid rgba(120, 255, 140, 0.4);
  background: linear-gradient(180deg, rgba(40, 95, 52, 0.55), rgba(8, 22, 12, 0.85));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
}

.pk-q b {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: #ffffff;
}

.pk-q span {
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  color: #dfe8e1;
  text-overflow: ellipsis;
}

.pk-q:active {
  transform: scale(0.96);
}

.pk-confirm,
.pk-cancel {
  width: 100%;
  height: 56px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.pk-confirm {
  background: linear-gradient(100deg, #a6fba3 0%, #7cf28f 55%, #4fe37c 100%);
  color: #03140a;
  box-shadow: 0 0 22px rgba(90, 255, 120, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.pk-confirm:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: #7d877f;
  box-shadow: none;
}

.pk-cancel {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #e9f1eb;
  font-weight: 600;
}

.pk-confirm:not(:disabled):active,
.pk-cancel:active {
  transform: scale(0.98);
}

.pk-result {
  position: static;
  justify-content: center;
  height: 100px;
  overflow: hidden;
  min-width: 0;
  margin-bottom: 12px;
  transform: none;
  box-shadow: none;
  animation: none;
}

.leave-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  background: rgba(10, 20, 12, 0.82);
  border: 1px solid var(--line-strong);
  color: #e9f1eb;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}

.leave-btn .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
  color: var(--green-bright);
}

.leave-btn[hidden] {
  display: none;
}

.leave-btn:active {
  transform: scale(0.97);
}

.app {
  transition: grid-template-columns 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app.is-fullscreen {
  grid-template-columns: 0px minmax(0, 1fr);
}

.app.is-fullscreen .sidebar {
  opacity: 0;
  padding-left: 0;
  padding-right: 0;
  border-color: transparent;
  pointer-events: none;
}

.app.is-fullscreen .topbar {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.app.is-fullscreen .screen--bj {
  height: calc(var(--vh) - var(--safe-top) - var(--safe-bottom) - 92px);
  min-height: 540px;
  gap: 10px;
}

.app.is-fullscreen .screen--bj .page-head {
  display: none;
}

.app.is-fullscreen .screen--bj .bj-table {
  flex: 1 1 auto;
  min-height: 0;
}

.app.is-fullscreen .screen--bj .bj-panel {
  flex: none;
}

.app.is-fullscreen .screen--bj .bj-act {
  height: 74px;
}

.confirm {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 3, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: screen-in 0.2s ease-out;
}

.confirm[hidden] {
  display: none;
}

.confirm-box {
  width: 100%;
  max-width: 320px;
  padding: 22px 18px 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 32, 20, 0.98), rgba(6, 13, 8, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  text-align: center;
}

.confirm-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 80, 80, 0.12);
  color: #ff6b6b;
}

.confirm-icon .icon {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}

.confirm-box h2 {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 800;
}

.confirm-box p {
  margin: 8px 0 18px;
  font-size: 14px;
  line-height: 1.45;
  color: #c3cfc6;
}

.confirm-box p b {
  color: #ffffff;
}

.confirm-leave {
  color: #ff6b6b;
}

body.is-typing .screen {
  animation: none;
}

.pk-raise.is-lifted {
  justify-content: flex-start;
  padding-top: calc(var(--safe-top) + 8px);
  animation: none;
}

.pk-raise.is-lifted .pk-slider,
.pk-raise.is-lifted .pk-stepper {
  display: none;
}

.pk-raise.is-lifted .pk-raise-side {
  align-self: stretch;
  width: auto;
  margin: 0 0 8px;
}

.bj-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.bj-panel > .bj-actions,
.bj-panel > .bj-after {
  grid-area: 1 / 1;
}

.bj-panel > .pk-status {
  grid-area: 2 / 1;
}

.bj-panel > .bj-actions[hidden] {
  display: grid;
  visibility: hidden;
  pointer-events: none;
}

.bj-panel > .bj-after[hidden] {
  display: block;
  visibility: hidden;
  pointer-events: none;
}

.bj-panel .pk-result[hidden] {
  display: flex;
  visibility: hidden;
}

.app.is-fullscreen .bj-after .ghost-btn {
  display: none;
}

.stage-emoji {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 40px;
  line-height: 1;
}

.stage-emoji {
  position: absolute;
  inset: 0;
  font-size: 84px;
}

.stage-emoji[hidden] {
  display: none;
}

.dice-stage.is-plain .die,
.dice-stage.is-plain .dice-glow {
  display: none;
}

.picks.picks--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pick small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #9fb1a4;
}

.pick.is-selected small {
  color: #a6ffa8;
}

@media (max-width: 340px) {
  .nav-item {
    min-height: 52px;
    padding: 6px 3px;
    font-size: 10px;
  }

  .nav-item .icon {
    width: 19px;
    height: 19px;
  }

  .balance-unit {
    display: none;
  }

  .quick-text {
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen,
  .die--hero,
  .die--hero .die-sway,
  .sparkle {
    animation: none;
  }
}

.wheel-card,
.bonus-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px;
}

.wheel-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.wheel-head b {
  font-size: 20px;
  font-weight: 800;
}

.wheel-head small,
.bonus-head small,
.bonus-stats small,
.wager small {
  color: var(--muted);
  font-size: 13px;
}

.wheel-wrap {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin: 4px auto 0;
}

.wheel-wrap::before {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 255, 120, 0.22), transparent 68%);
  pointer-events: none;
}

.wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: rotate(0deg);
  will-change: transform;
}

.wheel-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.16), transparent 52%),
    radial-gradient(circle at 70% 82%, rgba(0, 0, 0, 0.22), transparent 58%);
  box-shadow: 0 0 30px rgba(90, 255, 120, 0.25), 0 14px 30px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.wheel-slice {
  fill: #0c2618;
  stroke: rgba(0, 0, 0, 0.35);
  stroke-width: 0.4;
}

.wheel .seg-alt .wheel-slice {
  fill: #dce6dc;
}

.wheel.is-spinning {
  transition: transform 4.6s cubic-bezier(0.12, 0.72, 0.12, 1);
}

.wheel-static {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 0 27.5%, transparent 28.5% 88.5%, #000 89.5%);
  mask-image: radial-gradient(circle closest-side, #000 0 27.5%, transparent 28.5% 88.5%, #000 89.5%);
}

.wheel text {
  fill: #f1f7f2;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
}

.wheel .seg-alt text,
.wheel text.seg-alt {
  fill: #03140a;
}

.wheel-pointer {
  position: absolute;
  top: -1%;
  left: 42.25%;
  z-index: 2;
  width: 17.14%;
  aspect-ratio: 438 / 391;
  background: url("/static/art/wheel_pointer.webp?v=3d5cfb08eb") center / contain no-repeat;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.bonus-hint {
  min-height: 18px;
  margin-top: -6px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.bonus-hint.is-good {
  color: var(--green-bright);
}

.wheel-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.wheel-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  color: var(--muted);
}

.wheel-tier b {
  color: var(--text);
  font-size: 15px;
}

.wheel-tier.is-active {
  border-color: var(--line-strong);
  background: rgba(90, 255, 120, 0.08);
}

.wheel-tier.is-active b {
  color: var(--green-bright);
}

.wager {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wager-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 8px;
  font-size: 15px;
}

.wager-row b {
  font-weight: 700;
}

.wager-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wager-cancel {
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 120, 120, 0.35);
  background: rgba(255, 90, 90, 0.08);
  color: #ff9c9c;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.wager-cancel:active {
  transform: scale(0.97);
}

.tp-bot-link {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wager-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.wager-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4fe37c, #a6fba3);
  box-shadow: 0 0 12px rgba(90, 255, 120, 0.5);
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bonus-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bonus-head div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bonus-head b {
  font-size: 18px;
  font-weight: 800;
}

.bonus-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(90, 255, 120, 0.12);
  color: var(--green-bright);
  font-size: 20px;
  font-weight: 800;
}

.bonus-icon .icon {
  width: 22px;
  height: 22px;
}

.bonus-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bonus-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bonus-stats b {
  font-size: 17px;
  font-weight: 700;
}

.ref-field {
  padding-right: 6px;
}

.ref-field input {
  font-size: 14px;
  color: #c3cfc6;
  text-overflow: ellipsis;
}

.ref-copy {
  flex: none;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: linear-gradient(100deg, #a6fba3 0%, #7cf28f 55%, #4fe37c 100%);
  color: #03140a;
  font-size: 14px;
  font-weight: 700;
}

.ref-copy:active {
  transform: scale(0.97);
}

.confirm-icon--ok {
  background: rgba(90, 255, 120, 0.12);
  color: var(--green-bright);
}

.confirm-box .prize {
  display: block;
  margin-top: 6px;
  color: var(--green-bright);
  font-size: 32px;
  font-weight: 800;
}

.confirm-icon .notice-ok,
.confirm-icon--ok .notice-warn {
  display: none;
}

.confirm-icon--ok .notice-ok {
  display: block;
}

.rank-card {
  --rank: #55ee76;
  --rank-rgb: 85, 238, 118;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  overflow: hidden;
  border-color: rgba(var(--rank-rgb), 0.45);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(var(--rank-rgb), 0.22), transparent 60%),
    var(--panel);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(var(--rank-rgb), 0.14);
}

.rank-card[hidden] {
  display: none;
}

.rank-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-icon {
  flex: none;
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 0 14px rgba(var(--rank-rgb), 0.55));
}

.rank-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rank-title small {
  color: rgba(var(--rank-rgb), 0.85);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rank-title b {
  color: var(--rank);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-shadow: 0 0 18px rgba(var(--rank-rgb), 0.45);
}

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

.rank-chips span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c3cfc6;
  font-size: 12px;
}

.rank-chips b {
  margin-left: 4px;
  color: var(--green-bright);
}

.rank-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rank-progress small {
  color: #c3cfc6;
  font-size: 13px;
}

.rank-left {
  color: var(--green-bright);
  font-size: 24px;
  font-weight: 800;
}

.rank-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.rank-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #27cf55, #92fb95);
  box-shadow: 0 0 12px rgba(90, 255, 120, 0.55);
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rank-bar-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.rank-bar-row b {
  color: var(--text);
  font-size: 13px;
}

.rank-next {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-next img {
  grid-row: span 2;
  width: 52px;
  height: 52px;
}

.rank-next div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rank-next small {
  color: var(--muted);
  font-size: 12px;
}

.rank-next b {
  font-size: 15px;
  font-weight: 800;
}

.rank-next .accent {
  color: var(--green-bright);
}

.rank-system {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border-radius: 14px;
  background: rgba(90, 255, 120, 0.08);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.rank-system .icon {
  width: 18px;
  height: 18px;
}

.rank-system:active {
  transform: scale(0.98);
}

.rank-note {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.rk-note-ico {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  color: var(--green-bright);
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
}

.rk-note-ico .icon {
  width: 13px;
  height: 13px;
}

.seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.seg button {
  height: 40px;
  padding: 0 4px;
  border-radius: 10px;
  color: #c3cfc6;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.seg button.is-active {
  background: linear-gradient(180deg, rgba(90, 255, 120, 0.22), rgba(90, 255, 120, 0.1));
  border: 1px solid var(--line-strong);
  color: var(--green-bright);
}

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

.st-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px;
}

.st-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
  border-radius: 11px;
  background: rgba(90, 255, 120, 0.12);
  color: var(--green-bright);
}

.st-ico .icon {
  width: 20px;
  height: 20px;
}

.st-tile b {
  overflow: hidden;
  font-size: 19px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-tile small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.st-delta {
  position: absolute;
  top: 12px;
  right: 10px;
  color: var(--green-bright);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.st-delta.is-down {
  color: #ff7b7b;
}

.st-history {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px;
}

.st-history-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.st-history-head h2 {
  font-size: 19px;
  font-weight: 800;
}

.st-select {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.st-select select {
  height: 36px;
  padding: 0 32px 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
}

.st-select select option {
  background: #0c1a10;
  color: var(--text);
}

.st-select .icon {
  position: absolute;
  right: 10px;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.st-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: opacity 0.2s;
}

.st-rows.is-loading {
  opacity: 0.5;
}

.st-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.st-row-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(90, 255, 120, 0.08);
  font-size: 20px;
}

.st-row-main,
.st-row-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.st-row-side {
  align-items: flex-end;
  text-align: right;
}

.st-row b {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-row small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.st-row .is-win {
  color: var(--green-bright);
}

.st-row .is-loss {
  color: #ff8a8a;
}

.st-empty {
  padding: 18px 0 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.rk-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rk-item {
  --rank: #55ee76;
  --rank-rgb: 85, 238, 118;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.rk-item.is-current {
  border-color: rgba(var(--rank-rgb), 0.7);
  box-shadow: 0 0 0 1px rgba(var(--rank-rgb), 0.4), 0 0 22px rgba(var(--rank-rgb), 0.22);
}

.rk-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rk-item-head img {
  width: 48px;
  height: 48px;
}

.rk-item-head b {
  color: var(--rank);
  font-size: 17px;
  font-weight: 800;
}

.rk-item-head small {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(var(--rank-rgb), 0.18);
  color: var(--rank);
  font-size: 11px;
  font-weight: 700;
}

.rk-item-stats {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 6px;
}

.rk-item-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rk-item-stats small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.rk-item-stats b {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rk-notes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.rk-notes p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #c3cfc6;
  font-size: 13px;
  line-height: 1.4;
}

.seg.seg--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lv-mine {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-color: var(--line-strong);
  text-align: left;
}

.lv-mine[hidden] {
  display: none;
}

.lv-mine-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 10px var(--glow);
  animation: pk-blink 1.4s ease-in-out infinite;
}

.lv-mine-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lv-mine-text b {
  font-size: 15px;
}

.lv-mine-text small {
  color: var(--muted);
  font-size: 12px;
}

#lv-poker {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#lv-poker[hidden] {
  display: none;
}

.lv-code {
  padding-right: 6px;
}

.lv-code input {
  font-size: 16px;
  text-transform: uppercase;
}

.lv-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.lv-list-head h2 {
  font-size: 18px;
  font-weight: 800;
}

.lv-refresh {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--green-bright);
}

.lv-refresh .icon {
  width: 18px;
  height: 18px;
}

.lv-refresh.is-spinning .icon {
  animation: lv-spin 0.8s linear infinite;
}

@keyframes lv-spin {
  to { transform: rotate(360deg); }
}

.lv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lv-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.lv-row-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lv-row-main b {
  font-size: 15px;
  font-weight: 800;
}

.lv-row-main small {
  color: var(--muted);
  font-size: 12px;
}

.lv-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.lv-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.lv-dots i.is-on {
  background: var(--green-bright);
  box-shadow: 0 0 6px var(--glow);
}

.lv-sit {
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(100deg, #a6fba3 0%, #7cf28f 55%, #4fe37c 100%);
  color: #03140a;
  font-size: 14px;
  font-weight: 800;
}

.lv-sit:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: #7d877f;
}

.lv-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  text-align: center;
}

.lv-soon[hidden] {
  display: none;
}

.lv-soon small {
  color: var(--muted);
  font-size: 13px;
}

.lc-note {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.lc-note b {
  color: var(--text);
}

.pv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}

.pv-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pv-info b {
  font-size: 16px;
  font-weight: 800;
}

.pv-info small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-invite {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(90, 255, 120, 0.1);
  border: 1px solid var(--line-strong);
  color: var(--green-bright);
  font-size: 13px;
  font-weight: 700;
}

.pv-invite .icon {
  width: 16px;
  height: 16px;
}

.app.is-pvp .topbar {
  display: none;
}

.app.is-fullscreen .screen--pvp {
  position: relative;
  height: calc(var(--vh) - var(--safe-top) - var(--safe-bottom) - 32px);
  gap: 8px;
}

.screen--pvp .pv-head {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 4;
  padding: 0;
  pointer-events: none;
}

.screen--pvp .pv-head > * {
  pointer-events: auto;
}

.screen--pvp .pv-info {
  display: none;
}

.pv-round {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: rgba(8, 18, 11, 0.88);
  border: 1px solid var(--line-strong);
  color: var(--green-bright);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.pv-round .icon {
  width: 20px;
  height: 20px;
}

.pv-round span {
  display: none;
}

.pv-round:active {
  transform: scale(0.94);
}

.pv-table {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}

.pv-box {
  position: relative;
  width: min(100%, calc((var(--vh) - 300px) * 0.75));
  aspect-ratio: 3 / 4;
}

@supports (width: 1cqh) {
  .pv-table {
    container-type: size;
  }

  .pv-box {
    width: min(100cqw, 75cqh);
  }
}

.app.is-fullscreen .screen--pvp .pv-table {
  flex: 1 1 auto;
}

.pv-felt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.pv-board,
.pv-seats,
.pv-mine {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pv-board img {
  position: absolute;
  top: 39.7%;
  width: 10.4%;
  height: 12.2%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
  animation: pv-deal 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pv-deal {
  from { opacity: 0; transform: translateY(-14px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

.pv-felt-info {
  position: absolute;
  top: 31%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: rgba(214, 255, 220, 0.55);
  font-size: clamp(10px, 2.9cqw, 13px);
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}

.pv-pot {
  position: absolute;
  top: 52.6%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 4px;
  transform: translateX(-50%);
}

.pv-pot[hidden] {
  display: none;
}

.pv-pot .pk-chip {
  width: 30px;
  height: 21px;
}

.pv-seat {
  --ava: clamp(36px, 11cqw, 52px);
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28%;
  transform: translate(-50%, calc(-100% + var(--ava) / 2));
  pointer-events: auto;
  transition: opacity 0.25s;
}

.pv-seat.is-empty {
  width: auto;
}

.pv-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  margin-bottom: 4px;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 3px #000, 0 0 8px rgba(0, 0, 0, 0.85);
}

.pv-seat.is-empty .pv-label {
  display: none;
}

.pv-seat.is-folded {
  opacity: 0.45;
}

.pv-ava {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--ava);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(160deg, #1d3a24, #0a160d);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #e9f1eb;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.pv-seat.is-me .pv-ava {
  border-color: rgba(146, 251, 149, 0.7);
}

.pv-seat.is-turn .pv-ava {
  border-color: #ffc94d;
  box-shadow: 0 0 0 3px rgba(255, 201, 77, 0.28), 0 0 18px rgba(255, 201, 77, 0.6);
}

.pv-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.pv-seat.is-win .pv-ava {
  border-color: #f6c843;
  box-shadow: 0 0 0 3px rgba(246, 200, 67, 0.3), 0 0 18px rgba(246, 200, 67, 0.6);
}

.pv-seat.is-empty .pv-ava {
  background: linear-gradient(160deg, #16301d, #0a160d);
  border: 2px solid #2a4a32;
  color: #7f9585;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.pv-seat.is-empty.can-sit .pv-ava {
  border-color: #4fe37c;
  color: var(--green-bright);
  cursor: pointer;
}

.pv-seat.is-empty.can-sit .pv-ava:active {
  transform: scale(0.94);
}

.pv-empty-icon {
  width: 46%;
  height: 46%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@property --left {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

.pv-timer {
  position: absolute;
  inset: -5px;
  transition: --left 0.25s linear;
  border-radius: 50%;
  z-index: 1;
  background: conic-gradient(var(--ring, #ffc94d) var(--left, 100%), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
}

.pv-name {
  max-width: 100%;
  overflow: hidden;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-stack {
  color: #e3ece5;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pv-seat.is-me .pv-name {
  color: var(--green-bright);
}

.pv-tag {
  position: absolute;
  bottom: -9px;
  left: 50%;
  z-index: 2;
  padding: 1px 7px;
  border-radius: 999px;
  background: #0d1f12;
  border: 1px solid var(--line-strong);
  color: var(--green-bright);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
}

.pv-tag.is-fold {
  color: #ff8a8a;
  border-color: rgba(255, 120, 120, 0.4);
}

.pv-tag.is-win {
  color: #f6c843;
  border-color: rgba(246, 200, 67, 0.5);
}

.pv-hole {
  position: absolute;
  top: 50%;
  right: -11px;
  z-index: 2;
  display: flex;
  transform: translateY(-55%);
}

.pv-hole img {
  width: clamp(13px, 3.8cqw, 19px);
  margin-left: -6px;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.pv-hole img:first-child {
  margin-left: 0;
  transform: rotate(-8deg);
}

.pv-hole img:last-child {
  transform: rotate(8deg);
}

.pv-hole.is-open img {
  width: clamp(20px, 6.6cqw, 32px);
}

.pv-dealer {
  position: absolute;
  top: -4px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f1f7f2;
  color: #0a160d;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.pv-bet {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px 1px 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #f1f7f2;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.pv-bet svg,
.pv-bet .chip-img {
  width: 18px;
  height: 13px;
}

.pv-mine {
  z-index: 1;
}

.pv-mine img {
  position: absolute;
  top: 63%;
  width: 15%;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
  animation: pv-deal 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pv-mine img:first-child {
  left: 34%;
  transform: rotate(-6deg);
}

.pv-mine img:last-child {
  left: 51%;
  transform: rotate(6deg);
}

.pv-mine.is-folded img {
  opacity: 0.4;
  filter: grayscale(0.7);
}

.pv-panel .bj-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.app.is-fullscreen .screen--pvp .bj-act {
  height: 58px;
  gap: 4px;
  font-size: 14px;
}

.app.is-fullscreen .screen--pvp .bj-act .icon {
  width: 20px;
  height: 20px;
}

.screen--pvp .pv-panel {
  padding: 10px;
}

.screen--pvp .pk-status {
  margin-top: 8px;
}

.pv-after {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pv-seat.is-left {
  align-items: flex-start;
  transform: translate(calc(var(--ava) / -2), calc(-100% + var(--ava) / 2));
}

.pv-seat.is-right {
  align-items: flex-end;
  transform: translate(calc(-100% + var(--ava) / 2), calc(-100% + var(--ava) / 2));
}

.pv-seat.is-left .pv-label {
  align-items: flex-start;
  text-align: left;
}

.pv-seat.is-right .pv-label {
  align-items: flex-end;
  text-align: right;
}

.pv-seat.is-right .pv-hole {
  right: auto;
  left: -11px;
}

.pv-seat:not(.is-right) .pv-dealer {
  right: auto;
  left: -6px;
}

.app.is-pvp .main {
  padding-right: 0;
  padding-left: 0;
}

.app.is-pvp .screen--pvp .pv-panel {
  margin: 0 12px;
}

.app.is-pvp .screen--pvp .pv-head {
  right: 12px;
  left: 12px;
}

.pv-tools {
  display: flex;
  gap: 8px;
}

.pv-full-off,
.pv-round.is-on .pv-full-on {
  display: none;
}

.pv-round.is-on .pv-full-off {
  display: block;
}

.pv-round[hidden] {
  display: none;
}

.pv-chat-btn {
  position: relative;
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff5a5a;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
}

.chat-badge[hidden] {
  display: none;
}

.tchat {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(2, 6, 3, 0);
  transition: background 0.28s ease;
}

.tchat.is-open {
  background: rgba(2, 6, 3, 0.6);
}

.tchat .tchat-box {
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tchat.is-open .tchat-box {
  transform: none;
}

.tchat-msg.is-new {
  animation: tchat-pop 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.tchat-msg.is-me.is-new {
  transform-origin: 100% 100%;
}

.tchat-msg.is-new:not(.is-me) {
  transform-origin: 0 100%;
}

@keyframes tchat-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

.tchat-send {
  transition: transform 0.12s, opacity 0.2s;
}

.tchat-send:active {
  transform: scale(0.9);
}

.tchat-form.is-sending .tchat-send {
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  .tchat,
  .tchat .tchat-box {
    transition: none;
  }

  .tchat-msg.is-new {
    animation: none;
  }
}

.tchat[hidden] {
  display: none;
}

.tchat-box {
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  height: min(62vh, 520px);
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: #0b160e;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.tchat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 17px;
}

.tchat-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 2px;
}

.tchat-msg {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: 82%;
  padding: 7px 11px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tchat-msg b {
  color: var(--green-bright);
  font-size: 12px;
}

.tchat-msg.is-me {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: rgba(90, 255, 120, 0.16);
}

.tchat-empty {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.tchat-empty[hidden] {
  display: none;
}

.tchat-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.tchat-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
}

.tchat-send {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(180deg, #a6fca2, #4fe57a);
  color: #062a10;
}

.top-full {
  flex: none;
  width: 40px;
  height: 40px;
  margin-right: 8px;
  align-self: center;
}

.app.is-pvp {
  max-width: none;
}

.app.is-pvp .screen--pvp .pv-panel {
  width: min(560px, calc(100% - 24px));
  margin: 0 auto;
}

@media (min-width: 700px) {
  .app.is-pvp .screen--pvp .pv-head {
    right: 20px;
    left: 20px;
  }
}

.screen--pvp .pv-seat {
  --ava: clamp(40px, 12cqw, 58px);
  width: auto;
  max-width: 30%;
  align-items: center;
  gap: 3px;
  transform: translate(-50%, calc(var(--ava) / -2));
}

.screen--pvp .pv-seat.is-empty {
  max-width: none;
}

.screen--pvp .pv-ava {
  border: 2px solid rgba(146, 251, 149, 0.65);
  box-shadow: 0 0 10px rgba(90, 255, 120, 0.25), 0 4px 12px rgba(0, 0, 0, 0.6);
}

.screen--pvp .pv-label {
  min-width: 62px;
  max-width: 100%;
  margin: 0;
  padding: 3px 9px 4px;
  border-radius: 9px;
  background: rgba(4, 12, 7, 0.86);
  border: 1px solid rgba(146, 251, 149, 0.16);
  text-shadow: none;
}

.screen--pvp .pv-name {
  color: #ffffff;
  font-size: 12px;
}

.screen--pvp .pv-seat.is-me .pv-name {
  color: #ffffff;
}

.screen--pvp .pv-stack {
  color: #d8e3da;
  font-size: 11px;
}

.screen--pvp .pv-tag {
  bottom: -7px;
  font-size: 9.5px;
}

.screen--pvp .pv-hole {
  position: static;
  display: flex;
  gap: 4px;
  transform: none;
}

.pv-back,
.screen--pvp .pv-hole img {
  display: block;
  width: clamp(22px, 7cqw, 34px);
  aspect-ratio: 0.72;
  margin: 0;
  border-radius: 4px;
  transform: none;
}

.pv-back {
  position: relative;
  background: url("/static/deck/back.webp?v=3d5cfb08eb") center / cover no-repeat;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.55);
}

.screen--pvp .pv-hole {
  gap: 0;
  padding: 1px 0 2px;
}

.screen--pvp .pv-hole > :first-child {
  transform: rotate(-7deg) translateX(2px);
}

.screen--pvp .pv-hole > :last-child {
  margin-left: -5px;
  transform: rotate(7deg) translateX(-2px);
}

.pv-pos {
  margin-top: -2px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(4, 12, 7, 0.9);
  border: 1.5px solid rgba(146, 251, 149, 0.8);
  color: var(--green-bright);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 0 8px rgba(90, 255, 120, 0.25);
}

.screen--pvp .pv-felt-info {
  top: 0;
  transform: translate(-50%, -76%);
  gap: 0;
  padding: 4px 16px 5px;
  border-radius: 12px;
  background: rgba(4, 12, 7, 0.88);
  border: 1px solid rgba(146, 251, 149, 0.35);
  color: #e3ece5;
  font-size: clamp(11px, 3.2cqw, 14px);
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 0 12px rgba(90, 255, 120, 0.18);
}

.screen--pvp .pv-pot {
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0;
}

.pv-pot-label {
  flex-basis: 100%;
  color: #b9c5bc;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.screen--pvp .pv-mine {
  z-index: auto;
}

.screen--pvp .pv-mine img {
  top: auto;
  bottom: 14%;
  width: 13%;
  transform-origin: 50% 100%;
}

.screen--pvp .pv-mine img:first-child {
  left: 38%;
  transform: rotate(-10deg);
}

.screen--pvp .pv-mine img:last-child {
  left: 49%;
  transform: rotate(10deg);
}

.screen--pvp .pv-seat.is-top .pv-hole {
  z-index: 0;
  margin-top: calc(var(--ava) / -3);
}

.screen--pvp .pv-seat.is-top .pv-hole > * {
  width: clamp(28px, 9cqw, 42px);
  transform-origin: 50% 0;
}

.screen--pvp .pv-seat.is-top .pv-hole > :first-child {
  transform: rotate(10deg) translateX(2px);
}

.screen--pvp .pv-seat.is-top .pv-hole > :last-child {
  transform: rotate(-10deg) translateX(-2px);
}

.pv-bet.is-inline {
  position: static;
  transform: none;
}

.pv-bet.is-bottom {
  left: 50%;
  bottom: calc(27.8% + 10px);
  transform: translateX(-50%);
}

.screen--pvp .pv-seat.is-top .pv-label {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  max-width: none;
  padding: 4px 16px 5px;
  border-radius: 12px;
  border-color: rgba(146, 251, 149, 0.35);
  box-shadow: 0 0 12px rgba(90, 255, 120, 0.18);
  transform: translateX(-50%);
}

.screen--pvp .pv-seat.is-top .pv-name {
  font-size: 13px;
}

.screen--pvp .pv-seat.is-top .pv-stack {
  font-size: 12px;
}

.pv-meta {
  display: flex;
  flex: none;
  align-self: center;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 18px;
  border-radius: 12px;
  background: rgba(4, 12, 7, 0.9);
  border: 1px solid rgba(146, 251, 149, 0.4);
  color: #f1f7f2;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(90, 255, 120, 0.2);
}

.pv-meta span + span {
  padding-left: 12px;
  border-left: 1px solid rgba(146, 251, 149, 0.35);
}

.screen--pvp .pv-panel > .pv-statusbox {
  grid-area: 1 / 1;
}

.screen--pvp .pv-panel > .bj-actions,
.screen--pvp .pv-panel > .bj-after {
  grid-area: 2 / 1;
}

.pv-statusbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.pv-status-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 18px;
  color: #b9c5bc;
  font-size: 13px;
  font-weight: 600;
}

.pv-status-line .icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--green-bright);
}

#pv-status.is-bot {
  color: var(--green-bright);
}

.pv-bar {
  height: 6px;
  margin: 0 8%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.pv-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #27cf55, #92fb95);
  box-shadow: 0 0 10px rgba(90, 255, 120, 0.55);
  transition: width 0.25s linear;
}

.pv-bar i.is-late {
  background: linear-gradient(90deg, #ff5a5a, #ff9b3d);
  box-shadow: 0 0 10px rgba(255, 90, 90, 0.5);
}

.screen--pvp .bj-act {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f7f2;
}

.screen--pvp .bj-act.is-primary {
  background: rgba(90, 255, 120, 0.08);
  border: 1.5px solid #4fe37c;
  color: #f1f7f2;
  box-shadow: 0 0 14px rgba(90, 255, 120, 0.35), inset 0 0 12px rgba(90, 255, 120, 0.12);
}

.screen--pvp .bj-act.is-primary .icon {
  color: var(--green-bright);
}

.screen--pvp .bj-act:disabled,
.screen--pvp .bj-act.is-primary:disabled {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.07);
  color: #6f7c72;
  box-shadow: none;
}

.screen--pvp .pv-table {
  padding-top: 38px;
}

.screen--pvp .pv-box {
  --me-ava: clamp(34px, 9.5cqw, 46px);
  width: min(100%, calc((var(--vh) - 340px) * 0.75));
}

@supports (width: 1cqh) {
  .screen--pvp .pv-box {
    width: min(100cqw, 75cqh);
  }
}

.screen--pvp .pv-label {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.08);
}

.screen--pvp .pv-seat.is-me {
  --ava: var(--me-ava);
}

.screen--pvp .pv-pot {
  top: 34.3%;
  flex-wrap: nowrap;
  gap: 3px;
}

.screen--pvp .pv-pot .pk-chip {
  width: 24px;
  height: 17px;
}

.screen--pvp .pv-pot .bj-pill {
  padding: 2px 11px;
  font-size: clamp(12px, 3.6cqw, 16px);
  line-height: 1.3;
}

.screen--pvp .pv-pot .bj-pill {
  white-space: nowrap;
}


.wl {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: calc(var(--safe-top) + 16px) 16px calc(var(--safe-bottom) + 16px);
  background: rgba(2, 6, 3, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: screen-in 0.2s ease-out;
}

.wl[hidden],
.wl-view[hidden],
.wl-icon-btn[hidden] {
  display: none;
}

.wl-box {
  width: 100%;
  max-width: 420px;
  max-height: 100%;
  overflow-y: auto;
  padding: 18px 16px 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(14, 34, 19, 0.97), rgba(5, 13, 7, 0.98));
  border: 1px solid rgba(110, 255, 140, 0.32);
  box-shadow: 0 0 32px rgba(70, 255, 110, 0.16), 0 24px 60px rgba(0, 0, 0, 0.7);
  overscroll-behavior: contain;
}

.wl-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  margin-bottom: 16px;
}

.wl-head h2 {
  grid-column: 2;
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  text-align: center;
}

.wl-icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #c9d6cc;
}

.wl-icon-btn .icon {
  width: 24px;
  height: 24px;
}

.wl-close {
  grid-column: 3;
}

.wl-balances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wl-bal {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px 32px 12px 14px;
  container-type: inline-size;
  border-radius: 16px;
  text-align: left;
  background: linear-gradient(160deg, rgba(60, 200, 95, 0.18), rgba(20, 60, 30, 0.35));
  border: 1px solid rgba(110, 255, 140, 0.4);
  box-shadow: inset 0 0 18px rgba(90, 255, 120, 0.08);
}

.wl-bal--bonus {
  background: linear-gradient(160deg, rgba(230, 190, 70, 0.14), rgba(60, 50, 20, 0.3));
  border-color: rgba(240, 200, 90, 0.38);
}

.wl-bal-label {
  font-size: 13px;
  color: #a9c2ae;
}

.wl-bal--bonus .wl-bal-label {
  color: #d6c79a;
}

.wl-bal-value {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wl-bal-value .icon {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--green);
}

.wl-bal--bonus .wl-bal-value .icon {
  color: #f2c94c;
}

.wl-bal-value b {
  overflow: hidden;
  font-size: clamp(13px, calc((100cqw - 80px) / 4.4), 24px);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wl-chev {
  flex: none;
  width: 18px;
  height: 18px;
  color: #8fa596;
}

.wl-bal .wl-chev {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

.wl-check {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}

.wl-check .icon {
  width: 14px;
  height: 14px;
  stroke-width: 3;
  opacity: 0;
  color: #062a10;
}

.wl-bal.is-selected {
  border-color: rgba(140, 255, 150, 0.7);
  box-shadow: 0 0 0 1px rgba(140, 255, 150, 0.35), 0 0 18px rgba(90, 255, 120, 0.22);
}

.wl-bal.is-selected .wl-check {
  border-color: transparent;
  background: var(--green);
}

.wl-bal--bonus.is-selected {
  border-color: rgba(250, 210, 100, 0.8);
  box-shadow: 0 0 0 1px rgba(250, 210, 100, 0.4), 0 0 18px rgba(240, 200, 90, 0.25);
}

.wl-bal--bonus.is-selected .wl-check {
  background: #f2c94c;
}

.wl-bal.is-selected .wl-check .icon {
  opacity: 1;
}

.balance.is-bonus .balance-value,
.balance.is-bonus .balance-unit {
  color: #f6d36b;
}

.balance.is-bonus .coins {
  fill: #f2c94c;
}

.nav-item.is-disabled {
  opacity: 0.38;
  filter: grayscale(1);
}

.wl-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 14px 0 12px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.wl-tabs--3 {
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 0;
}

.wl-tab {
  height: 42px;
  text-align: center;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #a6b3a9;
  border: 1px solid transparent;
}

.wl-tab.is-active {
  color: var(--green-bright);
  background: linear-gradient(160deg, rgba(70, 210, 100, 0.22), rgba(30, 90, 45, 0.3));
  border-color: rgba(110, 255, 140, 0.45);
}

.wl-lock {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 70, 70, 0.08);
  border: 1px solid rgba(255, 90, 90, 0.35);
  color: #ff7b7b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.wl-lock-link {
  color: #ffb0b0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wl-row.is-locked {
  opacity: 0.4;
  filter: grayscale(1);
  cursor: not-allowed;
}

.wl-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wl-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(120, 255, 140, 0.16);
}

.wl-row:active {
  transform: scale(0.99);
}

.wl-method-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.wl-method-text b {
  font-size: 17px;
  font-weight: 700;
}

.wl-method-text small {
  font-size: 13px;
  color: var(--muted);
}

.wl-history-link {
  margin-top: 18px;
  padding: 16px;
}

.wl-history-link > .icon:first-child {
  width: 22px;
  height: 22px;
  color: #aebcb2;
}

.wl-history-link span {
  flex: 1;
  font-size: 15px;
  color: #dbe5dd;
}

.wl-logo {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.wl-logo--usdt {
  background-image: url("pay/usdt.webp");
}

.wl-logo--xrocket {
  background-image: url("pay/xrocket.webp");
}

.wl-logo--cryptobot {
  background-image: url("pay/cryptobot.webp");
}

.wl-logo--ton {
  background-image: url("pay/net_gram.webp");
}

.wl-logo--other {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='32' fill='%231f3a27'/%3E%3Cpath fill='none' stroke='%2355ee76' stroke-width='4' stroke-linecap='round' d='M32 20v24M20 32h24'/%3E%3C/svg%3E");
}

.wl-coin {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.wl-coin > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wl-coin b {
  font-size: 18px;
}

.wl-coin small {
  font-size: 13px;
  color: var(--muted);
}

.wl-network {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(110, 255, 140, 0.3);
}

.wl-net-label {
  padding: 0 14px 0 16px;
  font-size: 15px;
  color: #c4d0c7;
}

.wl-net-btn {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  height: 52px;
  min-width: 0;
  padding: 0 14px;
  border-left: 1px solid rgba(110, 255, 140, 0.2);
  border-radius: 0 16px 16px 0;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

.wl-net-btn > span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wl-net-btn > .icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: #a7b6ab;
  transition: transform 0.15s ease;
}

.wl-network.is-open .wl-net-btn > .icon {
  transform: rotate(180deg);
}

.wl-net-ico {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: contain;
}

.wl-net-ico[hidden] {
  visibility: hidden;
}

.wl-net-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 5;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border-radius: 16px;
  background: #0b1a0f;
  border: 1px solid rgba(110, 255, 140, 0.3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.wl-network.is-open .wl-net-list {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s;
}

.wl-net-item {
  transition: background 0.12s ease, color 0.12s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.wl-net-item.is-active {
  background: rgba(90, 255, 120, 0.12);
  color: var(--green-bright);
}

.wl-net-item:active {
  background: rgba(255, 255, 255, 0.06);
}

.wl-qr {
  display: grid;
  place-items: center;
  width: 196px;
  height: 196px;
  margin: 16px auto;
  padding: 8px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(80, 230, 110, 0.35), 0 0 26px rgba(80, 230, 110, 0.3);
}

.wl-qr img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.wl-qr img,
.wl-address b,
.wl-note small,
.wl-note b {
  transition: opacity 0.18s ease;
}

.wl-deposit.is-loading .wl-qr img,
.wl-deposit.is-loading .wl-address b,
.wl-deposit.is-loading .wl-note small,
.wl-deposit.is-loading .wl-note b {
  opacity: 0.35;
}

.wl-qr img[hidden],
.wl-qr-wait[hidden] {
  display: none;
}

.wl-qr-wait {
  padding: 12px;
  font-size: 13px;
  color: #4a5a4e;
  text-align: center;
}

.wl-address {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 10px 10px 16px;
  border-radius: 16px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wl-address > span {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.wl-address small {
  font-size: 12px;
  color: var(--muted);
}

.wl-address b {
  display: block;
  overflow: hidden;
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  color: #f4faf5;
  white-space: nowrap;
}

.wl-address b.is-wrapped {
  white-space: normal;
  word-break: break-all;
  text-wrap: balance;
}

.wl-address > .icon {
  box-sizing: content-box;
  padding: 9px;
  border-radius: 12px;
  background: rgba(90, 255, 120, 0.1);
  color: var(--green-bright);
  flex: none;
  width: 20px;
  height: 20px;
}

.wl-note {
  display: flex;
  gap: 14px;
  margin: 12px 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.wl-note > .icon {
  flex: none;
  width: 24px;
  height: 24px;
  color: #6fb6ff;
}

.wl-note > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wl-note b {
  font-size: 14px;
  font-weight: 600;
}

.wl-note small {
  min-height: 2.8em;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.wl-list {
  display: flex;
  flex-direction: column;
}

.wl-empty {
  margin: 28px 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.wl-tx {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 11px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wl-tx:last-child {
  border-bottom: 0;
}

.wl-tx .wl-logo {
  width: 40px;
  height: 40px;
}

.wl-tx-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.wl-tx-text b {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wl-tx-text small {
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
}

.wl-tx-state {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.wl-tx-state.is-done {
  color: var(--green);
}

.wl-tx-state.is-pending {
  color: #f5a623;
}

.wl-tx-state.is-review {
  color: #6fb6ff;
}

.wl-tx-state.is-failed {
  color: #ff6b6b;
}

.wl-tx-amount {
  min-width: 54px;
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.wl-tx-amount.is-plus {
  color: var(--green);
}

.balance[role="button"] {
  cursor: pointer;
}

@media (max-width: 360px) {
  .wl-bal-value b {
    font-size: 20px;
  }

  .wl-tx {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .wl-tx .wl-logo {
    width: 38px;
    height: 38px;
  }

  .wl-tx-state {
    display: none;
  }
}

.screen--bjl .pv-panel .bj-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.screen--bjl .pv-box {
  container-type: inline-size;
}

.bl-cards[hidden],
.bl-split[hidden] {
  display: none;
}

.bl-split {
  display: flex;
  align-items: flex-start;
  gap: 4cqw;
}

.bl-part {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bl-cards--part {
  --bl-card: 11.5cqw;
}

.bl-cards--part img {
  margin-left: calc(var(--bl-card) * -0.42);
}

.bl-split .bl-part:not(.is-active) {
  opacity: 0.72;
}

.bl-split:not(:has(.is-active)) .bl-part {
  opacity: 1;
}

.bl-part.is-active {
  transform: translateY(-4px);
}

.bl-part.is-active .bl-total {
  border-color: var(--green-bright);
}

.bl-part.is-lost .bl-cards img {
  opacity: 0.5;
  filter: grayscale(0.6);
}

.bl-part.is-won .bl-total {
  background: var(--green);
  color: #03140a;
}

.bl-hand.is-split {
  flex-direction: column;
  gap: 3px;
}

.bl-hand.is-split .bl-part {
  flex-direction: row;
  gap: 4px;
}

.bl-hand.is-split .bl-part.is-active {
  transform: none;
}

.bl-hand.is-split .bl-part .bl-cards {
  --bl-card: 6.5cqw;
}

.bl-hand .bl-part.is-active .bl-total {
  border-color: var(--green-bright);
}

@supports not (width: 1cqw) {
  .bl-hand.is-split .bl-part .bl-cards { --bl-card: 22px; }
}

.bl-dealer {
  position: absolute;
  top: 7%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  pointer-events: none;
}

.bl-dealer-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #000000;
  border: 1px solid rgba(120, 255, 140, 0.25);
  font-size: 11px;
  font-weight: 700;
  color: #cfe0d3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bl-dealer-tag b {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(90, 255, 120, 0.16);
  color: var(--green-bright);
  font-size: 12px;
  letter-spacing: 0;
}

.bl-dealer-tag b[hidden] {
  display: none;
}

.bl-cards {
  display: flex;
  justify-content: center;
  min-height: 1px;
}

.bl-cards img {
  display: block;
  width: var(--bl-card, 8cqw);
  min-width: 22px;
  aspect-ratio: 0.72;
  margin-left: calc(var(--bl-card, 8cqw) * -0.45);
  border-radius: 4px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
  animation: bl-deal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bl-cards img.is-pending {
  visibility: hidden;
  animation: none;
}

.bl-cards img.is-flip {
  animation: bl-flip 0.35s ease-out both;
}

@keyframes bl-deal {
  from {
    opacity: 0;
    transform: translate(var(--dx, 0px), var(--dy, -40px)) rotate(-16deg) scale(0.55);
  }
  25% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bl-flip {
  from {
    transform: perspective(400px) rotateY(90deg);
  }
  to {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bl-cards img,
  .bl-cards img.is-flip {
    animation: none;
  }
}

.bl-cards img:first-child {
  margin-left: 0;
}

.bl-cards--dealer {
  --bl-card: 12.5cqw;
}

.bl-cards--dealer img {
  margin-left: calc(var(--bl-card) * -0.35);
}

.bl-mine {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-right: 4px;
  pointer-events: none;
}

.bl-me {
  min-height: calc(var(--bl-me-card) / 0.72 + 30px);
  --bl-me-card: clamp(46px, 13.5cqw, 60px);
}

.bl-me.is-watching .bl-mine {
  display: none;
}

.bl-cards--mine {
  --bl-card: var(--bl-me-card);
}

.bl-me .bl-cards--part {
  --bl-card: clamp(32px, 9cqw, 42px);
}

.bl-me .bl-split {
  gap: 10px;
}

.bl-me.is-split .pv-me-name {
  max-width: 24cqw;
}

.bl-cards--mine img {
  margin-left: calc(var(--bl-card) * -0.38);
}

.bl-cards--mine:has(img:nth-child(3)) img,
.bl-hand .bl-cards:has(img:nth-child(3)) img {
  margin-left: calc(var(--bl-card) * -0.5);
}

.bl-cards--mine:has(img:nth-child(4)) img,
.bl-hand .bl-cards:has(img:nth-child(4)) img {
  margin-left: calc(var(--bl-card) * -0.67);
}

.bl-cards--mine:has(img:nth-child(5)) img,
.bl-hand .bl-cards:has(img:nth-child(5)) img {
  margin-left: calc(var(--bl-card) * -0.75);
}

.bl-cards:has(img:nth-child(3)) img:first-child {
  margin-left: 0;
}

.bl-mine.is-lost .bl-cards img {
  opacity: 0.5;
  filter: grayscale(0.6);
}

.bl-mine.is-won .bl-total {
  background: var(--green);
  color: #03140a;
}

.bl-hand {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.bl-hand .bl-cards {
  --bl-card: 7.5cqw;
}

.bl-hand {
  --ava: clamp(40px, 12cqw, 58px);
}

.bl-hand.is-left {
  transform: translate(0, -50%);
}

.bl-hand.is-right {
  transform: translate(-100%, -50%);
}

.bl-hand.is-center {
  transform: translate(-50%, -50%);
}

.bl-total {
  padding: 2px 8px;
  border-radius: 999px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}

.bl-total[hidden] {
  display: none;
}

@supports not (width: 1cqw) {
  .bl-cards--dealer { --bl-card: 46px; }
  .bl-hand .bl-cards { --bl-card: 28px; }
}

.bl-betting[hidden],
.bl-actions[hidden] {
  display: none;
}

.bl-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.bl-chips::-webkit-scrollbar {
  display: none;
}

.bl-chip {
  flex: 1 0 auto;
  min-width: 48px;
  height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(120, 255, 140, 0.18);
  color: #dfe9e1;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.bl-chip.is-selected {
  background: linear-gradient(160deg, rgba(70, 210, 100, 0.25), rgba(30, 90, 45, 0.35));
  border-color: rgba(110, 255, 140, 0.55);
  color: var(--green-bright);
}

.bl-bet-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.bl-field {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(120, 255, 140, 0.2);
}

.bl-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  outline: none;
}

.bl-field span {
  font-size: 13px;
  color: var(--muted);
}

.bl-place {
  height: 52px;
  min-width: 136px;
  padding: 0 16px;
  font-size: 16px;
}

.screen--bjl .pv-panel > .bl-betting {
  grid-area: 2 / 1;
}

.screen--bjl .pv-panel > .bl-betting[hidden] {
  display: block;
  visibility: hidden;
  pointer-events: none;
}

.screen--pvp .pv-panel > .bl-betting,
.screen--pvp .pv-panel > .bj-actions,
.screen--pvp .pv-panel > .bj-after {
  transition: opacity 0.25s ease, visibility 0s;
}

.screen--pvp .pv-panel > .bl-betting[hidden],
.screen--pvp .pv-panel > .bj-actions[hidden],
.screen--pvp .pv-panel > .bj-after[hidden] {
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

@media (prefers-reduced-motion: reduce) {
  .screen--pvp .pv-panel > .bl-betting,
  .screen--pvp .pv-panel > .bj-actions,
  .screen--pvp .pv-panel > .bj-after {
    transition: none;
  }
}

.tp {
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-margin-top: 12px;
}

.tp-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 2px 0;
}

.tp-title h2 {
  font-size: 20px;
  font-weight: 800;
}

.tp-title small {
  color: var(--muted);
  font-size: 12.5px;
}

.tp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tp-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 12px;
}

.tp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
}

.tp-head-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tp-head-text b {
  font-size: 17px;
  font-weight: 800;
}

.tp-head-text small {
  color: var(--muted);
  font-size: 12.5px;
}

.tp-toggle {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(90, 255, 120, 0.1);
  border: 1px solid var(--line);
  color: var(--green-bright);
}

.tp-toggle .icon {
  width: 20px;
  height: 20px;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tp-card.is-open .tp-toggle .icon {
  transform: rotate(180deg);
}

.tp-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-more {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: -10px;
  transition: grid-template-rows 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), margin-top 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tp-more > .tp-rows {
  min-height: 0;
  overflow: hidden;
}

.tp-card.is-open .tp-more {
  grid-template-rows: 1fr;
  margin-top: -4px;
}

.tp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 7px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.tp-place {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #cfd9d1;
  font-size: 13px;
  font-weight: 800;
}

.tp-row.is-1 .tp-place {
  background: linear-gradient(150deg, #ffe27a, #e7a91e);
  color: #3a2600;
  box-shadow: 0 0 12px rgba(246, 200, 67, 0.45);
}

.tp-row.is-2 .tp-place {
  background: linear-gradient(150deg, #f1f5f8, #a9b4bc);
  color: #20272c;
}

.tp-row.is-3 .tp-place {
  background: linear-gradient(150deg, #f2b27c, #b96a32);
  color: #2e1503;
}

.tp-row.is-1 {
  border-color: rgba(246, 200, 67, 0.28);
}

.tp-who {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.tp-who b {
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tp-who small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tp-row.is-empty .tp-who b {
  color: var(--muted);
  font-weight: 600;
}

.tp-prize {
  flex: none;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(90, 255, 120, 0.12);
  border: 1px solid rgba(120, 255, 140, 0.28);
  color: var(--green-bright);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

.tp-row.is-empty .tp-prize {
  opacity: 0.7;
}

.tp-check {
  height: 46px;
  margin-top: 2px;
}

.tp-check:disabled {
  opacity: 0.6;
}

.tp-mine {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: tp-in 0.24s ease-out;
}

.tp-mine[hidden] {
  display: none;
}

.tp-mine.is-good {
  border-color: rgba(120, 255, 140, 0.35);
  background: rgba(90, 255, 120, 0.06);
}

.tp-mine p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.tp-mine p b {
  font-size: 17px;
  font-weight: 800;
}

.tp-mine small {
  color: var(--muted);
  font-size: 12.5px;
}

.tp-mine .tp-prev {
  margin-top: 4px;
  color: var(--green-bright);
}

.tp-claim {
  height: 46px;
  margin-top: 8px;
  font-size: 15px;
}

.tp-code {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.tp-code-value {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  padding: 0 12px 0 calc(12px + 0.06em);
  border-radius: 12px;
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(120, 255, 140, 0.45);
  color: var(--green-bright);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

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

@media (prefers-reduced-motion: reduce) {
  .tp-more,
  .tp-toggle .icon,
  .tp-mine {
    transition: none;
    animation: none;
  }
}

.wo-nets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.wo-net {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #dfe9e1;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.wo-net img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.wo-net small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.wo-net.is-active {
  background: rgba(90, 255, 120, 0.12);
  border-color: rgba(110, 255, 140, 0.55);
  color: #ffffff;
}

.wo-net.is-active small {
  color: var(--green-bright);
}

.wo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.wo-field > small {
  padding-left: 4px;
  color: var(--muted);
  font-size: 13px;
}

.wo-field input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(110, 255, 140, 0.22);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.wo-field input:focus {
  border-color: rgba(110, 255, 140, 0.6);
}

#wo-address {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13.5px;
}

.wo-amount {
  position: relative;
  display: flex;
  align-items: center;
}

.wo-amount input {
  padding-right: 128px;
  font-size: 18px;
  font-weight: 700;
}

.wo-amount > span {
  position: absolute;
  right: 78px;
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.wo-max {
  position: absolute;
  right: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 11px;
  background: rgba(90, 255, 120, 0.14);
  border: 1px solid rgba(110, 255, 140, 0.35);
  color: var(--green-bright);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.wo-sum {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.wo-sum div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: #c4d0c7;
}

.wo-sum b {
  color: #ffffff;
  font-size: 15px;
}

.wo-sum .wo-receive b {
  color: var(--green-bright);
  font-size: 19px;
}

#wo-note-box.is-warn {
  border-color: rgba(246, 200, 67, 0.45);
  background: rgba(246, 200, 67, 0.07);
}

.wo-active {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(90, 255, 120, 0.07);
  border: 1px solid rgba(110, 255, 140, 0.3);
  font-size: 14px;
  line-height: 1.45;
}

.wo-active[hidden] {
  display: none;
}

.wo-active b {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.wo-active a {
  color: var(--green-bright);
}

.wl-out .pk-confirm {
  margin-top: 14px;
}

.wl-network[hidden] {
  display: none;
}


.screen--pvp .pv-table {
  padding-top: 46px;
}

.app.is-fullscreen .screen--pvp {
  gap: 6px;
}

.screen--pvp .pv-felt-info--pk {
  top: 72%;
  gap: 1px;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: rgba(200, 255, 210, 0.4);
  font-size: clamp(9px, 2.6cqw, 11px);
  font-weight: 600;
  line-height: 1.25;
  text-shadow: none;
  transform: translateX(-50%);
}

.screen--pvp .pv-board img {
  top: 36.5%;
  width: 11.2%;
  height: auto;
  aspect-ratio: 420 / 592;
  border-radius: 5%;
  animation: pv-board-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes pv-board-in {
  from { opacity: 0; transform: translate(var(--dx, 0px), -55%) rotateY(90deg) scale(0.86); }
  55% { opacity: 1; }
  to { opacity: 1; transform: none; }
}

.screen--pvp .pv-pot {
  top: 28.6%;
}

.pv-fx {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.pv-fly {
  position: absolute;
  width: 16px;
  height: 14px;
  margin: -7px 0 0 -8px;
  opacity: 0.95;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.6s ease-in;
  will-change: transform;
}

.pv-fly svg,
.pv-fly .chip-img {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.screen--pvp .pv-seats .pv-seat {
  --ava: clamp(40px, 12cqw, 56px);
  width: auto;
  max-width: none;
  align-items: center;
  gap: 0;
  transform: translate(-50%, -50%);
  transition: left 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s;
}

.screen--pvp .pv-seats.is-nine .pv-seat {
  --ava: clamp(34px, 10cqw, 46px);
}

.screen--pvp .pv-seats .pv-ava {
  position: relative;
  z-index: 1;
  font-size: calc(var(--ava) * 0.34);
  transition: opacity 0.25s;
}

.screen--pvp .pv-seats .pv-seat .pv-label {
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  z-index: 2;
  align-items: center;
  min-width: 56px;
  max-width: 23cqw;
  margin: 0;
  padding: 3px 7px 4px;
  border-radius: 10px;
  background: rgba(2, 8, 4, 0.9);
  border: 1px solid rgba(146, 251, 149, 0.22);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  text-align: center;
  transform: translateX(-50%);
}

.screen--pvp .pv-seats .pv-seat .pv-name {
  font-size: 12px;
}

.screen--pvp .pv-seats .pv-seat .pv-stack {
  font-size: 10.5px;
}

.screen--pvp .pv-seats .pv-tag {
  bottom: -8px;
  z-index: 3;
  font-size: 9.5px;
}

.screen--pvp .pv-seats .pv-pos {
  position: absolute;
  top: -5px;
  right: -9px;
  z-index: 4;
  margin: 0;
  padding: 0 5px;
  font-size: 8.5px;
  line-height: 14px;
}

.screen--pvp .pv-seats .pv-seat.is-side-r .pv-pos {
  right: auto;
  left: -9px;
}

.screen--pvp .pv-seats .pv-hole {
  position: absolute;
  top: 50%;
  right: auto;
  left: calc(100% + 5px);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  margin: 0;
  transform: translateY(-50%);
}

.screen--pvp .pv-seats .pv-seat.is-side-r .pv-hole {
  right: calc(100% + 5px);
  left: auto;
}

.screen--pvp .pv-seats .pv-hole > * {
  width: clamp(13px, 4cqw, 18px);
  aspect-ratio: 0.72;
  margin: 0;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
  transform-origin: 50% 100%;
}

.screen--pvp .pv-seats .pv-hole > :first-child {
  transform: none;
}

.screen--pvp .pv-seats .pv-hole > :last-child {
  margin-left: 2px;
  transform: none;
}

.screen--pvp .pv-seats .pv-hole.is-dealt {
  animation: pv-fly-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--delay, 0s);
}

@keyframes pv-fly-in {
  from { opacity: 0; transform: translate(var(--dx, 0px), calc(var(--dy, 0px) - 50%)) scale(0.4); }
  to { opacity: 1; transform: translateY(-50%); }
}

.screen--pvp .pv-seats .pv-seat .pv-hole.is-open {
  top: 50%;
  right: auto;
  left: 50%;
  z-index: 2;
  align-items: center;
  transform: translate(-50%, -50%);
}

.screen--pvp .pv-seats .pv-hole.is-open > * {
  width: clamp(27px, 8.2cqw, 38px);
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.screen--pvp .pv-seats .pv-hole.is-open > :first-child {
  transform: rotate(-7deg) translate(2px, 1px);
}

.screen--pvp .pv-seats .pv-hole.is-open > :last-child {
  margin-right: 0;
  margin-left: -9px;
  transform: rotate(7deg) translateY(1px);
}

.screen--pvp .pv-seats .pv-hole.is-flip > * {
  animation: pv-flip 0.5s ease-out both;
}

.screen--pvp .pv-seats .pv-hole.is-flip > :last-child {
  animation-delay: 0.12s;
}

@keyframes pv-flip {
  from { opacity: 0.4; transform: rotateY(90deg) scale(0.9); }
}

.screen--pvp .pv-seats .pv-seat.is-shown .pv-ava {
  opacity: 0.22;
}

.screen--pvp .pv-seats .pv-seat.is-shown.is-win .pv-hole.is-open > * {
  box-shadow: 0 0 0 2px #f6c843, 0 0 16px rgba(246, 200, 67, 0.65), 0 3px 10px rgba(0, 0, 0, 0.7);
}

.pv-hand {
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  z-index: 3;
  padding: 1px 8px;
  border-radius: 999px;
  background: #0d1f12;
  border: 1px solid var(--line-strong);
  color: var(--green-bright);
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
  animation: pv-pop-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.screen--pvp .pv-seats .pv-seat.is-win .pv-hand {
  color: #f6c843;
  border-color: rgba(246, 200, 67, 0.5);
}

@keyframes pv-pop-in {
  from { opacity: 0; }
}


.screen--pvp .pv-seats .pv-seat.is-empty .pv-ava {
  background: rgba(2, 10, 5, 0.55);
  border: 2px dashed rgba(146, 251, 149, 0.32);
  color: rgba(146, 251, 149, 0.45);
  box-shadow: none;
}

.screen--pvp .pv-seats .pv-seat.is-empty.can-sit .pv-ava {
  background: rgba(10, 36, 18, 0.8);
  border-style: solid;
  border-color: rgba(146, 251, 149, 0.85);
  color: var(--green-bright);
  box-shadow: 0 0 14px rgba(90, 255, 120, 0.35);
  animation: pv-seat-pulse 1.8s ease-in-out infinite;
}

.screen--pvp .pv-seats .pv-seat.is-empty.can-sit .pv-ava:active {
  transform: scale(0.94);
}

.screen--pvp .pv-seats .pv-seat.is-empty .pv-empty-icon {
  width: 50%;
  height: 50%;
  stroke-width: 2.4;
}

@keyframes pv-seat-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(90, 255, 120, 0.25); }
  50% { box-shadow: 0 0 20px rgba(90, 255, 120, 0.6); }
}

.pv-seat-hint {
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  color: rgba(214, 255, 220, 0.78);
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 1px 3px #000;
  transform: translateX(-50%);
}

.screen--pvp .pv-seats .pv-bet {
  z-index: 2;
  padding: 2px 8px 2px 4px;
  background: rgba(2, 8, 4, 0.8);
  border: 1px solid rgba(146, 251, 149, 0.22);
  font-size: 11.5px;
}

.screen--pvp .pv-seats .pv-bet svg,
.screen--pvp .pv-seats .pv-bet .chip-img {
  width: 20px;
  height: 14px;
}

.screen--pvp .pv-seats .pv-bet.is-new {
  animation: pv-bet-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.screen--pvp .pv-seats .pv-seat .pv-bet.is-seat {
  --hole-w: calc(clamp(13px, 4cqw, 18px) * 2 + 2px);
  top: calc(50% + clamp(13px, 4cqw, 18px) / 1.44 + 4px);
  right: auto;
  left: calc(100% + 5px + var(--hole-w) / 2);
  z-index: 3;
  gap: 2px;
  padding: 1px 6px 1px 2px;
  font-size: 10px;
  transform: translateX(-50%);
}

.screen--pvp .pv-seats .pv-seat .pv-bet.is-seat .chip-img {
  width: 15px;
  height: 13px;
}

.screen--pvp .pv-seats .pv-seat.is-side-r .pv-bet.is-seat {
  right: calc(100% + 5px + var(--hole-w) / 2);
  left: auto;
  transform: translateX(50%);
}

.screen--pvp .pv-seats .pv-seat .pv-bet.is-seat.is-new {
  animation: pv-bet-pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes pv-bet-pop {
  from { opacity: 0; scale: 0.5; }
  to { opacity: 1; scale: 1; }
}

@keyframes pv-bet-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.pv-me {
  position: relative;
  z-index: 2;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: min(560px, calc(100% - 24px));
  min-height: 74px;
  margin: 0 auto;
  padding: 4px 2px 0;
}

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

.pv-me-who[hidden] {
  display: none;
}

.screen--pvp .pv-me-ava {
  --ava: clamp(52px, 15cqw, 64px);
  position: relative;
  flex: none;
  width: var(--ava);
  font-size: 22px;
  border: 2px solid rgba(146, 251, 149, 0.7);
  box-shadow: 0 0 14px rgba(90, 255, 120, 0.3), 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: border-color 0.25s, box-shadow 0.25s, opacity 0.25s;
}

.screen--pvp .pv-me.is-turn .pv-me-ava {
  border-color: #ffc94d;
  box-shadow: 0 0 0 3px rgba(255, 201, 77, 0.28), 0 0 18px rgba(255, 201, 77, 0.6);
}

.screen--pvp .pv-me.is-win .pv-me-ava {
  border-color: #f6c843;
  box-shadow: 0 0 0 3px rgba(246, 200, 67, 0.3), 0 0 22px rgba(246, 200, 67, 0.7);
}

.screen--pvp .pv-me.is-folded .pv-me-ava {
  opacity: 0.55;
}

.screen--pvp .pv-me-ava .pv-pos {
  position: absolute;
  top: -5px;
  right: -12px;
  z-index: 4;
  margin: 0;
  padding: 0 6px;
  font-size: 9px;
  line-height: 15px;
}

.screen--pvp .pv-me-ava .pv-tag {
  bottom: -8px;
  z-index: 4;
}

.pv-me-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.pv-me-name {
  max-width: 36cqw;
  overflow: hidden;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pv-me-stack {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(2, 8, 4, 0.82);
  border: 1px solid rgba(146, 251, 149, 0.3);
  color: #d8e3da;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pv-me-pick {
  flex: 1 1 auto;
  margin: 0;
  color: rgba(214, 255, 220, 0.72);
  font-size: clamp(15px, 4.4cqw, 19px);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(90, 255, 120, 0.4), 0 2px 6px rgba(0, 0, 0, 0.8);
}

.pv-me-pick[hidden] {
  display: none;
}

.pv-me.is-watching .pv-me-cards {
  display: none;
}

.pv-me-cards {
  position: relative;
  display: flex;
  flex: none;
  align-items: flex-end;
  padding-right: 6px;
}

.screen--pvp .pv-me .pv-mine {
  position: relative;
  z-index: auto;
  display: flex;
  align-items: flex-end;
  height: clamp(64px, 19cqw, 80px);
  min-width: 10px;
  perspective: 500px;
}

.screen--pvp .pv-me .pv-mine img {
  position: static;
  width: auto;
  height: 100%;
  aspect-ratio: 0.709;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
  filter: none;
  transform-origin: 50% 100%;
  animation: pv-mine-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.screen--pvp .pv-me .pv-mine img:first-child {
  transform: rotate(-8deg) translate(5px, 1px);
}

.screen--pvp .pv-me .pv-mine img:last-child {
  margin-left: -16px;
  transform: rotate(8deg);
  animation-delay: 0.12s;
}

.screen--pvp .pv-me .pv-mine.is-folded img {
  opacity: 0.35;
  filter: grayscale(0.8);
}

@keyframes pv-mine-in {
  from { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, 0px)) rotateY(90deg) scale(0.5); }
  45% { opacity: 1; }
}

.pv-me-hand {
  position: absolute;
  bottom: -6px;
  left: 50%;
  z-index: 2;
  padding: 1px 9px;
  border-radius: 999px;
  background: #0d1f12;
  border: 1px solid var(--line-strong);
  color: var(--green-bright);
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
}

.pv-me-hand[hidden] {
  display: none;
}

.screen--pvp .pv-me.is-win .pv-me-hand {
  color: #f6c843;
  border-color: rgba(246, 200, 67, 0.5);
}

.tour-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tour-list[hidden] {
  display: none;
}

.tour-card,
.tour-full {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(128, 94, 18, 0.97), rgba(52, 39, 9, 0.97) 50%, rgba(20, 16, 5, 0.98));
  border: 1px solid rgba(255, 210, 96, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 26px rgba(255, 190, 60, 0.2), inset 0 1px 0 rgba(255, 233, 170, 0.28);
}

.tour-card::before,
.tour-full::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% -10%, rgba(255, 214, 102, 0.38), transparent 55%);
  pointer-events: none;
}

.tour-card {
  padding: 14px;
  cursor: pointer;
}

.tour-card.is-done {
  opacity: 0.85;
}

.tour-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tour-head-text {
  min-width: 0;
}

.tour-name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffe7a3;
}

.tour-head-text small,
.tour-full .tour-head p {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: rgba(255, 228, 160, 0.68);
}

.tour-cup {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffe39a, #d9a43a);
  color: #3a2905;
  box-shadow: 0 4px 14px rgba(255, 190, 60, 0.4);
}

.tour-cup .icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.tour-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-top: 12px;
}

.tour-cell small {
  display: block;
  font-size: 11.5px;
  color: rgba(255, 228, 160, 0.62);
}

.tour-cell b {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  overflow-wrap: anywhere;
}

.tour-cell.is-gold b {
  font-size: 21px;
  color: #ffd45c;
  text-shadow: 0 0 14px rgba(255, 196, 60, 0.4);
}

.tour-foot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.tour-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 212, 92, 0.14);
  border: 1px solid rgba(255, 212, 92, 0.38);
  color: #ffd45c;
  font-size: 12px;
  font-weight: 700;
}

.tour-badge[hidden] {
  display: none;
}

.tour-btn {
  flex: none;
  margin-left: auto;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe7a3, #f0b53c);
  color: #2c1f02;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(240, 181, 60, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.tour-btn:active {
  transform: scale(0.96);
}

.tour-full {
  padding: 18px 16px 16px;
  border-radius: 22px;
}

.tour-full .tour-head h1 {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffe7a3;
}

.tour-full .tour-cup {
  width: 46px;
  height: 46px;
}

.tour-full > .tour-badge {
  position: relative;
  display: inline-block;
  margin-top: 10px;
}

.tour-full .tour-grid {
  gap: 14px 12px;
  margin-top: 16px;
}

.tour-places {
  position: relative;
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 212, 92, 0.18);
}

.tour-places-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.tour-places-head b {
  font-size: 16px;
  font-weight: 800;
}

.tour-places-head small {
  color: var(--muted);
  font-size: 12px;
}

.tour-places-head small[hidden] {
  display: none;
}

.tour-places-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.tour-place {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.tour-medal {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 212, 92, 0.1);
  color: #ffd45c;
  font-size: 17px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.tour-place-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tour-place-name b {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.tour-place-name small {
  color: var(--muted);
  font-size: 11.5px;
}

.tour-place-sum {
  color: #ffd45c;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.tour-rules {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 0;
  padding: 12px 0 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.roll-btn.tour-go {
  margin-top: 14px;
  background: linear-gradient(100deg, #ffe7a3 0%, #f7c75a 55%, #e9a92f 100%);
  color: #2c1f02;
  box-shadow: 0 0 24px rgba(255, 190, 60, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -2px 0 rgba(120, 70, 0, 0.25);
}

.roll-btn.tour-go.is-idle,
.roll-btn.tour-go:disabled {
  opacity: 0.6;
  box-shadow: none;
}

.ghost-btn.tour-unreg {
  color: #ff8b8b;
}

.ghost-btn.tour-unreg[hidden] {
  display: none;
}

.pv-meta-level {
  position: absolute;
  top: 92%;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transform: translate(-50%, -50%);
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(40, 28, 4, 0.9);
  border: 1px solid rgba(255, 210, 96, 0.45);
  color: #ffd45c;
  font-size: clamp(8px, 2.3cqw, 10px);
  pointer-events: none;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.pv-meta-level span {
  color: rgba(255, 228, 160, 0.8);
  font-size: 0.92em;
  font-weight: 600;
}

.screen--pvp .pv-pot {
  transform: translate(-50%, var(--pot-shift, 0px)) scale(var(--pot-scale, 1));
  transition: transform 0.2s ease;
}

.screen--pvp .pv-felt-info--pk {
  top: 66.5%;
}

.screen--pvp .pv-seats .pv-seat.is-side-l .pv-bet.is-seat {
  left: calc(100% + 5px);
  transform: none;
}

.screen--pvp .pv-seats .pv-seat.is-side-r .pv-bet.is-seat {
  right: calc(100% + 5px);
  left: auto;
  transform: none;
}

.pv-meta-level[hidden] {
  display: none;
}

.tour-full > .tour-badge[hidden] {
  display: none;
}

.tour-place-name small,
.tour-places-head small {
  white-space: nowrap;
}

.pv-round .chat-badge:not([hidden]) {
  display: block;
}

.pv-chat-btn .chat-badge {
  top: 1px;
  right: 1px;
  width: 11px;
  min-width: 0;
  height: 11px;
  padding: 0;
  border: 2px solid #08120b;
  font-size: 0;
  box-shadow: 0 0 8px rgba(255, 90, 90, 0.85);
  animation: chat-dot-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes chat-dot-in {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: none; }
}

.tour-place-name b {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tour-place.is-me {
  background: rgba(255, 212, 92, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 212, 92, 0.5);
}

.tour-more {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 212, 92, 0.1);
  border: 1px solid rgba(255, 212, 92, 0.35);
  color: #ffd45c;
  font-size: 13.5px;
  font-weight: 700;
}

.tour-more[hidden],
.tour-pager[hidden] {
  display: none;
}

.tour-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
  color: rgba(255, 236, 190, 0.85);
  font-size: 13px;
  font-weight: 700;
}

.tour-page-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 212, 92, 0.1);
  border: 1px solid rgba(255, 212, 92, 0.35);
  color: #ffd45c;
  font-size: 20px;
  line-height: 1;
}

.tour-page-btn:disabled {
  opacity: 0.35;
}

.lc-blinds {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.lc-blinds[hidden],
.field-label[hidden] {
  display: none;
}

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

.lc-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lc-stat small {
  font-size: 12px;
  color: var(--muted);
}

.lc-stat b {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: clamp(13px, 4.6cqw, 18px);
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lc-stat b span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lc-chip {
  flex: none;
  width: 24px;
  height: 21px;
  filter: none;
}

.lc-range {
  width: 100%;
  height: 32px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.lc-range::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #27cf55, #92fb95 var(--fill, 0%), rgba(255, 255, 255, 0.1) var(--fill, 0%));
}

.lc-range::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.lc-range::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #27cf55, #92fb95);
}

.lc-range::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -10px;
  border-radius: 50%;
  border: 3px solid #0a1a0e;
  background: radial-gradient(circle at 50% 40%, #b6ffb0, #4fe37c);
  box-shadow: 0 0 12px rgba(90, 255, 120, 0.6), 0 4px 10px rgba(0, 0, 0, 0.5);
  -webkit-appearance: none;
  appearance: none;
}

.lc-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid #0a1a0e;
  background: radial-gradient(circle at 50% 40%, #b6ffb0, #4fe37c);
  box-shadow: 0 0 12px rgba(90, 255, 120, 0.6), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.sit-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
  text-align: left;
}

.sit-amount {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 14px;
  border-radius: 14px;
  background: #020403;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.sit-amount input {
  flex: 1 1 auto;
  min-width: 0;
  background: none;
  color: #ffffff;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  outline: 0;
  user-select: text;
  -webkit-user-select: text;
}

.sit-amount input.is-invalid {
  color: #ff3b3b;
}

.sit-amount span {
  flex: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.sit-bounds {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.sit-hint {
  min-height: 16px;
  margin: 0;
  color: #b9c5bc;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.sit-hint.is-error {
  color: #ff6b6b;
}
