/**
 * drill-setup.css — Drill setup panel styles.
 * Linked from index.html. All tokens from theme.css via CSS custom properties.
 */

/* ── Panel container ─────────────────────────────────────────────────────────── */

#drill-setup {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 1;
  transition: opacity 0.2s ease;
}

#drill-setup.ds-fading {
  opacity: 0;
  pointer-events: none;
}

/* ── Recent drills (spans both columns) ─────────────────────────────────────── */

#recent-drills {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

#recent-drills-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

#recent-drills-row::-webkit-scrollbar {
  display: none;
}

.recent-drill-card {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.recent-drill-card:hover {
  border-color: var(--color-accent, #00d4a0);
  background: #1a1a1a;
}

.recent-drill-spot {
  font-size: 13px;
  font-weight: 700;
  color: #f0f0f0;
}

.recent-drill-detail {
  font-size: 12px;
  color: #888;
}

.recent-drill-play {
  color: var(--color-accent, #00d4a0);
  font-size: 13px;
}

/* ── Left column: controls ───────────────────────────────────────────────────── */

#setup-controls {
  min-width: 0;
}

.setup-section {
  margin-bottom: 28px;
}

.setup-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

/* ── Section A: Game Format ──────────────────────────────────────────────────── */

#setup-game-format {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.setup-dropdown {
  display: flex;
  flex-direction: column;
}

.setup-select {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  color: #f0f0f0;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 10px 32px 10px 14px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  min-width: 120px;
  transition: border-color 0.15s ease;
}

.setup-select:hover {
  border-color: #3a3a3a;
}

.setup-select:focus {
  border-color: var(--color-accent, #00d4a0);
}

.setup-select option:disabled {
  color: #555;
}

/* ── Section B: Spot type ────────────────────────────────────────────────────── */

.setup-pill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.setup-pill {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #ccc;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 12px 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-align: center;
}

.setup-pill:hover:not(:disabled) {
  border-color: #3a3a3a;
  color: #f0f0f0;
  background: #1a1a1a;
}

.setup-pill--selected {
  background: var(--color-accent, #00d4a0);
  border-color: var(--color-accent, #00d4a0);
  color: #0a0a0a;
  font-weight: 700;
}

.setup-pill--selected:hover {
  background: var(--color-accent, #00d4a0);
  border-color: var(--color-accent, #00d4a0);
  color: #0a0a0a;
  filter: brightness(1.08);
}

.setup-pill--disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pill-soon {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  color: #555;
  background: #1e1e1e;
  border-radius: 4px;
  padding: 2px 5px;
  margin-left: 4px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Section C & D: Position pills ──────────────────────────────────────────── */

.setup-section--reveal {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}

.setup-section--reveal.is-visible {
  max-height: 200px;
  opacity: 1;
}

.setup-position-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.setup-position-pill {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  color: #ccc;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  min-width: 48px;
  text-align: center;
}

.setup-position-pill:hover:not(:disabled) {
  border-color: #3a3a3a;
  color: #f0f0f0;
  background: #1a1a1a;
}

.setup-position-pill--selected {
  background: var(--color-accent, #00d4a0);
  border-color: var(--color-accent, #00d4a0);
  color: #0a0a0a;
}

.setup-position-pill--selected:hover:not(:disabled) {
  filter: brightness(1.08);
}

.setup-position-pill--disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* Auto-select pulse animation for bb-defense → BB */
@keyframes setupPillPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.06); }
}

.setup-position-pill--auto {
  animation: setupPillPulse 0.4s ease 1;
}

/* ── Section E: Advanced settings ────────────────────────────────────────────── */

.setup-advanced {
  margin-top: 8px;
}

.setup-advanced-toggle {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  padding: 8px 0;
  list-style: none;
  transition: color 0.15s ease;
  font-family: 'Inter', sans-serif;
  user-select: none;
}

.setup-advanced-toggle::-webkit-details-marker {
  display: none;
}

.setup-advanced-toggle:hover {
  color: #888;
}

.setup-advanced-content {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  flex-wrap: wrap;
}

/* Row inside advanced: label + control side by side */
.setup-adv-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.setup-adv-row .setup-label {
  min-width: 130px;
  margin: 0;
  flex-shrink: 0;
}

/* Table count inside advanced panel */
.setup-adv-row .tc-buttons {
  display: flex;
  gap: 4px;
}

/* Table theme inside advanced panel */
.setup-adv-row .table-theme-selector {
  flex: 1;
}

.setup-adv-row .tt-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tt-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

/* ── Right column: preview ───────────────────────────────────────────────────── */

#setup-preview {
  background: #111111;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  position: sticky;
  top: 16px;
  align-self: start;
}

#preview-table-container {
  margin-bottom: 24px;
}

#preview-info {
  text-align: center;
}

#preview-title {
  font-size: 18px;
  font-weight: 700;
  color: #555;
  margin: 0 0 6px 0;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s ease;
}

#preview-description {
  font-size: 13px;
  color: #888;
  margin: 0 0 4px 0;
  font-family: 'Inter', sans-serif;
}

#preview-hand-count {
  font-size: 12px;
  color: #555;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

/* ── Mini poker table ────────────────────────────────────────────────────────── */

#preview-mini-table {
  position: relative;
  width: 220px;
  height: 130px;
}

