:root {
  --red-950: #170203;
  --red-900: #290405;
  --red-800: #53090b;
  --red-700: #851215;
  --red-600: #ba1b20;
  --felt-top: #dd302c;
  --felt-mid: #a60e12;
  --felt-low: #5f0508;
  --green-950: #021610;
  --green-900: #043324;
  --green-700: #08724c;
  --gold-100: #fff1b8;
  --gold-300: #f7cf6b;
  --gold-500: #d89925;
  --gold-700: #8d4e0b;
  --blue-500: #078db1;
  --ink: #090b0c;
  --cream: #fff7dc;
  --muted: #c7bfae;
  --header-h: clamp(70px, 9.6vh, 104px);
  --footer-h: clamp(82px, 11vh, 118px);
  --table-header-h: clamp(55px, 8vh, 72px);
  --action-h: clamp(76px, 12vh, 104px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #050706;
}

body,
button,
input {
  font-family: Tahoma, "Segoe UI", sans-serif;
}

body {
  color: var(--cream);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  padding: 0;
  border: 0;
  color: inherit;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
}

button:disabled {
  cursor: default;
}

img {
  display: block;
  max-width: 100%;
  pointer-events: none;
}

b,
strong,
em,
small {
  font-style: normal;
}

.app-shell,
.screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
}

.app-shell {
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.screen {
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.025);
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.screen.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.lobby-screen {
  display: grid;
  grid-template-rows: var(--header-h) minmax(0, 1fr) var(--footer-h);
  background:
    linear-gradient(90deg, rgba(16, 1, 3, 0.92), rgba(50, 4, 8, 0.38) 22%, rgba(26, 2, 5, 0.12) 50%, rgba(50, 4, 8, 0.38) 78%, rgba(16, 1, 3, 0.92)),
    linear-gradient(180deg, rgba(16, 1, 3, 0.18), rgba(9, 1, 2, 0.84)),
    url("./assets/game/lobby-background.png") center / cover no-repeat;
}

.lobby-screen::after {
  content: "";
  position: absolute;
  inset: var(--header-h) 0 var(--footer-h);
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 72%, rgba(247, 36, 43, 0.22), transparent 42%),
    linear-gradient(180deg, transparent 62%, rgba(7, 0, 1, 0.52));
  pointer-events: none;
}

.lobby-atmosphere,
.room-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.lobby-light {
  position: absolute;
  top: 12%;
  width: 31vw;
  height: 66%;
  border-radius: 50%;
  opacity: 0.38;
  filter: blur(65px);
  background: #ba1722;
}

.lobby-light-left {
  left: -17vw;
}

.lobby-light-right {
  right: -17vw;
}

.floating-chip {
  position: absolute;
  width: 42px;
  aspect-ratio: 1;
  border: 5px dashed rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  opacity: 0.2;
  background: #c21822;
  box-shadow: inset 0 0 0 4px #6a0710, 0 12px 20px rgba(0, 0, 0, 0.6);
  animation: chip-float 7s ease-in-out infinite;
}

.floating-chip-one {
  top: 23%;
  left: 8%;
  rotate: 21deg;
}

.floating-chip-two {
  right: 9%;
  bottom: 22%;
  scale: 0.72;
  animation-delay: -3.5s;
}

.lobby-header {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
  gap: 18px;
  padding: max(8px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 10px max(22px, env(safe-area-inset-left));
  direction: ltr;
  background:
    linear-gradient(180deg, rgba(31, 2, 4, 0.98), rgba(72, 6, 10, 0.86)),
    url("./assets/game/lobby-header.png") center bottom / 100% 100% no-repeat;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.58);
}

.lobby-header::after,
.lobby-footer::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ed4c45 18%, var(--gold-300) 50%, #ed4c45 82%, transparent);
  box-shadow: 0 0 12px rgba(244, 56, 51, 0.72);
}

.lobby-profile-cluster {
  position: relative;
  justify-self: start;
  min-width: 210px;
}

.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
  background: transparent;
}

.profile-avatar,
.hero-avatar {
  display: grid;
  flex: 0 0 auto;
  width: clamp(50px, 5vw, 64px);
  aspect-ratio: 1;
  place-items: center;
  border: 3px solid var(--gold-300);
  border-radius: 50%;
  color: var(--gold-100);
  background:
    radial-gradient(circle at 35% 26%, #2f9d76, #07503b 52%, #031c16 100%);
  box-shadow:
    0 0 0 3px rgba(55, 9, 7, 0.94),
    0 5px 13px rgba(0, 0, 0, 0.52),
    inset 0 0 12px rgba(0, 0, 0, 0.48);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 900;
}

.profile-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: left;
}

.profile-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: clamp(12px, 1.3vw, 17px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy small {
  color: #d9b966;
  font-size: 10px;
}

.level-progress {
  position: absolute;
  bottom: -5px;
  left: 59px;
  width: min(145px, 13vw);
  height: 5px;
  overflow: hidden;
  border-radius: 8px;
  background: #160203;
}

.level-progress i {
  display: block;
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, #f29f1f, #fff293);
  box-shadow: 0 0 8px #f8c44f;
}

.lobby-brand,
.table-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  direction: ltr;
}

.lobby-brand {
  gap: 12px;
  filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.5));
}

.brand-cards {
  position: relative;
  width: 46px;
  height: 52px;
}

.brand-cards i {
  position: absolute;
  display: grid;
  width: 34px;
  height: 47px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 5px;
  color: #090909;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.42);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 900;
}

.brand-cards i:first-child {
  left: 1px;
  rotate: -11deg;
}

.brand-cards i:last-child {
  right: 0;
  color: #ca131d;
  rotate: 9deg;
}

.brand-wordmark {
  display: grid;
  text-align: left;
}

.brand-wordmark strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 2.5vw, 35px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.brand-wordmark strong span,
.table-brand em {
  color: #ec3339;
}

.brand-wordmark small {
  margin-top: 5px;
  color: #d9ba6c;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.32em;
}

.lobby-balance-cluster {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
}

.balance-pill,
.table-wallet {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 158px;
  padding: 7px 15px 7px 9px;
  border: 1px solid rgba(255, 217, 113, 0.42);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(31, 4, 5, 0.88), rgba(9, 1, 2, 0.92));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09), 0 5px 12px rgba(0, 0, 0, 0.42);
}

.balance-pill > span:last-child {
  display: grid;
  text-align: left;
}

.balance-pill small {
  color: #b8a987;
  font-size: 8px;
}

.balance-pill strong,
.table-wallet strong {
  color: #fff2bd;
  font-size: 13px;
}

