:root {
  --ink: #050a10;
  --ink-soft: #091522;
  --panel: #0a2540;
  --panel-light: #123c60;
  --panel-deep: #061a2e;
  --line: #2d6289;
  --line-bright: #4c99cd;
  --gold: #c99425;
  --gold-bright: #f0c95c;
  --gold-pale: #fff0b2;
  --cream: #fffaf0;
  --muted: #a6bac8;
  --green: #36d18e;
  --shadow: 0 20px 50px rgba(0, 0, 0, .3);
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

#card-room,
#game-lobby,
#how-to-play,
#account { scroll-margin-top: 108px; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(22, 69, 103, .35), transparent 40rem),
    linear-gradient(180deg, #050a10 0%, #071321 43%, #071321 100%);
  color: var(--cream);
}

button,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button { cursor: pointer; }

a { color: inherit; text-decoration: none; }

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

.prototype-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 34px;
  padding: 7px clamp(18px, 4vw, 68px);
  border-bottom: 1px solid rgba(201, 148, 37, .45);
  background: #07111b;
  color: #91a4b1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.prototype-banner span:first-child { color: var(--gold-bright); }

.casino-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 90px;
  padding: 14px clamp(18px, 4vw, 68px);
  border-bottom: 1px solid rgba(201, 148, 37, .35);
  background: rgba(5, 10, 16, .95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  backdrop-filter: blur(16px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 2px solid var(--gold-bright);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 25px;
  line-height: 1;
  box-shadow: 0 0 0 5px rgba(201, 148, 37, .1), 0 0 20px rgba(240, 201, 92, .18);
}

.brand-copy { display: grid; gap: 4px; }

.brand-copy strong {
  color: var(--gold-pale);
  font-family: Georgia, serif;
  font-size: 19px;
  letter-spacing: .07em;
}

.brand-copy small {
  color: #92a8b7;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 30px);
}

.main-nav a {
  padding: 10px 2px;
  color: #c8d5dc;
  font-size: 14px;
  font-weight: 800;
  transition: color .18s ease, transform .18s ease;
}

.main-nav a:hover,
.main-nav a.active { color: var(--gold-bright); }

.main-nav a:hover { transform: translateY(-1px); }

.account-quick {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.account-quick span { color: #a6b9c4; font-size: 12px; }

.account-quick strong { color: var(--gold-bright); font-size: 16px; }

.account-button,
.reload-button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #396b91;
  border-radius: 7px;
  background: #091a2b;
  color: #d5e3eb;
  font-size: 12px;
  font-weight: 850;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.account-button:hover,
.reload-button:hover { border-color: var(--gold-bright); background: #113554; transform: translateY(-1px); }

.eyebrow {
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.cardroom-hero {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.board-banner {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(130px, 13vw, 260px);
  overflow: hidden;
  background: #05070b;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .34);
}

.casino-hero-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-accessible-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gold-button,
.outline-button {
  min-height: 45px;
  padding: 10px 17px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 950;
  transition: transform .18s ease, filter .18s ease, background .18s ease, border-color .18s ease;
}

.gold-button {
  border: 1px solid #ffe38a;
  background: linear-gradient(135deg, #f7d36b, #c48d21);
  color: #08111a;
  box-shadow: 0 8px 20px rgba(201, 148, 37, .22), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.outline-button {
  border: 1px solid #5484a6;
  background: rgba(4, 17, 30, .55);
  color: #e1edf2;
}

.gold-button:hover,
.outline-button:hover { filter: brightness(1.09); transform: translateY(-2px); }

.lobby-section,
.how-section,
.workbench {
  max-width: 1680px;
  margin: 0 auto;
  padding: 74px clamp(18px, 4vw, 68px) 0;
}

.lobby-section { padding-top: 48px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.section-heading h2,
.account-card h2,
.preview-card h2 {
  margin: 8px 0 10px;
  color: #fff9ed;
  font-family: Georgia, serif;
  font-size: clamp(33px, 4vw, 58px);
  letter-spacing: -.04em;
  line-height: .98;
}

.section-heading p,
.muted {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.heading-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a7bdca;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.card-suit { color: var(--gold-bright); font-size: 31px; }

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

.game-card {
  position: relative;
  display: grid;
  min-height: 445px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #2c6189;
  border-radius: 13px;
  background: linear-gradient(160deg, #123f64, #071b30 66%);
  color: var(--cream);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .1);
  text-align: left;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.game-card::after {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(54, 209, 142, .9);
  content: "";
}

.game-card:hover {
  border-color: var(--gold-bright);
  box-shadow: 0 22px 45px rgba(0, 0, 0, .38), 0 0 0 3px rgba(240, 201, 92, .14), inset 0 1px 0 rgba(255, 255, 255, .14);
  transform: translateY(-6px) perspective(900px) rotateX(1deg);
}

.game-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 47px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(129, 194, 235, .32);
  background: linear-gradient(180deg, rgba(52, 120, 171, .45), rgba(4, 20, 35, .05));
}

.game-tag { color: #bed8e7; font-size: 11px; font-weight: 950; letter-spacing: .1em; }
.card-pip { color: var(--gold-bright); font-family: Georgia, serif; font-size: 21px; }

.game-card-visual {
  position: relative;
  display: grid;
  min-height: 218px;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(70, 155, 210, .44), transparent 57%), #08243e;
}

.game-card-visual::before {
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(240, 201, 92, .24);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 51, 80, .5), rgba(4, 15, 27, .1));
  box-shadow: 0 0 40px rgba(44, 150, 213, .17);
  content: "";
}

.game-card-visual img {
  position: relative;
  z-index: 1;
  width: 205px;
  height: 230px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 17px 15px rgba(0, 0, 0, .46));
  transition: transform .28s ease;
}

.game-card:hover .game-card-visual img { transform: translateY(-7px) rotate(-2deg) scale(1.04); }

.game-card-copy {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 18px 19px 20px;
}

.game-card-copy h3 { margin: 0; color: #fff5d8; font-family: Georgia, serif; font-size: 25px; line-height: 1; }
.game-card-copy h3 small { color: var(--gold-bright); font-family: inherit; font-size: 14px; }
.game-card-copy p { min-height: 45px; margin: 0; color: #a9c1cf; font-size: 14px; line-height: 1.45; }
.game-open { color: var(--gold-bright); font-size: 13px; font-weight: 950; letter-spacing: .04em; }
.game-open b { display: inline-block; margin-left: 5px; font-size: 17px; transition: transform .2s ease; }
.game-card:hover .game-open b { transform: translateX(5px); }

.how-section { padding-top: 86px; }
.compact-heading { align-items: start; }
.compact-heading h2 { margin-bottom: 0; }

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

.step-card {
  min-height: 170px;
  padding: 19px;
  border: 1px solid #254e6b;
  border-radius: 11px;
  background: #081b2f;
}

.step-number { color: var(--gold-bright); font-family: Georgia, serif; font-size: 24px; }
.step-card h3 { margin: 13px 0 7px; font-size: 17px; }
.step-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.workbench { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr); align-items: stretch; gap: 18px; padding-top: 78px; padding-bottom: 84px; }

.account-card,
.preview-card {
  border: 1px solid #315d7d;
  border-radius: 14px;
  background: linear-gradient(145deg, #0d2b48, #071a2e);
  box-shadow: var(--shadow);
}

.account-card { padding: clamp(23px, 4vw, 38px); }
.account-card h2 { max-width: 600px; }
.account-form { max-width: 700px; margin-top: 27px; }
.account-form label { display: block; margin-bottom: 8px; color: #c9d9e1; font-size: 12px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.input-row { display: flex; gap: 9px; }
.input-row input,
.room-stake-input {
  min-width: 0;
  flex: 1;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #527c98;
  border-radius: 7px;
  outline: 0;
  background: #061321;
  color: #fff;
}

.account-status { min-height: 24px; margin-top: 15px; color: #9bb2bf; font-size: 13px; }
.auth-fields{display:grid;gap:8px;margin-top:18px}.auth-fields label,.auth-form>label{color:#c9d9e1;font-size:11px;font-weight:950;letter-spacing:.1em;text-transform:uppercase}.auth-fields input,.auth-form input{width:100%;min-height:43px;padding:10px 12px;border:1px solid #527c98;border-radius:7px;background:#061321;color:#fff;font:inherit}.auth-fields input:focus-visible,.auth-form input:focus-visible{outline:2px solid #f2cd62;outline-offset:2px}.auth-hint,.auth-error{margin:8px 0;color:#9bb2bf;font-size:11px;line-height:1.45}.auth-error{color:#ffaaa0}.auth-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:10px}.auth-form[hidden],[data-account-logout][hidden]{display:none!important}.reload-button:disabled{opacity:.48;cursor:not-allowed;transform:none}
.account-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.account-metrics > div { display: grid; gap: 7px; padding: 13px; border: 1px solid #254e6b; border-radius: 8px; background: #091d31; }
.account-metrics span { color: #8da6b5; font-size: 12px; }
.account-metrics strong { color: var(--gold-bright); font-size: 22px; }
.reload-button { width: 100%; margin-top: 12px; }

.preview-card { padding: clamp(21px, 3vw, 31px); }
.preview-top { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.preview-card h2 { font-size: clamp(31px, 4vw, 47px); }
.preview-card p { max-width: 420px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.preview-chip { padding: 6px 9px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold-bright); font-size: 10px; font-weight: 950; letter-spacing: .1em; white-space: nowrap; }
.preview-felt { position: relative; min-height: 260px; margin-top: 22px; overflow: hidden; border: 8px solid #152b3b; border-radius: 48% 48% 18px 18px; background: radial-gradient(ellipse at 50% 42%, #1d775e 0%, #0d4b40 47%, #072d2f 100%); box-shadow: inset 0 0 0 2px #d2a13b, inset 0 -20px 35px rgba(0, 0, 0, .28), 0 12px 28px rgba(0, 0, 0, .28); }
.preview-rail { display: flex; justify-content: space-between; padding: 13px 20px; border-bottom: 1px solid rgba(239, 201, 92, .54); color: #ffedaf; font-size: 10px; font-weight: 950; letter-spacing: .08em; }
.preview-players { display: flex; justify-content: space-around; gap: 6px; padding: 19px 10px 0; color: #d7e6e8; font-size: 10px; font-weight: 950; }
.preview-hand { display: flex; justify-content: center; margin-top: 20px; }
.card-back,
.playing-card {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 76px;
  margin-left: -9px;
  border: 2px solid #d6b44d;
  border-radius: 7px;
  background: repeating-linear-gradient(45deg, #05152c 0 5px, #153968 5px 9px), linear-gradient(135deg, #0b2850, #061322);
  box-shadow: 0 7px 12px rgba(0, 0, 0, .35);
  color: #f4ce62;
  font-family: Georgia, serif;
  font-size: 24px;
}
.playing-card { border-color: #d6b44d; background: #fffaf0; color: #182029; }
.playing-card.red { color: #bc2932; }
.card-back::after { position: absolute; inset: 6px; border: 1px solid rgba(240, 201, 92, .75); border-radius: 4px; content: ""; }
.card-back:first-child { margin-left: 0; transform: rotate(-8deg); }
.card-back:nth-child(2) { transform: translateY(-7px) rotate(-3deg); }
.card-back:nth-child(3) { transform: translateY(-7px) rotate(3deg); }
.card-back:nth-child(4) { transform: rotate(8deg); }
.preview-felt > .gold-button { display: block; margin: 22px auto 0; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 26px clamp(18px, 4vw, 68px); border-top: 1px solid rgba(201, 148, 37, .36); background: #06111d; color: #8198a8; font-size: 12px; }
.site-footer div { display: grid; gap: 4px; }
.site-footer strong { color: var(--gold-pale); font-family: Georgia, serif; letter-spacing: .08em; }

.game-dialog { width: min(1180px, calc(100vw - 28px)); max-height: calc(100vh - 30px); padding: 22px; overflow: auto; border: 1px solid var(--gold); border-radius: 15px; background: #071523; color: var(--cream); box-shadow: 0 30px 90px rgba(0, 0, 0, .68); }
.game-dialog.fallback-open { position: fixed; inset: 15px; z-index: 100; display: block; width: auto; max-width: none; max-height: none; margin: 0; }
.game-dialog::backdrop { background: rgba(0, 5, 10, .78); backdrop-filter: blur(8px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 17px; border-bottom: 1px solid #234a65; }
.close-button { width: 40px; height: 40px; border: 1px solid #426c87; border-radius: 50%; background: #0c2842; color: #dceaf0; font-size: 26px; line-height: 1; }
.close-button:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

.room-title-row { display: flex; align-items: center; gap: 16px; margin: 22px 0 18px; }
.room-title-row img { width: 75px; height: 90px; object-fit: contain; filter: drop-shadow(0 8px 9px rgba(0, 0, 0, .45)); }
.room-title-row h2 { margin: 0; color: #fff5d9; font-family: Georgia, serif; font-size: clamp(31px, 4vw, 48px); letter-spacing: -.035em; }
.room-title-row p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.room-launch { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 4px 0 18px; padding: 15px 17px; border: 1px solid rgba(240, 201, 92, .55); border-radius: 11px; background: linear-gradient(115deg, rgba(201, 148, 37, .16), rgba(8, 31, 51, .9)); box-shadow: inset 0 0 24px rgba(240, 201, 92, .05); }
.room-launch-copy { display: grid; gap: 4px; }
.room-launch-copy strong { color: #fff1bd; font-size: 16px; }
.room-launch-copy p { margin: 0; color: #a8bfca; font-size: 13px; }
.room-launch-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.room-launch-actions button { white-space: nowrap; }
.holdem-launch .room-launch-actions { display: block; flex: 2 1 560px; width: min(100%, 850px); max-width: 850px; }
.tournament-setup { display: grid; grid-template-columns: minmax(135px, .75fr) minmax(230px, 1.25fr); align-items: end; gap: 8px; width: min(100%, 650px); }
.holdem-launch .tournament-setup { width: 100%; max-width: none; }
.tournament-setup-field { display: grid; gap: 4px; color: #c6d7dd; font-size: 8px; font-weight: 950; letter-spacing: .1em; }
.tournament-setup-field .betting-input { min-width: 0; }
.tournament-setup-note,
.tournament-local-note { grid-column: 1 / -1; margin: 0; color: #a8bfca; font-size: 10px; line-height: 1.4; }
.tournament-local-note { color: #8da9b6; font-size: 9px; }
.tournament-setup-actions { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tournament-setup-actions button { min-width: 0; white-space: nowrap; }
.tournament-summary { display: grid; gap: 13px; margin: 4px 0 18px; padding: 15px 17px; border: 1px solid rgba(83, 151, 190, .6); border-radius: 11px; background: linear-gradient(115deg, rgba(12, 47, 76, .94), rgba(7, 25, 43, .96)); }
.tournament-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tournament-summary-head > div:first-child { display: grid; gap: 4px; }
.tournament-summary-head strong { color: #fff1bd; font-size: 16px; }
.tournament-summary-head p { margin: 0; color: #a8bfca; font-size: 11px; }
.tournament-score { display: flex; gap: 8px; }
.tournament-score > div { display: grid; min-width: 76px; gap: 1px; padding: 7px 10px; border: 1px solid rgba(240, 201, 92, .34); border-radius: 8px; background: rgba(3, 13, 24, .45); text-align: center; }
.tournament-score span { color: #a8bfca; font-size: 8px; font-weight: 950; letter-spacing: .1em; }
.tournament-score strong { color: #ffe9a7; font-size: 18px; }
.tournament-leaderboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px; max-height: 330px; overflow: auto; margin: 0; padding: 0 4px 0 0; list-style: none; }
.tournament-leaderboard-row { display: grid; grid-template-columns: 22px minmax(60px, 1fr) auto; grid-template-areas: "rank name chips" ". role award"; align-items: center; gap: 3px 7px; min-width: 0; padding: 7px 9px; border: 1px solid rgba(82, 121, 145, .46); border-radius: 7px; background: rgba(3, 14, 24, .55); color: #c6d7dd; font-size: 11px; }
.tournament-leaderboard-row.is-you { border-color: rgba(240, 201, 92, .62); color: #fff1bd; }
.tournament-leaderboard-row strong { grid-area: name; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-rank { grid-area: rank; color: #93acb8; font-weight: 900; }
.tournament-chip-count { grid-area: chips; color: #ffe9a7; font-weight: 900; white-space: nowrap; }
.leaderboard-role { grid-area: role; color: #8da9b6; font-size: 8px; font-weight: 900; letter-spacing: .06em; }
.tournament-award { grid-area: award; color: #a8bfca; font-size: 9px; }
.tournament-round-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.tournament-round { display: grid; gap: 3px; min-width: 0; padding: 8px 10px; border: 1px solid rgba(82, 121, 145, .46); border-radius: 7px; background: rgba(3, 14, 24, .42); }
.tournament-round > span { color: #8da9b6; font-size: 8px; font-weight: 950; letter-spacing: .1em; }
.tournament-round > strong { overflow-wrap: anywhere; color: #c6d7dd; font-size: 10px; }
.tournament-round small { color: #91aab5; font-size: 9px; }
.tournament-round.is-current { border-color: rgba(240, 201, 92, .6); }
.tournament-round.is-complete > strong { color: #ffe9a7; }
.room-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 17px; }

.table-stage { position: relative; min-height: 565px; padding: 19px; overflow: visible; border: 8px solid #172e42; border-radius: 42% 42% 18px 18px; background: radial-gradient(ellipse at 50% 43%, #238265 0%, #105344 39%, #082f31 68%, #06232a 100%); box-shadow: inset 0 0 0 2px #d2a13b, inset 0 -30px 45px rgba(0, 0, 0, .35), 0 18px 45px rgba(0, 0, 0, .35); perspective: 1200px; }
.table-stage::before { position: absolute; right: 9%; bottom: 12%; left: 9%; height: 90px; border: 1px solid rgba(240, 201, 92, .18); border-radius: 50%; content: ""; transform: rotateX(62deg); }
.table-stage::after { position: absolute; top: 30%; left: 50%; width: 210px; height: 130px; border: 1px solid rgba(240, 201, 92, .18); border-radius: 50%; content: "♠"; color: rgba(240, 201, 92, .1); font-family: Georgia, serif; font-size: 98px; line-height: 130px; text-align: center; transform: translateX(-50%) rotateX(58deg); }

.table-rail { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; border-bottom: 1px solid rgba(255, 229, 138, .52); color: #ffe9a7; font-size: 10px; font-weight: 950; letter-spacing: .1em; }
.table-brand { margin: 29px 0 2px; color: rgba(255, 239, 169, .85); font-family: Georgia, serif; font-size: 18px; letter-spacing: .12em; text-align: center; text-transform: uppercase; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }

.opponent-seats { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(5, minmax(70px, 1fr)); gap: 9px; margin: 26px 0 15px; }
.opponent-seat { position: relative; min-height: 158px; padding: 0 4px; overflow: visible; border: 1px solid rgba(221, 181, 74, .5); border-radius: 10px; background: linear-gradient(180deg, rgba(8, 24, 38, .72), rgba(5, 17, 27, .38)); text-align: center; transform: translateZ(20px); }
.opponent-seat.is-winning-seat { border: 3px solid #f5d76e; box-shadow: 0 0 18px rgba(255, 213, 83, .68), inset 0 0 14px rgba(255, 213, 83, .2); }
.seat-winning-hand { position: absolute; z-index: 5; top: -26px; right: -2px; left: -2px; padding: 4px 3px; border: 1px solid #f5d76e; border-radius: 6px; background: #352605; color: #fff0b0; font-size: 8px; font-weight: 950; line-height: 1.2; text-shadow: 0 1px 3px #000; }
.bet-amount-popup { position: absolute; z-index: 8; top: 28px; left: 50%; display: grid; gap: 2px; min-width: 90px; padding: 6px 10px; border: 1px solid #f6d566; border-radius: 999px; background: linear-gradient(135deg, #533c08, #152d36); box-shadow: 0 4px 16px rgba(0, 0, 0, .6), 0 0 12px rgba(255, 214, 89, .55); color: #fff4c7; text-align: center; transform: translateX(-50%); animation: bet-popup-rise 1.9s ease both; pointer-events: none; }
.bet-amount-popup strong { color: #ffe486; font-size: 9px; font-weight: 950; letter-spacing: .08em; }
.bet-amount-popup span { font-size: 12px; font-weight: 950; white-space: nowrap; }
@keyframes bet-popup-rise { 0% { opacity: 0; translate: 0 10px; } 12%, 78% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -8px; } }
.opponent-seat img { position: relative; z-index: 1; width: 100%; height: 128px; object-fit: contain; object-position: center top; transform: translateY(-4px); filter: drop-shadow(0 8px 7px rgba(0, 0, 0, .45)); }
.opponent-seat strong { position: absolute; right: 4px; bottom: 7px; left: 4px; padding: 3px 2px; border-radius: 4px; background: rgba(3, 10, 17, .85); color: #ffe9a7; font-size: 10px; letter-spacing: .04em; }
.seat-chip { position: absolute; top: 4px; left: 4px; display: grid; width: 24px; height: 24px; place-items: center; border: 2px solid #f5d16b; border-radius: 50%; background: #143452; color: #f5d16b; font-size: 10px; font-weight: 950; }
.seat-reaction { position: absolute; top: 5px; right: 5px; z-index: 3; padding: 3px 5px; border: 1px solid #4d7081; border-radius: 999px; background: rgba(3, 12, 20, .9); color: #c7d8df; font-size: 8px; font-weight: 950; letter-spacing: .08em; }
.seat-reaction.reaction-betting { border-color: #f0c95c; color: #ffe9a7; }
.seat-reaction.reaction-check { border-color: #56b99b; color: #a9f0d4; }
.seat-reaction.reaction-fold { border-color: #c97078; color: #ffc5c8; }
.seat-reaction.reaction-win { border-color: #56c58f; color: #b8f5d4; box-shadow: 0 0 12px rgba(86, 197, 143, .28); }
.seat-reaction.reaction-loss { border-color: #a05d66; color: #e8a8ad; }
.seat-player-image { transform-origin: 50% 85%; }
.opponent-seat[data-reaction="waiting"] .seat-player-image { animation: seat-idle 3.4s ease-in-out infinite; }
.opponent-seat[data-reaction="betting"] .seat-player-image { transform: translateY(-8px) rotate(-4deg) scale(1.04); animation: seat-bet .62s ease-in-out 2; }
.opponent-seat[data-reaction="check"] .seat-player-image { transform: translateY(-5px) rotate(4deg); animation: seat-check .7s ease-out 1; }
.opponent-seat[data-reaction="fold"] .seat-player-image { transform: translateY(5px) rotate(-8deg); animation: seat-fold .8s ease-out 1; filter: grayscale(.58) brightness(.82) drop-shadow(0 8px 7px rgba(0, 0, 0, .45)); }
.opponent-seat[data-reaction="win"] .seat-player-image { transform: translateY(-8px) scale(1.08); animation: seat-win .85s ease-in-out 2; filter: brightness(1.14) drop-shadow(0 0 12px rgba(255, 217, 91, .75)); }
.opponent-seat[data-reaction="loss"] .seat-player-image { transform: translateY(6px) rotate(-5deg); animation: seat-loss .85s ease-out 1; filter: grayscale(.48) brightness(.83) drop-shadow(0 8px 7px rgba(0, 0, 0, .45)); }
.seat-pose-marker { position: absolute; right: 5px; bottom: 25px; z-index: 4; display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid rgba(255, 230, 153, .78); border-radius: 50%; background: rgba(4, 15, 25, .88); color: #ffe9a7; font-size: 15px; font-weight: 950; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.opponent-comment { position: relative; z-index: 5; display: flex; align-items: center; gap: 11px; width: min(100%, 560px); min-height: 76px; margin: 10px auto 14px; padding: 8px 13px 8px 8px; border: 1px solid rgba(240, 201, 92, .72); border-radius: 13px 13px 13px 5px; background: linear-gradient(110deg, rgba(8, 22, 35, .98), rgba(18, 52, 68, .96)); box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.opponent-comment::before { position: absolute; top: -8px; left: 36px; width: 14px; height: 14px; border-top: 1px solid rgba(240, 201, 92, .72); border-left: 1px solid rgba(240, 201, 92, .72); background: #0a1c2c; content: ""; transform: rotate(45deg); }
.opponent-comment > img { flex: 0 0 48px; width: 48px; height: 60px; object-fit: contain; object-position: center top; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .48)); }
.opponent-comment-copy { display: grid; flex: 1; gap: 2px; min-width: 0; }
.opponent-comment-kicker { display: flex; justify-content: space-between; gap: 8px; color: var(--gold-bright); font-size: 8px; font-weight: 950; letter-spacing: .13em; }
.opponent-comment-kicker span { color: #b5d3dc; }
.opponent-comment-copy strong { overflow: hidden; color: #fff3c6; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.opponent-comment-copy p { margin: 0; color: #e4edf0; font-size: 12px; font-weight: 750; line-height: 1.3; }
.opponent-comment-pose { flex: 0 0 34px; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; background: rgba(4, 13, 20, .72); color: #ffe9a7; font-size: 18px; }
.opponent-comment.reaction-win { border-color: #56c58f; background: linear-gradient(110deg, rgba(6, 38, 30, .98), rgba(16, 65, 50, .96)); }
.opponent-comment.reaction-loss, .opponent-comment.reaction-fold { border-color: #a05d66; }
@keyframes seat-idle { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(-8px); } }
@keyframes seat-bet { 0%, 100% { transform: translateY(-4px) rotate(0) scale(1); } 45% { transform: translateY(-12px) rotate(-5deg) scale(1.04); } }
@keyframes seat-check { 0% { transform: translateY(-4px) rotate(0); } 55% { transform: translateY(-10px) rotate(4deg); } 100% { transform: translateY(-4px) rotate(0); } }
@keyframes seat-fold { 0% { transform: translateY(-4px) rotate(0); } 100% { transform: translateY(5px) rotate(-5deg); } }
@keyframes seat-win { 0%, 100% { transform: translateY(-4px) scale(1); } 40% { transform: translateY(-15px) scale(1.08) rotate(3deg); } 70% { transform: translateY(-9px) scale(1.03) rotate(-2deg); } }
@keyframes seat-loss { 0% { transform: translateY(-4px); } 45% { transform: translateY(4px) rotate(-4deg); } 100% { transform: translateY(7px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .opponent-seat .seat-player-image { animation: none !important; } }
@media (prefers-reduced-motion: reduce) { .bet-amount-popup { animation: none !important; } }

.turn-prompt { position: relative; z-index: 6; display: flex; align-items: center; gap: 13px; width: min(100%, 510px); margin: 13px auto 2px; padding: 10px 14px 10px 10px; border: 1px solid rgba(240, 201, 92, .9); border-radius: 12px; background: linear-gradient(105deg, rgba(8, 22, 35, .97), rgba(16, 54, 72, .96)); box-shadow: 0 10px 28px rgba(0, 0, 0, .38), 0 0 0 2px rgba(240, 201, 92, .12); }
.game-dialog .table-action-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px; width: 100%; margin: 16px auto 20px; }
.game-dialog .table-action-panels .opponent-comment,
.game-dialog .table-action-panels .turn-prompt { width: 100%; max-width: none; min-width: 0; min-height: 100%; margin: 0; }
.turn-prompt.is-player-turn { border-color: #f0c95c; box-shadow: 0 10px 28px rgba(0, 0, 0, .38), 0 0 0 3px rgba(240, 201, 92, .17); }
.turn-prompt.is-opponent-turn { border-color: #3e7898; }
.turn-prompt img { align-self: end; width: 62px; height: 78px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .5)); }
.turn-prompt-copy { display: grid; flex: 1; gap: 2px; min-width: 0; }
.turn-prompt-kicker { color: var(--gold-bright); font-size: 9px; font-weight: 950; letter-spacing: .14em; }
.turn-prompt-copy strong { color: #fff3c6; font-size: 17px; letter-spacing: .04em; }
.turn-prompt-copy > span { color: #d4e1e5; font-size: 12px; font-weight: 850; }
.turn-prompt-copy small { color: #9eb6c0; font-size: 10px; line-height: 1.35; }
.turn-prompt-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.turn-action-button { min-width: 63px; border-color: #c89d3d; color: #ffe9a7; }
.turn-action-button:disabled { cursor: not-allowed; filter: grayscale(.85); opacity: .45; }
.turn-fold-button { border-color: #98545a; color: #ffc5c8; }

.table-center { position: relative; z-index: 3; display: grid; justify-items: center; gap: 10px; min-height: 185px; padding: 8px 12px; }
.room-card-row { display: flex; justify-content: center; min-height: 94px; padding: 15px; perspective: 1000px; }
.card-group { display: flex; flex-wrap: wrap; align-items: end; justify-content: center; gap: 8px; min-width: 105px; }
.card-group small { flex-basis: 100%; color: #ffe9a7; font-size: 10px; font-weight: 950; letter-spacing: .08em; text-align: center; }
.single-group { gap: 0; }
.room-card-row .card-back,
.room-card-row .playing-card { width: 68px; height: 96px; margin-left: -12px; font-size: 27px; transition: transform .35s ease, opacity .35s ease; }
.room-card-row .card-back:first-child,
.room-card-row .playing-card:first-child { margin-left: 0; }
.room-card-row .playing-card { background: #fffaf0; color: #182029; }
.room-card-row .playing-card.red { color: #bc2932; }
.room-card-row .playing-card strong { align-self: end; font-size: 25px; }
.room-card-row .playing-card em { align-self: start; font-size: 12px; font-style: normal; }
.room-card-row .playing-card[data-card-index] { cursor: pointer; }
.room-card-row .playing-card.is-held { border-color: #f0c95c; box-shadow: 0 0 0 4px rgba(240, 201, 92, .18), 0 12px 20px rgba(0, 0, 0, .38); transform: translateY(-10px); }
.card-back-mark { position: relative; z-index: 1; font-family: Georgia, serif; font-size: 16px; letter-spacing: .08em; }
.card-back b { position: absolute; right: 8px; bottom: 7px; z-index: 1; font-size: 13px; }
.room-card-row .card-back.dealing { animation: deal-card .6s both; }
@keyframes deal-card { from { opacity: 0; transform: translateY(-55px) rotateY(90deg); } to { opacity: 1; transform: translateY(0) rotateY(0); } }
.blackjack-main-hands { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; width: 100%; }
.blackjack-main-hands .card-group { min-width: 150px; }
.blackjack-opponents { display: grid; justify-items: center; gap: 7px; width: 100%; margin-top: 2px; }
.blackjack-opponents > small { color: #a9c1c9; font-size: 9px; font-weight: 950; letter-spacing: .1em; }
.blackjack-opponent-row { display: grid; grid-template-columns: repeat(5, minmax(62px, 1fr)); gap: 8px; width: min(100%, 520px); }
.blackjack-opponent { display: grid; justify-items: center; gap: 3px; min-width: 0; }
.blackjack-opponent > small { width: 100%; overflow: hidden; color: #cbd9dc; font-size: 8px; font-weight: 900; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.blackjack-opponent .card-back,
.blackjack-opponent .playing-card { width: 38px; height: 54px; margin-left: -8px; font-size: 15px; }
.blackjack-opponent .card-back:first-of-type,
.blackjack-opponent .playing-card:first-of-type { margin-left: 0; }
.blackjack-opponent .card-back-mark { font-size: 10px; }
.blackjack-opponent .card-back b { right: 4px; bottom: 4px; font-size: 9px; }
.blackjack-opponent .playing-card em { font-size: 8px; }
.blackjack-opponent .playing-card strong { font-size: 13px; }
.video-poker-machine { width: min(100%, 680px); padding: 13px; border: 7px solid #172e42; border-radius: 18px; background: linear-gradient(145deg, #183b52, #071523 55%, #102b3c); box-shadow: inset 0 0 0 2px #d2a13b, inset 0 0 26px rgba(0, 0, 0, .42), 0 12px 25px rgba(0, 0, 0, .34); }
.video-poker-marquee { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; border: 1px solid #d2a13b; border-radius: 7px; background: linear-gradient(90deg, #421312, #9d281e 45%, #421312); color: #ffe9a7; font-size: 8px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.video-poker-marquee strong { color: #fff6d4; font-family: Georgia, serif; font-size: 16px; letter-spacing: .1em; }
.video-reels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 12px; padding: 11px; border: 2px solid #d2a13b; border-radius: 10px; background: #040b12; box-shadow: inset 0 0 16px rgba(0, 0, 0, .7); }
.video-reel { display: grid; justify-items: center; gap: 5px; min-width: 0; }
.video-reel-window { display: grid; width: 100%; min-height: 111px; place-items: center; overflow: hidden; border: 3px solid #6f8ca0; border-radius: 7px; background: linear-gradient(180deg, #f7f1de 0 18%, #fffdf6 50%, #dad3be 100%); box-shadow: inset 0 0 0 3px #1c2b33, 0 0 10px rgba(240, 201, 92, .16); }
.video-reel .playing-card,
.video-reel .card-back { width: 62px; height: 90px; margin: 0; font-size: 25px; }
.video-reel .playing-card em { font-size: 12px; }
.video-reel .playing-card strong { font-size: 23px; }
.video-reel .card-back-mark { font-size: 15px; }
.video-reel small { color: #b7cbd1; font-size: 8px; font-weight: 950; letter-spacing: .1em; }
.video-reel b { min-height: 11px; color: #f0c95c; font-size: 9px; letter-spacing: .08em; }
.video-reel.is-spinning .video-reel-window { animation: reel-spin .24s linear infinite; }
.video-reel.is-spinning:nth-child(2) .video-reel-window { animation-delay: -.06s; }
.video-reel.is-spinning:nth-child(3) .video-reel-window { animation-delay: -.12s; }
.video-reel.is-spinning:nth-child(4) .video-reel-window { animation-delay: -.18s; }
.video-reel.is-spinning:nth-child(5) .video-reel-window { animation-delay: -.22s; }
@keyframes reel-spin { 0% { transform: translateY(-18px) rotateX(0deg); } 50% { transform: translateY(18px) rotateX(180deg); } 100% { transform: translateY(-18px) rotateX(360deg); } }
.video-poker-machine-help { margin-top: 10px; color: #ffe9a7; font-size: 10px; font-weight: 950; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.machine-hand-readout { display: grid; gap: 4px; margin: 10px 2px 0; padding: 10px 12px; border: 1px solid rgba(240, 201, 92, .56); border-radius: 8px; background: rgba(3, 13, 22, .82); }
.machine-hand-readout > span,
.machine-result-kicker { color: var(--gold-bright); font-size: 9px; font-weight: 950; letter-spacing: .13em; }
.machine-hand-readout > strong { color: #fff1bd; font-family: Georgia, serif; font-size: 17px; line-height: 1.15; }
.machine-hand-readout > small { color: #b9cbd1; font-size: 10px; line-height: 1.4; }
.machine-hand-readout.is-idle > strong { color: #d4e1e5; font-family: inherit; font-size: 13px; }
.machine-hand-readout.is-final { border-color: rgba(86, 211, 157, .65); }
.video-poker-panel .machine-balance,
.machine-wager-preview { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; padding: 9px 10px; border: 1px solid rgba(240, 201, 92, .42); border-radius: 7px; background: rgba(201, 148, 37, .08); color: #a8bfca; font-size: 11px; }
.video-poker-panel .machine-balance strong,
.machine-wager-preview strong { color: #ffe9a7; font-size: 15px; }
.machine-select { margin-bottom: 8px; cursor: pointer; }
.machine-second-label { margin-top: 4px; }
.machine-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.machine-action-row button { min-height: 43px; padding: 8px 6px; font-size: 10px; line-height: 1.2; }
.machine-result { display: grid; gap: 4px; margin: 12px 0; padding: 10px; border: 1px solid rgba(240, 201, 92, .52); border-radius: 7px; background: rgba(201, 148, 37, .1); }
.machine-result strong { color: #fff1bd; font-family: Georgia, serif; font-size: 17px; }
.machine-result span { color: #d4e1e5; font-size: 11px; line-height: 1.4; }
.machine-result b { color: #a9f0d4; font-size: 12px; }
.machine-result .machine-result-kicker { color: var(--gold-bright); font-size: 9px; font-weight: 950; letter-spacing: .13em; }
.machine-result b.is-unpaid { color: #ffd28c; }
.machine-rule-note { font-size: 10px !important; }
.machine-rules { margin-top: 12px; padding-top: 10px; border-top: 1px solid #234a65; color: #a8bfca; }
.machine-rules summary { cursor: pointer; color: var(--gold-pale); font-size: 12px; font-weight: 900; }
.machine-paytable-wrap { max-width: 100%; margin-top: 9px; overflow-x: auto; }
.machine-paytable { width: 100%; min-width: 250px; border-collapse: collapse; color: #d4e1e5; font-size: 9px; text-align: right; }
.machine-paytable caption { padding: 0 0 7px; color: #9eb6c0; font-size: 9px; text-align: left; }
.machine-paytable th,
.machine-paytable td { padding: 6px 4px; border-bottom: 1px solid rgba(76, 114, 136, .42); white-space: nowrap; }
.machine-paytable thead th { color: #ffe9a7; font-size: 9px; }
.machine-paytable th:first-child { width: 44%; text-align: left; }
.machine-paytable td.is-selected,
.machine-paytable th.is-selected { background: rgba(240, 201, 92, .12); color: #fff1bd; font-weight: 950; }
.table-status { max-width: 560px; min-height: 41px; color: #d4e1e5; font-size: 14px; line-height: 1.45; text-align: center; }
.showdown-result { display: grid; justify-items: center; gap: 6px; width: min(100%, 560px); margin: 0 auto 4px; padding: 10px 12px; border: 3px solid #f5d76e; border-radius: 10px; background: linear-gradient(120deg, rgba(48, 32, 7, .88), rgba(9, 33, 43, .96)); box-shadow: 0 0 20px rgba(255, 213, 83, .32), 0 8px 18px rgba(0, 0, 0, .38); text-align: center; }
.showdown-winning-label { width: 100%; padding: 6px 8px; border-radius: 6px; background: linear-gradient(90deg, rgba(138, 100, 11, .5), rgba(240, 201, 92, .18)); color: #ffe999; font-size: 11px; font-weight: 950; letter-spacing: .09em; text-transform: uppercase; }
.showdown-kicker { color: var(--gold-bright); font-size: 9px; font-weight: 950; letter-spacing: .16em; }
.showdown-result > strong { color: #fff5cc; font-family: Georgia, serif; font-size: 22px; }
.showdown-result > span { color: #d4e1e5; font-size: 11px; font-weight: 850; }
.showdown-winning-cards, .showdown-board-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.showdown-winning-cards { margin-top: 4px; }
.showdown-result .playing-card { width: 43px; height: 59px; font-size: 18px; }
.showdown-result .playing-card strong { font-size: 17px; }
.showdown-result .playing-card em { font-size: 9px; }
.showdown-result small { color: #abc0c8; font-size: 9px; }
.showdown-result > small:not(.showdown-payout) { margin-top: 2px; color: #8da6b5; letter-spacing: .08em; }
.showdown-payout { margin-top: 4px; }
.showdown-no-cards { color: #c9d7dc; font-size: 11px; }
.tournament-card-reveal { display: grid; gap: 8px; width: min(100%, 700px); padding: 10px; border: 1px solid rgba(83, 151, 190, .58); border-radius: 10px; background: rgba(4, 20, 32, .76); }
.tournament-card-reveal > .eyebrow { color: #ffe9a7; font-size: 9px; text-align: center; }
.tournament-opponent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 7px; }
.tournament-opponent-cards { display: grid; justify-items: center; gap: 5px; padding: 7px 5px; border: 1px solid rgba(82, 121, 145, .38); border-radius: 7px; background: rgba(3, 12, 21, .58); }
.tournament-opponent-cards > div:first-child { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; color: #dce8e8; font-size: 10px; }
.tournament-opponent-cards > div:first-child span { color: #ffe9a7; font-size: 7px; font-weight: 950; letter-spacing: .06em; }
.tournament-opponent-hand { display: flex; justify-content: center; gap: 3px; }
.tournament-opponent-hand .playing-card { width: 39px; height: 54px; border-radius: 5px; font-size: 17px; }
.tournament-opponent-hand .playing-card em { font-size: 8px; }
.tournament-opponent-hand .playing-card strong { font-size: 15px; }
.table-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.room-control-hint { align-self: center; color: #a8bfca; font-size: 12px; font-weight: 800; letter-spacing: .03em; text-align: center; }
.table-controls button:disabled { cursor: not-allowed; filter: grayscale(.8); opacity: .45; }

.room-side { display: grid; align-content: start; gap: 11px; }
.room-info-card { padding: 17px; border: 1px solid #2b5b79; border-radius: 10px; background: #0a2036; }
.room-info-card h3 { margin: 0 0 8px; color: var(--gold-pale); font-family: Georgia, serif; font-size: 21px; }
.room-info-card p { margin: 0; color: #a8bfca; font-size: 14px; line-height: 1.5; }
.room-info-card ul { display: grid; gap: 8px; margin: 0; padding-left: 20px; color: #a8bfca; font-size: 13px; line-height: 1.45; }
.betting-panel { border-color: rgba(240, 201, 92, .62); background: linear-gradient(145deg, #102d45, #081d31); }
.betting-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.betting-panel-heading h3 { margin-bottom: 0; }
.betting-panel-heading span { color: var(--green); font-size: 9px; font-weight: 950; letter-spacing: .1em; }
.betting-turn-summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 8px 9px; border: 1px solid rgba(240, 201, 92, .38); border-radius: 7px; background: rgba(201, 148, 37, .09); }
.betting-turn-summary span { color: #9eb6c0; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.betting-turn-summary strong { color: #ffe9a7; font-size: 12px; text-align: right; }
.betting-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 14px 0 10px; }
.betting-stats > div { display: grid; gap: 3px; padding: 9px 7px; border: 1px solid #2b5b79; border-radius: 7px; background: rgba(4, 16, 28, .55); }
.betting-stats span { color: #8da6b5; font-size: 10px; }
.betting-stats strong { color: var(--gold-bright); font-size: 13px; }
.betting-callout { margin-bottom: 12px; padding: 9px 10px; border-left: 3px solid var(--gold-bright); background: rgba(201, 148, 37, .1); color: #ffe9a7; font-size: 12px; font-weight: 850; line-height: 1.35; }
.betting-label { display: block; margin-bottom: 6px; color: #c9d9e1; font-size: 10px; font-weight: 950; letter-spacing: .1em; }
.betting-input-row { display: flex; align-items: center; gap: 8px; }
.betting-input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #527c98; border-radius: 7px; outline: 0; background: #061321; color: #fff; }
.betting-input-row span { color: #9bb2bf; font-size: 12px; white-space: nowrap; }
.betting-help { margin-top: 7px !important; font-size: 11px !important; }
.betting-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.betting-actions button { flex: 1 1 calc(33.333% - 6px); min-width: 86px; padding: 9px 8px; font-size: 11px; }
.betting-actions button:disabled { cursor: not-allowed; filter: grayscale(.8); opacity: .45; }
.betting-seated { margin-top: 15px; padding-top: 12px; border-top: 1px solid #234a65; }
.betting-seated > strong { color: var(--gold-pale); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.betting-seated ul { gap: 5px; margin-top: 8px; padding: 0; list-style: none; }
.betting-seated li { display: flex; justify-content: space-between; gap: 8px; color: #a8bfca; font-size: 11px; }
.betting-seated li strong { color: #d4e1e5; font-size: 10px; text-align: right; }
.betting-log { margin-top: 12px; color: #a8bfca; font-size: 11px; }
.betting-log summary { cursor: pointer; color: var(--gold-pale); font-weight: 850; }
.betting-log ul { gap: 4px; margin-top: 8px; padding-left: 17px; }
.betting-note { margin-top: 12px !important; color: #93aab6 !important; font-size: 11px !important; }
.blackjack-panel .betting-callout { margin-top: 12px; }
.blackjack-wager-readout { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 10px; border: 1px solid rgba(240, 201, 92, .42); border-radius: 7px; background: rgba(201, 148, 37, .08); color: #a8bfca; font-size: 11px; text-transform: uppercase; }
.blackjack-wager-readout strong { color: #ffe9a7; font-size: 15px; }
.blackjack-wager-button { width: 100%; margin-top: 12px; }
.video-poker-panel .blackjack-wager-button { min-height: 43px; padding: 10px 8px; font-size: 10px; }
.blackjack-panel-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.blackjack-panel-actions button { flex: 1 1 calc(33.333% - 6px); min-width: 90px; padding: 9px 7px; font-size: 11px; }
.three-card-pair-label { margin-top: 12px; }
.three-card-action-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.three-card-action-row button { flex: 1 1 calc(50% - 7px); min-width: 120px; padding: 10px 8px; font-size: 11px; }
.three-card-hand-readout { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 9px 10px; border: 1px solid #2b5b79; border-radius: 7px; background: rgba(4, 16, 28, .55); color: #9eb6c0; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.three-card-hand-readout strong { color: #ffe9a7; font-size: 12px; letter-spacing: 0; text-align: right; text-transform: none; }
.three-card-result { display: grid; gap: 3px; margin-top: 12px; padding: 10px; border: 1px solid rgba(240, 201, 92, .52); border-radius: 7px; background: rgba(201, 148, 37, .1); }
.three-card-result strong { color: #fff1bd; font-family: Georgia, serif; font-size: 18px; }
.three-card-result span { color: #d4e1e5; font-size: 11px; }
.three-card-rules { margin-top: 14px; padding-top: 12px; border-top: 1px solid #234a65; color: #a8bfca; font-size: 11px; line-height: 1.45; }
.three-card-rules summary { cursor: pointer; color: var(--gold-pale); font-size: 12px; font-weight: 900; }
.three-card-rules p { margin: 8px 0 0; font-size: 11px; }
.room-roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 230px; margin-top: 10px; overflow-y: auto; padding-right: 4px; }
.roster-group-title { grid-column: 1 / -1; padding: 5px 2px 1px; color: var(--gold-bright); font-size: 8px; font-weight: 950; letter-spacing: .14em; }
.roster-name { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 52px; cursor: pointer; padding: 5px 6px; border: 1px solid #355f78; border-radius: 6px; background: #071727; color: #d4e1e5; text-align: left; }
.roster-name > img { flex: 0 0 32px; width: 32px; height: 42px; object-fit: cover; object-position: center top; border-radius: 4px; background: #0a1b2c; }
.roster-copy { display: grid; gap: 2px; min-width: 0; }
.roster-copy strong { overflow: hidden; color: inherit; font-size: 10px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.roster-copy small { color: #9fb7c4; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.roster-name.is-selected { border-color: var(--gold-bright); background: #123a58; color: var(--gold-pale); }
.roster-help { margin-top: 10px !important; font-size: 12px !important; }
.reaction-controls { display: grid; gap: 7px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #234a65; color: #a8bfca; font-size: 11px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.reaction-controls > div { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-button { padding: 6px 8px; border: 1px solid #355f78; border-radius: 6px; background: #071727; color: #d4e1e5; font-size: 10px; font-weight: 900; }
.mini-button:hover { border-color: var(--gold-bright); color: var(--gold-pale); }
.mini-button:disabled { cursor: not-allowed; filter: grayscale(.85); opacity: .45; }
.demo-note { padding: 13px; border-left: 3px solid var(--gold-bright); background: rgba(201, 148, 37, .1); color: #e4d8a6; font-size: 12px; line-height: 1.45; }

.follow-queen-table { width: min(100%, 980px); padding: 8px 2px; }
.stud-wild-marker { display: grid; justify-items: center; gap: 3px; margin: 0 auto 12px; padding: 8px 12px; border: 1px solid rgba(240, 201, 92, .68); border-radius: 9px; background: linear-gradient(120deg, rgba(20, 49, 56, .88), rgba(20, 38, 58, .92)); text-align: center; }
.stud-wild-marker > span { color: var(--gold-bright); font-size: 9px; font-weight: 950; letter-spacing: .18em; }
.stud-wild-marker > strong { color: #fff1bd; font-family: Georgia, serif; font-size: 18px; }
.stud-wild-marker > small { color: #b9cbd1; font-size: 10px; }
.stud-wild-log { display: grid; gap: 2px; margin: 4px 0 0; padding: 0; color: #9bb6bf; font-size: 9px; list-style: none; }
.stud-player-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.stud-player-row { position: relative; min-width: 0; padding: 7px; border: 1px solid rgba(221, 181, 74, .4); border-radius: 8px; background: linear-gradient(130deg, rgba(4, 21, 31, .78), rgba(4, 15, 27, .72)); }
.stud-player-row.is-winner { border: 3px solid #f5d76e; box-shadow: 0 0 16px rgba(255, 213, 83, .5), inset 0 0 12px rgba(255, 213, 83, .15); }
.stud-winning-hand { margin: -2px -2px 6px; padding: 5px 6px; border-radius: 5px; background: rgba(120, 84, 5, .65); color: #ffe999; font-size: 9px; font-weight: 950; line-height: 1.3; text-align: center; }
.stud-player-row.is-you { border-color: rgba(240, 201, 92, .8); background: linear-gradient(130deg, rgba(51, 39, 11, .48), rgba(4, 23, 34, .8)); }
.stud-player-row.is-folded { opacity: .62; }
.stud-player-heading { display: flex; align-items: center; gap: 6px; min-height: 22px; margin-bottom: 4px; }
.stud-player-heading img { width: 21px; height: 25px; object-fit: contain; object-position: center top; }
.stud-player-heading strong { color: #ffe9a7; font-size: 10px; letter-spacing: .08em; }
.stud-player-heading small { margin-left: auto; color: #86a7b2; font-size: 8px; font-weight: 900; letter-spacing: .07em; }
.stud-player-cards { display: flex; align-items: flex-end; justify-content: space-between; gap: 2px; min-width: 0; }
.stud-card-slot { display: grid; justify-items: center; gap: 2px; min-width: 0; }
.stud-card-slot > small { color: #9bb6bf; font-size: 7px; font-weight: 950; letter-spacing: .04em; }
.stud-player-cards .playing-card,
.stud-player-cards .card-back { width: clamp(25px, 4.4vw, 37px); height: clamp(36px, 6.4vw, 53px); margin: 0; border-radius: 4px; font-size: 13px; }
.stud-player-cards .playing-card strong { font-size: 12px; }
.stud-player-cards .playing-card em { font-size: 7px; }
.stud-player-cards .card-back-mark { font-size: 8px; }
.stud-player-cards .card-back b { font-size: 18px; }
.stud-card-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 12px; margin-top: 9px; color: #89a4af; font-size: 8px; }
.follow-queen-panel .betting-turn-summary { margin-top: 10px; }
.follow-queen-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.follow-queen-actions button { flex: 1 1 105px; min-height: 38px; padding: 8px 7px; font-size: 10px; }
.follow-queen-rules { margin-top: 13px; padding-top: 11px; border-top: 1px solid #234a65; color: #a8bfca; font-size: 11px; line-height: 1.5; }
.follow-queen-rules summary { cursor: pointer; color: var(--gold-pale); font-size: 12px; font-weight: 900; }
.follow-queen-rules p { margin: 8px 0 0; font-size: 11px; }
.stud-result { display: grid; gap: 3px; margin-top: 12px; padding: 10px; border: 1px solid rgba(240, 201, 92, .52); border-radius: 7px; background: rgba(201, 148, 37, .1); }
.stud-result strong { color: #fff1bd; font-family: Georgia, serif; font-size: 17px; }
.stud-result span { color: #d4e1e5; font-size: 11px; }
.stud-result small { color: #a8bfca; font-size: 10px; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; max-width: min(390px, calc(100vw - 44px)); padding: 13px 16px; border: 1px solid var(--gold); border-radius: 8px; background: #0d2945; color: #fff2c4; box-shadow: var(--shadow); font-size: 13px; font-weight: 850; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .casino-header { grid-template-columns: 1fr auto; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; order: 3; overflow-x: auto; }
  .account-quick { grid-column: 2; grid-row: 1; }
  .room-layout { grid-template-columns: 1fr; }
  .room-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-note { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .prototype-banner { align-items: flex-start; flex-direction: column; gap: 3px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workbench { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .game-dialog .table-action-panels { grid-template-columns: 1fr; gap: 10px; margin: 10px auto 14px; }
  .game-dialog .table-action-panels .opponent-comment,
  .game-dialog .table-action-panels .turn-prompt { min-height: 0; }
}

@media (max-width: 640px) {
  .casino-header { display: flex; flex-wrap: wrap; gap: 11px 16px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { font-size: 8px; }
  .account-quick { margin-left: auto; }
  .main-nav { width: 100%; order: 3; gap: 22px; overflow-x: auto; }
  .main-nav a { font-size: 13px; white-space: nowrap; }
  .lobby-section { padding-top: 35px; }
  .section-heading { align-items: start; flex-direction: column; gap: 15px; }
  .heading-note { white-space: normal; }
  .game-grid,
  .steps-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 415px; }
  .input-row { display: grid; }
  .account-metrics { gap: 6px; }
  .account-metrics > div { padding: 10px 7px; }
  .account-metrics strong { font-size: 17px; }
  .preview-top { align-items: flex-start; flex-direction: column; }
  .preview-felt { border-radius: 30% 30% 15px 15px; }
  .room-title-row { align-items: flex-start; }
  .room-title-row img { width: 58px; height: 70px; }
  .room-title-row h2 { font-size: 33px; }
  .room-launch { align-items: flex-start; flex-direction: column; }
  .room-launch-actions { justify-content: flex-start; }
  .tournament-setup { grid-template-columns: 1fr; width: 100%; }
  .tournament-setup-field,
  .tournament-setup-note,
  .tournament-local-note,
  .tournament-setup-actions { grid-column: 1; }
  .holdem-launch .room-launch-actions { width: 100%; max-width: none; }
  .tournament-summary-head { align-items: flex-start; flex-direction: column; }
  .tournament-round-list { grid-template-columns: 1fr; }
  .table-stage { min-height: 660px; border-radius: 31% 31% 16px 16px; }
  .opponent-seats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .opponent-seat:nth-child(4),
  .opponent-seat:nth-child(5) { transform: translateZ(20px); }
  .room-side { grid-template-columns: 1fr; }
  .stud-player-grid { grid-template-columns: 1fr; }
  .stud-player-cards .playing-card,
  .stud-player-cards .card-back { width: 35px; height: 50px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.saved-session-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1320px;
  margin: 22px auto 0;
  padding: 18px 22px;
  border: 1px solid rgba(240, 201, 92, .7);
  border-radius: 12px;
  background: linear-gradient(110deg, rgba(23, 59, 83, .96), rgba(8, 28, 43, .98));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}
.saved-session-banner[hidden] { display: none; }
.saved-session-copy { display: grid; gap: 5px; }
.saved-session-copy strong { color: #fff0bd; font-size: 17px; }
.saved-session-copy span { color: #b7cbd3; font-size: 12px; line-height: 1.45; }
.saved-session-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.saved-session-actions button { white-space: nowrap; }

.room-roster { grid-template-columns: 1fr; max-height: none; overflow: visible; }
.roster-filter-tools { display: grid; gap: 7px; }
.roster-search-label { color: var(--gold-pale); font-size: 9px; font-weight: 950; letter-spacing: .11em; text-transform: uppercase; }
.roster-search-input { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #426c87; border-radius: 7px; background: #061625; color: #fff4d1; font-size: 12px; }
.sport-filter-chips { display: flex; flex-wrap: wrap; gap: 5px; max-height: 92px; overflow: auto; padding: 2px 2px 4px 0; }
.sport-filter-chip { padding: 5px 7px; border: 1px solid #355f78; border-radius: 999px; background: #071727; color: #c1d2da; font-size: 8px; font-weight: 900; }
.sport-filter-chip:hover,
.sport-filter-chip.is-selected { border-color: var(--gold-bright); background: #173c56; color: #ffe9a7; }
.roster-filter-summary { margin: 2px 0; color: #a8bfca; font-size: 9px; font-weight: 850; letter-spacing: .04em; }
.tournament-tier-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; grid-column: 1 / -1; }
.tournament-tier { display: grid; align-content: center; justify-items: center; gap: 3px; min-height: 58px; padding: 7px 4px; border: 1px solid #355f78; border-radius: 7px; background: #071727; color: #c1d2da; }
.tournament-tier strong { color: inherit; font-size: 11px; font-weight: 950; }
.tournament-tier span { color: #a8bfca; font-size: 9px; }
.tournament-tier small { color: var(--gold-pale); font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.tournament-tier:hover,
.tournament-tier.is-selected { border-color: var(--gold-bright); background: linear-gradient(145deg, #173c56, #0b2034); color: #ffe9a7; box-shadow: inset 0 0 0 1px rgba(240, 201, 92, .18); }
.tournament-tier:disabled { cursor: not-allowed; filter: grayscale(.8); opacity: .45; }
.tournament-setup-note { grid-column: 1 / -1; margin: 0; color: #a8bfca; font-size: 10px; line-height: 1.45; }
.tournament-local-note { grid-column: 1 / -1; color: #87a5b3; font-size: 9px; line-height: 1.4; }
.tournament-setup-actions { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.tournament-setup-actions button { flex: 1 1 160px; }
.tournament-setup-field { display: grid; gap: 6px; color: var(--gold-pale); font-size: 9px; font-weight: 950; letter-spacing: .08em; }
.tournament-setup { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(100%, 590px); margin-top: 12px; }
.room-roster-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 330px; overflow: auto; padding-right: 4px; }
.roster-member-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: stretch; gap: 4px; min-width: 0; }
.roster-member-row.has-reaction-poses .roster-name { border-color: rgba(240, 201, 92, .82); background: linear-gradient(110deg, rgba(111, 79, 18, .42), rgba(10, 32, 54, .96)); box-shadow: inset 4px 0 #f0c95c; }
.roster-member-row.has-reaction-poses .roster-name:hover,
.roster-member-row.has-reaction-poses .roster-name.is-selected { border-color: #ffe9a7; background: linear-gradient(110deg, rgba(143, 103, 20, .55), rgba(23, 60, 86, .98)); }
.roster-pose-badge { justify-self: start; display: inline-flex; align-items: center; min-height: 17px; padding: 1px 6px; border: 1px solid rgba(255, 226, 133, .74); border-radius: 999px; background: rgba(60, 45, 11, .86); color: #ffe9a7; font-size: 9px; font-style: normal; font-weight: 950; letter-spacing: .035em; white-space: nowrap; }
.roster-selected-badge { justify-self: start; color: #b9f3c9; font-size: 9px; font-style: normal; font-weight: 950; letter-spacing: .04em; }
.roster-name { width: 100%; }
.roster-name > img { object-fit: contain; }
.roster-profile-button { align-self: stretch; min-width: 39px; padding: 4px; border: 1px solid #426c87; border-radius: 6px; background: #0a2036; color: var(--gold-pale); font-size: 9px; font-weight: 950; }
.roster-remove-button { align-self: stretch; min-width: 54px; padding: 4px 6px; border: 1px solid #b76f61; border-radius: 6px; background: #3a2028; color: #ffe1d5; font-size: 9px; font-weight: 950; }
.roster-remove-button:hover { border-color: #ffd0bd; background: #642d35; color: #fff; }
.roster-swap-notice { display: grid; gap: 6px; margin: 8px 0; padding: 11px; border: 2px solid #e8b83d; border-radius: 9px; background: linear-gradient(120deg, #573f0d, #102b4c); color: #fff0bd; }
.roster-swap-notice > strong { font-size: 14px; }
.roster-swap-notice > span { color: #d6e1e9; font-size: 11px; }
.roster-swap-options { display: flex; flex-wrap: wrap; gap: 6px; }
.roster-drop-choice,.roster-cancel-swap { min-height: 34px; padding: 6px 10px; border: 1px solid #e8b83d; border-radius: 7px; background: #071727; color: #ffe9a7; font-size: 11px; font-weight: 950; cursor: pointer; }
.roster-drop-choice:hover { background: #704c08; color: #fff4cd; }
.roster-cancel-swap { justify-self: start; border-color: #607a91; color: #d4e0e8; }
.current-opponent-panel { position: sticky; top: 0; z-index: 8; margin: -14px -14px 12px; padding: 12px 14px 11px; border-bottom: 2px solid rgba(240, 201, 92, .72); background: linear-gradient(110deg, #102b43, #071727 80%); box-shadow: 0 7px 16px rgba(0, 0, 0, .32); }
.current-opponent-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.current-opponent-heading strong { color: #ffe9a7; font-size: 16px; font-weight: 950; }
.current-opponent-heading span { color: #c5d5de; font-size: 11px; font-weight: 800; text-align: right; }
.current-opponent-cards { display: flex; gap: 7px; overflow-x: auto; padding: 2px 1px 5px; }
.current-opponent-card { position: relative; display: flex; flex: 1 0 170px; align-items: center; gap: 8px; min-width: 170px; max-width: 250px; min-height: 68px; padding: 5px 7px; border: 1px solid #54758a; border-radius: 8px; background: #091c2d; }
.current-opponent-seat { position: absolute; top: 4px; left: 4px; display: grid; width: 19px; height: 19px; place-items: center; border: 1px solid #f0c95c; border-radius: 50%; background: #132d43; color: #ffe9a7; font-size: 10px; font-weight: 950; }
.current-opponent-card > img { flex: 0 0 50px; width: 50px; height: 56px; object-fit: contain; object-position: center bottom; }
.current-opponent-copy { display: grid; flex: 1 1 auto; gap: 3px; min-width: 0; }
.current-opponent-copy strong { overflow: hidden; color: #fff0bd; font-size: 12px; font-weight: 950; text-overflow: ellipsis; white-space: nowrap; }
.current-opponent-copy small { color: #9fb7c4; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.current-opponent-remove { flex: 0 0 auto; min-height: 34px; padding: 6px 8px; border: 1px solid #b76f61; border-radius: 7px; background: #3a2028; color: #ffe1d5; font-size: 10px; font-weight: 950; cursor: pointer; }
.current-opponent-remove:hover { border-color: #ffd0bd; background: #642d35; color: #fff; }
.roster-profile-button:hover,
.seat-profile-button:hover,
.comment-profile-button:hover { border-color: var(--gold-bright); color: #fff0bd; }
.roster-empty { grid-column: 1 / -1; padding: 12px; color: #a8bfca; font-size: 11px; }
.roster-pagination { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 7px; }
.roster-pagination span { color: #a8bfca; font-size: 9px; font-weight: 850; }
.seat-profile-button { position: absolute; right: 5px; bottom: 54px; z-index: 5; display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid rgba(255, 230, 153, .75); border-radius: 50%; background: rgba(4, 15, 25, .9); color: #ffe9a7; font-size: 13px; font-weight: 950; }
.seat-reaction.reaction-raise { border-color: #ffc957; color: #ffe9a7; box-shadow: 0 0 10px rgba(240, 201, 92, .24); }
.seat-reaction.reaction-call { border-color: #69a6d2; color: #c5e5fa; }
.opponent-seat[data-reaction="raise"] .seat-player-image { transform: translateY(-10px) rotate(-6deg) scale(1.06); animation: seat-bet .56s ease-in-out 2; filter: brightness(1.08) drop-shadow(0 0 9px rgba(255, 217, 91, .56)); }
.opponent-seat[data-reaction="call"] .seat-player-image { transform: translateY(-5px) rotate(2deg); animation: seat-check .65s ease-out 1; }
.comment-profile-button { justify-self: start; margin-top: 3px; padding: 3px 7px; border: 1px solid #416b84; border-radius: 999px; background: rgba(3, 12, 20, .7); color: #ffe9a7; font-size: 8px; font-weight: 900; }
.opponent-comment-copy { gap: 4px; }

.hof-profile-dialog { width: min(740px, calc(100vw - 28px)); max-height: calc(100vh - 36px); padding: 20px; overflow: auto; border: 1px solid var(--gold); border-radius: 15px; background: #071523; color: var(--cream); box-shadow: 0 30px 90px rgba(0, 0, 0, .7); }
.hof-profile-dialog::backdrop { background: rgba(0, 5, 10, .72); backdrop-filter: blur(8px); }
.hof-profile-card { display: grid; gap: 15px; padding-top: 17px; }
.hof-profile-top { display: flex; align-items: center; gap: 16px; padding: 13px; border: 1px solid rgba(240, 201, 92, .45); border-radius: 10px; background: linear-gradient(115deg, #123c60, #071a2a); }
.hof-profile-top img { flex: 0 0 92px; width: 92px; height: 112px; object-fit: contain; object-position: center bottom; }
.hof-profile-top h2 { margin: 5px 0; color: #fff0bd; font-family: Georgia, serif; font-size: clamp(23px, 4vw, 34px); }
.hof-profile-top p { margin: 0; color: #b8cbd3; font-size: 12px; }
.hof-profile-card section { padding: 12px 14px; border: 1px solid #294f69; border-radius: 9px; background: #0a2036; }
.hof-profile-card h3 { margin: 0 0 6px; color: var(--gold-pale); font-family: Georgia, serif; font-size: 17px; }
.hof-profile-card section p,
.hof-profile-status { margin: 0; color: #b7cbd3; font-size: 12px; line-height: 1.5; }
.hof-profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 7px; }
.hof-profile-stats > div { display: grid; gap: 4px; padding: 10px; border: 1px solid rgba(240, 201, 92, .33); border-radius: 8px; background: #091d31; }
.hof-profile-stats strong { color: #ffe9a7; font-size: 18px; }
.hof-profile-stats span { color: #b7cbd3; font-size: 10px; line-height: 1.35; }
.hof-profile-link { justify-self: start; display: inline-flex; align-items: center; justify-content: center; color: #08111a; }

@media (max-width: 640px) {
  .saved-session-banner { align-items: flex-start; flex-direction: column; margin: 14px 16px 0; }
  .saved-session-actions { width: 100%; }
  .saved-session-actions button { flex: 1 1 auto; }
  .room-roster-list { grid-template-columns: 1fr; }
  .tournament-tier-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hof-photo-credit-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.hof-photo-credit-links a{color:#ffe9a7;font-size:11px;font-weight:850;text-decoration:underline;text-underline-offset:2px}
.hof-profile-character p+p{margin-top:7px}

/* Give the playable table the full dialog width and move its instructions below it. */
.game-dialog { width: min(1680px, calc(100vw - 24px)); padding: 26px; }
.game-dialog #gameRoomContent { display: grid; gap: 18px; }
.game-dialog .room-title-row p { font-size: 28px; line-height: 1.35; }
.game-dialog .room-launch-copy strong { font-size: 30px; }
.game-dialog .room-launch-copy p { font-size: 24px; line-height: 1.45; }
.game-dialog .room-launch-actions button { min-height: 58px; padding: 13px 18px; font-size: 20px; }
.game-dialog .room-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
.game-dialog .room-side { grid-template-columns: minmax(0, 1fr); }
.game-dialog .table-stage { min-height: 850px; padding: 24px; }
.game-dialog .opponent-picker { position: relative; z-index: 20; overflow: hidden; border: 2px solid rgba(240, 201, 92, .9); border-radius: 12px; background: linear-gradient(110deg, #173c56, #0a2036 72%); box-shadow: 0 5px 18px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 234, 167, .12); }
.game-dialog .opponent-picker > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 72px; padding: 12px 18px; color: var(--gold-pale); cursor: pointer; font-size: 23px; font-weight: 950; list-style: none; transition: background .16s ease, filter .16s ease; }
.game-dialog .opponent-picker > summary::-webkit-details-marker { display: none; }
.game-dialog .opponent-picker > summary:hover { background: rgba(255, 233, 167, .1); filter: brightness(1.14); }
.game-dialog .opponent-picker > summary:focus-visible { outline: 3px solid #fff0bd; outline-offset: -4px; }
.opponent-picker-title { display: inline-flex; align-items: center; gap: 11px; text-transform: uppercase; letter-spacing: .035em; }
.picker-link-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255, 233, 167, .55); border-radius: 9px; background: rgba(5, 18, 30, .52); color: #fff0bd; font-size: 23px; }
.opponent-picker-status { display: grid; justify-items: end; gap: 3px; text-align: right; }
.game-dialog .opponent-picker > summary .opponent-picker-status strong { display: inline-flex; align-items: center; min-height: 29px; padding: 3px 11px; border: 1px solid rgba(240, 201, 92, .65); border-radius: 999px; background: #071727; color: #ffe9a7; font-size: 14px; font-weight: 950; text-transform: uppercase; }
.game-dialog .opponent-picker > summary .opponent-picker-status small { color: #d5e3e9; font-size: 13px; font-weight: 750; }
.picker-chevron { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 50%; background: rgba(255, 233, 167, .12); color: #ffe9a7; font-size: 24px; transition: transform .16s ease; }
.opponent-picker[open] .picker-chevron { transform: rotate(180deg); }
.game-dialog .opponent-picker-body { max-height: min(58vh, 680px); overflow: auto; padding: 0 14px 14px; }
.game-dialog .opponent-picker-body .room-info-card { padding: 14px; }
.game-dialog .opponent-picker-body .room-roster { max-height: none; }
.game-dialog .room-instructions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.game-dialog .room-instructions .room-info-card { padding: 22px; }
.game-dialog .room-instructions .room-info-card h3 { font-size: 30px; }
.game-dialog .room-instructions .room-info-card p,
.game-dialog .room-instructions .demo-note { font-size: 26px; line-height: 1.5; }
.game-dialog .room-instructions .demo-note { grid-column: 1 / -1; }
.game-dialog .table-rail { font-size: 20px; }
.game-dialog .table-brand { font-size: 30px; }
.game-dialog .opponent-seats { gap: 15px; margin: 38px 0 22px; }
.game-dialog .opponent-seat { min-height: 310px; padding: 0 8px; }
.game-dialog .opponent-seat img { height: 256px; }
.game-dialog .opponent-seat strong { right: 8px; bottom: 12px; left: 8px; padding: 6px; font-size: 20px; }
.game-dialog .seat-chip { top: 8px; left: 8px; width: 48px; height: 48px; font-size: 20px; }
.game-dialog .seat-reaction { top: 10px; right: 10px; padding: 6px 10px; font-size: 16px; }
.game-dialog .seat-pose-marker { right: 10px; bottom: 48px; width: 50px; height: 50px; font-size: 30px; }
.game-dialog .seat-profile-button { right: 10px; bottom: 108px; width: 48px; height: 48px; font-size: 26px; }
.game-dialog .opponent-comment { gap: 18px; width: min(100%, 900px); min-height: 140px; margin: 18px auto 24px; padding: 14px 20px 14px 14px; }
.game-dialog .opponent-comment > img { flex-basis: 96px; width: 96px; height: 120px; }
.game-dialog .opponent-comment-kicker { font-size: 16px; }
.game-dialog .opponent-comment-copy strong { font-size: 22px; }
.game-dialog .opponent-comment-copy p { font-size: 24px; line-height: 1.4; }
.game-dialog .opponent-comment-pose { flex-basis: 68px; width: 68px; height: 68px; font-size: 36px; }
.game-dialog .comment-profile-button { margin-top: 6px; padding: 7px 14px; font-size: 16px; }
.game-dialog .turn-prompt { gap: 20px; width: min(100%, 900px); margin: 22px auto 4px; padding: 16px 22px 16px 16px; }
.game-dialog .turn-prompt img { width: 124px; height: 156px; }
.game-dialog .turn-prompt-kicker { font-size: 18px; }
.game-dialog .turn-prompt-copy strong { font-size: 34px; }
.game-dialog .turn-prompt-copy > span { font-size: 24px; }
.game-dialog .turn-prompt-copy small { font-size: 20px; }
.game-dialog .turn-prompt-actions { gap: 10px; margin-top: 12px; }
.game-dialog .turn-prompt-actions .turn-action-button { min-width: 112px; min-height: 70px; padding: 15px 20px; font-size: 25px; }
.game-dialog .betting-actions button[data-betting-action="check"],
.game-dialog .betting-actions button[data-betting-action="call"],
.game-dialog .betting-actions button[data-betting-action="raise"],
.game-dialog .follow-queen-actions button[data-betting-action="check"],
.game-dialog .follow-queen-actions button[data-betting-action="call"],
.game-dialog .follow-queen-actions button[data-betting-action="raise"] { min-height: 74px; padding: 16px 20px; font-size: 27px; }
.game-dialog .follow-queen-actions button[data-betting-action="check"],
.game-dialog .follow-queen-actions button[data-betting-action="call"],
.game-dialog .follow-queen-actions button[data-betting-action="raise"] { flex-basis: 145px; }
.game-dialog .table-center { gap: 12px; min-height: 250px; padding: 12px 18px; }
.game-dialog .room-card-row { min-height: 190px; padding: 24px; }
.game-dialog .room-card-row .card-back,
.game-dialog .room-card-row .playing-card { width: 136px; height: 192px; margin-left: -20px; font-size: 54px; }
.game-dialog .room-card-row .playing-card strong { font-size: 50px; }
.game-dialog .room-card-row .playing-card em { font-size: 24px; }
.game-dialog .room-card-row .card-back-mark { font-size: 32px; }
.game-dialog .room-card-row .card-back b { right: 16px; bottom: 14px; font-size: 26px; }
.game-dialog .card-group { gap: 12px; }
.game-dialog .card-group small { font-size: 20px; }
.game-dialog .blackjack-main-hands .card-group { min-width: 250px; }
.game-dialog .blackjack-opponent > small { font-size: 16px; }
.game-dialog .blackjack-opponent .card-back,
.game-dialog .blackjack-opponent .playing-card { width: 76px; height: 108px; margin-left: -12px; font-size: 30px; }
.game-dialog .blackjack-opponent .playing-card em { font-size: 16px; }
.game-dialog .blackjack-opponent .playing-card strong { font-size: 26px; }
.game-dialog .video-reel-window { min-height: 222px; }
.game-dialog .video-poker-machine { width: min(100%, 1100px); padding: 22px; }
.game-dialog .video-reel .playing-card,
.game-dialog .video-reel .card-back { width: 124px; height: 180px; font-size: 50px; }
.game-dialog .video-reel .playing-card em { font-size: 24px; }
.game-dialog .video-reel .playing-card strong { font-size: 46px; }
.game-dialog .video-reel .card-back-mark { font-size: 30px; }
.game-dialog .video-reel small,
.game-dialog .video-reel b { font-size: 16px; }
.game-dialog .showdown-result { width: min(100%, 900px); padding: 18px 22px; }
.game-dialog .showdown-kicker { font-size: 18px; }
.game-dialog .showdown-result > strong { font-size: 40px; }
.game-dialog .showdown-winning-label { padding: 10px; font-size: 20px; }
.game-dialog .bet-amount-popup { top: 35px; min-width: 150px; padding: 10px 16px; }
.game-dialog .bet-amount-popup strong { font-size: 15px; }
.game-dialog .bet-amount-popup span { font-size: 20px; }
.game-dialog .showdown-result .playing-card { width: 86px; height: 118px; font-size: 36px; }
.game-dialog .showdown-result .playing-card strong { font-size: 34px; }
.game-dialog .showdown-result .playing-card em { font-size: 18px; }
.game-dialog .showdown-result small { font-size: 18px; }
.game-dialog .tournament-opponent-hand .playing-card { width: 78px; height: 108px; font-size: 32px; }
.game-dialog .tournament-opponent-hand .playing-card em { font-size: 16px; }
.game-dialog .tournament-opponent-hand .playing-card strong { font-size: 30px; }
.game-dialog .table-status { max-width: 1050px; min-height: 82px; font-size: 28px; line-height: 1.5; }
.game-dialog .room-control-hint { font-size: 24px; }
.game-dialog .table-controls button { min-height: 58px; padding: 14px 22px; font-size: 20px; }
.game-dialog .room-side .betting-panel { padding: 22px; }
.game-dialog .betting-panel-heading span,
.game-dialog .betting-turn-summary span,
.game-dialog .betting-stats span,
.game-dialog .betting-label,
.game-dialog .blackjack-panel-actions button,
.game-dialog .three-card-action-row button,
.game-dialog .video-poker-machine-help,
.game-dialog .video-reel small,
.game-dialog .video-reel b { font-size: 18px; }
.game-dialog .betting-turn-summary strong,
.game-dialog .betting-stats strong,
.game-dialog .betting-input-row span,
.game-dialog .betting-wager-readout,
.game-dialog .betting-actions button,
.game-dialog .blackjack-panel-actions button,
.game-dialog .three-card-action-row button { font-size: 22px; }
.game-dialog .betting-callout,
.game-dialog .betting-help,
.game-dialog .betting-seated li,
.game-dialog .betting-log,
.game-dialog .betting-note,
.game-dialog .three-card-hand-readout,
.game-dialog .machine-result span,
.game-dialog .machine-result b,
.game-dialog .three-card-result span,
.game-dialog .stud-result span { font-size: 22px !important; }
.game-dialog .betting-actions button,
.game-dialog .blackjack-panel-actions button,
.game-dialog .three-card-action-row button { min-height: 58px; padding: 13px 16px; }
.game-dialog .betting-input { min-height: 58px; font-size: 24px; }
.game-dialog .room-side .betting-panel h3 { font-size: 30px; }
.game-dialog .room-side .betting-panel p,
.game-dialog .room-side .betting-panel label,
.game-dialog .room-side .betting-panel summary,
.game-dialog .room-side .betting-panel li,
.game-dialog .room-side .betting-panel small { font-size: 20px; line-height: 1.45; }
.game-dialog .room-side .betting-panel input,
.game-dialog .room-side .betting-panel select { min-height: 58px; font-size: 22px; }
.game-dialog .room-side .betting-panel button { min-height: 58px; padding: 13px 16px; font-size: 20px; }
.game-dialog .room-side .machine-paytable { font-size: 16px; }
.game-dialog .room-side .machine-paytable caption,
.game-dialog .room-side .machine-paytable thead th { font-size: 16px; }

@media (max-width: 880px) {
  .game-dialog { width: calc(100vw - 14px); max-height: calc(100vh - 14px); padding: 14px; }
  .game-dialog .table-stage { min-height: 760px; padding: 12px; border-width: 5px; border-radius: 26px; }
  .game-dialog .opponent-seats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .game-dialog .opponent-seat { min-height: 235px; padding: 0 4px; }
  .game-dialog .opponent-seat img { height: 185px; }
  .game-dialog .opponent-seat strong { font-size: 16px; }
  .game-dialog .seat-chip { width: 38px; height: 38px; font-size: 16px; }
  .game-dialog .seat-reaction { padding: 4px 7px; font-size: 12px; }
  .game-dialog .seat-pose-marker { width: 40px; height: 40px; font-size: 24px; }
  .game-dialog .seat-profile-button { bottom: 76px; width: 38px; height: 38px; font-size: 20px; }
  .game-dialog .room-card-row .card-back,
  .game-dialog .room-card-row .playing-card { width: clamp(64px, 12vw, 105px); height: clamp(91px, 17vw, 148px); margin-left: -14px; font-size: 38px; }
  .game-dialog .room-card-row .playing-card strong { font-size: 36px; }
  .game-dialog .room-card-row .playing-card em { font-size: 18px; }
  .game-dialog .blackjack-opponent .card-back,
  .game-dialog .blackjack-opponent .playing-card { width: 58px; height: 82px; margin-left: -10px; font-size: 23px; }
  .game-dialog .video-reel-window { min-height: 150px; }
  .game-dialog .video-reel .playing-card,
  .game-dialog .video-reel .card-back { width: 78px; height: 112px; font-size: 32px; }
  .game-dialog .showdown-result > strong { font-size: 32px; }
  .game-dialog .room-instructions { grid-template-columns: 1fr; }
  .game-dialog .room-instructions .demo-note { grid-column: 1; }
  .game-dialog .room-instructions .room-info-card p,
  .game-dialog .room-instructions .demo-note { font-size: 20px; }
  .game-dialog .turn-prompt-copy strong { font-size: 28px; }
  .game-dialog .turn-prompt-copy > span { font-size: 20px; }
  .game-dialog .turn-prompt-copy small { font-size: 16px; }
  .game-dialog .table-status { font-size: 22px; }
  .game-dialog .room-control-hint { font-size: 18px; }
}

@media (max-width: 520px) {
  .game-dialog { padding: 10px; }
  .game-dialog .room-title-row h2 { font-size: 28px; }
  .game-dialog .room-title-row p { font-size: 19px; }
  .game-dialog .room-launch-copy strong { font-size: 24px; }
  .game-dialog .room-launch-copy p { font-size: 18px; }
  .game-dialog .room-title-row img { width: 48px; height: 58px; }
  .game-dialog .opponent-picker > summary { align-items: center; gap: 8px; min-height: 68px; padding: 10px 12px; font-size: 16px; }
  .opponent-picker-title { gap: 7px; }
  .picker-link-icon { width: 31px; height: 31px; font-size: 19px; }
  .opponent-picker-status { gap: 2px; }
  .game-dialog .opponent-picker > summary .opponent-picker-status strong { min-height: 25px; padding: 2px 8px; font-size: 11px; }
  .game-dialog .opponent-picker > summary .opponent-picker-status small { max-width: 150px; font-size: 10px; }
  .picker-chevron { width: 27px; height: 27px; flex-basis: 27px; font-size: 20px; }
  .game-dialog .opponent-seats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-dialog .opponent-seat { min-height: 215px; }
  .game-dialog .opponent-seat img { height: 168px; }
  .game-dialog .turn-prompt { align-items: flex-start; gap: 8px; padding: 9px; }
  .game-dialog .turn-prompt img { width: 62px; height: 80px; }
  .game-dialog .turn-prompt-actions .turn-action-button { min-width: 78px; min-height: 56px; padding: 10px 12px; font-size: 19px; }
  .game-dialog .betting-actions button[data-betting-action="check"],
  .game-dialog .betting-actions button[data-betting-action="call"],
  .game-dialog .betting-actions button[data-betting-action="raise"],
  .game-dialog .follow-queen-actions button[data-betting-action="check"],
  .game-dialog .follow-queen-actions button[data-betting-action="call"],
  .game-dialog .follow-queen-actions button[data-betting-action="raise"] { min-height: 58px; padding: 10px 12px; font-size: 20px; }
  .game-dialog .turn-prompt-kicker { font-size: 12px; }
  .game-dialog .turn-prompt-copy strong { font-size: 21px; }
  .game-dialog .turn-prompt-copy > span { font-size: 16px; }
  .game-dialog .turn-prompt-copy small { font-size: 13px; }
  .game-dialog .opponent-comment > img { flex-basis: 58px; width: 58px; height: 75px; }
  .game-dialog .opponent-comment-kicker { font-size: 11px; }
  .game-dialog .opponent-comment-copy strong { font-size: 17px; }
  .game-dialog .opponent-comment-copy p { font-size: 18px; }
  .game-dialog .room-card-row { padding: 10px 4px; }
  .game-dialog .room-card-row .card-back,
  .game-dialog .room-card-row .playing-card { width: clamp(56px, 16vw, 82px); height: clamp(79px, 23vw, 116px); margin-left: -12px; font-size: 29px; }
  .game-dialog .room-card-row .playing-card strong { font-size: 28px; }
  .game-dialog .room-card-row .playing-card em { font-size: 14px; }
  .game-dialog .blackjack-opponent-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-dialog .room-instructions .room-info-card h3 { font-size: 24px; }
  .game-dialog .room-instructions .room-info-card p,
  .game-dialog .room-instructions .demo-note { font-size: 17px; }
  .game-dialog .table-status { font-size: 18px; }
  .game-dialog .table-controls button { min-height: 50px; padding: 10px; font-size: 16px; }
  .game-dialog .room-side .betting-panel h3 { font-size: 24px; }
  .game-dialog .room-side .betting-panel p,
  .game-dialog .room-side .betting-panel label,
  .game-dialog .room-side .betting-panel summary,
  .game-dialog .room-side .betting-panel li,
  .game-dialog .room-side .betting-panel small { font-size: 16px; }
}

/* Keep every playable card table and its primary controls in one viewport. */
.game-dialog {
  width: min(1720px, calc(100vw - 24px));
  height: min(calc(100dvh - 20px), 1220px);
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 20px);
  padding: clamp(8px, 1vw, 16px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.game-dialog[open],
.game-dialog.fallback-open {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 7px;
}

.game-dialog.fallback-open {
  position: fixed;
  inset: 10px;
  z-index: 100;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
}

.game-dialog .dialog-top { min-height: 30px; padding-bottom: 5px; }
.game-dialog .dialog-top .eyebrow { font-size: 9px; }
.game-dialog .close-button { width: 30px; height: 30px; font-size: 21px; }
.game-dialog #gameRoomContent {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  gap: 6px;
  min-height: 0;
  overflow: hidden;
}

.game-dialog .room-title-row { min-height: 0; gap: 9px; margin: 0; }
.game-dialog .room-title-row img { width: 40px; height: 46px; }
.game-dialog .room-title-row h2 { font-size: clamp(21px, 2vw, 30px); }
.game-dialog .room-title-row p { margin: 1px 0 0; font-size: 11px; line-height: 1.25; }
.game-dialog .room-launch { min-height: 44px; gap: 8px; margin: 0; padding: 6px 9px; }
.game-dialog .room-launch-copy { gap: 2px; min-width: 0; }
.game-dialog .room-launch-copy .eyebrow { font-size: 8px; }
.game-dialog .room-launch-copy strong { font-size: 13px; line-height: 1.2; }
.game-dialog .room-launch-copy p { font-size: 10px; line-height: 1.25; }
.game-dialog .room-launch-actions { align-items: center; flex: 0 0 auto; gap: 6px; }
.game-dialog .room-launch-actions > button,
.game-dialog .tournament-tools > summary { min-height: 34px; padding: 7px 10px; font-size: 11px; }
.game-dialog .holdem-launch .room-launch-actions { display: flex; width: auto; max-width: none; }
.game-dialog .tournament-tools { position: relative; }
.game-dialog .tournament-tools > summary { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #426c87; border-radius: 7px; background: #0c2842; color: var(--gold-pale); cursor: pointer; list-style: none; white-space: nowrap; }
.game-dialog .tournament-tools > summary::-webkit-details-marker { display: none; }
.game-dialog .tournament-tools[open] { position: absolute; z-index: 25; top: 100%; right: 0; width: min(640px, calc(100vw - 48px)); padding: 10px; border: 1px solid var(--gold); border-radius: 10px; background: #071523; box-shadow: 0 14px 40px rgba(0, 0, 0, .65); }
.game-dialog .tournament-tools[open] > summary { margin-bottom: 8px; }
.game-dialog .tournament-tools .tournament-setup { width: 100%; max-width: none; margin: 0; }
.game-dialog .tournament-tools .tournament-setup-note,
.game-dialog .tournament-tools .tournament-local-note { font-size: 9px; }

.game-dialog .tournament-summary-details { min-height: 0; }
.game-dialog .tournament-summary-details > summary,
.game-dialog .room-instructions > summary {
  min-height: 27px;
  padding: 5px 9px;
  border: 1px solid #355f78;
  border-radius: 7px;
  background: rgba(9, 32, 51, .92);
  color: var(--gold-pale);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
}
.game-dialog .tournament-summary-details[open] { position: absolute; z-index: 24; right: 20px; bottom: 20px; width: min(760px, calc(100vw - 48px)); max-height: min(75dvh, 760px); overflow: auto; padding: 9px; border: 1px solid #4c99cd; border-radius: 10px; background: #071523; box-shadow: 0 14px 40px rgba(0, 0, 0, .65); }
.game-dialog .tournament-summary-details[open] .tournament-summary { margin: 8px 0 0; }
.game-dialog .opponent-picker { min-height: 0; }
.game-dialog .opponent-picker > summary { min-height: 34px; padding: 4px 9px; font-size: 11px; }
.game-dialog .opponent-picker > summary .picker-link-icon { width: 25px; height: 25px; font-size: 15px; }
.game-dialog .opponent-picker > summary .opponent-picker-status strong { min-height: 20px; padding: 2px 7px; font-size: 9px; }
.game-dialog .opponent-picker > summary .opponent-picker-status small { font-size: 8px; }
.game-dialog .opponent-picker > summary .picker-chevron { width: 23px; height: 23px; flex-basis: 23px; font-size: 16px; }
.game-dialog .opponent-picker-body { max-height: min(55dvh, 620px); }

.game-dialog .room-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 32%);
  gap: 9px;
  min-height: 0;
  height: 100%;
}
.game-dialog .table-stage {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  height: 100%;
  padding: 8px;
  overflow: hidden;
  border-width: 5px;
  border-radius: clamp(30px, 8vw, 120px) clamp(30px, 8vw, 120px) 13px 13px;
}
.game-dialog .table-stage::before { height: 44px; }
.game-dialog .table-stage::after { top: 34%; width: 130px; height: 82px; font-size: 62px; line-height: 82px; }
.game-dialog .table-rail { gap: 5px; padding: 5px 8px; font-size: 8px; }
.game-dialog .table-brand { margin: 4px 0 0; font-size: clamp(11px, 1vw, 15px); }
.game-dialog .opponent-seats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin: 7px 0 3px; }
.game-dialog .opponent-seat { min-width: 0; min-height: 0; height: clamp(74px, 11vh, 132px); padding: 0 2px; overflow: hidden; }
.game-dialog .opponent-seat img { height: calc(100% - 18px); }
.game-dialog .opponent-seat strong { right: 2px; bottom: 3px; left: 2px; padding: 2px 1px; font-size: 8px; }
.game-dialog .seat-chip { top: 2px; left: 2px; width: 20px; height: 20px; font-size: 8px; }
.game-dialog .seat-reaction { top: 2px; right: 2px; padding: 2px 3px; font-size: 7px; }
.game-dialog .seat-pose-marker { right: 2px; bottom: 20px; width: 21px; height: 21px; font-size: 12px; }
.game-dialog .seat-profile-button { right: 2px; bottom: 44px; width: 23px; height: 23px; font-size: 12px; }
.game-dialog .table-action-panels { gap: 6px; margin: 4px auto 2px; }
.game-dialog .opponent-comment,
.game-dialog .turn-prompt { min-height: 52px; gap: 6px; padding: 4px 6px; }
.game-dialog .opponent-comment > img { flex-basis: 32px; width: 32px; height: 42px; }
.game-dialog .opponent-comment-kicker { font-size: 7px; }
.game-dialog .opponent-comment-copy strong { font-size: 9px; }
.game-dialog .opponent-comment-copy p { font-size: 10px; line-height: 1.2; }
.game-dialog .opponent-comment-pose { flex-basis: 24px; width: 24px; height: 24px; font-size: 13px; }
.game-dialog .turn-prompt img { width: 34px; height: 44px; }
.game-dialog .turn-prompt-kicker { font-size: 7px; }
.game-dialog .turn-prompt-copy strong { font-size: 11px; }
.game-dialog .turn-prompt-copy > span { font-size: 9px; }
.game-dialog .turn-prompt-copy small { font-size: 8px; }
.game-dialog .turn-prompt-actions { gap: 4px; margin-top: 3px; }
.game-dialog .turn-prompt-actions .turn-action-button { min-width: 52px; min-height: 30px; padding: 4px 7px; font-size: 10px; }
.game-dialog .table-center { display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 0; padding: 2px 5px; overflow: hidden; }
.game-dialog .room-card-row { align-items: center; min-height: 0; max-width: 100%; padding: 3px; }
.game-dialog .room-card-row .card-back,
.game-dialog .room-card-row .playing-card { width: clamp(48px, 4.8vw, 92px); height: clamp(68px, 7.1vw, 130px); margin-left: -10px; font-size: clamp(22px, 2.2vw, 40px); }
.game-dialog .room-card-row .playing-card strong { font-size: clamp(20px, 2.1vw, 38px); }
.game-dialog .room-card-row .playing-card em { font-size: clamp(10px, 1vw, 18px); }
.game-dialog .room-card-row .card-back-mark { font-size: clamp(10px, 1.2vw, 22px); }
.game-dialog .room-card-row .card-back b { right: 8px; bottom: 7px; font-size: clamp(15px, 1.4vw, 26px); }
.game-dialog .table-status { max-width: 100%; min-height: 0; font-size: clamp(10px, .9vw, 14px); line-height: 1.25; }
.game-dialog .table-controls { gap: 5px; margin-top: 2px; }
.game-dialog .table-controls button { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.game-dialog .room-side { display: grid; align-content: start; gap: 5px; min-width: 0; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.game-dialog .room-side .betting-panel { min-height: 0; padding: 9px; }
.game-dialog .room-side .betting-panel h3 { font-size: 16px; }
.game-dialog .room-side .betting-panel p,
.game-dialog .room-side .betting-panel label,
.game-dialog .room-side .betting-panel summary,
.game-dialog .room-side .betting-panel li,
.game-dialog .room-side .betting-panel small { font-size: 10px; line-height: 1.3; }
.game-dialog .betting-panel-heading span,
.game-dialog .betting-turn-summary span,
.game-dialog .betting-label { font-size: 8px; }
.game-dialog .betting-turn-summary { gap: 5px; margin-top: 6px; padding: 5px 6px; }
.game-dialog .betting-turn-summary strong,
.game-dialog .betting-stats strong { font-size: 10px; }
.game-dialog .betting-stats { gap: 4px; margin: 6px 0; }
.game-dialog .betting-stats > div { gap: 2px; padding: 5px 4px; }
.game-dialog .betting-stats span { font-size: 8px; }
.game-dialog .betting-callout { margin: 5px 0; padding: 6px; font-size: 10px; }
.game-dialog .betting-label { margin: 5px 0 3px; }
.game-dialog .betting-input-row { gap: 5px; margin: 3px 0; }
.game-dialog .betting-input { min-height: 35px; padding: 6px 8px; font-size: 13px; }
.game-dialog .betting-input-row span { font-size: 9px; }
.game-dialog .betting-help,
.game-dialog .betting-note { margin: 4px 0; font-size: 10px !important; line-height: 1.3; }
.game-dialog .betting-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
.game-dialog .betting-actions button { min-width: 0; min-height: 34px; padding: 5px 4px; font-size: 10px; line-height: 1.15; }
.game-dialog .blackjack-panel-actions,
.game-dialog .three-card-action-row { gap: 5px; margin-top: 6px; }
.game-dialog .blackjack-panel-actions button,
.game-dialog .three-card-action-row button,
.game-dialog .room-side .betting-panel button { min-height: 36px; padding: 6px 8px; font-size: 11px; }
.game-dialog .three-card-hand-readout,
.game-dialog .three-card-result { gap: 4px; margin-top: 6px; padding: 6px; font-size: 9px; }
.game-dialog .three-card-hand-readout strong { font-size: 11px; }
.game-dialog .three-card-result strong { font-size: 14px; }
.game-dialog .three-card-result span { font-size: 9px !important; }
.game-dialog .three-card-rules,
.game-dialog .follow-queen-rules,
.game-dialog .machine-rules { margin-top: 6px; padding-top: 5px; }
.game-dialog .three-card-rules summary,
.game-dialog .follow-queen-rules summary,
.game-dialog .machine-rules summary { font-size: 9px; }
.game-dialog .blackjack-opponent-row { gap: 4px; margin-top: 5px; }
.game-dialog .blackjack-opponent .card-back,
.game-dialog .blackjack-opponent .playing-card { width: 40px; height: 58px; margin-left: -8px; font-size: 17px; }
.game-dialog .blackjack-opponent .playing-card em { font-size: 9px; }
.game-dialog .blackjack-opponent .playing-card strong { font-size: 16px; }
.game-dialog .video-poker-machine { width: min(100%, 860px); padding: 10px; border-width: 5px; }
.game-dialog .video-reel-window { min-height: 0; padding: 4px; }
.game-dialog .video-reel .playing-card,
.game-dialog .video-reel .card-back { width: clamp(44px, 5vw, 82px); height: clamp(62px, 7vw, 116px); font-size: clamp(20px, 2vw, 36px); }
.game-dialog .video-reel .playing-card em { font-size: clamp(9px, 1vw, 17px); }
.game-dialog .video-reel .playing-card strong { font-size: clamp(19px, 1.9vw, 35px); }
.game-dialog .video-reel .card-back-mark { font-size: clamp(10px, 1.1vw, 20px); }
.game-dialog .video-reel-window + .machine-hand-readout { margin-top: 5px; padding: 5px; }
.game-dialog .machine-hand-readout > strong { font-size: 13px; }
.game-dialog .machine-hand-readout > small { font-size: 8px; }
.game-dialog .machine-action-row { gap: 5px; margin-top: 6px; }
.game-dialog .machine-action-row button { min-height: 34px; font-size: 9px; }
.game-dialog .machine-wager-preview,
.game-dialog .video-poker-panel .machine-balance { margin: 6px 0; padding: 6px; font-size: 9px; }
.game-dialog .machine-result { gap: 3px; margin: 6px 0; padding: 6px; }
.game-dialog .machine-result strong { font-size: 14px; }
.game-dialog .machine-result span,
.game-dialog .machine-result b { font-size: 9px !important; }
.game-dialog .room-instructions { display: block; min-height: 0; margin: 0; }
.game-dialog .room-instruction-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.game-dialog .room-instruction-grid .room-info-card { padding: 8px; }
.game-dialog .room-instruction-grid .room-info-card h3 { margin-bottom: 3px; font-size: 13px; }
.game-dialog .room-instruction-grid .room-info-card p,
.game-dialog .room-instruction-grid .demo-note { font-size: 9px; line-height: 1.3; }
.game-dialog .room-instruction-grid .demo-note { grid-column: 1 / -1; padding: 6px; }

@media (max-width: 880px) {
  .game-dialog .room-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, 38%); gap: 7px; }
  .game-dialog .table-stage { min-height: 0; padding: 6px; border-width: 4px; }
  .game-dialog .opponent-seats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
  .game-dialog .opponent-seat { height: clamp(62px, 10vh, 90px); }
  .game-dialog .table-action-panels { gap: 4px; }
  .game-dialog .table-action-panels .opponent-comment-copy p { font-size: 9px; }
  .game-dialog .room-side .betting-panel { padding: 7px; }
  .game-dialog .room-card-row .card-back,
  .game-dialog .room-card-row .playing-card { width: clamp(40px, 6vw, 66px); height: clamp(56px, 8.5vh, 88px); margin-left: -9px; }
}

@media (max-width: 620px) {
  .game-dialog {
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    padding: 6px;
    border-radius: 0;
  }
  .game-dialog.fallback-open { inset: 0; }
  .game-dialog .dialog-top { min-height: 25px; padding-bottom: 3px; }
  .game-dialog .dialog-top .eyebrow { font-size: 8px; }
  .game-dialog .close-button { width: 26px; height: 26px; font-size: 18px; }
  .game-dialog #gameRoomContent { grid-template-rows: auto auto auto minmax(0, 1fr) auto; gap: 4px; }
  .game-dialog .room-title-row { display: none; }
  .game-dialog .room-launch { min-height: 38px; padding: 4px 6px; }
  .game-dialog .room-launch-copy .eyebrow { font-size: 7px; }
  .game-dialog .room-launch-copy strong { font-size: 11px; }
  .game-dialog .room-launch-copy p { font-size: 8px; }
  .game-dialog .room-launch-actions { gap: 4px; }
  .game-dialog .room-launch-actions > button,
  .game-dialog .tournament-tools > summary { min-height: 29px; padding: 5px 7px; font-size: 9px; }
  .game-dialog .opponent-picker > summary { min-height: 30px; gap: 5px; padding: 3px 6px; font-size: 9px; }
  .game-dialog .opponent-picker > summary .picker-link-icon { width: 21px; height: 21px; font-size: 12px; }
  .game-dialog .opponent-picker > summary .opponent-picker-status small { display: none; }
  .game-dialog .opponent-picker > summary .opponent-picker-status strong { font-size: 8px; }
  .game-dialog .room-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, .92fr); gap: 5px; }
  .game-dialog .table-stage { padding: 4px; border-width: 3px; border-radius: 28px 28px 9px 9px; }
  .game-dialog .table-rail { padding: 3px 5px; font-size: 7px; }
  .game-dialog .table-brand { margin-top: 2px; font-size: 10px; }
  .game-dialog .opponent-seats { gap: 2px; margin: 3px 0 1px; }
  .game-dialog .opponent-seat { height: clamp(48px, 8vh, 68px); border-radius: 5px; }
  .game-dialog .opponent-seat img { height: calc(100% - 12px); }
  .game-dialog .opponent-seat strong { bottom: 2px; font-size: 6px; }
  .game-dialog .seat-chip { width: 15px; height: 15px; font-size: 6px; }
  .game-dialog .seat-reaction { padding: 1px 2px; font-size: 5px; }
  .game-dialog .seat-pose-marker { bottom: 14px; width: 16px; height: 16px; font-size: 9px; }
  .game-dialog .seat-profile-button { bottom: 31px; width: 17px; height: 17px; font-size: 9px; }
  .game-dialog .table-action-panels { gap: 3px; margin: 2px 0 0; }
  .game-dialog .opponent-comment,
  .game-dialog .turn-prompt { min-height: 38px; gap: 3px; padding: 3px; border-radius: 7px; }
  .game-dialog .opponent-comment > img { flex-basis: 21px; width: 21px; height: 28px; }
  .game-dialog .opponent-comment-kicker { font-size: 5px; }
  .game-dialog .opponent-comment-copy strong { font-size: 7px; }
  .game-dialog .opponent-comment-copy p { font-size: 7px; }
  .game-dialog .opponent-comment-pose { display: none; }
  .game-dialog .turn-prompt img { width: 22px; height: 29px; }
  .game-dialog .turn-prompt-kicker { font-size: 5px; }
  .game-dialog .turn-prompt-copy strong { font-size: 8px; }
  .game-dialog .turn-prompt-copy > span { font-size: 7px; }
  .game-dialog .turn-prompt-copy small { font-size: 6px; }
  .game-dialog .turn-prompt-actions .turn-action-button { min-width: 39px; min-height: 23px; padding: 2px 4px; font-size: 7px; }
  .game-dialog .table-center { gap: 2px; padding: 1px 3px; }
  .game-dialog .room-card-row { padding: 1px; }
  .game-dialog .room-card-row .card-back,
  .game-dialog .room-card-row .playing-card { width: clamp(35px, 10vw, 51px); height: clamp(49px, 14vw, 72px); margin-left: -7px; font-size: 20px; }
  .game-dialog .room-card-row .playing-card strong { font-size: 19px; }
  .game-dialog .room-card-row .playing-card em { font-size: 9px; }
  .game-dialog .table-status { font-size: 8px; }
  .game-dialog .table-controls { gap: 3px; }
  .game-dialog .table-controls button { min-height: 25px; padding: 3px 6px; font-size: 8px; }
  .game-dialog .room-side { overflow-y: auto; }
  .game-dialog .room-side .betting-panel { padding: 5px; border-radius: 7px; }
  .game-dialog .room-side .betting-panel h3 { font-size: 12px; }
  .game-dialog .betting-panel-heading span,
  .game-dialog .betting-turn-summary span,
  .game-dialog .betting-label { font-size: 7px; }
  .game-dialog .betting-turn-summary { margin-top: 3px; padding: 3px 4px; }
  .game-dialog .betting-stats { gap: 2px; margin: 3px 0; }
  .game-dialog .betting-stats > div { padding: 3px 2px; }
  .game-dialog .betting-stats span { font-size: 6px; }
  .game-dialog .betting-stats strong { font-size: 8px; }
  .game-dialog .betting-callout { margin: 3px 0; padding: 4px; font-size: 8px; }
  .game-dialog .betting-input { min-height: 27px; padding: 3px 5px; font-size: 11px; }
  .game-dialog .betting-input-row span { font-size: 7px; }
  .game-dialog .betting-help,
  .game-dialog .betting-note { margin: 2px 0; font-size: 8px !important; }
  .game-dialog .betting-actions { gap: 2px; margin-top: 3px; }
  .game-dialog .betting-actions button { min-height: 27px; padding: 3px 2px; font-size: 8px; }
  .game-dialog .blackjack-panel-actions button,
  .game-dialog .three-card-action-row button,
  .game-dialog .room-side .betting-panel button { min-height: 29px; padding: 4px; font-size: 9px; }
  .game-dialog .three-card-hand-readout,
  .game-dialog .three-card-result { margin-top: 3px; padding: 4px; font-size: 8px; }
  .game-dialog .three-card-hand-readout strong { font-size: 9px; }
  .game-dialog .follow-queen-table { padding: 2px 0; }
  .game-dialog .stud-wild-marker { gap: 1px; margin-bottom: 3px; padding: 3px; }
  .game-dialog .stud-wild-marker > span { font-size: 6px; }
  .game-dialog .stud-wild-marker > strong { font-size: 11px; }
  .game-dialog .stud-wild-marker > small { font-size: 7px; }
  .game-dialog .stud-player-grid { gap: 2px; }
  .game-dialog .stud-player-row { padding: 3px; }
  .game-dialog .stud-player-heading { min-height: 15px; margin-bottom: 2px; }
  .game-dialog .stud-player-heading img { width: 14px; height: 17px; }
  .game-dialog .stud-player-heading strong { font-size: 7px; }
  .game-dialog .stud-player-heading small { font-size: 6px; }
  .game-dialog .stud-player-cards .playing-card,
  .game-dialog .stud-player-cards .card-back { width: clamp(18px, 5vw, 26px); height: clamp(26px, 7vw, 37px); font-size: 9px; }
  .game-dialog .stud-player-cards .playing-card strong { font-size: 8px; }
  .game-dialog .stud-player-cards .playing-card em { font-size: 5px; }
  .game-dialog .room-instructions > summary { min-height: 22px; padding: 3px 6px; font-size: 8px; }
}

@media (max-height: 720px) {
  .game-dialog #gameRoomContent { gap: 4px; }
  .game-dialog .room-title-row { display: none; }
  .game-dialog .room-launch { min-height: 38px; padding: 4px 7px; }
  .game-dialog .room-launch-copy p { font-size: 9px; }
  .game-dialog .opponent-picker > summary { min-height: 29px; }
  .game-dialog .table-brand { margin-top: 2px; }
  .game-dialog .opponent-seats { margin: 3px 0 1px; }
  .game-dialog .opponent-seat { height: clamp(56px, 9vh, 90px); }
  .game-dialog .table-action-panels { margin: 2px 0 0; }
  .game-dialog .table-center { gap: 2px; }
  .game-dialog .table-status { font-size: 10px; }
  .game-dialog .room-side .betting-panel { padding: 6px; }
  .game-dialog .betting-help,
  .game-dialog .betting-note { font-size: 9px !important; }
}

/* The approved card-room format uses the full-width felt table. */
.game-dialog {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: calc(100vw - 12px);
  height: calc(100dvh - 12px);
  max-width: calc(100vw - 12px);
  max-height: calc(100dvh - 12px);
  padding: clamp(7px, .8vw, 13px);
  overflow: hidden;
}
.game-dialog.fallback-open { inset: 6px; display: flex; width: auto; height: auto; max-width: none; max-height: none; }
.game-dialog > .dialog-top { flex: 0 0 auto; padding-bottom: 6px; }
.game-dialog .close-button { flex: 0 0 auto; width: 34px; height: 34px; font-size: 22px; }
.game-dialog #gameRoomContent {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: clamp(5px, .75vh, 9px);
  min-width: 0;
  min-height: 0;
}
.game-dialog .room-title-row { flex: 0 0 auto; gap: 10px; margin: 0; }
.game-dialog .room-title-row img { width: clamp(34px, 3.2vw, 50px); height: clamp(42px, 5vh, 58px); }
.game-dialog .room-title-row h2 { font-size: clamp(24px, 2.2vw, 36px); }
.game-dialog .room-title-row p { margin-top: 2px; font-size: clamp(11px, .95vw, 14px); line-height: 1.25; }
.game-dialog .room-launch { flex: 0 0 auto; gap: 12px; margin: 0; padding: 8px 11px; }
.game-dialog .room-launch-copy { gap: 2px; }
.game-dialog .room-launch-copy strong { font-size: clamp(14px, 1.25vw, 19px); line-height: 1.2; }
.game-dialog .room-launch-copy p { font-size: clamp(10px, .9vw, 14px); line-height: 1.25; }
.game-dialog .room-launch-actions { gap: 6px; }
.game-dialog .room-launch-actions button,
.game-dialog .tournament-tools > summary { min-height: 38px; padding: 7px 12px; font-size: clamp(11px, .95vw, 14px); }
.game-dialog .tournament-summary-details { flex: 0 0 auto; }
.game-dialog .opponent-picker { flex: 0 0 auto; }
.game-dialog .opponent-picker > summary { min-height: 44px; gap: 10px; padding: 6px 11px; font-size: clamp(12px, 1.1vw, 16px); }
.game-dialog .opponent-picker > summary .picker-link-icon { width: 30px; height: 30px; font-size: 18px; }
.game-dialog .opponent-picker > summary .opponent-picker-status strong { min-height: 22px; padding: 2px 8px; font-size: 10px; }
.game-dialog .opponent-picker > summary .opponent-picker-status small { font-size: 9px; }
.game-dialog .opponent-picker-body { max-height: min(45vh, 520px); }
.game-dialog .room-layout {
  display: grid;
  flex: 1 1 0;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(7px, .8vw, 13px);
  width: 100%;
  min-width: 0;
  min-height: 0;
}
.game-dialog .table-stage {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  min-height: 0;
  gap: 0;
  padding: clamp(7px, .7vh, 11px);
  overflow: hidden;
  border-width: 5px;
  border-radius: clamp(24px, 3vw, 58px) clamp(24px, 3vw, 58px) 14px 14px;
}
.game-dialog .table-rail { flex: 0 0 auto; gap: 8px; padding: 5px 8px; font-size: clamp(8px, .7vw, 10px); }
.game-dialog .table-brand { flex: 0 0 auto; margin: 5px 0 1px; font-size: clamp(14px, 1.5vw, 22px); }
.game-dialog .opponent-seats {
  flex: 0 0 auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(3px, .5vw, 7px);
  margin: clamp(5px, .8vh, 9px) 0 clamp(3px, .45vh, 6px);
}
.game-dialog .opponent-seat { height: clamp(78px, 13.5vh, 142px); min-height: 0; padding: 0 3px; }
.game-dialog .opponent-seat img { height: calc(100% - 18px); }
.game-dialog .opponent-seat strong { right: 3px; bottom: 3px; left: 3px; padding: 2px 1px; font-size: clamp(7px, .65vw, 10px); }
.game-dialog .seat-chip { top: 3px; left: 3px; width: 21px; height: 21px; font-size: 9px; }
.game-dialog .seat-reaction { top: 3px; right: 3px; padding: 2px 4px; font-size: 7px; }
.game-dialog .seat-pose-marker { right: 3px; bottom: 21px; width: 22px; height: 22px; font-size: 13px; }
.game-dialog .seat-profile-button { right: 3px; bottom: 45px; width: 22px; height: 22px; font-size: 12px; }
.game-dialog .table-action-panels { display: flex; flex: 0 0 auto; align-items: stretch; gap: 7px; width: 100%; margin: 3px 0 4px; }
.game-dialog .table-action-panels > * { flex: 1 1 0; min-width: 0; }
.game-dialog .opponent-comment,
.game-dialog .turn-prompt { width: 100%; min-height: 0; gap: 8px; margin: 0; padding: 6px 9px; }
.game-dialog .opponent-comment > img { flex-basis: 42px; width: 42px; height: 52px; }
.game-dialog .opponent-comment-kicker { font-size: 7px; }
.game-dialog .opponent-comment-copy strong { font-size: clamp(9px, .8vw, 12px); }
.game-dialog .opponent-comment-copy p { font-size: clamp(10px, .9vw, 14px); line-height: 1.25; }
.game-dialog .opponent-comment-pose { flex-basis: 27px; width: 27px; height: 27px; font-size: 14px; }
.game-dialog .comment-profile-button { margin-top: 3px; padding: 4px 8px; font-size: 10px; }
.game-dialog .turn-prompt img { width: 50px; height: 62px; }
.game-dialog .turn-prompt-kicker { font-size: 8px; }
.game-dialog .turn-prompt-copy strong { font-size: clamp(13px, 1vw, 16px); }
.game-dialog .turn-prompt-copy > span { font-size: clamp(10px, .85vw, 13px); }
.game-dialog .turn-prompt-copy small { font-size: 9px; }
.game-dialog .turn-prompt-actions { gap: 4px; margin-top: 4px; }
.game-dialog .turn-prompt-actions .turn-action-button { min-width: 52px; min-height: 32px; padding: 5px 8px; font-size: 11px; }
.game-dialog .table-center {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: clamp(3px, .55vh, 7px);
  min-width: 0;
  min-height: 0;
  padding: 3px 5px;
  overflow: hidden;
}
.game-dialog .room-card-row { display: flex; flex: 1 1 0; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 0; padding: 2px; overflow: hidden; }
.game-dialog .room-card-row .card-back,
.game-dialog .room-card-row .playing-card { width: clamp(46px, 4.6vw, 90px); height: clamp(64px, 11.2vh, 126px); max-height: 100%; margin-left: clamp(-11px, -.75vw, -5px); font-size: clamp(22px, 2vw, 34px); }
.game-dialog .room-card-row .card-back:first-child,
.game-dialog .room-card-row .playing-card:first-child { margin-left: 0; }
.game-dialog .room-card-row .playing-card strong { font-size: clamp(20px, 1.9vw, 32px); }
.game-dialog .room-card-row .playing-card em { font-size: clamp(10px, .9vw, 15px); }
.game-dialog .room-card-row .card-back-mark { font-size: clamp(11px, 1.2vw, 19px); }
.game-dialog .room-card-row .card-back b { right: 6px; bottom: 5px; font-size: clamp(13px, 1.3vw, 21px); }
.game-dialog .card-group { gap: clamp(4px, .55vw, 8px); }
.game-dialog .card-group small { font-size: clamp(9px, .8vw, 12px); }
.game-dialog .table-status { flex: 0 0 auto; max-width: 100%; min-height: 0; margin: 0; font-size: clamp(11px, .9vw, 14px); line-height: 1.25; }
.game-dialog .table-controls { flex: 0 0 auto; gap: 5px; margin: 0; }
.game-dialog .table-controls button { min-height: 36px; padding: 6px 10px; font-size: clamp(10px, .85vw, 13px); }
.game-dialog .room-control-hint { font-size: clamp(10px, .8vw, 12px); }
.game-dialog .room-side { align-self: start; align-content: start; width: 100%; height: auto; max-height: 100%; min-width: 0; min-height: 0; gap: 7px; overflow: auto; overscroll-behavior: contain; }
.game-dialog .room-side .betting-panel { height: auto; min-height: 0; padding: clamp(8px, .7vw, 12px); }
.game-dialog .room-side .betting-panel h3 { font-size: clamp(15px, 1.15vw, 20px); }
.game-dialog .room-side .betting-panel p,
.game-dialog .room-side .betting-panel label,
.game-dialog .room-side .betting-panel summary,
.game-dialog .room-side .betting-panel li,
.game-dialog .room-side .betting-panel small { font-size: clamp(10px, .82vw, 13px); line-height: 1.35; }
.game-dialog .betting-turn-summary { gap: 6px; margin-top: 7px; padding: 6px; }
.game-dialog .betting-turn-summary strong,
.game-dialog .betting-stats strong { font-size: clamp(11px, .85vw, 14px); }
.game-dialog .betting-stats { gap: 5px; margin: 7px 0; }
.game-dialog .betting-stats > div { gap: 3px; padding: 6px; }
.game-dialog .betting-stats span,
.game-dialog .betting-label,
.game-dialog .betting-panel-heading span { font-size: clamp(8px, .68vw, 10px); }
.game-dialog .betting-callout { margin: 6px 0; padding: 7px; font-size: clamp(10px, .8vw, 13px); }
.game-dialog .betting-input-row { gap: 5px; margin: 4px 0; }
.game-dialog .betting-input { min-height: 38px; padding: 6px 8px; font-size: clamp(12px, .95vw, 15px); }
.game-dialog .betting-actions { gap: 5px; margin-top: 7px; }
.game-dialog .betting-actions button,
.game-dialog .blackjack-panel-actions button,
.game-dialog .three-card-action-row button,
.game-dialog .room-side .betting-panel button { min-height: 38px; padding: 6px 8px; font-size: clamp(10px, .82vw, 13px); }
.game-dialog .betting-help,
.game-dialog .betting-note { margin: 5px 0; font-size: clamp(9px, .75vw, 12px) !important; line-height: 1.3; }
.game-dialog .room-instructions { flex: 0 0 auto; margin: 0; }
.game-dialog .room-instructions > summary { min-height: 30px; padding: 5px 9px; font-size: clamp(10px, .8vw, 12px); }

/* Keep the long card index from scrolling behind the full-screen table. */
body.card-room-open {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (max-width: 900px) {
  .game-dialog .room-layout { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .game-dialog .table-stage { padding: 6px; border-width: 4px; }
  .game-dialog .opponent-seats { gap: 3px; }
  .game-dialog .opponent-seat { height: clamp(64px, 12vh, 96px); }
  .game-dialog .opponent-seat strong { font-size: 7px; }
  .game-dialog .opponent-comment-copy p { font-size: 10px; }
  .game-dialog .room-side .betting-panel { padding: 7px; }
}
@media (max-width: 620px) {
  .game-dialog { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; padding: 5px; border-radius: 0; }
  .game-dialog.fallback-open { inset: 0; }
  .game-dialog > .dialog-top { padding-bottom: 3px; }
  .game-dialog .close-button { width: 27px; height: 27px; font-size: 18px; }
  .game-dialog .room-title-row { display: none; }
  .game-dialog .room-launch { min-height: 38px; gap: 5px; padding: 4px 6px; }
  .game-dialog .room-launch-copy .eyebrow { font-size: 7px; }
  .game-dialog .room-launch-copy strong { font-size: 11px; }
  .game-dialog .room-launch-copy p { font-size: 8px; }
  .game-dialog .room-launch-actions { gap: 3px; }
  .game-dialog .room-launch-actions button,
  .game-dialog .tournament-tools > summary { min-height: 28px; padding: 4px 6px; font-size: 8px; }
  .game-dialog .opponent-picker > summary { min-height: 30px; gap: 4px; padding: 3px 5px; font-size: 9px; }
  .game-dialog .opponent-picker > summary .picker-link-icon { width: 20px; height: 20px; font-size: 12px; }
  .game-dialog .opponent-picker > summary .opponent-picker-status small { display: none; }
  .game-dialog .opponent-picker > summary .opponent-picker-status strong { min-height: 19px; font-size: 7px; }
  .game-dialog .room-layout { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .game-dialog .table-rail { padding: 3px 4px; font-size: 6px; }
  .game-dialog .table-brand { margin: 2px 0 0; font-size: 9px; }
  .game-dialog .opponent-seats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin: 2px 0; }
  .game-dialog .opponent-seat { height: clamp(43px, 7.5vh, 62px); border-radius: 5px; }
  .game-dialog .opponent-seat img { height: calc(100% - 10px); }
  .game-dialog .opponent-seat strong { right: 1px; bottom: 1px; left: 1px; padding: 1px 0; font-size: 5px; }
  .game-dialog .seat-chip { width: 13px; height: 13px; font-size: 5px; }
  .game-dialog .seat-reaction { padding: 1px 2px; font-size: 4px; }
  .game-dialog .seat-pose-marker { bottom: 14px; width: 15px; height: 15px; font-size: 8px; }
  .game-dialog .seat-profile-button { bottom: 30px; width: 16px; height: 16px; font-size: 8px; }
  .game-dialog .table-action-panels { gap: 2px; margin: 2px 0; }
  .game-dialog .opponent-comment,
  .game-dialog .turn-prompt { gap: 3px; padding: 3px; }
  .game-dialog .opponent-comment > img { flex-basis: 20px; width: 20px; height: 26px; }
  .game-dialog .opponent-comment-kicker { font-size: 5px; }
  .game-dialog .opponent-comment-copy strong { font-size: 7px; }
  .game-dialog .opponent-comment-copy p { font-size: 6px; }
  .game-dialog .opponent-comment-pose { display: none; }
  .game-dialog .turn-prompt img { width: 22px; height: 28px; }
  .game-dialog .turn-prompt-kicker { font-size: 5px; }
  .game-dialog .turn-prompt-copy strong { font-size: 8px; }
  .game-dialog .turn-prompt-copy > span { font-size: 7px; }
  .game-dialog .turn-prompt-copy small { font-size: 6px; }
  .game-dialog .turn-prompt-actions .turn-action-button { min-width: 33px; min-height: 23px; padding: 2px 3px; font-size: 6px; }
  .game-dialog .table-center { gap: 2px; padding: 1px; }
  .game-dialog .room-card-row { padding: 1px; }
  .game-dialog .room-card-row .card-back,
  .game-dialog .room-card-row .playing-card { width: clamp(29px, 8vw, 44px); height: clamp(41px, 11.3vw, 62px); margin-left: -6px; font-size: 17px; }
  .game-dialog .room-card-row .playing-card strong { font-size: 16px; }
  .game-dialog .room-card-row .playing-card em { font-size: 8px; }
  .game-dialog .table-status { font-size: 10px; line-height: 1.2; }
  .game-dialog .table-controls { gap: 2px; }
  .game-dialog .table-controls button { min-height: 32px; padding: 5px 7px; font-size: 10px; }
  .game-dialog .room-side { max-height: 100%; overflow: auto; }
  .game-dialog .room-side .betting-panel { padding: 4px; border-radius: 6px; }
  .game-dialog .room-side .betting-panel h3 { font-size: 10px; }
  .game-dialog .room-side .betting-panel p,
  .game-dialog .room-side .betting-panel label,
  .game-dialog .room-side .betting-panel summary,
  .game-dialog .room-side .betting-panel li,
  .game-dialog .room-side .betting-panel small { font-size: 7px; }
  .game-dialog .betting-stats { gap: 2px; }
  .game-dialog .betting-stats > div { padding: 2px; }
  .game-dialog .betting-stats span,
  .game-dialog .betting-label { font-size: 5px; }
  .game-dialog .betting-stats strong { font-size: 7px; }
  .game-dialog .betting-input { min-height: 24px; padding: 2px 4px; font-size: 9px; }
  .game-dialog .betting-actions { gap: 2px; }
  .game-dialog .betting-actions button,
  .game-dialog .blackjack-panel-actions button,
  .game-dialog .three-card-action-row button,
  .game-dialog .room-side .betting-panel button { min-height: 24px; padding: 3px 2px; font-size: 7px; }
  .game-dialog .betting-help,
  .game-dialog .betting-note { font-size: 6px !important; }
  .game-dialog .room-instructions > summary { min-height: 20px; padding: 2px 5px; font-size: 7px; }
}
@media (max-height: 720px) and (min-width: 621px) {
  .game-dialog #gameRoomContent { gap: 4px; }
  .game-dialog .room-title-row { display: none; }
  .game-dialog .room-launch { padding: 5px 8px; }
  .game-dialog .room-launch-copy p { font-size: 9px; }
  .game-dialog .opponent-picker > summary { min-height: 32px; }
  .game-dialog .opponent-seats { margin-top: 3px; }
  .game-dialog .opponent-seat { height: clamp(58px, 11vh, 78px); }
  .game-dialog .table-action-panels { margin: 2px 0; }
  .game-dialog .room-instructions > summary { min-height: 24px; }
}

.game-dialog .table-betting-chips {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 0 clamp(18px, 12vw, 180px);
}
.game-dialog .table-betting-chip {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  align-content: center;
  justify-items: center;
  width: clamp(82px, 12vh, 148px);
  aspect-ratio: 1;
  border: 6px solid #e6b94d;
  border-radius: 50%;
  background: radial-gradient(circle, #123c60 0 59%, #091d30 60% 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .42), inset 0 0 0 2px #ffe38b, inset 0 0 0 8px #b8872c;
  color: #fff0bc;
  text-align: center;
  text-shadow: 0 1px 3px #000;
}
.game-dialog .table-betting-chip::before {
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(255, 232, 154, .75);
  border-radius: 50%;
  content: "";
}
.game-dialog .table-betting-chip span { z-index: 1; color: #ffe27a; font-size: clamp(8px, .7vw, 11px); font-weight: 950; letter-spacing: .06em; }
.game-dialog .table-betting-chip strong { z-index: 1; margin-top: 3px; color: #fff; font-size: clamp(17px, 1.4vw, 25px); line-height: 1; }
.game-dialog .table-betting-chip small { z-index: 1; margin-top: 3px; color: #d6e3e9; font-size: clamp(8px, .65vw, 10px); font-weight: 800; }
.game-dialog .turn-prompt-wager { display: flex; align-items: center; gap: 7px; margin: 4px 0; }
.game-dialog .turn-prompt-wager span { color: #c9d9e1; font-size: 9px; font-weight: 950; letter-spacing: .07em; }
.game-dialog .turn-prompt-wager .betting-input { width: clamp(82px, 9vw, 130px); min-height: 31px; padding: 4px 7px; font-size: 13px; }
.game-dialog .turn-prompt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.game-dialog .table-inline-actions { flex: 0 0 auto; width: min(100%, 1120px); min-width: 0; margin: 0 auto; }
.game-dialog .table-inline-actions .betting-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  width: 100%;
  padding: 8px 10px;
  border-color: rgba(240, 201, 92, .72);
  background: rgba(7, 21, 35, .9);
}
.game-dialog .table-inline-actions .betting-panel-heading,
.game-dialog .table-inline-actions .betting-turn-summary,
.game-dialog .table-inline-actions .betting-stats,
.game-dialog .table-inline-actions .betting-help,
.game-dialog .table-inline-actions .betting-note,
.game-dialog .table-inline-actions .betting-seated,
.game-dialog .table-inline-actions .betting-log { display: none !important; }
.game-dialog .table-inline-actions details { flex: 0 1 220px; min-width: 0; margin: 0; }
.game-dialog .table-inline-actions details > summary { padding: 5px 7px; border: 1px solid #355f78; border-radius: 6px; color: var(--gold-pale); cursor: pointer; font-size: 10px; font-weight: 900; }
.game-dialog .table-inline-actions details[open] { flex: 1 1 100%; max-height: min(34dvh, 300px); overflow: auto; }
.game-dialog .table-inline-actions details p { margin: 6px 0; color: #d4e1e5; font-size: 10px; line-height: 1.35; }
.game-dialog .table-inline-actions .betting-callout { flex: 1 1 100%; margin: 0; padding: 4px 8px; text-align: center; }
.game-dialog .table-inline-actions .betting-label { display: inline-flex; align-items: center; margin: 0; font-size: 9px; }
.game-dialog .table-inline-actions .betting-input-row { flex: 0 1 150px; width: 150px; gap: 4px; margin: 0; }
.game-dialog .table-inline-actions .betting-input { min-height: 34px; padding: 5px 7px; font-size: 13px; }
.game-dialog .table-inline-actions .betting-actions,
.game-dialog .table-inline-actions .blackjack-panel-actions,
.game-dialog .table-inline-actions .three-card-action-row,
.game-dialog .table-inline-actions .follow-queen-actions,
.game-dialog .table-inline-actions .machine-action-row { display: flex; flex: 1 1 auto; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 0; }
.game-dialog .table-inline-actions .betting-actions button { flex: 1 1 105px; min-width: 82px; min-height: 36px; padding: 5px 7px; font-size: 11px; }
.game-dialog .table-inline-actions .blackjack-panel-actions button,
.game-dialog .table-inline-actions .three-card-action-row button,
.game-dialog .table-inline-actions .follow-queen-actions button { flex: 1 1 110px; min-height: 36px; padding: 5px 8px; font-size: 11px; }
.game-dialog .table-inline-actions .blackjack-wager-button { width: auto; min-height: 36px; margin: 0; padding: 5px 10px; font-size: 11px; }
.game-dialog .table-inline-actions .blackjack-wager-readout,
.game-dialog .table-inline-actions .three-card-hand-readout,
.game-dialog .table-inline-actions .three-card-result,
.game-dialog .table-inline-actions .stud-result,
.game-dialog .table-inline-actions .machine-result { flex: 0 1 auto; margin: 0; padding: 5px 8px; font-size: 11px; }
.game-dialog .table-inline-actions .machine-select { width: 120px; min-height: 34px; font-size: 12px; }
.game-dialog .table-inline-actions .machine-balance,
.game-dialog .table-inline-actions .machine-wager-preview { display: none; }
.game-dialog .table-inline-actions .machine-action-row > button { min-height: 36px; padding: 5px 9px; font-size: 11px; }

@media (max-width: 620px) {
  .game-dialog .table-betting-chips { gap: 8px; padding: 0 8px; }
  .game-dialog .table-betting-chip { width: clamp(54px, 10vh, 76px); border-width: 4px; }
  .game-dialog .table-betting-chip::before { inset: 7px; }
  .game-dialog .table-betting-chip span { font-size: 7px; }
  .game-dialog .table-betting-chip strong { font-size: 14px; }
  .game-dialog .table-betting-chip small { font-size: 7px; }
  .game-dialog .turn-prompt-wager { gap: 4px; }
  .game-dialog .turn-prompt-wager span { font-size: 8px; }
  .game-dialog .turn-prompt-wager .betting-input { width: 86px; min-height: 30px; font-size: 12px; }
  .game-dialog .turn-prompt-copy > span { font-size: 9px; }
  .game-dialog .turn-prompt-actions .turn-action-button { min-width: 68px; min-height: 32px; padding: 5px 6px; font-size: 10px; }
  .game-dialog .table-inline-actions { width: 100%; }
  .game-dialog .table-inline-actions .betting-panel { gap: 4px; padding: 5px; }
  .game-dialog .table-inline-actions .betting-actions,
  .game-dialog .table-inline-actions .blackjack-panel-actions,
  .game-dialog .table-inline-actions .three-card-action-row,
  .game-dialog .table-inline-actions .follow-queen-actions,
  .game-dialog .table-inline-actions .machine-action-row { gap: 3px; }
  .game-dialog .table-inline-actions .betting-actions button,
  .game-dialog .table-inline-actions .blackjack-panel-actions button,
  .game-dialog .table-inline-actions .three-card-action-row button,
  .game-dialog .table-inline-actions .follow-queen-actions button,
  .game-dialog .table-inline-actions .machine-action-row button,
  .game-dialog .table-inline-actions .blackjack-wager-button { min-height: 32px; padding: 4px 6px; font-size: 10px; }
  .game-dialog .table-inline-actions .betting-input-row { flex-basis: 125px; width: 125px; }
  .game-dialog .table-inline-actions .machine-select { width: 100px; font-size: 10px; }
}

/* After a session starts, put setup and roster controls behind the table rail. */
.game-dialog .screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.game-dialog .table-options { position: relative; z-index: 25; flex: 0 0 auto; min-width: 0; font-weight: 900; letter-spacing: normal; }
.game-dialog .table-options > summary {
  padding: 4px 9px;
  border: 1px solid rgba(255, 229, 138, .62);
  border-radius: 999px;
  background: rgba(6, 27, 43, .82);
  color: #ffe9a7;
  cursor: pointer;
  font-size: clamp(8px, .7vw, 10px);
  font-weight: 950;
  letter-spacing: .07em;
  list-style: none;
  white-space: nowrap;
}
.game-dialog .table-options > summary::-webkit-details-marker { display: none; }
.game-dialog .table-options > summary::after { display: inline-block; margin-left: 6px; content: "▾"; transition: transform .16s ease; }
.game-dialog .table-options[open] > summary { border-color: #f0c95c; background: #123451; }
.game-dialog .table-options[open] > summary::after { transform: rotate(180deg); }
.game-dialog .table-options-body {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 25;
  display: grid;
  gap: 7px;
  width: min(900px, calc(100vw - 54px));
  max-height: min(57dvh, 720px);
  overflow: auto;
  margin: 0;
  padding: clamp(8px, .8vw, 13px);
  border: 1px solid rgba(240, 201, 92, .7);
  border-radius: 10px;
  background: linear-gradient(145deg, #0b2031, #071523 75%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
  font-weight: 400;
  letter-spacing: normal;
}
.game-dialog .table-options-body .room-launch,
.game-dialog .table-options-body .tournament-summary-details,
.game-dialog .table-options-body .opponent-picker,
.game-dialog .table-options-body .room-instructions { margin: 0; }
.game-dialog .table-options-body .room-launch { padding: 9px 11px; }
.game-dialog .table-options-body .room-launch-copy strong { font-size: clamp(13px, 1.1vw, 17px); }
.game-dialog .table-options-body .room-launch-copy p { font-size: clamp(10px, .8vw, 12px); }
.game-dialog .table-options-body .opponent-picker-body { max-height: min(36dvh, 420px); }
.game-dialog .game-room-started .table-rail { z-index: 20; }
.game-dialog .game-room-started .room-layout { flex: 1 1 auto; }
.game-dialog .game-room-started .table-stage { min-height: 0; }
.game-dialog .game-room-started .opponent-seats { margin: clamp(6px, 1vh, 13px) 0 clamp(4px, .7vh, 9px); }
.game-dialog .game-room-started .opponent-seat { height: clamp(110px, 18vh, 220px); }
.game-dialog .game-room-started .opponent-seat img { height: calc(100% - 22px); }
.game-dialog .game-room-started .room-card-row .card-back,
.game-dialog .game-room-started .room-card-row .playing-card {
  width: clamp(66px, 5.8vw, 118px);
  height: clamp(93px, 14vh, 178px);
  margin-left: clamp(-13px, -.7vw, -6px);
}
.game-dialog .game-room-started .room-card-row .playing-card strong { font-size: clamp(24px, 2.1vw, 36px); }
.game-dialog .game-room-started .room-card-row .playing-card em { font-size: clamp(12px, 1vw, 17px); }

@media (max-width: 620px) {
  .game-dialog .table-options > summary { padding: 3px 6px; font-size: 7px; }
  .game-dialog .table-options-body { width: calc(100vw - 28px); max-height: 58dvh; }
  .game-dialog .game-room-started .opponent-seats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
  .game-dialog .game-room-started .opponent-seat { height: clamp(64px, 11vh, 100px); }
  .game-dialog .game-room-started .opponent-seat img { height: calc(100% - 14px); }
  .game-dialog .game-room-started .opponent-seat strong { font-size: 6px; }
  .game-dialog .game-room-started .room-card-row .card-back,
  .game-dialog .game-room-started .room-card-row .playing-card { width: clamp(38px, 10vw, 58px); height: clamp(54px, 12vh, 82px); margin-left: -6px; }
  .game-dialog .game-room-started .room-card-row .playing-card strong { font-size: 16px; }
  .game-dialog .game-room-started .room-card-row .playing-card em { font-size: 8px; }
}