.preview-felt {
  width: 220px;
  height: 130px;
  border-radius: 50%;
  border: 2px solid #2a2a2a;
  background: radial-gradient(ellipse at 50% 40%, #162216 0%, #0d160d 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: border-color 0.2s ease;
}

.preview-felt--empty {
  border-style: dashed;
  border-color: #1e1e1e;
  background: #0d0d0d;
}

.preview-action-text {
  font-size: 9px;
  color: #888;
  text-align: center;
  max-width: 110px;
  line-height: 1.4;
  padding: 0 6px;
  font-family: 'Inter', sans-serif;
}

/* Chips around the oval — positioned absolutely */
.preview-chip {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #666;
  font-size: 7px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  /* Each chip centered on its anchor point */
  transform: translate(-50%, -50%);
}

/* Positions relative to .preview-felt (220×130px) */
/* top/left = center point of chip anchor */
.preview-chip-utg  { top:  0px; left:  77px; }   /* top-left area */
.preview-chip-hj   { top:  0px; left: 143px; }   /* top-right area */
.preview-chip-co   { top:  52px; left: 220px; }  /* right edge */
.preview-chip-btn  { top: 130px; left: 143px; }  /* bottom-right */
.preview-chip-sb   { top: 130px; left:  77px; }  /* bottom-left */
.preview-chip-bb   { top:  52px; left:   0px; }  /* left edge */

.preview-chip--hero {
  background: var(--color-accent, #00d4a0);
  border-color: var(--color-accent, #00d4a0);
  color: #0a0a0a;
}

.preview-chip--opponent {
  background: var(--color-raise, #e05252);
  border-color: var(--color-raise, #e05252);
  color: #fff;
}

/* ── Bottom bar: actions (spans both columns) ────────────────────────────────── */

#setup-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #1e1e1e;
  margin-top: 8px;
}

.setup-btn-primary {
  flex: 1;
  height: 52px;
  background: var(--color-accent, #00d4a0);
  border: none;
  border-radius: 8px;
  color: #0a0a0a;
  font-size: 15px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.setup-btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: scale(1.01);
}

.setup-btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.setup-btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#start-drill-summary {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.7;
  font-family: 'Inter', sans-serif;
}

.setup-btn-secondary {
  height: 52px;
  background: transparent;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #888;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s ease, color 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.setup-btn-secondary:hover {
  border-color: #3a3a3a;
  color: #f0f0f0;
}

/* ── Tooltip ─────────────────────────────────────────────────────────────────── */

.setup-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1e1e1e;
  color: #555;
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  margin-left: 6px;
  position: relative;
  vertical-align: middle;
  font-style: normal;
}

.setup-tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #ccc;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 50;
  pointer-events: none;
  font-style: normal;
}

/* ── Mobile ──────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  #drill-setup {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }

  .setup-pill-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #setup-preview {
    min-height: 280px;
    position: static;
  }

  #setup-actions {
    position: sticky;
    bottom: 0;
    background: #0a0a0a;
    padding: 16px 0;
    z-index: 10;
    margin-top: 0;
  }

  .setup-btn-primary {
    height: 48px;
    font-size: 14px;
  }

  .setup-btn-secondary {
    height: 48px;
  }
}

/* ══════════════════════════════════════════════════════════ */
/* ── Hand count selector ──────────────────────────────────── */
/* ══════════════════════════════════════════════════════════ */
/* Reuses .tc-btn styles from layout.css; the "10/25/50/100/∞"
 * labels need a little more horizontal room than the fixed 36px
 * width that single-digit table counts use. */

.hand-count-selector .tc-btn {
  width: auto;
  min-width: 36px;
  padding: 0 10px;
  font-variant-numeric: tabular-nums;
}

/* Infinity glyph slightly larger for visual weight */
.hand-count-selector .tc-btn[data-hands="0"] {
  font-size: 18px;
  line-height: 1;
}

/* ══════════════════════════════════════════════════════════ */
/* ── Left-panel redesign: monochromatic, single gold accent ─ */
/* ══════════════════════════════════════════════════════════ */
/* Practice uses the main app theme: black surfaces + a single gold
 * accent (#F0B65C). The Dashboard's violet/crimson Velvet-Aurora
 * palette is intentionally kept off this tab — it belongs to the
 * hero landing surface, not the workbench. Sections are separated
 * by spacing and hairline dividers rather than stacked boxes, so
 * the eye has one calm surface with clear hierarchy.
 *
 * All selectors are scoped under #view-drill so they can't bleed
 * into Dashboard / Study / My Ranges views. */

/* Eyebrow — clean uppercase label, no decorative line. */
#view-drill .vb-eyebrow {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #666;
  display: block;
  margin: 0;
}
#view-drill .vb-eyebrow::before { content: none; }
#view-drill .vb-eyebrow--sub {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: #555;
}

/* Sections — no boxes. Just generous spacing with a hairline divider
 * between groups. Keeps the panel one calm surface. */
#view-drill .pd-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 18px 0 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
#view-drill .drl-setup-controls .pd-card:last-of-type {
  border-bottom: 0;
}

#view-drill .pd-card .setup-tooltip {
  text-transform: none;
  letter-spacing: 0;
  margin-left: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #888;
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 14px;
  height: 14px;
  font-size: 9px;
}

/* Source toggle — compact pill container; active side is a dark tile
 * with gold text (not a full-bleed gold banner). */
#view-drill .drl-source-toggle.pd-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 4px;
  margin: 14px 16px 4px;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  flex-shrink: 0;
}

#view-drill .pd-segmented .ds-src-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #777;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

#view-drill .pd-segmented .ds-src-btn:hover:not(.active) {
  color: #c8c8c8;
  background: rgba(255, 255, 255, 0.02);
}

#view-drill .pd-segmented .ds-src-btn.active {
  background: #1a1a1a;
  color: #F0B65C;
  box-shadow: inset 0 0 0 1px rgba(240, 182, 92, 0.18);
}

