/* The Pale Banker paints only its game surfaces. Site background, logo,
   heading, wrapper and footer remain owned by the shared site stylesheet. */
:root {
  --pb-line: #00c7d1;
  --pb-soft: rgba(0, 199, 209, .34);
  --pb-text: #d8f7f9;
  --pb-muted: #7fa8ae;
  --pb-gold: #d8b45a;
  --pb-panel: rgba(5, 15, 19, .92);
  --pb-wine: #571b2a;
  --pb-danger: #ff7a7a;
}
[hidden] { display: none !important; }
.game-shell { position: relative; max-width: 1180px; margin: 0 auto; }
.pb-tagline { margin: -4px 0 18px; text-align: center; font-family: Cinzel, Georgia, serif;
  letter-spacing: .22em; text-transform: uppercase; font-size: .76rem; color: rgba(0,199,209,.72); }
.game-info { max-width: 940px; margin: 0 auto 16px; padding: 12px 16px; border: 1px solid var(--pb-line);
  border-radius: 10px; background: var(--pb-panel); box-shadow: 0 0 16px rgba(0,255,255,.13); }
.game-info h3 { margin: 0 0 8px; color: #00dfe8; }
.game-info ul { margin: 0; padding-left: 20px; text-align: left; }

.pb-shell button, .pb-modal button { font-family: Cinzel, Georgia, serif; font-size: .84rem; letter-spacing: .07em;
  text-transform: uppercase; color: var(--pb-text); padding: 9px 16px; border: 1px solid var(--pb-line);
  border-radius: 7px; background: linear-gradient(rgba(0,199,209,.2),rgba(0,0,0,.35)),#0a171d;
  cursor: url('/images/cursors/hover.cur') 11 0,url('/images/cursors/hover.png') 11 0,pointer; }
.pb-shell button:hover, .pb-shell button:focus-visible, .pb-modal button:hover {
  border-color: #00ffff; box-shadow: 0 0 15px rgba(0,223,232,.4); color: #fff; }
.pb-shell button:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.pb-shell .pb-btn-primary { background: linear-gradient(rgba(0,223,232,.35),rgba(0,0,0,.35)),#08222a; }
.pb-shell .pb-btn-danger { border-color: rgba(255,122,122,.7); color: #ffd9d9; }
.pb-shell input[type=text], .pb-shell select { font-family: Georgia, serif; color: var(--pb-text);
  background: rgba(3,11,15,.92); border: 1px solid var(--pb-soft); border-radius: 6px; padding: 8px 11px; }
.pb-shell select { cursor: url('/images/cursors/hover.cur') 11 0,url('/images/cursors/hover.png') 11 0,pointer; }
.pb-shell input:focus, .pb-shell select:focus { outline: none; border-color: #00dfe8; box-shadow: 0 0 12px rgba(0,223,232,.25); }

.pb-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px;
  max-width: 940px; margin: 0 auto 18px; padding: 12px 18px; border: 1px solid var(--pb-soft);
  border-radius: 12px; background: var(--pb-panel); }
.pb-field { display: flex; align-items: center; gap: 8px; }
.pb-field label, .lobby-panel label { font-family: Cinzel, Georgia, serif; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--pb-muted); }
.pb-field input { width: 170px; }
.chips-readout { display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 6px;
  border: 1px solid rgba(216,180,90,.42); border-radius: 999px;
  background: linear-gradient(rgba(216,180,90,.12),rgba(0,0,0,.3)); }
.chips-readout img { width: 30px; height: 30px; }
.chips-readout .amount { color: var(--pb-gold); font: 700 1.06rem Cinzel,Georgia,serif; }
.chips-readout .tag { color: var(--pb-muted); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }

#lobby { position: relative; overflow: hidden; padding: 26px; border: 1px solid var(--pb-soft);
  border-radius: 18px; background: linear-gradient(rgba(1,9,12,.88),rgba(1,7,9,.96)),
  url('../images/table-key-art.png') center 35%/cover no-repeat; }
.lobby-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lobby-panel { padding: 20px; border: 1px solid var(--pb-soft); border-radius: 12px;
  background: rgba(4,18,22,.9); }
.lobby-panel h3 { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--pb-soft);
  color: #00dfe8; text-align: center; letter-spacing: .12em; text-transform: uppercase; }
.lobby-panel > label:not(.checkline) { display: block; margin: 12px 0 6px; text-align: center; }
.lobby-panel select { width: 100%; }
.button-row { display: flex; gap: 10px; margin-top: 14px; }
.button-row > * { flex: 1; }
.checkline { display: block; margin-top: 14px; }
.stakes-strip { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 12px 0;
  padding: 10px; border: 1px solid rgba(216,180,90,.3); background: rgba(14,13,9,.65); }
.stakes-strip img { width: 42px; height: 42px; }
.stakes-strip strong, .stakes-strip span { display: block; }
.stakes-strip strong { color: #ead08a; }
.stakes-strip span { color: var(--pb-muted); font-size: .72rem; }
.open-label { margin-top: 20px !important; }
.open-table-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center;
  padding: 8px; border-bottom: 1px solid var(--pb-soft); }
.open-table-row span { display: block; color: var(--pb-muted); font-size: .76rem; }
.empty-note { padding: 18px; text-align: center; color: var(--pb-muted); font-style: italic; }
.message { min-height: 25px; margin: 12px 0 0; text-align: center; color: var(--pb-gold); }
.message.error { color: var(--pb-danger); }

#tableView { border: 1px solid var(--pb-soft); border-radius: 18px; overflow: hidden; background: #020708; }
.table-header { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 18px; padding: 12px 18px;
  background: var(--pb-panel); }
.table-actions { display: flex; justify-content: flex-end; gap: 8px; }
.pb-sound-btn { min-width: 108px; }
.table-code { display: block; color: #00dfe8; font: 700 1.05rem Cinzel,Georgia,serif; letter-spacing: .14em; }
.table-name { color: var(--pb-muted); font-size: .78rem; }
.shoe-meter { text-align: center; color: var(--pb-muted); font-size: .72rem; text-transform: uppercase; }
.shoe-track { display: block; height: 6px; border: 1px solid var(--pb-soft); margin-bottom: 5px; }
.shoe-track i { display: block; height: 100%; background: #00dfe8; transition: width .3s; }
.pb-game-surface { position: relative; min-height: 510px; padding: 160px 24px 22px;
  border-top: 4px double #806d3e; border-bottom: 4px double #806d3e;
  background: radial-gradient(ellipse at 50% 15%,rgba(2,91,95,.63),rgba(1,35,39,.95) 55%,#06151a); }
.banker-presence { position: absolute; inset: 0 0 auto; height: 220px; opacity: .32;
  background: url('../images/table-key-art.png') center 48%/cover no-repeat;
  -webkit-mask-image: linear-gradient(#000 42%,transparent); mask-image: linear-gradient(#000 42%,transparent); }
.shared-hands { position: relative; display: grid; grid-template-columns: 1fr minmax(155px,.55fr) 1fr; gap: 18px; align-items: center; }
.hand { min-height: 205px; text-align: center; }
.hand h2 { margin: 0 0 10px; color: #bde8e8; font: 700 1rem Cinzel,Georgia,serif; letter-spacing: .18em; text-transform: uppercase; }
.cards { display: flex; justify-content: center; min-height: 135px; }
.card { position: relative; width: 88px; height: 123px; object-fit: cover; margin-left: -20px; border-radius: 6px;
  box-shadow: 0 7px 14px #000; animation: pb-deal .34s both;
  transition: transform .16s ease, box-shadow .16s ease;
  cursor: url('/images/cursors/hover.cur') 11 0,url('/images/cursors/hover.png') 11 0,pointer; }
.card:first-child { margin-left: 0; }
.card:hover, .card:focus-visible { z-index: 5; outline: none; transform: translateY(-10px) scale(1.14);
  box-shadow: 0 10px 20px #000, 0 0 13px rgba(0,223,232,.55); }
.hand-total { display: inline-block; min-width: 40px; padding: 5px 10px; border: 1px solid #9f864b;
  border-radius: 20px; color: #f3d788; font-weight: bold; }
.hand-total:empty { visibility: hidden; }
@keyframes pb-deal { from { opacity: 0; transform: translateY(-55px) rotate(-4deg); } }
.verdict { text-align: center; color: var(--pb-gold); font: 700 .92rem Cinzel,Georgia,serif; text-transform: uppercase; }
.verdict.loss { color: #dd7a87; } .verdict.win { color: #8ee7b2; }
.seat-rail { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 18px; }
.seat-rail.solo { max-width: 300px; margin-left: auto; margin-right: auto; }
.seat { min-height: 70px; padding: 9px; border: 1px solid var(--pb-soft); border-radius: 40px 40px 10px 10px;
  background: rgba(2,12,15,.86); text-align: center; }
.seat.you { border-color: var(--pb-gold); box-shadow: 0 0 13px rgba(216,180,90,.2); }
.seat.ready { animation: pb-ready 1.5s ease-in-out infinite; }
.seat.win { border-color: #69d89a; animation: pb-result-win .5s ease-out both; }
.seat.loss { border-color: #ad5060; opacity: .78; }
.seat strong, .seat span { display: block; }
.seat span { color: var(--pb-muted); font-size: .72rem; }
.phase-clock { height: 5px; background: #071317; }
.phase-clock span { display: block; height: 100%; background: #00dfe8; transition: width .5s linear; }
.bet-zones { display: grid; grid-template-columns: 1fr .7fr 1fr; gap: 10px; max-width: 900px; margin: 14px auto; padding: 0 14px; }
.bet-zones button { min-height: 70px; }
.bet-zones button strong, .bet-zones button span { display: block; }
.bet-zones button span { color: var(--pb-muted); font-size: .7rem; margin-top: 3px; }
.bet-zones button[aria-checked=true] { border-color: var(--pb-gold); box-shadow: 0 0 16px rgba(216,180,90,.35); transform: translateY(-2px); }
.bet-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; padding: 12px; background: var(--pb-panel); }
.chip-rack { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.chip-button { width: 54px; height: 54px; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: none !important; }
.chip-button img { width: 52px; height: 52px; display: block; filter: drop-shadow(0 3px 4px #000); }
.chip-button:hover img { transform: translateY(-3px); filter: drop-shadow(0 0 7px #00dfe8); }
.bet-readout { min-width: 84px; text-align: center; }
.bet-readout span { display: block; color: var(--pb-muted); font-size: .68rem; text-transform: uppercase; }
.bet-readout strong { color: var(--pb-gold); font-size: 1.25rem; }
.waiting-note { padding: 14px; text-align: center; color: var(--pb-muted); font-style: italic; }
@keyframes pb-ready { 50% { box-shadow: 0 0 15px rgba(0,223,232,.38); } }
@keyframes pb-result-win { from { transform: scale(.96); } 60% { transform: scale(1.035); box-shadow: 0 0 22px rgba(105,216,154,.55); } }
.pb-divider { margin: 38px 0 26px; border: 0; border-top: 1px solid var(--pb-soft); }
.leaderboard { text-align: center; }
#lbTable { width: 100%; border-collapse: collapse; }
#lbTable th, #lbTable td { padding: 10px; border: 1px solid var(--pb-line); }
#lbTable th { background: rgba(0,204,204,.14); color: #aefefe; }
.empty-cell { color: var(--pb-muted); font-style: italic; }
.pb-modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.86); }
.pb-modal > div { max-width: 540px; padding: 26px; border: 2px solid var(--pb-line); border-radius: 14px; background: #061316; text-align: center; }
.pb-modal code { display: block; margin: 18px; padding: 12px; border: 1px dashed var(--pb-gold); color: #f0d278; word-break: break-all; }

@media (max-width: 860px) {
  .lobby-grid { grid-template-columns: 1fr; }
  .table-header { grid-template-columns: 1fr auto; }
  .shoe-meter { grid-row: 2; grid-column: 1 / -1; }
  .pb-game-surface { min-height: 430px; padding: 120px 10px 15px; }
  .shared-hands { grid-template-columns: 1fr 105px 1fr; gap: 5px; }
  .card { width: 66px; height: 92px; margin-left: -24px; }
  .seat-rail { gap: 5px; }
}
@media (max-width: 650px) and (orientation: portrait) { .wrapper { display: none; } }
@media (prefers-reduced-motion: reduce) { .pb-shell * { animation: none !important; scroll-behavior: auto !important; } }
