@font-face {
  font-family: Inter;
  src: url("/assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #070a14;
  --header: rgba(8, 12, 27, 0.9);
  --card: #151c2e;
  --modal: #13192c;
  --border: #232c42;
  --muted: #97a5bd;
  --blue: #2f7eff;
  --cyan: #21ddfa;
  --red: #ff3548;
  --orange: #ff7a05;
  --yellow: #ffca04;
  --green: #00be8a;
  --purple: #a844fa;
  color-scheme: dark;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  color: #f8f9ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background-color: #070a14;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(33, 221, 250, 0.12) 0%, transparent 70%),
    radial-gradient(circle 700px at 10% 25%, rgba(47, 126, 255, 0.09) 0%, transparent 65%),
    radial-gradient(circle 700px at 90% 75%, rgba(147, 51, 234, 0.08) 0%, transparent 65%),
    linear-gradient(180deg, #070a14 0%, #090e1c 40%, #060912 100%);
  background-attachment: fixed;
  font-weight: 500;
  min-height: 100vh;
}
button,
input,
select {
  font: inherit;
}
button {
  border: 1px solid var(--border);
  background: #1f273b;
  color: #fff;
  cursor: pointer;
  border-radius: 12px;
  font-weight: 800;
  padding: 10px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
button:hover {
  background: #2a344d;
  border-color: #384666;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  cursor: default;
  opacity: 0.42;
  transform: none;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #5ca4ff;
  outline-offset: 3px;
}
input,
select {
  border: 1px solid #313950;
  background: #0b1026;
  color: #fff;
  border-radius: 16px;
  padding: 11px 14px;
  outline: none;
}
input::placeholder {
  color: #8e9bb4;
}
select {
  font-size: 12px;
  font-weight: 800;
}
small {
  font-size: 10px;
  letter-spacing: 0.8px;
  font-weight: 800;
  color: #96a6be;
}
b {
  font-weight: 800;
}
em {
  font-style: normal;
  color: var(--cyan);
}
.icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.gem {
  width: 21px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
  filter: drop-shadow(0 0 6px rgba(33, 221, 250, 0.5));
}
.bigGem {
  width: 43px;
  height: 38px;
  filter: drop-shadow(0 0 12px rgba(33, 221, 250, 0.6));
}
.primary {
  background: linear-gradient(135deg, #2f7eff 0%, #1557d8 100%);
  border-color: #4a90ff;
  box-shadow: 0 0 18px rgba(47, 126, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.primary:hover {
  background: linear-gradient(135deg, #3d8aff 0%, #1d60e6 100%);
  border-color: #619eff;
  box-shadow: 0 0 26px rgba(47, 126, 255, 0.65), 0 2px 10px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.orange {
  background: linear-gradient(135deg, #ff9b00 0%, #e67300 100%);
  border: none;
  border-radius: 25px;
  box-shadow: 0 0 16px rgba(255, 155, 0, 0.4);
}
.orange:hover {
  background: linear-gradient(135deg, #ffab24 0%, #f58200 100%);
  box-shadow: 0 0 24px rgba(255, 155, 0, 0.65);
}
.iconButton {
  background: transparent;
  border: 0;
  padding: 8px;
  font-size: 24px;
  color: #9ca8bc;
  line-height: 1;
  box-shadow: none;
}
.iconButton:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.topbar {
  height: 81px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(8, 12, 27, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.logo {
  width: 160px;
  height: 49px;
  flex: none;
  border: 0;
  border-radius: 0;
  background-image: url("/assets/bloxyx.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: transparent;
  padding: 0;
  box-shadow: none;
  filter: drop-shadow(0 0 8px rgba(33, 221, 250, 0.2));
  transition: filter 0.2s ease;
}
.logo:hover {
  background-color: transparent;
  filter: drop-shadow(0 0 16px rgba(33, 221, 250, 0.45));
}
.funds {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  border: 1px solid rgba(50, 118, 246, 0.35);
  border-radius: 18px;
  overflow: hidden;
  height: 48px;
  background: linear-gradient(180deg, rgba(20, 27, 46, 0.95) 0%, rgba(13, 18, 32, 0.95) 100%);
  box-shadow: 0 0 18px rgba(50, 118, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.funds button {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 16px;
  font-size: 16px;
  box-shadow: none;
}
.funds img {
  width: 19px;
  height: 16px;
  vertical-align: middle;
  margin-right: 7px;
}
.chevron {
  font-size: 14px;
  color: #8191aa;
  margin-left: 12px;
}
.funds .walletButton {
  background: linear-gradient(135deg, #2b7fff 0%, #1557d8 100%);
  width: 53px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 14px rgba(43, 127, 255, 0.4);
  transition: all 0.2s ease;
}
.funds .walletButton:hover {
  background: linear-gradient(135deg, #3d8aff 0%, #1d60e6 100%);
  box-shadow: 0 0 22px rgba(43, 127, 255, 0.65);
}
.account {
  display: flex;
  gap: 12px;
  align-items: center;
}
.shareNavButton {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(20, 27, 46, 0.9);
  border: 1px solid rgba(33, 221, 250, 0.3);
  color: #21ddfa;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 0 12px rgba(33, 221, 250, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.18s ease;
}
.shareNavButton:hover {
  background: rgba(33, 221, 250, 0.15);
  border-color: rgba(33, 221, 250, 0.6);
  color: #fff;
  box-shadow: 0 0 20px rgba(33, 221, 250, 0.45);
  transform: translateY(-1px);
}
.shareNavButton svg {
  width: 20px;
  height: 20px;
}
.level {
  height: 51px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: #151b2b;
  border-radius: 18px;
  padding: 8px 16px;
  min-width: 223px;
}
.level b {
  font-size: 11px;
}
.levelGem {
  font-size: 29px;
  color: #13caff;
  text-shadow: 0 0 11px #06baf9;
}
.progress {
  display: block;
  height: 6px;
  border-radius: 8px;
  background: #293044;
  margin-top: 6px;
  width: 150px;
}
.progress i {
  display: block;
  background: linear-gradient(90deg, #3276f6, #14d1e6);
  border-radius: 8px;
  width: 44%;
  height: 100%;
}
.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 49px;
  border-radius: 18px;
  background: #151b2b;
  padding: 5px 12px;
}
.userAvatar {
  width: 34px;
  height: 36px;
  display: block;
  border-radius: 50%;
  background: #192338;
}
.sidebar {
  width: 78px;
  position: fixed;
  left: 0;
  top: 81px;
  bottom: 0;
  background: #0d1420;
  border-right: 8px solid #080c14;
  padding: 14px 8px;
  z-index: 18;
  overflow: auto;
  scrollbar-width: none;
}
.navButton {
  width: 50px;
  height: 47px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #8292b4;
  display: grid;
  place-items: center;
  margin: 3px 0;
  position: relative;
}
.navButton:hover {
  background: #182237;
}
.navButton.active {
  color: #80aaff;
  background: #1b335f;
  border-color: #284883;
  box-shadow: inset 4px 0 #3276f6;
}
.navNotifyDot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffca04;
  box-shadow: 0 0 8px rgba(255, 202, 4, 0.8);
  animation: pulseDot 1.4s ease-in-out infinite;
}
.navDivider {
  height: 1px;
  background: #234577;
  margin: 17px 7px 26px;
}
.shell {
  padding-top: 81px;
  margin-left: 78px;
}
.giveaway {
  height: 65px;
  background: linear-gradient(100deg, #281d0b, #3b250b 40%, #151b29 95%);
  border-bottom: 1px solid #766021;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 max(24px, 9%);
  position: relative;
}
.giveaway small {
  color: #ffd70c;
  font-size: 10px;
  letter-spacing: 1.3px;
  display: block;
  margin-bottom: 4px;
}
.giveaway b {
  display: block;
  font-size: 14px;
}
.giveawayPet {
  width: 45px;
  height: 45px;
  border: 1px solid #99760e;
  border-radius: 15px;
  background: #192338 url("/assets/bloxyx-icon.png") center/contain no-repeat;
}
.giveawayRight {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.giveawayRight > span {
  font-size: 12px;
  white-space: nowrap;
  color: #c3d5ed;
  font-weight: 800;
}
.giveawayRight small {
  color: #9aaccc;
  font-size: 8px;
  text-align: right;
}
.giveawayRight button {
  font-size: 12px;
}
.giveawayRight .iconButton {
  font-size: 21px;
}
main {
  padding: 16px 30px 24px 20px;
}
.summary {
  border: 1px solid #252e3f;
  border-radius: 17px;
  background: linear-gradient(#101a2a, #0b121d);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 57px;
  padding: 0 0 0 16px;
}
.stat {
  padding: 6px 0;
  border-right: 1px solid #212a3a;
}
.stat:last-child {
  border: 0;
  padding-left: 20px;
}
.stat:nth-child(2) {
  padding-left: 20px;
}
.stat strong {
  font-size: 24px;
  letter-spacing: -1px;
  display: block;
  font-weight: 900;
}
.stat span {
  font-size: 11px;
  color: #9db5d7;
  display: block;
  margin-top: 2px;
}
.toolbar {
  border-top: 1px solid #202838;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
}
.toolbar button {
  font-size: 13px;
  height: 41px;
  min-width: 92px;
}
.toolbar .right {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.toolbar .right button,
.toolbar select {
  font-size: 11px;
  border-radius: 13px;
  background: #202a3c;
  border: 1px solid #344052;
  height: 40px;
}
.toolbar .toggleOn {
  background: #214789 !important;
  border-color: #3b7dff !important;
}
.room {
  min-height: 86px;
  background: #181e2c;
  border: 1px solid #282e3e;
  border-radius: 13px;
  margin-bottom: 6px;
  display: grid;
  grid-template-columns: minmax(140px, 24%) minmax(160px, 1fr) minmax(110px, 15%) minmax(80px, 11%) auto;
  align-items: center;
  padding: 10px 18px;
  gap: 12px;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.room:hover {
  border-color: #38465e;
}
.players {
  display: flex;
  align-items: center;
  gap: 13px;
  white-space: nowrap;
}
.avatar {
  display: inline-block;
  width: 57px;
  height: 57px;
  border: 3px solid var(--ring, #344055);
  border-radius: 50%;
  position: relative;
  flex: none;
  background-color: #0c1423;
}
.avatar.faded {
  opacity: 0.2;
}
.avatar.crispAvatar {
  background-image: none;
  display: inline-grid;
  place-items: center;
  background-color: #192338;
}
.crispAvatar > img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.crispAvatar > svg {
  width: 80%;
  height: 80%;
  fill: none;
  stroke: #8aa6d4;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.crispAvatar .botEye {
  fill: #5ab8ef;
  stroke: none;
}
.profile .crispAvatar {
  width: 32px;
  height: 32px;
  border-width: 1px;
}
.profileHero {
  text-align: center;
}
.profileHero .avatar {
  width: 96px;
  height: 96px;
}
.duelPortrait .crispAvatar {
  width: 100%;
  height: 100%;
  transform: none;
}
.duelHeader .logo {
  transform: none;
  width: 160px;
}
.soundToggle {
  width: 40px;
  height: 40px;
  padding: 10px;
  background: #141b2b;
  border: 1px solid #303c53;
  display: grid;
  place-items: center;
}
.soundToggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #93accb;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile:not(.loggedIn) {
  background: #3276f6;
  border-color: #407ef0;
  min-width: 94px;
  justify-content: center;
}
.levelGem {
  background-image: none !important;
}
.progress i {
  transition: width 0.3s;
}
.waitingEmpty {
  padding: 80px 20px;
  font-size: 15px;
}
.waitingEmpty p {
  font-size: 13px;
  color: #899bb4;
  margin-top: 14px;
}
body:has(#giveaway[hidden]) .shell {
  padding-top: 81px;
}
body:has(#giveaway[hidden]) #main {
  height: calc(100dvh - 81px);
}
.loginPage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 135px);
  padding: 35px 20px;
}
.loginCard {
  width: min(480px, 100%);
  background: #181e30;
  border: 1px solid #2c354b;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 18px 50px #0002;
}
.loginIcon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #213a65;
  color: #69aaff;
  border: 1px solid #305591;
  border-radius: 14px;
  margin-bottom: 24px;
}
.loginIcon svg {
  width: 25px;
  height: 25px;
}
.loginCard h1 {
  font-size: 24px;
  margin: 0 0 10px;
  letter-spacing: -0.7px;
}
.loginCard > p {
  font-size: 13px;
  color: #9caec6;
  line-height: 1.7;
  margin-bottom: 26px;
}
.loginCard form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.loginCard label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #a1b1c8;
}
.loginCard input {
  height: 48px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #35415b;
  background: #101627;
  padding: 12px 14px;
  color: #f1f5fc;
  font: inherit;
}
.loginCard form button {
  height: 46px;
  margin-top: 4px;
}
.loginNote {
  font-size: 11px;
  color: #7f92b0;
  line-height: 1.8;
  display: block;
  margin-top: 20px;
}
.loginIdentity {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
}
.loginIdentity span {
  font-size: 11px;
  color: #879cba;
}
.loginSteps {
  font-size: 12px;
  color: #b4c3d8;
  line-height: 1.7;
  padding-left: 20px;
  margin: 20px 0;
}
.loginSteps li {
  padding: 4px 0 4px 4px;
}
.loginCode {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0c1423;
  border: 1px solid #325179;
  border-radius: 10px;
  padding: 12px;
}
.loginCode code {
  font-size: 12px;
  color: #79c6ff;
  overflow-wrap: anywhere;
  user-select: all;
}
.loginCode button {
  font-size: 11px;
  padding: 8px 10px;
  flex: none;
}
.loginVerify {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 18px;
}
.loginProfileLink {
  color: #7baefe;
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  text-decoration: none;
}
.loginRestart {
  display: block;
  width: 100%;
  font-size: 11px;
  margin-top: 12px;
}
.loginCard .loginStatus {
  margin: 16px 0 0;
  line-height: 1.7;
  font-size: 12px;
}
.loginHelp {
  margin-top: 20px;
  font-size: 12px;
  background: transparent;
  border: none;
  color: #8da6cb;
}
@media (max-width: 740px) {
  body:has(#giveaway[hidden]) .shell {
    padding-top: 70px;
  }
  body:has(#giveaway[hidden]) #main {
    height: calc(100dvh - 70px);
  }
  .soundToggle {
    width: 34px;
    height: 34px;
    padding: 7px;
  }
  .profile:not(.loggedIn) {
    min-width: 70px;
    padding: 8px 13px;
  }
  .account {
    gap: 6px;
  }
  .loginCard {
    padding: 24px;
  }
  .loginCode code {
    font-size: 10px;
  }
  .duelPortrait .crispAvatar {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .duelDie.rolling,
  .duelDie.landed,
  .duelDie.landed:after,
  .duelWinner.revealWinner,
  .duelConfetti i {
    animation: none;
  }
  .duelPlayer,
  .duelPortrait {
    transition: none;
  }
}
.avatar.waiting {
  display: grid;
  place-items: center;
  background-image: none;
  color: #2a8ca3;
  letter-spacing: 0;
  font-size: 18px;
  border-width: 2px;
}
.vs {
  color: #888e9a;
  font-size: 14px;
  font-weight: 800;
}
.dots {
  position: absolute;
  right: -2px;
  top: -3px;
  display: flex;
  gap: 3px;
}
.dots i {
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 2px #181e2c;
}
.petStack {
  display: flex;
  align-items: center;
  gap: 13px;
  overflow: hidden;
}
.petThumbs {
  display: flex;
  align-items: center;
  padding-left: 2px;
}
.petThumb {
  position: relative;
  width: 52px;
  height: 55px;
  border: 1px solid #496081;
  border-radius: 5px;
  background: #101c2b;
  flex: none;
  margin-left: -1px;
  overflow: hidden;
}
.petThumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.petThumb.rainbow {
  background: linear-gradient(120deg, #a925e6, #08daac, #fee237);
}
.petThumb.golden {
  background: #705008;
}
.petThumb span {
  position: absolute;
  inset: 14px 4px auto;
  border-radius: 50px;
  padding: 6px 0;
  background: #061624de;
  color: #fff;
  font-size: 10px;
  text-align: center;
  font-weight: 800;
}
.roomValue {
  text-align: center;
}
.roomValue strong {
  font-size: 20px;
  letter-spacing: -0.7px;
  white-space: nowrap;
}
.roomValue small {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  letter-spacing: 0;
}
.typeBadge {
  display: block;
  margin: 5px auto 0;
  border: 1px solid #284d8d;
  background: #1b2940;
  color: #70a2ff;
  border-radius: 10px;
  max-width: 78px;
  font-size: 8px;
  font-weight: 900;
  padding: 3px;
}
.rollResult {
  text-align: center;
}
.score {
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 5px;
}
.score em {
  color: #669bfd;
}
.miniDice {
  display: flex;
  justify-content: center;
  gap: 3px;
}
.die {
  background: var(--die);
  height: 24px;
  width: 24px;
  border: 1px solid #ffffff1d;
  border-radius: 5px;
  display: grid;
  place-items: center;
}
.die:after {
  content: "";
  background: #fff;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}
.roomActions {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}
.roomActions button {
  min-width: 68px;
  width: auto;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.roomActions button.copyRoomLink {
  min-width: 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  background: #202a3c;
  border: 1px solid #344052;
  color: #9cb3d7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.roomActions button.copyRoomLink:hover {
  background: #2b3952;
  border-color: #4a6288;
  color: #fff;
}
.roomActions button.copyRoomLink svg {
  width: 16px;
  height: 16px;
}
.chatToggle {
  position: fixed;
  right: -1px;
  bottom: 80px;
  background: #121c30;
  border: 1px solid #244c83;
  border-radius: 18px 0 0 18px;
  width: 42px;
  height: 48px;
  font-size: 26px;
  color: #8ab2fa;
  z-index: 22;
  padding: 0;
}
.chatToggle span {
  position: absolute;
  left: -8px;
  top: -9px;
  border-radius: 12px;
  padding: 1px 4px;
  background: var(--blue);
  font-size: 9px;
  color: white;
}
.chat {
  position: fixed;
  right: 0;
  top: 81px;
  bottom: 0;
  width: 335px;
  background: #111725;
  border-left: 1px solid #273247;
  z-index: 19;
  display: flex;
  flex-direction: column;
}
.chat[hidden] {
  display: none;
}
.chatOpen .shell {
  margin-right: 335px;
}
.chatHead {
  height: 51px;
  border-bottom: 1px solid #273144;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}
.chatHead b {
  font-size: 13px;
}
.chatFeed {
  flex: 1;
  overflow: auto;
  padding: 10px 8px;
}
.announcement {
  border: 1px solid #b99321;
  border-radius: 17px;
  padding: 12px 10px;
  display: flex;
  gap: 9px;
  background: linear-gradient(100deg, #203c73, #0b1424);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 800;
}
.announcement small {
  color: #ffd02d;
  font-size: 9px;
}
.announceIcon {
  width: 29px;
  height: 29px;
  background: #368bfd;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.chatGiveaway {
  border: 1px solid #29457b;
  background: #171d2c;
  padding: 12px;
  border-radius: 17px;
  margin-top: 5px;
  font-size: 10px;
}
.chatGiveaway .petThumb {
  display: inline-block;
  vertical-align: middle;
  width: 43px;
  height: 44px;
  margin: 10px 8px 5px 0;
}
.today {
  text-align: center;
  color: #63758e;
  font-size: 9px;
  margin: 17px 0;
  font-weight: 800;
  letter-spacing: 1px;
}
.chatMessage {
  background: #171d2c;
  border-radius: 25px;
  padding: 14px 12px;
  display: flex;
  gap: 10px;
  margin: 7px 0;
}
.chatAvatar {
  height: 37px;
  width: 37px;
  border: 1px solid #30394b;
  border-radius: 50%;
  background: #252d3d;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 19px;
}
.messageBody {
  min-width: 0;
  width: 100%;
}
.messageBody b {
  font-size: 13px;
}
.messageBody time {
  font-size: 8px;
  float: right;
  color: #6d7d99;
}
.messageBody p {
  font-size: 13px;
  color: #d3d9e6;
  margin: 7px 0 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.reply {
  padding: 8px;
  border-radius: 14px;
  background: #242a3d;
  margin-top: 8px;
  font-size: 10px;
  color: #a9b3c8;
}
.reply b {
  font-size: 10px;
  color: #77a8ff;
  display: block;
  margin-bottom: 6px;
}
.chatInput {
  padding: 10px 12px;
  background: #0e1522;
  border-top: 1px solid #273144;
}
.chatInput form {
  display: flex;
  border: 1px solid #29344a;
  background: #0b1320;
  border-radius: 20px;
  padding: 4px;
  align-items: center;
}
.chatInput input {
  width: 100%;
  background: transparent;
  border: 0;
  font-size: 12px;
  padding: 10px;
}
.chatInput button {
  background: transparent;
  border: 0;
  color: #6c829f;
  padding: 8px;
}
.chatOnline {
  font-size: 9px;
  margin-top: 8px;
  color: #738aaa;
}
.chatOnline i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #03c88d;
  border-radius: 50%;
  margin-right: 7px;
  box-shadow: 0 0 10px #03c88d;
}
.overlay {
  position: fixed;
  inset: 81px 0 0;
  z-index: 40;
  background: #090e27bc;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.overlay[hidden] {
  display: none;
}
.modal {
  background: #1b2038;
  border: 1px solid #30364d;
  border-radius: 17px;
  padding: 16px 20px;
  box-shadow: 0 24px 80px #0003;
  position: relative;
  max-height: calc(100vh - 130px);
  overflow: auto;
  min-width: 400px;
  width: 1080px;
}
.modal.narrow {
  width: 448px;
  padding: 24px;
  border-radius: 22px;
}
.modal h2 {
  font-size: 21px;
  font-weight: 900;
  margin: 2px 0 6px;
  letter-spacing: -0.6px;
}
.modal p {
  font-size: 14px;
  color: #9facbf;
  margin: 8px 0 24px;
  line-height: 1.5;
}
.modalClose {
  position: absolute;
  right: 11px;
  top: 11px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #0d1228;
  border: 1px solid #293047;
  color: #9facc2;
  font-size: 24px;
  padding: 0;
  z-index: 2;
}
.modalTop {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-right: 43px;
  margin-bottom: 12px;
}
.search {
  width: 390px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0b1026;
  border: 1px solid #313a50;
  border-radius: 18px;
  padding: 0 12px;
  height: 40px;
}
.search input {
  background: transparent;
  border: 0;
  width: 100%;
  padding: 0;
  font-size: 13px;
}
.search .icon {
  width: 18px;
  color: #9babbe;
}
.modalTop select:first-of-type {
  margin-left: auto;
}
.inventoryPanel {
  border: 1px solid #30364c;
  border-radius: 22px;
  background: #171d34;
  overflow: hidden;
  min-height: 493px;
}
.inventorySummary {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 14px 16px;
  font-size: 14px;
}
.inventorySummary small {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  letter-spacing: 0.3px;
}
.inventorySummary .gem {
  width: 14px;
  height: 13px;
  margin-right: 5px;
}
.inventorySummary .gemsAvailable {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.gemsAvailable input {
  width: 143px;
  height: 37px;
  background: #1a2139;
  border-radius: 13px;
  font-size: 12px;
}
.gemsAvailable button {
  border: 0;
  background: transparent;
  color: #a7b5ce;
  padding: 7px;
  font-size: 12px;
}
.inventoryBody {
  padding: 12px;
  max-height: 450px;
  overflow: auto;
}
.emptyInventory {
  height: 289px;
  border: 1px dashed #2c3651;
  background: #1a2139;
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.emptyIcon {
  width: 57px;
  height: 57px;
  border-radius: 21px;
  border: 1px solid #026489;
  background: #10334b;
  display: grid;
  place-items: center;
  color: #06d9ff;
  margin-bottom: 15px;
}
.emptyIcon .icon {
  width: 28px;
  height: 28px;
}
.emptyInventory h3 {
  font-size: 18px;
  letter-spacing: -0.5px;
  margin: 4px 0 9px;
  font-weight: 900;
}
.emptyInventory p {
  margin: 3px 0 14px;
}
.modalBottom {
  display: flex;
  align-items: flex-end;
  gap: 17px;
  margin-top: 13px;
}
.modalBottom small {
  display: block;
  margin-bottom: 11px;
  font-size: 10px;
  letter-spacing: 0.3px;
}
.segmented {
  display: flex;
  background: #10152b;
  border: 1px solid #293149;
  border-radius: 15px;
  padding: 4px;
  gap: 0;
}
.segmented button {
  border: 0;
  background: transparent;
  color: #9caabd;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 12px;
}
.segmented button.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 13px #2364df33;
}
.colorChoices {
  display: flex;
  gap: 8px;
}
.colorChoice {
  width: 37px;
  height: 37px;
  padding: 0;
  border-radius: 13px;
  background: var(--die);
  border-color: #ffffff1c;
  position: relative;
  display: grid;
  place-items: center;
}
.colorChoice:after {
  content: "";
  height: 10px;
  width: 10px;
  background: #fff;
  border-radius: 50%;
}
.colorChoice.selected {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 15px #ffffff2c;
}
.modalBottom .createActions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  align-items: center;
}
.createActions button {
  font-size: 13px;
  border-radius: 30px;
  min-width: 109px;
}
.createActions .primary {
  min-width: 145px;
}
.withdrawChoice {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 16px;
  background: #1e253e;
  border: 1px solid #31394f;
  border-radius: 18px;
  margin-top: 12px;
  padding: 18px 16px;
}
.withdrawChoice .emptyIcon {
  width: 44px;
  height: 44px;
  border-radius: 17px;
  margin: 0;
  flex: none;
}
.withdrawChoice b {
  display: block;
  font-size: 15px;
}
.withdrawChoice span {
  display: block;
  color: #a2afc3;
  font-size: 13px;
  font-weight: 500;
  margin-top: 8px;
}
.withdrawChoice > .icon {
  margin-left: auto;
  color: #a2afc3;
  width: 17px;
}
.catalogGrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}
.catalogPet {
  padding: 10px 8px;
  background: #202a40;
  border: 1px solid #33415c;
  border-radius: 13px;
  text-align: left;
  position: relative;
  min-height: 183px;
  font-weight: 600;
}
.catalogPet img {
  width: 100%;
  height: 105px;
  object-fit: contain;
}
.catalogPet b {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  margin: 4px 0;
  height: 28px;
}
.catalogPet small {
  font-size: 10px;
  color: #44daee;
  letter-spacing: 0;
}
.catalogPet.selected {
  border-color: #61abff;
  box-shadow: inset 0 0 0 1px #61abff;
  background: #233e65;
}
.catalogPet.selected:after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  background: #3276f6;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.catalogNote {
  color: #92a1bb;
  font-size: 11px;
  padding: 4px 0 10px;
  line-height: 1.5;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
  color: #9eadc6;
  font-size: 12px;
}
.pagination button {
  padding: 7px 12px;
  font-size: 12px;
}
.amountForm label {
  display: block;
  color: #98abc6;
  font-size: 11px;
  font-weight: 800;
  margin: 20px 0 9px;
}
.amountForm input {
  width: 100%;
  border-radius: 13px;
  background: #10172a;
}
.amountForm .quickAmounts {
  display: flex;
  gap: 7px;
  margin: 10px 0 22px;
}
.amountForm .quickAmounts button {
  font-size: 11px;
  padding: 7px 10px;
}
.amountForm > button {
  width: 100%;
  padding: 13px;
}
.formHint {
  font-size: 11px !important;
  line-height: 1.5 !important;
  margin: 12px 0 5px !important;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 70;
  border: 1px solid #4278bd;
  background: #172b45;
  color: white;
  padding: 13px 22px;
  border-radius: 13px;
  box-shadow: 0 8px 24px #0005;
  max-width: 90vw;
  font-size: 13px;
}
.matchPanel {
  padding: 20px;
  text-align: center;
}
.modal.duelModal {
  width: min(940px, 96vw);
  padding: 0;
  border-radius: 22px;
  background: #191d2b;
  overflow: auto;
  max-height: min(760px, 94dvh);
}
.duelHeader {
  height: 76px;
  border-bottom: 1px solid #303549;
  display: flex;
  align-items: center;
  justify-content: center;
}
.duelHeader .logo {
  width: 180px;
  flex: none;
  transform: scale(1.08);
}
.duelBody {
  padding: 24px 28px 18px;
}
.duelArena {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr) 155px;
  gap: 12px;
  align-items: start;
}
.duelPlayer {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 15px;
  font-size: 17px;
  text-align: center;
  grid-row: 1;
}
.duelPlayer.player0 {
  grid-column: 1;
}
.duelPlayer.player1 {
  grid-column: 3;
}
.duelPlayer.player2 {
  grid-column: 1 / -1;
  grid-row: 2;
  flex-direction: row;
  justify-content: center;
}
.duelPortrait {
  height: 120px;
  width: 120px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #232b43;
}
.duelPortrait .avatar {
  transform: none;
  width: 100%;
  height: 100%;
  flex: none;
  border-color: transparent;
}
.duelPlayer.player2 .duelPortrait {
  height: 52px;
  width: 52px;
}
.duelPlayer.player2 .avatar {
  transform: none;
}
.duelLoser {
  opacity: 0.42;
  filter: grayscale(55%) brightness(62%);
}
.duelColors {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.duelColors span {
  border-radius: 20px;
  background: var(--die);
  border: 1px solid #ffffff26;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 850;
}
.duelStage {
  grid-column: 2;
  grid-row: 1;
  text-align: center;
  min-height: 200px;
}
.duelDice {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 0;
}
.duelDie {
  width: 90px;
  aspect-ratio: 1;
  flex: 1;
  max-width: 90px;
  background: var(--die);
  border: 1px solid #ffffff17;
  border-radius: 15px;
  box-shadow:
    inset 0 2px 5px #ffffff0c,
    0 0 30px color-mix(in srgb, var(--die), transparent 84%);
  display: grid;
  place-items: center;
  transition: background 0.12s;
}
.duelDie:after {
  content: "";
  width: 16px;
  height: 16px;
  background: #f5f7f1;
  border-radius: 50%;
  box-shadow: 0 2px 3px #0002;
}
.duelDie.neutral:after {
  background: #aeb7c4;
}
.duelDie.rolling {
  animation: diceShake calc(340ms + var(--index, 0) * 14ms)
    cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  animation-delay: var(--delay);
}
.duelDie.landed {
  animation: diceLand 300ms cubic-bezier(0.16, 0.9, 0.25, 1) both;
}
.duelDie.landed:after {
  animation: pipLand 280ms ease-out both;
}
.duelPlayer {
  position: relative;
  transition:
    opacity 420ms ease,
    filter 420ms ease;
}
.duelPlayer.duelChampion .duelPortrait {
  box-shadow:
    0 0 0 2px var(--winner),
    0 0 22px color-mix(in srgb, var(--winner), transparent 75%);
  transition: box-shadow 340ms ease;
}
.duelWinner.revealWinner {
  animation: winnerIn 280ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.duelConfetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.duelConfetti i {
  position: absolute;
  left: 50%;
  top: 25px;
  width: 4px;
  height: 7px;
  border-radius: 1px;
  background: var(--winner);
  animation: confettiFall 1000ms ease-out both;
  animation-delay: var(--delay);
}
@keyframes diceShake {
  0%,
  100% {
    transform: translate(0) rotate(-1deg) scale(0.995);
  }
  20% {
    transform: translate(-3.5px, -2px) rotate(-2.8deg) scale(1.01);
  }
  40% {
    transform: translate(3.8px, -3px) rotate(2.6deg) scale(1.015);
  }
  60% {
    transform: translate(-3px, 2px) rotate(-2.2deg) scale(1.005);
  }
  80% {
    transform: translate(3.2px, -1.5px) rotate(2.4deg) scale(1.012);
  }
}
@keyframes diceLand {
  0% {
    transform: scale(0.88);
    opacity: 0.88;
  }
  60% {
    transform: scale(1.055);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes pipLand {
  0% {
    transform: scale(0.8);
  }
  65% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes winnerIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes confettiFall {
  0% {
    opacity: 0;
    transform: translate(calc(var(--drift) * 0.3), -8px) rotate(0);
  }
  15% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift), 80px) rotate(var(--rotation));
  }
}
.duelRoundLabel {
  margin: 12px 0 15px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #9daabe;
  font-weight: 850;
}
.duelRoundLabel.rollingLabel {
  color: #19a9b9;
  letter-spacing: 2px;
}
.duelWinner {
  display: inline-block;
  background: var(--winner);
  border-radius: 28px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 0 30px color-mix(in srgb, var(--winner), transparent 75%);
  margin-bottom: 12px;
}
.duelStage .matchControls {
  margin-top: 8px;
}
.duelStage .matchControls button {
  font-size: 10px;
  padding: 8px 12px;
}
.duelHistory {
  background: #0f1320;
  border-radius: 18px;
  padding: 16px;
  margin-top: 22px;
  text-align: center;
  min-height: 128px;
}
.duelHistory > b {
  font-size: 12px;
}
.duelHistory #matchRolls {
  margin-top: 12px;
  max-height: 108px;
  overflow: auto;
}
.duelHistoryEmpty,
.duelHistoryRow {
  background: #161a28;
  border-radius: 12px;
  min-height: 39px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.duelHistoryEmpty {
  justify-content: center;
  font-size: 10px;
  color: #9aa9bc;
}
.duelHistoryRow {
  margin-top: 5px;
  text-align: left;
}
.duelHistoryRow > small {
  font-size: 10px;
  color: #9aa9bc;
}
.duelHistoryRow .miniDice {
  gap: 5px;
}
.duelHistoryRow .die {
  width: 24px;
  height: 24px;
}
.duelHistoryRow strong {
  margin-left: auto;
  font-size: 12px;
  white-space: nowrap;
}
.duelHistoryRow strong small {
  font-size: 10px;
  color: #a0b1c6;
}
.duelHistoryRow em {
  font-style: normal;
}
.tieBadge {
  color: #9ba7be;
  font-size: 9px;
}
.duelCommitment {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 10px 0 20px;
  font-size: 9px;
}
.duelCommitment button {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 12px;
  background: #101421;
  border: none;
  border-radius: 30px;
  font-size: 9px;
  max-width: 75%;
}
.duelCommitment .icon {
  width: 14px;
  height: 14px;
  color: #00d8ec;
}
.duelCommitment code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
  color: #9ba9bb;
  font-size: 8px;
}
.duelCommitment em {
  font-style: normal;
  color: #00d8ec;
  font-weight: 800;
}
.duelCommitment > span {
  color: #93a1b6;
}
.duelWagers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.duelWager small {
  font-size: 11px;
  color: #9fadc0;
  font-weight: 750;
}
.duelWager > strong {
  display: block;
  font-size: 20px;
  margin: 8px 0 18px;
}
.duelItems > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}
.duelItems img,
.duelItems .bigGem {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: none;
}
.duelItems b {
  font-size: 12px;
}
.duelItems em {
  margin-left: auto;
  color: #31e2ea;
  font-size: 11px;
  font-weight: 850;
  font-style: normal;
  white-space: nowrap;
}
@keyframes duelTumble {
  from {
    transform: rotate(-3deg) translateY(1px);
  }
  to {
    transform: rotate(3deg) translateY(-3px);
  }
}
@media (max-width: 740px) {
  .duelBody {
    padding: 20px 14px;
  }
  .duelArena {
    grid-template-columns: 85px minmax(0, 1fr) 85px;
    gap: 6px;
  }
  .duelPortrait {
    width: 70px;
    height: 70px;
  }
  .duelPortrait .avatar {
    transform: scale(1.3);
  }
  .duelPlayer {
    font-size: 12px;
    gap: 10px;
  }
  .duelColors {
    gap: 3px;
    flex-wrap: wrap;
  }
  .duelColors span {
    font-size: 8px;
    padding: 4px 6px;
  }
  .duelDice {
    gap: 5px;
  }
  .duelDie {
    border-radius: 9px;
  }
  .duelDie:after {
    width: 9px;
    height: 9px;
  }
  .duelWinner {
    font-size: 11px;
    padding: 9px 12px;
  }
  .duelStage {
    min-height: 150px;
  }
  .duelRoundLabel {
    font-size: 8px;
  }
  .duelWagers {
    gap: 14px;
  }
  .duelItems {
    gap: 6px;
  }
  .duelItems b {
    font-size: 10px;
  }
  .duelItems em {
    font-size: 9px;
  }
  .duelItems img {
    width: 28px;
    height: 28px;
  }
  .duelCommitment {
    flex-wrap: wrap;
  }
  .duelCommitment button {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .duelDie.rolling {
    animation: none;
  }
}
.matchPlayers {
  display: flex;
  justify-content: center;
  gap: 55px;
  padding: 24px;
}
.matchPlayer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  min-width: 110px;
}
.matchPlayer .avatar {
  width: 57px;
}
.matchPlayer strong {
  font-size: 30px;
}
.matchRoll {
  width: 100px;
  height: 100px;
  border-radius: 25px;
  margin: 20px auto;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.matchRoll:after {
  content: "";
  background: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.matchRoll.rolling {
  animation: roll 0.12s infinite alternate;
}
.matchStatus {
  font-size: 19px;
  font-weight: 900;
  margin: 20px;
}
.matchControls {
  display: flex;
  gap: 9px;
  justify-content: center;
}
.fairDetails {
  padding: 14px;
  border: 1px solid #354159;
  border-radius: 13px;
  text-align: left;
  font-size: 11px;
  color: #9baac2;
  margin-top: 24px;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.fairDetails summary {
  cursor: pointer;
  font-weight: 800;
  color: #b6c8e2;
}
.fairDetails code {
  font-size: 10px;
}
.historyTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.historyTable th,
.historyTable td {
  text-align: left;
  border-bottom: 1px solid #303c53;
  padding: 13px 8px;
}
.positive {
  color: #21f4b8;
}
.negative {
  color: #ff5473;
}
.muted {
  color: #8c9eb8;
}
.minesLayout {
  display: grid;
  grid-template-columns: 300px 1fr;
  border: 1px solid #242e3f;
  border-radius: 23px;
  overflow: hidden;
  background: #0e1420;
  min-height: 680px;
}
.minesControls {
  border-right: 1px solid #222d40;
  padding: 14px;
  background: #121827;
}
.minesControls .segmented {
  margin-bottom: 16px;
  background: #0c1320;
}
.minesControls .segmented button {
  flex: 1;
  border-radius: 9px;
}
.minesControls .segmented button.active {
  background: #293c55;
}
.controlLabel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.controlLabel small {
  font-size: 10px;
  color: #89a0bb;
}
.controlLabel span {
  font-size: 10px;
  color: #83a5d0;
}
.betInput {
  display: flex;
  background: #0b1221;
  border: 1px solid #252e40;
  border-radius: 15px;
  overflow: hidden;
  height: 40px;
}
.betInput .gem {
  margin: 11px 12px;
}
.betInput input {
  border: 0;
  background: transparent;
  width: 100%;
  padding: 0 4px;
  border-radius: 0;
  font-weight: 800;
  min-width: 0;
}
.betInput button {
  border: 0;
  border-left: 1px solid #202a3d;
  background: transparent;
  color: #92b4de;
  border-radius: 0;
  width: 37px;
  padding: 0;
  font-size: 12px;
}
.quickAmounts {
  display: flex;
  gap: 5px;
  margin: 7px 0 14px;
}
.quickAmounts button {
  flex: 1;
  font-size: 10px;
  padding: 5px 4px;
  border-radius: 9px;
  background: #1b2435;
  color: #a3badb;
}
.mineSettings {
  border: 1px solid #242d3b;
  background: #0d1420;
  border-radius: 14px;
  padding: 12px 10px;
  margin-bottom: 13px;
}
.mineSettings .controlLabel b {
  font-size: 13px;
}
.mineSettings input {
  width: 100%;
  accent-color: var(--blue);
  height: 7px;
  padding: 0;
  margin: 10px 0 12px;
}
.rangeLegend {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #6686af;
}
.rangeLegend b {
  color: #22f7af;
  letter-spacing: 1px;
}
.mineSettings p {
  font-size: 9px;
  color: #718bab;
  margin: 9px 0 0;
}
.minesPlay {
  width: 100%;
  height: 46px;
  font-size: 14px;
  border-radius: 17px;
  box-shadow: 0 7px 20px #2266ee1a;
  margin-bottom: 12px;
}
.recentGames {
  border: 1px solid #242d3b;
  border-radius: 15px;
  background: #0e1521;
  overflow: hidden;
}
.recentGames header {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid #242d3b;
}
.recentGames header span {
  font-size: 9px;
  color: #6c85ad;
}
.recentList {
  max-height: 350px;
  overflow: auto;
  padding: 0 10px;
}
.recentGame {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid #1c2638;
  font-size: 11px;
}
.recentGame > span {
  height: 24px;
  width: 24px;
  border-radius: 9px;
  background: #032e2b;
  color: #00d9a9;
  display: grid;
  place-items: center;
}
.recentGame b {
  display: block;
}
.recentGame small {
  font-size: 9px;
  letter-spacing: 0;
  font-weight: 500;
  color: #6c8dba;
}
.recentGame .recentAmount {
  margin-left: auto;
  text-align: right;
}
.minesBoard {
  position: relative;
  padding: 12px 20px 35px;
  background-image: radial-gradient(#33405e66 0.65px, transparent 0.7px);
  background-size: 22px 22px;
}
.boardHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
  color: #7991b1;
  font-size: 10px;
}
.boardHead b {
  font-size: 10px;
  letter-spacing: 1px;
  border: 1px solid #33415c;
  background: #0d1422;
  border-radius: 9px;
  padding: 6px 9px;
  color: #b8d2f8;
}
.mineGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  width: min(100%, 618px);
  padding: 12px;
  margin: 0 auto;
  background: #0f1723;
  border: 1px solid #232f41;
  border-radius: 26px;
}
.mineTile {
  aspect-ratio: 1;
  border-radius: 19px;
  background: linear-gradient(#28374e, #1e2a3d);
  border: 1px solid #3b4c63;
  border-bottom: 5px solid #172433;
  box-shadow: inset 0 1px 0 #44566d5c;
  padding: 0;
  display: grid;
  place-items: center;
}
.mineTile:hover {
  background: linear-gradient(#324868, #263b57);
  transform: translateY(-2px);
}
.mineTile:disabled {
  opacity: 1;
}
.mineTile.safe {
  background: radial-gradient(#075754, #0b2d37);
  border-color: #068778;
  border-bottom-color: #065d57;
}
.mineTile.bomb {
  background: radial-gradient(#873247, #301528);
  border-color: #db3256;
}
.mineTile img {
  width: 53%;
  height: 53%;
  filter: drop-shadow(0 0 15px #07f5dc55);
  animation: reveal 0.25s;
}
.mineTile .bombIcon {
  font-size: 40px;
  color: #ff4f70;
}
.minesFooter {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #121a28;
  border: 1px solid #273143;
  border-radius: 17px;
  padding: 10px 13px;
  margin-top: 9px;
}
.minesFooter .gameIcon {
  width: 31px;
  height: 31px;
  background: #29334b;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #b365ff;
}
.minesFooter > div small {
  display: block;
  color: #718caf;
  font-size: 9px;
}
.minesFooter button {
  font-size: 10px;
  color: #c7d5e7;
  padding: 8px 11px;
  letter-spacing: 0.4px;
}
.minesFooter button.fair {
  color: #43e5b7;
  background: #062d32;
  border-color: #0b5357;
}
.catalogPage {
  background: #151d2b;
  border: 1px solid #29364b;
  border-radius: 18px;
  padding: 22px;
}
.catalogPage h1 {
  margin: 0 0 7px;
  font-size: 24px;
}
.catalogPage .catalogGrid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}
.catalogPage .modalTop {
  padding: 0;
  margin-top: 17px;
}
.localBadge {
  position: fixed;
  bottom: 9px;
  left: 9px;
  font-size: 7px;
  color: #566b8d;
  z-index: 30;
  letter-spacing: 0.5px;
}
.emptyList {
  text-align: center;
  padding: 65px;
  color: #9cacc4;
}
.coin {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0353f;
  border: 5px dashed #eee;
  display: grid;
  place-items: center;
  font-weight: 900;
  margin: auto;
  font-size: 17px;
}
.coin.black {
  background: #26292d;
}
.coinLarge {
  width: 95px;
  height: 95px;
  font-size: 42px;
  margin: 30px auto;
}
.coin.flipping {
  animation: flip 0.3s infinite;
}
.walletMenu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}
.walletMenu button {
  padding: 22px 8px;
  background: #222c43;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.walletMenu button .icon {
  color: #28d9f6;
  width: 28px;
  height: 28px;
}
.settingRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #303a51;
  padding: 15px 0;
  font-size: 13px;
}
.settingRow input {
  accent-color: #3276f6;
}
.catalogPet.rainbow img {
  filter: hue-rotate(35deg) saturate(1.3);
}
.catalogPet.shiny img {
  filter: drop-shadow(0 0 7px #fff8);
}
@keyframes roll {
  to {
    transform: rotate(20deg) scale(0.95);
  }
}
@keyframes flip {
  to {
    transform: rotateY(180deg);
  }
}
@keyframes reveal {
  from {
    transform: scale(0.3);
  }
  to {
    transform: scale(1);
  }
}
@media (min-width: 1600px) {
  .room {
    grid-template-columns: 27% 28% 18% 18% 9%;
  }
  .chatOpen .giveaway {
    padding: 0 24px;
  }
  .chatOpen main {
    padding-right: 28px;
  }
  .chatOpen .room {
    grid-template-columns: 27% 29% 18% 18% 8%;
  }
  .chatOpen .summary {
    background: #0c1020;
  }
  .chatOpen .minesLayout {
    grid-template-columns: 300px 1fr;
  }
}
@media (max-width: 1450px) {
  .giveaway {
    padding: 0 24px;
  }
  .room {
    grid-template-columns: 25% 28% 18% 18% 11%;
    padding-right: 16px;
  }
  .players {
    gap: 9px;
  }
  .avatar {
    width: 52px;
    height: 52px;
  }
  .petThumb {
    width: 43px;
    height: 49px;
  }
  .petStack {
    gap: 9px;
  }
  .roomValue strong {
    font-size: 18px;
  }
  .minesLayout {
    grid-template-columns: 270px 1fr;
    min-height: 630px;
  }
  .catalogPage .catalogGrid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .chatOpen .room {
    grid-template-columns: 23% 27% 20% 18% 12%;
  }
  .chatOpen .players .avatar:nth-of-type(3) {
    display: none;
  }
  .chatOpen .petThumb:nth-child(n + 4) {
    display: none;
  }
  .chatOpen .minesLayout {
    grid-template-columns: 245px 1fr;
  }
  .chatOpen .mineGrid {
    gap: 8px;
    padding: 10px;
  }
}
@media (max-width: 1100px) {
  .account {
    gap: 8px;
  }
  .level {
    min-width: 0;
  }
  .level .progress {
    width: 90px;
  }
  .topbar {
    padding: 0 20px;
  }
  .logo {
    width: 160px;
  }
  .giveawayRight > span {
    display: none;
  }
  .room {
    grid-template-columns: minmax(110px, 22%) minmax(130px, 1fr) minmax(90px, 16%) minmax(70px, 12%) auto;
    padding: 10px 14px;
    gap: 8px;
  }
  .players {
    gap: 7px;
  }
  .avatar {
    width: 47px;
    height: 47px;
  }
  .petThumb:nth-child(n + 4) {
    display: none;
  }
  .roomActions {
    gap: 6px;
  }
  .roomActions button {
    min-width: 58px;
    padding: 6px 10px;
    font-size: 11px;
  }
  .roomActions button.copyRoomLink {
    min-width: 34px;
    width: 34px;
    height: 34px;
  }
  .catalogGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .modal {
    min-width: 0;
    width: 95%;
  }
  .modalTop .search {
    width: 40%;
  }
  .modalBottom {
    flex-wrap: wrap;
  }
  .catalogPage .catalogGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .chatOpen .shell {
    margin-right: 0;
  }
  .chat {
    box-shadow: -10px 0 40px #0005;
  }
  .minesLayout {
    grid-template-columns: 245px 1fr;
    min-height: 550px;
  }
  .mineGrid {
    gap: 9px;
    padding: 10px;
  }
  .mineTile {
    border-radius: 13px;
  }
  .boardHead span {
    display: none;
  }
}
@media (max-width: 740px) {
  .topbar {
    height: 70px;
    padding: 0 10px;
  }
  .logo {
    width: 45px;
    background-position: center;
  }
  .account .level {
    display: none;
  }
  .funds {
    height: 42px;
  }
  .funds button {
    font-size: 13px;
    padding: 0 10px;
  }
  .funds .walletButton {
    width: 43px;
  }
  .profile {
    height: 42px;
    gap: 7px;
    padding: 4px 8px;
  }
  .profile .userAvatar {
    width: 30px;
  }
  .sidebar {
    top: 70px;
    width: 59px;
    border-right: 3px solid #080c14;
    padding: 11px 4px;
  }
  .navButton {
    width: 48px;
    height: 43px;
  }
  .shell {
    padding-top: 70px;
    margin-left: 59px;
  }
  .giveaway {
    height: 65px;
    padding: 0 12px;
    gap: 8px;
  }
  .giveawayPet {
    display: none;
  }
  .giveaway b {
    font-size: 11px;
  }
  .giveaway small {
    font-size: 8px;
  }
  .giveawayRight {
    gap: 4px;
  }
  .giveawayRight > div {
    display: none;
  }
  .giveawayRight button {
    padding: 9px;
    font-size: 10px;
  }
  .giveawayRight .iconButton {
    font-size: 20px;
  }
  .giveawayRight > span {
    display: none;
  }
  main {
    padding: 12px 9px;
  }
  .summary {
    padding: 9px;
  }
  .stats {
    padding: 0;
    height: 53px;
  }
  .stat {
    padding-left: 4px !important;
  }
  .stat strong {
    font-size: 18px;
  }
  .stat span {
    font-size: 9px;
  }
  .toolbar {
    gap: 5px;
    flex-wrap: wrap;
  }
  .toolbar button {
    height: 34px;
    padding: 8px;
    font-size: 11px;
    min-width: 67px;
  }
  .toolbar .right {
    gap: 5px;
  }
  .toolbar .right button,
  .toolbar select {
    height: 34px;
    font-size: 9px;
    padding: 7px;
  }
  .room {
    height: 104px;
    grid-template-columns: 42% 33% 25%;
    padding: 11px 8px;
    gap: 4px;
  }
  .players {
    grid-column: 1;
    grid-row: 1;
  }
  .avatar {
    width: 41px;
    height: 41px;
  }
  .players .vs {
    font-size: 10px;
  }
  .players {
    gap: 5px;
  }
  .players .avatar:nth-of-type(3) {
    display: none;
  }
  .petStack {
    grid-column: 1;
    grid-row: 2;
    max-height: 30px;
    gap: 6px;
  }
  .petStack .bigGem {
    width: 24px;
    height: 25px;
  }
  .petThumb {
    width: 27px;
    height: 28px;
  }
  .roomValue {
    grid-column: 2;
    grid-row: 1;
  }
  .roomValue strong {
    font-size: 15px;
  }
  .rollResult {
    grid-column: 2;
    grid-row: 2;
  }
  .die {
    width: 18px;
    height: 19px;
  }
  .die:after {
    width: 5px;
    height: 5px;
  }
  .score {
    font-size: 11px;
    margin: 0 0 3px;
  }
  .roomActions {
    grid-column: 3;
    grid-row: 1 / 3;
    align-items: center;
  }
  .roomActions button {
    width: 60px;
    height: 31px;
    padding: 7px;
    font-size: 10px;
  }
  .overlay {
    inset: 70px 0 0;
    padding: 10px;
  }
  .modal {
    width: 100%;
    max-height: calc(100dvh - 90px);
    padding: 13px;
  }
  .modal.narrow {
    width: 100%;
    min-width: 0;
    padding: 22px;
  }
  .modalTop {
    flex-wrap: wrap;
    padding-right: 35px;
  }
  .modalTop .search {
    width: 100%;
  }
  .modalTop select {
    max-width: 50%;
    font-size: 10px;
    padding: 8px;
  }
  .modalTop select:first-of-type {
    margin-left: 0;
  }
  .inventoryPanel {
    min-height: 400px;
  }
  .inventorySummary {
    padding: 12px 10px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .inventorySummary .gemsAvailable {
    margin-left: 0;
    width: 100%;
    flex-wrap: wrap;
  }
  .inventoryBody {
    max-height: 350px;
  }
  .emptyInventory {
    height: 250px;
  }
  .emptyInventory h3 {
    font-size: 16px;
  }
  .emptyInventory p {
    font-size: 11px;
  }
  .modalBottom {
    gap: 14px;
  }
  .modalBottom .createActions {
    width: 100%;
    justify-content: flex-end;
  }
  .colorChoices {
    gap: 6px;
  }
  .colorChoice {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
  .catalogGrid,
  .catalogPage .catalogGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .catalogPet {
    padding: 8px 5px;
    min-height: 155px;
  }
  .catalogPet img {
    height: 74px;
  }
  .catalogPet b {
    font-size: 10px;
    height: 32px;
  }
  .catalogPet small {
    font-size: 9px;
  }
  .catalogPage {
    padding: 12px;
  }
  .catalogPage h1 {
    font-size: 19px;
  }
  .catalogNote {
    font-size: 10px;
  }
  .minesLayout {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .minesControls {
    border-right: 0;
    border-bottom: 1px solid #283343;
    padding: 12px;
  }
  .recentGames {
    display: none;
  }
  .minesControls .segmented {
    margin-bottom: 10px;
  }
  .mineSettings {
    margin-bottom: 10px;
  }
  .minesBoard {
    padding: 12px 8px;
  }
  .mineGrid {
    gap: 7px;
    padding: 8px;
    border-radius: 17px;
  }
  .mineTile {
    border-radius: 11px;
  }
  .minesFooter {
    flex-wrap: wrap;
  }
  .minesFooter button {
    font-size: 8px;
    padding: 7px;
  }
  .chat {
    top: 70px;
    width: 310px;
  }
  .chatToggle {
    bottom: 40px;
    width: 31px;
  }
  .matchPlayers {
    gap: 15px;
    padding: 15px 0;
  }
  .matchPlayer {
    min-width: 65px;
  }
  .matchPanel {
    padding: 0;
  }
  .historyTable {
    font-size: 10px;
  }
  .historyTable th,
  .historyTable td {
    padding: 10px 4px;
  }
}
.inventoryPanel {
  min-height: min(493px, calc(100dvh - 320px));
}
.localBadge {
  display: none;
}
.gem {
  display: inline-block;
  background: url("/assets/gem.svg") center/contain no-repeat;
}
.bigGem {
  display: inline-block;
  background: url("/assets/gem.svg") center/contain no-repeat;
  vertical-align: middle;
}
@media (max-height: 760px) {
  .inventoryBody {
    max-height: 340px;
  }
  .modalBottom small {
    margin-bottom: 8px;
  }
  .emptyInventory {
    height: 260px;
  }
  .inventorySummary {
    padding-top: 11px;
    padding-bottom: 11px;
  }
}
.mineTile .gem {
  width: 43px;
  height: 38px;
  filter: drop-shadow(0 0 10px #00d5ff44);
}
.funds .gem {
  margin-right: 7px;
}
.petThumb img {
  background: none;
}
.inventorySummary .gem,
.catalogPet .gem {
  width: 14px;
  height: 13px;
}
.roomValue .gem {
  margin-right: 6px;
}
[hidden] {
  display: none !important;
}
.stat .gem {
  display: inline-block;
}
.levelGem {
  font-size: 0;
  display: inline-block;
  width: 32px;
  height: 36px;
  background: none;
}
.room,
.chatOpen .room {
  grid-template-columns: 27% 23% 18% 23% 9%;
}
.shell {
  height: 100dvh;
  overflow: hidden;
}
main {
  height: calc(100dvh - 146px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #353d50 transparent;
}
.giveaway[hidden] + main {
  height: calc(100dvh - 81px);
}
.typeBadge {
  font-size: 8px;
}
@media (max-width: 1450px) {
  .room {
    grid-template-columns: 25% 23% 18% 23% 11%;
  }
  .chatOpen .room {
    grid-template-columns: 23% 23% 20% 22% 12%;
  }
}
@media (max-width: 1100px) {
  .room {
    grid-template-columns: 25% 21% 20% 22% 12%;
  }
}
@media (max-width: 740px) {
  main {
    height: calc(100dvh - 135px);
  }
  .giveaway[hidden] + main {
    height: calc(100dvh - 70px);
  }
  .room,
  .chatOpen .room {
    grid-template-columns: 42% 33% 25%;
  }
}
.bigGem {
  flex: none;
}
.duelPortrait .avatar.crispAvatar {
  width: 100%;
  height: 100%;
  transform: none;
}
.duelHeader .logo {
  width: 160px;
  transform: none;
  mix-blend-mode: lighten;
}
.petThumbs {
  flex: none;
}
.catalogPet .gem {
  vertical-align: middle;
}
.rankBadge {
  width: 42px;
  height: 42px;
  flex: none;
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--rank), transparent 55%));
}
.rankMenu {
  position: fixed;
  z-index: 60;
  width: 330px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 100px);
  overflow: auto;
  padding: 14px;
  border: 1px solid #2c3449;
  border-radius: 20px;
  background: #111727;
  box-shadow: 0 20px 70px #0009;
}
.rankMenu header {
  padding: 4px 8px 16px;
}
.rankMenu header small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #36d4ef;
  font-weight: 900;
}
.rankMenu header b {
  display: block;
  font-size: 22px;
  margin: 6px 0;
}
.rankMenu header p {
  font-size: 12px;
  margin: 3px 0 10px;
  color: #a1afc3;
}
.rankMenu header .progress {
  width: 100%;
}
.rankMenu header > span {
  display: block;
  color: #8294b0;
  margin-top: 8px;
  font-size: 10px;
}
.rankCards {
  display: grid;
  gap: 6px;
}
.rankCard {
  display: grid;
  align-items: center;
  grid-template-columns: 40px 48px 1fr 25px;
  gap: 6px;
  width: 100%;
  min-height: 59px;
  padding: 7px 9px;
  background: #171d2d;
  border: 1px solid #2a3145;
  border-radius: 17px;
  text-align: left;
}
.rankCard.equipped {
  border-color: color-mix(in srgb, var(--rank), transparent 45%);
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--rank), #151c2c 92%),
    #171d2d
  );
}
.rankCard:disabled {
  opacity: 1;
  cursor: default;
}
.rankCard:disabled .rankAction {
  color: #697c98;
}
.rankLevel {
  font-weight: 900;
  color: #94a5bf;
  font-size: 11px;
}
.rankName b {
  display: block;
  font-size: 12px;
}
.rankName small {
  display: block;
  margin-top: 5px;
  color: #7f93b2;
  font-size: 9px;
}
.rankAction {
  font-size: 10px;
  font-weight: 800;
  color: #a6b5cc;
  text-align: right;
}
.rankAction .icon {
  width: 16px;
  height: 16px;
}
.chatPortrait {
  position: relative;
  flex: none;
  width: 40px;
  height: 45px;
}
.chatPortrait .avatar {
  width: 39px;
  height: 39px;
  border-width: 1px;
}
.chatLevel {
  position: absolute;
  left: 9px;
  bottom: 0;
  border-radius: 4px;
  min-width: 20px;
  padding: 1px 3px;
  color: white;
  background: color-mix(in srgb, var(--rank), #1755db 40%);
  box-shadow: 0 0 7px color-mix(in srgb, var(--rank), transparent 60%);
  border: 1px solid #ffffff35;
  font-size: 9px;
  font-weight: 900;
  text-align: center;
}
.chatName {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 180px;
  overflow-wrap: anywhere;
}
.chatRank {
  width: 20px;
  height: 20px;
}
.roomPortrait {
  position: relative;
  display: inline-flex;
  flex: none;
}
.coinChip {
  display: block;
  width: 40px;
  height: 40px;
  flex: none;
  filter: drop-shadow(0 3px 3px #0005);
}
.portraitChip {
  position: absolute;
  top: -3px;
  right: -6px;
  width: 23px;
  height: 23px;
}
.resultChip {
  width: 43px;
  height: 43px;
}
.winningScore {
  color: #528fff;
}
.coinChoice.colorChoice {
  width: 88px;
  height: 64px;
  background: #11182a;
  border: 1px solid #3c465e;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px;
}
.coinChoice.colorChoice:after {
  display: none;
}
.coinChoice .coinChip {
  width: 31px;
  height: 31px;
}
.coinChoice b {
  font-size: 11px;
}
.coinChoice.colorChoice.selected {
  background: #20324f;
  border: 2px solid #4388ff;
  box-shadow: 0 0 0 3px #377cf41c;
}
.modal.historyModal {
  width: 1150px;
  min-width: 0;
  max-width: calc(100vw - 40px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #0b4e65;
  background: #090e1b;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
}
.historyHeader {
  padding: 24px 26px 22px;
  background: linear-gradient(110deg, #0c1b30, #090d1a 80%);
  border-bottom: 1px solid #232938;
}
.historyHeader small,
.coinHeader > small {
  color: #00d5f3;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.8px;
}
.historyHeader h2 {
  font-size: 25px;
  margin: 7px 0 0;
}
.historyModal .modalClose {
  top: 24px;
  right: 27px;
  width: 43px;
  height: 43px;
  background: #1b202c;
}
.historyToolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 26px;
  border-bottom: 1px solid #242938;
  background: linear-gradient(90deg, #10222f, #0e1321 60%);
}
.historyToolbar > span {
  color: #9eacbd;
  font-size: 12px;
  font-weight: 700;
  margin-right: auto;
}
.historyToolbar select {
  background: #151d30;
  min-height: 41px;
  border-radius: 17px;
  font-size: 12px;
  font-weight: 800;
}
.historyTabs {
  display: flex;
  gap: 4px;
}
.historyTabs button {
  padding: 6px 10px;
  font-size: 11px;
  border-color: transparent;
  background: transparent;
  color: #7f91ad;
}
.historyTabs button.active {
  background: #233249;
  color: #fff;
}
.historyRows {
  overflow: auto;
  min-height: 240px;
  padding: 24px 22px;
  scrollbar-gutter: stable;
}
.historyModal .room {
  grid-template-columns: 28% 34% 12% 16% 10%;
  min-height: 90px;
  padding: 13px 20px;
  background: #121725;
  border-color: #242939;
  margin: 0 0 12px;
  border-radius: 13px;
}
.historyModal .room .players {
  gap: 11px;
}
.historyModal .room .avatar {
  width: 55px;
  height: 55px;
}
.historyModal .room .petThumb {
  width: 51px;
  height: 55px;
}
.historyModal .room .roomValue strong {
  font-size: 20px;
}
.historyModal .room .petStack {
  gap: 20px;
  min-width: 0;
}
.historyModal .room .roomActions button {
  width: 100%;
}
.historyModal .room .rollResult {
  display: grid;
  place-content: center;
}
.historyEmpty {
  text-align: center;
  padding: 45px 16px;
  color: #9fb0c9;
}
.historyEmpty > .icon {
  width: 38px;
  height: 38px;
  color: #377df1;
}
.historyEmpty h3 {
  margin: 18px 0 8px;
  color: #eef3ff;
}
.historyEmpty p {
  margin: 0;
}
.archivedRow {
  display: grid;
  grid-template-columns: 1fr 170px 150px 100px;
  align-items: center;
  gap: 20px;
  background: #121725;
  border: 1px solid #242939;
  border-radius: 13px;
  padding: 20px;
  margin-bottom: 12px;
  min-height: 90px;
}
.archivedRow small {
  display: block;
  color: #8494ad;
  font-size: 10px;
  margin-top: 7px;
}
.archivedRow strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
}
.archivedRow > span {
  font-size: 12px;
}
.modal.coinModal {
  width: 820px;
  min-width: 0;
  max-width: calc(100vw - 40px);
  padding: 0;
  background: #101626;
  border-radius: 24px;
  overflow: auto;
}
.coinHeader {
  padding: 24px 30px;
  border-bottom: 1px solid #293247;
  background: linear-gradient(110deg, #102338, #101522);
}
.coinHeader h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 24px;
}
.coinHeader h2 span {
  font-weight: 600;
  color: #8293ad;
  font-size: 11px;
  margin-left: 5px;
  letter-spacing: 0;
}
.coinArena {
  position: relative;
  margin: 0 20px;
  min-height: 270px;
  background: radial-gradient(ellipse at 50% 50%, #21314966, transparent 65%);
}
.coinArena .matchPlayers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 290px;
  align-items: center;
  margin: 0;
  min-height: 270px;
}
.coinPlayer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  transition: opacity 0.35s;
}
.coinPlayer > b {
  font-size: 14px;
  overflow-wrap: anywhere;
  text-align: center;
}
.coinPortrait {
  padding: 6px;
  border-radius: 50%;
  transition:
    background 0.35s,
    box-shadow 0.35s;
}
.coinPortrait .avatar {
  height: 70px;
  width: 70px;
}
.coinPlayerSide {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #9eacc4;
}
.coinPlayerSide .coinChip {
  width: 27px;
  height: 27px;
}
.coinPlayer em {
  font-style: normal;
  font-weight: 800;
  font-size: 12px;
  color: #9caeca;
  height: 16px;
}
.coinChampion .coinPortrait {
  background: #36678d20;
  box-shadow:
    0 0 0 1px #50c8f15c,
    0 0 24px #12bdff18;
}
.coinChampion em {
  color: #42dfbe;
  font-size: 10px;
  letter-spacing: 2px;
}
.coinLoser {
  opacity: 0.43;
}
.coinStage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 200px;
  perspective: 850px;
}
.coinFlipper {
  position: relative;
  width: 180px;
  height: 180px;
  transform-style: preserve-3d;
}
.coinFace {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.coinFace .coinChip {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 10px #0006);
}
.coinFace.front {
  transform: translateZ(3px);
}
.coinFace.back {
  transform: rotateY(180deg) translateZ(3px);
}
.coinHalo {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, #75caff16, transparent 70%);
  transition: opacity 0.35s;
}
.coinStage.landed .coinHalo {
  opacity: 1;
}
.coinShadow {
  position: absolute;
  width: 140px;
  height: 16px;
  left: 20px;
  bottom: 0;
  background: radial-gradient(ellipse, #0009, transparent 70%);
}
.coinSpin {
  animation: premiumFlip 2.2s cubic-bezier(0.17, 0.54, 0.29, 1) both;
}
@keyframes premiumFlip {
  0% {
    transform: translateY(0) rotateY(0deg) rotateZ(-6deg);
  }
  35% {
    transform: translateY(-40px) rotateY(1260deg) rotateZ(8deg);
  }
  82% {
    transform: translateY(0) rotateY(var(--finish)) rotateZ(0deg);
  }
  91% {
    transform: translateY(-7px) rotateY(var(--finish));
  }
  100% {
    transform: translateY(0) rotateY(var(--finish));
  }
}
.coinModal .matchStatus {
  margin: 0 20px 20px;
  min-height: 61px;
  font-size: 13px;
  color: #9eaec7;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.coinResultText small {
  font-size: 9px;
  color: #8397b9;
  font-weight: 800;
  letter-spacing: 2px;
}
.coinResultText b {
  font-size: 21px;
  color: #f3f6ff;
  letter-spacing: -0.5px;
}
.coinResultText > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 800;
  color: #40dfbc;
}
.coinModal .matchControls {
  margin: 0 20px 24px;
  gap: 8px;
}
.coinModal .fairDetails {
  border-top: 1px solid #293247;
  padding: 16px 26px;
  margin: 0;
  color: #8296b6;
  font-size: 11px;
}
.coinModal .fairDetails summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.coinModal .fairDetails .icon {
  width: 17px;
  height: 17px;
}
@media (max-width: 1050px) {
  .historyModal .room {
    grid-template-columns: 27% 29% 15% 18% 11%;
    padding: 12px;
  }
  .historyModal .room .petThumb {
    width: 36px;
    height: 42px;
  }
  .historyModal .room .petStack {
    gap: 8px;
  }
  .historyModal .room .avatar {
    width: 42px;
    height: 42px;
  }
  .historyModal .room .players {
    gap: 7px;
  }
  .historyModal .room .roomValue strong {
    font-size: 17px;
  }
  .historyModal .room .bigGem {
    width: 30px;
  }
}
@media (max-width: 740px) {
  .account .level {
    display: flex;
    min-width: 0;
    padding: 4px 7px;
    height: 42px;
    gap: 3px;
  }
  .account .level .rankBadge {
    width: 32px;
    height: 32px;
  }
  .account .level > span:not(.chevron) {
    display: block;
  }
  .account .level b {
    font-size: 9px;
    max-width: 92px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .account .level .progress {
    display: block;
    width: 78px;
    height: 4px;
  }
  .account .level .chevron {
    display: none;
  }
  .modal.historyModal,
  .modal.coinModal {
    max-width: calc(100vw - 16px);
    border-radius: 17px;
  }
  .historyHeader {
    padding: 18px;
  }
  .historyHeader h2 {
    font-size: 22px;
  }
  .historyModal .modalClose {
    top: 17px;
    right: 17px;
    width: 33px;
    height: 33px;
  }
  .historyToolbar {
    padding: 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .historyToolbar > span {
    flex-basis: 100%;
  }
  .historyToolbar select {
    margin-left: auto;
    font-size: 10px;
    padding: 8px;
  }
  .historyTabs button {
    padding: 6px 8px;
    font-size: 10px;
  }
  .historyRows {
    padding: 12px;
  }
  .historyModal .room {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "players value" "pets roll" "actions actions";
    gap: 13px;
    padding: 13px;
  }
  .historyModal .players {
    grid-area: players;
  }
  .historyModal .petStack {
    grid-area: pets;
  }
  .historyModal .roomValue {
    grid-area: value;
    text-align: right;
  }
  .historyModal .rollResult {
    grid-area: roll;
  }
  .historyModal .roomActions {
    grid-area: actions;
  }
  .historyModal .room .roomActions button {
    height: 32px;
  }
  .historyModal .room .petThumb {
    width: 29px;
    height: 34px;
  }
  .historyModal .room .bigGem {
    width: 23px;
    height: 28px;
  }
  .archivedRow {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px;
  }
  .archivedRow strong {
    font-size: 16px;
  }
  .coinHeader {
    padding: 20px;
  }
  .coinHeader h2 {
    font-size: 22px;
  }
  .coinArena {
    min-height: 370px;
    margin: 0 12px;
  }
  .coinArena .matchPlayers {
    min-height: 370px;
    align-items: end;
    padding-bottom: 14px;
    gap: 20px;
  }
  .coinStage {
    top: 95px;
    width: 140px;
    height: 160px;
  }
  .coinFlipper {
    width: 140px;
    height: 140px;
  }
  .coinShadow {
    left: 10px;
    width: 120px;
  }
  .coinPortrait .avatar {
    height: 50px;
    width: 50px;
  }
  .coinPlayer {
    gap: 6px;
  }
  .coinPlayer > b {
    font-size: 12px;
  }
  .coinModal .matchControls button {
    font-size: 11px;
    padding: 9px;
  }
  .coinChoice.colorChoice {
    width: 78px;
  }
  .coinChoice b {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .coinSpin {
    animation: none;
  }
  .coinPlayer,
  .coinHalo,
  .coinPortrait {
    transition: none;
  }
}
@media (max-width: 1450px) {
  .petStack {
    gap: 9px;
  }
}
.account .level .mobileLevel {
  display: none;
}
@media (max-width: 740px) {
  .topbar {
    gap: 8px;
  }
  .funds {
    position: static;
    transform: none;
    margin-left: auto;
    flex: none;
  }
  .account {
    gap: 5px;
  }
  .historyModal .room {
    height: auto;
  }
}
@media (max-width: 480px) {
  .topbar {
    padding: 0 9px;
    gap: 6px;
  }
  .topbar > .logo {
    flex: none;
    width: 45px;
  }
  .funds button {
    padding: 0 8px;
    font-size: 12px;
    gap: 6px;
  }
  .funds .walletButton {
    width: 35px;
  }
  .funds .gem {
    width: 18px;
    height: 18px;
  }
  .account {
    gap: 4px;
  }
  .account .soundToggle {
    width: 30px;
    height: 34px;
    padding: 5px;
  }
  .account .level {
    position: relative;
    width: 34px;
    min-width: 34px;
    padding: 0;
    border-radius: 11px;
  }
  .account .level > span.levelText {
    display: none;
  }
  .account .level .mobileLevel {
    display: block;
    position: absolute;
    right: 0;
    bottom: -1px;
    font-size: 8px;
    font-weight: 900;
    background: #1d3350;
    border-radius: 3px;
    padding: 1px 3px;
  }
  .account .profile.loggedIn {
    padding: 2px;
    width: 37px;
    min-width: 37px;
    border-radius: 11px;
  }
  .account .profile.loggedIn > b,
  .account .profile.loggedIn > span:not(.avatar) {
    display: none;
  }
  .account .profile .avatar {
    width: 30px;
    height: 30px;
  }
}
@media (max-width: 740px) {
  .bigGem {
    background-image: url("/assets/gem.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }
  .account .profile:not(.loggedIn) {
    min-width: 64px;
    padding: 5px 9px;
  }
}
@media (min-width: 741px) and (max-width: 1450px) {
  .funds {
    transform: translateX(-65%);
  }
}

/* ==========================================================
   Multiplayer & Enhanced UI Glow & 35s Room Retention Styles
   ========================================================== */

/* Topbar Multiplayer Button */
.shareNavButton {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(33, 221, 250, 0.12) 0%, rgba(47, 126, 255, 0.18) 100%);
  border: 1px solid rgba(33, 221, 250, 0.35);
  color: #21ddfa;
  font-weight: 800;
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: 0 0 14px rgba(33, 221, 250, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.shareNavButton:hover {
  background: linear-gradient(135deg, rgba(33, 221, 250, 0.22) 0%, rgba(47, 126, 255, 0.3) 100%);
  border-color: #21ddfa;
  color: #ffffff;
  box-shadow: 0 0 22px rgba(33, 221, 250, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.shareNavButton .icon {
  width: 18px;
  height: 18px;
}

/* Toolbar Multiplayer Button */
.shareBtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(33, 221, 250, 0.12) 0%, rgba(47, 126, 255, 0.22) 100%);
  border: 1px solid rgba(33, 221, 250, 0.3);
  color: #c9efff;
}
.shareBtn:hover {
  border-color: #21ddfa;
  background: linear-gradient(135deg, rgba(33, 221, 250, 0.22) 0%, rgba(47, 126, 255, 0.32) 100%);
  box-shadow: 0 0 18px rgba(33, 221, 250, 0.35);
}

/* Match Action Buttons */
.matchShareBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(33, 221, 250, 0.1);
  border: 1px solid rgba(33, 221, 250, 0.3);
  color: #21ddfa;
}
.matchShareBtn:hover {
  background: rgba(33, 221, 250, 0.2);
  border-color: #21ddfa;
}

.copyRoomLink {
  padding: 8px 10px;
  color: #97a5bd;
  transition: all 0.18s ease;
}
.copyRoomLink:hover {
  color: #21ddfa;
  border-color: rgba(33, 221, 250, 0.4);
  background: rgba(33, 221, 250, 0.1);
  box-shadow: 0 0 12px rgba(33, 221, 250, 0.25);
}

/* Completed Rooms (Clean retention in lobby) */
.room.roomComplete {
  background: #151c2e;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.room.roomComplete:hover {
  border-color: #384666;
}

/* Expiry Countdown Badge */
.roomExpiry {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #21ddfa;
  background: rgba(33, 221, 250, 0.1);
  border: 1px solid rgba(33, 221, 250, 0.25);
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.pulseDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #21ddfa;
  animation: pulseBlink 1.4s ease-in-out infinite;
}
@keyframes pulseBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

/* Winner (Single clean crisp light, no double outline) */
.championRing,
.duelChampion .duelPortrait,
.coinChampion .coinPortrait {
  position: relative;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #ffca04 !important;
}

/* Loser (Darkened and faded so it's obvious they lost) */
.loserPortrait,
.duelLoser .duelPortrait,
.coinLoser .coinPortrait {
  opacity: 0.32 !important;
  filter: grayscale(0.85) brightness(0.6) !important;
  transition: all 0.25s ease;
}
.duelLoser b,
.coinLoser b,
.duelLoser .duelColors,
.coinLoser .coinPlayerSide {
  opacity: 0.45;
}

/* Bouncing Dots for Waiting for Opponent */
.bouncingDots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
  margin-left: 4px;
}
.bouncingDots i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #21ddfa;
  animation: dotBounce 1.2s ease-in-out infinite;
}
.bouncingDots i:nth-child(1) { animation-delay: 0s; }
.bouncingDots i:nth-child(2) { animation-delay: 0.16s; }
.bouncingDots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes dotBounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-5px);
    opacity: 1;
    background-color: #5ca4ff;
  }
}

/* Auto Select Button */
.autoSelectBtn {
  background: linear-gradient(135deg, rgba(33, 221, 250, 0.15) 0%, rgba(47, 126, 255, 0.2) 100%);
  border: 1px solid rgba(33, 221, 250, 0.35);
  color: #21ddfa;
  font-weight: 800;
  transition: all 0.18s ease;
}
.autoSelectBtn:hover {
  background: linear-gradient(135deg, rgba(33, 221, 250, 0.25) 0%, rgba(47, 126, 255, 0.3) 100%);
  border-color: #21ddfa;
  color: #ffffff;
}

/* Winning score text */
.winningScore {
  color: #ffca04;
  font-weight: 900;
}

/* View Button for Completed Rooms (Clean primary blue, not green) */
.primaryView {
  background: linear-gradient(135deg, #2f7eff 0%, #1557d8 100%);
  border-color: #4a90ff;
  color: #ffffff;
}
.primaryView:hover {
  background: linear-gradient(135deg, #3d8aff 0%, #1d60e6 100%);
  border-color: #619eff;
}

/* Taken Color for Join Modal */
.colorChoice.takenColor {
  opacity: 0.45;
  cursor: not-allowed;
  position: relative;
  filter: grayscale(0.5);
}
.takenTag {
  display: block;
  font-size: 8px;
  text-transform: uppercase;
  color: #ff5c6b;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Share Multiplayer Modal Styles */
.shareHero {
  text-align: center;
  padding: 10px 0 18px;
}
.shareHero h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 30%, #21ddfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.shareHero p {
  margin: 0;
  color: #97a5bd;
  font-size: 13px;
  line-height: 1.45;
}

.shareCard {
  background: rgba(11, 16, 38, 0.6);
  border: 1px solid rgba(49, 57, 80, 0.7);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.shareCard small {
  display: block;
  margin-bottom: 8px;
  color: #21ddfa;
  font-weight: 800;
  letter-spacing: 1px;
}
.shareInputRow {
  display: flex;
  gap: 10px;
}
.shareInputRow input {
  flex: 1;
  font-family: Consolas, monospace;
  font-size: 13px;
  color: #e2e8f0;
  background: #060914;
  border: 1px solid #1f273b;
}
.shareInputRow button {
  white-space: nowrap;
}

.shareGuideBox {
  background: rgba(47, 126, 255, 0.08);
  border: 1px dashed rgba(47, 126, 255, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
}
.shareGuideBox b {
  color: #5ca4ff;
  font-size: 13px;
}
.shareGuideBox p {
  margin: 6px 0 0;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.45;
}
.shareGuideBox code {
  background: #0b1026;
  border: 1px solid #232c42;
  color: #21ddfa;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
}

.formHint {
  margin: 8px 0 0;
  font-size: 11px;
  color: #7d8b9f;
}

.highlightTunnelCard {
  background: linear-gradient(135deg, rgba(33, 221, 250, 0.12) 0%, rgba(47, 126, 255, 0.15) 100%) !important;
  border: 1px solid rgba(33, 221, 250, 0.45) !important;
  box-shadow: 0 0 20px rgba(33, 221, 250, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.tunnelHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.tunnelHeader small {
  margin-bottom: 0 !important;
  color: #21ddfa;
  font-weight: 900;
}
.tunnelLiveDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00be8a;
  box-shadow: 0 0 8px #00be8a;
  animation: pulseBlink 1.2s ease-in-out infinite;
}
.copyPassBtn {
  background: #1f273b;
  border: 1px solid #384666;
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 6px;
  cursor: pointer;
}
.copyPassBtn:hover {
  background: #2f3b58;
  color: #ffffff;
  border-color: #5ca4ff;
}

@media (max-width: 480px) {
  .shareNavButton span {
    display: none;
  }
  .shareInputRow {
    flex-direction: column;
  }
}

/* Mobile, iPad & Console UI Enhancements */
@media (max-width: 900px) {
  .modal {
    max-width: 95vw;
    width: 95vw;
    padding: 16px;
  }
  .duelArena {
    flex-direction: column;
    gap: 16px;
  }
  .duelPlayer {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .modalBottom {
    position: sticky;
    bottom: -16px;
    background: #13192c;
    padding: 12px 0 6px;
    border-top: 1px solid var(--border);
    margin-top: 12px;
  }
  .createActions {
    flex-wrap: wrap;
    gap: 8px;
  }
  .createActions button {
    flex: 1;
    min-width: 100px;
    min-height: 44px;
  }
  .colorChoices {
    justify-content: center;
  }
  .colorChoice {
    min-width: 44px;
    min-height: 44px;
  }
  .room {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .roomActions {
    justify-content: flex-end;
  }
}

/* Gamepad / Console Navigation Focus States */
:focus-visible {
  outline: 3px solid #21ddfa !important;
  outline-offset: 3px !important;
}

/* ==========================================================================
   Daily Bonus Modal
   ========================================================================== */
.dailyHero {
  text-align: center;
  margin-bottom: 20px;
}
.dailyHero h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 8px 0 4px;
  background: linear-gradient(135deg, #ffffff 0%, #21ddfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dailyHero p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.dailyIcon {
  font-size: 46px;
  display: inline-block;
  animation: floatGift 3s ease-in-out infinite;
}
@keyframes floatGift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(5deg); }
}
.streakInfo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.streakStat {
  background: rgba(21, 28, 46, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}
.streakStat small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}
.streakStat b {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.bonusDays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.bonusDay {
  background: #161e31;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: all 0.25s ease;
}
.bonusDay small {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
}
.bonusReward {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.bonusDay.bonusClaimed {
  background: rgba(0, 190, 138, 0.1);
  border-color: rgba(0, 190, 138, 0.4);
  opacity: 0.85;
}
.bonusCheck {
  color: var(--green);
  font-weight: 900;
  font-size: 15px;
}
.bonusDay.bonusReady {
  background: linear-gradient(180deg, rgba(33, 221, 250, 0.18), rgba(47, 126, 255, 0.22));
  border: 2px solid var(--cyan);
  box-shadow: 0 0 16px rgba(33, 221, 250, 0.35);
  transform: translateY(-2px);
}
.bonusStar {
  color: var(--yellow);
  font-size: 16px;
  animation: pulseStar 1.5s infinite alternate;
}
@keyframes pulseStar {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px var(--yellow)); }
  100% { transform: scale(1.25); filter: drop-shadow(0 0 6px var(--yellow)); }
}
.bonusDay.bonusLocked {
  opacity: 0.5;
}
.bonusLock svg {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
}
.bonusClaimBtn {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 12px;
  background: linear-gradient(135deg, #00be8a 0%, #21ddfa 100%);
  border: none;
  color: #070a14;
  box-shadow: 0 4px 18px rgba(33, 221, 250, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
}
.bonusClaimBtn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(33, 221, 250, 0.5);
  filter: brightness(1.1);
}
.bonusClaimBtn:disabled {
  background: #1f273b;
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

/* ==========================================================================
   Player Statistics Dashboard
   ========================================================================== */
.statsHero {
  text-align: center;
  margin-bottom: 20px;
}
.statsHero h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.statsHero p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.statsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.statCard {
  background: rgba(21, 28, 46, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.statCard:hover {
  border-color: rgba(33, 221, 250, 0.4);
  transform: translateY(-1px);
}
.statCardIcon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(35, 44, 66, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  font-size: 16px;
}
.statCardIcon svg {
  width: 18px;
  height: 18px;
  stroke: var(--cyan);
}
.statCard b {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.statCard small {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.statCard.positive b {
  color: #2ff3b3;
}
.statCard.negative b {
  color: #ff5768;
}
.statsBreakdown {
  margin-bottom: 18px;
}
.statsBreakdown h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
}
.statsGameRow {
  background: rgba(21, 28, 46, 0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 130px 90px 1fr 110px 100px;
  align-items: center;
  gap: 12px;
}
.statsGameName b {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.statsGameDetail {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.statsWinRate {
  font-weight: 700;
  color: var(--cyan);
  margin-left: auto;
}
.statsGameBar {
  height: 6px;
  background: #0c1221;
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
}
.statsBarFill {
  height: 100%;
  background: linear-gradient(90deg, #2f7eff, #21ddfa);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.statsGameProfit {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.statsGameProfit small {
  font-size: 10px;
  color: var(--muted);
}
.statsGameProfit em {
  font-style: normal;
  font-weight: 700;
}
.statsWallet {
  background: rgba(12, 18, 33, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 14px;
}
.statsWallet .settingRow {
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.statsWallet .settingRow:last-child {
  border-bottom: none;
}
.statsWallet .settingRow b {
  font-size: 13px;
  color: var(--muted);
}
.statsWallet .settingRow em,
.statsWallet .settingRow b:last-child {
  color: #fff;
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 600px) {
  .bonusDays {
    grid-template-columns: repeat(4, 1fr);
  }
  .statsGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .statsGameRow {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .statsGameBar {
    grid-column: span 2;
  }
}