#view-drill .pd-segmented .ds-src-btn .ds-src-label {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Game format — three flat selects in a single inline row. */
#view-drill .pd-format-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
#view-drill .pd-format-row .setup-dropdown { min-width: 0; }
#view-drill .pd-format-row .setup-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #666;
  margin: 0 0 6px;
}
#view-drill .pd-format-row .setup-select {
  width: 100%;
  height: 38px;
  padding: 0 32px 0 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 7px;
  background-color: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e8e8e8;
  transition: border-color 0.15s ease;
}
#view-drill .pd-format-row .setup-select:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.12);
}
#view-drill .pd-format-row .setup-select:focus {
  border-color: rgba(240, 182, 92, 0.5);
  box-shadow: 0 0 0 3px rgba(240, 182, 92, 0.08);
  outline: none;
}
@media (max-width: 720px) {
  #view-drill .pd-format-row { grid-template-columns: 1fr; }
}

/* Spot pills — flat dark cells, gold-tinted background when selected. */
#view-drill .pd-spot-grid {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 6px;
}
#view-drill .pd-spot-grid .setup-pill {
  border-radius: 7px;
  padding: 10px 10px;
  font-size: 12.5px;
  font-weight: 500;
  background: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #bcbcbc;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
#view-drill .pd-spot-grid .setup-pill:hover:not(:disabled):not(.setup-pill--selected) {
  border-color: rgba(240, 182, 92, 0.3);
  background: #121212;
  color: #f0f0f0;
}
#view-drill .pd-spot-grid .setup-pill--selected {
  background: rgba(240, 182, 92, 0.1);
  border-color: rgba(240, 182, 92, 0.45);
  color: #F0B65C;
  font-weight: 600;
  box-shadow: none;
}
#view-drill .pd-spot-grid .setup-pill--selected:hover {
  background: rgba(240, 182, 92, 0.14);
  border-color: rgba(240, 182, 92, 0.6);
  color: #F0B65C;
  filter: none;
}

/* Position chips — same palette, smaller footprint. */
#view-drill .pd-pos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
#view-drill .pd-pos-row .setup-position-pill {
  height: 30px;
  min-width: 44px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #bcbcbc;
  border-radius: 7px;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
#view-drill .pd-pos-row .setup-position-pill:hover:not(:disabled):not(.setup-position-pill--selected) {
  border-color: rgba(240, 182, 92, 0.3);
  background: #121212;
  color: #f0f0f0;
}
#view-drill .pd-pos-row .setup-position-pill--selected {
  background: rgba(240, 182, 92, 0.1);
  border-color: rgba(240, 182, 92, 0.45);
  color: #F0B65C;
  filter: none;
}

/* Hero + opponent share one section; dashed hairline between them. */
#view-drill .pd-opp-block {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#view-drill .pd-opp-block.is-visible {
  max-height: 200px;
  opacity: 1;
}

/* My Drills header + helper line. */
#view-drill .pd-mydrills {
  flex: 1;
  min-height: 0;
  margin-bottom: 0;
  border-bottom: 0;
}
#view-drill .pd-mydrills-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
#view-drill .pd-mydrills-count {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 10.5px;
  color: #555;
  font-variant-numeric: tabular-nums;
}
#view-drill .pd-mydrills-sub {
  margin: -4px 0 6px;
  font-size: 12px;
  color: #666;
  font-family: 'Inter', sans-serif;
}

/* Custom mode: hide GTO filters, let My Drills fill the panel. */
.drl-list-panel[data-range-source="custom"] .drl-setup-controls {
  display: none;
}
.drl-list-panel[data-range-source="custom"] .pd-mydrills {
  flex: 1 1 auto;
}

/* Panel scroll + padding hygiene. */
#view-drill .drl-list-panel {
  overflow-y: auto;
  padding-bottom: 10px;
}
#view-drill .drl-list-panel .drl-setup-controls {
  padding: 0 16px;
}
#view-drill .pd-mydrills { margin: 14px 16px 16px; }

/* ══════════════════════════════════════════════════════════ */
/* ── My Drills cards — flat charcoal, gold accent only ────── */
/* ══════════════════════════════════════════════════════════ */

#view-drill .vb-feat-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 210px);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 2px 2px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
#view-drill .vb-feat-row::-webkit-scrollbar { height: 6px; }
#view-drill .vb-feat-row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
}
#view-drill .vb-feat-row::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 182, 92, 0.35);
}

/* Custom mode = 2-row grid; stacks user's full library as a library view. */
#view-drill .vb-feat-row[data-mode="grid"] {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-auto-rows: max-content;
  gap: 10px;
  overflow-x: visible;
  overflow-y: auto;
  padding-bottom: 4px;
}

/* Card — true charcoal surface, hairline border, gold edge on
 * hover / active. Subtle translate, no 3D rotate, no glow halo. */
#view-drill .vb-spot {
  position: relative;
  scroll-snap-align: start;
  padding: 14px 16px 12px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  color: #e8e8e8;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
  overflow: hidden;
  text-align: left;
  appearance: none;
}
#view-drill .vb-spot::before { content: none; }
#view-drill .vb-spot:hover,
#view-drill .vb-spot:focus-visible {
  transform: translateY(-1px);
  background: #181818;
  border-color: rgba(240, 182, 92, 0.25);
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.8);
  outline: none;
}
#view-drill .vb-spot:focus-visible {
  outline: 2px solid rgba(240, 182, 92, 0.6);
  outline-offset: 2px;
}
#view-drill .vb-spot.is-active {
  background: #1a1a1a;
  border-color: rgba(240, 182, 92, 0.55);
  box-shadow: inset 0 0 0 1px rgba(240, 182, 92, 0.1);
}
#view-drill .vb-spot.is-active:hover {
  background: #1d1d1d;
  border-color: rgba(240, 182, 92, 0.7);
}

