:root {
  color-scheme: dark;
  --ink: #f8f3e7;
  --muted: #b8b2a5;
  --red: #b82f39;
  --red-bright: #db4853;
  --gold: #d6ad5c;
  --felt: #123d32;
  --felt-light: #1b5545;
  --panel: rgba(18, 24, 22, .92);
  --line: rgba(236, 220, 181, .16);
  --shadow: 0 24px 70px rgba(0, 0, 0, .35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Join the selected game tab to its panel by covering the panel's top border. */
.game-tab.active { position: relative; z-index: 2; }
.game-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: inherit;
  pointer-events: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% -8%, rgba(214, 173, 92, .14), transparent 36rem),
    radial-gradient(circle at 90% 16%, rgba(184, 47, 57, .16), transparent 30rem),
    linear-gradient(145deg, #0c201b, #08120f 58%, #160c0d);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image: repeating-linear-gradient(45deg, transparent 0 7px, rgba(255,255,255,.04) 7px 8px);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.masthead {
  position: relative;
  z-index: 2;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem clamp(1.2rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 15, 12, .7);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: .9rem; color: inherit; text-decoration: none; }
.brand-mark {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid var(--gold); color: var(--gold); font: 700 1.55rem Georgia, serif;
  box-shadow: inset 0 0 0 4px #10231d, 0 0 0 1px rgba(214,173,92,.25);
}
.brand strong { display: block; font: 700 1.15rem Georgia, serif; letter-spacing: .03em; }
.brand small { display: block; color: var(--muted); margin-top: .12rem; }
.account-summary { display: flex; align-items: center; gap: 1rem; color: var(--muted); }
.account-summary strong { color: var(--gold); }

main { position: relative; z-index: 1; width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 6vw, 5.5rem) 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; font: 700 clamp(2.7rem, 7vw, 5.6rem)/.95 Georgia, serif; letter-spacing: -.045em; margin-bottom: 1.4rem; }
h2 { font: 700 2rem Georgia, serif; }
h3 { font: 700 1.3rem Georgia, serif; }
.eyebrow { color: var(--gold); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .73rem; }
.auth-layout { min-height: 63vh; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); align-items: center; gap: clamp(2rem, 8vw, 7rem); }
.welcome-copy > p:not(.eyebrow) { max-width: 650px; color: var(--muted); font-size: 1.13rem; line-height: 1.7; }
.currency-note { display: inline-flex; gap: .8rem; align-items: center; margin-top: 1.5rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.currency-note strong { color: var(--gold); }
.panel { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow); padding: 1.5rem; }
.form-card { padding: clamp(1.4rem, 4vw, 2.2rem); }
label { display: grid; gap: .45rem; color: var(--muted); font-size: .9rem; margin: 1rem 0; }
input, select, textarea {
  width: 100%; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: .83rem .9rem;
  color: var(--ink); background: rgba(0,0,0,.22); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,173,92,.12); }