.chip-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 28px;
  aspect-ratio: 1;
  border: 4px dashed rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #b9111a;
  box-shadow: inset 0 0 0 3px #6d070d, 0 3px 6px rgba(0, 0, 0, 0.52);
}

.chip-icon::after {
  content: "PN";
  position: absolute;
  inset: 4px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff3c0;
  font-size: 5px;
  font-weight: 900;
}

.header-icon-button,
.hud-round-button {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 218, 128, 0.45);
  border-radius: 50%;
  color: #fff2c2;
  background: linear-gradient(145deg, #701014, #260305);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2), 0 5px 12px rgba(0, 0, 0, 0.5);
}

.header-icon-button {
  width: 44px;
  aspect-ratio: 1;
  font-size: 19px;
}

.lobby-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  padding: clamp(13px, 2.2vh, 26px) clamp(24px, 5vw, 80px) 12px;
}

.lobby-heading {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
  animation: lobby-heading-in 0.48s ease-out both;
}

.eyebrow,
.dialog-kicker {
  color: var(--gold-300);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.25em;
}

.lobby-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 3.6vw, 50px);
  line-height: 1.05;
  text-shadow: 0 5px 13px #000;
}

.lobby-heading p {
  margin: 0;
  color: #d2c6b9;
  font-size: clamp(10px, 1.1vw, 14px);
}

.game-showcase {
  align-self: center;
  justify-self: center;
  display: grid;
  grid-template-columns: minmax(290px, 430px) minmax(250px, 350px);
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  width: min(900px, 92vw);
  max-height: 100%;
  direction: ltr;
  perspective: 1200px;
}

.game-card {
  position: relative;
  display: grid;
  width: 100%;
  min-height: clamp(330px, 51vh, 515px);
  overflow: hidden;
  border: 2px solid #c88820;
  border-radius: 24px;
  direction: ltr;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 70, 53, 0.05), rgba(29, 0, 3, 0.74)),
    url("./assets/game/holdem-card-background.png") center / cover no-repeat;
  box-shadow:
    0 24px 44px rgba(0, 0, 0, 0.62),
    0 0 0 6px rgba(26, 2, 3, 0.86),
    inset 0 0 35px rgba(255, 57, 44, 0.24);
  transform: rotateY(-3deg);
  transition: transform 0.2s ease, filter 0.2s ease;
  animation: card-showcase-in 0.52s 0.08s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.game-card:hover {
  filter: brightness(1.08);
  transform: rotateY(0) translateY(-5px);
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 224, 139, 0.42);
  border-radius: 18px;
}

.game-card-shine {
  position: absolute;
  top: -25%;
  left: -42%;
  width: 38%;
  height: 150%;
  rotate: 20deg;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  animation: card-shine 4.5s 1s ease-in-out infinite;
}

.game-card-tag {
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 2;
  padding: 7px 19px;
  border: 1px solid #ffdc7d;
  border-radius: 0 0 14px 14px;
  color: #491004;
  background: linear-gradient(180deg, #fff0a5, #d58a1d);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  font-size: 10px;
  font-weight: 900;
  transform: translateX(-50%);
}

.holdem-emblem {
  position: absolute;
  top: 13%;
  left: 50%;
  width: min(47%, 190px);
  filter: drop-shadow(0 13px 12px rgba(0, 0, 0, 0.52));
  transform: translateX(-50%);
}

.game-card-title {
  position: absolute;
  top: 53%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 90%;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
  text-shadow: 0 4px 2px #3c0003, 0 0 16px #f6322d;
  transform: translateX(-50%);
}

.game-card-title b {
  font-size: clamp(25px, 3.4vw, 46px);
  line-height: 0.9;
}

.game-card-title strong {
  color: var(--gold-100);
  font-size: clamp(30px, 4.3vw, 58px);
  letter-spacing: 0.04em;
}

.game-card-details {
  position: absolute;
  right: 8%;
  bottom: 15%;
  left: 8%;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255, 222, 139, 0.3);
  border-radius: 11px;
  background: rgba(20, 0, 2, 0.66);
  backdrop-filter: blur(6px);
}

.game-card-details > span {
  display: grid;
  gap: 3px;
  padding: 9px 12px;
}

.game-card-details > span + span {
  border-left: 1px solid rgba(255, 223, 148, 0.2);
}

.game-card-details small {
  color: #c6ab88;
  font-size: 8px;
}

.game-card-details b {
  color: #fff2b7;
  font-size: 11px;
}

.game-card-details em {
  font-style: normal;
}

.online-dot {
  display: inline-block;
  width: 6px;
  aspect-ratio: 1;
  margin-right: 4px;
  border-radius: 50%;
  background: #49ec9b;
  box-shadow: 0 0 7px #49ec9b;
}

.game-card-cta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  height: 12%;
  place-items: center;
  border-top: 1px solid #f5c453;
  color: #401003;
  background: linear-gradient(180deg, #ffe985, #e19b24 55%, #ad5d0e);
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 900;
  text-shadow: 0 1px rgba(255, 255, 255, 0.6);
}

.quick-table-column {
  display: grid;
  gap: 13px;
  direction: rtl;
  animation: quick-column-in 0.52s 0.16s ease-out both;
}

.quick-table-card {
  position: relative;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 102px;
  padding: 12px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 209, 104, 0.5);
  border-radius: 16px;
  text-align: right;
  background:
    radial-gradient(circle at 15% 20%, rgba(235, 57, 52, 0.35), transparent 32%),
    linear-gradient(145deg, rgba(92, 10, 13, 0.94), rgba(23, 2, 4, 0.96));
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.1);
  transition: translate 0.18s ease, border-color 0.18s ease;
}

.quick-table-card:hover {
  border-color: var(--gold-300);
  translate: -5px 0;
}

.quick-table-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: url("./assets/game/felt-pattern.png");
  mix-blend-mode: soft-light;
}

.quick-table-card > * {
  position: relative;
  z-index: 1;
}