#view-drill .vb-spot-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
#view-drill .vb-spot-pos {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #808080;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 99px;
}
#view-drill .vb-spot-acc {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  font-feature-settings: 'tnum';
  letter-spacing: -0.01em;
  color: #F0B65C;
  /* solid gold — explicitly unset any inherited clip-path/gradient tricks */
  background: none;
  -webkit-text-fill-color: #F0B65C;
  background-clip: initial;
}
#view-drill .vb-spot-acc.is-dim {
  color: #484848;
  -webkit-text-fill-color: #484848;
  font-weight: 500;
}
#view-drill .vb-spot-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  line-height: 1.25;
  color: #f0f0f0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
#view-drill .vb-spot-foot {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #6e6e6e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}
#view-drill .vb-spot-foot .arrow {
  color: #555;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), color 220ms ease;
}
#view-drill .vb-spot:hover .vb-spot-foot .arrow {
  color: #F0B65C;
  transform: translateX(3px);
}

/* Custom-range delete corner (shows on hover/focus). */
#view-drill .vb-spot-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.55);
  color: #888;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#view-drill .vb-spot:hover .vb-spot-del,
#view-drill .vb-spot:focus-within .vb-spot-del { opacity: 1; }
#view-drill .vb-spot-del:hover {
  background: var(--color-wrong, #e05252);
  color: #fff;
  border-color: var(--color-wrong, #e05252);
}

@media (prefers-reduced-motion: reduce) {
  #view-drill .vb-spot,
  #view-drill .vb-spot:hover,
  #view-drill .vb-spot:focus-visible {
    transform: none;
    transition: background 180ms ease, border-color 180ms ease;
  }
}

/* Empty / no-results state. */
#view-drill .pd-empty-card {
  grid-column: 1 / -1;
  padding: 26px 20px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #777;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  text-align: center;
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
#view-drill .pd-empty-card strong {
  color: #e0e0e0;
  font-weight: 600;
  font-size: 13px;
}
#view-drill .pd-empty-card a {
  color: #F0B65C;
  text-decoration: none;
  font-weight: 600;
}
#view-drill .pd-empty-card a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════ */
/* ── Enlarged right-side stage (table + selectors + theme) ─ */
/* ══════════════════════════════════════════════════════════ */
/* Bumps the right column ~18% in width and proportionally scales
 * the oval, selectors, theme swatches, and start button. Higher
 * specificity (#view-drill prefix) overrides layout.css defaults
 * without touching the locked file. */

/* The right panel must ALWAYS fit the viewport — no scrollbar, no clipping.
 * We use clamp() + vh units so gaps, padding, and the oval scale smoothly
 * from small laptops (≈600px tall) to large monitors (≈1080px+).
 * Chip positions on the oval use %-based left/top, so resizing the felt
 * keeps chips in place automatically. */

#view-drill .drill-setup-body {
  width: 380px;
  gap: clamp(6px, 1.6vh, 22px);
  padding: clamp(10px, 2vh, 32px) 30px;
  justify-content: center;
  overflow: hidden;
}

/* Match the active-drill oval: aspect-ratio 620/350 + border-radius 46%.
 * Old value was a flat 2:1 hardcoded size; this makes the preview a true
 * thumbnail of what the user sees during an actual hand. */
#view-drill #drill-idle-table .pt-felt {
  width: clamp(220px, 28vw, 360px);
  aspect-ratio: 620 / 350;
  height: auto;
  border-radius: 46%;
}

#view-drill .dsc-name {
  font-size: clamp(16px, 1.8vw, 20px);
}

#view-drill .dsc-meta {
  font-size: 13px;
}

#view-drill .config-pill {
  font-size: 12px;
  padding: 4px 12px;
}

#view-drill .table-count-selector,
#view-drill .table-theme-selector {
  gap: 14px;
  padding: clamp(4px, 0.8vh, 12px) 0;
  margin-bottom: 0;
}

#view-drill .tc-label,
#view-drill .tt-label {
  font-size: 14px;
}

#view-drill .table-count-selector .tc-btn {
  width: clamp(34px, 4vh, 42px);
  height: clamp(34px, 4vh, 42px);
  font-size: 15px;
}

#view-drill .hand-count-selector .tc-btn {
  width: auto;
  min-width: clamp(34px, 4vh, 42px);
  height: clamp(34px, 4vh, 42px);
  padding: 0 12px;
  font-size: 15px;
}

#view-drill .hand-count-selector .tc-btn[data-hands="0"] {
  font-size: 22px;
}

#view-drill .table-theme-selector .tt-btn {
  width: clamp(40px, 4.5vw, 56px);
  height: clamp(28px, 3.5vh, 38px);
}

#view-drill .tt-btn-label {
  font-size: 10px;
}

#view-drill .btn-xl {
  height: clamp(42px, 5vh, 56px);
  font-size: 15px;
}

#view-drill .drill-blind-notice {
  font-size: 12px;
  max-width: 320px;
}

#view-drill .drill-setup-info {
  gap: clamp(2px, 0.5vh, 6px);
}

#view-drill .drill-setup-footer {
  gap: clamp(6px, 1vh, 12px);
}

