:root {
  color-scheme: dark;
  --bg: #07080b;
  --panel: #10131a;
  --panel-2: #161a23;
  --panel-3: #1c212c;
  --line: #2b3240;
  --text: #f2f6ff;
  --muted: #9aa6b8;
  --amber: #f6b64a;
  --teal: #43d6be;
  --red: #f36b6b;
  --blue: #7aa7ff;
  --green: #76d67a;
  --shadow: rgba(0, 0, 0, 0.32);
}

.crashGameApp {
  --crash-bg: #050605;
  --crash-panel: rgba(5, 7, 7, 0.88);
  --crash-line: rgba(221, 149, 51, 0.32);
  --crash-gold: #f4bf62;
  --crash-text: #f8f0e3;
  --crash-muted: #b8aa97;
  width: min(430px, 100vw);
  min-height: 100svh;
  margin: 0 auto;
  padding: 10px;
  color: var(--crash-text);
  background:
    radial-gradient(circle at 50% 38%, rgba(209, 130, 27, 0.15), transparent 41%),
    linear-gradient(180deg, #090b0b, #030404 70%);
  overflow: hidden;
}

.crashGameApp button,
.crashGameApp input {
  font: inherit;
}

.crashTopbar {
  height: 48px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.crashIconButton,
.crashBalanceButton {
  border: 1px solid var(--crash-line);
  color: var(--crash-gold);
  background: rgba(5, 7, 7, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 231, 174, 0.08);
}

.crashIconButton {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 34px;
  line-height: 1;
}

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

.crashBrandMark {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 10px;
  background:
    linear-gradient(135deg, transparent 46%, var(--crash-gold) 47% 53%, transparent 54%),
    radial-gradient(circle at 62% 35%, #111 0 3px, transparent 4px),
    linear-gradient(145deg, #18100a, #d58b24);
  box-shadow: 0 0 20px rgba(244, 191, 98, 0.22);
  transform: rotate(-8deg);
}

.crashBrand strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crashBrand small {
  display: block;
  margin-top: 3px;
  color: var(--crash-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.crashBalanceButton {
  min-width: 106px;
  max-width: 132px;
  height: 42px;
  padding: 0 12px;
  overflow: hidden;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.crashStage {
  position: relative;
  height: clamp(420px, 49svh, 470px);
  overflow: hidden;
  border: 1px solid var(--crash-line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.28)),
    url("ChatGPT Image 27 мая 2026 г., 19_32_31 (2).png") center bottom / cover no-repeat,
    #060707;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 231, 174, 0.08),
    inset 0 0 62px rgba(0, 0, 0, 0.46);
}

.crashStage::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 43%, rgba(255, 190, 88, 0.13), transparent 24%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.32), transparent 20%, transparent 78%, rgba(0, 0, 0, 0.24));
  content: "";
}

.crashStage canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.crashRocket {
  position: absolute;
  z-index: 4;
  width: clamp(132px, 38vw, 174px);
  height: auto;
  pointer-events: none;
  filter:
    drop-shadow(0 0 18px rgba(255, 180, 64, 0.46))
    drop-shadow(0 20px 24px rgba(0, 0, 0, 0.32));
  transform-origin: 39% 51%;
  will-change: transform, left, top;
}

.crashHistory {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.crashHistoryLabel,
.crashHistory b {
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(5, 7, 7, 0.62);
  backdrop-filter: blur(10px);
}

.crashHistoryLabel {
  padding: 0 9px;
  color: var(--crash-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.crashHistory b {
  min-width: 52px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d9cdbb;
  font-size: 12px;
}

.crashHistory b.win {
  border-color: rgba(244, 191, 98, 0.52);
  color: var(--crash-gold);
}

.crashHistory b.lose {
  opacity: 0.72;
}

.crashProofLine {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  z-index: 5;
  overflow: hidden;
  color: rgba(248, 240, 227, 0.52);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.crashFlightLabel {
  position: absolute;
  left: 50%;
  top: 33%;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffefae;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 208, 104, 0.52);
  white-space: nowrap;
  pointer-events: none;
}

.crashFlightLabel::before,
.crashFlightLabel::after {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 205, 104, 0.75), transparent);
  content: "";
}

.crashMultiplier {
  position: absolute;
  left: 50%;
  top: 43%;
  z-index: 5;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: baseline;
  gap: 6px;
  pointer-events: none;
  filter: drop-shadow(0 0 24px rgba(255, 196, 92, 0.18));
}

.crashMultiplier strong,
.crashMultiplier span,
.crashCountdown strong {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.86;
  background: linear-gradient(180deg, #fff6c9 0%, #f7cf72 36%, #b87424 74%, #fff0b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 0 rgba(120, 68, 16, 0.44),
    0 12px 42px rgba(0, 0, 0, 0.46);
}

.crashMultiplier strong {
  font-size: clamp(76px, 21vw, 112px);
  font-weight: 500;
}

.crashMultiplier span {
  font-size: 52px;
  font-weight: 500;
}

.crashCountdown {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 7;
  width: min(300px, calc(100% - 54px));
  padding: 18px 16px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(222, 150, 51, 0.42);
  border-radius: 22px;
  background: rgba(5, 7, 7, 0.74);
  box-shadow: 0 0 42px rgba(222, 150, 51, 0.14);
  text-align: center;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.crashCountdown span {
  display: block;
  color: var(--crash-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.crashCountdown strong {
  display: block;
  margin-top: 7px;
  font-size: 46px;
  font-weight: 500;
}

.crashBoomText {
  position: absolute;
  left: 50%;
  top: 55%;
  z-index: 6;
  transform: translateX(-50%);
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(255, 83, 103, 0.6);
  opacity: 0;
  pointer-events: none;
}

.crashPhase-idle .crashCountdown,
.crashPhase-flying .crashCountdown,
.crashPhase-cashed .crashCountdown,
.crashPhase-crashed .crashCountdown,
.crashPhase-idle .crashFlightLabel,
.crashPhase-betting .crashFlightLabel,
.crashPhase-crashed .crashFlightLabel {
  opacity: 0;
}

.crashPhase-idle .crashMultiplier,
.crashPhase-betting .crashMultiplier {
  opacity: 0.18;
}

.crashPhase-crashed .crashBoomText {
  opacity: 1;
}

.crashControls {
  padding: 12px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--crash-line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--crash-panel);
  box-shadow:
    0 18px 58px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 231, 174, 0.08);
}

.crashAmountRow {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  gap: 10px;
}

.crashStepButton,
.crashAmountBox,
.crashQuick button,
.crashSoundRow {
  border: 1px solid rgba(222, 150, 51, 0.25);
  background: rgba(7, 9, 9, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 231, 174, 0.05);
}

.crashStepButton {
  height: 64px;
  border-radius: 16px;
  color: var(--crash-gold);
  font-size: 34px;
  line-height: 1;
  font-weight: 300;
}

.crashAmountBox {
  height: 64px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 5px 8px 6px;
  border-radius: 16px;
  text-align: center;
}

.crashAmountBox span {
  color: var(--crash-muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.crashAmountBox input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  text-align: center;
  font-size: 24px;
  line-height: 0.95;
  font-weight: 950;
}

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

.crashQuick button {
  height: 40px;
  border-radius: 13px;
  color: #d6ccba;
  font-size: 15px;
  font-weight: 800;
}

.crashQuick button.active,
.crashQuick button:hover {
  border-color: #f3b146;
  color: var(--crash-gold);
  box-shadow: 0 0 20px rgba(222, 150, 51, 0.12), inset 0 1px 0 rgba(255, 231, 174, 0.1);
}

.crashWinPill {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border: 1px solid rgba(57, 255, 92, 0.62);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 50%, rgba(57, 255, 92, 0.18), transparent 36%),
    rgba(3, 18, 10, 0.72);
  box-shadow: 0 0 24px rgba(57, 255, 92, 0.12), inset 0 1px 0 rgba(190, 255, 204, 0.1);
}

.crashWinPill > span {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(57, 255, 92, 0.58);
  border-radius: 10px;
  color: #4aff63;
  background: rgba(57, 255, 92, 0.08);
}

.crashWinPill > span::before {
  width: 18px;
  height: 18px;
  background: currentColor;
  content: "";
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 4v24M4 16h24' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 4v24M4 16h24' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.crashWinPill strong {
  display: block;
  color: #4aff63;
  font-size: 20px;
  line-height: 1;
  font-weight: 950;
}

.crashWinPill small {
  display: block;
  margin-top: 3px;
  color: rgba(248, 240, 227, 0.78);
  font-size: 11px;
  font-weight: 800;
}

.crashSoundRow {
  min-height: 50px;
  padding: 8px 11px 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 16px;
  color: #d6ccba;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

.crashSoundRow i {
  width: 15px;
  height: 15px;
  display: inline-block;
  border: 3px solid var(--crash-gold);
  border-right: 0;
  border-radius: 50%;
}

.crashToggle {
  flex: 0 0 auto;
  width: 70px;
  height: 38px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #9f621b, #f1b33f);
}

.crashToggle b {
  display: block;
  width: 30px;
  height: 30px;
  margin-left: auto;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
}

.crashToggle.off {
  background: rgba(255, 255, 255, 0.08);
}

.crashToggle.off b {
  margin-left: 0;
  background: #9d9284;
}

.crashAction {
  min-height: 64px;
  border: 1px solid #f1b33f;
  border-radius: 18px;
  color: #f0c16e;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 238, 179, 0.32), transparent 42%),
    linear-gradient(180deg, rgba(92, 55, 18, 0.9), rgba(42, 25, 12, 0.96));
  box-shadow:
    0 0 30px rgba(222, 150, 51, 0.18),
    inset 0 1px 0 rgba(255, 240, 190, 0.14);
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.crashAction.cashout {
  color: #06140c;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.48), transparent 38%),
    linear-gradient(135deg, #35d88e, #9dffd2);
  border-color: rgba(157, 255, 210, 0.78);
  box-shadow: 0 0 34px rgba(53, 216, 142, 0.24);
  font-size: 22px;
}

.crashAction.won {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff1bd;
  border-color: rgba(255, 211, 102, 0.88);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 240, 177, 0.26), transparent 42%),
    linear-gradient(180deg, rgba(78, 53, 19, 0.96), rgba(20, 15, 10, 0.98));
  box-shadow:
    0 0 0 1px rgba(255, 239, 182, 0.08),
    0 0 30px rgba(244, 191, 98, 0.18),
    inset 0 1px 0 rgba(255, 249, 219, 0.18),
    inset 0 -12px 30px rgba(209, 130, 27, 0.14);
  opacity: 1;
}

.crashAction.won::before {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: block;
  background: currentColor;
  content: "";
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 14V10a6 6 0 0 1 12 0v4' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round'/%3E%3Crect x='6.5' y='13' width='19' height='15' rx='5' fill='none' stroke='black' stroke-width='3.2'/%3E%3Ccircle cx='16' cy='20.5' r='2.1' fill='black'/%3E%3Cpath d='M16 22.2v3.2' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 14V10a6 6 0 0 1 12 0v4' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round'/%3E%3Crect x='6.5' y='13' width='19' height='15' rx='5' fill='none' stroke='black' stroke-width='3.2'/%3E%3Ccircle cx='16' cy='20.5' r='2.1' fill='black'/%3E%3Cpath d='M16 22.2v3.2' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.crashAction.watching,
.crashAction:disabled {
  cursor: default;
  opacity: 0.76;
}

.crashAction.won:disabled {
  opacity: 1;
}

.crashStatus {
  color: #ffcf85;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

@media (min-width: 761px) {
  .crashGameApp {
    width: 430px;
  }
}

@media (max-width: 380px) {
  .crashGameApp {
    padding: 8px;
  }

  .crashStage {
    height: 420px;
  }

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

  .crashQuick button {
    font-size: 13px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(135deg, #07080b 0%, #11141b 48%, #0a1011 100%);
  background-size: 72px 72px, 72px 72px, auto;
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 14px;
  background: #202735;
  color: var(--text);
  cursor: pointer;
}

button:hover:not(:disabled) {
  border-color: #4b5b73;
  background: #283142;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #0c0f15;
  color: var(--text);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.appShell {
  width: min(1320px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 0 44px;
}

.topbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brandMark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #12100b;
  background: linear-gradient(135deg, var(--amber), #ffe2a3);
  font-weight: 900;
}

.brandText {
  display: grid;
  gap: 2px;
}

.brandText strong {
  font-size: 20px;
  letter-spacing: 0;
}

.brandText span,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.accountBox {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.balancePill,
.statusPill,
.modePill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.mainGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
  padding-top: 22px;
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(16, 19, 26, 0.9);
  box-shadow: 0 18px 44px var(--shadow);
}

.heroBand {
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: center;
  padding: 28px;
  overflow: hidden;
}

.heroCopy {
  display: grid;
  gap: 12px;
}

.eyebrow {
  width: fit-content;
  border: 1px solid rgba(246, 182, 74, 0.32);
  border-radius: 8px;
  padding: 7px 10px;
  color: #ffd889;
  background: rgba(246, 182, 74, 0.08);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 630px;
  color: #c8d0de;
  line-height: 1.6;
}

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

.miniStat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.miniStat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.miniStat strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.tableVisual {
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(246, 182, 74, 0.16), transparent 38%),
    linear-gradient(315deg, rgba(67, 214, 190, 0.14), transparent 38%),
    #0c1117;
  display: grid;
  gap: 12px;
}

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

.tableChip,
.tableCell {
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.tableChip:nth-child(2n) {
  background: rgba(246, 182, 74, 0.28);
}

.tableChip:nth-child(3n) {
  background: rgba(67, 214, 190, 0.24);
}

.gamesSection {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.sectionHead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.sectionHead h2 {
  font-size: 28px;
}

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

.gameCard {
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 14px;
  align-content: space-between;
  background: linear-gradient(180deg, rgba(22, 26, 35, 0.94), rgba(12, 15, 21, 0.96));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.gameCard:hover {
  transform: translateY(-2px);
  border-color: #46566f;
}

.gameCard.amber {
  border-top: 3px solid var(--amber);
}

.gameCard.teal {
  border-top: 3px solid var(--teal);
}

.gameCard.red {
  border-top: 3px solid var(--red);
}

.gameVisual {
  min-height: 145px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #0a0e13;
  overflow: hidden;
}

.diceFace {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  background: #f7f2e7;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 14px;
  gap: 8px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}

.pip {
  border-radius: 50%;
  background: #15171d;
}

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

.rpsToken {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid #344052;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: rgba(67, 214, 190, 0.08);
}

.gridVisual {
  width: 132px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.gridVisual span {
  aspect-ratio: 1;
  border-radius: 5px;
  background: #242a35;
}

.gridVisual span:nth-child(7),
.gridVisual span:nth-child(13),
.gridVisual span:nth-child(19),
.gridVisual span:nth-child(25) {
  background: rgba(243, 107, 107, 0.74);
}

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

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

.gameTitleRow h3 {
  font-size: 24px;
}

.gameMeta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gameMeta span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  color: #dbe5f6;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 800;
}

.gameCard p {
  color: var(--muted);
  line-height: 1.55;
}

.primary {
  border-color: rgba(246, 182, 74, 0.48);
  background: #d9952b;
  color: #171006;
  font-weight: 900;
}

.primary:hover:not(:disabled) {
  border-color: #ffd27a;
  background: #f0aa36;
}

.danger {
  border-color: rgba(243, 107, 107, 0.4);
  background: rgba(243, 107, 107, 0.15);
  color: #ffd4d4;
}

.ghost {
  background: rgba(255, 255, 255, 0.035);
}

.authPanel {
  padding: 18px;
  display: grid;
  gap: 14px;
  position: sticky;
  top: 18px;
}

.authTabs,
.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

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

.authTabs button,
.segmented button {
  background: rgba(255, 255, 255, 0.035);
}

.authTabs button.active,
.segmented button.active {
  border-color: var(--blue);
  background: rgba(122, 167, 255, 0.15);
}

.authForm,
.createForm,
.joinBox {
  display: grid;
  gap: 12px;
}

.statusLine {
  min-height: 18px;
  color: #ffd889;
  font-size: 13px;
}

.lobbyLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
  padding-top: 22px;
}

.lobbyMain,
.lobbySide {
  padding: 18px;
}

.lobbyHeader {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.lobbyTitle {
  display: grid;
  gap: 8px;
}

.lobbyTitle h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.playersGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.playerSeat {
  min-height: 90px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.playerSeat.active {
  border-color: rgba(118, 214, 122, 0.48);
}

.playerSeat span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.playerSeat strong {
  font-size: 18px;
}

.inviteBox {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

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

.gameSurface {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #0b0f15;
}

.diceArena {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
}

.dieResult {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  gap: 8px;
  align-content: center;
  background: rgba(255, 255, 255, 0.035);
}

.dieBig {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f7f2e7;
  color: #11151c;
  font-size: 42px;
  font-weight: 950;
}

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

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

.scoreCell {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.scoreCell span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.scoreCell strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

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

.choiceButton {
  min-height: 88px;
  display: grid;
  gap: 6px;
  place-items: center;
  background: #151b24;
}

.choiceButton b {
  font-size: 28px;
}

.rpsGameApp {
  min-height: 100vh;
  padding: 28px clamp(14px, 4vw, 48px);
  background:
    radial-gradient(circle at 50% 45%, rgba(246, 182, 74, 0.12), transparent 34%),
    radial-gradient(circle at 72% 40%, rgba(42, 145, 255, 0.12), transparent 30%),
    linear-gradient(90deg, rgba(122, 167, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(122, 167, 255, 0.028) 1px, transparent 1px),
    #030811;
  background-size: auto, auto, 54px 54px, 54px 54px, auto;
}

.rpsDuelSurface {
  max-width: 920px;
  margin: 0 auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.rpsTop {
  display: grid;
  grid-template-columns: 1fr auto 56px;
  align-items: center;
  gap: 16px;
}

.rpsBrand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rpsLogo {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(246, 182, 74, 0.7);
  border-radius: 14px;
  color: #ffd66b;
  font-size: 30px;
  box-shadow: 0 0 26px rgba(246, 182, 74, 0.2);
}

.rpsBrand h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
}

.rpsSettingsBtn {
  width: 56px;
  height: 56px;
  border-color: rgba(246, 182, 74, 0.32);
  color: #ffd66b;
  font-size: 22px;
}

.rpsStats {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.rpsStat {
  min-width: 142px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.rpsStat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.rpsStat strong {
  margin-left: 6px;
  font-size: 18px;
}

.rpsPlayers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 48px 0 18px;
}

.rpsPlayerBar {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(246, 182, 74, 0.13), rgba(255, 255, 255, 0.025));
}

.rpsPlayerBar.right {
  justify-content: flex-end;
  background: linear-gradient(270deg, rgba(42, 145, 255, 0.16), rgba(255, 255, 255, 0.025));
}

.rpsPlayerBar span:not(.rpsAvatar) {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.rpsPlayerBar strong {
  display: block;
  margin-top: 3px;
  font-size: 22px;
}

.rpsAvatar,
.rpsPlayerBar em {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(246, 182, 74, 0.72);
  border-radius: 50%;
  color: #ffd66b;
  font-style: normal;
  font-weight: 950;
}

.rpsPlayerBar.right .rpsAvatar,
.rpsPlayerBar.right em {
  border-color: rgba(42, 145, 255, 0.78);
  color: #6fb5ff;
}

.rpsStage {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.rpsStage::before {
  content: "";
  position: absolute;
  width: min(720px, 96vw);
  aspect-ratio: 1;
  border: 2px solid rgba(246, 182, 74, 0.78);
  border-radius: 50%;
  box-shadow:
    0 0 22px rgba(246, 182, 74, 0.34),
    inset 0 0 42px rgba(246, 182, 74, 0.08);
  opacity: 0.85;
}

.rpsPulseRing {
  position: absolute;
  width: min(650px, 88vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(246, 182, 74, 0.4);
  animation: rpsPulse 1100ms ease-in-out infinite;
}

.rpsCountdown,
.rpsReadyCard,
.rpsResultCard {
  position: relative;
  z-index: 1;
}

.rpsCountdown span,
.rpsPrompt {
  color: rgba(255, 255, 255, 0.88);
  font-size: 24px;
}

.rpsCountdown strong {
  display: block;
  color: #ffd66b;
  font-size: clamp(140px, 32vw, 260px);
  line-height: 0.9;
  text-shadow: 0 0 30px rgba(246, 182, 74, 0.55);
}

.rpsCountdown small {
  color: #ffd66b;
  font-size: 24px;
}

.rpsChoiceTimer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #ffd66b;
}

.rpsChoiceTimer strong {
  font-size: 48px;
}

.rpsPrompt {
  position: relative;
  z-index: 1;
  margin-top: -18px;
}

.rpsMainHand {
  position: relative;
  z-index: 1;
  color: #ffd66b;
  font-size: clamp(150px, 32vw, 300px);
  line-height: 1;
  text-shadow: 0 0 36px rgba(246, 182, 74, 0.6);
  animation: rpsFloat 1400ms ease-in-out infinite;
}

.rpsMainHand.locked {
  animation: rpsLocked 420ms ease both;
}

.rpsReadyCard {
  min-width: min(420px, 80vw);
  margin-top: -18px;
  padding: 18px 22px;
  border: 1px solid rgba(246, 182, 74, 0.42);
  border-radius: 8px;
  background: rgba(6, 10, 17, 0.78);
  box-shadow: 0 0 26px rgba(246, 182, 74, 0.12);
}

.rpsReadyCard strong {
  display: block;
  color: #ffd66b;
  font-size: 28px;
}

.rpsReadyCard span {
  color: var(--muted);
  font-size: 18px;
}

.rpsClash {
  position: relative;
  z-index: 1;
  width: min(780px, 96vw);
  min-height: 340px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.rpsClash::before {
  content: "";
  position: absolute;
  inset: 18% 34%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.92), rgba(246, 182, 74, 0.28) 28%, transparent 64%);
  filter: blur(2px);
}

.rpsClashHand {
  z-index: 1;
  color: #ffd66b;
  font-size: clamp(110px, 24vw, 220px);
  text-shadow: 0 0 30px rgba(246, 182, 74, 0.52);
}

.rpsClashHand.enemy {
  color: #55aaff;
  transform: scaleX(-1);
  text-shadow: 0 0 30px rgba(42, 145, 255, 0.55);
}

.rpsClashBurst {
  z-index: 2;
  color: #ffd66b;
  font-size: clamp(26px, 6vw, 54px);
  font-weight: 1000;
  font-style: italic;
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(246, 182, 74, 0.6);
}

.rpsResultCard {
  width: min(520px, 88vw);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border: 1px solid rgba(246, 182, 74, 0.58);
  border-radius: 8px;
  background: rgba(6, 10, 17, 0.86);
  box-shadow: 0 0 30px rgba(246, 182, 74, 0.14);
  text-align: left;
}

.rpsResultCard span {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(246, 182, 74, 0.62);
  border-radius: 16px;
  color: #ffd66b;
  font-size: 34px;
}

.rpsResultCard strong {
  display: block;
  color: #ffd66b;
  font-size: 42px;
}

.rpsResultCard small {
  color: rgba(255, 255, 255, 0.86);
  font-size: 22px;
}

.rpsResultCard.win {
  border-color: rgba(41, 255, 82, 0.72);
  background: rgba(4, 18, 11, 0.88);
  box-shadow: 0 0 32px rgba(41, 255, 82, 0.16), inset 0 0 28px rgba(41, 255, 82, 0.05);
}

.rpsResultCard.win span {
  border-color: rgba(41, 255, 82, 0.68);
  color: #43ff55;
  background: rgba(41, 255, 82, 0.08);
}

.rpsResultCard.win strong {
  color: #43ff55;
}

.rpsChoiceDock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(6, 10, 17, 0.68);
}

.rpsChoiceButton {
  min-height: 156px;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.rpsChoiceButton b {
  color: #93a1b8;
  font-size: 70px;
  filter: grayscale(1);
}

.rpsChoiceButton span {
  color: #8f9db4;
  font-size: 24px;
  font-weight: 950;
}

.rpsChoiceButton.active,
.rpsChoiceButton:not(:disabled):active {
  border-color: rgba(246, 182, 74, 0.95);
  background: rgba(246, 182, 74, 0.12);
  box-shadow: inset 0 -4px 0 #ffd66b, 0 0 26px rgba(246, 182, 74, 0.18);
}

.rpsChoiceButton.active b,
.rpsChoiceButton:not(:disabled):active b {
  filter: none;
  color: #ffd66b;
}

.rpsChoiceButton.active span,
.rpsChoiceButton:not(:disabled):active span {
  color: #ffd66b;
}

.rpsChoiceDock.locked .rpsChoiceButton:not(.active) {
  opacity: 0.42;
}

@keyframes rpsPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.03);
    opacity: 1;
  }
}

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

@keyframes rpsLocked {
  0% {
    transform: translateY(0) scale(1);
  }
  55% {
    transform: translateY(-18px) scale(1.08);
  }
  100% {
    transform: translateY(0) scale(0.96);
  }
}

@media (max-width: 760px) {
  .rpsGameApp {
    padding: 24px 18px 18px;
  }

  .rpsDuelSurface {
    min-height: calc(100vh - 42px);
  }

  .rpsTop {
    grid-template-columns: 1fr auto;
    gap: 16px 10px;
  }

  .rpsBrand {
    gap: 12px;
  }

  .rpsLogo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 26px;
  }

  .rpsBrand h2 {
    font-size: 34px;
  }

  .rpsSettingsBtn {
    width: 54px;
    height: 54px;
  }

  .rpsStats {
    grid-column: 1 / -1;
  }

  .rpsStat {
    min-width: 132px;
    padding: 8px 12px;
  }

  .rpsPlayers {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 34px 0 8px;
  }

  .rpsPlayerBar {
    min-height: 64px;
    padding: 10px 12px;
  }

  .rpsPlayerBar.right {
    justify-content: flex-end;
  }

  .rpsAvatar {
    width: 38px;
    height: 38px;
  }

  .rpsPlayerBar em {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .rpsPlayerBar strong {
    font-size: 20px;
  }

  .rpsStage {
    min-height: 600px;
  }

  .rpsStage::before {
    width: 106vw;
    transform: translateY(16px);
  }

  .rpsCountdown strong {
    font-size: 190px;
  }

  .rpsCountdown span,
  .rpsPrompt {
    font-size: 27px;
  }

  .rpsMainHand {
    font-size: 230px;
  }

  .rpsChoiceTimer strong {
    font-size: 42px;
  }

  .rpsReadyCard {
    min-width: min(420px, 88vw);
    padding: 16px 18px;
  }

  .rpsClash {
    width: 100vw;
    min-height: 430px;
    gap: 0;
  }

  .rpsClashHand {
    font-size: 142px;
  }

  .rpsClashBurst {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
  }

  .rpsResultCard {
    width: min(520px, 84vw);
    padding: 18px;
  }

  .rpsResultCard span {
    width: 58px;
    height: 58px;
  }

  .rpsResultCard strong {
    font-size: 36px;
  }

  .rpsResultCard small {
    font-size: 20px;
  }

  .rpsChoiceDock {
    gap: 10px;
    padding: 10px;
  }

  .rpsChoiceButton {
    min-height: 190px;
  }

  .rpsChoiceButton b {
    font-size: 76px;
  }

  .rpsChoiceButton span {
    font-size: 26px;
  }
}

@media (max-width: 460px) {
  .rpsGameApp {
    padding: 18px 12px 14px;
  }

  .rpsBrand h2 {
    font-size: 28px;
  }

  .rpsLogo,
  .rpsSettingsBtn {
    width: 42px;
    height: 42px;
  }

  .rpsStats {
    justify-content: center;
  }

  .rpsStat {
    min-width: 120px;
  }

  .rpsPlayers {
    margin-top: 24px;
  }

  .rpsPlayerBar {
    gap: 8px;
    padding: 9px;
  }

  .rpsPlayerBar span:not(.rpsAvatar) {
    font-size: 10px;
  }

  .rpsPlayerBar strong {
    font-size: 17px;
  }

  .rpsPlayerBar em {
    width: 36px;
    height: 36px;
  }

  .rpsStage {
    min-height: 500px;
  }

  .rpsMainHand {
    font-size: 190px;
  }

  .rpsCountdown strong {
    font-size: 160px;
  }

  .rpsChoiceButton {
    min-height: 150px;
  }

  .rpsChoiceButton b {
    font-size: 58px;
  }

  .rpsChoiceButton span {
    font-size: 21px;
  }
}

.historyList {
  display: grid;
  gap: 8px;
}

.historyItem {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.tttGameApp {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 190, 52, 0.08), transparent 28%),
    radial-gradient(circle at 70% 38%, rgba(58, 148, 255, 0.12), transparent 30%),
    linear-gradient(90deg, rgba(72, 101, 136, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(72, 101, 136, 0.07) 1px, transparent 1px),
    #030811;
  background-size: auto, auto, 64px 64px, 64px 64px, auto;
  color: #f6f8ff;
}

.tttAppHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
  padding: 18px max(32px, calc((100vw - 1480px) / 2));
  border-bottom: 1px solid rgba(155, 177, 210, 0.14);
  background: rgba(3, 8, 16, 0.74);
  backdrop-filter: blur(18px);
}

.tttHeaderBrand,
.tttHeaderActions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tttHeaderBrand {
  min-height: 54px;
  padding: 9px 17px 9px 9px;
  border-color: rgba(139, 158, 190, 0.2);
  background: linear-gradient(180deg, rgba(16, 24, 38, 0.92), rgba(7, 12, 21, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 28px rgba(12, 17, 29, 0.5);
}

.tttHeaderActions .ghost,
.tttHeaderActions .statusPill,
.tttHeaderActions .balancePill {
  min-height: 44px;
  border-color: rgba(139, 158, 190, 0.18);
  background: rgba(10, 17, 29, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.tttMobileActions {
  display: none;
  gap: 14px;
}

.tttIconButton {
  display: grid;
  width: 78px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(139, 158, 190, 0.2);
  border-radius: 8px;
  background: rgba(10, 17, 29, 0.86);
}

.tttStatsIcon {
  grid-template-columns: repeat(3, 7px);
  align-items: end;
  justify-content: center;
  gap: 4px;
}

.tttStatsIcon i {
  display: block;
  width: 7px;
  border: 2px solid #b9c1cf;
  border-bottom-width: 3px;
}

.tttStatsIcon i:nth-child(1) { height: 20px; }
.tttStatsIcon i:nth-child(2) { height: 30px; }
.tttStatsIcon i:nth-child(3) { height: 42px; }

.tttMenuIcon i {
  display: block;
  width: 31px;
  height: 2px;
  margin: 5px 0;
  background: #d8dde8;
}

.tttStage {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 26px 24px 44px;
}

.tttGameSurface {
  --ttt-gold: #ffc44f;
  --ttt-blue: #73b5ff;
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 24px;
  padding: 0;
  border: 0;
  background: transparent;
}

.tttTopbar {
  display: grid;
  justify-items: center;
}

.tttBrand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.tttBrand h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
}

.tttLogo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 72px;
  aspect-ratio: 1;
  gap: 4px;
  place-items: center;
  padding: 16px;
  border: 1px solid rgba(119, 168, 255, 0.18);
  border-radius: 8px;
  color: var(--ttt-gold);
  background: rgba(9, 17, 30, 0.9);
  box-shadow: 0 0 28px rgba(115, 181, 255, 0.1);
}

.tttLogo i {
  width: 8px;
  aspect-ratio: 1;
  border: 2px solid currentColor;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 196, 79, 0.55);
}

.tttRefresh {
  width: 56px;
  min-height: 56px;
  padding: 0;
  border-color: rgba(139, 158, 190, 0.18);
  color: #d8e2f2;
  background: rgba(10, 17, 29, 0.86);
  font-size: 26px;
}

.tttMeta {
  display: flex;
  min-width: 0;
  order: 2;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tttChip {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid rgba(139, 158, 190, 0.16);
  border-radius: 8px;
  background: rgba(8, 14, 24, 0.82);
  color: #b8c0cf;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tttChip strong {
  color: #f4f7ff;
  font-size: 16px;
}

.tttChip.tttStake,
.tttSessionChip strong {
  color: var(--ttt-gold);
}

.tttCoinIcon,
.tttWalletIcon {
  display: grid;
  width: 24px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: var(--ttt-gold);
  background: rgba(255, 196, 79, 0.09);
  box-shadow: 0 0 14px rgba(255, 196, 79, 0.2);
}

.tttWalletIcon::before {
  width: 13px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 3px;
  content: "";
}

.tttStatusDot {
  width: 20px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #65d985;
  box-shadow: 0 0 16px rgba(101, 217, 133, 0.75);
}

.tttPlayersRow {
  position: relative;
  display: grid;
  min-width: 0;
  order: 1;
  grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
  align-items: center;
  gap: 0;
}

.tttPlayerCard {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 86px;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(115, 181, 255, 0.55);
  padding: 18px 36px;
  background:
    radial-gradient(circle at 15% 50%, rgba(115, 181, 255, 0.14), transparent 32%),
    linear-gradient(90deg, rgba(8, 15, 26, 0.95), rgba(9, 24, 47, 0.78));
  box-shadow: 0 0 42px rgba(76, 151, 255, 0.12), inset 0 0 30px rgba(115, 181, 255, 0.04);
}

.tttPlayerCard.seat-1 {
  grid-column: 1 / 3;
  grid-row: 1;
  padding-right: 104px;
  border-color: rgba(255, 196, 79, 0.66);
  border-radius: 8px 0 0 8px;
  background:
    radial-gradient(circle at 15% 50%, rgba(255, 196, 79, 0.16), transparent 34%),
    linear-gradient(90deg, rgba(29, 24, 13, 0.88), rgba(8, 13, 21, 0.94));
  clip-path: polygon(0 0, calc(100% - 64px) 0, 100% 100%, 0 100%);
}

.tttPlayerCard.seat-2 {
  grid-column: 2 / 4;
  grid-row: 1;
  justify-self: stretch;
  padding-left: 104px;
  border-radius: 0 8px 8px 0;
  clip-path: polygon(64px 0, 100% 0, 100% 100%, 0 100%);
}

.tttPlayerCard.turn {
  box-shadow:
    0 0 42px rgba(115, 181, 255, 0.18),
    inset 0 0 30px rgba(115, 181, 255, 0.08);
}

.tttPlayerCard.seat-1.turn {
  box-shadow:
    0 0 46px rgba(255, 196, 79, 0.19),
    inset 0 0 34px rgba(255, 196, 79, 0.09);
}

.tttPlayerCard span:not(.tttPlayerOrb) {
  color: #aeb6c4;
  font-size: 13px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tttPlayerCard strong {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  margin-top: 5px;
  font-size: 22px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tttPlayerOrb {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--ttt-blue);
  background: rgba(7, 14, 27, 0.84);
  box-shadow: inset 0 0 24px rgba(115, 181, 255, 0.08), 0 0 20px rgba(115, 181, 255, 0.14);
}

.seat-1 .tttPlayerOrb {
  color: var(--ttt-gold);
}

.tttPlayerOrb i {
  width: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

.tttVersus {
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  min-height: 88px;
  place-items: center;
  color: #ffd77d;
  background: linear-gradient(90deg, rgba(7, 12, 20, 0), rgba(12, 17, 27, 0.96), rgba(7, 12, 20, 0));
  font-size: 28px;
  font-weight: 950;
  text-shadow: 0 0 18px rgba(255, 196, 79, 0.35);
}

.tttBoardWrap {
  position: relative;
  order: 3;
  width: min(100%, 920px);
  min-width: 0;
  margin: 0 auto;
  border: 1px solid rgba(115, 181, 255, 0.75);
  border-left-color: rgba(255, 196, 79, 0.78);
  border-radius: 8px;
  padding: 34px;
  background:
    linear-gradient(90deg, rgba(255, 196, 79, 0.08), transparent 20%, transparent 80%, rgba(115, 181, 255, 0.1)),
    rgba(5, 10, 18, 0.72);
  box-shadow:
    0 0 44px rgba(115, 181, 255, 0.14),
    0 0 44px rgba(255, 196, 79, 0.08),
    inset 0 0 62px rgba(10, 17, 29, 0.78);
}

.tttBoardWrap::before {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(115, 181, 255, 0.36);
  border-left-color: rgba(255, 196, 79, 0.42);
  border-radius: 8px;
  pointer-events: none;
  content: "";
}

.tttBoard {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 7px;
}

.tttCell {
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139, 158, 190, 0.16);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(28, 37, 50, 0.84), rgba(12, 18, 27, 0.92));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 10px 22px rgba(0, 0, 0, 0.18);
  font-size: clamp(22px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1;
}

.tttCell:hover:not(:disabled) {
  border-color: rgba(255, 196, 79, 0.62);
  background: linear-gradient(145deg, rgba(36, 40, 46, 0.9), rgba(12, 18, 27, 0.95));
  box-shadow: 0 0 24px rgba(255, 196, 79, 0.12);
}

.tttCell.x {
  color: var(--ttt-gold);
  text-shadow: 0 0 14px rgba(255, 196, 79, 0.85), 0 0 34px rgba(255, 196, 79, 0.34);
}

.tttCell.o {
  color: var(--ttt-blue);
  text-shadow: 0 0 14px rgba(115, 181, 255, 0.95), 0 0 34px rgba(115, 181, 255, 0.38);
}

.tttActionGrid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.08fr);
  gap: 24px;
}

.tttTurnCard,
.tttInviteCard,
.tttMoveCard {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 112px;
  gap: 22px;
  border: 1px solid rgba(139, 158, 190, 0.18);
  border-radius: 8px;
  padding: 24px 30px;
  background: rgba(8, 14, 24, 0.82);
  color: #d7deeb;
}

.tttTurnCard {
  border-color: rgba(255, 196, 79, 0.62);
  background:
    radial-gradient(circle at 10% 35%, rgba(255, 196, 79, 0.18), transparent 34%),
    rgba(8, 14, 24, 0.84);
}

.tttTurnCard strong,
.tttMoveCard strong {
  display: block;
  color: #fff;
  font-size: 25px;
}

.tttTurnCard span:last-child {
  display: block;
  margin-top: 8px;
  color: #b6bfce;
  font-size: 18px;
}

.tttInviteCard {
  justify-content: flex-start;
  text-align: left;
  background: rgba(8, 14, 24, 0.68);
}

.tttInviteCard span:nth-child(2) {
  flex: 1;
  font-size: 22px;
}

.tttInviteCard b,
.tttMoveCard b {
  margin-left: auto;
  color: #dce4f0;
  font-size: 42px;
  font-weight: 300;
}

.tttPeopleIcon {
  position: relative;
  width: 48px;
  height: 38px;
}

.tttPeopleIcon::before,
.tttPeopleIcon::after {
  position: absolute;
  bottom: 0;
  border-radius: 50% 50% 8px 8px;
  background: #9fa9ba;
  content: "";
}

.tttPeopleIcon::before {
  left: 2px;
  width: 28px;
  height: 26px;
}

.tttPeopleIcon::after {
  right: 0;
  width: 24px;
  height: 22px;
  opacity: 0.78;
}

.tttMoveCard {
  border-color: rgba(255, 196, 79, 0.78);
  box-shadow: 0 0 34px rgba(255, 196, 79, 0.1), inset 0 0 42px rgba(255, 196, 79, 0.04);
}

.tttDiceIcon {
  display: grid;
  width: 72px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 196, 79, 0.28);
  border-radius: 8px;
  background: rgba(255, 196, 79, 0.12);
  color: #f7efe1;
  font-size: 40px;
  box-shadow: 0 0 24px rgba(255, 196, 79, 0.14);
}

.tttSessionDelta {
  display: none;
  justify-self: start;
  margin: 0;
}

@media (max-width: 900px) {
  .tttAppHeader {
    min-height: 118px;
    padding: 20px 26px 18px;
  }

  .tttHeaderActions {
    display: none;
  }

  .tttMobileActions {
    display: flex;
  }

  .tttHeaderBrand {
    min-height: 78px;
    padding: 11px 18px 11px 12px;
  }

  .tttHeaderBrand .brandMark {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .tttHeaderBrand .brandText strong {
    font-size: 27px;
  }

  .tttHeaderBrand .brandText span {
    font-size: 17px;
  }

  .tttStage {
    padding: 30px 26px 40px;
  }

  .tttTopbar {
    display: none;
  }

  .tttPlayersRow {
    order: 1;
    grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr);
  }

  .tttMeta {
    order: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: stretch;
    gap: 12px;
  }

  .tttChip {
    min-width: 0;
    justify-content: center;
    min-height: 66px;
    padding: 0 14px;
    font-size: 18px;
  }

  .tttChip strong {
    min-width: 0;
    overflow: hidden;
    font-size: 19px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tttBoardWrap {
    order: 3;
    padding: 38px;
  }

  .tttBoard {
    gap: 7px;
  }

}

@media (max-width: 700px) {
  .tttGameApp {
    background-size: auto, auto, 42px 42px, 42px 42px, auto;
  }

  .tttAppHeader {
    gap: 12px;
    padding: 20px 26px 16px;
  }

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

  .tttIconButton {
    width: 72px;
  }

  .tttStage {
    padding: 32px 26px 38px;
  }

  .tttGameSurface {
    gap: 26px;
  }

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

  .tttPlayerCard {
    min-height: 102px;
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .tttPlayerCard.seat-1 {
    padding-left: 18px;
    padding-right: 76px;
    clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 100%, 0 100%);
  }

  .tttPlayerCard.seat-2 {
    padding-left: 76px;
    padding-right: 18px;
    clip-path: polygon(34px 0, 100% 0, 100% 100%, 0 100%);
  }

  .tttPlayerOrb {
    width: 58px;
  }

  .tttPlayerCard span:not(.tttPlayerOrb) {
    font-size: 15px;
  }

  .tttPlayerCard strong {
    max-width: 128px;
    font-size: 25px;
  }

  .tttVersus {
    min-height: 102px;
    font-size: 32px;
  }

  .tttMeta {
    grid-template-columns: repeat(4, minmax(156px, 1fr));
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .tttChip {
    white-space: nowrap;
  }

  .tttBoardWrap {
    width: 100%;
    padding: 38px;
  }

  .tttBoard {
    gap: 6px;
  }

  .tttCell {
    border-radius: 8px;
    font-size: clamp(30px, 8.2vw, 47px);
  }

}

@media (max-width: 520px) {
  .tttAppHeader {
    padding-inline: 16px;
  }

  .tttHeaderBrand .brandText strong {
    font-size: 20px;
  }

  .tttHeaderBrand .brandText span {
    font-size: 13px;
  }

  .tttHeaderBrand .brandMark {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .tttIconButton {
    width: 56px;
  }

  .tttStage {
    padding-inline: 14px;
  }

  .tttHeaderBrand {
    min-height: 70px;
    padding: 10px;
  }

  .tttMobileActions {
    gap: 10px;
  }

  .tttMeta {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }

  .tttChip {
    min-height: 54px;
    padding: 0 12px;
    font-size: 16px;
  }

  .tttChip strong {
    font-size: 17px;
  }

  .tttBoardWrap {
    padding: 20px;
  }

  .tttBoard {
    gap: 4px;
  }

  .tttCell {
    font-size: clamp(18px, 6vw, 28px);
  }
}

@media (max-width: 380px) {
  .tttPlayersRow {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .tttPlayerCard.seat-1,
  .tttPlayerCard.seat-2 {
    grid-column: 1;
    grid-row: auto;
    clip-path: none;
    border-radius: 8px;
    padding: 18px;
  }

  .tttVersus {
    display: none;
  }

  .tttActionGrid {
    grid-template-columns: 1fr;
  }
}

.resultBanner {
  margin-top: 14px;
  border: 1px solid rgba(118, 214, 122, 0.34);
  border-radius: 8px;
  padding: 14px;
  background: rgba(118, 214, 122, 0.09);
  color: #daf9dc;
  font-weight: 900;
}

.sessionDeltaCard {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-width: 210px;
  min-height: 64px;
  gap: 12px;
  border: 1px solid rgba(255, 194, 54, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255, 184, 35, 0.11), rgba(46, 214, 125, 0.08)), rgba(5, 10, 18, 0.74);
  box-shadow: 0 0 28px rgba(63, 229, 143, 0.08);
}

.sessionDeltaIcon {
  display: grid;
  width: 36px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 203, 66, 0.72);
  border-radius: 50%;
  color: #ffd889;
}

.sessionDeltaIcon::before {
  content: "+";
  font-weight: 950;
}

.sessionDeltaCard small {
  display: block;
  color: #b9c4d4;
  font-size: 12px;
  font-weight: 850;
}

.sessionDeltaCard strong {
  display: block;
  margin-top: 2px;
  font-size: 21px;
  font-weight: 950;
}

.sessionDeltaPositive {
  color: #86ff72;
}

.sessionDeltaNegative {
  color: #ff6979;
}

.joinLobbyModal .authPanel {
  margin-top: 14px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.joinLobbyBalance,
.joinAuthCopy {
  margin-bottom: 12px;
  border: 1px solid rgba(122, 155, 205, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.035);
  color: #c7d3e5;
  font-weight: 850;
}

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

.joinLobbyBalance strong {
  color: #fff;
}

.joinLobbyModal .createInviteButton {
  width: min(274px, 100%);
  justify-self: center;
  margin-inline: auto;
}

.joinQuickJoin {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.joinQuickJoin p {
  margin: 0;
  color: #91a0b8;
  text-align: center;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.joinQuickJoin button:not(.createInviteButton) {
  border: 0;
  padding: 0;
  color: #ffd369;
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.joinDepositButton {
  width: min(274px, 100%);
  margin-inline: auto;
  margin-top: 10px;
}

.copyToast {
  color: var(--green);
  font-size: 13px;
}

.diceLabPage {
  display: grid;
  gap: 18px;
  padding-top: 22px;
}

.diceLabHero {
  min-height: 190px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 20px;
  align-items: end;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(246, 182, 74, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(122, 167, 255, 0.1), transparent 42%),
    rgba(16, 19, 26, 0.9);
}

.diceLabHero h1 {
  margin-top: 10px;
}

.labFacePicker {
  align-self: end;
}

.diceLabGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.diceLabCard {
  min-height: 560px;
  padding: 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% calc(46% - (var(--lab-charge) * 18%)), rgba(246, 182, 74, calc(0.08 + var(--lab-charge) * 0.18)), transparent 30%),
    rgba(16, 19, 26, 0.92);
}

.diceLabCard.throwing {
  border-color: rgba(246, 182, 74, 0.35);
}

.diceLabCardHead {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.diceLabCardHead h2 {
  font-size: 24px;
}

.diceLabCardHead p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.labStage {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 34%, rgba(122, 167, 255, 0.11), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 52%),
    #0a0f15;
  perspective: 980px;
}

.labStage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background:
    linear-gradient(90deg, rgba(122, 167, 255, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(122, 167, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 54%);
}

.labCamera {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-45deg);
  transform-origin: 50% 58%;
}

.labFloor {
  position: absolute;
  left: 50%;
  top: 56%;
  width: min(440px, 112%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  border: 1px solid rgba(122, 167, 255, 0.16);
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 50%, rgba(246, 182, 74, 0.07), transparent 34%),
    linear-gradient(90deg, rgba(122, 167, 255, 0.2) 1px, transparent 1px),
    linear-gradient(rgba(122, 167, 255, 0.16) 1px, transparent 1px),
    rgba(255, 255, 255, 0.018);
  background-size: auto, 34px 34px, 34px 34px, auto;
  box-shadow:
    inset 0 0 38px rgba(122, 167, 255, 0.08),
    0 0 32px rgba(122, 167, 255, 0.08);
}

.labFloor span {
  position: absolute;
  background: rgba(246, 182, 74, 0.2);
}

.labFloor span:nth-child(1) {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}

.labFloor span:nth-child(2) {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
}

.labFloor span:nth-child(3) {
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1px;
  transform: rotate(45deg);
  transform-origin: center;
  opacity: 0.55;
}

.labShadow {
  position: absolute;
  left: calc(50% - 63px);
  top: calc(56% - 11px);
  width: 126px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  filter: blur(9px);
  opacity: 0.5;
  transform: translate3d(0, 0, 1px);
  transform-origin: center;
  will-change: transform, opacity;
}

.labDiceRig {
  position: absolute;
  left: calc(50% - 58px);
  top: calc(56% - 58px);
  z-index: 1;
  width: 116px;
  height: 116px;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, calc(var(--lab-charge) * 72px)) rotateZ(calc(var(--lab-charge) * -6deg));
  transition: transform 32ms linear;
  will-change: transform;
}

.labCube {
  will-change: transform;
}

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

.labThrowBtn {
  min-height: 54px;
  touch-action: none;
  user-select: none;
}

.labThrowBtn.charging {
  background: #ffbd4d;
  transform: translateY(1px);
}

.labReadout {
  min-height: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.modalBackdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 5, 8, 0.72);
  backdrop-filter: blur(14px);
}

.modalPanel {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(23, 28, 38, 0.98), rgba(12, 15, 21, 0.98)),
    #111722;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.52);
}

.modalHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.modalHead h2 {
  margin-top: 8px;
  font-size: 30px;
}

.iconBtn {
  width: 42px;
  min-width: 42px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.modalGamePreview {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.modalGamePreview.amber {
  border-top: 3px solid var(--amber);
}

.modalGamePreview.teal {
  border-top: 3px solid var(--teal);
}

.modalGamePreview.red {
  border-top: 3px solid var(--red);
}

.modalGamePreview .gameVisual {
  min-height: 132px;
}

.modalGamePreview h3 {
  font-size: 24px;
}

.modalGamePreview p {
  margin: 8px 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

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

.authModal .authPanel {
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.walletModal {
  width: min(760px, 100%);
}

.walletHead p {
  margin-top: 4px;
  color: #f7fbff;
  font-size: 26px;
  font-weight: 950;
}

.walletAddressMini {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(122, 155, 205, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(4, 9, 16, 0.74);
  color: #c6d8ef;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.walletTabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.walletTabs button {
  min-height: 44px;
  border: 1px solid rgba(122, 155, 205, 0.26);
  border-radius: 8px;
  color: #d9e6f8;
  background: rgba(14, 23, 38, 0.72);
  font-weight: 900;
}

.walletTabs button.active {
  color: #0d141d;
  background: linear-gradient(145deg, #ffde77, #f3aa28);
}

.walletNotice,
.walletEmpty {
  border: 1px solid rgba(255, 194, 71, 0.28);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 194, 71, 0.08);
  color: #ffd98e;
  font-weight: 800;
}

.walletEmpty {
  border-color: rgba(122, 155, 205, 0.22);
  background: rgba(255, 255, 255, 0.035);
  color: #aeb9cc;
}

.walletHistory {
  display: grid;
  gap: 8px;
}

.walletHistoryItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(122, 155, 205, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.035);
}

.walletHistoryMain {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.walletHistoryMain strong {
  color: #f7fbff;
  font-size: 15px;
}

.walletHistoryMain small {
  color: #8ea0ba;
  font-size: 12px;
}

.walletAmountPositive,
.walletAmountNegative {
  flex: 0 0 auto;
  font-weight: 950;
}

.walletAmountPositive {
  color: #42e596;
}

.walletAmountNegative {
  color: #ff6979;
}

.walletDeposit,
.walletWithdraw {
  display: grid;
  gap: 14px;
}

.walletDeposit label,
.walletWithdraw label {
  display: grid;
  gap: 8px;
  color: #b8c7dc;
  font-size: 14px;
  font-weight: 800;
}

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

.walletAddressRow input,
.walletWithdraw input {
  width: 100%;
  border: 1px solid rgba(122, 155, 205, 0.26);
  border-radius: 8px;
  padding: 13px 14px;
  color: #f8fbff;
  background: rgba(4, 9, 16, 0.74);
  font-size: 15px;
}

.walletQr {
  width: min(280px, 100%);
  border: 10px solid #fff;
  border-radius: 8px;
  background: #fff;
}

.walletActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.walletFeeLine {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(122, 155, 205, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  color: #aeb9cc;
  background: rgba(255, 255, 255, 0.035);
}

.walletFeeLine strong {
  color: #ffd98e;
}

.walletFullButton {
  width: 100%;
}

.diceDuelSurface {
  position: relative;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(246, 182, 74, 0.07), transparent 34%, rgba(122, 167, 255, 0.08)),
    #090d13;
}

.diceGameApp {
  min-height: 100vh;
  padding: 32px clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(122, 167, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(122, 167, 255, 0.032) 1px, transparent 1px),
    radial-gradient(circle at 28% 42%, rgba(246, 182, 74, 0.1), transparent 28%),
    radial-gradient(circle at 74% 45%, rgba(122, 167, 255, 0.12), transparent 30%),
    #05090f;
  background-size: 56px 56px, 56px 56px, auto, auto, auto;
}

.diceGameSurface {
  max-width: 1500px;
  margin: 0 auto;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.diceGameSurface .diceDuelTop {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(80px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 0 34px;
  border-bottom: 0;
}

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

.diceBrand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.diceLogo {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(246, 182, 74, 0.62);
  border-radius: 14px;
  color: #ffd889;
  font-size: 34px;
  box-shadow: 0 0 28px rgba(246, 182, 74, 0.2);
}

.diceSettingsBtn {
  width: 58px;
  height: 58px;
  border-color: rgba(246, 182, 74, 0.22);
  color: #ffd889;
  font-size: 24px;
}

.diceGameSurface .diceSettingsBtn {
  justify-self: end;
}

.diceDuelTop h2 {
  margin-top: 8px;
  font-size: clamp(26px, 3vw, 36px);
}

.diceCountdown {
  min-width: 124px;
  border: 1px solid rgba(246, 182, 74, 0.28);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: right;
  background: rgba(246, 182, 74, 0.08);
}

.diceCountdown span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.diceCountdown strong {
  display: block;
  margin-top: 3px;
  color: #ffd889;
  font-size: 28px;
}

.diceCountdown.urgent {
  border-color: rgba(243, 107, 107, 0.55);
  background: rgba(243, 107, 107, 0.12);
}

.diceCountdown.urgent strong {
  color: #ffb3b3;
}

.diceArena.duel {
  gap: 24px;
  align-items: stretch;
}

.diceGameSurface .diceArena.duel {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.diceVersus {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  margin-bottom: 24px;
}

.diceGameSurface .diceVersus {
  min-height: 106px;
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
}

.dicePlayerBar {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(246, 182, 74, 0.13), rgba(255, 255, 255, 0.025));
}

.diceGameSurface .dicePlayerBar.left {
  border-left: 4px solid rgba(246, 182, 74, 0.95);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  clip-path: polygon(0 0, calc(100% - 72px) 0, 100% 100%, 0 100%);
}

.dicePlayerBar.right {
  justify-content: flex-end;
  background: linear-gradient(270deg, rgba(122, 167, 255, 0.14), rgba(255, 255, 255, 0.025));
}

.diceGameSurface .dicePlayerBar.right {
  justify-content: flex-start;
  border-left: 0;
  border-right: 4px solid rgba(122, 167, 255, 0.95);
  border-radius: 0 8px 8px 0;
  clip-path: polygon(72px 0, 100% 0, 100% 100%, 0 100%);
  padding-left: 88px;
}

.dicePlayerBar span:not(.diceAvatar) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dicePlayerBar strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
}

.diceAvatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(246, 182, 74, 0.72);
  border-radius: 50%;
  color: #ffd889;
  box-shadow: 0 0 20px rgba(246, 182, 74, 0.16);
}

.dicePlayerBar.right .diceAvatar {
  border-color: rgba(122, 167, 255, 0.72);
  color: #8fb7ff;
}

.diceVsMark {
  display: grid;
  place-items: center;
  color: #ffd889;
  font-size: 36px;
  font-weight: 1000;
  z-index: 2;
  align-self: stretch;
  background:
    linear-gradient(135deg, transparent 0 28%, rgba(255, 255, 255, 0.025) 28% 72%, transparent 72%),
    rgba(255, 255, 255, 0.01);
}

.dicePlayer {
  position: relative;
  min-height: 470px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.075), transparent 28%),
    rgba(255, 255, 255, 0.025);
}

.dicePlayer:nth-child(2) {
  border-color: rgba(122, 167, 255, 0.32);
}

.dicePlayer.mine {
  background:
    radial-gradient(circle at 50% calc(48% - (var(--charge) * 18%)), rgba(246, 182, 74, calc(0.1 + var(--charge) * 0.22)), transparent 30%),
    rgba(246, 182, 74, 0.025);
}

.dicePlayer.ready {
  border-color: rgba(103, 216, 166, 0.35);
}

.dicePlayerHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.dicePlayerHead span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dicePlayerHead strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}

.diceStage {
  position: relative;
  min-height: 240px;
  display: grid;
  place-items: center;
  perspective: 780px;
}

.mobileOnly {
  display: none;
}

.diceDuelStats {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.diceGameSurface .diceDuelStats {
  justify-self: center;
  justify-content: center;
}

.diceGameSurface .diceDuelStats .diceCountdown {
  display: none;
}

.diceStat {
  min-width: 110px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.035);
  text-align: right;
}

.diceStat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.diceStat strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 18px;
}

.diceSoftStage {
  position: relative;
  min-height: clamp(340px, 30vw, 440px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 36%, rgba(122, 167, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 58%),
    #0a0f15;
  perspective: 980px;
}

.diceGameSurface .diceSoftStage {
  min-height: clamp(360px, 32vw, 470px);
}

.diceBoardTimer {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  gap: 0;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(246, 182, 74, 0.5);
  border-radius: 50%;
  color: #ffd889;
  background:
    radial-gradient(circle at 50% 50%, rgba(246, 182, 74, 0.18), transparent 62%),
    rgba(5, 9, 15, 0.92);
  box-shadow: 0 0 26px rgba(246, 182, 74, 0.16);
  pointer-events: none;
}

.diceBoardTimer span {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1;
}

.diceBoardTimer strong {
  margin-top: -12px;
  font-size: 24px;
  line-height: 1;
}

.diceSoftCamera {
  transform-origin: 50% 58%;
}

.diceSoftFloor {
  width: min(440px, 118%);
}

.diceSoftRig {
  --dice-rig-scale: 1;
  transition: transform 32ms linear;
}

.dicePlayer.charging .diceSoftRig {
  transform: translate3d(0, 0, calc(var(--charge) * 72px)) rotateZ(calc(var(--charge) * -6deg)) scale3d(var(--dice-rig-scale), var(--dice-rig-scale), var(--dice-rig-scale));
}

.dicePlayer.remoteCharging .diceSoftRig {
  transition: none;
}

.dicePlayer.throwing .diceSoftRig,
.dicePlayer.throwing .diceSoftCube,
.dicePlayer.throwing .diceSoftShadow {
  transition: none;
}

.dicePlayer.throwing .diceSoftShadow {
  filter: blur(10px);
}

.diceMainAction {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.diceShadow {
  position: absolute;
  bottom: 48px;
  width: 126px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  filter: blur(8px);
  transform: scale(calc(1 - var(--charge, 0) * 0.24));
  opacity: calc(0.58 - var(--charge, 0) * 0.18);
}

.diceShadow.pulse {
  animation: diceShadowPulse 520ms ease-in-out infinite;
}

.diceScene {
  width: 116px;
  height: 116px;
  perspective: 760px;
  transform: translateY(calc(var(--charge, 0) * -46px));
  transition: transform 90ms linear;
}

.diceCube3d {
  position: relative;
  width: 116px;
  height: 116px;
  transform-style: preserve-3d;
  transition: transform 760ms cubic-bezier(0.19, 1, 0.22, 1);
}

.diceCube3d.rolling {
  animation: diceTumble 720ms cubic-bezier(0.3, 0.8, 0.28, 1) infinite;
}

.diceCube3d.face-1 {
  transform: rotateX(0deg) rotateY(0deg);
}

.diceCube3d.face-2 {
  transform: rotateX(0deg) rotateY(-90deg);
}

.diceCube3d.face-3 {
  transform: rotateX(90deg) rotateY(0deg);
}

.diceCube3d.face-4 {
  transform: rotateX(-90deg) rotateY(0deg);
}

.diceCube3d.face-5 {
  transform: rotateX(0deg) rotateY(90deg);
}

.diceCube3d.face-6 {
  transform: rotateX(0deg) rotateY(180deg);
}

.labCube.face-1 {
  transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
}

.labCube.face-2 {
  transform: rotateX(0deg) rotateY(-90deg) rotateZ(0deg);
}

.labCube.face-3 {
  transform: rotateX(90deg) rotateY(0deg) rotateZ(0deg);
}

.labCube.face-4 {
  transform: rotateX(-90deg) rotateY(0deg) rotateZ(0deg);
}

.labCube.face-5 {
  transform: rotateX(0deg) rotateY(90deg) rotateZ(0deg);
}

.labCube.face-6 {
  transform: rotateX(0deg) rotateY(180deg) rotateZ(0deg);
}

.cubeFace {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 14px;
  background:
    linear-gradient(145deg, #fff8e7, #e6dcc8),
    #f5ecd9;
  box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.12);
}

.cubeFace1 {
  transform: translateZ(58px);
}

.cubeFace2 {
  transform: rotateY(90deg) translateZ(58px);
}

.cubeFace3 {
  transform: rotateX(-90deg) translateZ(58px);
}

.cubeFace4 {
  transform: rotateX(90deg) translateZ(58px);
}

.cubeFace5 {
  transform: rotateY(-90deg) translateZ(58px);
}

.cubeFace6 {
  transform: rotateY(180deg) translateZ(58px);
}

.cubePip {
  border-radius: 50%;
  background: #12161d;
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.2);
}

.dicePlayerStatus {
  display: grid;
  gap: 5px;
  min-height: 54px;
}

.dicePlayerStatus strong {
  font-size: 19px;
}

.dicePlayerStatus span {
  color: var(--muted);
  font-size: 13px;
}

.diceRemotePower {
  min-height: 16px;
  color: #ffd889 !important;
}

@media (min-width: 761px) {
  .diceGameSurface .dicePlayerStatus {
    display: none;
  }
}

.diceRoundBar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.diceRoundBar > div {
  display: none;
}

.diceGameSurface.phase-rolling .diceRoundBar .modePill,
.diceGameSurface.phase-round_result .diceRoundBar .modePill {
  display: none;
}

.diceRoundBarActive {
  justify-content: center;
  border-top: 0;
  padding-top: 28px;
}

.diceRoundBar .primary {
  min-width: min(360px, 70vw);
}

.diceMainAction {
  min-height: 76px;
  font-size: 28px;
  box-shadow: 0 0 34px rgba(246, 182, 74, 0.24);
}

.diceSessionDelta {
  margin: 16px 0 0;
}

.diceStopBtn {
  min-height: 52px;
  min-width: 190px;
}

.diceJoinInline {
  display: flex;
  gap: 10px;
  align-items: center;
}

.diceJoinInline input {
  width: 150px;
}

.holdPanel {
  display: grid;
  gap: 9px;
}

.holdRollBtn {
  min-height: 54px;
  user-select: none;
  touch-action: none;
}

.holdRollBtn.charging {
  transform: translateY(1px);
  background: #ffbd4d;
}

.holdMeter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.holdMeter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), #fff2b6);
}

@keyframes diceTumble {
  0% {
    transform: translateY(0) rotateX(18deg) rotateY(20deg) rotateZ(0deg);
  }
  38% {
    transform: translateY(-54px) rotateX(210deg) rotateY(168deg) rotateZ(12deg);
  }
  72% {
    transform: translateY(8px) rotateX(392deg) rotateY(286deg) rotateZ(-10deg);
  }
  100% {
    transform: translateY(0) rotateX(540deg) rotateY(450deg) rotateZ(0deg);
  }
}

@keyframes diceShadowPulse {
  0%,
  100% {
    transform: scale(0.78);
    opacity: 0.28;
  }
  45% {
    transform: scale(1.16);
    opacity: 0.5;
  }
}

@media (max-width: 1040px) {
  .mainGrid,
  .lobbyLayout,
  .heroBand {
    grid-template-columns: 1fr;
  }

  .authPanel {
    position: static;
  }

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

  .diceArena.duel {
    grid-template-columns: 1fr;
  }

  .dicePlayer,
  .dicePlayer:nth-child(2) {
    min-height: 390px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dicePlayer:nth-child(2) {
    border-bottom: 0;
  }

  .diceLabGrid {
    grid-template-columns: 1fr;
  }

  .diceLabCard {
    min-height: 540px;
  }
}

@media (max-width: 760px) {
  .diceGameApp {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 18px 18px 16px;
  }

  .diceGameSurface .diceDuelTop {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand settings"
      "stats stats";
    align-items: center;
    gap: 14px 12px;
    min-height: 0;
    padding-bottom: 20px;
  }

  .diceBrand {
    grid-area: brand;
    gap: 10px;
    min-width: 0;
  }

  .diceBrand h2 {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 24px;
  }

  .diceLogo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 25px;
  }

  .diceSettingsBtn {
    grid-area: settings;
    justify-self: end;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 18px;
  }

  .diceDuelStats {
    grid-area: stats;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .diceGameSurface:not(.phase-rolling) .diceCountdown {
    display: none;
  }

  .diceStat,
  .diceCountdown {
    width: auto;
    min-width: 86px;
    padding: 8px 13px;
    border-radius: 13px;
    text-align: center;
    background: rgba(255, 255, 255, 0.026);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.045),
      0 10px 24px rgba(0, 0, 0, 0.12);
  }

  .diceStat span,
  .diceCountdown span {
    display: inline;
    margin-right: 5px;
    font-size: 12px;
    text-transform: none;
  }

  .diceStat strong {
    display: inline;
    margin-top: 0;
    font-size: 13px;
  }

  .diceCountdown strong {
    display: inline;
    margin-top: 0;
    font-size: 14px;
  }

  .diceVersus {
    display: none;
  }

  .diceBoardTimer {
    display: none;
  }

  .diceVsMark {
    display: none;
  }

  .dicePlayerBar {
    min-height: 84px;
    padding: 14px 18px;
    border-radius: 8px;
  }

  .dicePlayerBar:not(.mine) {
    display: none;
  }

  .diceGameSurface .diceArena.duel {
    position: relative;
    display: block;
    min-height: min(680px, calc(100dvh - 232px));
  }

  .dicePlayer {
    border: 0;
    padding: 0;
    background: transparent;
  }

  .dicePlayer.mine {
    min-height: min(680px, calc(100dvh - 232px));
    padding-top: 118px;
    background: transparent;
  }

  .dicePlayer.mine .dicePlayerHead.mobileOnly {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-areas:
      "avatar name"
      "avatar balance";
    align-items: center;
    column-gap: 10px;
    width: min(235px, 54vw);
    min-height: 54px;
    padding: 8px 13px;
    border-left: 3px solid rgba(246, 182, 74, 0.95);
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(246, 182, 74, 0.14), rgba(255, 255, 255, 0.025));
  }

  .dicePlayer.mine .dicePlayerHead.mobileOnly span {
    grid-area: name;
    font-size: 12px;
    color: #9fb2d4;
  }

  .dicePlayer.mine .dicePlayerHead.mobileOnly::before {
    content: "";
    grid-area: avatar;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(246, 182, 74, 0.82);
    border-radius: 50%;
    background: radial-gradient(circle, #ffd889 0 3px, transparent 4px);
    box-shadow: 0 0 16px rgba(246, 182, 74, 0.12);
  }

  .dicePlayer.mine .dicePlayerHead.mobileOnly strong {
    grid-area: name;
    margin-left: 28px;
    max-width: 100%;
    font-size: clamp(16px, 4.2vw, 22px);
    line-height: 1.05;
  }

  .dicePlayer.mine .dicePlayerHead.mobileOnly small {
    grid-area: balance;
    margin-left: 28px;
    color: #8fa4c7;
    font-size: 11px;
    font-weight: 800;
  }

  .diceArena.hasMine .dicePlayer:not(.mine) {
    position: absolute;
    top: 4px;
    right: 0;
    z-index: 2;
    width: min(190px, 42vw);
    min-height: 158px;
    padding: 10px;
    border: 1px solid rgba(122, 167, 255, 0.5);
    border-radius: 8px;
    background: rgba(9, 15, 24, 0.82);
  }

  .diceArena.hasMine .dicePlayer:not(.mine) .dicePlayerHead.mobileOnly {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 20px;
    margin-bottom: 4px;
  }

  .diceArena.hasMine .dicePlayer:not(.mine) .dicePlayerHead.mobileOnly span {
    font-size: 9px;
  }

  .diceArena.hasMine .dicePlayer:not(.mine) .dicePlayerHead.mobileOnly strong {
    max-width: 70%;
    font-size: 14px;
  }

  .diceArena.hasMine .dicePlayer:not(.mine) .diceSoftStage {
    min-height: 96px;
    border: 0;
    background: transparent;
  }

  .diceArena.hasMine .dicePlayer:not(.mine) .diceSoftFloor {
    opacity: 0.35;
  }

  .diceArena.hasMine .dicePlayer:not(.mine) .diceSoftRig {
    --dice-rig-scale: 0.42;
    transform: translate3d(0, 0, 0) scale3d(var(--dice-rig-scale), var(--dice-rig-scale), var(--dice-rig-scale));
  }

  .diceArena.hasMine .dicePlayer:not(.mine) .dicePlayerStatus {
    display: grid;
    min-height: 0;
    text-align: center;
  }

  .diceArena.hasMine .dicePlayer:not(.mine) .dicePlayerStatus strong {
    font-size: 13px;
    line-height: 1.1;
  }

  .diceArena.hasMine .dicePlayer:not(.mine) .dicePlayerStatus span:not(.diceRemotePower) {
    display: none;
  }

  .mobileOnly {
    display: flex;
  }

  .dicePlayer.mine .diceSoftStage {
    min-height: min(540px, calc(100dvh - 382px));
    border: 0;
    overflow: visible;
    background:
      radial-gradient(circle at 50% 70%, rgba(246, 182, 74, 0.1), transparent 30%),
      transparent;
  }

  .dicePlayer.mine .diceSoftCamera {
    transform: rotateX(50deg) rotateZ(-45deg);
    transform-origin: 50% 58%;
  }

  .dicePlayer.mine .diceSoftRig {
    --dice-rig-scale: 1.34;
    transform: translate3d(0, 0, 0) scale3d(var(--dice-rig-scale), var(--dice-rig-scale), var(--dice-rig-scale));
  }

  .dicePlayer.mine.charging .diceSoftRig {
    transform: translate3d(0, 0, calc(var(--charge) * 72px)) rotateZ(calc(var(--charge) * -6deg)) scale3d(var(--dice-rig-scale), var(--dice-rig-scale), var(--dice-rig-scale));
  }

  .dicePlayer.mine .dicePlayerStatus {
    display: none;
  }

  .diceRoundBar {
    display: grid;
    justify-items: center;
    padding: 18px 0 0;
    text-align: center;
  }

  .diceSessionDelta {
    margin: 8px 0 0;
    min-width: min(240px, 100%);
  }

  .diceRoundBar > div {
    display: none;
  }

  .diceMainAction {
    width: min(100%, 560px);
    min-height: 86px;
    font-size: 34px;
  }

  .diceJoinInline {
    width: 100%;
    display: grid;
  }

  .diceJoinInline input {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .appShell {
    width: min(100% - 20px, 1320px);
    padding-top: 12px;
  }

  .topbar,
  .sectionHead,
  .lobbyHeader {
    align-items: stretch;
    flex-direction: column;
  }

  .accountBox {
    justify-content: flex-start;
  }

  .heroBand,
  .lobbyMain,
  .lobbySide {
    padding: 14px;
  }

  .heroStats,
  .gameGrid,
  .playersGrid,
  .diceArena,
  .scoreboard,
  .choiceRow {
    grid-template-columns: 1fr;
  }

  .gameCard {
    min-height: 320px;
  }

  .historyItem {
    grid-template-columns: 1fr;
  }

  .modalGamePreview {
    grid-template-columns: 1fr;
  }

  .diceDuelTop {
    align-items: stretch;
    flex-direction: column;
  }

  .diceGameSurface .diceDuelTop {
    align-items: center;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand settings"
      "stats stats";
  }

  .diceCountdown {
    text-align: left;
  }

  .diceGameSurface .diceCountdown {
    text-align: center;
  }

  .dicePlayer {
    padding: 14px;
  }

  .diceGameSurface .dicePlayer {
    padding: 0;
  }

  .diceGameSurface .diceArena.hasMine .dicePlayer:not(.mine) {
    padding: 10px;
  }

  .diceLabHero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .labStage {
    min-height: 300px;
  }
}

.adminPage {
  display: grid;
  gap: 18px;
  padding-top: 22px;
}

.adminHero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
}

.adminHero > div {
  display: grid;
  gap: 12px;
}

.adminHero h1 {
  font-size: 42px;
  line-height: 1;
}

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

.adminSplit {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 18px;
}

.adminPanel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.adminSettingsForm {
  display: grid;
  gap: 12px;
}

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

.adminGameSwitchGrid {
  display: grid;
  gap: 8px;
}

.adminGameSwitch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(6, 10, 18, 0.58);
  color: #f8fafc;
  font-weight: 850;
}

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

.adminGameSwitch input {
  width: 18px;
  height: 18px;
  accent-color: #f5bd4c;
}

.affiliateAdminTable input,
.affiliateAdminTable select {
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 10, 18, 0.78);
  color: #f8fafc;
  padding: 0 8px;
}

.adminCheck {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  white-space: nowrap;
}

.quickAccountPrompt {
  position: fixed;
  z-index: 130;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: min(360px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(245, 189, 76, 0.42);
  border-radius: 14px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 10% 0%, rgba(245, 189, 76, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(16, 23, 35, 0.98), rgba(7, 10, 16, 0.98));
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.5), 0 0 28px rgba(245, 189, 76, 0.12);
}

.quickAccountPrompt strong,
.quickAccountPrompt span {
  display: block;
}

.quickAccountPrompt strong {
  color: #ffd887;
  font-size: 14px;
  font-weight: 950;
}

.quickAccountPrompt span {
  margin-top: 3px;
  color: #aab6c8;
  font-size: 12px;
  line-height: 1.35;
}

.quickAccountPrompt button {
  min-height: 34px;
  border-radius: 10px;
  font-weight: 900;
}

.quickAccountPrompt #quickAccountSaveBtn {
  border: 1px solid rgba(245, 189, 76, 0.78);
  padding: 0 12px;
  color: #130d07;
  background: linear-gradient(145deg, #ffe08a, #f0a32d);
}

.quickAccountPrompt #quickAccountLaterBtn {
  width: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #d8e2f3;
  background: rgba(255, 255, 255, 0.05);
  font-size: 22px;
  line-height: 1;
}

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

.adminSearch {
  display: grid;
  grid-template-columns: minmax(180px, 260px) auto;
  gap: 8px;
}

.adminTableWrap {
  width: 100%;
  overflow-x: auto;
}

.adminTable {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.adminTable th,
.adminTable td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.adminTable th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.adminTable td {
  color: #dfe7f5;
  font-size: 13px;
}

.adminTable td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.ledgerTable {
  min-width: 1060px;
}

.reasonPill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(122, 167, 255, 0.28);
  border-radius: 8px;
  padding: 0 8px;
  background: rgba(122, 167, 255, 0.08);
  color: #d9e5ff;
  font-weight: 800;
}

.amountPositive {
  color: var(--green) !important;
  font-weight: 900;
}

.amountNegative {
  color: var(--red) !important;
  font-weight: 900;
}

.compactBtn {
  min-height: 32px;
  padding: 0 10px;
}

.adminTable code {
  display: inline-block;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #b8c7dc;
}

@media (max-width: 900px) {
  .adminHero,
  .adminSplit {
    grid-template-columns: 1fr;
  }

  .adminHero {
    display: grid;
    align-items: stretch;
  }

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

@media (max-width: 700px) {
  .adminHero h1 {
    font-size: 34px;
  }

  .adminMetricGrid,
  .adminSearch {
    grid-template-columns: 1fr;
  }
}

.rpsGameApp.rpsExperimentRoot {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 19% 18%, rgba(255, 181, 31, 0.18), transparent 22rem),
    radial-gradient(circle at 78% 20%, rgba(47, 153, 255, 0.16), transparent 21rem),
    radial-gradient(circle at 50% 100%, rgba(255, 76, 85, 0.08), transparent 26rem),
    #02050a;
}

.rpsExpShell {
  --rps-bg: #02050a;
  --rps-panel: rgba(8, 13, 22, 0.78);
  --rps-panel-strong: rgba(9, 17, 29, 0.92);
  --rps-line: rgba(255, 255, 255, 0.13);
  --rps-gold: #ffd34f;
  --rps-gold-hot: #ffb51f;
  --rps-blue: #36a8ff;
  --rps-red: #ff4c55;
  --rps-text: #f8fafc;
  --rps-muted: #8d98a8;
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100vw, 520px);
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  padding: clamp(18px, 5vw, 34px) clamp(18px, 4.5vw, 30px) 24px;
  overflow: hidden;
  color: var(--rps-text);
  background:
    linear-gradient(180deg, rgba(3, 8, 15, 0.72), rgba(2, 5, 10, 0.94)),
    radial-gradient(circle at 50% 36%, rgba(13, 34, 52, 0.85), transparent 24rem),
    #02050a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 110px rgba(0, 0, 0, 0.55);
}

.rpsExpShell::before,
.rpsExpShell::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.rpsExpShell::before {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, #000 26%, #000 76%, transparent);
  transform: perspective(500px) rotateX(62deg) translateY(160px) scale(1.45);
  transform-origin: 50% 100%;
}

.rpsExpShell::after {
  opacity: 0.44;
  background:
    radial-gradient(circle at 18% 66%, rgba(255, 208, 70, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 38%, rgba(57, 164, 255, 0.24) 0 1px, transparent 2px),
    radial-gradient(circle at 64% 78%, rgba(255, 255, 255, 0.13) 0 1px, transparent 2px);
  background-size: 73px 73px, 97px 97px, 61px 61px;
  animation: rpsExpStarDrift 9s linear infinite;
}

.rpsExpNoise {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.11;
  background-image: repeating-radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.32) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}

.rpsExpTopbar,
.rpsExpMetaRow,
.rpsExpPlayers,
.rpsExpArena,
.rpsExpChoiceDeck,
.rpsExpStatusRow {
  position: relative;
  z-index: 2;
}

.rpsExpTopbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 40;
}

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

.rpsExpBrand h1 {
  margin: 0;
  font-size: clamp(30px, 8vw, 40px);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(255, 212, 90, 0.14);
}

.rpsExpBrandMark {
  display: grid;
  width: 52px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--rps-gold);
  filter: drop-shadow(0 0 14px rgba(255, 207, 67, 0.46));
}

.rpsExpBrandMark svg {
  width: 100%;
  height: 100%;
  fill: rgba(255, 209, 65, 0.12);
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.rpsExpIconButton {
  display: grid;
  width: 58px;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 202, 65, 0.34);
  border-radius: 8px;
  color: var(--rps-gold);
  background: rgba(11, 15, 22, 0.82);
  box-shadow: inset 0 0 18px rgba(255, 197, 48, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.rpsExpHeaderActions {
  position: relative;
  z-index: 45;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.rpsExpMenuWrap {
  position: relative;
  z-index: 50;
  display: grid;
  place-items: center;
}

.rpsExpMenuIcon {
  width: 26px;
  height: 4px;
  border-radius: 99px;
  background: currentColor;
  box-shadow: 0 -9px 0 currentColor, 0 9px 0 currentColor;
}

.rpsExpMenuPanel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  display: grid;
  width: min(230px, 74vw);
  padding: 8px;
  border: 1px solid rgba(255, 202, 65, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(7, 13, 22, 0.98), rgba(2, 6, 13, 0.98));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.42),
    inset 0 0 22px rgba(255, 202, 65, 0.035);
}

.rpsExpMenuPanel button {
  width: 100%;
  justify-content: flex-start;
  touch-action: manipulation;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: rgba(245, 248, 255, 0.9);
  background: transparent;
  font-size: 15px;
  font-weight: 750;
  text-align: left;
}

.rpsExpMenuPanel button:hover {
  color: #fff;
  background: rgba(255, 211, 79, 0.1);
}

.rpsExpMenuPanel button:disabled {
  cursor: default;
  opacity: 0.42;
}

.rpsExpIconButton:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 211, 79, 0.76);
  background: rgba(11, 15, 22, 0.82);
}

.rpsExpIconButton svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rpsSoundOff,
.rpsExpIconButton.is-muted .rpsSoundOn {
  display: none;
}

.rpsExpIconButton.is-muted .rpsSoundOff {
  display: block;
}

.rpsExpMetaRow {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(12px, 2.8dvh, 26px);
}

.rpsExpMetaChip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  height: 43px;
  gap: 8px;
  border: 1px solid var(--rps-line);
  border-radius: 8px;
  color: #cfd6df;
  background: rgba(5, 10, 18, 0.74);
  backdrop-filter: blur(12px);
}

.rpsExpMetaChip strong {
  color: #fff;
  font-size: 20px;
}

.rpsExpCoin {
  display: grid;
  width: 20px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #161008;
  background: linear-gradient(135deg, #fff2a4, #ffb721);
  font-size: 12px;
  font-weight: 900;
}

.rpsExpBalanceIcon {
  color: #071019;
  background: linear-gradient(135deg, #90d7ff, #27a6ff);
}

.rpsExpSessionDelta {
  position: relative;
  z-index: 2;
  margin-top: 8px;
}

.rpsExpPlayers {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  flex: 0 0 auto;
  gap: 14px;
  margin-top: clamp(16px, 4dvh, 38px);
}

.rpsExpVs {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 211, 79, 0.52);
  border-radius: 50%;
  color: #fff;
  background: rgba(5, 9, 15, 0.88);
  box-shadow: 0 0 26px rgba(255, 195, 37, 0.22);
  font-size: 22px;
  font-weight: 950;
  transform: translate(-50%, -50%);
}

.rpsExpPlayerCard {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 70px;
  gap: 12px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--rps-line);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}

.rpsExpPlayerCard::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.rpsExpPlayerYou::before {
  border-left: 2px solid var(--rps-gold);
  box-shadow: inset 22px 0 38px rgba(255, 203, 50, 0.14);
}

.rpsExpPlayerGuest {
  justify-content: flex-end;
}

.rpsExpPlayerGuest .rpsExpPlayerCopy {
  flex: 1 1 auto;
  min-width: 56px;
}

.rpsExpPlayerGuest::before {
  border-right: 2px solid var(--rps-blue);
  box-shadow: inset -22px 0 38px rgba(48, 158, 255, 0.14);
}

.rpsExpPlayerCopy {
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: #c7cdd7;
  font-size: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rpsExpPlayerCopy strong {
  color: #fff;
}

.rpsExpAvatar {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  aspect-ratio: 1;
  border: 2px solid currentColor;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, currentColor 0 9px, transparent 10px),
    radial-gradient(ellipse at 50% 70%, currentColor 0 16px, transparent 17px),
    rgba(255, 255, 255, 0.03);
}

.rpsExpAvatar::after {
  position: absolute;
  right: -5px;
  bottom: 4px;
  width: 11px;
  aspect-ratio: 1;
  border: 2px solid #06101a;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.rpsExpAvatar.has-image {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.rpsExpAvatar.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.rpsExpAvatarGold {
  color: var(--rps-gold);
}

.rpsExpAvatarBlue {
  color: var(--rps-blue);
}

.rpsExpMystery {
  display: grid;
  flex: 0 0 auto;
  width: 45px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(52, 164, 255, 0.68);
  border-radius: 7px;
  color: #9bd4ff;
  background: rgba(24, 85, 156, 0.28);
  box-shadow: inset 0 0 18px rgba(54, 168, 255, 0.19);
  font-size: 25px;
  font-weight: 800;
}

.rpsExpArena {
  display: grid;
  flex: 1 1 auto;
  min-height: 286px;
  height: auto;
  margin-top: clamp(8px, 2.3dvh, 22px);
  place-items: center;
  isolation: isolate;
}

.rpsExpShell.phase-result .rpsExpArena {
  min-height: clamp(440px, 64dvh, 520px);
}

.rpsExpShell.phase-result .rpsExpScreenClash {
  padding-top: clamp(12px, 3vw, 24px);
}

.rpsExpShell.phase-result .rpsExpBattleLane {
  height: clamp(150px, 32vw, 210px);
  margin-top: 14px;
}

.rpsExpShell.phase-result .rpsExpCombatHand {
  width: min(190px, 42vw);
  max-height: 210px;
}

.rpsExpRing {
  position: absolute;
  inset: max(4px, 1vw);
  margin: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
}

.rpsExpRingA {
  width: min(94vw, 478px, 54dvh);
  background:
    conic-gradient(from 0deg, transparent 0 14deg, rgba(255, 217, 88, 0.95) 16deg 22deg, transparent 24deg 100deg, rgba(255, 181, 31, 0.7) 104deg 111deg, transparent 116deg 220deg, rgba(255, 235, 139, 0.95) 224deg 229deg, transparent 232deg 360deg);
  filter: drop-shadow(0 0 14px rgba(255, 193, 38, 0.58));
  mask: radial-gradient(circle, transparent 0 72%, #000 73% 74.5%, transparent 75.5%);
  animation: rpsExpRingSpin 5s linear infinite;
}

.rpsExpRingB {
  width: min(83vw, 421px, 48dvh);
  border: 1px solid rgba(255, 200, 54, 0.5);
  box-shadow:
    0 0 38px rgba(255, 187, 35, 0.11),
    inset 0 0 42px rgba(53, 160, 255, 0.08);
  animation: rpsExpRingPulse 1.8s ease-in-out infinite alternate;
}

.rpsExpGrid {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(65, 159, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 199, 45, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle, #000 0 54%, transparent 72%);
  transform: perspective(380px) rotateX(62deg);
}

.rpsExpScreen {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  padding: 16px;
  place-items: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.rpsExpScreen.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.rpsExpStageKicker {
  margin: 0;
  color: #f0f4fa;
  font-size: clamp(25px, 6vw, 33px);
}

.rpsExpStageSubtitle {
  margin: clamp(6px, 1.6dvh, 12px) 0 0;
  color: var(--rps-gold);
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 700;
}

.rpsExpCountdown {
  margin-top: clamp(8px, 2dvh, 18px);
  color: var(--rps-gold);
  font-size: clamp(104px, 27dvh, 178px);
  font-weight: 950;
  line-height: 0.82;
  text-shadow:
    0 0 18px rgba(255, 218, 80, 0.85),
    0 0 60px rgba(255, 181, 31, 0.5);
  animation: rpsExpCountPop 0.38s cubic-bezier(0.17, 0.84, 0.34, 1.38);
}

.rpsExpShell.phase-paused .rpsExpCountdown {
  font-size: clamp(54px, 14vw, 82px);
  letter-spacing: 0;
}

.rpsExpCountdownLine {
  width: min(300px, 68vw);
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(90deg, transparent, var(--rps-gold), transparent);
  box-shadow: 0 0 14px rgba(255, 196, 42, 0.8);
}

.rpsExpReadyPill {
  display: flex;
  align-items: center;
  width: min(340px, 82vw);
  min-height: 86px;
  gap: 16px;
  margin-top: clamp(16px, 4dvh, 36px);
  padding: 16px 22px;
  border: 1px solid rgba(255, 192, 39, 0.36);
  border-radius: 8px;
  background: rgba(13, 16, 20, 0.76);
  box-shadow: 0 0 42px rgba(255, 194, 39, 0.08);
  text-align: left;
}

.rpsExpShell.phase-reconnect .rpsExpReadyPill {
  display: none;
}

.rpsExpShell.phase-reconnect .rpsExpStageSubtitle {
  font-size: clamp(28px, 7vw, 42px);
  font-weight: 900;
}

.rpsExpReadyPill strong {
  display: block;
  color: var(--rps-gold);
  font-size: clamp(25px, 6.6vw, 35px);
  line-height: 1;
}

.rpsExpReadyPill span {
  color: #939dad;
  font-size: 20px;
}

.rpsExpCheckmark {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  aspect-ratio: 1;
  border: 3px solid var(--rps-gold);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(255, 211, 79, 0.2);
}

.rpsExpCheckmark::after {
  position: absolute;
  left: 16px;
  top: 17px;
  width: 23px;
  height: 12px;
  border-left: 5px solid var(--rps-gold);
  border-bottom: 5px solid var(--rps-gold);
  content: "";
  transform: rotate(-45deg);
}

.rpsExpPickTimer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  gap: 8px;
  margin-bottom: 2px;
}

.rpsExpPickTimer svg {
  position: absolute;
  width: 72px;
  height: 72px;
  transform: rotate(-90deg);
}

.rpsExpTimerTrack,
.rpsExpTimerProgress {
  fill: none;
  stroke-width: 8;
}

.rpsExpTimerTrack {
  stroke: rgba(255, 255, 255, 0.08);
}

.rpsExpTimerProgress {
  stroke: var(--rps-gold);
  stroke-linecap: round;
  stroke-dasharray: 232.48;
  filter: drop-shadow(0 0 10px rgba(255, 209, 79, 0.75));
  transition: stroke-dashoffset 0.12s linear;
}

.rpsExpPickTimer strong {
  z-index: 1;
  margin-left: 2px;
  color: #fff5c4;
  font-size: 39px;
  line-height: 1;
}

.rpsExpPickTimer span {
  z-index: 1;
  color: #e3e7ee;
  font-size: 24px;
}

.rpsExpSelectionCore {
  position: relative;
  display: grid;
  width: min(290px, 67vw, 36dvh);
  aspect-ratio: 1;
  margin-top: 18px;
  place-items: center;
  border-radius: 50%;
}

.rpsExpSelectionCore::before,
.rpsExpSelectionCore::after {
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  content: "";
}

.rpsExpSelectionCore::before {
  border: 1px solid rgba(255, 210, 73, 0.38);
  box-shadow:
    inset 0 0 36px rgba(255, 206, 68, 0.1),
    0 0 34px rgba(255, 193, 43, 0.12);
}

.rpsExpSelectionCore::after {
  inset: 24%;
  border: 1px solid rgba(54, 168, 255, 0.22);
  animation: rpsExpRingPulse 1.4s ease-in-out infinite alternate;
}

.rpsExpEmptyOrb {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.rpsExpEmptyOrb span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--rps-gold);
  box-shadow: 0 0 18px rgba(255, 212, 73, 0.8);
  transform-origin: -62px -62px;
  animation: rpsExpOrbitDot 1.25s linear infinite;
}

.rpsExpEmptyOrb span:nth-child(2) {
  background: var(--rps-blue);
  animation-delay: -0.42s;
}

.rpsExpEmptyOrb span:nth-child(3) {
  background: var(--rps-red);
  animation-delay: -0.84s;
}

.rpsExpFocusHand {
  position: relative;
  z-index: 1;
  width: 86%;
  max-width: 282px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 207, 65, 0.28));
}

.rpsExpFocusHand.is-swapping {
  animation: rpsExpHandLock 0.36s cubic-bezier(0.2, 0.86, 0.28, 1);
}

.rpsExpSelectionCore.has-selection .rpsExpEmptyOrb {
  opacity: 0;
}

.rpsExpLockedCopy {
  min-height: 24px;
  margin: 6px 0 0;
  color: var(--rps-gold);
  font-size: 18px;
  font-weight: 800;
}

.rpsExpChoiceDeck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: 0 0 auto;
  gap: clamp(10px, 3vw, 16px);
  margin-top: 4px;
  padding: clamp(8px, 1.5dvh, 12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(6, 11, 19, 0.72);
  backdrop-filter: blur(14px);
  transition: opacity 0.22s ease, transform 0.22s ease, max-height 0.22s ease, margin 0.22s ease, padding 0.22s ease;
}

.rpsExpChoiceCard {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 0.82;
  align-content: end;
  justify-items: center;
  padding: 13px 8px 18px;
  overflow: hidden;
  border: 1px solid rgba(47, 151, 255, 0.58);
  border-radius: 8px;
  color: #9bd4ff;
  background:
    linear-gradient(180deg, rgba(11, 44, 78, 0.72), rgba(5, 12, 24, 0.92)),
    rgba(5, 9, 16, 0.9);
  box-shadow: inset 0 0 22px rgba(54, 168, 255, 0.08);
  transition:
    transform 0.24s cubic-bezier(0.2, 0.8, 0.24, 1),
    border-color 0.26s ease,
    color 0.26s ease,
    background 0.26s ease,
    box-shadow 0.26s ease;
}

.rpsExpChoiceCard::before {
  position: absolute;
  inset: -45% -35% 48%;
  background: radial-gradient(circle, rgba(54, 168, 255, 0.26), transparent 62%);
  opacity: 0;
  content: "";
  transition: opacity 0.18s ease;
}

.rpsExpChoiceCard img {
  position: absolute;
  top: 12%;
  width: min(82%, 122px);
  height: 53%;
  object-fit: contain;
  filter: saturate(1.05) brightness(0.9) drop-shadow(0 0 13px rgba(54, 168, 255, 0.2));
  transform: translateY(8px) scale(0.94);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.rpsExpChoiceCard span {
  position: relative;
  z-index: 1;
  max-width: 100%;
  color: currentColor;
  font-size: clamp(15px, 4.2vw, 24px);
  font-weight: 850;
  line-height: 1.05;
  white-space: nowrap;
}

.rpsExpChoiceCard i {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 4px;
  margin-top: 14px;
  border-radius: 99px;
  background: currentColor;
  opacity: 0;
  box-shadow: 0 0 14px currentColor;
}

.rpsExpChoiceCard:hover,
.rpsExpChoiceCard:focus-visible,
.rpsExpChoiceCard.is-selected {
  transform: translateY(-3px) scale(1.008);
  border-color: rgba(255, 211, 79, 0.68);
  color: var(--rps-gold);
  background:
    linear-gradient(180deg, rgba(22, 24, 26, 0.84), rgba(9, 10, 13, 0.94)),
    rgba(5, 9, 16, 0.9);
  box-shadow: 0 0 22px rgba(255, 196, 42, 0.1);
  outline: none;
}

.rpsExpChoiceCard.is-selected::before {
  background: radial-gradient(circle, rgba(255, 211, 79, 0.2), transparent 64%);
}

.rpsExpChoiceCard:hover::before,
.rpsExpChoiceCard:focus-visible::before,
.rpsExpChoiceCard.is-selected::before {
  opacity: 1;
}

.rpsExpChoiceCard:hover img,
.rpsExpChoiceCard:focus-visible img,
.rpsExpChoiceCard.is-selected img {
  filter: grayscale(0) brightness(0.98) drop-shadow(0 0 12px rgba(255, 206, 66, 0.28));
  transform: translateY(0) scale(1.02);
}

.rpsExpChoiceCard.is-selected {
  animation: rpsExpCardLock 0.36s cubic-bezier(0.2, 0.86, 0.26, 1);
}

.rpsExpChoiceCard.is-selected i {
  opacity: 1;
}

.rpsExpChoiceDeck.is-locked {
  opacity: 0.48;
}

.rpsExpChoiceDeck.is-locked .rpsExpChoiceCard {
  cursor: default;
  pointer-events: none;
}

.rpsExpShell.mode-clash .rpsExpChoiceDeck,
.rpsExpShell.mode-clash .rpsExpStatusRow {
  max-height: 0;
  min-height: 0;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

.rpsExpStatusRow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 28px;
  gap: 10px;
  margin-top: 5px;
  color: #7e8999;
  font-size: clamp(15px, 4.3vw, 19px);
}

.rpsExpReadyToggle {
  min-height: 34px;
  margin-left: 4px;
  padding: 0 12px;
  border-color: rgba(255, 211, 79, 0.42);
  border-radius: 8px;
  color: #ffd34f;
  background: rgba(255, 211, 79, 0.08);
  font-size: 14px;
  font-weight: 850;
}

.rpsExpReadyToggle.is-paused {
  color: #06101a;
  border-color: rgba(255, 211, 79, 0.92);
  background: linear-gradient(135deg, #fff2a4, #ffb721);
}

.rpsExpToast {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 5;
  padding: 10px 14px;
  border: 1px solid rgba(255, 211, 79, 0.44);
  border-radius: 8px;
  color: #fff;
  background: rgba(5, 9, 16, 0.9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
}

.rpsExpStatusDot {
  width: 19px;
  aspect-ratio: 1;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: rpsExpSpin 0.9s linear infinite;
}

.rpsExpScreenClash {
  align-content: start;
  padding-top: clamp(22px, 7vw, 54px);
}

.rpsExpClashTitle {
  color: var(--rps-gold);
  font-size: clamp(34px, 10vw, 58px);
  font-style: italic;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(255, 202, 50, 0.55);
  transform: skewX(-10deg);
}

.rpsExpBattleLane {
  position: relative;
  width: min(472px, 100%);
  height: clamp(190px, 43vw, 260px);
  margin-top: 28px;
}

.rpsExpCombatHand {
  position: absolute;
  top: 50%;
  width: min(236px, 48vw);
  max-height: 260px;
  object-fit: contain;
  --combat-flip: 1;
  --combat-flip-y: 1;
  --combat-rot: 0deg;
  --combat-scale: 1;
  filter: drop-shadow(0 0 24px rgba(255, 207, 65, 0.45));
  transform: translateY(-50%) scaleX(var(--combat-flip)) scaleY(var(--combat-flip-y)) rotate(var(--combat-rot)) scale(var(--combat-scale));
}

.rpsExpCombatLeft {
  left: -4px;
  animation: rpsExpStrikeLeft 0.82s cubic-bezier(0.22, 0.98, 0.32, 1) both;
}

.rpsExpCombatRight {
  right: -4px;
  --combat-flip: -1;
  filter: drop-shadow(0 0 24px rgba(54, 168, 255, 0.52));
  animation: rpsExpStrikeRight 0.82s cubic-bezier(0.22, 0.98, 0.32, 1) both;
}

.rpsExpCombatLeft.choice-rock {
  --combat-rot: 82deg;
}

.rpsExpCombatRight.choice-rock {
  --combat-flip: 1;
  --combat-flip-y: -1;
  --combat-rot: -82deg;
  --combat-scale: 0.84;
}

.rpsExpCombatLeft.choice-paper {
  --combat-flip-y: -1;
  --combat-rot: 132deg;
}

.rpsExpCombatRight.choice-paper {
  --combat-flip: 1;
  --combat-rot: -42deg;
}

.rpsExpCombatLeft.choice-scissors {
  --combat-flip: 1;
  --combat-flip-y: -1;
  --combat-rot: 132deg;
}

.rpsExpCombatRight.choice-scissors {
  --combat-flip: 1;
  --combat-rot: -42deg;
}

.rpsExpImpactCore {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 72px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: rpsExpImpactPop 0.86s 0.26s ease-out both;
}

.rpsExpImpactCore::before,
.rpsExpImpactCore::after {
  position: absolute;
  inset: -110px;
  border-radius: 50%;
  background:
    conic-gradient(from 8deg, transparent 0 3deg, rgba(255, 214, 79, 0.9) 3deg 5deg, transparent 5deg 14deg, rgba(54, 168, 255, 0.75) 14deg 17deg, transparent 17deg 28deg),
    radial-gradient(circle, #fff 0 3%, rgba(255, 218, 91, 0.86) 4%, rgba(54, 168, 255, 0.18) 16%, transparent 43%);
  content: "";
  filter: blur(0.4px);
}

.rpsExpImpactCore::after {
  inset: -48px;
  background: radial-gradient(circle, #fff 0 10%, rgba(255, 220, 80, 0.92) 20%, rgba(255, 76, 85, 0.22) 42%, transparent 70%);
}

.rpsExpImpactCore span {
  position: absolute;
  width: 310px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  box-shadow: 0 0 18px #fff, 0 0 36px rgba(255, 204, 57, 0.75);
}

.rpsExpImpactCore span:nth-child(2) {
  transform: rotate(90deg);
}

.rpsExpImpactCore strong {
  position: relative;
  z-index: 1;
  color: #05080d;
  font-size: 15px;
  font-weight: 950;
}

.rpsExpResultPanel {
  display: flex;
  align-items: center;
  width: min(360px, 84vw);
  min-height: 96px;
  gap: 17px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 211, 79, 0.76);
  border-radius: 8px;
  background: rgba(9, 12, 18, 0.82);
  box-shadow: 0 0 38px rgba(255, 197, 42, 0.14), inset 0 0 28px rgba(255, 211, 79, 0.04);
  text-align: left;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  animation: rpsExpResultIn 0.28s 0.45s ease-out both;
}

.rpsExpShell.phase-result .rpsExpResultPanel {
  margin-top: 8px;
}

.rpsExpResultBadge {
  display: grid;
  flex: 0 0 auto;
  width: 64px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 211, 79, 0.76);
  border-radius: 8px;
  color: var(--rps-gold);
  background: rgba(255, 211, 79, 0.08);
}

.rpsExpResultBadge svg {
  width: 38px;
  fill: currentColor;
}

.rpsExpResultPanel strong {
  display: block;
  color: var(--rps-gold);
  font-size: clamp(34px, 8vw, 45px);
  line-height: 1;
}

.rpsExpResultPanel span {
  color: #f5f7fb;
  font-size: clamp(20px, 5.2vw, 27px);
}

.rpsExpNextRound {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 22px 0 0;
  color: #a0aabc;
  font-size: clamp(18px, 4.7vw, 25px);
}

.rpsExpShell.result-win .rpsExpResultPanel {
  border-color: rgba(41, 255, 82, 0.72);
  background: rgba(4, 18, 11, 0.82);
  box-shadow: 0 0 38px rgba(41, 255, 82, 0.16), inset 0 0 28px rgba(41, 255, 82, 0.05);
}

.rpsExpShell.result-win .rpsExpResultPanel strong,
.rpsExpShell.result-win .rpsExpResultBadge {
  color: #43ff55;
}

.rpsExpShell.result-win .rpsExpResultBadge {
  border-color: rgba(41, 255, 82, 0.68);
  background: rgba(41, 255, 82, 0.08);
}

.rpsExpShell.result-lose .rpsExpResultPanel {
  border-color: rgba(255, 76, 85, 0.7);
  box-shadow: 0 0 38px rgba(255, 76, 85, 0.12), inset 0 0 28px rgba(255, 76, 85, 0.04);
}

.rpsExpShell.result-lose .rpsExpResultPanel strong,
.rpsExpShell.result-lose .rpsExpResultBadge {
  color: #ff737a;
}

.rpsExpShell.result-lose .rpsExpResultBadge {
  border-color: rgba(255, 76, 85, 0.66);
  background: rgba(255, 76, 85, 0.08);
}

.rpsExpShell.result-draw .rpsExpResultPanel {
  border-color: rgba(54, 168, 255, 0.72);
  box-shadow: 0 0 38px rgba(54, 168, 255, 0.13), inset 0 0 28px rgba(54, 168, 255, 0.04);
}

.rpsExpShell.result-draw .rpsExpResultPanel strong,
.rpsExpShell.result-draw .rpsExpResultBadge {
  color: #72c5ff;
}

.rpsExpShell.result-draw .rpsExpResultBadge {
  border-color: rgba(54, 168, 255, 0.66);
  background: rgba(54, 168, 255, 0.08);
}

@media (min-width: 900px) {
  .rpsExpShell {
    width: min(100vw, 620px);
  }
}

@media (max-width: 430px) {
  .rpsExpShell {
    height: auto;
    min-height: 100dvh;
    padding: 18px 14px 16px;
    overflow: hidden;
  }

  .rpsExpTopbar {
    gap: 8px;
    min-height: 54px;
  }

  .rpsExpBrand {
    gap: 10px;
  }

  .rpsExpBrand h1 {
    font-size: 28px;
  }

  .rpsExpBrandMark {
    width: 43px;
  }

  .rpsExpIconButton {
    width: 44px;
  }

  .rpsExpBrandMark svg {
    stroke-width: 4.8;
  }

  .rpsExpHeaderActions {
    gap: 6px;
  }

  .rpsExpHeaderActions #rpsSoundToggle {
    display: none;
  }

  .rpsExpHeaderActions #copyInvite svg {
    display: none;
  }

  .rpsExpHeaderActions #copyInvite::before {
    width: 22px;
    height: 3px;
    border-radius: 99px;
    background: currentColor;
    box-shadow: 0 -8px 0 currentColor, 0 8px 0 currentColor;
    content: "";
  }

  .rpsExpPlayers {
    gap: 0;
    margin-top: 16px;
  }

  .rpsExpPlayerCard {
    min-height: 68px;
    gap: 9px;
    padding: 10px 12px;
  }

  .rpsExpPlayerCopy {
    font-size: 20px;
  }

  .rpsExpAvatar {
    width: 46px;
  }

  .rpsExpMystery {
    display: none;
  }

  .rpsExpVs {
    width: 54px;
    font-size: 19px;
  }

  .rpsExpArena {
    min-height: min(45dvh, 378px);
    margin-top: 12px;
  }

  .rpsExpShell.phase-result .rpsExpArena {
    min-height: 360px;
  }

  .rpsExpRingA {
    width: min(94vw, 390px);
    background:
      conic-gradient(from 218deg,
        rgba(255, 211, 79, 0.96) 0 92deg,
        transparent 94deg 174deg,
        rgba(54, 168, 255, 0.92) 176deg 279deg,
        transparent 281deg 360deg);
    mask: radial-gradient(circle, transparent 0 71%, #000 72.2% 74.4%, transparent 75.6%);
    opacity: 0.95;
    filter: drop-shadow(0 0 16px rgba(255, 205, 61, 0.38)) drop-shadow(0 0 14px rgba(54, 168, 255, 0.2));
  }

  .rpsExpRingB {
    width: min(80vw, 326px);
    border-color: rgba(255, 211, 79, 0.34);
    box-shadow:
      0 0 34px rgba(255, 194, 39, 0.08),
      inset 0 0 46px rgba(54, 168, 255, 0.08);
  }

  .rpsExpRingB::before {
    position: absolute;
    inset: -36px;
    border-radius: 50%;
    background:
      repeating-conic-gradient(from 4deg, rgba(255, 211, 79, 0.42) 0 1deg, transparent 1deg 5deg),
      repeating-conic-gradient(from 174deg, rgba(54, 168, 255, 0.32) 0 1deg, transparent 1deg 6deg);
    content: "";
    mask: radial-gradient(circle, transparent 0 79%, #000 80% 81%, transparent 82%);
    opacity: 0.62;
  }

  .rpsExpGrid {
    inset: auto;
    left: 50%;
    top: 165px;
    width: min(72vw, 276px);
    height: 178px;
    border-radius: 50%;
    translate: -50% 0;
    opacity: 0.34;
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse at center, #000 0 62%, transparent 74%);
  }

  .rpsExpScreenPick {
    align-content: start;
    padding-top: 2px;
  }

  .rpsExpStageKicker {
    font-size: 31px;
    line-height: 1.05;
  }

  .rpsExpPickTimer {
    height: 78px;
    margin-bottom: 10px;
  }

  .rpsExpPickTimer svg {
    width: 76px;
    height: 76px;
  }

  .rpsExpPickTimer strong {
    font-size: 42px;
  }

  .rpsExpPickTimer span {
    font-size: 25px;
  }

  .rpsExpSelectionCore {
    width: min(258px, 61vw);
    margin-top: 14px;
  }

  .rpsExpEmptyOrb span {
    transform-origin: -54px -54px;
  }

  .rpsExpMetaRow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0;
    margin-top: 8px;
    padding: 12px 8px;
    border: 1px solid rgba(255, 205, 61, 0.34);
    border-radius: 8px;
    background: rgba(5, 10, 18, 0.76);
    box-shadow: inset 0 0 22px rgba(255, 196, 42, 0.04);
  }

  .rpsExpMetaChip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    min-width: 0;
    width: 100%;
    height: auto;
    min-height: 54px;
    column-gap: 7px;
    row-gap: 1px;
    padding: 0 5px;
    border: 0;
    border-right: 1px solid rgba(67, 145, 220, 0.42);
    border-radius: 0;
    background: transparent;
    font-size: 15px;
    line-height: 1.1;
    text-align: left;
  }

  .rpsExpMetaChip:last-child {
    border-right: 0;
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .rpsExpMetaChip > span:not(.rpsExpCoin) {
    min-width: 0;
    color: #c8d2df;
    white-space: nowrap;
  }

  .rpsExpMetaChip strong {
    display: block;
    grid-column: 2;
    max-width: 100%;
    overflow: hidden;
    font-size: clamp(12px, 3.2vw, 15px);
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rpsExpMetaChip:last-child strong {
    grid-column: 1;
    font-size: 19px;
  }

  .rpsExpCoin {
    grid-row: 1 / span 2;
    width: 28px;
    font-size: 12px;
  }

  .rpsExpSessionDelta {
    display: none;
  }

  .rpsExpChoiceDeck {
    gap: 12px;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .rpsExpChoiceDeck.is-locked {
    opacity: 1;
  }

  .rpsExpChoiceDeck.is-locked .rpsExpChoiceCard:not(.is-selected) {
    opacity: 0.55;
  }

  .rpsExpChoiceCard {
    aspect-ratio: 0.86;
    padding: 11px 6px 14px;
    border-color: rgba(47, 151, 255, 0.74);
    box-shadow: 0 0 20px rgba(37, 137, 255, 0.12), inset 0 0 22px rgba(54, 168, 255, 0.08);
  }

  .rpsExpChoiceCard img {
    width: min(86%, 112px);
    height: 55%;
  }

  .rpsExpChoiceCard span {
    font-size: clamp(18px, 5.4vw, 24px);
  }

  .rpsExpStatusRow {
    min-height: 20px;
    margin-top: 6px;
    font-size: 11px;
  }

  .rpsExpReadyToggle {
    display: none;
  }

  .rpsExpShell.phase-reconnect .rpsExpReadyPill {
    display: none;
  }

  .rpsExpShell.phase-reconnect .rpsExpCountdownLine {
    width: min(260px, 66vw);
    margin-top: 12px;
  }

  .rpsExpShell.phase-reconnect .rpsExpStageSubtitle {
    font-size: 26px;
  }
}

/* RPS composition v2 */
.rpsGameApp.rpsExperimentRoot {
  background:
    radial-gradient(circle at 50% 28%, rgba(20, 55, 85, 0.22), transparent 30rem),
    radial-gradient(circle at 16% 16%, rgba(255, 193, 43, 0.08), transparent 18rem),
    radial-gradient(circle at 86% 20%, rgba(25, 131, 255, 0.1), transparent 18rem),
    #00040a;
}

.rpsExpShell {
  background:
    linear-gradient(180deg, rgba(2, 6, 12, 0.9), rgba(0, 4, 10, 0.98)),
    radial-gradient(circle at 50% 42%, rgba(5, 25, 42, 0.74), transparent 25rem),
    #00040a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.035), 0 44px 120px rgba(0, 0, 0, 0.72);
}

.rpsExpShell::before {
  opacity: 0.12;
}

.rpsExpShell::after {
  opacity: 0.2;
}

.rpsExpRing,
.rpsExpGrid,
.rpsExpMystery,
.rpsExpLockedCopy,
.rpsExpSessionDelta,
.rpsExpStatusRow {
  display: none;
}

.rpsExpPlayers {
  gap: 0;
  margin-top: 26px;
}

.rpsExpPlayerCard {
  min-height: 82px;
  gap: 16px;
  padding: 14px 18px;
  border-color: rgba(255, 211, 79, 0.45);
  background:
    linear-gradient(90deg, rgba(255, 211, 79, 0.1), rgba(4, 11, 20, 0.72)),
    rgba(4, 8, 14, 0.86);
  box-shadow: inset 0 0 30px rgba(255, 211, 79, 0.04);
}

.rpsExpPlayerGuest {
  justify-content: flex-start;
  border-color: rgba(54, 168, 255, 0.58);
  background:
    linear-gradient(90deg, rgba(4, 13, 24, 0.74), rgba(54, 168, 255, 0.1)),
    rgba(4, 8, 14, 0.86);
}

.rpsExpPlayerYou::before {
  border-left: 2px solid rgba(255, 211, 79, 0.9);
  box-shadow: inset 26px 0 42px rgba(255, 194, 39, 0.16);
}

.rpsExpPlayerGuest::before {
  border-right: 2px solid rgba(54, 168, 255, 0.95);
  box-shadow: inset -26px 0 42px rgba(54, 168, 255, 0.16);
}

.rpsExpPlayerCopy {
  font-size: 22px;
}

.rpsExpAvatar {
  width: 54px;
}

.rpsExpVs {
  width: 70px;
  border-color: rgba(255, 211, 79, 0.78);
  background:
    radial-gradient(circle, rgba(22, 31, 45, 0.96), rgba(3, 7, 13, 0.98));
  box-shadow:
    0 0 22px rgba(255, 204, 61, 0.18),
    inset 0 0 18px rgba(54, 168, 255, 0.06);
  font-size: 24px;
}

.rpsExpArena {
  display: block;
  flex: 1 1 0;
  min-height: 0;
  margin-top: 34px;
}

.rpsExpScreen {
  inset: 0;
  padding: 0;
}

.rpsExpScreenPick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.rpsExpScreenPick .rpsExpStageKicker {
  margin: 0 0 28px;
  color: #f4f2eb;
  font-size: 40px;
  font-weight: 450;
  line-height: 1.05;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.rpsExpSelectionCore {
  width: min(470px, 82vw, 68dvh);
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(9, 25, 40, 0.72), rgba(1, 7, 14, 0.9) 66%, rgba(0, 3, 8, 0.96)),
    #030810;
  box-shadow:
    inset 0 0 70px rgba(54, 168, 255, 0.08),
    0 0 52px rgba(0, 0, 0, 0.48);
}

.rpsExpSelectionCore::before {
  inset: 0;
  z-index: 2;
  background:
    conic-gradient(from 216deg,
      rgba(255, 211, 79, 0.98) 0 96deg,
      transparent 97deg 179deg,
      rgba(54, 168, 255, 0.96) 180deg 282deg,
      transparent 283deg 360deg);
  box-shadow:
    0 0 26px rgba(255, 204, 61, 0.24),
    0 0 28px rgba(54, 168, 255, 0.18);
  mask: radial-gradient(circle, transparent 0 72%, #000 73.2% 75%, transparent 76.2%);
}

.rpsExpSelectionCore::after {
  inset: 7%;
  z-index: 1;
  border: 0;
  background-image:
    linear-gradient(rgba(255, 211, 79, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 168, 255, 0.075) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle, #000 0 76%, transparent 88%);
  opacity: 0.78;
  transform: perspective(420px) rotateX(58deg) translateY(18px);
  animation: none;
}

.rpsExpEmptyOrb {
  display: none;
}

.rpsExpPickTimer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto;
  gap: 0;
  margin: 0;
  pointer-events: none;
}

.rpsExpPickTimer svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.rpsExpTimerTrack,
.rpsExpTimerProgress {
  stroke-width: 7;
}

.rpsExpTimerTrack {
  stroke: rgba(255, 255, 255, 0.1);
}

.rpsExpTimerProgress {
  transition: stroke-dashoffset 0.14s linear;
}

.rpsExpPickTimer strong {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: 92px;
  font-weight: 850;
  line-height: 0.84;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.18);
}

.rpsExpPickTimer span {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 28px;
  line-height: 1;
}

.rpsExpFocusHand {
  z-index: 4;
  width: 58%;
  max-width: 250px;
}

.rpsExpSelectionCore.has-selection .rpsExpPickTimer {
  opacity: 0.15;
}

.rpsExpChoiceDeck {
  gap: 18px;
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.rpsExpChoiceCard {
  aspect-ratio: 0.96;
  border-color: rgba(54, 168, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(12, 52, 88, 0.62), rgba(3, 11, 22, 0.94)),
    rgba(3, 8, 16, 0.95);
  box-shadow:
    inset 0 0 28px rgba(54, 168, 255, 0.09),
    0 0 24px rgba(0, 0, 0, 0.28);
}

.rpsExpChoiceCard img {
  height: 58%;
  transform: translateY(0) scale(1);
}

.rpsExpChoiceCard span {
  color: #f4f7fb;
  font-size: 26px;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.12);
}

.rpsExpChoiceDeck.is-locked {
  opacity: 1;
}

.rpsExpChoiceDeck.is-locked .rpsExpChoiceCard:not(.is-selected) {
  opacity: 0.5;
}

.rpsExpMetaRow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  padding: 16px 14px;
  border: 1px solid rgba(255, 145, 23, 0.66);
  border-radius: 8px;
  background: rgba(1, 7, 14, 0.84);
  box-shadow:
    inset 0 0 34px rgba(54, 168, 255, 0.035),
    0 0 30px rgba(255, 145, 23, 0.08);
}

.rpsExpMetaChip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  min-width: 0;
  height: auto;
  min-height: 50px;
  column-gap: 10px;
  row-gap: 2px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid rgba(54, 168, 255, 0.5);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.rpsExpMetaChip:last-child {
  grid-template-columns: auto minmax(0, 1fr);
  border-right: 0;
}

.rpsExpMetaChip > span:not(.rpsExpCoin) {
  min-width: 0;
  color: rgba(232, 238, 247, 0.82);
  font-size: 16px;
  white-space: nowrap;
}

.rpsExpMetaChip strong {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rpsExpCoin {
  grid-row: 1 / span 2;
  width: 34px;
  font-size: 14px;
}

@media (max-width: 430px) {
  .rpsExpShell {
    padding: 18px 14px 14px;
  }

  .rpsExpPlayers {
    margin-top: 18px;
  }

  .rpsExpPlayerCard {
    min-height: 64px;
    gap: 10px;
    padding: 10px 12px;
  }

  .rpsExpPlayerCopy {
    font-size: 19px;
  }

  .rpsExpAvatar {
    width: 45px;
  }

  .rpsExpVs {
    width: 56px;
    font-size: 19px;
  }

  .rpsExpArena {
    margin-top: 20px;
  }

  .rpsExpScreenPick .rpsExpStageKicker {
    margin-bottom: 20px;
    font-size: 30px;
  }

  .rpsExpSelectionCore {
    width: min(340px, 80vw, 38dvh);
  }

  .rpsExpPickTimer svg {
    width: 116px;
    height: 116px;
  }

  .rpsExpPickTimer strong {
    font-size: 72px;
  }

  .rpsExpPickTimer span {
    margin-top: 8px;
    font-size: 22px;
  }

  .rpsExpChoiceDeck {
    gap: 12px;
    margin-top: 14px;
  }

  .rpsExpChoiceCard {
    aspect-ratio: 0.9;
    padding: 10px 6px 12px;
  }

  .rpsExpChoiceCard img {
    width: min(86%, 104px);
    height: 56%;
  }

  .rpsExpChoiceCard span {
    font-size: 21px;
  }

  .rpsExpMetaRow {
    margin-top: 14px;
    padding: 12px 8px;
  }

  .rpsExpMetaChip {
    min-height: 52px;
    column-gap: 7px;
    padding: 0 8px;
  }

  .rpsExpMetaChip > span:not(.rpsExpCoin) {
    font-size: 15px;
  }

  .rpsExpMetaChip strong {
    font-size: 15px;
  }

  .rpsExpCoin {
    width: 30px;
  }
}

/* RPS mobile proportion pass */
.rpsExpGameBody {
  gap: clamp(12px, 1.7dvh, 20px);
}

.rpsExpPlayers {
  margin-top: 20px;
}

.rpsExpPlayerCard {
  min-height: 66px;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 8px;
}

.rpsExpPlayerCopy {
  font-size: 19px;
}

.rpsExpAvatar {
  width: 44px;
}

.rpsExpVs {
  width: 58px;
  font-size: 20px;
}

.rpsExpReadyPill {
  display: none;
}

.rpsExpArena {
  display: grid;
  align-items: center;
  margin-top: 18px;
}

.rpsExpScreenReady,
.rpsExpScreenClash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.rpsExpScreenReady .rpsExpStageKicker {
  margin: 0 0 14px;
  color: rgba(248, 250, 255, 0.96);
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 450;
  line-height: 1.05;
  text-align: center;
}

.rpsExpCountdown {
  margin-top: 0;
  font-size: clamp(104px, 20dvh, 148px);
  text-shadow:
    0 0 10px rgba(255, 218, 80, 0.38),
    0 0 28px rgba(255, 181, 31, 0.22);
}

.rpsExpCountdownLine {
  width: min(330px, 72vw);
  margin-top: 18px;
  opacity: 0.58;
  box-shadow: 0 0 8px rgba(255, 196, 42, 0.36);
}

.rpsExpScreenReady .rpsExpStageSubtitle {
  margin-top: 22px;
  font-size: clamp(26px, 5.2vw, 36px);
  font-weight: 800;
  line-height: 1.08;
  text-align: center;
}

.rpsExpPickTimer svg,
.rpsExpPickTimer span {
  display: none;
}

.rpsExpPickTimer strong {
  color: #f8fbff;
  font-size: clamp(70px, 14vw, 92px);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.16);
}

.rpsExpScreenClash {
  justify-content: center;
}

.rpsExpClashTitle {
  margin-bottom: 10px;
  font-size: clamp(28px, 6vw, 42px);
  text-shadow: 0 0 14px rgba(255, 202, 50, 0.28);
}

.rpsExpBattleLane {
  width: min(470px, 82vw, 68dvh);
  height: min(300px, 44dvh);
  margin-top: 0;
}

.rpsExpCombatHand {
  width: min(202px, 39vw);
  max-height: 220px;
}

.rpsExpImpactCore {
  top: 50%;
}

.rpsExpResultPanel {
  width: min(300px, 78vw);
  min-height: 68px;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
}

.rpsExpShell.phase-result .rpsExpResultPanel {
  margin-top: 8px;
}

.rpsExpResultBadge {
  width: 44px;
}

.rpsExpResultBadge svg {
  width: 26px;
}

.rpsExpResultPanel strong {
  font-size: clamp(24px, 5.4vw, 30px);
}

.rpsExpResultPanel span {
  font-size: clamp(15px, 3.8vw, 18px);
}

.rpsExpNextRound {
  min-height: 22px;
  margin-top: 8px;
  font-size: clamp(14px, 3.3vw, 17px);
}

@media (max-width: 430px) {
  .rpsExpGameBody {
    gap: 10px;
  }

  .rpsExpPlayers {
    margin-top: 14px;
  }

  .rpsExpPlayerCard {
    min-height: 54px;
    gap: 8px;
    padding: 8px 10px;
  }

  .rpsExpPlayerCopy {
    font-size: 17px;
  }

  .rpsExpAvatar {
    width: 36px;
  }

  .rpsExpVs {
    width: 48px;
    font-size: 17px;
  }

  .rpsExpArena {
    margin-top: 12px;
  }

  .rpsExpScreenReady .rpsExpStageKicker {
    margin-bottom: 10px;
    font-size: 31px;
  }

  .rpsExpCountdown {
    font-size: clamp(104px, 19dvh, 128px);
  }

  .rpsExpCountdownLine {
    width: min(292px, 70vw);
    margin-top: 14px;
  }

  .rpsExpScreenReady .rpsExpStageSubtitle {
    margin-top: 18px;
    font-size: 25px;
  }

  .rpsExpScreenPick .rpsExpStageKicker {
    margin-bottom: 14px;
    font-size: 27px;
  }

  .rpsExpPickTimer strong {
    font-size: 66px;
  }

  .rpsExpBattleLane {
    width: min(340px, 80vw, 38dvh);
    height: min(236px, 34dvh);
  }

  .rpsExpCombatHand {
    width: min(146px, 36vw);
    max-height: 164px;
  }

  .rpsExpResultPanel {
    width: min(270px, 74vw);
    min-height: 58px;
    gap: 8px;
    padding: 8px 10px;
  }

  .rpsExpResultBadge {
    width: 36px;
  }

  .rpsExpResultBadge svg {
    width: 22px;
  }
}

/* RPS lower HUD and fight polish */
.rpsExpSelectionCore {
  background:
    radial-gradient(circle at 50% 50%, rgba(5, 18, 31, 0.76), rgba(0, 6, 13, 0.94) 64%, rgba(0, 2, 7, 0.98)),
    #01050b;
  box-shadow:
    inset 0 0 0 1px rgba(255, 211, 79, 0.08),
    inset 0 0 76px rgba(54, 168, 255, 0.07),
    0 0 44px rgba(0, 0, 0, 0.5);
}

.rpsExpSelectionCore::before {
  background:
    conic-gradient(from 213deg,
      rgba(255, 211, 79, 0.98) 0 94deg,
      rgba(255, 211, 79, 0.16) 96deg 122deg,
      transparent 124deg 176deg,
      rgba(54, 168, 255, 0.2) 178deg 196deg,
      rgba(54, 168, 255, 0.98) 198deg 286deg,
      rgba(54, 168, 255, 0.12) 288deg 316deg,
      transparent 318deg 360deg);
  filter:
    drop-shadow(0 0 12px rgba(255, 204, 61, 0.28))
    drop-shadow(0 0 14px rgba(54, 168, 255, 0.24));
  mask: radial-gradient(circle, transparent 0 71.5%, #000 72.5% 74%, rgba(0, 0, 0, 0.42) 74.7% 75.4%, transparent 76%);
}

.rpsExpMetaRow {
  min-height: 0;
  margin-top: 18px;
  padding: 10px 12px;
  border-color: rgba(255, 145, 23, 0.42);
  background:
    linear-gradient(180deg, rgba(1, 9, 18, 0.84), rgba(0, 5, 12, 0.9)),
    rgba(1, 7, 14, 0.82);
  box-shadow:
    inset 0 0 24px rgba(54, 168, 255, 0.025),
    0 0 18px rgba(255, 145, 23, 0.045);
}

.rpsExpMetaChip {
  min-height: 42px;
  column-gap: 9px;
  padding: 0 12px;
}

.rpsExpMetaChip > span:not(.rpsExpCoin) {
  font-size: 15px;
}

.rpsExpMetaChip strong {
  font-size: 17px;
}

.rpsExpCoin {
  width: 30px;
}

.rpsExpMetaChip strong {
  font-variant-numeric: tabular-nums;
}

.rpsExpSessionChip {
  text-align: left;
}

.rpsExpMetaChip > .rpsExpTrendIcon {
  display: grid;
  grid-row: 1 / span 2;
  width: 30px;
  aspect-ratio: 1;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
}

.rpsExpSessionChip.is-positive .rpsExpTrendIcon,
.rpsExpSessionChip.is-positive strong {
  color: #39df82;
  text-shadow: 0 0 12px rgba(57, 223, 130, 0.18);
}

.rpsExpSessionChip.is-negative .rpsExpTrendIcon,
.rpsExpSessionChip.is-negative strong {
  color: #ff6376;
  text-shadow: 0 0 12px rgba(255, 99, 118, 0.16);
}

.rpsExpSessionChip.is-neutral .rpsExpTrendIcon,
.rpsExpSessionChip.is-neutral strong {
  color: rgba(232, 238, 247, 0.82);
  text-shadow: none;
}

.rpsExpSessionChip.is-positive .rpsExpTrendIcon::before {
  content: "\2197";
}

.rpsExpSessionChip.is-negative .rpsExpTrendIcon::before {
  content: "\2198";
}

.rpsExpSessionChip.is-neutral .rpsExpTrendIcon::before {
  content: "0";
  font-size: 18px;
}

.rpsExpBattleLane,
.rpsExpShell.phase-result .rpsExpBattleLane {
  height: min(320px, 46dvh);
  transform: translateY(-22px);
}

.rpsExpCombatHand,
.rpsExpShell.phase-result .rpsExpCombatHand {
  width: min(232px, 45vw);
  max-height: 252px;
}

@media (max-width: 430px) {
  .rpsExpMetaRow {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.12fr) minmax(0, 0.93fr);
    overflow: hidden;
    margin-top: 12px;
    padding: 8px 6px;
    border-color: rgba(255, 145, 23, 0.4);
    box-shadow:
      inset 0 0 18px rgba(54, 168, 255, 0.02),
      0 0 12px rgba(255, 145, 23, 0.035);
  }

  .rpsExpMetaChip {
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 0;
    min-height: 40px;
    column-gap: 5px;
    padding: 0 5px;
    overflow: hidden;
  }

  .rpsExpMetaChip:last-child {
    grid-template-columns: auto minmax(0, 1fr);
    text-align: left;
  }

  .rpsExpMetaChip > span:not(.rpsExpCoin) {
    overflow: hidden;
    font-size: 12px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rpsExpMetaChip strong {
    grid-column: 2;
    max-width: 100%;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rpsExpMetaChip:last-child strong {
    grid-column: 2;
    font-size: 12px;
  }

  .rpsExpCoin {
    width: 25px;
    font-size: 12px;
  }

  .rpsExpMetaChip > .rpsExpTrendIcon {
    width: 19px;
    font-size: 18px;
  }

  .rpsExpSessionChip.is-neutral .rpsExpTrendIcon::before {
    font-size: 14px;
  }

  .rpsExpSelectionCore::before {
    mask: radial-gradient(circle, transparent 0 71%, #000 72.2% 74%, rgba(0, 0, 0, 0.45) 74.8% 75.6%, transparent 76.2%);
  }

  .rpsExpBattleLane,
  .rpsExpShell.phase-result .rpsExpBattleLane {
    height: min(252px, 36dvh);
    transform: translateY(-28px);
  }

  .rpsExpCombatHand,
  .rpsExpShell.phase-result .rpsExpCombatHand {
    width: min(172px, 42vw);
    max-height: 186px;
  }
}

/* RPS name polish and mobile performance pass */
.rpsExpPlayerYou .rpsExpPlayerCopy strong {
  color: #fff7d4;
  text-shadow:
    0 0 10px rgba(255, 211, 79, 0.22),
    0 0 18px rgba(255, 211, 79, 0.1);
}

.rpsExpPlayerGuest .rpsExpPlayerCopy strong {
  color: #eff9ff;
  text-shadow:
    0 0 10px rgba(54, 168, 255, 0.24),
    0 0 18px rgba(54, 168, 255, 0.1);
}

.rpsExpFocusHand,
.rpsExpCombatHand,
.rpsExpChoiceCard,
.rpsExpSelectionCore {
  will-change: transform;
}

.rpsExpChoiceDeck.is-locked .rpsExpChoiceCard:not(.is-selected),
.rpsExpChoiceDeck.is-locked .rpsExpChoiceCard:not(.is-selected):hover,
.rpsExpChoiceDeck.is-locked .rpsExpChoiceCard:not(.is-selected):focus-visible {
  transform: none;
  border-color: rgba(132, 155, 178, 0.42);
  color: rgba(202, 213, 226, 0.82);
  background:
    linear-gradient(180deg, rgba(52, 66, 82, 0.28), rgba(3, 11, 22, 0.86)),
    rgba(3, 8, 16, 0.9);
  box-shadow:
    inset 0 0 20px rgba(166, 184, 205, 0.045),
    0 0 16px rgba(0, 0, 0, 0.2);
  outline: none;
}

.rpsExpChoiceDeck.is-locked .rpsExpChoiceCard:not(.is-selected)::before,
.rpsExpChoiceDeck.is-locked .rpsExpChoiceCard:not(.is-selected):hover::before,
.rpsExpChoiceDeck.is-locked .rpsExpChoiceCard:not(.is-selected):focus-visible::before {
  opacity: 0;
}

.rpsExpChoiceDeck.is-locked .rpsExpChoiceCard:not(.is-selected) img,
.rpsExpChoiceDeck.is-locked .rpsExpChoiceCard:not(.is-selected):hover img,
.rpsExpChoiceDeck.is-locked .rpsExpChoiceCard:not(.is-selected):focus-visible img {
  filter: grayscale(1) saturate(0.14) brightness(1.08) contrast(0.92) drop-shadow(0 0 10px rgba(255, 255, 255, 0.08));
  transform: none;
}

.rpsExpChoiceDeck.is-locked .rpsExpChoiceCard:not(.is-selected) i {
  opacity: 0;
}

.rpsExpChoiceCard:not(.is-selected) {
  border-color: rgba(132, 155, 178, 0.42);
  color: rgba(212, 222, 235, 0.84);
  background:
    linear-gradient(180deg, rgba(42, 55, 69, 0.34), rgba(4, 12, 23, 0.92)),
    rgba(4, 9, 17, 0.92);
  box-shadow:
    inset 0 0 22px rgba(160, 178, 205, 0.04),
    0 0 16px rgba(0, 0, 0, 0.18);
}

.rpsExpChoiceCard:not(.is-selected) img {
  filter: grayscale(1) saturate(0.14) brightness(1.08) contrast(0.92) drop-shadow(0 0 10px rgba(255, 255, 255, 0.08));
}

.rpsExpChoiceCard:not(.is-selected) span {
  color: rgba(226, 234, 246, 0.82);
}

.rpsExpChoiceDeck:not(.is-locked) .rpsExpChoiceCard:active {
  transform: translateY(1px) scale(0.99);
  transition-duration: 0.08s;
}

.rpsExpChoiceDeck.is-locked .rpsExpChoiceCard.is-selected {
  opacity: 1;
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(255, 211, 79, 0.7);
  color: var(--rps-gold);
  background:
    linear-gradient(180deg, rgba(23, 23, 22, 0.88), rgba(8, 10, 13, 0.94)),
    rgba(5, 9, 16, 0.9);
  box-shadow: 0 0 22px rgba(255, 196, 42, 0.1);
}

.rpsExpChoiceDeck.is-locked .rpsExpChoiceCard.is-selected img {
  filter: grayscale(0) brightness(0.98) drop-shadow(0 0 12px rgba(255, 206, 66, 0.28));
  transform: translateY(0) scale(1.02);
}

.rpsExpChoiceDeck.is-locked .rpsExpChoiceCard.is-selected i,
.rpsExpChoiceDeck.is-locked .rpsExpChoiceCard.is-selected::before {
  opacity: 1;
}

@media (max-width: 430px), (hover: none) and (pointer: coarse) {
  .rpsExpNoise {
    display: none;
  }

  .rpsExpShell::before {
    animation: none;
    opacity: 0.08;
  }

  .rpsExpShell::after {
    opacity: 0.12;
  }

  .rpsExpSelectionCore {
    box-shadow:
      inset 0 0 0 1px rgba(255, 211, 79, 0.07),
      inset 0 0 42px rgba(54, 168, 255, 0.05),
      0 0 24px rgba(0, 0, 0, 0.42);
  }

  .rpsExpSelectionCore::before {
    filter:
      drop-shadow(0 0 8px rgba(255, 204, 61, 0.22))
      drop-shadow(0 0 8px rgba(54, 168, 255, 0.2));
  }

  .rpsExpCombatHand {
    filter: drop-shadow(0 0 14px rgba(255, 207, 65, 0.34));
  }

  .rpsExpCombatRight {
    filter: drop-shadow(0 0 14px rgba(54, 168, 255, 0.38));
  }

  .rpsExpChoiceCard,
  .rpsExpPlayerCard,
  .rpsExpMetaRow {
    backdrop-filter: none;
  }

  .rpsExpChoiceCard:not(.is-selected):hover,
  .rpsExpChoiceCard:not(.is-selected):focus-visible {
    transform: none;
    border-color: rgba(132, 155, 178, 0.42);
    color: rgba(212, 222, 235, 0.84);
    background:
      linear-gradient(180deg, rgba(42, 55, 69, 0.34), rgba(4, 12, 23, 0.92)),
      rgba(4, 9, 17, 0.92);
    box-shadow:
      inset 0 0 22px rgba(160, 178, 205, 0.04),
      0 0 16px rgba(0, 0, 0, 0.18);
  }

  .rpsExpChoiceCard:not(.is-selected):hover::before,
  .rpsExpChoiceCard:not(.is-selected):focus-visible::before,
  .rpsExpChoiceCard:not(.is-selected):hover i,
  .rpsExpChoiceCard:not(.is-selected):focus-visible i {
    opacity: 0;
  }

  .rpsExpChoiceCard:not(.is-selected):hover img,
  .rpsExpChoiceCard:not(.is-selected):focus-visible img {
    filter: grayscale(1) saturate(0.14) brightness(1.08) contrast(0.92) drop-shadow(0 0 10px rgba(255, 255, 255, 0.08));
    transform: translateY(0) scale(1);
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .rpsGameApp.rpsExperimentRoot {
    place-items: stretch;
  }

  .rpsExpShell {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding: 16px 22px 14px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    row-gap: 10px;
  }

  .rpsExpShell::before {
    opacity: 0.08;
  }

  .rpsExpShell::after {
    opacity: 0.28;
  }

  .rpsExpTopbar {
    min-height: 34px;
  }

  .rpsExpBrand {
    gap: 8px;
  }

  .rpsExpBrandMark {
    width: 36px;
  }

  .rpsExpBrand h1 {
    font-size: 23px;
  }

  .rpsExpHeaderActions {
    gap: 8px;
  }

  .rpsExpHeaderActions #rpsSoundToggle {
    display: none;
  }

  .rpsExpIconButton {
    width: 42px;
    border-radius: 7px;
  }

  .rpsExpMenuIcon {
    width: 20px;
    height: 3px;
    box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
  }

  .rpsExpPlayers {
    position: absolute;
    left: 50%;
    top: 14px;
    width: min(42vw, 560px);
    margin: 0;
    gap: 36px;
    transform: translateX(-50%);
  }

  .rpsExpPlayerCard {
    min-height: 42px;
    gap: 9px;
    padding: 6px 14px;
    border-radius: 7px;
  }

  .rpsExpPlayerCopy {
    font-size: 16px;
  }

  .rpsExpAvatar {
    width: 28px;
    border-width: 1px;
  }

  .rpsExpAvatar::after {
    right: -4px;
    bottom: 3px;
    width: 8px;
    border-width: 1px;
  }

  .rpsExpVs {
    width: 48px;
    font-size: 18px;
  }

  .rpsExpMystery {
    display: none;
  }

  .rpsExpArena {
    grid-row: 2;
    min-height: 0;
    margin: 0;
    padding-top: 0;
  }

  .rpsExpShell.phase-result .rpsExpArena {
    min-height: 0;
  }

  .rpsExpScreenReady,
  .rpsExpScreenPick,
  .rpsExpScreenClash {
    justify-content: center;
  }

  .rpsExpScreenReady .rpsExpStageKicker,
  .rpsExpScreenPick .rpsExpStageKicker {
    margin: 0 0 6px;
    font-size: clamp(24px, 4.8vh, 34px);
  }

  .rpsExpCountdown {
    font-size: clamp(92px, 30vh, 150px);
  }

  .rpsExpCountdownLine {
    width: min(360px, 40vw);
    margin-top: 8px;
  }

  .rpsExpScreenReady .rpsExpStageSubtitle {
    margin-top: 8px;
    font-size: clamp(19px, 4.4vh, 28px);
  }

  .rpsExpSelectionCore {
    width: min(48vh, 42vw, 420px);
    max-width: 420px;
  }

  .rpsExpPickTimer strong {
    font-size: clamp(54px, 14vh, 86px);
  }

  .rpsExpPickTimer span {
    margin-top: 5px;
    font-size: clamp(18px, 4vh, 26px);
  }

  .rpsExpFocusHand {
    width: 52%;
  }

  .rpsExpBattleLane,
  .rpsExpShell.phase-result .rpsExpBattleLane {
    width: min(48vw, 620px);
    height: min(36vh, 260px);
    transform: translateY(-8px);
  }

  .rpsExpCombatHand,
  .rpsExpShell.phase-result .rpsExpCombatHand {
    width: min(170px, 18vw, 32vh);
    max-height: 190px;
  }

  .rpsExpResultPanel {
    width: min(300px, 32vw);
    min-height: 54px;
    margin-top: 4px;
    padding: 8px 10px;
  }

  .rpsExpChoiceDeck {
    grid-row: 3;
    width: min(78vw, 1280px);
    justify-self: center;
    gap: 18px;
    margin-top: 0;
    padding: 0;
  }

  .rpsExpChoiceCard {
    aspect-ratio: 2.35;
    min-height: min(18vh, 112px);
    align-content: center;
    grid-template-columns: minmax(72px, 0.45fr) minmax(0, 1fr);
    justify-items: center;
    padding: 12px 22px;
  }

  .rpsExpChoiceCard img {
    position: static;
    width: min(92px, 14vh);
    height: min(92px, 14vh);
    transform: none;
  }

  .rpsExpChoiceCard span {
    justify-self: start;
    font-size: clamp(22px, 5.4vh, 32px);
  }

  .rpsExpChoiceCard i {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
  }

  .rpsExpMetaRow {
    grid-row: 4;
    width: min(78vw, 1280px);
    justify-self: center;
    margin-top: 0;
    padding: 8px 12px;
    border-color: rgba(255, 145, 23, 0.32);
  }

  .rpsExpMetaChip {
    min-height: 38px;
    padding: 0 18px;
  }

  .rpsExpCoin {
    width: 28px;
  }
}

@keyframes rpsExpStarDrift {
  to {
    background-position: 73px 73px, -97px 97px, 61px -61px;
  }
}

@keyframes rpsExpRingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rpsExpRingPulse {
  from {
    opacity: 0.45;
    transform: scale(0.985);
  }
  to {
    opacity: 0.92;
    transform: scale(1.015);
  }
}

@keyframes rpsExpCountPop {
  0% {
    opacity: 0;
    transform: scale(0.52) rotate(-7deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.08) rotate(2deg);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes rpsExpOrbitDot {
  from {
    transform: rotate(0deg) translate(62px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translate(62px) rotate(-360deg);
  }
}

@keyframes rpsExpHandLock {
  0% {
    opacity: 0.68;
    transform: scale(0.88) translateY(8px) rotate(-2deg);
  }
  58% {
    opacity: 1;
    transform: scale(1.04) translateY(-2px) rotate(1deg);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

@keyframes rpsExpCardLock {
  0%,
  100% {
    transform: translateY(-3px) scale(1.01);
  }
  50% {
    transform: translateY(-5px) scale(1.018);
  }
}

@keyframes rpsExpSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rpsExpStrikeLeft {
  0% {
    opacity: 0;
    transform: translate(-170px, -50%) scaleX(var(--combat-flip)) scaleY(var(--combat-flip-y)) rotate(calc(var(--combat-rot) - 12deg)) scale(calc(var(--combat-scale) * 0.86));
  }
  46% {
    opacity: 1;
    transform: translate(60px, -50%) scaleX(var(--combat-flip)) scaleY(var(--combat-flip-y)) rotate(calc(var(--combat-rot) + 4deg)) scale(calc(var(--combat-scale) * 1.06));
  }
  58% {
    transform: translate(37px, -50%) scaleX(var(--combat-flip)) scaleY(var(--combat-flip-y)) rotate(calc(var(--combat-rot) - 2deg)) scale(calc(var(--combat-scale) * 0.98));
  }
  100% {
    transform: translate(18px, -50%) scaleX(var(--combat-flip)) scaleY(var(--combat-flip-y)) rotate(var(--combat-rot)) scale(var(--combat-scale));
  }
}

@keyframes rpsExpStrikeRight {
  0% {
    opacity: 0;
    transform: translate(170px, -50%) scaleX(var(--combat-flip)) scaleY(var(--combat-flip-y)) rotate(calc(var(--combat-rot) + 12deg)) scale(calc(var(--combat-scale) * 0.86));
  }
  46% {
    opacity: 1;
    transform: translate(-60px, -50%) scaleX(var(--combat-flip)) scaleY(var(--combat-flip-y)) rotate(calc(var(--combat-rot) - 4deg)) scale(calc(var(--combat-scale) * 1.06));
  }
  58% {
    transform: translate(-37px, -50%) scaleX(var(--combat-flip)) scaleY(var(--combat-flip-y)) rotate(calc(var(--combat-rot) + 2deg)) scale(calc(var(--combat-scale) * 0.98));
  }
  100% {
    transform: translate(-18px, -50%) scaleX(var(--combat-flip)) scaleY(var(--combat-flip-y)) rotate(var(--combat-rot)) scale(var(--combat-scale));
  }
}

@keyframes rpsExpImpactPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  35% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.18);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.95);
  }
}

@keyframes rpsExpResultIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rpsExpShell *,
  .rpsExpShell *::before,
  .rpsExpShell *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

.homePage {
  --home-bg: #03070d;
  --home-panel: rgba(6, 13, 23, 0.72);
  --home-line: rgba(79, 145, 225, 0.2);
  --home-line-strong: rgba(93, 170, 255, 0.5);
  --home-gold: #ffc247;
  --home-gold-soft: rgba(255, 194, 71, 0.18);
  --home-blue: #38a9ff;
  --home-blue-soft: rgba(56, 169, 255, 0.2);
  --home-text: #f6f8fd;
  --home-muted: #a9b1c1;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 16% 72%, rgba(255, 184, 38, 0.14), transparent 29%),
    radial-gradient(ellipse at 86% 58%, rgba(45, 142, 255, 0.16), transparent 34%),
    linear-gradient(90deg, rgba(55, 135, 226, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(55, 135, 226, 0.045) 1px, transparent 1px),
    #03070d;
  background-size: auto, auto, 256px 256px, 256px 256px, auto;
  color: var(--home-text);
  isolation: isolate;
}

.homePage::before,
.homePage::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.homePage::before {
  background:
    linear-gradient(115deg, transparent 0 17%, rgba(42, 139, 255, 0.12) 17.08%, transparent 17.25% 100%),
    linear-gradient(84deg, transparent 0 63%, rgba(255, 191, 45, 0.08) 63.05%, transparent 63.22% 100%),
    repeating-linear-gradient(0deg, transparent 0 95px, rgba(58, 143, 237, 0.035) 96px, transparent 97px);
  opacity: 0.9;
}

.homePage::after {
  background:
    radial-gradient(circle at 50% 31%, rgba(75, 162, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 30%, rgba(0, 0, 0, 0.26));
}

.homePage button {
  min-height: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.homeHeader {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(320px, 1fr) minmax(320px, 430px);
  width: min(1850px, calc(100% - clamp(32px, 9.5vw, 196px)));
  min-height: 92px;
  margin: 0 auto;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(135, 177, 234, 0.11);
}

.homeBrand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.homeBrandIcon {
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 189, 48, 0.58);
  border-radius: 8px;
  background: rgba(5, 9, 15, 0.74);
  box-shadow: 0 0 26px rgba(255, 190, 44, 0.14);
}

.homeBrandIcon img {
  width: 112%;
  height: 112%;
  object-fit: cover;
}

.homeBrandCopy {
  display: grid;
  gap: 4px;
}

.homeBrandCopy strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.homeBrandCopy span {
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.1;
}

.homeNav {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 4.5vw, 70px);
}

.homeNav button {
  position: relative;
  height: 100%;
  color: #f3f6fb;
  font-size: 16px;
  font-weight: 850;
}

.homeNav button.is-active {
  color: var(--home-gold);
}

.homeNav button.is-active::after {
  position: absolute;
  left: 50%;
  height: 2px;
  border-radius: 99px;
  background: var(--home-gold);
  box-shadow: 0 0 16px rgba(255, 199, 66, 0.8);
  content: "";
  transform: translateX(-50%);
}

.homeNav button.is-active::after {
  bottom: 14px;
  width: 44px;
  opacity: 0.82;
}

.homeControls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.homeProfile {
  position: relative;
}

.homeBalance,
.homeUser,
.homeLoginButton {
  border: 1px solid rgba(122, 155, 205, 0.28) !important;
  border-radius: 8px;
  background: rgba(9, 16, 29, 0.78) !important;
  box-shadow: inset 0 0 28px rgba(76, 141, 238, 0.04);
}

.homeBalance {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  width: 260px;
  min-height: 58px !important;
  align-items: center;
  gap: 12px;
  padding: 0 16px !important;
  text-align: left;
}

.homeCoin,
.homeAdd {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #19140a;
  background: linear-gradient(145deg, #ffde77, #f3aa28);
  box-shadow: 0 0 16px rgba(255, 194, 54, 0.22);
  font-weight: 950;
}

.homeCoin {
  width: 26px;
  font-size: 15px;
}

.homeAdd {
  width: 32px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
}

.homeBalanceCopy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.homeBalanceCopy small {
  color: #a7afc0;
  font-size: 13px;
  line-height: 1;
}

.homeBalanceCopy strong {
  overflow: hidden;
  color: #f8fbff;
  font-size: 18px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.homeUser {
  display: inline-flex;
  min-width: 96px;
  min-height: 58px !important;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.homeLoginButton {
  min-width: 140px;
  min-height: 54px !important;
  padding: 0 28px !important;
  color: #101018 !important;
  background: linear-gradient(145deg, #ffde77, #f3aa28) !important;
  box-shadow: 0 0 24px rgba(255, 194, 54, 0.18);
  font-size: 18px;
  font-weight: 950;
}

.homeAvatar {
  display: grid;
  width: 40px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(50, 168, 255, 0.84);
  border-radius: 50%;
  color: #aee0ff;
  background: radial-gradient(circle at 50% 45%, rgba(74, 178, 255, 0.52), rgba(5, 22, 44, 0.95) 66%);
  box-shadow: 0 0 24px rgba(39, 157, 255, 0.3);
  font-size: 20px;
  font-weight: 850;
}

.homeAvatar.has-image {
  overflow: hidden;
  padding: 0;
  background: rgba(6, 18, 33, 0.96);
}

.homeAvatar.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.homeChevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid #c9d4e5;
  border-bottom: 2px solid #c9d4e5;
  transform: rotate(45deg) translateY(-2px);
}

.homeUser[aria-expanded="true"] .homeChevron {
  transform: rotate(225deg) translate(-2px, -1px);
}

.homeProfileMenu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  width: 220px;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(122, 155, 205, 0.3);
  border-radius: 8px;
  background: rgba(8, 15, 28, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34), inset 0 0 28px rgba(76, 141, 238, 0.04);
}

.homeProfileMenu::before {
  position: absolute;
  top: -6px;
  right: 28px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(122, 155, 205, 0.3);
  border-left: 1px solid rgba(122, 155, 205, 0.3);
  background: rgba(8, 15, 28, 0.98);
  content: "";
  transform: rotate(45deg);
}

.homeProfileMenu button {
  display: flex;
  align-items: center;
  min-height: 44px;
  justify-content: flex-start;
  border: 0;
  padding: 0 12px;
  color: #edf5ff;
  background: transparent;
  text-align: left;
  font-size: 15px;
  font-weight: 850;
}

.homeProfileMenu button:hover {
  border-color: transparent;
  background: rgba(122, 167, 255, 0.12);
}

.homeMain {
  position: relative;
  z-index: 1;
  width: min(1386px, calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0 44px;
}

.homeHero {
  display: grid;
  justify-items: center;
  text-align: center;
}

.homeHero h1 {
  max-width: 1280px;
  color: #f9fbff;
  font-size: clamp(40px, 3.7vw, 58px);
  font-weight: 950;
  line-height: 1.1;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.34);
}

.homeHero h1 span {
  color: var(--home-gold);
}

.homeHero p {
  margin-top: 18px;
  color: var(--home-muted);
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.35;
}

.homeNotice {
  width: min(760px, 100%);
  margin: 30px auto 0;
  border: 1px solid rgba(255, 194, 71, 0.42);
  border-radius: 8px;
  padding: 14px 18px;
  background: rgba(255, 194, 71, 0.09);
  color: #ffd88c;
  text-align: center;
  font-weight: 800;
}

.homeGames {
  margin-top: 46px;
}

.homeMatches {
  margin-top: 46px;
}

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

.homeMatchesHead h2 {
  margin: 0;
  color: #f7fbff;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 950;
}

.homeMatchesRefresh,
.activeMatchButton,
.finishedLobbyButton {
  border: 1px solid rgba(122, 155, 205, 0.34) !important;
  border-radius: 8px;
  background: rgba(12, 24, 43, 0.82) !important;
  color: #f5f8ff;
  font-weight: 900;
}

.homeMatchesRefresh {
  min-height: 44px !important;
  padding: 0 18px !important;
}

.homeMatchesEmpty {
  border: 1px solid var(--home-line);
  border-radius: 8px;
  padding: 34px;
  background: rgba(9, 18, 33, 0.82);
  color: var(--home-muted);
  text-align: center;
  font-weight: 850;
}

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

.activeMatchHeader,
.activeMatchRow {
  display: grid;
  grid-template-columns: minmax(150px, 1.3fr) minmax(120px, 0.8fr) minmax(150px, 1fr) minmax(120px, 0.8fr) minmax(160px, auto);
  align-items: center;
  gap: 18px;
}

.activeMatchHeader {
  padding: 0 18px 4px;
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.activeMatchRow {
  min-height: 72px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  padding: 12px 18px;
  background: rgba(9, 18, 33, 0.82);
  cursor: pointer;
}

.activeMatchRow:hover {
  border-color: rgba(91, 183, 255, 0.68);
}

.activeMatchCell {
  min-width: 0;
  overflow: hidden;
  color: #edf5ff;
  font-size: 15px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activeMatchMode {
  color: #f7fbff;
  font-weight: 950;
}

.activeMatchStake {
  color: #ffd982;
  font-weight: 950;
}

.activeMatchStarter {
  color: #dbe7f8;
}

.activeMatchStatus {
  border: 1px solid rgba(122, 155, 205, 0.3);
  border-radius: 999px;
  padding: 6px 10px;
  color: #dbe8ff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.activeMatchStatus-waiting {
  border-color: rgba(255, 199, 66, 0.45);
  color: var(--home-gold);
}

.activeMatchStatus-active {
  border-color: rgba(71, 178, 255, 0.48);
  color: #75d4ff;
}

.activeMatchStatus-finished {
  color: #aebbd1;
}

.activeMatchButton {
  min-height: 42px !important;
  padding: 0 16px !important;
}

.activeMatchAction {
  text-align: right;
}

.activeMatchButton.primary,
.finishedLobbyButton.primary {
  border-color: rgba(48, 118, 244, 0.72) !important;
  background: linear-gradient(180deg, #3178ff, #244ec8) !important;
  color: #fff;
}

.finishedLobbyActions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 22px auto 0;
  flex-wrap: wrap;
}

.finishedLobbyButton {
  min-width: 180px;
  min-height: 48px !important;
  padding: 0 18px !important;
}

.rpsFinishedActions,
.diceFinishedActions {
  position: relative;
  z-index: 20;
  margin-bottom: 24px;
}

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

.homeGameCard {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(122px, 1fr) auto;
  min-height: 596px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  padding: 22px 34px 34px;
  background:
    linear-gradient(180deg, rgba(11, 23, 42, 0.82), rgba(4, 9, 17, 0.94)),
    rgba(5, 10, 18, 0.88);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.homeGameCard::before,
.homeGameCard::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.homeGameCard::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.35;
}

.homeGameCard::after {
  inset: auto 12% -14% 12%;
  height: 150px;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.56;
}

.homeGameCard-gold {
  border-color: rgba(255, 190, 48, 0.5);
}

.homeGameCard-gold::after {
  background: rgba(255, 184, 35, 0.2);
}

.homeGameCard-blue {
  border-color: rgba(54, 154, 255, 0.48);
}

.homeGameCard-blue::after {
  background: rgba(45, 144, 255, 0.21);
}

.homeGameCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 38px 82px rgba(0, 0, 0, 0.42);
}

.homeGameCard-gold:hover {
  border-color: rgba(255, 205, 83, 0.84);
}

.homeGameCard-blue:hover {
  border-color: rgba(85, 184, 255, 0.86);
}

.homeGameBadge {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  display: none;
  width: 64px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: rgba(7, 15, 28, 0.76);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.04), 0 0 22px color-mix(in srgb, currentColor 22%, transparent);
}

.homeGameCard-gold .homeGameBadge,
.homeBenefit-gold .homeBenefitIcon {
  color: var(--home-gold);
}

.homeGameCard-blue .homeGameBadge,
.homeBenefit-blue .homeBenefitIcon {
  color: #66c7ff;
}

.homeGameArt {
  position: relative;
  z-index: 1;
  height: 314px;
  margin: -10px -30px 8px;
  overflow: hidden;
}

.homeGameArt img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(-2px);
}

.homeGameCopy {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 122px;
  align-content: start;
  justify-items: center;
  text-align: center;
}

.homeGameCopy h2 {
  max-width: 100%;
  color: #fff;
  font-size: clamp(28px, 2.35vw, 38px);
  font-weight: 950;
  line-height: 1.08;
}

.homeGameCopy p {
  width: min(330px, 100%);
  margin-top: 18px;
  color: #aeb7c8;
  font-size: 18px;
  line-height: 1.55;
}

.homePlayButton {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 58px !important;
  align-items: center;
  justify-content: center;
  gap: 16px;
  align-self: end;
  margin-top: 22px;
  border: 1px solid currentColor !important;
  border-radius: 8px;
  background: rgba(6, 15, 28, 0.72) !important;
  font-size: 18px;
  font-weight: 950;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.homeGameCard-gold .homePlayButton {
  color: var(--home-gold);
  box-shadow: inset 0 0 26px rgba(255, 194, 71, 0.1);
}

.homeGameCard-blue .homePlayButton {
  color: #55bfff;
  box-shadow: inset 0 0 26px rgba(56, 169, 255, 0.12);
}

.homePlayButton:hover {
  transform: translateY(-1px);
}

.homeGameCard-gold .homePlayButton:hover {
  background: rgba(255, 194, 71, 0.12) !important;
  box-shadow: inset 0 0 28px rgba(255, 194, 71, 0.14), 0 0 22px rgba(255, 194, 71, 0.15);
}

.homeGameCard-blue .homePlayButton:hover {
  background: rgba(56, 169, 255, 0.13) !important;
  box-shadow: inset 0 0 28px rgba(56, 169, 255, 0.15), 0 0 22px rgba(56, 169, 255, 0.17);
}

.homePlayButton i {
  width: 10px;
  height: 10px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg);
}

.homeBenefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid rgba(135, 177, 234, 0.1);
  padding-top: 36px;
}

.homeBenefit {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
  padding: 0 34px;
}

.homeBenefit + .homeBenefit {
  border-left: 1px solid rgba(135, 177, 234, 0.16);
}

.homeBenefitIcon {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgba(7, 16, 29, 0.74);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.035), 0 0 18px color-mix(in srgb, currentColor 20%, transparent);
}

.homeBenefit span:last-child {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.homeBenefit strong {
  overflow-wrap: anywhere;
  color: #f8fbff;
  font-size: 19px;
  line-height: 1.1;
}

.homeBenefit small {
  color: #a2abbc;
  font-size: 15px;
  line-height: 1.25;
}

.homeDiceIcon {
  display: grid;
  width: 32px;
  aspect-ratio: 1;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 5px;
  border-radius: 6px;
  background: linear-gradient(145deg, #ffe189, #f3b331);
  box-shadow: 0 0 16px rgba(255, 194, 48, 0.26);
}

.homeDiceIcon i,
.homeDiceIcon b {
  display: block;
  border-radius: 50%;
}

.homeDiceIcon i {
  background: #11141a;
}

.homeGridIcon {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.homeGridIcon i {
  border-radius: 6px;
  background: linear-gradient(145deg, #9ee8ff, #43bfff);
  box-shadow: 0 0 10px rgba(80, 196, 255, 0.42);
}

.homeShieldIcon {
  position: relative;
  display: block;
  width: 36px;
  height: 40px;
}

.homeShieldIcon::before {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0, 92% 19%, 86% 70%, 50% 100%, 14% 70%, 8% 19%);
  background: currentColor;
  filter: drop-shadow(0 0 13px color-mix(in srgb, currentColor 42%, transparent));
  content: "";
}

.homeShieldIcon i {
  position: absolute;
  z-index: 1;
  bottom: 11px;
  width: 4px;
  border-radius: 99px;
  background: #061321;
}

.homeShieldIcon i:nth-child(1) {
  left: 10px;
  height: 16px;
}

.homeShieldIcon i:nth-child(2) {
  left: 16px;
  height: 24px;
}

.homeShieldIcon i:nth-child(3) {
  left: 22px;
  height: 30px;
}

.homeShieldIcon i:nth-child(4) {
  left: 28px;
  height: 20px;
}

.homeBoltIcon {
  display: block;
  width: 28px;
  height: 38px;
  clip-path: polygon(57% 0, 4% 57%, 42% 57%, 31% 100%, 96% 36%, 57% 36%);
  background: currentColor;
  filter: drop-shadow(0 0 13px color-mix(in srgb, currentColor 48%, transparent));
}

.homeCupIcon {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
}

.homeCupIcon::before {
  position: absolute;
  left: 7px;
  top: 4px;
  width: 20px;
  height: 18px;
  border-radius: 3px 3px 9px 9px;
  background: currentColor;
  box-shadow:
    -9px 3px 0 -4px transparent,
    -9px 3px 0 -1px currentColor,
    9px 3px 0 -4px transparent,
    9px 3px 0 -1px currentColor;
  content: "";
}

.homeCupIcon::after {
  position: absolute;
  left: 10px;
  bottom: 4px;
  width: 14px;
  height: 4px;
  border-radius: 99px;
  background: currentColor;
  box-shadow: 0 -5px 0 -1px currentColor;
  content: "";
}

.homeLockIcon {
  position: relative;
  display: block;
  width: 32px;
  height: 34px;
}

.homeLockIcon::before {
  position: absolute;
  left: 7px;
  top: 0;
  width: 18px;
  height: 18px;
  border: 5px solid currentColor;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  content: "";
}

.homeLockIcon::after {
  position: absolute;
  left: 3px;
  bottom: 1px;
  width: 26px;
  height: 21px;
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 47%, #061321 0 4px, transparent 5px),
    linear-gradient(#061321 0 0) 50% 66% / 4px 8px no-repeat,
    currentColor;
  content: "";
}

.homeRocketIcon {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
}

.homeRocketIcon i {
  position: absolute;
  left: 8px;
  top: 7px;
  width: 23px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50% 72% 72% 50%;
  transform: rotate(-35deg);
  filter: drop-shadow(0 0 12px color-mix(in srgb, currentColor 42%, transparent));
}

.homeRocketIcon b {
  position: absolute;
  left: 1px;
  top: 25px;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 9px -5px 0 currentColor;
  transform: rotate(-35deg);
}

.homeMiniVisual {
  width: 100%;
  height: 100%;
  min-height: 145px;
  overflow: hidden;
}

.homeMiniVisual img {
  display: block;
  width: 100%;
  height: auto;
  transform: translateY(-4px);
}

@media (max-width: 1220px) {
  .homeHeader {
    grid-template-columns: 1fr auto;
    width: min(100% - 32px, 980px);
    gap: 18px;
    padding: 16px 0;
  }

  .homeNav {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 54px;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .homeNav button.is-active::before {
    bottom: 6px;
  }

  .homeNav button.is-active::after {
    display: none;
  }

  .homeGameGrid,
  .homeBenefits {
    grid-template-columns: 1fr;
  }

  .homeGameCard {
    min-height: 560px;
  }

  .homeBenefits {
    gap: 18px;
  }

  .homeBenefit,
  .homeBenefit + .homeBenefit {
    border-left: 0;
    padding: 0;
  }
}

@media (max-width: 720px) {
  .homeHeader {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    width: calc(100% - 28px);
    gap: 12px;
  }

  .homeBrandIcon {
    width: 54px;
  }

  .homeBrandCopy strong {
    font-size: 22px;
    line-height: 0.98;
  }

  .homeBrandCopy span {
    font-size: 13px;
  }

  .homeControls {
    gap: 0;
  }

  .homeLoginButton {
    min-width: 104px;
    min-height: 54px !important;
    padding: 0 18px !important;
    font-size: 15px;
  }

  .homeBalance {
    width: 170px;
    min-height: 58px !important;
    grid-template-columns: 26px minmax(0, 1fr) 30px;
    gap: 8px;
    padding: 0 10px !important;
  }

  .homeCoin {
    width: 24px;
    font-size: 14px;
  }

  .homeAdd {
    width: 30px;
    font-size: 20px;
  }

  .homeBalanceCopy small {
    font-size: 12px;
  }

  .homeBalanceCopy strong {
    font-size: 15px;
  }

  .homeUser {
    display: none;
  }

  .walletTabs {
    grid-template-columns: 1fr;
  }

  .walletHistoryItem,
  .walletFeeLine {
    align-items: flex-start;
    flex-direction: column;
  }

  .walletAddressRow {
    grid-template-columns: 1fr;
  }

  .homeNav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow: visible;
  }

  .homeNav button {
    font-size: 14px;
  }

  .homeMain {
    width: calc(100% - 28px);
    padding-top: 36px;
  }

  .homeHero h1 {
    max-width: 340px;
    font-size: 31px;
    line-height: 1.13;
  }

  .homeHero p {
    max-width: 330px;
    font-size: 16px;
  }

  .homeGames,
  .homeMatches {
    margin-top: 36px;
  }

  .homeGameGrid {
    gap: 22px;
  }

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

  .activeMatchHeader {
    display: none;
  }

  .activeMatchRow {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: flex-start;
    padding: 16px;
  }

  .activeMatchCell {
    white-space: normal;
  }

  .activeMatchCell[data-label]:not([data-label=""])::before {
    display: block;
    margin-bottom: 3px;
    color: var(--home-muted);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    content: attr(data-label);
  }

  .activeMatchAction {
    width: 100%;
    text-align: left;
  }

  .activeMatchButton {
    width: 100%;
  }

  .finishedLobbyActions {
    padding: 0 16px;
  }

  .finishedLobbyButton {
    width: 100%;
  }

  .homeGameCard {
    min-height: 520px;
    padding: 18px 20px 24px;
  }

  .homeGameBadge {
    top: 18px;
    left: 18px;
    width: 52px;
  }

  .homeGameArt {
    height: 280px;
    margin: -8px -16px 2px;
  }

  .homeGameCopy {
    min-height: 124px;
  }

  .homeGameCopy h2 {
    font-size: 29px;
  }

  .homeGameCopy p {
    font-size: 16px;
  }

  .homePlayButton {
    min-height: 54px !important;
    font-size: 16px;
  }
}

.createLobbyBackdrop {
  z-index: 160;
  background:
    radial-gradient(circle at 43% 52%, rgba(255, 193, 63, 0.08), transparent 22%),
    radial-gradient(circle at 72% 55%, rgba(54, 168, 255, 0.1), transparent 28%),
    rgba(1, 4, 8, 0.76);
  backdrop-filter: blur(18px);
}

.createLobbyModal {
  --create-accent: #45baff;
  width: min(620px, calc(100vw - 40px));
  max-height: min(720px, calc(100vh - 40px));
  border-color: rgba(104, 145, 204, 0.38);
  padding: 28px;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(19, 30, 47, 0.96), rgba(8, 13, 23, 0.97)),
    #0a101a;
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.createLobbyModal-gold {
  --create-accent: #ffc247;
  --create-accent-soft: rgba(255, 194, 71, 0.13);
}

.createLobbyModal-blue {
  --create-accent: #38a9ff;
  --create-accent-soft: rgba(56, 169, 255, 0.14);
}

.createLobbyHead {
  margin-bottom: 16px;
}

.createLobbyHead .eyebrow {
  border-color: rgba(255, 194, 71, 0.34);
  padding: 9px 15px;
  color: #ffd46f;
  background: rgba(255, 194, 71, 0.08);
  font-size: 15px;
  line-height: 1;
}

.createLobbyHead h2 {
  margin-top: 14px;
  color: #f6f8fd;
  font-size: 38px;
  line-height: 1;
  font-weight: 950;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.createLobbyHead .iconBtn {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  color: #dfe7f5;
  background: transparent;
  font-size: 32px;
  font-weight: 350;
}

.createLobbyHead .iconBtn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.createLobbyModal .modalGamePreview {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(117, 150, 196, 0.22);
  border-top: 1px solid var(--create-accent);
  border-radius: 8px;
  padding: 16px;
  background:
    radial-gradient(circle at 12% 14%, var(--create-accent-soft), transparent 42%),
    rgba(9, 16, 28, 0.62);
  box-shadow: inset 0 0 34px rgba(255, 255, 255, 0.025);
}

.createLobbyModal .modalGamePreview.gold,
.createLobbyModal .modalGamePreview.blue {
  border-top-width: 2px;
}

.modalGameArt {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #050a12;
}

.modalGameArt img {
  display: block;
  width: 100%;
  height: 145%;
  object-fit: cover;
  object-position: center top;
}

.modalGameCopy {
  min-width: 0;
}

.modalGameCopy h3 {
  color: #f7f9ff;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 950;
}

.modalGameCopy p {
  margin: 12px 0 18px;
  color: #aeb7c8;
  font-size: 17px;
  line-height: 1.4;
}

.createLobbyModal .gameMeta {
  gap: 10px;
}

.createLobbyModal .gameMeta span {
  border-color: rgba(111, 143, 190, 0.24);
  padding: 9px 13px;
  color: #eef4ff;
  background: rgba(88, 116, 160, 0.24);
  font-size: 15px;
}

.createLobbyModal .createForm {
  gap: 18px;
}

.createStakeLabel {
  display: grid;
  gap: 10px;
  color: #aeb7c8;
  font-size: 18px;
  font-weight: 900;
}

.createStakeField {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 70px;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(119, 151, 197, 0.3);
  border-radius: 8px;
  padding: 0 22px;
  background: rgba(2, 7, 13, 0.66);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.018);
}

.createStakeField input {
  width: 100%;
  min-height: auto;
  border: 0;
  padding: 0;
  color: #f7faff;
  background: transparent;
  font-size: 22px;
  font-weight: 950;
  outline: none;
}

.createStakeField input::-webkit-outer-spin-button,
.createStakeField input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.createStakeField b {
  color: var(--create-accent);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
}

.createLobbyModal .createInviteButton {
  display: grid;
  min-height: 72px !important;
  place-items: center;
  border: 1px solid #2d68ff !important;
  border-radius: 8px;
  color: #f7fbff;
  background:
    linear-gradient(180deg, #2368ff, #142b75) !important;
  box-shadow:
    inset 0 0 30px rgba(83, 176, 255, 0.28),
    0 0 28px rgba(35, 104, 255, 0.42);
  font-size: 22px;
  font-weight: 950;
}

.createLobbyModal .createInviteButton:hover:not(:disabled) {
  border-color: #88d4ff;
  background:
    linear-gradient(180deg, #3282ff, #17337a) !important;
}

.createLobbyModal .statusLine {
  min-height: 18px;
  color: #ffd46f;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 720px) {
  .createLobbyBackdrop {
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px calc(env(safe-area-inset-bottom, 0px) + 10px);
    align-items: start;
    justify-items: center;
    overflow: auto;
  }

  .createLobbyModal {
    width: calc(100vw - 28px);
    max-height: calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 20px);
    margin: 0;
    padding: 16px;
  }

  .createLobbyHead h2 {
    margin-top: 9px;
    font-size: 28px;
  }

  .createLobbyHead .eyebrow {
    padding: 7px 11px;
    font-size: 11px;
  }

  .createLobbyHead {
    margin-bottom: 12px;
  }

  .createLobbyModal .modalGamePreview {
    grid-template-columns: 96px minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    gap: 12px;
    margin-bottom: 14px;
    padding: 10px;
  }

  .createLobbyModal .modalGamePreview *,
  .createLobbyModal .createForm,
  .createStakeLabel,
  .modalGameArt {
    max-width: 100%;
  }

  .modalGameCopy,
  .createStakeField {
    min-width: 0;
  }

  .modalGameCopy p {
    overflow-wrap: anywhere;
  }

  .modalGameArt {
    aspect-ratio: 1;
  }

  .modalGameCopy h3 {
    font-size: 22px;
  }

  .modalGameCopy p {
    display: -webkit-box;
    margin: 7px 0 10px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 13px;
  }

  .createLobbyModal .gameMeta {
    gap: 6px;
  }

  .createLobbyModal .gameMeta span {
    padding: 6px 8px;
    font-size: 11px;
  }

  .createStakeLabel {
    gap: 7px;
    font-size: 14px;
  }

  .createStakeField {
    min-height: 52px;
    padding: 0 14px;
  }

  .createStakeField input {
    font-size: 19px;
  }

  .createLobbyModal .createInviteButton {
    min-height: 54px !important;
    font-size: 18px;
  }

  .createLobbyModal .createForm {
    gap: 12px;
  }
}

.authModal {
  width: min(720px, calc(100vw - 48px));
  border-color: rgba(122, 155, 205, 0.28);
  padding: clamp(22px, 2.2vw, 30px);
  background:
    radial-gradient(circle at 15% 5%, rgba(255, 194, 71, 0.08), transparent 23%),
    radial-gradient(circle at 86% 90%, rgba(56, 169, 255, 0.07), transparent 28%),
    linear-gradient(180deg, rgba(19, 30, 47, 0.96), rgba(8, 13, 23, 0.98)),
    #0a101a;
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.64),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.authModalHead {
  margin-bottom: 18px;
}

.authModalHead h2 {
  margin: 0;
  color: #f6f8fd;
  font-size: clamp(34px, 3vw, 44px);
  line-height: 0.95;
  font-weight: 950;
}

.authModalHead p {
  margin-top: 8px;
  color: #9daac0;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 750;
}

.authModalHead .iconBtn {
  width: 50px;
  min-width: 50px;
  height: 50px;
  min-height: 50px;
  border: 1px solid rgba(122, 155, 205, 0.24);
  border-radius: 18px;
  color: #dfe7f5;
  background: rgba(255, 255, 255, 0.035);
  font-size: 36px;
  font-weight: 350;
}

.authModal .authPanel,
.authPanelCompact {
  position: static;
  top: auto;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.authTabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(122, 155, 205, 0.28);
  border-radius: 8px;
  background: rgba(14, 23, 38, 0.54);
}

.authTabs button {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-radius: 8px;
  color: #8795ad;
  background: transparent;
  font-size: 19px;
  font-weight: 850;
}

.authTabs button + button {
  border-left: 1px solid rgba(122, 155, 205, 0.18);
}

.authTabs button.active {
  border: 1px solid rgba(255, 194, 71, 0.86);
  color: #ffd369;
  background: rgba(255, 194, 71, 0.07);
  box-shadow:
    inset 0 0 26px rgba(255, 194, 71, 0.08),
    0 0 26px rgba(255, 194, 71, 0.14);
}

.authForm {
  gap: 12px;
}

.authForm label {
  display: grid;
  gap: 8px;
  color: #d8e2f3;
  font-size: 18px;
  font-weight: 800;
}

.authInputShell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 54px;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(122, 155, 205, 0.28);
  border-radius: 8px;
  padding: 0 24px;
  background: rgba(2, 7, 13, 0.62);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.018);
}

.authInputShell input {
  min-height: auto;
  border: 0;
  padding: 0;
  color: #f8fbff;
  background: transparent;
  font-size: 18px;
  font-weight: 650;
  outline: none;
}

.authInputShell input::placeholder {
  color: rgba(154, 166, 190, 0.7);
}

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

.profileAvatarPreview {
  display: grid;
  width: 58px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 211, 79, 0.5);
  border-radius: 50%;
  color: #ffd369;
  background: radial-gradient(circle at 50% 35%, rgba(255, 211, 79, 0.22), rgba(4, 10, 18, 0.94));
  font-size: 24px;
  font-weight: 900;
}

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

.profileAvatarControls {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.profileAvatarControls input[type="file"] {
  width: 100%;
  color: #d8e2f3;
  font-size: 14px;
}

.profileAvatarControls small,
.profileAvatarClear {
  color: #9aa6be;
  font-size: 13px;
  font-weight: 650;
}

.profileAvatarClear {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.authTabIcon,
.authFieldIcon,
.authSubmitIcon,
.authEyeButton {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
}

.authTabIcon,
.authFieldIcon,
.authSubmitIcon {
  width: 30px;
  aspect-ratio: 1;
  color: currentColor;
}

.authIconUser::before,
.authIconUserPlus::before {
  width: 12px;
  height: 12px;
  border: 3px solid currentColor;
  border-radius: 50%;
  content: "";
  transform: translateY(-7px);
}

.authIconUser::after,
.authIconUserPlus::after {
  position: absolute;
  bottom: 1px;
  width: 28px;
  height: 14px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  content: "";
}

.authIconUserPlus {
  width: 34px;
}

.authIconUserPlus::after {
  left: 0;
}

.authIconUserPlus::before {
  left: 6px;
}

.authIconUserPlus .authPlus,
.authIconUserPlus::selection {
  background: transparent;
}

.authIconUserPlus::after {
  box-shadow:
    16px -11px 0 -13px currentColor,
    16px -11px 0 -10px transparent;
}

.authIconUserPlus::selection {
  color: currentColor;
}

.authIconUserPlus::before {
  box-shadow:
    17px 6px 0 -4px currentColor,
    17px 6px 0 -1px transparent;
}

.authIconLogin::before {
  width: 22px;
  height: 18px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  content: "";
  transform: rotate(-45deg);
}

.authIconLogin::after {
  position: absolute;
  left: 0;
  width: 20px;
  height: 3px;
  border-radius: 99px;
  background: currentColor;
  content: "";
}

.authIconLock::before {
  width: 24px;
  height: 20px;
  border: 3px solid currentColor;
  border-radius: 5px;
  content: "";
  transform: translateY(5px);
}

.authIconLock::after {
  position: absolute;
  top: 1px;
  width: 18px;
  height: 17px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  content: "";
}

.authEyeButton {
  width: 42px;
  height: 42px;
  border: 0;
  color: #8998b1;
  background: transparent;
}

.authIconEye {
  position: relative;
  display: block;
  width: 34px;
  height: 22px;
  border: 3px solid currentColor;
  border-radius: 50% / 65%;
}

.authIconEye::after {
  position: absolute;
  inset: 5px 11px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.authForgotButton,
.authSwitchButton {
  justify-self: end;
  border: 0;
  padding: 0;
  color: #ffd369;
  background: transparent;
  font-size: 18px;
  font-weight: 850;
}

.authSubmitButton {
  min-height: 54px !important;
  gap: 18px;
  border: 1px solid #ffd369 !important;
  border-radius: 8px;
  color: #17100a;
  background: linear-gradient(145deg, #ffe071, #f3a72b) !important;
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.28),
    0 0 26px rgba(255, 194, 71, 0.28);
  font-size: 22px !important;
  font-weight: 850;
}

.authOneClickButton {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid rgba(122, 155, 205, 0.3);
  border-radius: 8px;
  color: #f6f8fd;
  background: rgba(255, 255, 255, 0.045);
  font-size: 19px;
  font-weight: 850;
}

.authOneClickButton:hover {
  border-color: rgba(255, 194, 71, 0.64);
  color: #ffd369;
  background: rgba(255, 194, 71, 0.07);
}

.authSwitchButton {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: 14px;
  color: #8e9bb3;
  font-size: 20px;
}

.authForm .statusLine {
  min-height: 16px;
  margin-top: -6px;
  color: #ffd889;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 720px) {
  .authModal {
    width: calc(100vw - 28px);
    padding: 18px;
  }

  .authModalHead {
    margin-bottom: 18px;
  }

  .authModalHead h2 {
    font-size: 34px;
  }

  .authModalHead p {
    margin-top: 8px;
    font-size: 19px;
  }

  .authModalHead .iconBtn {
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
    font-size: 34px;
  }

  .authTabs {
    margin-bottom: 20px;
  }

  .authTabs button {
    min-height: 50px;
    gap: 10px;
    font-size: 16px;
  }

  .authForm {
    gap: 12px;
  }

  .authForm label {
    gap: 10px;
    font-size: 17px;
  }

  .authInputShell {
    min-height: 52px;
    gap: 12px;
    padding: 0 14px;
  }

  .authInputShell input {
    font-size: 18px;
  }

  .authTabIcon,
  .authFieldIcon,
  .authSubmitIcon {
    width: 24px;
  }

  .authSubmitButton {
    min-height: 54px !important;
    font-size: 20px !important;
  }

  .authOneClickButton {
    min-height: 50px;
    font-size: 17px;
  }

  .authSwitchButton {
    font-size: 17px;
  }
}

.walletBackdrop {
  background:
    radial-gradient(circle at 28% 42%, rgba(255, 194, 71, 0.08), transparent 24%),
    radial-gradient(circle at 78% 52%, rgba(56, 169, 255, 0.11), transparent 30%),
    rgba(1, 4, 8, 0.78);
  backdrop-filter: blur(18px);
}

.walletModal {
  width: min(900px, calc(100vw - 48px));
  max-height: min(720px, calc(100vh - 36px));
  border-color: rgba(122, 155, 205, 0.28);
  padding: clamp(20px, 1.7vw, 28px);
  background:
    radial-gradient(circle at 16% 8%, rgba(255, 194, 71, 0.07), transparent 24%),
    linear-gradient(180deg, rgba(19, 30, 47, 0.94), rgba(8, 13, 23, 0.97)),
    #0a101a;
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.64),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.walletHead {
  margin-bottom: 14px;
}

.walletHead h2 {
  color: #f6f8fd;
  font-size: clamp(30px, 1.9vw, 36px);
  line-height: 1;
  font-weight: 950;
}

.walletHead p {
  margin-top: 10px;
  color: #ffd369;
  font-size: clamp(32px, 2.3vw, 42px);
  line-height: 1;
  text-shadow: 0 0 22px rgba(255, 194, 71, 0.32);
}

.walletHead .iconBtn {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  border: 1px solid rgba(122, 155, 205, 0.24);
  border-radius: 18px;
  color: #dfe7f5;
  background: rgba(255, 255, 255, 0.035);
  font-size: 46px;
  font-weight: 350;
}

.walletAddressMini,
.walletInputShell {
  display: grid;
  min-width: 0;
  align-items: center;
  border: 1px solid rgba(122, 155, 205, 0.28);
  border-radius: 8px;
  background: rgba(2, 7, 13, 0.66);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.018);
}

.walletAddressMini {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 50px;
  margin-bottom: 14px;
  padding: 0 20px;
  gap: 16px;
  color: #d7e2f4;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px;
}

.walletAddressMini span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.walletTabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgba(122, 155, 205, 0.28);
  border-radius: 999px;
  background: rgba(14, 23, 38, 0.56);
}

.walletTabs button {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  border-radius: 999px;
  color: #dfe7f5;
  background: transparent;
  font-size: 18px;
  font-weight: 650;
}

.walletTabs button + button {
  border-left: 1px solid rgba(122, 155, 205, 0.18);
}

.walletTabs button.active {
  color: #17100a;
  background: linear-gradient(145deg, #ffe071, #f3a72b);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.22),
    0 0 24px rgba(255, 194, 71, 0.32);
}

.walletTabIcon,
.walletFieldIcon,
.walletIconButton,
.walletFeeBadge,
.walletArrowIcon {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
}

.walletTabIcon {
  width: 30px;
  aspect-ratio: 1;
}

.walletTabHistory {
  border: 3px solid currentColor;
  border-radius: 50%;
}

.walletTabHistory::before {
  position: absolute;
  width: 2px;
  height: 9px;
  background: currentColor;
  content: "";
  transform: translateY(-3px);
}

.walletTabHistory::after {
  position: absolute;
  width: 9px;
  height: 2px;
  background: currentColor;
  content: "";
  transform: translate(4px, 2px);
}

.walletTabDeposit::before,
.walletTabWithdraw::before {
  width: 20px;
  height: 20px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  content: "";
  transform: rotate(45deg) translate(-2px, -2px);
}

.walletTabDeposit::after,
.walletTabWithdraw::after {
  position: absolute;
  bottom: 2px;
  width: 26px;
  height: 3px;
  border-radius: 99px;
  background: currentColor;
  content: "";
}

.walletTabWithdraw::before {
  transform: rotate(225deg) translate(-2px, -2px);
}

.walletTabWithdraw::after {
  top: 3px;
  bottom: auto;
}

.walletDeposit,
.walletWithdraw {
  gap: 14px;
}

.walletDeposit label,
.walletWithdraw label {
  gap: 8px;
  color: #b8c7dc;
  font-size: 18px;
  font-weight: 850;
}

.walletInputShell {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 54px;
  gap: 14px;
  padding: 0 20px;
}

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

.walletDeposit .walletAddressRow {
  width: min(640px, 100%);
  justify-self: center;
}

.walletAddressRow input,
.walletWithdraw input {
  min-height: auto;
  border: 0;
  padding: 0;
  color: #f8fbff;
  background: transparent;
  font-size: 20px;
  font-weight: 750;
  outline: none;
}

.walletWithdraw input::placeholder {
  color: rgba(200, 209, 224, 0.52);
}

.walletFieldIcon {
  width: 34px;
  aspect-ratio: 1;
  color: #d7e2f4;
}

.walletDeposit .walletQr {
  box-sizing: border-box;
  width: min(300px, 42vw);
  max-width: 100%;
  justify-self: center;
  margin: 0 auto 4px;
  border: 12px solid #fff;
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 0 38px rgba(255, 194, 71, 0.18),
    0 18px 46px rgba(0, 0, 0, 0.42);
}

.walletIconWallet::before {
  width: 27px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 5px;
  content: "";
}

.walletIconWallet::after {
  position: absolute;
  right: 2px;
  width: 10px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: #08101c;
  content: "";
}

.walletIconTon::before {
  width: 30px;
  height: 30px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
}

.walletIconTon::after {
  position: absolute;
  width: 13px;
  height: 13px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-3px);
}

.walletIconComment::before {
  width: 27px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
}

.walletIconComment::after {
  position: absolute;
  left: 7px;
  bottom: 4px;
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(-16deg);
}

.walletIconButton,
.walletMaxButton {
  border: 1px solid rgba(122, 155, 205, 0.22);
  border-radius: 8px;
  color: #ffd369;
  background: rgba(255, 255, 255, 0.04);
}

.walletIconButton {
  width: 40px;
  height: 40px;
}

.walletIconCopy {
  width: 20px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.walletIconCopy::before {
  position: absolute;
  right: 5px;
  top: 6px;
  width: 15px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 3px;
  content: "";
}

.walletMaxButton {
  min-height: 48px;
  padding: 0 18px;
  font-size: 20px;
  font-weight: 850;
}

.walletFeeLine {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 78px;
  align-items: center;
  border-color: rgba(122, 155, 205, 0.22);
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.035);
}

.walletFeeLine b {
  display: block;
  color: #f8fbff;
  font-size: 22px;
}

.walletFeeLine small {
  display: block;
  margin-top: 5px;
  color: #aeb9cc;
  font-size: 16px;
}

.walletFeeBadge {
  width: 42px;
  aspect-ratio: 1;
  color: #ffd369;
}

.walletFeeBadge::before {
  width: 30px;
  height: 34px;
  clip-path: polygon(50% 0, 88% 16%, 82% 68%, 50% 100%, 18% 68%, 12% 16%);
  border: 2px solid currentColor;
  content: "";
}

.walletFeeBadge::after {
  position: absolute;
  width: 10px;
  height: 14px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  content: "";
  transform: rotate(45deg) translateY(-3px);
}

.walletFeeLine strong {
  color: #ffd369;
  font-size: 24px;
}

.walletActions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(560px, 100%);
  justify-self: center;
  gap: 12px;
}

.walletGoldButton,
.walletSecondaryButton {
  display: flex;
  min-height: 54px !important;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 8px;
  font-size: 22px !important;
  font-weight: 650;
}

.walletGoldButton {
  width: 100%;
  border: 1px solid #ffd369 !important;
  color: #15100a;
  background: linear-gradient(145deg, #ffe071, #f3a72b) !important;
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.28),
    0 0 24px rgba(255, 194, 71, 0.3);
}

.walletSecondaryButton {
  min-width: 0;
  border: 1px solid rgba(122, 155, 205, 0.28) !important;
  color: #dfe7f5;
  background: rgba(14, 23, 38, 0.62) !important;
}

.walletArrowIcon {
  width: 30px;
  height: 2px;
  background: currentColor;
}

.walletArrowIcon::before,
.walletArrowIcon::after {
  position: absolute;
  right: 0;
  width: 12px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  content: "";
  transform-origin: right center;
}

.walletArrowIcon::before {
  transform: rotate(45deg);
}

.walletArrowIcon::after {
  transform: rotate(-45deg);
}

@media (max-width: 720px) {
  .walletModal {
    width: calc(100vw - 28px);
    padding: 18px;
  }

  .walletHead h2 {
    font-size: 30px;
  }

  .walletHead p {
    margin-top: 10px;
    font-size: 34px;
  }

  .walletHead .iconBtn {
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    font-size: 34px;
  }

  .walletAddressMini {
    min-height: 52px;
    padding: 0 14px;
    font-size: 14px;
  }

  .walletTabs {
    border-radius: 8px;
  }

  .walletTabs button {
    min-height: 48px;
    gap: 8px;
    font-size: 15px;
  }

  .walletTabIcon {
    width: 22px;
  }

  .walletDeposit label,
  .walletWithdraw label {
    font-size: 16px;
  }

  .walletInputShell {
    min-height: 54px;
    gap: 10px;
    padding: 0 14px;
  }

  .walletDeposit .walletQr {
    width: min(270px, 72vw);
    border-width: 10px;
  }

  .walletAddressRow input,
  .walletWithdraw input {
    font-size: 18px;
  }

  .walletMaxButton {
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
  }

  .walletFeeLine {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 82px;
    padding: 14px;
  }

  .walletFeeLine strong {
    grid-column: 1 / -1;
    justify-self: end;
    font-size: 18px;
  }

  .walletFeeLine b {
    font-size: 19px;
  }

  .walletFeeLine small {
    font-size: 14px;
  }

  .walletActions {
    grid-template-columns: 1fr;
  }

  .walletGoldButton,
  .walletSecondaryButton {
    min-height: 56px !important;
    font-size: 20px;
  }
}

.mobileGameChromeTop,
.mobileGameChromeBottom {
  display: none;
}

@media (max-width: 760px) {
  :root {
    --mobile-game-top-height: 58px;
    --mobile-game-bottom-height: 86px;
  }

  .mobileGameChromeTop,
  .mobileGameChromeBottom {
    font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  }

  .mobileGameChromeTop {
    position: fixed;
    z-index: 90;
    top: env(safe-area-inset-top, 0px);
    right: auto;
    left: 0;
    width: min(100vw, 430px);
    max-width: 430px;
    height: var(--mobile-game-top-height);
    display: grid;
    grid-template-columns: minmax(84px, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background:
      linear-gradient(180deg, rgba(14, 16, 21, 0.98), rgba(6, 8, 12, 0.98)),
      #07090d;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  }

  .mobileGameChromeTop.is-guest {
    grid-template-columns: minmax(82px, 1fr) auto;
  }

  .mobileGameChromeTop button,
  .mobileGameChromeBottom button {
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    min-height: 0;
    margin: 0;
    font: inherit;
    user-select: none;
    touch-action: manipulation;
  }

  .mobileGameChromeBack {
    min-width: 0;
    height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 6px;
    border: 0;
    color: #f7f8fb;
    background: transparent;
    font-size: 14px;
    font-weight: 900;
  }

  .mobileGameChromeBrand {
    min-width: 0;
    height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 4px;
    border: 0;
    color: #f7f8fb;
    background: transparent;
    font-size: 15px;
    font-weight: 950;
  }

  .mobileGameChromeBrand img {
    width: 36px;
    height: 36px;
    display: block;
    padding: 3px;
    border: 1px solid rgba(229, 165, 43, 0.42);
    border-radius: 9px;
    background: rgba(24, 18, 10, 0.7);
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(245, 185, 64, 0.34));
  }

  .mobileGameChromeBrand b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobileGameChromeBack span {
    width: 10px;
    height: 10px;
    display: block;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg);
  }

  .mobileGameChromeBalance {
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    color: #f6f7fb;
    background: rgba(20, 23, 31, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .mobileGameChromeBalance {
    min-width: 74px;
    max-width: 98px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 1px;
    padding: 0 8px;
  }

  .mobileGameChromeBalance span {
    color: #aab3c2;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.1em;
  }

  .mobileGameChromeBalance strong {
    overflow: hidden;
    max-width: 100%;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobileGameChromeTopUp {
    height: 38px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(180deg, #18d971, #0bac55);
    box-shadow: 0 8px 20px rgba(12, 186, 91, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 950;
  }

  .mobileGameChromeAuth {
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 7px;
    min-width: 0;
  }

  .mobileGameChromeLogin,
  .mobileGameChromeRegister {
    height: 38px;
    border: 0;
    border-radius: 9px;
    padding: 0 11px;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
  }

  .mobileGameChromeLogin {
    background: rgba(48, 50, 56, 0.98) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .mobileGameChromeRegister {
    background: linear-gradient(180deg, #18d971, #0bac55) !important;
    box-shadow: 0 8px 20px rgba(12, 186, 91, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .mobileGameChromeBottom {
    position: fixed;
    z-index: 90;
    right: auto;
    bottom: env(safe-area-inset-bottom, 0px);
    left: 0;
    width: min(100vw, 430px);
    max-width: 430px;
    height: var(--mobile-game-bottom-height);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 0;
    padding: 7px 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 0;
    border-radius: 13px 13px 0 0;
    background:
      linear-gradient(180deg, rgba(14, 17, 22, 0.99), rgba(9, 11, 16, 0.99)),
      #090b10;
    box-shadow: 0 -16px 32px rgba(0, 0, 0, 0.34);
  }

  .mobileGameNavItem {
    position: relative;
    height: 60px;
    display: grid;
    grid-template-rows: 32px 18px;
    align-content: center;
    justify-items: center;
    gap: 3px;
    padding: 4px 0 0;
    border: 0;
    color: #7d8da3;
    background: transparent;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.05;
    transform: translateY(-5px);
    transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  }

  .mobileGameNavItem img {
    align-self: end;
    width: 29px;
    height: 29px;
    display: block;
    object-fit: contain;
    opacity: 0.74;
  }

  .mobileGameNavItem span {
    align-self: start;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobileGameNavItem.is-active {
    grid-template-rows: 43px 18px;
    height: 76px;
    padding: 5px 2px 6px;
    border: 1px solid rgba(229, 165, 43, 0.58);
    border-radius: 11px;
    color: #ffd887;
    background:
      radial-gradient(circle at 50% 20%, rgba(242, 179, 55, 0.18), transparent 46%),
      linear-gradient(180deg, rgba(16, 21, 26, 0.97), rgba(5, 8, 12, 0.97));
    box-shadow: 0 0 18px rgba(245, 183, 67, 0.16), inset 0 1px 0 rgba(255, 230, 177, 0.12);
    font-size: 12px;
    transform: translateY(-8px);
  }

  .mobileGameNavItem.is-pressing {
    transform: translateY(-8px) scale(0.97);
  }

  .mobileGameNavItem.is-active img {
    width: 43px;
    height: 43px;
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(245, 185, 64, 0.4));
  }

  .mobileGameChromeBottom .mobileGameNavItem:not(.is-active),
  .mobileGameChromeBottom .mobileGameNavItem:not(.is-active):hover,
  .mobileGameChromeBottom .mobileGameNavItem:not(.is-active):focus,
  .mobileGameChromeBottom .mobileGameNavItem:not(.is-active):focus-visible,
  .mobileGameChromeBottom .mobileGameNavItem:not(.is-active):active {
    border-color: transparent;
    color: #7d8da3;
    background: transparent;
    box-shadow: none;
    outline: 0;
  }

  .mobileGameChromeBottom .mobileGameNavItem.is-active,
  .mobileGameChromeBottom .mobileGameNavItem.is-active:hover,
  .mobileGameChromeBottom .mobileGameNavItem.is-active:focus,
  .mobileGameChromeBottom .mobileGameNavItem.is-active:focus-visible,
  .mobileGameChromeBottom .mobileGameNavItem.is-active:active {
    border-color: rgba(229, 165, 43, 0.58);
    color: #ffd887;
    background:
      radial-gradient(circle at 50% 20%, rgba(242, 179, 55, 0.18), transparent 46%),
      linear-gradient(180deg, rgba(16, 21, 26, 0.97), rgba(5, 8, 12, 0.97));
    box-shadow: 0 0 18px rgba(245, 183, 67, 0.16), inset 0 1px 0 rgba(255, 230, 177, 0.12);
    outline: 0;
  }

  .homePage.hasMobileGameChrome .mobileGameChromeTopUp {
    border: 0;
    padding: 0 10px;
    color: #fff;
    background: linear-gradient(180deg, #18d971, #0bac55);
    box-shadow: 0 8px 20px rgba(12, 186, 91, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .homePage.hasMobileGameChrome .mobileGameNavItem {
    color: #7d8da3;
  }

  .homePage.hasMobileGameChrome .mobileGameNavItem.is-active {
    color: #ffd887;
  }

  .hasMobileGameChrome.crashGameApp,
  .hasMobileGameChrome.diceGameApp,
  .hasMobileGameChrome.rpsGameApp,
  .hasMobileGameChrome.tttGameApp,
  .mobileWaitingLobby.hasMobileGameChrome,
  .homePage.hasMobileGameChrome {
    min-height: 100svh;
    padding-top: calc(var(--mobile-game-top-height) + env(safe-area-inset-top, 0px) + 10px);
    padding-bottom: calc(var(--mobile-game-bottom-height) + env(safe-area-inset-bottom, 0px) + 10px);
  }

  .homePage.hasMobileGameChrome .homeHeader {
    display: none;
  }

  .homePage.hasMobileGameChrome .homeMain {
    padding-top: 0;
  }

  .hasMobileGameChrome.crashGameApp .crashTopbar,
  .hasMobileGameChrome.diceGameApp .diceDuelTop,
  .hasMobileGameChrome.rpsGameApp .rpsExpTopbar,
  .hasMobileGameChrome.tttGameApp .tttAppHeader {
    display: none;
  }

  .hasMobileGameChrome.crashGameApp {
    padding-right: 10px;
    padding-left: 10px;
  }

  .hasMobileGameChrome.crashGameApp .crashStage {
    height: clamp(328px, 39svh, 386px);
    border-radius: 21px;
  }

  .hasMobileGameChrome.crashGameApp .crashControls {
    padding: 9px;
    gap: 7px;
    border-radius: 19px;
  }

  .hasMobileGameChrome.crashGameApp .crashAmountRow {
    grid-template-columns: 68px minmax(0, 1fr) 68px;
    gap: 8px;
  }

  .hasMobileGameChrome.crashGameApp .crashStepButton,
  .hasMobileGameChrome.crashGameApp .crashAmountBox {
    height: 56px;
    border-radius: 14px;
  }

  .hasMobileGameChrome.crashGameApp .crashStepButton {
    font-size: 29px;
  }

  .hasMobileGameChrome.crashGameApp .crashAmountBox input {
    font-size: 22px;
  }

  .hasMobileGameChrome.crashGameApp .crashQuick {
    gap: 7px;
  }

  .hasMobileGameChrome.crashGameApp .crashQuick button {
    height: 35px;
    border-radius: 11px;
    font-size: 13px;
  }

  .hasMobileGameChrome.crashGameApp .crashAction {
    min-height: 58px;
    font-size: 21px;
  }

  .hasMobileGameChrome.crashGameApp .crashWinPill {
    min-height: 48px;
    padding: 8px 12px;
  }

  .hasMobileGameChrome.crashGameApp .crashSoundRow {
    min-height: 50px;
    padding: 0 12px;
  }

  .hasMobileGameChrome.diceGameApp {
    padding-right: 0;
    padding-left: 0;
  }

  .hasMobileGameChrome.rpsGameApp.rpsExperimentRoot {
    padding-right: 0;
    padding-left: 0;
    overflow: hidden;
    place-items: stretch;
  }

  .hasMobileGameChrome.rpsGameApp.rpsExperimentRoot .rpsExpShell {
    width: 100%;
    height: calc(100svh - var(--mobile-game-top-height) - var(--mobile-game-bottom-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 34px);
    min-height: 0;
    padding: 14px 14px 0;
  }

  .hasMobileGameChrome.rpsGameApp.rpsExperimentRoot .rpsExpPlayers {
    margin-top: 4px;
  }

  .hasMobileGameChrome.rpsGameApp.rpsExperimentRoot .rpsExpArena {
    min-height: 0;
    margin-top: 8px;
  }

  .hasMobileGameChrome.rpsGameApp.rpsExperimentRoot .rpsExpShell.phase-result .rpsExpArena {
    min-height: 0;
  }

  .hasMobileGameChrome.rpsGameApp.rpsExperimentRoot .rpsExpChoiceDeck {
    flex: 0 0 auto;
    gap: 10px;
    margin-top: auto;
    padding: 0 4px 14px;
  }

  .hasMobileGameChrome.rpsGameApp.rpsExperimentRoot .rpsExpChoiceCard {
    min-height: 104px;
    padding: 8px 5px 11px;
  }

  .hasMobileGameChrome.rpsGameApp.rpsExperimentRoot .rpsExpChoiceCard img {
    width: min(78%, 92px);
    height: 52%;
  }

  .hasMobileGameChrome.rpsGameApp.rpsExperimentRoot .rpsExpChoiceCard span {
    font-size: clamp(16px, 4.6vw, 20px);
  }

  .hasMobileGameChrome.rpsGameApp.rpsExperimentRoot .rpsExpMetaRow,
  .hasMobileGameChrome.rpsGameApp.rpsExperimentRoot .rpsExpStatusRow {
    display: none;
  }

  .hasMobileGameChrome.tttGameApp {
    padding-right: 12px;
    padding-left: 12px;
  }

  .hasMobileGameChrome .modalBackdrop {
    z-index: 120;
  }

  .mobileSectionPage.hasMobileGameChrome {
    min-height: 100svh;
    padding: calc(var(--mobile-game-top-height) + env(safe-area-inset-top, 0px) + 18px) 16px calc(var(--mobile-game-bottom-height) + env(safe-area-inset-bottom, 0px) + 18px);
    display: grid;
    place-items: center;
    background:
      radial-gradient(circle at 50% 20%, rgba(238, 170, 55, 0.12), transparent 22rem),
      linear-gradient(180deg, #05080d, #020408);
  }

  .mobileSectionCard {
    width: min(100%, 390px);
    padding: 26px 22px;
    border: 1px solid rgba(230, 170, 72, 0.22);
    border-radius: 18px;
    color: #f6f7fb;
    background:
      linear-gradient(180deg, rgba(18, 22, 29, 0.92), rgba(8, 10, 15, 0.94)),
      rgba(9, 12, 18, 0.9);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 232, 183, 0.08);
    text-align: center;
  }

  .mobileSectionCard span {
    color: #f2bd61;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  .mobileSectionCard h1 {
    margin: 8px 0 8px;
    font-size: 34px;
    line-height: 1;
  }

  .mobileSectionCard p {
    margin: 0;
    color: #aeb8c8;
    font-size: 15px;
    line-height: 1.45;
  }

  .mobileGamesPage,
  .mobileAccountPage {
    min-height: 100svh;
    padding: calc(var(--mobile-game-top-height) + env(safe-area-inset-top, 0px) + 16px) 14px calc(var(--mobile-game-bottom-height) + env(safe-area-inset-bottom, 0px) + 18px);
    color: #f7f8fb;
    background:
      radial-gradient(circle at 50% 8%, rgba(61, 159, 255, 0.12), transparent 18rem),
      radial-gradient(circle at 12% 28%, rgba(237, 174, 59, 0.1), transparent 14rem),
      linear-gradient(180deg, #050910, #020408 72%);
  }

  .mobileGamesIntro {
    padding: 4px 6px 14px;
  }

  .mobileGamesIntro span,
  .mobileAccountHero > div > span {
    color: #f2bd61;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .mobileGamesIntro h1 {
    margin: 6px 0 6px;
    font-size: 34px;
    line-height: 1;
  }

  .mobileGamesIntro p {
    max-width: 340px;
    margin: 0;
    color: #aeb8c8;
    font-size: 14px;
    line-height: 1.35;
  }

  .mobileGameChoiceList {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
  }

  .mobileGameChoice {
    position: relative;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 84px;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 12px;
    width: 100%;
    max-width: 400px;
    min-width: 0;
    min-height: 146px;
    padding: 12px;
    overflow: hidden;
    border: 1px solid rgba(65, 151, 255, 0.48);
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(6, 16, 28, 0.92), rgba(3, 8, 16, 0.96)),
      rgba(4, 10, 18, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 18px 50px rgba(0, 0, 0, 0.3);
  }

  .mobileGameChoice::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
      linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.24;
    content: "";
  }

  .mobileGameChoice-gold {
    border-color: rgba(229, 165, 43, 0.48);
  }

  .mobileGameChoiceHero,
  .mobileGameChoiceCopy,
  .mobileGameChoicePlay,
  .mobileGameChoiceMeta {
    position: relative;
    z-index: 1;
  }

  .mobileGameChoiceHero {
    grid-column: 1;
    grid-row: 1;
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 45%, rgba(119, 82, 255, 0.24), transparent 67%);
  }

  .mobileGameChoiceHero img {
    width: 118%;
    height: 118%;
    object-fit: cover;
    object-position: 50% 36%;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.36));
  }

  .mobileGameChoiceImage-rocket {
    width: 122%;
    height: 122%;
    object-fit: contain;
    object-position: 50% 50%;
  }

  .mobileGameChoiceCopy {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    align-self: center;
    padding-right: 0;
  }

  .mobileGameChoiceCopy h2 {
    margin: 0 0 7px;
    overflow: hidden;
    font-size: 23px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobileGameChoiceCopy p {
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    color: #aeb8c8;
    font-size: 14px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .mobileGameChoicePlay {
    position: relative;
    top: auto;
    right: auto;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: 84px;
    min-width: 0;
    height: 54px;
    padding: 0 6px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(180deg, #8d55ff, #6f27e9);
    box-shadow: 0 12px 28px rgba(111, 39, 233, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-size: 14px;
    font-weight: 950;
  }

  .mobileGameChoiceMeta {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(56px, 0.65fr) minmax(72px, 1fr) minmax(56px, 0.65fr) minmax(72px, 1fr);
    gap: 7px;
    align-items: center;
    margin-top: 0;
  }

  .mobileGameChoiceMeta span {
    min-width: 0;
    overflow: hidden;
    color: #9da8b9;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobileGameChoiceMeta b {
    min-width: 0;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0 8px;
    border-radius: 9px;
    color: #f2f6ff;
    background: rgba(29, 47, 79, 0.76);
    font-size: 13px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobileGameChoiceMeta b.hot,
  .mobileGameChoice-gold .mobileGameChoiceMeta b {
    color: #ffd37e;
    background: rgba(80, 42, 8, 0.7);
  }

  .mobileAccountPage {
    display: grid;
    align-content: start;
    gap: 14px;
  }

  .mobileAccountHero {
    width: 100%;
    max-width: 400px;
    min-width: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(229, 165, 43, 0.28);
    border-radius: 18px;
    background: rgba(9, 13, 20, 0.84);
    box-shadow: inset 0 1px 0 rgba(255, 229, 180, 0.08);
  }

  .mobileAccountHero h1 {
    margin: 4px 0 4px;
    overflow: hidden;
    font-size: 28px;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobileAccountHero p {
    margin: 0;
    overflow: hidden;
    color: #aeb8c8;
    font-size: 13px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobileAccountIcon,
  .mobileProfileAvatar {
    width: 64px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(229, 165, 43, 0.42);
    border-radius: 16px;
    background: rgba(34, 24, 12, 0.86);
    box-shadow: 0 0 18px rgba(232, 176, 66, 0.12);
  }

  .mobileWalletIcon::before {
    width: 34px;
    height: 26px;
    border: 3px solid #f3be62;
    border-radius: 7px;
    content: "";
  }

  .mobileProfileIcon::before {
    width: 34px;
    height: 34px;
    border: 3px solid #f3be62;
    border-radius: 50%;
    content: "";
  }

  .mobileProfileAvatar {
    overflow: hidden;
    color: #ffd37e;
    font-size: 26px;
    font-weight: 950;
  }

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

  .mobileBalanceGrid {
    width: 100%;
    max-width: 400px;
    min-width: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .mobileBalanceGrid article,
  .mobileWalletPanel,
  .mobileProfilePanel {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(18, 24, 33, 0.88), rgba(7, 10, 16, 0.92)),
      rgba(8, 12, 18, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  }

  .mobileBalanceGrid article {
    min-width: 0;
    padding: 13px;
  }

  .mobileBalanceGrid span {
    color: #96a2b4;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobileBalanceGrid strong {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobileWalletPanel,
  .mobileProfilePanel {
    width: 100%;
    max-width: 400px;
    min-width: 0;
    margin: 0 auto;
    padding: 14px;
    overflow: hidden;
  }

  .mobileWalletPanel .authPanel,
  .mobileProfilePanel .authPanel {
    width: 100%;
    min-width: 0;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .mobileWalletPanel .authTabs button,
  .mobileProfilePanel .authTabs button {
    min-width: 0;
    min-height: 48px;
    gap: 8px;
    padding: 0 8px;
    font-size: 14px;
  }

  .mobileWalletPanel .authForm label,
  .mobileProfilePanel .authForm label {
    min-width: 0;
    font-size: 14px;
  }

  .mobileWalletPanel .authInputShell,
  .mobileProfilePanel .authInputShell,
  .mobileWalletPanel .authSubmitButton,
  .mobileProfilePanel .authSubmitButton {
    width: 100%;
    min-width: 0;
  }

  .mobileWalletPanel .authSubmitButton,
  .mobileProfilePanel .authSubmitButton {
    min-height: 52px;
    font-size: 16px;
  }

  .mobileLogoutButton {
    width: 100%;
    min-height: 50px;
    border-color: rgba(255, 99, 118, 0.28);
    color: #ff9aa7;
    background: rgba(58, 16, 23, 0.58);
    font-weight: 900;
  }
}

@media (max-width: 370px) {
  .mobileGameChromeTop {
    grid-template-columns: minmax(72px, 1fr) auto auto;
    gap: 6px;
    padding: 0 6px;
  }

  .mobileGameChromeBack {
    gap: 7px;
    font-size: 13px;
  }

  .mobileGameChromeTopUp {
    padding: 0 8px;
    font-size: 11px;
  }

  .mobileGameChromeBalance {
    min-width: 66px;
    max-width: 84px;
    padding: 0 6px;
  }
}

.mobileProfileQuickGrid {
  display: grid;
  gap: 12px;
  width: min(100% - 28px, 520px);
  margin: 0 auto 12px;
}

.mobileProfileQuickCard,
.affiliatePanel,
.affiliateHero,
.affiliateStatsGrid article {
  border: 1px solid rgba(218, 164, 72, 0.32);
  background:
    linear-gradient(135deg, rgba(218, 164, 72, 0.12), rgba(8, 12, 18, 0.86)),
    rgba(7, 11, 17, 0.9);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mobileProfileQuickCard {
  display: grid;
  gap: 4px;
  min-height: 88px;
  border-radius: 18px;
  padding: 16px;
  color: #f8fafc;
  text-align: left;
}

.mobileProfileQuickCard span,
.affiliateHero span,
.affiliateStatsGrid span,
.affiliateReferralItem small,
.affiliateCodeBadge {
  color: #aeb8c7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobileProfileQuickCard strong {
  color: #f4c566;
  font-size: 24px;
}

.mobileProfileQuickCard small,
.affiliateHero p,
.affiliateApplyPanel p {
  color: #b9c3d1;
  font-weight: 700;
}

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

.affiliateHero,
.affiliatePanel {
  width: min(100% - 28px, 520px);
  margin: 0 auto;
  border-radius: 22px;
  padding: 18px;
}

.affiliateHero {
  min-height: 170px;
  align-content: end;
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 197, 91, 0.26), transparent 12rem),
    linear-gradient(145deg, rgba(18, 22, 31, 0.96), rgba(4, 7, 12, 0.96));
}

.affiliateHero h1 {
  margin: 8px 0;
  color: #fff7de;
  font-size: clamp(34px, 10vw, 54px);
  line-height: 0.95;
}

.affiliateStatsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100% - 28px, 520px);
  margin: 0 auto;
}

.affiliateStatsGrid article {
  border-radius: 16px;
  padding: 14px;
}

.affiliateStatsGrid strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 20px;
}

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

.affiliateLinkBox code,
.affiliateCodeBadge {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.26);
  padding: 12px;
  color: #ffe7ad;
}

.affiliateCodeBadge {
  margin-top: 10px;
}

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

.affiliateReferralItem {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 0.9fr));
  gap: 10px;
  align-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.affiliateReferralItem strong,
.affiliateReferralItem b {
  color: #f8fafc;
}

.affiliateReferralItem span {
  display: grid;
  gap: 2px;
}

.affiliateApplyForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

.affiliateApplyForm input {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(218, 164, 72, 0.28);
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  padding: 0 14px;
}

@media (max-width: 560px) {
  .affiliateReferralItem {
    grid-template-columns: 1fr 1fr;
  }

  .affiliateLinkBox,
  .affiliateApplyForm {
    grid-template-columns: 1fr;
  }
}

.partnerPortal {
  min-height: 100vh;
  padding: max(18px, env(safe-area-inset-top)) 18px calc(30px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 18% 0%, rgba(218, 164, 72, 0.12), transparent 28rem),
    linear-gradient(180deg, #080b10 0%, #05070a 100%);
  color: #edf2f7;
}

.partnerTopbar,
.partnerHero,
.partnerAuthPanel,
.partnerPanel,
.partnerKpiGrid article {
  width: min(1180px, 100%);
  margin-inline: auto;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(11, 15, 22, 0.88);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.28);
}

.partnerTopbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-radius: 18px;
  padding: 12px 16px;
}

.partnerBrand,
.partnerTopActions,
.partnerPeriodTabs,
.partnerLinkStats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.partnerBrand,
.partnerTopActions button,
.partnerTextButton,
.partnerLinkCard button,
.partnerPeriodTabs button {
  appearance: none;
  border: 0;
  color: inherit;
  font: inherit;
}

.partnerBrand {
  background: transparent;
  cursor: pointer;
}

.partnerBrand span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(218, 164, 72, 0.45);
  color: #f4c566;
  font-weight: 1000;
}

.partnerBrand span img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.partnerBrand strong {
  font-size: 22px;
}

.partnerTopActions {
  color: #aab6c7;
  font-weight: 800;
}

.partnerTopActions button,
.partnerTextButton,
.partnerLinkCard button {
  cursor: pointer;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 13px;
}

.partnerHero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  border-radius: 22px;
  padding: 24px;
}

.partnerHero span,
.partnerAuthPanel > span,
.partnerAuthPanel label span,
.partnerSectionHead span,
.partnerKpiGrid span,
.partnerLinkForm label span,
.partnerTable th {
  color: #8fa0b5;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partnerHero h1,
.partnerAuthPanel h1 {
  margin: 8px 0;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 0.95;
}

.partnerHero p,
.partnerAuthPanel p,
.partnerLinkCard small,
.partnerStatus {
  color: #aab6c7;
  font-weight: 700;
}

.partnerPeriodTabs {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  padding: 5px;
}

.partnerPeriodTabs button {
  min-width: 58px;
  border-radius: 10px;
  background: transparent;
  padding: 10px 12px;
  color: #aab6c7;
  cursor: pointer;
}

.partnerPeriodTabs button.active {
  background: rgba(218, 164, 72, 0.18);
  color: #ffd37a;
}

.partnerKpiGrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 14px auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.partnerKpiGrid article {
  min-height: 112px;
  border-radius: 18px;
  padding: 16px;
}

.partnerKpiGrid strong {
  display: block;
  margin-top: 12px;
  color: #f8fafc;
  font-size: 22px;
}

.partnerGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 14px;
  width: min(1180px, 100%);
  margin: 14px auto 0;
}

.partnerPanel,
.partnerAuthPanel {
  border-radius: 20px;
  padding: 18px;
}

.partnerSectionHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.partnerSectionHead h2 {
  margin: 4px 0 0;
  font-size: 20px;
}

.partnerAuthPanel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 24px;
  margin-top: 16px;
  padding: 28px;
}

.partnerAuthForm,
.partnerLinkForm {
  display: grid;
  gap: 12px;
}

.partnerAuthForm label,
.partnerLinkForm label {
  display: grid;
  gap: 7px;
}

.partnerAuthForm input,
.partnerLinkForm input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(3, 6, 11, 0.72);
  color: #fff;
  padding: 0 13px;
  font: inherit;
}

.partnerPrimary {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #f4c566, #b9791e);
  color: #090b0f;
  font-weight: 1000;
  cursor: pointer;
}

.partnerTextButton {
  background: transparent;
  color: #aab6c7;
}

.partnerChart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16px, 1fr));
  align-items: end;
  gap: 7px;
  min-height: 152px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  padding: 18px 14px 10px;
}

.partnerChartDay {
  display: grid;
  justify-items: center;
  align-items: end;
  gap: 6px;
  min-width: 0;
}

.partnerChartDay span {
  width: 100%;
  max-width: 18px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #f9d782, #a56816);
  box-shadow: 0 0 18px rgba(218, 164, 72, 0.26);
}

.partnerChartDay span.negative {
  background: linear-gradient(180deg, #ef4444, #7f1d1d);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.22);
}

.partnerChartDay small,
.partnerChartLegend {
  color: #8190a5;
  font-size: 11px;
  font-weight: 800;
}

.partnerChartLegend {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

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

.partnerLinkCard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  padding: 13px;
}

.partnerLinkCard strong,
.partnerLinkCard code {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.partnerLinkCard code {
  margin: 5px 0;
  color: #fbd27a;
}

.partnerLinkCard strong small {
  margin-left: 8px;
  color: #8fa0b5;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partnerNotice {
  margin: 0;
  border: 1px solid rgba(244, 185, 66, 0.2);
  border-radius: 12px;
  background: rgba(244, 185, 66, 0.08);
  color: #c8d4e6;
  padding: 13px 14px;
  font-weight: 800;
}

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

.partnerSubsectionHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 10px;
  color: #9cafc8;
  font-weight: 850;
}

.partnerSubsectionHead span {
  color: #dce8f8;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.partnerLinkStats span {
  display: grid;
  gap: 2px;
  min-width: 72px;
}

.partnerLinkStats b {
  color: #fff;
}

.partnerTableWrap {
  overflow-x: auto;
}

.partnerTable {
  width: 100%;
  border-collapse: collapse;
}

.partnerTable th,
.partnerTable td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.11);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.partnerTable td {
  color: #e5edf6;
  font-weight: 750;
}

.partnerTable td small {
  display: block;
  margin-top: 3px;
  color: #8190a5;
}

.partnerStatus {
  width: min(1180px, 100%);
  margin: 12px auto 0;
}

@media (max-width: 900px) {
  .partnerKpiGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partnerGrid,
  .partnerAuthPanel {
    grid-template-columns: 1fr;
  }

  .partnerHero,
  .partnerTopbar {
    align-items: stretch;
    flex-direction: column;
  }

  .partnerLinkCard {
    grid-template-columns: 1fr;
  }
}

.partnerPortal.partnerPortalConsole {
  min-height: 100vh;
  padding: 0;
  background: #091321;
  color: #eaf2ff;
}

.partnerConsole {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 68% 12%, rgba(60, 112, 255, 0.12), transparent 34rem),
    linear-gradient(135deg, #091321 0%, #0b1423 55%, #08111f 100%);
}

.partnerSidebar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100vh;
  border-right: 1px solid rgba(145, 169, 204, 0.14);
  background: linear-gradient(180deg, rgba(11, 25, 41, 0.98), rgba(7, 16, 29, 0.98));
  padding: 24px 14px;
}

.partnerSidebarLogo {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: #f8fbff;
  text-align: left;
  cursor: pointer;
}

.partnerSidebarLogo span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 185, 66, 0.34);
  border-radius: 13px;
  background: rgba(244, 185, 66, 0.08);
  filter: drop-shadow(0 0 18px rgba(244, 185, 66, 0.34));
}

.partnerSidebarLogo span img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.partnerSidebarLogo strong {
  display: grid;
  font-size: 20px;
  line-height: 0.94;
  letter-spacing: 0.02em;
}

.partnerSidebarLogo em {
  color: #f4b942;
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.36em;
}

.partnerSidebar nav {
  display: grid;
  align-content: start;
  gap: 6px;
  margin-top: 34px;
}

.partnerSidebar small {
  margin: 16px 8px 10px;
  color: #74869e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.partnerSidebar nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #b9c8dd;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.partnerSidebar nav button i {
  display: grid;
  place-items: center;
  width: 24px;
  color: #7fb7ff;
  font-style: normal;
}

.partnerSidebar nav button.active {
  border-color: rgba(139, 92, 246, 0.38);
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.42), rgba(72, 185, 255, 0.08));
  color: #fff;
  box-shadow: inset 3px 0 0 #8b5cf6, 0 14px 32px rgba(39, 31, 84, 0.24);
}

.partnerSupportBox {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(145, 169, 204, 0.16);
  border-radius: 12px;
  background: rgba(4, 10, 19, 0.56);
  padding: 18px;
}

.partnerSupportBox strong {
  color: #fff;
}

.partnerSupportBox span {
  color: #91a4bd;
  font-size: 13px;
  font-weight: 750;
}

.partnerWorkspace {
  min-width: 0;
}

.partnerHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
  border-bottom: 1px solid rgba(145, 169, 204, 0.12);
  background: rgba(11, 23, 38, 0.86);
  padding: 0 28px;
}

.partnerHeader > div:first-child {
  display: flex;
  align-items: center;
  gap: 18px;
}

.partnerHeader h1 {
  margin: 0;
  color: #fff;
  font-size: 28px;
}

.partnerMenuButton {
  border: 0;
  background: transparent;
  color: #48b9ff;
  font-size: 34px;
  line-height: 1;
}

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

.partnerHeaderActions button,
.partnerHeaderActions span,
.partnerHeaderActions strong {
  min-height: 42px;
  border: 1px solid rgba(145, 169, 204, 0.16);
  border-radius: 10px;
  background: rgba(7, 15, 27, 0.72);
  color: #eaf2ff;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 850;
}

.partnerHeaderActions button {
  cursor: pointer;
}

.partnerHeaderActions .is-primary {
  border-color: rgba(72, 185, 255, 0.45);
  background: linear-gradient(135deg, #3c7cff, #6d45ff);
  box-shadow: 0 14px 34px rgba(70, 80, 255, 0.26);
}

.partnerContent {
  display: grid;
  gap: 16px;
  padding: 18px 20px 28px;
}

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

.partnerMetricStrip article,
.partnerFilterBar,
.partnerPanel {
  border: 1px solid rgba(145, 169, 204, 0.15);
  background:
    linear-gradient(145deg, rgba(24, 38, 61, 0.92), rgba(11, 21, 36, 0.92)),
    rgba(11, 21, 36, 0.92);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.partnerMetricStrip article {
  position: relative;
  min-height: 126px;
  overflow: hidden;
  border-radius: 12px;
  padding: 24px 22px;
}

.partnerMetricStrip article::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: 8px;
  width: 112px;
  height: 64px;
  opacity: 0.55;
  background: linear-gradient(135deg, transparent 25%, currentColor 26% 29%, transparent 30% 48%, currentColor 49% 53%, transparent 54%);
  transform: skewX(-18deg);
}

.partnerMetricStrip span,
.partnerFilterBar span,
.partnerSectionHead span {
  color: #a7b4c7;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.partnerMetricStrip strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: clamp(25px, 2vw, 34px);
}

.partnerMetricStrip small {
  display: block;
  margin-top: 6px;
  color: #9cafc8;
  font-weight: 800;
}

.partnerMetricStrip .is-purple { color: #8b5cf6; border-bottom: 4px solid #8b5cf6; }
.partnerMetricStrip .is-blue { color: #3ba8ff; border-bottom: 4px solid #3ba8ff; }
.partnerMetricStrip .is-cyan { color: #21d3d5; border-bottom: 4px solid #21d3d5; }
.partnerMetricStrip .is-amber { color: #f4b942; border-bottom: 4px solid #f4b942; }
.partnerMetricStrip .is-green { color: #35d36f; border-bottom: 4px solid #35d36f; }

.partnerFilterBar {
  display: flex;
  align-items: end;
  gap: 12px;
  border-radius: 12px;
  padding: 16px;
}

.partnerFilterBar label {
  display: grid;
  gap: 7px;
}

.partnerFilterBar select,
.partnerFilterBar button,
.partnerMiniTabs button {
  min-height: 42px;
  border: 1px solid rgba(145, 169, 204, 0.22);
  border-radius: 9px;
  background: rgba(7, 15, 27, 0.72);
  color: #eaf2ff;
  padding: 0 14px;
  font: inherit;
  font-weight: 850;
}

.partnerFilterBar > button {
  min-width: 136px;
  border-color: rgba(72, 185, 255, 0.36);
  background: #2e9de6;
}

.partnerFilterBar .partnerPeriodTabs {
  margin-left: auto;
}

.partnerPortalConsole .partnerPeriodTabs {
  display: flex;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
}

.partnerPortalConsole .partnerPeriodTabs button {
  min-width: 86px;
  min-height: 42px;
  border: 1px solid rgba(145, 169, 204, 0.16);
  border-radius: 9px;
  background: rgba(7, 15, 27, 0.72);
  color: #c9d6e9;
}

.partnerPortalConsole .partnerPeriodTabs button.active {
  border-color: rgba(139, 92, 246, 0.68);
  background: rgba(139, 92, 246, 0.22);
  color: #fff;
}

.partnerPortalConsole .partnerGrid {
  width: 100%;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.partnerPortalConsole .partnerGridWide {
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
}

.partnerPortalConsole .partnerPanel {
  width: 100%;
  margin: 0;
  border-radius: 12px;
  padding: 18px;
}

.partnerPortalConsole .partnerSectionHead {
  margin-bottom: 18px;
}

.partnerPortalConsole .partnerSectionHead h2 {
  color: #f8fbff;
}

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

.partnerMiniTabs button {
  min-height: 36px;
  padding: 0 12px;
  color: #91a4bd;
}

.partnerMiniTabs button.active {
  border-color: rgba(139, 92, 246, 0.64);
  color: #fff;
}

.partnerLineChart {
  display: grid;
  gap: 12px;
}

.partnerLineChart svg {
  width: 100%;
  height: 310px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(7, 16, 28, 0.4), rgba(8, 16, 28, 0.78));
}

.partnerLineChart line {
  stroke: rgba(145, 169, 204, 0.14);
  stroke-width: 1;
}

.partnerLineChart .line {
  fill: none;
  stroke: #8b5cf6;
  stroke-width: 3;
  filter: drop-shadow(0 0 9px rgba(139, 92, 246, 0.42));
}

.partnerLineChart .line.is-cyan {
  stroke: #2dd4bf;
  filter: drop-shadow(0 0 9px rgba(45, 212, 191, 0.34));
}

.partnerLineChart circle {
  fill: #fff;
  stroke: currentColor;
  stroke-width: 2;
}

.partnerCommissionCards,
.partnerRateTable,
.partnerProfileGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.partnerCommissionCards article,
.partnerRateTable article,
.partnerProfileGrid article {
  border: 1px solid rgba(145, 169, 204, 0.14);
  border-radius: 12px;
  background: rgba(7, 15, 27, 0.58);
  padding: 18px;
}

.partnerCommissionCards strong,
.partnerRateTable strong,
.partnerProfileGrid strong {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-size: 24px;
}

.partnerCommissionCards small,
.partnerRateTable small,
.partnerTextPanel p {
  color: #a8b7cb;
  font-weight: 750;
}

.partnerPortalConsole .partnerLinkCard {
  border: 1px solid rgba(145, 169, 204, 0.12);
  background: rgba(7, 15, 27, 0.58);
}

.partnerPortalConsole .partnerTable th {
  background: #16263a;
  color: #dce8f8;
}

.partnerPortalConsole .partnerTable td {
  border-color: rgba(145, 169, 204, 0.1);
}

@media (max-width: 1180px) {
  .partnerConsole {
    grid-template-columns: 230px minmax(0, 1fr);
  }

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

  .partnerHeader {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 20px;
  }
}

@media (max-width: 760px) {
  .partnerConsole {
    grid-template-columns: 1fr;
  }

  .partnerSidebar {
    position: relative;
    height: auto;
  }

  .partnerHeaderActions,
  .partnerFilterBar,
  .partnerMetricStrip,
  .partnerPortalConsole .partnerGrid,
  .partnerPortalConsole .partnerGridWide,
  .partnerCommissionCards,
  .partnerRateTable,
  .partnerProfileGrid {
    grid-template-columns: 1fr;
  }

  .partnerHeaderActions,
  .partnerFilterBar {
    align-items: stretch;
    display: grid;
    width: 100%;
  }

  .partnerFilterBar .partnerPeriodTabs {
    margin-left: 0;
  }
}

.homePage .homeNav button {
  min-height: 56px;
  height: 56px;
  padding: 0 4px;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0;
  transition: color 0.16s ease, transform 0.16s ease;
}

.homePage .homeNav button:hover:not(:disabled),
.homePage .homeNav button:focus-visible {
  border-color: transparent !important;
  color: var(--home-gold);
  background: transparent !important;
  box-shadow: none !important;
  outline: 0;
  transform: translateY(-1px);
}

.homePage .homeNav button.is-active:hover:not(:disabled),
.homePage .homeNav button.is-active:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  transform: none;
}

.homePage .homeNav button:active {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.homePage .homeLoginButton:hover:not(:disabled),
.homePage .homePlayButton:hover:not(:disabled),
.homePage .homeBalance:hover:not(:disabled),
.homePage .homeUser:hover:not(:disabled) {
  filter: brightness(1.04);
  border-color: rgba(255, 199, 66, 0.5) !important;
}

.homePage .homeLoginButton:hover:not(:disabled) {
  color: #101018 !important;
  background: linear-gradient(145deg, #ffe58d, #f4ae31) !important;
}

.authModal {
  width: min(500px, calc(100vw - 36px));
  padding: 22px;
}

.authModalHead {
  margin-bottom: 14px;
}

.authModalHead h2 {
  font-size: clamp(28px, 2.3vw, 34px);
}

.authModalHead p {
  margin-top: 5px;
  font-size: 15px;
}

.authModalHead .iconBtn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 12px;
  background: rgba(16, 25, 39, 0.76) !important;
  font-size: 28px;
}

.authTabs {
  margin-bottom: 12px;
}

.authTabs button {
  min-height: 44px;
  gap: 10px;
  font-size: 15px;
}

.authTabs button:hover:not(:disabled),
.authTabs button:focus-visible {
  border-color: transparent !important;
  color: #ffd369;
  background: rgba(255, 194, 71, 0.055) !important;
  outline: 0;
}

.authTabs button.active:hover:not(:disabled),
.authTabs button.active:focus-visible {
  border-color: rgba(255, 194, 71, 0.86) !important;
  background: rgba(255, 194, 71, 0.07) !important;
}

.authForm {
  gap: 10px;
}

.authForm label {
  gap: 6px;
  font-size: 14px;
}

.authInputShell {
  min-height: 46px;
  gap: 10px;
  padding: 0 14px;
}

.authInputShell input {
  font-size: 15px;
}

.authTabIcon,
.authFieldIcon,
.authSubmitIcon {
  width: 22px;
}

.authEyeButton {
  width: 34px;
  height: 34px;
}

.authEyeButton:hover:not(:disabled),
.authForgotButton:hover:not(:disabled),
.authSwitchButton:hover:not(:disabled) {
  border-color: transparent !important;
  background: transparent !important;
}

.authForgotButton {
  font-size: 14px;
}

.authSubmitButton {
  min-height: 48px !important;
  gap: 10px;
  border-radius: 12px;
  font-size: 17px !important;
}

.authSubmitButton:hover:not(:disabled) {
  color: #17100a !important;
  background: linear-gradient(145deg, #ffe58d, #f3a72b) !important;
}

.authOneClickButton {
  min-height: 44px;
  gap: 10px;
  border-radius: 12px;
  font-size: 15px;
}

.authSwitchButton {
  gap: 10px;
  font-size: 15px;
}

.authTabIcon,
.authFieldIcon,
.authSubmitIcon {
  width: 22px;
  min-width: 22px;
  height: 22px;
  aspect-ratio: 1;
  overflow: visible;
}

.authIconLogin::before,
.authIconLogin::after,
.authIconUser::before,
.authIconUser::after,
.authIconUserPlus::before,
.authIconUserPlus::after,
.authIconLock::before,
.authIconLock::after {
  position: absolute;
  box-sizing: border-box;
  content: "";
  box-shadow: none;
}

.authIconLogin::before {
  left: 2px;
  top: 10px;
  width: 16px;
  height: 2px;
  border: 0;
  border-radius: 99px;
  background: currentColor;
  transform: none;
}

.authIconLogin::after {
  right: 2px;
  top: 6px;
  left: auto;
  width: 9px;
  height: 9px;
  border: 0;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 0;
  background: transparent;
  transform: rotate(45deg);
}

.authIconUser,
.authIconUserPlus {
  background:
    linear-gradient(currentColor, currentColor) no-repeat 16px 7px / 7px 2px,
    linear-gradient(currentColor, currentColor) no-repeat 18.5px 4.5px / 2px 7px;
}

.authIconUser::before,
.authIconUserPlus::before {
  top: 2px;
  left: 7px;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: none;
}

.authIconUser::after,
.authIconUserPlus::after {
  right: 2px;
  bottom: 1px;
  left: 2px;
  width: auto;
  height: 10px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
}

.authIconUser:not(.authIconUserPlus) {
  background: none;
}

.authIconLock::before {
  right: 3px;
  bottom: 2px;
  left: 3px;
  width: auto;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 4px;
  transform: none;
}

.authIconLock::after {
  top: 1px;
  left: 6px;
  width: 10px;
  height: 11px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

@media (max-width: 760px) {
  .quickAccountPrompt {
    right: 10px;
    bottom: calc(var(--mobile-game-bottom-height, 86px) + env(safe-area-inset-bottom, 0px) + 10px);
    left: 10px;
    width: auto;
    grid-template-columns: minmax(0, 1fr) auto 32px;
  }

  .mobileTournamentsPage {
    min-height: 100svh;
    padding: calc(var(--mobile-game-top-height) + env(safe-area-inset-top, 0px) + 14px) 14px calc(var(--mobile-game-bottom-height) + env(safe-area-inset-bottom, 0px) + 18px);
    color: #f7f8fb;
    background:
      radial-gradient(circle at 54% 8%, rgba(61, 159, 255, 0.1), transparent 18rem),
      radial-gradient(circle at 8% 24%, rgba(237, 174, 59, 0.11), transparent 14rem),
      linear-gradient(180deg, #050910, #020408 72%);
  }

  .mobileTournamentsHead,
  .mobileLobbyList,
  .mobileLobbyEmpty {
    width: 100%;
    max-width: 400px;
    margin-right: auto;
    margin-left: auto;
  }

  .mobileTournamentsHead {
    position: relative;
    display: grid;
    gap: 5px;
    padding: 4px 6px 14px;
  }

  .mobileTournamentsHead span {
    color: #f2bd61;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .mobileTournamentsHead h1 {
    margin: 0;
    font-size: 31px;
    line-height: 1;
  }

  .mobileTournamentsHead p {
    max-width: 285px;
    margin: 0;
    color: #aeb8c8;
    font-size: 13px;
    line-height: 1.3;
  }

  .mobileLobbyRefresh {
    position: absolute;
    right: 6px;
    bottom: 14px;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid rgba(229, 165, 43, 0.35);
    border-radius: 11px;
    color: #ffd37e;
    background: rgba(39, 27, 12, 0.72);
    font-size: 12px;
    font-weight: 900;
  }

  .mobileLobbyRefresh:hover:not(:disabled),
  .mobileLobbyRefresh:focus-visible {
    background: rgba(58, 39, 15, 0.84) !important;
    outline: 0;
  }

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

  .mobileLobbyRow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(82px, auto) auto;
    gap: 10px;
    align-items: center;
    min-height: 76px;
    padding: 12px;
    border: 1px solid rgba(65, 151, 255, 0.34);
    border-radius: 16px;
    background:
      linear-gradient(90deg, rgba(12, 22, 35, 0.92), rgba(5, 10, 18, 0.96)),
      rgba(5, 10, 18, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .mobileLobbyRow:hover {
    border-color: rgba(229, 165, 43, 0.46);
    background:
      linear-gradient(90deg, rgba(25, 21, 15, 0.94), rgba(6, 13, 23, 0.96)),
      rgba(5, 10, 18, 0.94);
  }

  .mobileLobbyGame {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
  }

  .mobileLobbyIcon {
    display: grid;
    width: 42px;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(229, 165, 43, 0.34);
    border-radius: 12px;
    color: #f2bd61;
    background: rgba(34, 24, 12, 0.72);
  }

  .mobileLobbyIcon .homeDiceIcon {
    width: 22px;
    height: 22px;
  }

  .mobileLobbyGame strong,
  .mobileLobbyStake strong {
    display: block;
    overflow: hidden;
    color: #f6f8fd;
    font-size: 15px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobileLobbyGame small,
  .mobileLobbyStake small {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #8d99ae;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobileLobbyStake {
    min-width: 0;
    justify-self: end;
    text-align: right;
  }

  .mobileLobbyRow .activeMatchStatus {
    grid-column: 1 / 2;
    justify-self: start;
  }

  .mobileLobbyJoinButton {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    min-height: 38px;
    align-self: center;
    border: 1px solid rgba(245, 189, 76, 0.58);
    border-radius: 11px;
    padding: 0 12px;
    color: #15100a;
    background: linear-gradient(145deg, #ffe08a, #f0a32d);
    box-shadow: 0 8px 20px rgba(245, 189, 76, 0.16);
    font-size: 12px;
    font-weight: 950;
  }

  .mobileWaitingLobby {
    display: grid;
    align-content: start;
    padding-right: 14px;
    padding-left: 14px;
    color: #f7f8fb;
    background:
      radial-gradient(circle at 50% 14%, rgba(61, 159, 255, 0.1), transparent 18rem),
      radial-gradient(circle at 8% 20%, rgba(237, 174, 59, 0.11), transparent 13rem),
      linear-gradient(180deg, #050910, #020408 76%);
  }

  .mobileWaitingCard {
    width: 100%;
    max-width: 400px;
    display: grid;
    gap: 16px;
    margin: 0 auto;
    border: 1px solid rgba(229, 165, 43, 0.34);
    border-radius: 22px;
    padding: 18px;
    background:
      radial-gradient(circle at 20% 0%, rgba(229, 165, 43, 0.14), transparent 36%),
      linear-gradient(180deg, rgba(10, 18, 30, 0.94), rgba(4, 7, 12, 0.96));
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .mobileWaitingHead {
    display: grid;
    gap: 7px;
  }

  .mobileWaitingHead span,
  .mobileWaitingInvite label {
    color: #f2bd61;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .mobileWaitingHead h1 {
    display: grid;
    gap: 7px;
    margin: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 950;
  }

  .mobileWaitingHead h1 b {
    width: max-content;
    max-width: 100%;
    border: 1px solid rgba(245, 189, 76, 0.42);
    border-radius: 12px;
    padding: 7px 10px;
    color: #ffd887;
    background: rgba(50, 32, 12, 0.72);
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobileWaitingInvite {
    display: grid;
    gap: 8px;
  }

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

  .mobileWaitingInvite input {
    min-width: 0;
    min-height: 46px;
    border: 1px solid rgba(117, 150, 196, 0.28);
    border-radius: 12px;
    padding: 0 12px;
    color: #eaf2ff;
    background: rgba(2, 7, 13, 0.72);
    font-size: 13px;
    font-weight: 750;
  }

  .mobileWaitingInvite button,
  .mobileWaitingCancel {
    min-height: 46px;
    border-radius: 12px;
    font-weight: 950;
  }

  .mobileWaitingInvite button {
    border: 1px solid rgba(245, 189, 76, 0.64);
    padding: 0 12px;
    color: #161008;
    background: linear-gradient(145deg, #ffe08a, #f0a32d);
  }

  .mobileWaitingCard p {
    margin: 0;
    color: #d9e3f5;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
  }

  .mobileWaitingCancel {
    border: 1px solid rgba(255, 101, 101, 0.42);
    color: #ffd8d8;
    background: rgba(72, 16, 16, 0.34);
  }

  .mobileLobbyEmpty {
    display: grid;
    min-height: 160px;
    place-items: center;
    padding: 24px;
    border: 1px solid rgba(229, 165, 43, 0.2);
    border-radius: 18px;
    color: #aeb8c8;
    background: rgba(8, 12, 18, 0.74);
    text-align: center;
    font-size: 15px;
    font-weight: 800;
  }
}

@media (max-width: 720px) {
  .authModal {
    width: calc(100vw - 24px);
    padding: 16px;
  }

  .authModalHead h2 {
    font-size: 30px;
  }

  .authModalHead p,
  .authForm label {
    font-size: 14px;
  }

  .authTabs button,
  .authOneClickButton,
  .authSwitchButton {
    font-size: 14px;
  }

  .authInputShell {
    min-height: 46px;
  }

  .authSubmitButton {
    min-height: 48px !important;
    font-size: 16px !important;
  }
}

.walletBackdrop[data-close-auth] {
  background:
    radial-gradient(circle at 50% 8%, rgba(42, 132, 255, 0.14), transparent 24rem),
    radial-gradient(circle at 16% 34%, rgba(25, 91, 165, 0.18), transparent 18rem),
    rgba(0, 7, 14, 0.86);
  backdrop-filter: blur(20px);
}

.authModal:not(.profileSettingsModal) {
  width: min(720px, calc(100vw - 40px));
  border: 1px solid rgba(82, 118, 168, 0.55);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 38px);
  color: #f6f8ff;
  background:
    radial-gradient(circle at 12% 18%, rgba(57, 111, 174, 0.18), transparent 25rem),
    radial-gradient(circle at 88% 86%, rgba(14, 74, 143, 0.12), transparent 24rem),
    linear-gradient(180deg, rgba(8, 19, 33, 0.97), rgba(2, 8, 16, 0.99));
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(24, 69, 121, 0.18);
}

.authModal:not(.profileSettingsModal) .authModalHead {
  align-items: start;
  margin-bottom: 26px;
}

.authModal:not(.profileSettingsModal) .authModalHead h2 {
  margin: 0;
  color: #ffffff;
  text-shadow: 0 3px 18px rgba(255, 255, 255, 0.16);
  font-size: clamp(42px, 5vw, 56px);
  line-height: 0.92;
  font-weight: 950;
}

.authModal:not(.profileSettingsModal) .authModalHead p {
  margin-top: 12px;
  color: #9dabca;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1;
  font-weight: 900;
}

.authModal:not(.profileSettingsModal) .authModalHead .iconBtn {
  width: 62px;
  min-width: 62px;
  height: 62px;
  min-height: 62px;
  border: 1px solid rgba(84, 119, 167, 0.52);
  border-radius: 18px;
  color: #b9c4d7;
  background:
    linear-gradient(180deg, rgba(18, 32, 52, 0.9), rgba(10, 20, 34, 0.9)) !important;
  box-shadow: inset 0 0 26px rgba(17, 64, 121, 0.18);
  font-size: 42px;
  font-weight: 300;
}

.authModal:not(.profileSettingsModal) .authPanel,
.authPanelCompact {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.authPanelCompact .authTabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid rgba(73, 108, 157, 0.58);
  border-radius: 14px;
  background: rgba(3, 11, 21, 0.58);
  box-shadow: inset 0 0 26px rgba(14, 44, 83, 0.2);
}

.authPanelCompact .authTabs button {
  min-height: 72px;
  gap: 18px;
  border: 0;
  border-radius: 14px;
  color: #8f9fba;
  background: transparent !important;
  font-size: 22px;
  font-weight: 900;
}

.authPanelCompact .authTabs button + button {
  border-left: 1px solid rgba(73, 108, 157, 0.28);
}

.authPanelCompact .authTabs button.active {
  border: 1px solid rgba(24, 141, 255, 0.9) !important;
  color: #ffffff;
  background: linear-gradient(135deg, #168cff, #0668ff) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -18px 34px rgba(0, 69, 210, 0.26),
    0 14px 32px rgba(0, 101, 255, 0.28);
}

.authPanelCompact .authTabs button:hover:not(:disabled),
.authPanelCompact .authTabs button:focus-visible {
  color: #d9e7ff;
  background: rgba(31, 101, 180, 0.12) !important;
  outline: 0;
}

.authPanelCompact .authTabs button.active:hover:not(:disabled),
.authPanelCompact .authTabs button.active:focus-visible {
  background: linear-gradient(135deg, #1b93ff, #086dff) !important;
}

.authPanelCompact .authForm {
  gap: 22px;
}

.authPanelCompact .authForm label {
  gap: 14px;
  color: #f6f8ff;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.authPanelCompact .authInputShell {
  min-height: 72px;
  gap: 20px;
  border: 1px solid rgba(82, 118, 168, 0.72);
  border-radius: 13px;
  padding: 0 26px;
  background: rgba(1, 8, 17, 0.72);
  box-shadow:
    inset 0 0 22px rgba(0, 25, 57, 0.32),
    0 0 0 1px rgba(7, 29, 57, 0.22);
}

.authPanelCompact .authInputShell:focus-within {
  border-color: rgba(39, 145, 255, 0.9);
  box-shadow:
    inset 0 0 22px rgba(0, 25, 57, 0.32),
    0 0 0 3px rgba(24, 141, 255, 0.14);
}

.authPanelCompact .authInputShell input {
  color: #f8fbff;
  font-size: 22px;
  font-weight: 800;
}

.authPanelCompact .authInputShell input::placeholder {
  color: rgba(151, 163, 188, 0.82);
}

.authPanelCompact .authTabIcon,
.authPanelCompact .authFieldIcon,
.authPanelCompact .authSubmitIcon {
  width: 30px;
  min-width: 30px;
  height: 30px;
}

.authPanelCompact .authFieldIcon,
.authPanelCompact .authEyeButton {
  color: #b6c2d8;
}

.authPanelCompact .authEyeButton {
  width: 44px;
  height: 44px;
}

.authPanelCompact .authForgotButton {
  justify-self: end;
  margin-top: -10px;
  color: #238dff;
  font-size: 21px;
  font-weight: 850;
}

.authPanelCompact .authSubmitButton {
  min-height: 78px !important;
  margin-top: 4px;
  border: 1px solid rgba(35, 229, 111, 0.72) !important;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(180deg, #08c956, #04a942) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -18px 34px rgba(0, 99, 37, 0.32),
    0 18px 38px rgba(0, 168, 70, 0.22);
  text-shadow: 0 2px 12px rgba(0, 45, 16, 0.35);
  font-size: 30px !important;
  font-weight: 950;
}

.authPanelCompact .authSubmitButton:hover:not(:disabled) {
  color: #ffffff !important;
  background: linear-gradient(180deg, #13d963, #04b348) !important;
}

.authPanelCompact .authSubmitIcon {
  display: none;
}

.authActionDivider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: #8f9fba;
  font-size: 19px;
  font-weight: 900;
  text-align: center;
  text-transform: lowercase;
}

.authActionDivider::before,
.authActionDivider::after {
  height: 1px;
  background: rgba(82, 118, 168, 0.38);
  content: "";
}

.authPanelCompact .authOneClickButton,
.authPanelCompact .authSwitchButton {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 26px;
  justify-content: initial;
  min-height: 72px;
  gap: 18px;
  border: 1px solid rgba(82, 118, 168, 0.6);
  border-radius: 13px;
  padding: 0 22px;
  color: #ffffff;
  background: rgba(2, 10, 20, 0.64);
  box-shadow: inset 0 0 22px rgba(0, 25, 57, 0.22);
  font-size: 22px;
  font-weight: 900;
  text-align: left;
}

.authPanelCompact .authOneClickButton::after,
.authPanelCompact .authSwitchButton::after {
  width: 14px;
  height: 14px;
  justify-self: end;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  color: #b8c4d8;
  content: "";
  transform: rotate(45deg);
}

.authPanelCompact .authOneClickButton:hover,
.authPanelCompact .authSwitchButton:hover {
  border-color: rgba(35, 141, 255, 0.72) !important;
  color: #ffffff;
  background: rgba(10, 31, 57, 0.72) !important;
}

.authPanelCompact .authOneClickButton .authTabIcon,
.authPanelCompact .authSwitchButton .authTabIcon {
  justify-self: center;
  color: #238dff;
}

.authPanelCompact .authSwitchButton {
  justify-self: stretch;
}

.authIconBolt::before {
  position: absolute;
  top: 1px;
  left: 8px;
  width: 13px;
  height: 27px;
  background: currentColor;
  clip-path: polygon(52% 0, 100% 0, 66% 40%, 100% 40%, 28% 100%, 42% 56%, 0 56%);
  content: "";
}

.authPanelCompact .authForm .statusLine {
  min-height: 18px;
  margin-top: -8px;
  color: #72adff;
  font-size: 15px;
  font-weight: 750;
}

@media (max-width: 720px) {
  .authModal:not(.profileSettingsModal) {
    width: calc(100vw - 24px);
    max-height: calc(100svh - 24px);
    overflow: auto;
    border-radius: 20px;
    padding: 22px;
  }

  .authModal:not(.profileSettingsModal) .authModalHead {
    margin-bottom: 20px;
  }

  .authModal:not(.profileSettingsModal) .authModalHead h2 {
    font-size: 38px;
  }

  .authModal:not(.profileSettingsModal) .authModalHead p {
    margin-top: 8px;
    font-size: 20px;
  }

  .authModal:not(.profileSettingsModal) .authModalHead .iconBtn {
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
    border-radius: 15px;
    font-size: 34px;
  }

  .authPanelCompact .authTabs {
    margin-bottom: 22px;
  }

  .authPanelCompact .authTabs button {
    min-height: 58px;
    gap: 10px;
    font-size: 16px;
  }

  .authPanelCompact .authForm {
    gap: 16px;
  }

  .authPanelCompact .authForm label {
    gap: 10px;
    font-size: 17px;
  }

  .authPanelCompact .authInputShell {
    min-height: 56px;
    gap: 13px;
    padding: 0 16px;
  }

  .authPanelCompact .authInputShell input {
    font-size: 17px;
  }

  .authPanelCompact .authTabIcon,
  .authPanelCompact .authFieldIcon,
  .authPanelCompact .authSubmitIcon {
    width: 24px;
    min-width: 24px;
    height: 24px;
  }

  .authPanelCompact .authForgotButton {
    margin-top: -6px;
    font-size: 16px;
  }

  .authPanelCompact .authSubmitButton {
    min-height: 60px !important;
    border-radius: 13px;
    font-size: 22px !important;
  }

  .authActionDivider {
    gap: 16px;
    font-size: 15px;
  }

  .authPanelCompact .authOneClickButton,
  .authPanelCompact .authSwitchButton {
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    min-height: 56px;
    gap: 12px;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 16px;
  }

  .authPanelCompact .authOneClickButton::after,
  .authPanelCompact .authSwitchButton::after {
    width: 10px;
    height: 10px;
    border-width: 2px;
  }
}

@media (max-width: 760px) {
  .mobileGameChromeTop:not(.is-guest) {
    grid-template-columns: minmax(0, 1fr) 78px 116px;
  }

  .mobileGameChromeTop:not(.is-guest) .mobileGameChromeBalance,
  .mobileGameChromeTop:not(.is-guest) .mobileGameChromeTopUp {
    height: 38px;
    align-self: center;
  }

  .mobileGameChromeTop:not(.is-guest) .mobileGameChromeBalance {
    width: 78px;
    min-width: 78px;
    max-width: 78px;
    padding: 0 8px;
  }

  .mobileGameChromeTop:not(.is-guest) .mobileGameChromeTopUp {
    width: 116px;
    padding: 0 10px;
    text-align: center;
  }

  .mobileGameChoiceList {
    max-width: 402px;
  }

  .mobileGameChoice {
    grid-template-columns: 78px minmax(0, 1fr) 84px;
    grid-template-rows: 78px 38px;
    align-items: center;
    column-gap: 10px;
    row-gap: 12px;
    min-height: 154px;
    padding: 12px;
  }

  .mobileGameChoiceHero {
    grid-column: 1;
    grid-row: 1;
    width: 78px;
    height: 78px;
  }

  .mobileGameChoiceCopy {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding-right: 0;
  }

  .mobileGameChoiceCopy h2 {
    margin-bottom: 8px;
    font-size: 24px;
    line-height: 1.02;
  }

  .mobileGameChoiceCopy p {
    font-size: 14px;
    line-height: 1.24;
  }

  .mobileGameChoicePlay {
    position: relative;
    top: auto;
    right: auto;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: 84px;
    height: 54px;
  }

  .mobileGameChoiceMeta {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 58px 74px 58px 74px;
    justify-content: space-between;
    gap: 6px;
    margin-top: 0;
  }

  .mobileGameChoiceMeta span,
  .mobileGameChoiceMeta b {
    height: 38px;
    min-width: 0;
  }

  .mobileGameChoiceMeta span {
    display: grid;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobileGameChoiceMeta b {
    padding: 0 7px;
    font-size: 13px;
  }

  .mobileGameChoice-rocket .mobileGameChoiceMeta {
    grid-template-columns: 58px repeat(4, minmax(48px, 1fr));
  }
}

@media (max-width: 390px) {
  .mobileGameChromeTop:not(.is-guest) {
    grid-template-columns: minmax(0, 1fr) 72px 98px;
  }

  .mobileGameChromeTop:not(.is-guest) .mobileGameChromeBalance {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
  }

  .mobileGameChromeTop:not(.is-guest) .mobileGameChromeTopUp {
    width: 98px;
    font-size: 11px;
  }

  .mobileGameChoice {
    grid-template-columns: 70px minmax(0, 1fr) 76px;
    column-gap: 8px;
  }

  .mobileGameChoiceHero {
    width: 70px;
    height: 70px;
  }

  .mobileGameChoiceCopy h2 {
    font-size: 21px;
  }

  .mobileGameChoicePlay {
    width: 76px;
    height: 50px;
    font-size: 13px;
  }

  .mobileGameChoiceMeta {
    grid-template-columns: 52px 68px 52px 68px;
  }

  .mobileGameChoice-rocket .mobileGameChoiceMeta {
    grid-template-columns: 48px repeat(4, minmax(42px, 1fr));
  }
}

@media (min-width: 721px) and (max-height: 760px) {
  .authModal:not(.profileSettingsModal) {
    padding: 20px 32px;
  }

  .authModal:not(.profileSettingsModal) .authModalHead {
    margin-bottom: 14px;
  }

  .authModal:not(.profileSettingsModal) .authModalHead h2 {
    font-size: 34px;
  }

  .authModal:not(.profileSettingsModal) .authModalHead p {
    margin-top: 6px;
    font-size: 17px;
  }

  .authModal:not(.profileSettingsModal) .authModalHead .iconBtn {
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
    border-radius: 15px;
    font-size: 34px;
  }

  .authPanelCompact .authTabs {
    margin-bottom: 12px;
  }

  .authPanelCompact .authTabs button {
    min-height: 48px;
    font-size: 16px;
  }

  .authPanelCompact .authForm {
    gap: 7px;
  }

  .authPanelCompact .authForm label {
    gap: 5px;
    font-size: 15px;
  }

  .authPanelCompact .authInputShell {
    min-height: 42px;
    padding: 0 18px;
  }

  .authPanelCompact .authInputShell input {
    font-size: 16px;
  }

  .authPanelCompact .authForgotButton {
    margin-top: -2px;
    font-size: 15px;
  }

  .authPanelCompact .authSubmitButton {
    min-height: 48px !important;
    font-size: 20px !important;
  }

  .authActionDivider {
    gap: 16px;
    font-size: 13px;
  }

  .authPanelCompact .authOneClickButton,
  .authPanelCompact .authSwitchButton {
    grid-template-columns: 38px minmax(0, 1fr) 20px;
    min-height: 46px;
    padding: 0 18px;
    font-size: 16px;
  }

  .authPanelCompact .authTabIcon,
  .authPanelCompact .authFieldIcon,
  .authPanelCompact .authSubmitIcon {
    width: 24px;
    min-width: 24px;
    height: 24px;
  }

  .authPanelCompact .authEyeButton {
    width: 32px;
    height: 32px;
  }
}

@media (min-width: 721px) {
  .authModal:not(.profileSettingsModal) {
    width: min(430px, calc(100vw - 40px));
    border-radius: 18px;
    padding: 20px;
  }

  .authModal:not(.profileSettingsModal) .authModalHead {
    margin-bottom: 16px;
  }

  .authModal:not(.profileSettingsModal) .authModalHead h2 {
    font-size: 28px;
    line-height: 1;
  }

  .authModal:not(.profileSettingsModal) .authModalHead p {
    margin-top: 6px;
    font-size: 17px;
  }

  .authModal:not(.profileSettingsModal) .authModalHead .iconBtn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 12px;
    font-size: 28px;
  }

  .authPanelCompact .authTabs {
    margin-bottom: 14px;
    border-radius: 12px;
  }

  .authPanelCompact .authTabs button {
    min-height: 44px;
    gap: 10px;
    border-radius: 12px;
    font-size: 14px;
  }

  .authPanelCompact .authForm {
    gap: 10px;
  }

  .authPanelCompact .authForm label {
    gap: 6px;
    font-size: 14px;
  }

  .authPanelCompact .authInputShell {
    min-height: 44px;
    gap: 10px;
    border-radius: 10px;
    padding: 0 14px;
  }

  .authPanelCompact .authInputShell input {
    font-size: 14px;
    font-weight: 750;
  }

  .authPanelCompact .authTabIcon,
  .authPanelCompact .authFieldIcon,
  .authPanelCompact .authSubmitIcon {
    width: 20px;
    min-width: 20px;
    height: 20px;
  }

  .authPanelCompact .authEyeButton {
    width: 32px;
    height: 32px;
  }

  .authPanelCompact .authForgotButton {
    margin-top: -4px;
    font-size: 14px;
  }

  .authPanelCompact .authSubmitButton {
    min-height: 48px !important;
    margin-top: 2px;
    border-radius: 10px;
    font-size: 17px !important;
  }

  .authActionDivider {
    gap: 14px;
    font-size: 13px;
  }

  .authPanelCompact .authOneClickButton,
  .authPanelCompact .authSwitchButton {
    grid-template-columns: 30px minmax(0, 1fr) 16px;
    min-height: 44px;
    gap: 10px;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
  }

  .authPanelCompact .authOneClickButton::after,
  .authPanelCompact .authSwitchButton::after {
    width: 9px;
    height: 9px;
    border-width: 2px;
  }

  .authPanelCompact .authForm .statusLine {
    min-height: 14px;
    margin-top: -4px;
    font-size: 12px;
  }

  .authIconBolt::before {
    top: 0;
    left: 6px;
    width: 11px;
    height: 22px;
  }
}

@media (max-width: 760px) {
  .mobileGameChromeTop.is-guest {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .mobileGameChromeTop.is-guest .mobileGameChromeAuth {
    justify-self: end;
  }

  .mobileGameChromeTop.is-guest .mobileGameChromeLogin,
  .mobileGameChromeTop.is-guest .mobileGameChromeRegister {
    height: 38px;
    border: 0 !important;
    border-radius: 9px;
    padding: 0 12px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 950;
  }

  .mobileGameChromeTop.is-guest .mobileGameChromeLogin {
    background: rgba(48, 50, 56, 0.98) !important;
  }

  .mobileGameChromeTop.is-guest .mobileGameChromeRegister {
    min-width: 116px;
    background: #06be58 !important;
    box-shadow: 0 8px 20px rgba(0, 184, 85, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
    text-shadow: 0 1px 8px rgba(0, 74, 31, 0.28);
  }
}

@media (max-width: 720px) {
  .authModal:not(.profileSettingsModal) {
    width: calc(100vw - 24px);
    max-height: calc(100svh - 20px);
    border-radius: 18px;
    padding: 16px;
  }

  .authModal:not(.profileSettingsModal) .authModalHead {
    margin-bottom: 14px;
  }

  .authModal:not(.profileSettingsModal) .authModalHead h2 {
    font-size: 31px;
    line-height: 1;
  }

  .authModal:not(.profileSettingsModal) .authModalHead p {
    margin-top: 6px;
    font-size: 17px;
  }

  .authModal:not(.profileSettingsModal) .authModalHead .iconBtn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: 13px;
    font-size: 30px;
  }

  .authPanelCompact .authTabs {
    margin-bottom: 16px;
    border-radius: 12px;
  }

  .authPanelCompact .authTabs button {
    min-height: 48px;
    gap: 9px;
    border-radius: 12px;
    font-size: 15px;
  }

  .authPanelCompact .authForm {
    gap: 11px;
  }

  .authPanelCompact .authForm label {
    gap: 7px;
    font-size: 15px;
  }

  .authPanelCompact .authInputShell {
    min-height: 48px;
    gap: 11px;
    border-radius: 11px;
    padding: 0 14px;
  }

  .authPanelCompact .authInputShell input {
    font-size: 15px;
    font-weight: 760;
  }

  .authPanelCompact .authTabIcon,
  .authPanelCompact .authFieldIcon,
  .authPanelCompact .authSubmitIcon {
    width: 22px;
    min-width: 22px;
    height: 22px;
  }

  .authPanelCompact .authEyeButton {
    width: 34px;
    height: 34px;
  }

  .authPanelCompact .authForgotButton {
    margin-top: -4px;
    font-size: 15px;
  }

  .authPanelCompact .authSubmitButton {
    min-height: 52px !important;
    margin-top: 1px;
    border-radius: 12px;
    font-size: 19px !important;
  }

  .authActionDivider {
    gap: 14px;
    font-size: 13px;
  }

  .authPanelCompact .authOneClickButton,
  .authPanelCompact .authSwitchButton {
    grid-template-columns: 30px minmax(0, 1fr) 16px;
    min-height: 46px;
    gap: 10px;
    border-radius: 11px;
    padding: 0 14px;
    font-size: 14px;
  }

  .authPanelCompact .authForm .statusLine {
    min-height: 14px;
    margin-top: -4px;
    font-size: 12px;
  }
}