.quick-card-icon {
  display: grid;
  width: 68px;
  aspect-ratio: 1;
  place-items: center;
  border: 3px solid #f8d278;
  border-radius: 50%;
  color: #101010;
  background: linear-gradient(145deg, #fff, #d9d9d9);
  box-shadow: 0 7px 13px rgba(0, 0, 0, 0.48), inset 0 0 0 4px #a51418;
  font-family: Georgia, serif;
  font-size: 37px;
  font-weight: 900;
}

.quick-card-friends {
  color: #fff6c8;
  background: linear-gradient(145deg, #e72f2f, #78060b);
  box-shadow: 0 7px 13px rgba(0, 0, 0, 0.48), inset 0 0 0 4px #280103;
}

.quick-table-card > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.quick-table-card small {
  color: var(--gold-300);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.quick-table-card strong {
  color: #fff;
  font-family: Georgia, serif;
  font-size: clamp(16px, 1.8vw, 22px);
}

.quick-table-card b {
  color: #bfb4a5;
  font-size: 9px;
}

.quick-table-card > i {
  color: var(--gold-300);
  font-size: 29px;
}

.omaha-table-card {
  background:
    radial-gradient(circle at 15% 20%, rgba(25, 150, 101, 0.38), transparent 34%),
    linear-gradient(145deg, rgba(7, 85, 58, 0.95), rgba(4, 27, 21, 0.98));
}

.lobby-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(7, 1, 2, 0.58);
}

.lobby-note > span {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--gold-500);
  border-radius: 10px 3px 10px 3px;
  color: #260202;
  background: linear-gradient(145deg, #ffe990, #b96c12);
  font-family: Georgia, serif;
  font-weight: 900;
}

.lobby-note p {
  display: grid;
  gap: 3px;
  margin: 0;
  text-align: right;
}

.lobby-note b {
  color: #fff2c4;
  font-size: 11px;
}

.lobby-note small {
  color: #aa9d91;
  font-size: 9px;
}

.lobby-footer {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px max(24px, env(safe-area-inset-right)) max(9px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  direction: ltr;
  background:
    linear-gradient(0deg, rgba(20, 1, 3, 0.99), rgba(58, 5, 8, 0.9)),
    url("./assets/game/lobby-footer.png") center top / 100% 100% no-repeat;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.lobby-footer::before {
  top: 0;
  bottom: auto;
}

.lobby-nav {
  grid-column: 2;
  display: flex;
  align-self: stretch;
  direction: rtl;
}

.lobby-nav button {
  position: relative;
  display: grid;
  min-width: clamp(80px, 9vw, 126px);
  place-items: center;
  align-content: center;
  gap: 4px;
  background: transparent;
}

.lobby-nav button::before {
  content: "";
  position: absolute;
  top: -12px;
  right: 12%;
  left: 12%;
  height: 3px;
  opacity: 0;
  background: var(--gold-300);
  box-shadow: 0 0 10px var(--gold-300);
}

.lobby-nav button.is-active::before {
  opacity: 1;
}

.lobby-nav span {
  display: grid;
  width: 28px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #cab780;
  background: rgba(0, 0, 0, 0.28);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 900;
}

.lobby-nav button.is-active span {
  color: #3a0b03;
  background: linear-gradient(145deg, #fff2a5, #d38a19);
}

.lobby-nav b {
  color: #d9d0bd;
  font-size: 9px;
}

.footer-play-button {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid #ffe799;
  border-radius: 12px;
  color: #391003;
  background: linear-gradient(180deg, #ffe998, #db911d 62%, #9a4a09);
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.55), 0 7px 14px rgba(0, 0, 0, 0.5);
  font-weight: 900;
}

.footer-play-button i {
  font-size: 26px;
}

.table-screen {
  display: grid;
  grid-template-rows: var(--table-header-h) minmax(0, 1fr) var(--action-h);
  direction: ltr;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(23, 104, 70, 0.46), transparent 42%),
    linear-gradient(90deg, #031c15, #072e22 19%, #160304 43%, #160304 57%, #072e22 81%, #031c15);
}

.table-screen::before {
  content: "";
  position: absolute;
  inset: var(--table-header-h) 0 var(--action-h);
  z-index: -1;
  opacity: 0.22;
  background:
    linear-gradient(110deg, transparent 48%, rgba(255, 255, 255, 0.09) 49%, transparent 51%) 0 0 / 42px 42px,
    radial-gradient(circle at 50% 28%, rgba(81, 18, 18, 0.5), transparent 46%);
}

.room-column {
  position: absolute;
  top: 7%;
  bottom: 9%;
  width: 19%;
  border: 1px solid rgba(51, 195, 129, 0.13);
  background:
    repeating-linear-gradient(90deg, rgba(4, 36, 26, 0.8) 0 15px, rgba(8, 79, 53, 0.34) 15px 17px),
    linear-gradient(180deg, #0a4a34, #02140f);
  box-shadow: inset 0 0 45px #000;
}

.room-column-left {
  left: 0;
  clip-path: polygon(0 0, 76% 0, 100% 100%, 0 100%);
}

.room-column-right {
  right: 0;
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
}

.room-floor {
  position: absolute;
  right: 12%;
  bottom: 7%;
  left: 12%;
  height: 35%;
  border-radius: 50%;
  opacity: 0.58;
  background: radial-gradient(ellipse, rgba(20, 90, 60, 0.46), rgba(2, 14, 11, 0.04) 67%);
  filter: blur(18px);
}

.table-topbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  align-items: center;
  gap: 20px;
  padding: max(6px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 6px max(14px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(249, 198, 79, 0.45);
  background: linear-gradient(180deg, rgba(45, 3, 5, 0.99), rgba(18, 1, 2, 0.97));
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.58);
}

.table-topbar-left,
.table-topbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
}

.table-topbar-left {
  justify-self: start;
}

.table-topbar-right {
  justify-self: end;
}

.hud-round-button {
  width: clamp(38px, 4.2vw, 48px);
  aspect-ratio: 1;
  font-size: 24px;
}

.table-identity {
  display: grid;
  justify-items: center;
  min-width: 160px;
  padding: 4px 17px;
  border-right: 1px solid rgba(255, 217, 119, 0.24);
  border-left: 1px solid rgba(255, 217, 119, 0.24);
}

.table-identity span {
  color: #d2c4a9;
  font-size: 9px;
}

.table-identity span b {
  color: #fff4cc;
}

.table-identity strong {
  color: var(--gold-300);
  font-size: 12px;
}

.table-brand {
  gap: 7px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: clamp(16px, 1.7vw, 24px);
  letter-spacing: -0.05em;
}

.table-brand > span {
  color: #fff;
  font-size: 26px;
}

.table-wallet {
  min-width: 135px;
  padding-block: 5px;
}

.table-wallet .chip-icon {
  width: 24px;
}

.table-stage {
  position: relative;
  z-index: 2;
  width: min(1240px, 94vw);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
}

.table-geometry {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(78vw, 1050px);
  aspect-ratio: 2.12 / 1;
  transform: translate(-50%, -49%);
  filter: drop-shadow(0 26px 22px rgba(0, 0, 0, 0.65));
  animation: table-enter 0.58s ease-out both;
}

.table-rail {
  position: absolute;
  inset: 0;
  padding: clamp(18px, 2vw, 31px);
  border: 3px solid #a92727;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% -12%, rgba(255, 255, 255, 0.24), transparent 30%),
    repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.035) 0 11px, rgba(0, 0, 0, 0.04) 11px 22px),
    linear-gradient(180deg, #3b1112, #0b090a 24%, #080909 60%, #2b080a 100%);
  box-shadow:
    0 0 0 7px #070707,
    0 0 0 10px #621012,
    inset 0 6px 7px rgba(255, 255, 255, 0.18),
    inset 0 -16px 22px rgba(0, 0, 0, 0.86),
    0 0 40px rgba(10, 126, 83, 0.18);
}

.table-rail::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid rgba(255, 64, 57, 0.72);
  border-radius: inherit;
  box-shadow: 0 0 12px rgba(237, 37, 39, 0.5), inset 0 0 12px rgba(237, 37, 39, 0.25);
}

.table-felt {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 4px solid #5b0709;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255, 93, 76, 0.35), transparent 42%),
    linear-gradient(rgba(178, 17, 20, 0.83), rgba(90, 3, 7, 0.92)),
    url("./assets/game/felt-pattern.png") center / 220px 220px;
  background-blend-mode: screen, multiply, soft-light;
  box-shadow:
    inset 0 0 0 2px rgba(255, 107, 82, 0.32),
    inset 0 18px 28px rgba(255, 74, 62, 0.12),
    inset 0 -34px 45px rgba(37, 0, 2, 0.7);
}

.felt-stitch {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 197, 146, 0.2);
  border-radius: 50%;
}

.felt-monogram,
.felt-subtitle {
  position: absolute;
  left: 50%;
  color: rgba(255, 229, 185, 0.09);
  font-family: Georgia, serif;
  font-weight: 900;
  transform: translateX(-50%);
}

.felt-monogram {
  top: 48%;
  font-size: clamp(48px, 7vw, 105px);
  letter-spacing: 0.05em;
}

.felt-subtitle {
  top: 68%;
  font-size: clamp(8px, 1vw, 14px);
  letter-spacing: 0.35em;
}

.pot-display {
  position: absolute;
  top: 22%;
  left: 50%;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 115px;
  padding: 5px 14px;
  border: 1px solid rgba(255, 215, 123, 0.36);
  border-radius: 999px;
  direction: ltr;
  background: linear-gradient(180deg, rgba(68, 5, 7, 0.84), rgba(19, 1, 2, 0.88));
  box-shadow: 0 7px 12px rgba(0, 0, 0, 0.38);
  transform: translateX(-50%);
}

.pot-display > span:last-child {
  display: grid;
  text-align: left;
}

.pot-display small {
  color: #cda991;
  font-size: 7px;
}

.pot-display strong {
  color: #fff0b8;
  font-size: 11px;
}

.pot-chip-stack {
  position: relative;
  width: 28px;
  height: 22px;
}

.pot-chip-stack i {
  position: absolute;
  width: 21px;
  height: 7px;
  border: 2px dashed #fff;
  border-radius: 50%;
  background: #138761;
  box-shadow: inset 0 0 0 2px #074f3b;
}

.pot-chip-stack i:nth-child(1) {
  bottom: 0;
  left: 0;
}

.pot-chip-stack i:nth-child(2) {
  bottom: 5px;
  left: 4px;
}

.pot-chip-stack i:nth-child(3) {
  bottom: 10px;
  left: 2px;
}

.community-cards {
  position: absolute;
  top: 47%;
  left: 50%;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.45vw, 8px);
  direction: ltr;
  transform: translate(-50%, -50%);
}

.playing-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(45px, 5vw, 76px);
  aspect-ratio: 215 / 305;
  overflow: hidden;
  border-radius: clamp(5px, 0.65vw, 10px);
  opacity: 0;
  filter: drop-shadow(0 8px 6px rgba(27, 0, 1, 0.52));
  transform: translateY(-22px) scale(0.9);
  animation: deal-card 0.3s forwards;
}