/* ══════════════════════════════════════════════════════════ */
/* ── Multi-table layout: stop-drill bar & timer scaling ───── */
/* ══════════════════════════════════════════════════════════ */
/* The Stop Drill bar takes a full row at the bottom. In all table-count
 * modes its default 12px/20px padding wastes vertical space. Halve it. */
#view-drill #drill-controls {
  padding: 6px 14px;
}

/* ══════════════════════════════════════════════════════════ */
/* ── Action row: time-bank icon + action buttons ───────────── */
/* ══════════════════════════════════════════════════════════ */
/* The poker clock sits to the LEFT of FOLD/CALL/RAISE, like a real
 * online-poker time-bank pill on the side of the seat. Replaces the
 * old centred header pill above the table. */

#view-drill .ti-action-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 0 12px 8px;
  max-width: 620px;
  width: 100%;
  align-self: center;
}

/* When the timer lives inside the action row, undo the centring
 * defaults so the buttons take up the remaining width. */
#view-drill .ti-action-row .ti-action-buttons {
  flex: 1;
  padding: 0;
  max-width: none;
  width: auto;
  align-self: auto;
}

/* ── Time-bank icon (left of buttons) ───────────────────────── */
#view-drill .ti-timer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 4px 10px 6px;
  background: linear-gradient(180deg, #1c1c1c, #131313);
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  font-family: var(--font-mono, ui-monospace, monospace);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

/* Tiny clock-face glyph above the countdown. SVG is inlined as a
 * data URI so we don't add an asset request just for an icon. */
#view-drill .ti-timer::before {
  content: "";
  display: block;
  width: 13px;
  height: 13px;
  margin-bottom: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a9a9a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='13' r='8'/><path d='M12 9v4l2 2'/><path d='M9 2h6'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.85;
}

#view-drill .ti-timer-main {
  font-size: 15px;
  font-weight: 800;
  color: #e6e6e6;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

#view-drill .ti-timer-bank {
  font-size: 9px;
  font-weight: 600;
  color: #6a6a6a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-top: 2px;
  white-space: nowrap;
}

/* ≤ 5 s on main — amber warning */
#view-drill .ti-timer.warning {
  border-color: #8a6a1f;
  background: linear-gradient(180deg, #1d1608, #110a02);
}
#view-drill .ti-timer.warning .ti-timer-main { color: #f5c254; }
#view-drill .ti-timer.warning::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c254' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='13' r='8'/><path d='M12 9v4l2 2'/><path d='M9 2h6'/></svg>");
}

/* Bank mode — red pulse */
#view-drill .ti-timer.in-bank {
  border-color: #8b3a3a;
  background: linear-gradient(180deg, #2a1010, #1a0606);
  box-shadow: 0 0 12px rgba(224, 82, 82, 0.4);
  animation: ti-timer-pulse 1s ease-in-out infinite;
}
#view-drill .ti-timer.in-bank .ti-timer-main { color: #ff8080; }
#view-drill .ti-timer.in-bank .ti-timer-bank { color: #ffb0b0; }
#view-drill .ti-timer.in-bank::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8080' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='13' r='8'/><path d='M12 9v4l2 2'/><path d='M9 2h6'/></svg>");
}

@keyframes ti-timer-pulse {
  0%,100% { box-shadow: 0 0 12px rgba(224,82,82,0.35); }
  50%     { box-shadow: 0 0 18px rgba(224,82,82,0.6);  }
}

/* Multi-table scaling — keep the time bank readable at smaller felt sizes. */
#drill-active[data-tables="2"] .ti-timer {
  min-width: 52px;
  padding: 3px 8px 5px;
}
#drill-active[data-tables="2"] .ti-timer-main { font-size: 13px; }
#drill-active[data-tables="2"] .ti-timer-bank { font-size: 8px; }
#drill-active[data-tables="2"] .ti-timer::before { width: 11px; height: 11px; }

#drill-active[data-tables="3"] .ti-timer,
#drill-active[data-tables="4"] .ti-timer {
  min-width: 46px;
  padding: 3px 6px 4px;
}
#drill-active[data-tables="3"] .ti-timer-main,
#drill-active[data-tables="4"] .ti-timer-main { font-size: 11px; }
#drill-active[data-tables="3"] .ti-timer::before,
#drill-active[data-tables="4"] .ti-timer::before { width: 10px; height: 10px; }

/* ══════════════════════════════════════════════════════════ */
/* ── Clarity pass (2026-04-23) ───────────────────────────── */
/* ══════════════════════════════════════════════════════════ */

/* ── Active-table affordance ──────────────────────────────────
 * The focused table picks up a gold ring so the eye finds it
 * quickly in multi-table mode. All OTHER tables stay at full
 * brightness — the previous 78%-opacity dim made inactive tables
 * feel "off" (user feedback 2026-04-24). Hovering any table
 * flashes a subtle preview-ring so the user learns the affordance. */
#view-drill .table-instance {
  position: relative;
  border: 2px solid transparent;
  border-radius: 14px;
  transition: border-color 0.15s ease, box-shadow 0.18s ease;
}

/* Hover gives a hint ring without claiming focus. */
#drill-active:not([data-tables="1"]) .table-instance:hover:not(.ti-focused) {
  border-color: rgba(240,182,92,0.35);
}

/* Focused (clicked / keyboard-selected) table gets the full gold ring. */
#drill-active:not([data-tables="1"]) .table-instance.ti-focused {
  border-color: #F0B65C;
  box-shadow: 0 0 0 1px rgba(240,182,92,0.15),
              0 8px 28px rgba(240,182,92,0.12);
}