.table-appearance { min-width:0; margin:1.2rem 0; padding:.75rem 1rem .2rem; border:1px solid var(--line); border-radius:12px; }
.table-appearance legend { padding:0 .35rem; color:var(--gold); font-weight:700; }
.table-appearance > p { margin:.2rem 0 .7rem; color:var(--muted); font-size:.82rem; line-height:1.45; }
.configured-table .table-appearance-summary { margin:.8rem 0; color:var(--muted); font-size:.82rem; line-height:1.45; }
input[type="color"] { min-height: 3rem; padding: .35rem; cursor: pointer; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 7px; }
input[type="color"]::-moz-color-swatch { border: 0; border-radius: 7px; }
.primary, .secondary, .text-button, .tab { border: 0; color: inherit; }
.primary { width: 100%; padding: .9rem 1.1rem; border-radius: 10px; color: white; font-weight: 800; background: linear-gradient(135deg, var(--red-bright), var(--red)); box-shadow: 0 9px 22px rgba(184,47,57,.23); }
.primary:hover { filter: brightness(1.08); }
.secondary { border: 1px solid var(--line); border-radius: 9px; padding: .7rem 1rem; background: rgba(255,255,255,.05); }
.text-button { padding: .25rem; background: transparent; color: var(--muted); text-decoration: underline; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: .25rem; border-radius: 11px; background: rgba(0,0,0,.25); margin-bottom: 1.4rem; }
.tab { padding: .72rem; border-radius: 8px; background: transparent; color: var(--muted); }
.tab.active { background: var(--felt-light); color: white; }
.form-error { min-height: 1.3rem; margin: .8rem 0 0; color: #ff8c92; font-size: .86rem; }
.center-card { min-height: 55vh; display: grid; place-items: center; color: var(--muted); }

.hero { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; }
.hero h1 { margin-bottom: .7rem; }
.hero > div:first-child > p:last-child { color: var(--muted); }
.balance-card { flex: 0 0 230px; display: grid; padding: 1.5rem; border: 1px solid rgba(214,173,92,.3); border-radius: 18px; background: linear-gradient(145deg, rgba(214,173,92,.13), rgba(0,0,0,.2)); text-align: right; }
.balance-card span, .balance-card small { color: var(--muted); }
.balance-card strong { font: 700 2.7rem Georgia, serif; color: var(--gold); margin: .2rem 0; }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.icon-button { border: 1px solid var(--line); border-radius: 50%; width: 38px; height: 38px; color: var(--gold); background: rgba(255,255,255,.06); font-size: 1.25rem; }
.icon-button:hover, .icon-button:focus-visible { border-color: var(--gold); }
.game-tabs { display: flex; gap: .5rem; margin-bottom: -1px; }
.game-tab { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); align-items: center; flex: 1 1 0; min-width: 0; gap: .1rem .65rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 13px 13px 0 0; color: var(--muted); background: #111c17; text-align: left; }
.game-tab strong { min-width: 0; font: 700 1.15rem Georgia, serif; }
.game-tab small { grid-column: 2; color: var(--muted); }
.game-tab-symbol { grid-row: 1 / 3; width: 2.25rem; height: 2.25rem; opacity: .75; }
.game-tab.active .game-tab-symbol { opacity: 1; }
.game-tab.active { position: relative; z-index: 2; color: var(--gold); border-color: rgba(214,173,92,.45); border-bottom-color: #17251e; background: #17251e; }
.game-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wallet-section { margin-bottom: 2.4rem; }
.wallet-tabs { display: flex; gap: .55rem; margin: .4rem 0 -1px; padding-inline: 24px 1rem; overflow-x: auto; }
.wallet-tab { display: inline-flex; align-items: center; gap: .65rem; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 12px 12px 0 0; padding: .35rem .85rem .35rem .4rem; background: #111c17; color: var(--muted); cursor: pointer; font: 700 1rem Georgia, serif; }
.wallet-tab.active { position: relative; z-index: 2; color: var(--gold); border-color: color-mix(in srgb, var(--currency), transparent 58%); border-bottom-color: color-mix(in srgb, var(--currency), #101713 82%); background: color-mix(in srgb, var(--currency), #101713 82%); }
.wallet-tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wallet-tab-figure { width: 46px; height: 46px; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; border: 1px solid var(--currency); border-radius: 50%; color: var(--currency); background: #090f0c; font: 700 .8rem Georgia, serif; }
.wallet-tab-figure img { width: 100%; height: 100%; object-fit: cover; }
.currency-logo-fallback { display: grid; place-items: center; width: 100%; height: 100%; }
.currency-logo:not(.image-ready) img, .wallet-logo:not(.image-ready) img, .wallet-tab-figure:not(.image-ready) img { display: none; }
.currency-logo.image-ready .currency-logo-fallback, .wallet-logo.image-ready .currency-logo-fallback, .wallet-tab-figure.image-ready .currency-logo-fallback { display: none; }
.wallet-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); }
.wallet-logo, .currency-logo {
  width: 62px; height: 62px; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto;
  border: 2px solid var(--currency); border-radius: 50%; color: var(--currency); background: rgba(0,0,0,.24);
  font: 700 1.3rem Georgia, serif;
}
.wallet-logo img, .currency-logo img, .denomination-image img { width: 100%; height: 100%; object-fit: cover; }
.wallet-card small { color: var(--muted); }
.wallet-exchanges { display: flex; flex-direction: column; align-items: stretch; gap: .6rem; min-width: 0; color: var(--muted); font-size: .9rem; }
.wallet-exchanges:empty { display: none; }
.wallet-exchanges:not(:empty) { padding: .8rem 0 .2rem; }
.wallet-exchanges p { margin: 0; }
.wallet-exchange-option { display: flex; align-items: center; width: 100%; min-width: 0; padding: .65rem .8rem; border: 1px solid color-mix(in srgb, var(--currency), transparent 50%); border-radius: 13px; background: #0b1712; color: var(--gold); cursor: pointer; text-align: left; transition: transform .18s, border-color .18s, background .18s; }
.wallet-exchange-option:hover { transform: translateY(-2px); border-color: var(--gold); background: #1d2b21; }
.wallet-exchange-option:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wallet-exchange-option:disabled { cursor: wait; }
.exchange-preview { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .75rem; width: 100%; min-width: 0; }
.exchange-side { display: grid; grid-template-columns: repeat(var(--piece-count), minmax(0, 44px)); align-items: center; width: min(100%, calc(var(--piece-count) * 44px)); min-width: 0; }
.exchange-side:first-child { justify-self: end; }
.exchange-side:last-child { justify-self: start; }
.exchange-tile { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #cab57d; border-radius: 50%; background: linear-gradient(135deg, #f0dca5, #9c7840); color: #21170b; font: 800 .75rem Georgia, serif; box-shadow: 0 2px 5px #0009; }
.exchange-tile.has-art.image-ready { border: 0; background: transparent; box-shadow: none; }
.exchange-tile img { display: none; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px #0009); }
.exchange-tile.image-ready img { display: block; }
.exchange-tile.image-ready .exchange-tile-value { display: none; }
.exchange-overflow { color: var(--muted); font: 700 1.4rem Georgia, serif; }
.exchange-arrow { font: 700 1.4rem Georgia, serif; }
.wallet-exchange-option.exchanging .exchange-side:first-child { animation: exchange-out .3s ease-in forwards; }
.wallet-exchange-option.exchanging .exchange-side:last-child { animation: exchange-in .3s ease-out forwards; }
@keyframes exchange-out { to { transform: translateX(12px) scale(.75); opacity: .2; } }
@keyframes exchange-in { from { transform: translateX(-12px) scale(.75); opacity: .25; } to { transform: translateX(0) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wallet-exchange-option, .wallet-exchange-option.exchanging .exchange-side { animation: none; transition: none; } }
.wallet-footer { display: flex; align-items: end; justify-content: space-between; gap: 1rem; min-height: 48px; margin-top: .65rem; }
.wallet-description { margin: 0; max-width: 75ch; color: var(--muted); font-size: .9rem; line-height: 1.35; }
.wallet-total { display: flex; align-items: baseline; gap: .45rem; margin-left: auto; white-space: nowrap; text-align: right; }
.wallet-total strong { color: var(--gold); font: 700 1.4rem Georgia, serif; }
.wallet-total small { font-size: .72rem; }
.wallet-remainder { margin: .4rem 0 0; color: var(--muted); font-size: .8rem; }
.bank-panel { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: #07130f99; }
.bank-summary { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; cursor: pointer; color: var(--gold); }
.bank-summary-status { color: var(--muted); font-size: .84rem; }
.bank-panel[open] .bank-summary { margin-bottom: .8rem; }
.bank-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.bank-fact { display: grid; gap: .2rem; }
.bank-fact strong { overflow-wrap: anywhere; }
.bank-terms, .bank-note { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.bank-controls { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; }
.bank-repayment { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; }
.bank-repayment label { display: grid; gap: .2rem; }
.bank-repayment .form-error { width: 100%; }
.bank-history { margin-top: .8rem; color: var(--muted); }
.bank-history summary { cursor: pointer; color: var(--gold); }
.bank-settings-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.bank-settings-form .form-error { grid-column: 1 / -1; }
.npc-bank-details { margin-top: .9rem; }
.npc-bank-details summary { cursor: pointer; color: var(--gold); }
.npc-bank-scroll { max-height: 340px; overflow: auto; margin-top: .6rem; }
.npc-bank-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.npc-bank-table th, .npc-bank-table td { padding: .4rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
@media (max-width: 650px) { .bank-facts, .bank-settings-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .wallet-footer { align-items: start; flex-direction: column; } .wallet-total { align-self: flex-end; } .exchange-arrow { line-height: 1; } }
.gift-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; align-items: end; margin-top: 1rem; }
.gift-form h3, .gift-form .form-error { grid-column: 1 / -1; margin: 0; }
.gift-form label { min-width: 0; margin: 0; }
.gift-form button { align-self: end; }
.gift-details { margin-top: 1rem; padding: .9rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.gift-details summary { color: var(--gold); cursor: pointer; font-weight: 700; }
.empty-state { color: var(--muted); padding: 1.2rem; border: 1px dashed var(--line); border-radius: 14px; }
.tables-section { margin-top: 0; }
.game-table-panel { position: relative; z-index: 1; overflow: hidden; padding: 1.25rem; border: 1px solid rgba(214,173,92,.45); border-radius: 0 16px 16px 16px; background: #17251e; }
.game-table-panel::before { content: ""; position: absolute; top: .7rem; right: 1rem; width: clamp(8rem, 24vw, 15rem); aspect-ratio: 1; background: center / contain no-repeat var(--game-symbol); opacity: .11; pointer-events: none; }
.game-table-panel[data-game-id="blackjack"] { --game-symbol: url('/assets/game-blackjack.svg'); background: radial-gradient(circle at 90% 0, #54302055, transparent 42%), #17251e; }
.game-table-panel[data-game-id="holdem"] { --game-symbol: url('/assets/game-holdem.svg'); background: radial-gradient(circle at 90% 0, #4d493155, transparent 42%), #17251e; }
.game-table-panel[data-game-id="roulette"] { --game-symbol: url('/assets/game-roulette.svg'); background: radial-gradient(circle at 90% 0, #512b2f66, transparent 42%), #17251e; }
.game-table-panel > * { position: relative; z-index: 1; }
.game-table-panel .section-heading { margin-bottom: 1rem; }
.table-configurator { min-width: 0; grid-column: 1 / -1; }
.table-configurator .game-tabs, .table-configurator .game-table-panel { max-width: 40rem; }
.table-configurator .game-table-panel[data-config-mode="series"] { max-width: 72rem; }
.config-mode-form { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.config-mode-form[hidden] { display: none; }
.holdem-configuration-type { min-width: 0; margin: 1.2rem 0 0; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; }
.holdem-configuration-type legend { padding: 0 .35rem; color: var(--gold); font-weight: 700; }
.holdem-type-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.holdem-type-options label { display: flex; align-items: center; gap: .45rem; margin: 0; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; background: rgba(0,0,0,.18); }
.holdem-type-options label:has(input:checked) { border-color: var(--gold); color: var(--ink); background: rgba(214,173,92,.12); }
.holdem-type-options input { width: auto; margin: 0; accent-color: var(--gold); }
.table-series-panel { margin-top: 1rem; }
.table-series-panel .table-scroll { max-width: 100%; overflow-x: auto; }
.rake-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.table-series-panel h4 { margin: 1.25rem 0 .3rem; }
.series-name-table { border-collapse: collapse; min-width: max-content; width: 100%; margin: .6rem 0 1rem; }
.series-name-table th, .series-name-table td { padding: .4rem; border: 1px solid var(--line); text-align: left; }
.series-name-table th { white-space: nowrap; }
.series-name-table input { min-width: 9rem; width: 100%; }
.table-configurator .game-tabs { gap: .35rem; }
.table-configurator .game-tab { padding-inline: .55rem; gap: .1rem .35rem; }
.table-configurator .game-tab strong { font-size: .91rem; }
.table-configurator .game-tab small { font-size: .7rem; }
.table-configurator .game-table-panel { box-shadow: var(--shadow); }
.table-configurator .field-pair[hidden], .table-npc-setting[hidden] { display: none; }
.table-npc-setting { margin: 1rem 0; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: #07130f88; }
.table-npc-setting .checkbox-label { margin: 0; }
.table-npc-setting p { margin: .4rem 0 0 1.6rem; font-size: .8rem; line-height: 1.4; }
.table-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.configured-table { padding: 1rem 1.2rem; border-left: 3px solid var(--gold); }
.configured-table h3 { margin-bottom: .35rem; }
.configured-table p { color: var(--muted); margin: 0; }
.configured-table .table-limits { margin-top: .35rem; color: var(--gold); font-size: .85rem; }
.table-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.table-actions .primary { margin-top: 0; }
.table-edit-details { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.table-edit-details summary { cursor: pointer; color: var(--gold); font-weight: 700; }
.table-edit-form { display: grid; gap: .8rem; margin-top: .9rem; }
.table-edit-form label { margin: 0; }
.table-edit-form input, .table-edit-form select { min-width: 0; }
.table-edit-form .field-pair, .table-edit-form .rake-fields { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.table-edit-settings { display: grid; gap: .8rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.table-edit-settings:disabled { opacity: .65; }
.table-edit-form .form-error { margin: 0; }
.table-appearance-edit { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .55rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.table-appearance-edit > p { grid-column: 1 / -1; font-size: .78rem; }
.table-appearance-edit label { min-width: 0; font-size: .75rem; }
.table-appearance-edit select { width: 100%; margin-top: .25rem; padding: .55rem; }
.table-appearance-edit button, .table-appearance-edit .form-error { grid-column: 1 / -1; }
.table-limit-form { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.table-limit-form label { margin: 0; font-size: .75rem; }
.table-limit-form input { padding: .55rem; }
.table-limit-form button, .table-limit-form .form-error { grid-column: 1 / -1; }
.danger { padding: .72rem 1rem; border: 1px solid rgba(255,140,146,.45); border-radius: 9px; color: #ffb0b4; background: rgba(120,24,31,.24); cursor: pointer; }
.danger:hover { background: rgba(150,30,39,.38); }
.game-card { position: relative; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; justify-content: end; padding: 1.6rem; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(160deg, var(--felt-light), #0d241e 65%); box-shadow: var(--shadow); }
.game-card::before { content: attr(data-mark); position: absolute; right: -1rem; top: -2.8rem; color: rgba(255,255,255,.055); font: 700 13rem Georgia, serif; transform: rotate(8deg); }
.game-card:nth-child(2) { background: linear-gradient(160deg, #542028, #1f1012 65%); }
.game-card:nth-child(3) { background: linear-gradient(160deg, #43351e, #17130c 65%); }
.game-card h2 { margin-bottom: .5rem; }
.game-card p { color: var(--muted); line-height: 1.55; min-height: 4.7rem; }
.status { align-self: start; border-radius: 999px; padding: .38rem .7rem; margin-bottom: 1rem; font-weight: 800; font-size: .75rem; background: rgba(0,0,0,.28); color: var(--gold); }
.game-card button[disabled] { width: 100%; padding: .8rem; border: 1px solid var(--line); border-radius: 9px; background: rgba(0,0,0,.18); color: var(--muted); cursor: not-allowed; }
.game-card .secondary { width: 100%; color: var(--ink); }
.configured-table .primary { margin-top: 1rem; }
.lobby-table-list { display: grid; width: 100%; min-width: 0; gap: .25rem; overflow-x: auto; }
.lobby-table-row { min-width: 720px; display: grid; grid-template-columns: minmax(120px, 1fr) minmax(135px, auto) minmax(205px, 1.6fr) minmax(85px, auto) auto; align-items: center; gap: .85rem; padding: .45rem .75rem; border: 0; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .14); }
.lobby-table-row h3 { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 .95rem/1.2 Inter, ui-sans-serif, system-ui, sans-serif; }
.lobby-table-row .status { margin: 0; padding: 0; background: none; white-space: nowrap; }
.lobby-table-row .table-limits { margin: 0; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.lobby-table-seats { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.lobby-table-row .primary { width: auto; margin: 0; padding: .5rem .75rem; box-shadow: none; white-space: nowrap; font-size: .82rem; }
@media (max-width: 820px) {
  .lobby-table-list { overflow-x: visible; }
  .lobby-table-row { min-width: 0; width: 100%; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name action" "status action" "limits action"; gap: .12rem .6rem; padding: .55rem .4rem; }
  .lobby-table-row h3 { grid-area: name; white-space: normal; overflow-wrap: anywhere; }
  .lobby-table-row .status { grid-area: status; }
  .lobby-table-row .table-limits { grid-area: limits; white-space: normal; }
  .lobby-table-row .lobby-table-seats { display: none; }
  .lobby-table-row .primary, .lobby-table-row .lobby-table-unavailable { grid-area: action; }
  .lobby-table-row .primary { max-width: 7rem; white-space: normal; line-height: 1.2; }
}

.blackjack-view { padding-bottom: 2rem; }
.blackjack-table-scroll { overflow-x: auto; width: 100%; min-width: 0; }
.blackjack-view { min-width: 0; }
.blackjack-felt[hidden],.blackjack-room-controls[hidden],.blackjack-legacy[hidden] { display: none!important; }
.blackjack-legacy { margin-top: 1.25rem; text-align: center; }
.blackjack-legacy-hands { display: flex; justify-content: space-around; gap: 1rem; margin: 1.5rem 0; }
.blackjack-legacy-hands > div { display: grid; gap: .5rem; justify-items: center; }
.blackjack-toolbar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; margin-bottom: 1.4rem; }
.blackjack-table-title h1 { max-width: none; margin: 0; font-size: clamp(2rem, 5vw, 3.7rem); }
.blackjack-table-title .eyebrow { margin-bottom: .35rem; }
.blackjack-balance { display: flex; align-items: center; gap: .8rem; padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 16px; color: var(--gold); font-weight: 800; }
.blackjack-balance .wallet-logo { width: 44px; height: 44px; font-size: .9rem; }
.blackjack-felt {
  --currency: var(--gold); min-height: 590px; display: grid; grid-template-rows: 1fr auto 1fr auto;
  padding: clamp(1rem, 4vw, 2.5rem); overflow: hidden; border: 10px solid #38271c; border-radius: 46% 46% 22px 22px / 13% 13% 22px 22px;
  background: radial-gradient(ellipse at 50% 45%, #23664f 0, var(--felt) 58%, #09271f 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), inset 0 -30px 80px rgba(0,0,0,.24), var(--shadow);
}
.hand { min-height: 175px; display: grid; align-content: center; justify-items: center; }
.hand-heading { display: flex; gap: .65rem; align-items: baseline; margin-bottom: .8rem; color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: .11em; font-size: .76rem; }
.hand-heading strong { min-width: 2rem; color: white; font: 700 1.3rem Georgia, serif; }
.playing-cards { display: flex; justify-content: center; min-height: 122px; padding-left: 28px; }
.playing-card {
  width: 82px; height: 116px; display: grid; align-content: space-between; margin-left: -28px; padding: .6rem;
  border: 1px solid #cfc9b8; border-radius: 9px; color: #151515; background: #fffdf5;
  box-shadow: 0 7px 16px rgba(0,0,0,.27); font: 700 1.35rem Georgia, serif;
}
.playing-card span { justify-self: end; font-size: 2rem; }
.playing-card.red-card { color: #b72331; }
.playing-card.card-back { place-items: center; color: var(--gold); border: 5px solid #f3ead5; background: repeating-linear-gradient(45deg, #491720, #491720 6px, #6b2632 6px, #6b2632 12px); font-size: 2rem; }
.playing-card img { width: 100%; height: 100%; object-fit: fill; border-radius: 7px; }
.playing-card:has(img) { padding: 0; overflow: hidden; }
.playing-card.card-back { background-position: center; background-size: cover; background-repeat: no-repeat; }
.blackjack-felt.layout-enabled { position: relative; display: block; min-width: 900px; min-height: 590px; padding: 0; border: 0; isolation: isolate; background: none; }
.blackjack-felt.layout-enabled::before,.blackjack-felt.layout-enabled::after { content: ""; position: absolute; pointer-events: none; }
.blackjack-felt.layout-enabled::before { inset: 0; z-index: 0; border-radius: inherit; background: var(--bj-rail-image); }
.blackjack-felt.layout-enabled::after { inset: 12px; z-index: 1; border-radius: inherit; background: var(--bj-felt-image) repeat center; background-size: 180px 150px; box-shadow: inset 0 0 0 2px #ffffff16, inset 0 -30px 80px #0004; }
.blackjack-felt.layout-enabled > * { position: absolute; z-index: 2; }
.blackjack-felt.layout-enabled .blackjack-print{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none;overflow:visible}
.blackjack-insurance,.blackjack-side-bet{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin-top:.75rem}
.blackjack-insurance[hidden],.blackjack-side-bet[hidden]{display:none}
.blackjack-insurance input,.blackjack-side-bet input{width:110px}
.blackjack-felt.layout-enabled .dealer-hand { left: var(--dealer-left,50%); top: var(--dealer-top,26%); transform: translate(-50%,-50%); min-height: 0; }
.blackjack-felt.layout-enabled .blackjack-seats { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.blackjack-felt.layout-enabled .blackjack-wagers{position:absolute;inset:0;z-index:3;pointer-events:none}
.blackjack-wager-chip{position:absolute;left:var(--wager-left);top:var(--wager-top);transform:translate(-50%,-50%);min-width:35px;height:35px;display:grid;place-items:center;padding:2px 5px;border:3px dashed #fff9;border-radius:50%;background:#a3343e;color:white;font-size:11px;font-weight:800;box-shadow:0 3px 7px #0008}
.blackjack-wager-chip.side{background:#325889;height:28px;min-width:28px;font-size:9px}
.blackjack-felt.layout-enabled .blackjack-seat { position: absolute; left: var(--seat-left); top: var(--seat-top); transform: translate(-50%,-50%); pointer-events: auto; }
.blackjack-seats { display: flex; align-items: end; justify-content: space-around; gap: .5rem; }
.blackjack-seat { width: 124px; min-height: 108px; padding: .4rem; border: 1px solid #ead9a772; border-radius: 20px; background: #091b18c9; color: white; text-align: center; }
.blackjack-seat.is-mine { border: 2px solid var(--gold); background: #173b2fe8; }
.blackjack-seat.is-turn { box-shadow: 0 0 0 3px #e8ca71, 0 0 25px #e8ca7199; }
.blackjack-seat strong,.blackjack-seat small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blackjack-seat small { color: #e3d6b1; font-size: .68rem; }
.blackjack-seat .playing-cards { min-height: 54px; margin: .25rem 0; padding-left: 13px; }
.blackjack-seat .playing-card,.blackjack-felt.layout-enabled .blackjack-seat .playing-card { width: 40px; height: 56px; margin-left: -13px; padding: 0; font-size: .65rem; }
.blackjack-seat .playing-card span { font-size: .9rem; }
.blackjack-seat button { width: 100%; padding: .35rem; font-size: .72rem; }
.blackjack-hand-count { display: block; color: var(--gold); font-size: .68rem; font-weight: 800; }
.blackjack-hands { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,185px),1fr)); gap: .7rem; margin-top: 1rem; }
.blackjack-hands[hidden] { display: none; }
.blackjack-hand { min-width: 0; padding: .75rem; border: 1px solid var(--line); border-radius: 12px; background: #0d3029; }
.blackjack-hand.is-turn { border-color: var(--gold); box-shadow: 0 0 0 2px #e8ca7160; }
.blackjack-hand > strong,.blackjack-hand > small { display: block; }
.blackjack-hand > small { color: var(--muted); }
.blackjack-hand .playing-cards { justify-content: start; overflow-x: auto; min-height: 65px; padding-left: 13px; margin: .5rem 0; }
.blackjack-hand .playing-card { flex: 0 0 40px; width: 40px; height: 56px; margin-left: -13px; padding: 0; font-size: .65rem; }
.blackjack-hand .playing-card span { font-size: .9rem; }
.blackjack-mobile-message { display: none; margin-top: .7rem; color: var(--gold); font-weight: 800; text-align: center; }
.blackjack-dealer-rack { display: flex; align-items: center; justify-content: center; gap: .28rem; min-height: 44px; margin: auto; padding: .4rem .7rem; border: 5px solid #191513; border-radius: 8px; background: repeating-linear-gradient(90deg,#2b2521,#2b2521 30px,#493c2f 32px); box-shadow: 0 8px 16px #0008; }
.blackjack-felt.layout-enabled .blackjack-dealer-rack { left: var(--rack-left,50%); top: var(--rack-top,13%); transform: translate(-50%,-50%); width: min(56%,560px); }
.blackjack-dealer-rack span { display: grid; place-items: center; width: 38px; height: 30px; border: 3px solid white; border-radius: 50%; color: white; background: #a3343e; font-weight: 800; font-size: .6rem; text-shadow: 0 1px 2px black; }
.blackjack-dealer-rack span:nth-child(3n+2) { background: #325889; }
.blackjack-dealer-rack span:nth-child(3n) { background: #427c54; }
.blackjack-room-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; margin-top: 1rem; }
.blackjack-room-controls button { width: auto; }
.blackjack-room-controls span { color: var(--gold); font-weight: 700; }
.blackjack-felt.layout-enabled .blackjack-message { left: 50%; top: 48%; transform: translate(-50%,-50%); width: max-content; max-width: 60%; }
.blackjack-felt.layout-enabled .playing-card { width: calc(82px * var(--bj-card-scale,1)); height: calc(116px * var(--bj-card-scale,1)); }
.blackjack-felt.layout-enabled[data-shape="capsule"] { border-radius: 999px; }
.blackjack-felt.layout-enabled[data-shape="oval"] { border-radius: 50%; }
.blackjack-felt.layout-enabled[data-shape="rounded-rectangle"] { border-radius: 120px; }
.blackjack-felt.layout-enabled[data-felt="fine-green"] { --bj-felt-image: url('/tabletop/assets/table/green-felt-fine.png'); }
.blackjack-felt.layout-enabled[data-felt="classic-green"] { --bj-felt-image: url('/tabletop/assets/table/green-felt.png'); }
.blackjack-felt.layout-enabled[data-felt="midnight-blue"] { --bj-felt-image: linear-gradient(#173855cc,#14263dcc),url('/tabletop/assets/table/green-felt-fine.png'); }
.blackjack-felt.layout-enabled[data-felt="burgundy"] { --bj-felt-image: linear-gradient(#6a2639cc,#4d1d2fcc),url('/tabletop/assets/table/green-felt-fine.png'); }
.blackjack-felt.layout-enabled[data-rail="leather"] { --bj-rail-image: url('/tabletop/assets/table/espresso-leather.png'); }
.blackjack-felt.layout-enabled[data-rail="walnut"] { --bj-rail-image: url('/tabletop/assets/table/walnut-rail.png'); }
.blackjack-felt.layout-enabled[data-rail="oak"] { --bj-rail-image: url('/tabletop/assets/table/oak-rail.png'); }
.blackjack-felt.layout-enabled[data-rail="chrome"] { --bj-rail-image: linear-gradient(125deg,#41484e,#dce3e4 38%,#5a6568 60%,#dce3e4); }
.blackjack-felt.layout-enabled[data-rail="brass"] { --bj-rail-image: linear-gradient(125deg,#5b4117,#e3c478 38%,#8e692e 60%,#e9d696); }
.blackjack-message { justify-self: center; max-width: 560px; padding: .65rem 1.1rem; border-radius: 999px; color: white; background: rgba(0,0,0,.3); text-align: center; font-weight: 800; }
.blackjack-actions { display: grid; grid-template-columns: repeat(4, minmax(100px, 150px)); justify-content: center; gap: .7rem; margin-top: 1rem; }
.blackjack-actions[hidden] { display: none; }
.blackjack-actions .primary { width: auto; }
.blackjack-actions button:disabled { opacity: .45; }
.betting-rack { margin-top: 1.25rem; }
.betting-rack h2 { margin-bottom: .35rem; }
.bet-limits { margin: .35rem 0 0; color: var(--gold); font-weight: 800; }
.bet-chips { display: flex; gap: .8rem; overflow-x: auto; padding: 1rem .2rem 1.25rem; }
.bet-chip { --currency: var(--gold); flex: 0 0 112px; min-height: 112px; display: grid; place-items: center; align-content: center; gap: .25rem; padding: .55rem; overflow: hidden; border: 4px dashed rgba(255,255,255,.7); border-radius: 50%; color: white; background: color-mix(in srgb, var(--currency), #181818 30%); box-shadow: 0 5px 12px rgba(0,0,0,.28); }
.bet-chip img { width: calc(100% + 1.1rem); height: calc(100% + 1.1rem); margin: -.55rem; object-fit: cover; grid-area: 1 / 1; }
.bet-chip img ~ * { position: relative; grid-area: 1 / 1; padding: .2rem .35rem; border-radius: 6px; background: rgba(0,0,0,.7); text-shadow: 0 1px 2px black; }
.bet-chip img ~ small { align-self: end; margin-bottom: .7rem; font-size: .63rem; }
.bet-chip:disabled { opacity: .35; cursor: not-allowed; }
.bet-money { flex-basis: 105px; border: 2px solid rgba(255,255,255,.55); border-radius: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--currency), #e6d9b3 68%), #aa956e); }
.bet-tray { min-height: 84px; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .8rem; border: 1px dashed var(--gold); border-radius: 14px; background: rgba(0,0,0,.18); }
.bet-tray-piece { min-width: 82px; padding: .65rem; border: 1px solid #fff9; border-radius: 9px; color: #1b160c; background: linear-gradient(130deg, #e8ddb5, #bca162); font-weight: 800; }
.bet-fallback { margin: .8rem 0; color: var(--muted); }
.bet-fallback summary { cursor: pointer; }
.bet-fallback label { max-width: 220px; }
.bet-summary { display: grid; grid-template-columns: auto 1fr minmax(150px, 240px); align-items: center; gap: 1rem; }
.bet-summary span { text-align: right; color: var(--muted); }
.bet-summary strong { margin-left: .4rem; color: var(--gold); font: 700 1.35rem Georgia, serif; }
.custom-bet { width: min(320px, 100%); margin: 0; }

.admin-panel { margin-top: 4.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.admin-panel { margin-top: 0; border: 0; }
.admin-header-actions { display: flex; gap: .6rem; }
.admin-navigation { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.admin-navigation button { display: grid; gap: .2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 13px; color: var(--gold); background: rgba(255,255,255,.035); text-align: left; font-size: 1.45rem; }
.admin-navigation button strong { color: var(--ink); font-size: 1rem; }
.admin-navigation button small { color: var(--muted); font-size: .8rem; }
.admin-navigation button.active { border-color: var(--gold); background: rgba(214,173,92,.12); }
.admin-table-tools { box-shadow: none; }
.admin-table-tools h3 { margin-bottom: .8rem; }
.admin-table-tool-links { display: flex; flex-wrap: wrap; gap: .7rem; }
.admin-table-tool-links a { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: rgba(255,255,255,.05); text-decoration: none; }
.admin-table-tool-links a:hover { border-color: var(--gold); }
.admin-table-tool-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.section-heading h2 { margin-bottom: 0; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.5rem 0; }
.lobby-copy-panel { margin: 1.5rem 0; }
.lobby-copy-editor { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.lobby-copy-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.lobby-copy-group h4 { grid-column: 1 / -1; margin: 0; color: var(--gold); font: 700 1.25rem Georgia, serif; }
.lobby-copy-field { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.14); }
.lobby-copy-field label { margin: 0; font-weight: 700; }
.lobby-copy-field textarea { width: 100%; min-height: 4rem; resize: vertical; margin-top: .45rem; font: inherit; }
.lobby-copy-preview { min-height: 2.5rem; margin: .7rem 0 .4rem; padding: .7rem; border-left: 3px solid var(--gold); color: var(--ink); background: rgba(214,173,92,.08); white-space: pre-wrap; overflow-wrap: anywhere; }
.lobby-copy-default, .lobby-copy-help { margin: .35rem 0; color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.lobby-copy-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .8rem; }
.lobby-copy-actions .primary { margin: 0; }
.lobby-copy-field .form-error { margin: .4rem 0 0; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.muted { color: var(--muted); }
.currency-studio { margin-bottom: 1.25rem; }
.casino-finances { margin-bottom: 1.25rem; }
.casino-finances .section-heading h3 { margin: .15rem 0 0; }
.casino-finances .section-heading > .muted { text-align: right; }
.finance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1rem; }
.finance-card { padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.14); }
.finance-card h4 { margin: 0 0 .8rem; font: 700 1.15rem Georgia, serif; color: var(--gold); }
.finance-metrics { display: grid; grid-template-columns: 1fr auto; gap: .45rem 1rem; margin: 0; }
.finance-metrics dt { color: var(--muted); }
.finance-metrics dd { margin: 0; font-weight: 800; text-align: right; }
.finance-details { margin: .9rem 0 0; padding-top: .75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.currency-studio-list { display: grid; gap: 1rem; }
.currency-editor { --currency: var(--gold); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; background: rgba(255,255,255,.025); }
.currency-editor-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.currency-editor-head h4 { margin: 0 0 .2rem; font: 700 1.2rem Georgia, serif; }
.currency-editor-head p { margin: 0; color: var(--muted); }
.currency-details { margin-bottom: 1rem; }
.currency-details summary { color: var(--gold); cursor: pointer; margin-bottom: .7rem; }
.currency-edit-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem 1rem; }
.currency-edit-form label { margin: 0; }
.checkbox-label { display: flex; align-items: center; gap: .5rem; }
.checkbox-label input { width: auto; }
.currency-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compact-form { padding: 1rem; border-radius: 12px; background: rgba(0,0,0,.16); }
.compact-form h5 { margin: 0 0 .6rem; font-size: .95rem; }
.compact-form .primary { padding: .65rem; }
.denomination-list { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1rem; }
.denomination-card { display: grid; grid-template-columns: 48px auto; align-items: center; gap: .7rem; min-width: 170px; padding: .6rem; border: 1px solid var(--line); border-radius: 10px; }
.denomination-card strong, .denomination-card small { display: block; }
.denomination-card small { margin-top: .18rem; }
.denomination-image { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border-radius: 9px; background: rgba(0,0,0,.24); color: var(--currency); font-weight: 800; }
.denomination-card label { margin: .25rem 0 0; font-size: .72rem; }
.denomination-card input[type=file], .compact-form input[type=file] { padding: .45rem; font-size: .76rem; }
.invite-output { display: block; overflow-wrap: anywhere; margin-top: 1rem; color: var(--gold); font-family: ui-monospace, monospace; }
.table-panel { box-shadow: none; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: .75rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
.positive { color: #74d5a4; }
.negative { color: #ff8c92; }
footer { position: relative; z-index: 1; padding: 2rem; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .82rem; }
.toast { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 10; max-width: 360px; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: #18251f; box-shadow: var(--shadow); }

@media (max-width: 820px) {
  .auth-layout, .admin-grid, .lobby-copy-group { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr; }
  .game-tab { padding: .65rem .55rem; grid-template-columns: 1.8rem minmax(0, 1fr); gap: .1rem .35rem; }
  .game-tab-symbol { width: 1.8rem; height: 1.8rem; }
  .game-tab strong { font-size: .95rem; }
  .game-tab small { font-size: .72rem; }
  .admin-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gift-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { align-items: stretch; flex-direction: column; }
  .balance-card { width: 100%; flex-basis: auto; text-align: left; }
  .currency-tools { grid-template-columns: 1fr; }
  .casino-finances .section-heading { align-items: flex-start; flex-direction: column; }
  .casino-finances .section-heading > .muted { text-align: left; }
  .currency-edit-form { grid-template-columns: 1fr 1fr; }
  .account-summary > span { display: none; }
  .blackjack-toolbar { grid-template-columns: auto 1fr; }
  .blackjack-balance { grid-column: 1 / -1; justify-self: stretch; }
  .blackjack-felt { min-height: 540px; border-radius: 80px 80px 18px 18px / 35px 35px 18px 18px; }
}
@media (max-width: 520px) {
  #games { gap: .2rem; }
  #games .game-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; padding: .4rem .1rem; text-align: center; }
  #games .game-tab-symbol { width: 1.5rem; height: 1.5rem; }
  #games .game-tab strong { font-size: .72rem; overflow-wrap: anywhere; }
  #games .game-tab small { display: none; }
  main { width: min(100% - 1.3rem, 1180px); }
  .masthead { padding: .8rem; }
  .brand small { display: none; }
  .account-summary { gap: .6rem; }
  .gift-form { grid-template-columns: 1fr; }
  .admin-header-actions { flex-wrap: wrap; }
  .currency-note { border-radius: 14px; align-items: start; flex-direction: column; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .rake-fields { grid-template-columns: 1fr; gap: 0; }
  .currency-edit-form { grid-template-columns: 1fr; }
  .blackjack-toolbar { gap: .8rem; }
  .blackjack-toolbar > .secondary { padding: .6rem; }
  .blackjack-table-title h1 { font-size: 1.75rem; }
  .blackjack-felt { min-height: 500px; padding: .8rem; border-width: 6px; }
  .playing-card { width: 66px; height: 96px; }
  .hand { min-height: 145px; }
  .blackjack-actions { grid-template-columns: repeat(2, 1fr); width: 100%; gap: .4rem; }
  .blackjack-mobile-message { display: block; }
  .bet-summary { grid-template-columns: auto 1fr; }
  .bet-summary .primary { grid-column: 1 / -1; }
}