.playing-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-slot {
  display: block;
  width: clamp(45px, 5vw, 76px);
  aspect-ratio: 215 / 305;
  border: 1px solid rgba(255, 230, 199, 0.17);
  border-radius: clamp(5px, 0.65vw, 10px);
  background: rgba(47, 0, 3, 0.15);
  box-shadow: inset 0 0 14px rgba(31, 0, 1, 0.22);
}

.dealer-puck {
  position: absolute;
  right: 24%;
  bottom: 27%;
  z-index: 9;
  display: grid;
  width: 27px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid #c5c5c5;
  border-radius: 50%;
  color: #222;
  background: linear-gradient(145deg, #fff, #cfcfcf);
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.55);
  font-size: 10px;
  font-weight: 900;
}

.players {
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
}

.seat {
  position: absolute;
  display: grid;
  grid-template-columns: 47px minmax(75px, 1fr);
  align-items: center;
  min-width: 139px;
  min-height: 52px;
  padding: 4px 12px 4px 4px;
  border: 1px solid rgba(255, 207, 96, 0.58);
  border-radius: 999px;
  direction: ltr;
  background: linear-gradient(180deg, rgba(65, 11, 10, 0.97), rgba(11, 7, 7, 0.98));
  box-shadow:
    0 9px 16px rgba(0, 0, 0, 0.58),
    0 0 0 3px rgba(6, 6, 6, 0.86),
    inset 0 1px rgba(255, 255, 255, 0.14);
  opacity: 0;
  animation: seat-enter 0.35s forwards;
}

.seat.active {
  border-color: #4cf0a5;
  box-shadow:
    0 0 0 3px rgba(7, 40, 28, 0.9),
    0 0 18px rgba(62, 239, 157, 0.54),
    inset 0 1px rgba(255, 255, 255, 0.14);
}

.seat.folded {
  opacity: 0.46 !important;
  filter: grayscale(0.7);
}

.seat.is-empty {
  min-width: 96px;
  grid-template-columns: 32px 1fr;
  opacity: 0.42;
}