/* Top-right keyboard chip showing the table number. Hidden in
 * 1-table mode; in multi-table it's a quiet 1/2/3/4 hint that
 * matches the keyboard switch shortcut. */
#view-drill .ti-table-id {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 5;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: #999;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-mono, ui-monospace, monospace);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#drill-active:not([data-tables="1"]) .table-instance.ti-focused .ti-table-id {
  background: rgba(240,182,92,0.18);
  color: #F0B65C;
}

/* Awaiting-answer pulse removed per user feedback 2026-04-24 —
 * felt "dim" to them. We rely on the focused-ring + global
 * bank pill as the only multi-table attention affordances. */

/* ── Global session-bank pill (in #session-bar) ──────────────
 * Single source of truth for the shared time bank. Replaces the
 * per-table "BANK 12s" sub-labels. Stays neutral until ≤5s,
 * then turns amber, then red+pulsing when empty. */
#view-drill #session-bank-pill .stat-value {
  font-family: var(--font-mono, ui-monospace, monospace);
  letter-spacing: 0.04em;
  transition: color 0.15s ease;
}
#view-drill #session-bank-pill.is-low .stat-value {
  color: #f5c254;
}
#view-drill #session-bank-pill.is-empty .stat-value {
  color: #ff8080;
  animation: ti-timer-pulse 0.9s ease-in-out infinite;
  text-shadow: 0 0 6px rgba(224,82,82,0.45);
}

/* ── GTO answer overlay during the 1.5 s feedback window ─────
 * Replaces the tiny per-button mutation + freq bar combo as the
 * primary "what was the right move" surface. Sits on the felt
 * so the eye reads it without scanning down to the buttons. */
#view-drill .ti-gto-overlay {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%) translateY(8px);
  min-width: min(420px, 86%);
  max-width: 92%;
  padding: 10px 18px;
  background: rgba(8,8,8,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #e6e6e6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease,
              border-color 0.18s ease, box-shadow 0.18s ease;
  z-index: 6;
}
#view-drill .ti-gto-overlay.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#view-drill .ti-gto-overlay.correct {
  border-color: rgba(58,179,88,0.55);
  box-shadow: 0 6px 22px rgba(58,179,88,0.18);
}
#view-drill .ti-gto-overlay.wrong {
  border-color: rgba(224,82,82,0.55);
  box-shadow: 0 6px 22px rgba(224,82,82,0.18);
}
#view-drill .ti-gto-overlay .gto-good { color: #4dd58e; font-weight: 800; }
#view-drill .ti-gto-overlay .gto-bad  { color: #ff8a8a; font-weight: 800; }

/* Compact tweaks at 4-table density — overlay stays readable */
#drill-active[data-tables="4"] .ti-gto-overlay {
  font-size: 11px;
  padding: 7px 12px;
  bottom: 8px;
}

/* ══════════════════════════════════════════════════════════ */
/* ── Industry-standard 4-color deck (2026-04-23) ──────────── */
/* ══════════════════════════════════════════════════════════ */
/* Replaces the full-bleed per-suit card backgrounds with the
 * white-face + colored-rank convention used by GG Poker,
 * GTO Wizard, CoinPoker and PokerStars Deluxe. Dramatically
 * improves legibility at 3/4-table where cards shrink to
 * ~28×40 — the rank is no longer fighting a colored field.
 *
 * All rules scoped under #view-drill because layout.css (which
 * owns the base .playing-card styles) is a locked file.
 *
 * Color values matched to the Wizard / GG / Coin convention:
 *   Spades   #0A0A0A   Hearts    #D7263D
 *   Diamonds #2A5FC7   Clubs     #1F8F3A
 */

#view-drill .playing-card.suit-bg-s,
#view-drill .playing-card.suit-bg-h,
#view-drill .playing-card.suit-bg-d,
#view-drill .playing-card.suit-bg-c {
  background: #F5F1E8;                     /* warm off-white face */
  border: 1px solid #2A2A2A;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

/* Text-shadow was tuned for white-on-dark; on the light face it
 * muddies the colored rank. Strip it across every card glyph. */
#view-drill .playing-card .card-rank,
#view-drill .playing-card .card-suit,
#view-drill .playing-card .card-corner,
#view-drill .playing-card .card-corner-rank,
#view-drill .playing-card .card-corner-suit {
  text-shadow: none;
}

/* Suit glyph (and any rank tagged with a suit class) inherit the
 * canonical 4-color palette. */
#view-drill .playing-card .suit-spade   { color: #0A0A0A; }
#view-drill .playing-card .suit-heart   { color: #D7263D; }
#view-drill .playing-card .suit-diamond { color: #2A5FC7; }
#view-drill .playing-card .suit-club    { color: #1F8F3A; }

/* Large centred rank is rendered without a .suit-* class in some
 * code paths — key the colour off the outer .suit-bg-* class so
 * every rank stays in-suit regardless of render path. */
#view-drill .playing-card.suit-bg-s .card-rank { color: #0A0A0A; }
#view-drill .playing-card.suit-bg-h .card-rank { color: #D7263D; }
#view-drill .playing-card.suit-bg-d .card-rank { color: #2A5FC7; }
#view-drill .playing-card.suit-bg-c .card-rank { color: #1F8F3A; }

/* Feedback glows were red/green halos on dark cards; re-tune for
 * the light face so correct stays green-haloed and wrong red. */
#view-drill .playing-card.card-correct {
  box-shadow: 0 0 22px rgba(31,143,58,0.55),
              0 2px 6px rgba(0,0,0,0.35);
}
#view-drill .playing-card.card-wrong {
  box-shadow: 0 0 22px rgba(215,38,61,0.55),
              0 2px 6px rgba(0,0,0,0.35);
}

