/* ================= Modern style (default) =================
   Dark table with a light rim, glass seat plates and pill action buttons. Applied when <body> has the "modern" class. */
body.modern {
  --act-fold: #c8373d; --act-fold-2: #9d252b;
  --act-call: #22a861; --act-call-2: #157f47;
  --act-raise: #f29a2e; --act-raise-2: #d27512;
}

/* ---------- cards ---------- */
.card.back .back-mark { display: none; }
body.modern .card.back {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .07) 0 22%, transparent 23%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 7px),
    linear-gradient(160deg, #26324a, #111827);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(255, 255, 255, .14);
  display: grid; place-items: center;
}
body.modern .card.back .back-mark { display: block; color: #e2b04a; opacity: .85; font-size: 26px; }
body.modern .card.slot { background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08); }

/* ---------- table: slim dark rail with a light rim ---------- */
body.modern .table {
  background: linear-gradient(180deg, #2a3442, #0b0f15);
  padding: 2px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .85), 0 0 0 1px #000, 0 0 60px rgba(80, 160, 255, .12);
}
body.modern .table::before {
  inset: 2px;
  background: radial-gradient(ellipse 70% 40% at 50% 4%, rgba(255, 255, 255, .08), transparent 70%), linear-gradient(180deg, #161c25, #07090d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
body.modern .felt {
  inset: 24px;
  border-radius: 240px;
  background: radial-gradient(ellipse 70% 62% at 50% 44%, var(--felt-a) 0%, var(--felt-b) 58%, var(--felt-c) 100%);
  box-shadow: 0 0 0 2px rgba(140, 200, 255, .18), 0 0 26px rgba(120, 190, 255, .18), inset 0 0 50px rgba(0, 0, 0, .55);
}
body.modern .scene.portrait .felt { inset: 20px; border-radius: 300px; }
body.modern .felt-line { border: 1.5px solid rgba(255, 255, 255, .07); inset: 54px; }
body.modern .tray, body.modern .shoe { filter: saturate(.85) brightness(.9); }

/* ---------- seats: glass plates ---------- */
body.modern .plate {
  border-radius: 16px; height: 64px;
  background: linear-gradient(180deg, rgba(22, 28, 38, .96), rgba(10, 13, 18, .96));
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .6);
}
body.modern .seat.hero .plate { border-color: rgba(226, 176, 74, .5); background: linear-gradient(180deg, rgba(34, 30, 22, .97), rgba(14, 12, 9, .97)); }
body.modern .avatar { width: 58px; height: 58px; margin-left: -14px; border: 2px solid #0b0e13; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12), 0 6px 14px rgba(0, 0, 0, .6); }
body.modern .name { font-size: 14px; font-weight: 600; color: #cfd6e0; }
body.modern .stack { font-size: 19px; color: #fff; }
body.modern .seat.hero .stack { color: var(--accent-2); }
body.modern .seat.acting .plate { border-color: #4ad08a; box-shadow: 0 0 0 2px rgba(74, 208, 138, .35), 0 0 30px rgba(74, 208, 138, .35), 0 12px 30px rgba(0, 0, 0, .6); }
body.modern .pos { background: #0f141b; border-color: rgba(255, 255, 255, .14); }

/* ---------- action tags ---------- */
body.modern .tag { border-radius: 8px; font-size: 12.5px; letter-spacing: .4px; text-transform: uppercase; color: #fff; }
body.modern .tag.la-fold { background: #3a3f48; color: #aab1bc; }
body.modern .tag.la-check, body.modern .tag.la-call { background: var(--act-call-2); }
body.modern .tag.la-bet, body.modern .tag.la-raise { background: var(--act-raise-2); color: #1d0f02; }

/* ---------- bets, pot, dealer button ---------- */
body.modern .bet .num, body.modern .pot-label { background: rgba(6, 9, 13, .82); border: 1px solid rgba(255, 255, 255, .1); }
body.modern .dealer-button { width: 30px; height: 30px; font-size: 14px; box-shadow: 0 2px 0 #9aa0aa, 0 4px 10px rgba(0, 0, 0, .6); }

/* ---------- action bar: pill buttons on the right ---------- */
body.modern .action-bar { align-items: flex-end; padding-right: 28px; background: linear-gradient(180deg, #0b0f14, #07090c); }
body.modern .raise-row, body.modern .buttons { width: min(640px, 100%); }
body.modern .btn.preset { background: transparent; border: 1px solid rgba(255, 255, 255, .16); color: #cfd6e0; }
body.modern .btn.preset:hover { border-color: var(--act-raise); color: #fff; }
body.modern .btn.act {
  border-radius: 999px; font-size: 16px; letter-spacing: .6px; text-transform: uppercase; color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .2);
}
body.modern .btn.act.fold { background: linear-gradient(180deg, var(--act-fold), var(--act-fold-2)); }
body.modern .btn.act.call { background: linear-gradient(180deg, var(--act-call), var(--act-call-2)); }
body.modern .btn.act.raise { background: linear-gradient(180deg, var(--act-raise), var(--act-raise-2)); color: #1d0f02; }
body.modern .btn.act kbd { background: rgba(0, 0, 0, .2); border-color: rgba(255, 255, 255, .25); }
body.modern #raiseSlider { accent-color: var(--act-raise); }
@media (max-width: 760px) { body.modern .action-bar { align-items: center; padding-right: 10px; } }

/* ---------- lobby: table style switch ---------- */
.style-tabs { display: flex; gap: 6px; }
.style-tabs button {
  flex: 1; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; padding: 7px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text-2);
}
.style-tabs button.active { border-color: var(--accent); color: var(--accent-2); }

/* ================= Modern seats: big avatar, compact plate ================= */
.avatar .face { display: grid; place-items: center; width: 100%; height: 100%; }
.avatar .face img { width: 100%; height: 100%; border-radius: 50%; display: block; }
body.modern .plate {
  flex-direction: column; align-items: center; gap: 0; height: auto; padding: 0;
  background: none; border: 0; box-shadow: none; width: auto;
}
body.modern .seat.hero .plate { background: none; border: 0; }
body.modern .avatar {
  width: 92px; height: 92px; margin: 0; z-index: 1; font-size: 40px;
  border: 3px solid #0b0e13; box-shadow: 0 0 0 2px rgba(255, 255, 255, .14), 0 10px 22px rgba(0, 0, 0, .6);
  background: #1b2330;
}
body.modern .ring { inset: -8px; width: 108px; height: 108px; }
body.modern .face[data-level]:not([data-level=""])::after {
  content: attr(data-level); position: absolute; left: -4px; bottom: 6px; z-index: 2;
  min-width: 26px; height: 22px; padding: 0 5px; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff; border-radius: 6px;
  background: linear-gradient(180deg, #3b4b63, #1c2533); border: 1px solid rgba(255, 255, 255, .25);
}
body.modern .info {
  position: relative; z-index: 2; margin-top: -16px; min-width: 156px; max-width: 200px; text-align: center;
  padding: 6px 14px 7px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(24, 30, 40, .97), rgba(10, 13, 18, .97));
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 10px 24px rgba(0, 0, 0, .55);
  transition: border-color .2s, box-shadow .2s;
}
body.modern .name { font-size: 14.5px; font-weight: 600; color: #e6ebf2; }
body.modern .name small:not(.hand) { display: none; }
body.modern .name small.hand { font-size: 11.5px; }
body.modern .stack { font-size: 18px; font-weight: 800; color: #8fd0ff; text-align: center; }
body.modern .seat.hero .stack { color: var(--accent-2); }
body.modern .seat.hero .info { border-color: rgba(226, 176, 74, .45); }
body.modern .pos { top: auto; bottom: -9px; right: 50%; transform: translateX(50%); }
body.modern .seat.acting .plate { box-shadow: none; border: 0; }
body.modern .seat.acting .info { border-color: #4ad08a; box-shadow: 0 0 0 2px rgba(74, 208, 138, .3), 0 0 26px rgba(74, 208, 138, .35); }
body.modern .seat.winner .plate { box-shadow: none; animation: none; }
body.modern .seat.winner .info { border-color: #4ad08a; box-shadow: 0 0 0 2px rgba(74, 208, 138, .45), 0 0 34px rgba(74, 208, 138, .5); animation: winner-pulse 1.1s ease-in-out 3; }
body.modern .seat.folded .plate { opacity: .5; }
body.modern .seat.empty .plate { padding: 12px 18px; border-radius: 12px; border: 1.5px dashed #3c4656; background: rgba(10, 13, 18, .55); }
body.modern .seat.empty .info { margin: 0; background: none; border: 0; box-shadow: none; min-width: 0; }
/* cards tuck in over the top of the avatar */
body.modern .hole { margin-bottom: -48px; z-index: 3; }
body.modern .seat.hero .hole { margin-bottom: -40px; }
body.modern .tag { top: calc(100% + 6px); }

/* modern large-index faces (red / black) */
.card.mc { background: linear-gradient(180deg, #ffffff, #f2f3f6); container-type: inline-size; overflow: hidden; }
.card.mc span { position: absolute; line-height: 1; font-family: Inter, system-ui, sans-serif; user-select: none; }
.card.mc .mc-r { top: 5%; left: 8%; font-size: 44cqw; font-weight: 800; letter-spacing: -.05em; }
.card.mc .mc-s { top: 47cqw; left: 9%; font-size: 30cqw; }
.card.mc .mc-big { right: 6%; bottom: 4%; font-size: 62cqw; }
.card.mc.red { color: #d3202f; }
.card.mc.black { color: #15171c; }

/* spacing tuned for the big-avatar seats */
body.modern .seat:not(.hero) .hole { height: 92px; margin-bottom: -38px; }
body.modern .seat:not(.hero) .hole .card { width: 66px; height: 92px; margin: 0 -5px; }
body.modern .scene[data-holes="4"] .seat:not(.hero) .hole .card { width: 56px; height: 78px; margin: 0 -15px; }
body.modern .scene[data-holes="5"] .seat:not(.hero) .hole .card { width: 52px; height: 73px; margin: 0 -17px; }
body.modern .scene[data-holes="6"] .seat:not(.hero) .hole .card { width: 48px; height: 67px; margin: 0 -18px; }
body.modern .seat.hero .hole { height: 146px; margin-bottom: -44px; }
body.modern .seat.hero .hole .card { width: 104px; height: 146px; }
body.modern .scene[data-holes="4"] .seat.hero .hole .card { width: 92px; height: 129px; margin: 0 -12px; }
body.modern .scene[data-holes="5"] .seat.hero .hole .card { width: 86px; height: 120px; margin: 0 -16px; }
body.modern .scene[data-holes="6"] .seat.hero .hole .card { width: 80px; height: 112px; margin: 0 -19px; }
body.modern .pos { top: 52px; bottom: auto; right: -10px; transform: none; z-index: 3; }
/* show more of the avatar under the cards */
body.modern .seat:not(.hero) .hole { margin-bottom: -26px; }
body.modern .info { margin-top: -10px; }
body.modern .seat.hero .tag { top: auto; bottom: 16px; left: auto; right: calc(100% - 18px); transform: none; }
body.modern .seat.hero .tag.show { transform: none; }