.seat-avatar {
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid #e3b251;
  border-radius: 50%;
  color: #fff1ba;
  background: radial-gradient(circle at 35% 25%, #278c69, #083d30 60%, #031a15);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 900;
}

.seat.is-empty .seat-avatar {
  width: 29px;
  border-color: #675d4e;
  color: #867c6d;
  background: #181818;
}

.seat-copy {
  display: grid;
  min-width: 0;
  text-align: left;
}

.seat-name {
  overflow: hidden;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seat-stack {
  color: #eecb72;
  font-size: 9px;
}

.seat-status {
  color: #80d9b6;
  font-size: 7px;
}

.seat-hole-cards {
  position: absolute;
  bottom: 78%;
  left: 22px;
  display: flex;
  direction: ltr;
  transform: translateX(-50%);
}

.mini-card-back {
  display: block;
  width: 25px;
  aspect-ratio: 215 / 305;
  margin-left: -13px;
  border: 1px solid white;
  border-radius: 3px;
  background: url("./assets/game/cards/Card_Back.png") center / contain no-repeat;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.65));
}

.seat-hole-cards .mini-card-back:first-child {
  margin-left: 0;
}

.seat-1 {
  top: 18%;
  left: 7%;
}

.seat-2 {
  top: 3%;
  left: 31%;
  transform: translateX(-50%);
}

.seat-3 {
  top: 3%;
  right: 31%;
  transform: translateX(50%);
}

.seat-4 {
  top: 18%;
  right: 7%;
}

.seat-5 {
  top: 57%;
  right: 1%;
}

.seat-6 {
  top: 57%;
  left: 1%;
}

.hero-player {
  position: absolute;
  bottom: -2px;
  left: 50%;
  z-index: 13;
  display: grid;
  justify-items: center;
  transform: translateX(-50%);
}

.hero-cards {
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 72px;
  direction: ltr;
}

.hero-cards .playing-card {
  width: clamp(60px, 6vw, 91px);
  margin-left: -17px;
  transform-origin: bottom center;
}

.hero-cards .playing-card:first-child {
  margin-left: 0;
}

.hero-cards[data-card-count="2"] .playing-card:first-child {
  rotate: -7deg;
}

.hero-cards[data-card-count="2"] .playing-card:last-child {
  rotate: 7deg;
}

.hero-cards[data-card-count="5"] .playing-card {
  width: clamp(48px, 5vw, 77px);
  margin-left: clamp(-25px, -1.8vw, -15px);
}

.hero-cards[data-card-count="5"] .playing-card:nth-child(1) {
  rotate: -10deg;
  translate: 0 8px;
}

.hero-cards[data-card-count="5"] .playing-card:nth-child(2) {
  rotate: -5deg;
  translate: 0 2px;
}

.hero-cards[data-card-count="5"] .playing-card:nth-child(4) {
  rotate: 5deg;
  translate: 0 2px;
}

.hero-cards[data-card-count="5"] .playing-card:nth-child(5) {
  rotate: 10deg;
  translate: 0 8px;
}

.hero-player-hub {
  position: relative;
  display: grid;
  grid-template-columns: 47px minmax(90px, auto) 8px;
  align-items: center;
  min-width: 154px;
  min-height: 52px;
  margin-top: -5px;
  padding: 3px 9px 3px 3px;
  border: 2px solid var(--gold-300);
  border-radius: 999px;
  direction: ltr;
  background: linear-gradient(180deg, #5a1010, #0e0808);
  box-shadow: 0 9px 16px rgba(0, 0, 0, 0.62), 0 0 0 4px #070707;
}

.hero-avatar {
  width: 44px;
  border-width: 2px;
  font-size: 13px;
}

.hero-copy {
  display: grid;
  text-align: left;
}

.hero-copy b {
  color: #fff;
  font-size: 10px;
}

.hero-copy strong {
  color: #f4cc69;
  font-size: 10px;
}

.hero-status-light {
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #4ae99a;
  box-shadow: 0 0 8px #4ae99a;
}

.table-side-tools {
  position: absolute;
  top: 48%;
  z-index: 16;
  display: grid;
  gap: 9px;
  transform: translateY(-50%);
}

.table-side-tools-left {
  left: -2px;
}

.table-side-tools-right {
  right: -2px;
}

.table-side-tools button {
  display: grid;
  width: 52px;
  min-height: 48px;
  place-items: center;
  align-content: center;
  gap: 1px;
  border: 1px solid rgba(255, 215, 117, 0.35);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(61, 8, 9, 0.96), rgba(10, 8, 8, 0.98));
  box-shadow: 0 7px 12px rgba(0, 0, 0, 0.52);
}

.table-side-tools span {
  color: #fff1bb;
  font-family: Georgia, serif;
  font-size: 19px;
}

.table-side-tools small {
  color: #bbae94;
  font-size: 6px;
}

.bet-controls {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 0.8fr) minmax(440px, 2.2fr);
  align-items: stretch;
  gap: 10px;
  padding: 8px max(16px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border-top: 1px solid rgba(244, 200, 89, 0.4);
  direction: ltr;
  background: linear-gradient(180deg, rgba(40, 4, 5, 0.96), rgba(7, 6, 6, 0.99));
  box-shadow: 0 -9px 24px rgba(0, 0, 0, 0.58);
}

.turn-status {
  display: grid;
  place-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(255, 220, 127, 0.25);
  border-radius: 12px;
  color: #82e9bd;
  background: rgba(0, 0, 0, 0.25);
  font-family: Georgia, serif;
  font-size: clamp(11px, 1.25vw, 17px);
  font-weight: 800;
  text-align: center;
}

.turn-status.can-ready {
  border-color: var(--gold-300);
  color: #2d0a03;
  background: linear-gradient(180deg, #ffe98a, #d28a1b);
  box-shadow: 0 0 16px rgba(235, 176, 48, 0.32);
}

.raise-panel {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 4px 13px;
  border: 1px solid rgba(255, 216, 117, 0.2);
  border-radius: 12px;
  direction: ltr;
  background: rgba(0, 0, 0, 0.23);
}

.raise-panel > span {
  display: flex;
  justify-content: space-between;
}

.raise-panel small {
  color: #aa9b83;
  font-size: 8px;
}

.raise-panel strong {
  color: #f5cc64;
  font-size: 10px;
}

.raise-panel input {
  width: 100%;
  accent-color: #e2a42e;
}

.primary-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(84px, 1fr));
  grid-template-areas: "fold middle raise allin";
  gap: 7px;
  min-width: 0;
}

.poker-action {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  place-items: center;
  align-content: center;
  gap: 7px;
  min-width: 0;
  padding: 6px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  color: #fff;
  box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.22), 0 6px 12px rgba(0, 0, 0, 0.46);
  font-size: clamp(10px, 1.1vw, 14px);
  font-weight: 900;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.55);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.poker-action::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
}