/* ══════════════════════════════════════════════════════════ */
/* ── Card-face polish: reveal corner pip (2026-04-23) ─────── */
/* ══════════════════════════════════════════════════════════ */
/* Real playing cards carry a corner pip — rank stacked above a
 * small suit glyph in the top-left — so you can identify the
 * card while it's fanned. The base styles (layout.css, locked)
 * hide the corner; this block reveals it in #view-drill and
 * tightens the centre rank/suit proportions so the card reads
 * like a GG Poker / Wizard card at every density. */

#view-drill .playing-card {
  padding: 5px 6px 6px;
  justify-content: center;
  /* subtle inner highlight + bottom shadow gives a "printed on
   * physical card stock" feel against the felt */
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5),
              inset 0 -1px 0 rgba(0,0,0,0.06),
              0 2px 6px rgba(0,0,0,0.35);
}

#view-drill .playing-card .card-corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  position: absolute;
  top: 4px;
  left: 6px;
  gap: 0;
  z-index: 2;
  pointer-events: none;
}

#view-drill .playing-card .card-corner-rank {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
#view-drill .playing-card .card-corner-suit {
  font-size: 11px;
  line-height: 1;
  margin-top: -1px;
}

/* Corner colour follows the outer .suit-bg-* class — corner
 * spans carry no suit class of their own. */
#view-drill .playing-card.suit-bg-s .card-corner { color: #0A0A0A; }
#view-drill .playing-card.suit-bg-h .card-corner { color: #D7263D; }
#view-drill .playing-card.suit-bg-d .card-corner { color: #2A5FC7; }
#view-drill .playing-card.suit-bg-c .card-corner { color: #1F8F3A; }

/* Re-centre and proportion the big rank/suit so the corner has
 * room without the rank feeling cramped. */
#view-drill .playing-card .card-rank {
  font-size: 46px;
  line-height: 0.95;
  margin-top: 6px;
}
#view-drill .playing-card .card-suit {
  font-size: 24px;
  margin-top: -2px;
}

/* Multi-table rank/suit sizing.
 *
 * IMPORTANT: #view-drill .playing-card .card-rank has HIGHER
 * specificity than the .mt-count-N .card-rank rules in layout.css,
 * so we must re-declare the multi-table sizes here or the 46 px
 * base bleeds into 2- and 4-table — cards then overflow their
 * shrunken boxes and the rank collides with the corner (bug
 * reported 2026-04-24).
 *
 * Values mirror layout.css mt-count-N rank/suit sizes. */
#drill-active[data-tables="2"] .playing-card .card-rank { font-size: 22px; margin-top: 2px; }
#drill-active[data-tables="2"] .playing-card .card-suit { font-size: 12px; }
#drill-active[data-tables="2"] .playing-card .card-corner-rank { font-size: 11px; }
#drill-active[data-tables="2"] .playing-card .card-corner-suit { font-size: 8px; }
#drill-active[data-tables="2"] .playing-card .card-corner      { top: 3px; left: 4px; }

#drill-active[data-tables="4"] .playing-card .card-rank { font-size: 18px; margin-top: 0; }
#drill-active[data-tables="4"] .playing-card .card-suit { font-size: 11px; }
/* At 4-table the card is ~30 × 42 px — no room for a corner pip
 * without overlapping the big rank. Hide it; big rank + suit still
 * encodes everything the user needs. */
#drill-active[data-tables="4"] .playing-card .card-corner { display: none; }

/* ══════════════════════════════════════════════════════════ */
/* ── New table themes (2026-04-23) ──────────────────────── */
/* ══════════════════════════════════════════════════════════ */
/* Two new poker-table aesthetics added alongside Midnight /
 * Classic / 3D variants:
 *
 *   Royale — burgundy velvet felt + warm gold rail. Evokes a
 *            high-stakes Vegas card room. Gold pot, ivory dealer
 *            button, burgundy card backs with gold crest.
 *
 *   Aurora — deep teal felt + silver-pearl rail. Cool, modern,
 *            online-poker-night vibe (think PokerStars Deluxe
 *            Winter theme). Pearl pot, silver dealer, teal card
 *            backs with ice-white accent.
 *
 * Theme system is the same body[data-table-theme="..."] pattern
 * as Classic — all rules here mirror that structure so they stay
 * drop-in compatible with the existing theme switcher. */