.poker-action:not(:disabled):hover {
  filter: brightness(1.16);
  transform: translateY(-2px);
}

.poker-action:disabled {
  opacity: 0.46;
  filter: grayscale(0.45);
}

.poker-action img {
  width: clamp(27px, 3vw, 42px);
  max-height: 38px;
  object-fit: contain;
}

.poker-action strong {
  grid-column: 2;
  margin-top: -5px;
  color: #fff1b9;
  font-size: 8px;
}

.action-fold {
  grid-area: fold;
  background: linear-gradient(180deg, #b62a2c, #5d090d);
}

.action-check,
.action-call {
  grid-area: middle;
  background: linear-gradient(180deg, #1098b5, #07506a);
}

.action-raise {
  grid-area: raise;
  background: linear-gradient(180deg, #df9f27, #8b4b0c);
}

.action-allin {
  grid-area: allin;
  background: linear-gradient(180deg, #17855e, #06432f);
}

.allin-mark {
  display: grid;
  width: 33px;
  aspect-ratio: 1;
  place-items: center;
  border: 3px dashed white;
  border-radius: 50%;
  background: #15805c;
  font-size: 8px;
}

.poker-action.selected {
  outline: 2px solid var(--gold-100);
  filter: brightness(1.18);
}

.drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.drawer-layer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  background: rgba(2, 2, 2, 0.68);
  backdrop-filter: blur(5px);
}

.game-drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  width: min(400px, 91vw);
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  border-right: 1px solid rgba(255, 207, 98, 0.5);
  direction: rtl;
  background:
    linear-gradient(160deg, rgba(83, 8, 11, 0.94), rgba(17, 2, 4, 0.98) 58%, rgba(3, 29, 21, 0.98)),
    url("./assets/game/menu-background.png") center / cover;
  box-shadow: 20px 0 50px rgba(0, 0, 0, 0.72);
  transform: translateX(-105%);
  transition: transform 0.34s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.game-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: grid;
  grid-template-columns: 50px 1fr 35px;
  align-items: center;
  gap: 10px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 220, 131, 0.22);
}

.drawer-logo {
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--gold-300);
  border-radius: 13px 4px 13px 4px;
  color: #250303;
  background: linear-gradient(145deg, #fff0a4, #bb7011);
  font-family: Georgia, serif;
  font-weight: 900;
}

.drawer-header > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.drawer-header small {
  color: var(--gold-300);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.drawer-header strong {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 19px;
}

.drawer-header button,
.dialog-close {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 220, 142, 0.35);
  border-radius: 50%;
  color: #fff0c2;
  background: #4b080b;
  font-size: 21px;
}

.drawer-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 11px;
  border: 1px solid rgba(255, 213, 106, 0.22);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.28);
}

.drawer-avatar {
  width: 52px;
}

.drawer-profile > span:last-child {
  display: grid;
  gap: 4px;
}

.drawer-profile b {
  color: #fff;
  font-size: 13px;
}

.drawer-profile small {
  color: #b8a68d;
  font-size: 9px;
}

.drawer-menu {
  display: grid;
  gap: 7px;
}

.drawer-menu button {
  display: grid;
  grid-template-columns: 35px 1fr 20px;
  align-items: center;
  min-height: 50px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  text-align: right;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.045), rgba(0, 0, 0, 0.14));
}

.drawer-menu button:hover {
  border-color: rgba(255, 214, 111, 0.4);
  background: rgba(143, 17, 20, 0.3);
}

.drawer-menu span {
  display: grid;
  width: 31px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #3b0a03;
  background: linear-gradient(145deg, #fbe38e, #b56b12);
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 900;
}

.drawer-menu b {
  color: #efe8d7;
  font-size: 12px;
}

.drawer-menu i {
  color: var(--gold-300);
  font-size: 23px;
}

.drawer-settings {
  align-self: end;
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 220, 132, 0.18);
}

.setting-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 7px;
  color: #d9d0bf;
  background: transparent;
  font-size: 11px;
}

.setting-toggle i {
  position: relative;
  width: 39px;
  height: 21px;
  border-radius: 15px;
  background: #2a2524;
  box-shadow: inset 0 0 0 1px #514744;
}

.setting-toggle i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #9a8e80;
  transition: left 0.18s ease, background 0.18s ease;
}

.setting-toggle.is-on i {
  background: #a86c16;
}

.setting-toggle.is-on i::after {
  left: 21px;
  background: #fff0ae;
}

.drawer-version {
  color: #766c61;
  font-size: 8px;
  text-align: center;
}

.table-menu-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 15px 0;
}

.table-menu-summary span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 216, 111, 0.17);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.23);
}

.table-menu-summary small {
  color: #a99a86;
  font-size: 8px;
}

.table-menu-summary b {
  color: #ffe7a0;
  font-size: 11px;
}

.leave-table-button {
  align-self: end;
  min-height: 47px;
  margin-top: 18px;
  border: 1px solid #c84141;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(180deg, #a62226, #57080c);
  font-weight: 900;
}

dialog {
  color: var(--cream);
}

dialog::backdrop {
  background: rgba(1, 4, 3, 0.78);
  backdrop-filter: blur(8px);
}

.orientation-dialog,
.info-dialog {
  width: min(580px, calc(100vw - 28px));
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(255, 216, 113, 0.58);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(178, 33, 32, 0.34), transparent 43%),
    linear-gradient(155deg, #4b080b, #130204 58%, #03291d);
  box-shadow: 0 32px 85px rgba(0, 0, 0, 0.78), inset 0 0 0 3px rgba(255, 255, 255, 0.035);
}

.orientation-dialog[open],
.info-dialog[open] {
  animation: dialog-enter 0.3s ease-out both;
}

.orientation-panel,
.info-dialog-panel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(24px, 4vw, 38px);
  text-align: center;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.orientation-panel h2,
.info-dialog-panel h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(25px, 4vw, 36px);
}

.orientation-panel > p {
  margin: 0;
  color: #c6bbaa;
  font-size: 12px;
}

.orientation-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  direction: ltr;
}