/* ── THEME: Royale (burgundy & gold) ─────────────────────── */
body[data-table-theme="royale"] .pt-felt {
  background: radial-gradient(ellipse at center,
                              #7A2030 0%,
                              #4C1220 55%,
                              #2E0810 100%);
  box-shadow: inset 0 0 0 6px #C9A961,
              inset 0 0 0 7px rgba(0,0,0,0.35),
              inset 0 0 40px rgba(0,0,0,0.45),
              0 8px 30px rgba(0,0,0,0.55);
}
body[data-table-theme="royale"] .pt-felt::before {
  background:
    radial-gradient(circle at 28% 20%, rgba(255,235,180,0.08), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,0.25),       transparent 55%);
  opacity: 1;
}
body[data-table-theme="royale"] .pt-pot-bb {
  color: #F3D68A;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
body[data-table-theme="royale"] .pt-pot-label { color: rgba(243,214,138,0.7); }

body[data-table-theme="royale"] .pt-chip {
  background: radial-gradient(circle at 35% 30%, #2a0d14, #120406);
  border: 2px solid rgba(201,169,97,0.45);
  box-shadow: 0 2px 8px rgba(0,0,0,0.55);
}
body[data-table-theme="royale"] .pt-chip-pos   { color: #E8D4A0; }
body[data-table-theme="royale"] .pt-chip-stack { color: rgba(243,214,138,0.6); }

body[data-table-theme="royale"] .pt-chip-hero {
  background: radial-gradient(circle at 35% 30%, #F3D68A, #C9A961);
  border-color: #9A7A3C;
  box-shadow: 0 0 18px rgba(201,169,97,0.55), 0 2px 8px rgba(0,0,0,0.55);
}
body[data-table-theme="royale"] .pt-chip-hero .pt-chip-pos   { color: #2E0810; font-weight: 800; }
body[data-table-theme="royale"] .pt-chip-hero .pt-chip-stack { color: rgba(46,8,16,0.55); }

body[data-table-theme="royale"] .pt-chip-villain {
  background: radial-gradient(circle at 35% 30%, #8A1F2D, #3F0A12);
  border-color: #C9A961;
}
body[data-table-theme="royale"] .pt-chip-villain .pt-chip-pos   { color: #F3D68A; font-weight: 800; }
body[data-table-theme="royale"] .pt-chip-villain .pt-chip-stack { color: rgba(243,214,138,0.65); }

body[data-table-theme="royale"] .pt-dealer {
  background: radial-gradient(circle at 35% 30%, #fffbe8, #d9cf9c);
  color: #5B1420;
  border: 1px solid #9A7A3C;
}

body[data-table-theme="royale"] .pt-card-back {
  background:
    repeating-linear-gradient( 45deg, #6A1A26 0 6px, #4C1220 6px 12px),
    radial-gradient(circle at center, #8A1F2D, #3F0A12);
  border: 1px solid #C9A961;
  box-shadow: 0 0 0 1px rgba(201,169,97,0.25), 0 2px 5px rgba(0,0,0,0.55);
}

/* Theme swatch for the idle selector */
.tt-btn-royale {
  background: radial-gradient(circle at 35% 30%, #7A2030, #2E0810);
  border-color: #C9A961 !important;
}
.tt-btn-royale::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px #C9A961;
  pointer-events: none;
}

/* ── THEME: Aurora (teal & pearl) ─────────────────────────── */
body[data-table-theme="aurora"] .pt-felt {
  background: radial-gradient(ellipse at center,
                              #145A6B 0%,
                              #0A3B45 55%,
                              #041A20 100%);
  box-shadow: inset 0 0 0 6px #C0CED5,
              inset 0 0 0 7px rgba(0,0,0,0.35),
              inset 0 0 40px rgba(0,0,0,0.45),
              0 8px 30px rgba(0,0,0,0.55);
}
body[data-table-theme="aurora"] .pt-felt::before {
  /* subtle aurora shimmer — two soft washes that don't move
   * (stays readable; no motion for prefers-reduced-motion). */
  background:
    radial-gradient(circle at 20% 15%, rgba(160,220,255,0.10), transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(120,80,200,0.14),  transparent 55%);
  opacity: 1;
}
body[data-table-theme="aurora"] .pt-pot-bb {
  color: #E8F0F3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
body[data-table-theme="aurora"] .pt-pot-label { color: rgba(232,240,243,0.7); }

body[data-table-theme="aurora"] .pt-chip {
  background: radial-gradient(circle at 35% 30%, #0D2E36, #041419);
  border: 2px solid rgba(192,206,213,0.45);
  box-shadow: 0 2px 8px rgba(0,0,0,0.55);
}
body[data-table-theme="aurora"] .pt-chip-pos   { color: #D6E4EA; }
body[data-table-theme="aurora"] .pt-chip-stack { color: rgba(214,228,234,0.6); }

body[data-table-theme="aurora"] .pt-chip-hero {
  background: radial-gradient(circle at 35% 30%, #EAF2F6, #B8C5CB);
  border-color: #7E8C94;
  box-shadow: 0 0 18px rgba(192,206,213,0.55), 0 2px 8px rgba(0,0,0,0.55);
}
body[data-table-theme="aurora"] .pt-chip-hero .pt-chip-pos   { color: #082229; font-weight: 800; }
body[data-table-theme="aurora"] .pt-chip-hero .pt-chip-stack { color: rgba(8,34,41,0.55); }

body[data-table-theme="aurora"] .pt-chip-villain {
  background: radial-gradient(circle at 35% 30%, #8A1F2D, #3F0A12);
  border-color: #C0CED5;
}
body[data-table-theme="aurora"] .pt-chip-villain .pt-chip-pos   { color: #F0D2D8; font-weight: 800; }
body[data-table-theme="aurora"] .pt-chip-villain .pt-chip-stack { color: rgba(240,210,216,0.65); }

body[data-table-theme="aurora"] .pt-dealer {
  background: radial-gradient(circle at 35% 30%, #ffffff, #B8C5CB);
  color: #082229;
  border: 1px solid #7E8C94;
}

body[data-table-theme="aurora"] .pt-card-back {
  background:
    repeating-linear-gradient(135deg, #0F4855 0 6px, #0A3B45 6px 12px),
    radial-gradient(circle at center, #145A6B, #041A20);
  border: 1px solid #C0CED5;
  box-shadow: 0 0 0 1px rgba(192,206,213,0.25), 0 2px 5px rgba(0,0,0,0.55);
}

/* Theme swatch for the idle selector */
.tt-btn-aurora {
  background: radial-gradient(circle at 35% 30%, #145A6B, #041A20);
  border-color: #C0CED5 !important;
}
.tt-btn-aurora::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px #C0CED5;
  pointer-events: none;
}