.orientation-choice {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 185px;
  padding: 19px 10px;
  border: 1px solid rgba(255, 219, 126, 0.24);
  border-radius: 17px;
  background: linear-gradient(155deg, rgba(24, 90, 66, 0.68), rgba(9, 18, 15, 0.86));
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.orientation-choice:hover,
.orientation-choice.is-selected {
  border-color: var(--gold-300);
  background: linear-gradient(155deg, rgba(38, 125, 88, 0.76), rgba(70, 8, 10, 0.88));
  box-shadow: 0 0 20px rgba(224, 161, 38, 0.16);
  transform: translateY(-3px);
}

.orientation-device {
  display: grid;
  place-items: center;
  border: 3px solid #e9bd53;
  border-radius: 10px;
  background: radial-gradient(circle, #0e704d, #052319);
  box-shadow: 0 9px 14px rgba(0, 0, 0, 0.45), inset 0 0 0 2px #250406;
}

.orientation-device i {
  display: block;
  width: 74%;
  aspect-ratio: 2 / 1;
  border: 5px solid #191111;
  border-radius: 50%;
  background: radial-gradient(ellipse, #dc3430, #79070a);
  box-shadow: 0 0 0 2px #c38b22;
}

.orientation-device.is-landscape {
  width: 132px;
  aspect-ratio: 1.72 / 1;
}

.orientation-device.is-portrait {
  width: 77px;
  aspect-ratio: 0.58 / 1;
}

.orientation-device.is-portrait i {
  width: 92%;
}

.orientation-choice strong {
  font-size: 17px;
}

.orientation-choice small {
  color: #b5aa9a;
  font-size: 9px;
}

.info-dialog {
  width: min(520px, calc(100vw - 28px));
}

.profile-hero-avatar {
  display: grid;
  width: 92px;
  aspect-ratio: 1;
  margin-top: 5px;
  place-items: center;
  border: 4px solid var(--gold-300);
  border-radius: 50%;
  color: #fff1b2;
  background: radial-gradient(circle at 35% 25%, #35a77b, #064d38 62%, #021a13);
  box-shadow: 0 0 0 5px #3c0809, 0 10px 22px rgba(0, 0, 0, 0.55);
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 900;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  width: 100%;
  margin: 10px 0;
}

.profile-stats span {
  display: grid;
  gap: 5px;
  padding: 12px 7px;
  border: 1px solid rgba(255, 216, 114, 0.2);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.24);
}

.profile-stats small {
  color: #ac9d88;
  font-size: 8px;
}

.profile-stats strong {
  color: #ffe49a;
  font-size: 11px;
}

.online-copy {
  color: #69dda7 !important;
}

.gold-dialog-button {
  width: min(260px, 100%);
  min-height: 48px;
  border: 1px solid #ffe697;
  border-radius: 11px;
  color: #3b0d03;
  background: linear-gradient(180deg, #ffe98e, #d9911f);
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.5), 0 7px 14px rgba(0, 0, 0, 0.4);
  font-weight: 900;
}

.rules-panel {
  width: min(100%, 560px);
}

.rules-grid {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 9px 0;
}

.rules-grid > span {
  display: grid;
  grid-template-columns: 37px 1fr;
  align-items: center;
  gap: 11px;
  padding: 9px;
  border: 1px solid rgba(255, 216, 115, 0.16);
  border-radius: 10px;
  text-align: right;
  background: rgba(0, 0, 0, 0.22);
}

.rules-grid > span > b {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #3b0b03;
  background: linear-gradient(145deg, #ffe996, #b96e12);
}

.rules-grid p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.rules-grid strong {
  color: #fff;
  font-size: 11px;
}

.rules-grid small {
  color: #b7aa99;
  font-size: 9px;
}

@keyframes chip-float {
  50% {
    translate: 0 -18px;
    rotate: 18deg;
  }
}

@keyframes lobby-heading-in {
  from {
    opacity: 0;
    translate: 0 -14px;
  }
}

@keyframes card-showcase-in {
  from {
    opacity: 0;
    transform: rotateY(-8deg) translateY(24px) scale(0.94);
  }
}

@keyframes quick-column-in {
  from {
    opacity: 0;
    translate: 24px 0;
  }
}

@keyframes card-shine {
  0%,
  55% {
    left: -42%;
  }
  82%,
  100% {
    left: 125%;
  }
}

@keyframes table-enter {
  from {
    opacity: 0;
    transform: translate(-50%, -45%) scale(0.92);
  }
}

@keyframes seat-enter {
  from {
    opacity: 0;
    scale: 0.85;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes deal-card {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(17px) scale(0.96);
  }
}

html[data-table-orientation="portrait"] body {
  background: radial-gradient(circle at 50% 35%, #0b4934, #020b08 74%);
}

html[data-table-orientation="portrait"] .table-screen {
  right: auto;
  left: 50%;
  width: min(100vw, 620px);
  transform: translateX(-50%);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.78);
}

html[data-table-orientation="portrait"] .table-topbar {
  grid-template-columns: auto 1fr auto;
  gap: 8px;
}

html[data-table-orientation="portrait"] .table-brand {
  display: none;
}

html[data-table-orientation="portrait"] .table-wallet {
  min-width: auto;
}

html[data-table-orientation="portrait"] .table-identity {
  min-width: 0;
  padding-inline: 7px;
}

html[data-table-orientation="portrait"] .table-stage {
  width: 100%;
}

html[data-table-orientation="portrait"] .table-geometry {
  top: 46%;
  width: 112%;
  aspect-ratio: 1.72 / 1;
}

html[data-table-orientation="portrait"] .seat {
  grid-template-columns: 34px minmax(54px, 1fr);
  min-width: 91px;
  min-height: 39px;
  padding: 3px 7px 3px 3px;
}

html[data-table-orientation="portrait"] .seat-avatar {
  width: 32px;
}

html[data-table-orientation="portrait"] .seat-name,
html[data-table-orientation="portrait"] .seat-stack {
  font-size: 8px;
}

html[data-table-orientation="portrait"] .seat-status {
  display: none;
}

html[data-table-orientation="portrait"] .seat-1 {
  top: 17%;
  left: 1%;
}

html[data-table-orientation="portrait"] .seat-2 {
  top: 3%;
  left: 31%;
}

html[data-table-orientation="portrait"] .seat-3 {
  top: 3%;
  right: 31%;
}

html[data-table-orientation="portrait"] .seat-4 {
  top: 17%;
  right: 1%;
}

html[data-table-orientation="portrait"] .seat-5 {
  top: 57%;
  right: 0;
}

html[data-table-orientation="portrait"] .seat-6 {
  top: 57%;
  left: 0;
}

html[data-table-orientation="portrait"] .table-side-tools {
  display: none;
}

html[data-table-orientation="portrait"] .playing-card,
html[data-table-orientation="portrait"] .card-slot {
  width: clamp(39px, 11vw, 60px);
}

html[data-table-orientation="portrait"] .hero-cards .playing-card {
  width: clamp(53px, 14vw, 73px);
}

html[data-table-orientation="portrait"] .hero-cards[data-card-count="5"] .playing-card {
  width: clamp(42px, 11vw, 58px);
  margin-left: -20px;
}

html[data-table-orientation="portrait"] .bet-controls {
  grid-template-columns: 1fr;
  grid-template-rows: 24px 1fr;
  gap: 4px;
  padding: 5px 7px max(5px, env(safe-area-inset-bottom));
}

html[data-table-orientation="portrait"] .turn-status {
  min-height: 24px;
  padding: 2px 7px;
  font-size: 9px;
}

html[data-table-orientation="portrait"] .raise-panel {
  display: none;
}

html[data-table-orientation="portrait"] .primary-actions {
  min-height: 56px;
}

html[data-table-orientation="portrait"] .poker-action {
  padding: 4px 5px;
  gap: 3px;
  font-size: 9px;
}

html[data-table-orientation="portrait"] .poker-action img {
  width: 25px;
}

@media (max-width: 850px) {
  .lobby-header {
    grid-template-columns: 1fr auto 1fr;
    padding-inline: 10px;
  }

  .profile-copy,
  .level-progress,
  .balance-pill > span:last-child,
  .brand-wordmark small {
    display: none;
  }

  .lobby-profile-cluster,
  .balance-pill {
    min-width: 0;
  }

  .balance-pill {
    padding: 6px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .lobby-brand {
    gap: 6px;
  }

  .brand-cards {
    scale: 0.78;
    width: 38px;
  }

  .lobby-body {
    padding-inline: 14px;
  }

  .game-showcase {
    grid-template-columns: minmax(235px, 1.25fr) minmax(190px, 0.75fr);
    gap: 13px;
    width: 96vw;
  }

  .game-card {
    min-height: clamp(280px, 49vh, 410px);
  }

  .quick-table-card {
    grid-template-columns: 50px 1fr 12px;
    min-height: 82px;
    padding: 8px 10px;
  }

  .quick-card-icon {
    width: 48px;
    font-size: 27px;
  }

  .lobby-note {
    display: none;
  }

  .lobby-nav button {
    min-width: 68px;
  }

  .footer-play-button {
    min-width: 115px;
    padding-inline: 12px;
    font-size: 10px;
  }

  .table-topbar {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }

  .table-brand {
    display: none;
  }

  .table-geometry {
    width: 82vw;
  }

  .seat-1 {
    left: 2%;
  }

  .seat-4 {
    right: 2%;
  }

  .table-side-tools {
    display: none;
  }

  .bet-controls {
    grid-template-columns: minmax(125px, 0.6fr) minmax(130px, 0.7fr) minmax(380px, 2fr);
    gap: 5px;
    padding-inline: 7px;
  }

  .poker-action {
    padding-inline: 5px;
  }
}

@media (orientation: portrait), (max-width: 600px) {
  .lobby-screen {
    overflow-y: auto;
  }

  .lobby-header {
    position: sticky;
    top: 0;
    min-height: 70px;
  }

  .lobby-brand .brand-cards {
    display: none;
  }

  .brand-wordmark strong {
    font-size: 21px;
  }

  .lobby-body {
    min-height: 670px;
    padding-top: 18px;
  }

  .lobby-heading h1 {
    font-size: 27px;
  }

  .lobby-heading p {
    max-width: 310px;
    font-size: 10px;
  }

  .game-showcase {
    grid-template-columns: 1fr;
    width: min(360px, 92vw);
    padding: 13px 0 24px;
  }

  .game-card {
    min-height: 390px;
    transform: none;
  }

  .quick-table-column {
    width: 100%;
  }

  .lobby-footer {
    position: sticky;
    bottom: 0;
    grid-template-columns: 1fr;
    min-height: 82px;
    padding-inline: 8px;
  }

  .lobby-nav {
    grid-column: 1;
  }

  .lobby-nav button {
    min-width: 25%;
  }

  .footer-play-button {
    display: none;
  }

  .orientation-options {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  :root {
    --header-h: 61px;
    --footer-h: 66px;
    --table-header-h: 53px;
    --action-h: 73px;
  }

  .lobby-body {
    padding-top: 7px;
  }

  .lobby-heading {
    gap: 2px;
  }

  .lobby-heading h1 {
    font-size: 25px;
  }

  .lobby-heading p {
    display: none;
  }

  .game-card {
    min-height: 280px;
    max-height: 52vh;
  }

  .holdem-emblem {
    top: 10%;
    width: 38%;
  }

  .game-card-title {
    top: 48%;
  }

  .game-card-details {
    bottom: 14%;
  }

  .quick-table-card {
    min-height: 77px;
  }

  .lobby-nav span {
    width: 24px;
    font-size: 15px;
  }

  .table-geometry {
    width: min(72vw, 920px);
  }

  .seat {
    min-height: 42px;
  }

  .seat-avatar {
    width: 36px;
  }

  .hero-cards .playing-card {
    width: clamp(48px, 5.2vw, 71px);
  }

  .hero-cards[data-card-count="5"] .playing-card {
    width: clamp(42px, 4.4vw, 61px);
  }

  .hero-player-hub {
    min-height: 41px;
  }

  .hero-avatar {
    width: 34px;
  }

  .pot-display {
    top: 18%;
  }
}
.language-switch {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(239, 196, 99, 0.2);
  border-radius: 12px;
  background: rgba(8, 19, 22, 0.42);
  color: #f4e3bd;
}

.language-switch > span {
  font-size: 12px;
  font-weight: 800;
}

.language-switch > div {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  direction: ltr;
}

.language-switch button {
  min-width: 62px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.68);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button.is-active {
  border-color: rgba(246, 201, 98, 0.68);
  background: linear-gradient(180deg, #f4cf75, #b97a21);
  color: #201306;
  box-shadow: 0 4px 12px rgba(185, 122, 33, 0.25);
}

html[dir="ltr"] .lobby-heading,
html[dir="ltr"] .quick-table-card,
html[dir="ltr"] .lobby-note p,
html[dir="ltr"] .profile-copy,
html[dir="ltr"] .drawer-profile,
html[dir="ltr"] .drawer-menu button,
html[dir="ltr"] .table-menu-summary,
html[dir="ltr"] .rules-grid p {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .game-drawer,
html[dir="ltr"] .info-dialog-panel,
html[dir="ltr"] .orientation-panel {
  direction: ltr;
}

html[dir="ltr"] .drawer-menu button i,
html[dir="ltr"] .quick-table-card > i,
html[dir="ltr"] .footer-play-button i {
  transform: rotate(180deg);
}
