/* ==========================================================================
   DECKHAND · Shared Triton Component Library (Zero-Drift)
   包含：全局导航、底部操作坞 & 7类机械键帽(方案A)、席位卡片(14态)、
         公共牌与多重底池(12态)、牌桌台呢与规范看板组件
   ========================================================================== */

@layer components {
  /* ==================== 1. Global Top HUD Header ==================== */
  .dh-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 60px;
    padding-block: calc(6px + env(safe-area-inset-top, 0px)) 6px;
    padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
    background: rgba(9, 12, 18, 0.94);
    border-block-end: 1px solid var(--dh-border-subtle);
    backdrop-filter: blur(16px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 12px;
  }

  .dh-header-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    min-width: 0;
  }

  .dh-brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .dh-brand-title {
    font-family: var(--dh-font-headline);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--dh-text-strong);
  }

  .dh-badge-triton {
    font-family: var(--dh-font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--dh-gold-bright);
    border: 1px solid rgba(212, 175, 55, 0.38);
    text-transform: uppercase;
    white-space: nowrap;
  }

  .dh-divider-v {
    width: 1px;
    height: 16px;
    background: #222d42;
    flex-shrink: 0;
  }

  .dh-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border-radius: 10px;
    background: var(--dh-surface-trough);
    border: 1px solid var(--dh-border-subtle);
  }

  .dh-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-inline-size: var(--dh-touch-min);
    min-block-size: var(--dh-touch-min);
    padding-inline: 12px;
    border-radius: 7px;
    font-family: var(--dh-font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--dh-text-subtle);
    transition: color var(--dh-dur-fast) var(--dh-ease), background var(--dh-dur-fast) var(--dh-ease), transform var(--dh-dur-fast) var(--dh-ease);
    white-space: nowrap;
  }

  @media (hover: hover) {
    .dh-nav-link:hover {
      color: var(--dh-text-secondary);
    }
  }

  .dh-nav-link:active {
    transform: scale(0.97);
  }

  .dh-nav-link[aria-current="page"] {
    background: #18263d;
    color: var(--dh-gold-bright);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .dh-pill-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    background: #0d1422;
    border: 1px solid #1e2a3e;
    font-family: var(--dh-font-mono);
    font-size: 12px;
    color: var(--dh-text-secondary);
    white-space: nowrap;
  }

  .dh-pill-meta .ante-chip {
    font-size: 10px;
    font-weight: 700;
    color: var(--dh-gold);
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 1px 5px;
    border-radius: 4px;
  }

  .dh-street-track {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 7px;
    background: #0c1017;
    border: 1px solid #1a2333;
    font-family: var(--dh-font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
  }

  .dh-street-step {
    padding: 3px 6px;
    border-radius: 4px;
    color: var(--dh-text-dim);
    white-space: nowrap;
  }

  .dh-street-step.is-active {
    background: var(--dh-gold);
    color: var(--dh-text-on-gold);
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .dh-street-step.is-active::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dh-text-on-gold);
  }

  .dh-street-sep {
    color: #253245;
    padding-inline: 2px;
  }

  .dh-segmented {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border-radius: 10px;
    background: var(--dh-surface-trough);
    border: 1px solid #1b2538;
  }

  .dh-seg-btn {
    border: 0;
    background: transparent;
    min-inline-size: var(--dh-touch-min);
    min-block-size: var(--dh-touch-min);
    padding-inline: 12px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--dh-font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--dh-text-subtle);
    cursor: pointer;
    transition: all var(--dh-dur-fast) var(--dh-ease);
    white-space: nowrap;
  }

  @media (hover: hover) {
    .dh-seg-btn:hover:not(:disabled) {
      color: var(--dh-text-secondary);
    }
  }

  .dh-seg-btn:active:not(:disabled) {
    transform: scale(0.97);
  }

  .dh-seg-btn[aria-pressed="true"] {
    background: #18263d;
    color: var(--dh-gold-bright);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  /* ==================== 2. Dock Chassis & Troughs ==================== */
  .triton-dock-shell {
    box-sizing: border-box;
    background: var(--dh-surface-dock);
    border: 1px solid var(--dh-border-gold);
    border-radius: var(--dh-radius-dock);
    box-shadow: var(--dh-shadow-dock);
    backdrop-filter: blur(24px);
    position: relative;
  }

  .triton-dock-shell--base {
    width: 100%;
    max-width: var(--dh-dock-base-width);
    min-height: 64px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .triton-dock-shell--wide {
    width: 100%;
    max-width: var(--dh-dock-expanded-width);
    min-height: 64px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .triton-dock-shell--expanded {
    width: 100%;
    max-width: var(--dh-dock-expanded-width);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: var(--dh-font-mono);
  }

  .triton-dock-shell--emerald {
    border-color: rgba(29, 237, 124, 0.36);
  }

  .triton-dock-shell--muted {
    background: var(--dh-surface-dock-muted);
    border: 1px solid rgba(45, 53, 69, 0.55);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    opacity: 0.82;
  }

  .triton-trough {
    background: var(--dh-surface-trough);
    border: 1px solid var(--dh-border-trough);
    border-radius: var(--dh-radius-key);
    box-shadow: var(--dh-shadow-trough);
  }

  .triton-trough--active-gold {
    border-color: rgba(212, 175, 55, 0.72);
    box-shadow: var(--dh-shadow-trough), 0 0 16px rgba(212, 175, 55, 0.2);
  }

  .dock-seat-badge {
    width: 158px;
    height: var(--dh-key-height);
    padding-inline: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }


  .dock-seat-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .dock-seat-id {
    font-family: var(--dh-font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--dh-text-primary);
    letter-spacing: 0.04em;
    white-space: nowrap;
  }

  .dock-seat-name {
    font-size: 10px;
    color: var(--dh-text-subtle);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dock-seat-stack {
    font-family: var(--dh-font-mono);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--dh-gold);
    white-space: nowrap;
  }


  .dock-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--dh-touch-gap);
    flex: 1;
    min-width: 0;
  }

  .dock-close-btn {
    position: absolute;
    top: -12px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #141822;
    border: 1px solid var(--dh-border-strong);
    color: #8495ad;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.72);
    cursor: pointer;
    z-index: 10;
    transition: all var(--dh-dur-fast) var(--dh-ease);
  }

  /* 视觉保持 36px 骑框圆钮（内框 34px），向四周扩展 -7px 不可见触控热区达到 48×48px */
  .dock-close-btn::after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: -7px;
    border-radius: 50%;
  }

  @media (hover: hover) {
    .dock-close-btn:hover:not(:disabled) {
      color: var(--dh-text-strong);
      border-color: rgba(212, 175, 55, 0.55);
    }
  }

  .dock-close-btn:active:not(:disabled) {
    transform: translateY(1px) scale(0.94);
  }

  /* ==================== 3. Option A Mechanical Keycap Family ==================== */
  .act-btn-mech,
  .act-btn-mech-selected,
  .act-btn-mech-fold,
  .act-btn-mech-call,
  .act-btn-mech-raise,
  .act-btn-mech-gold,
  .act-btn-mech-danger,
  .act-btn-mech-danger-strong,
  .act-btn-mech-emerald {
    position: relative;
    min-inline-size: var(--dh-touch-primary);
    min-block-size: var(--dh-touch-primary);
    height: var(--dh-key-height);
    padding-inline: 16px;
    border-radius: var(--dh-radius-key);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition:
      transform var(--dh-dur-fast) var(--dh-ease),
      background var(--dh-dur-fast) var(--dh-ease),
      border-color var(--dh-dur-fast) var(--dh-ease),
      box-shadow var(--dh-dur-fast) var(--dh-ease),
      filter var(--dh-dur-fast) var(--dh-ease);
  }

  /* Generic metallic bevel (presets, steppers) */
  .act-btn-mech {
    background: linear-gradient(180deg, #18202c 0%, #0e141e 100%);
    border: 1px solid var(--dh-border-trough);
    color: var(--dh-text-secondary);
    box-shadow: var(--dh-shadow-mech);
  }
  @media (hover: hover) {
    .act-btn-mech:hover:not(:disabled) {
      background: linear-gradient(180deg, #1e2736 0%, #121926 100%);
      border-color: rgba(212, 175, 55, 0.42);
      transform: translateY(-1px);
      box-shadow: var(--dh-shadow-mech-hover);
    }
  }
  .act-btn-mech:active:not(:disabled) {
    transform: translateY(1px) scale(0.98);
    background: #0b1018;
    box-shadow: var(--dh-shadow-mech-active);
  }

  /* Selected preset key */
  .act-btn-mech-selected {
    background: linear-gradient(180deg, #1e2738 0%, #131b29 100%);
    border: 2px solid var(--dh-gold);
    color: var(--dh-gold);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -1px 0 rgba(0, 0, 0, 0.6),
      0 0 20px rgba(212, 175, 55, 0.28);
  }
  .act-btn-mech-selected:active:not(:disabled) {
    transform: translateY(1px) scale(0.98);
    box-shadow: var(--dh-shadow-mech-active);
  }

  /* Fold neutral */
  .act-btn-mech-fold {
    background: linear-gradient(180deg, #161d29 0%, #0d121b 100%);
    border: 1px solid var(--dh-border-fold);
    color: #8495ad;
    font-family: var(--dh-font-headline);
    font-weight: 600;
    letter-spacing: 0.04em;
    box-shadow: var(--dh-shadow-mech);
  }
  @media (hover: hover) {
    .act-btn-mech-fold:hover:not(:disabled) {
      background: linear-gradient(180deg, #1d2534 0%, #121824 100%);
      border-color: var(--dh-border-strong);
      color: var(--dh-text-primary);
      transform: translateY(-1px);
    }
  }
  .act-btn-mech-fold:active:not(:disabled) {
    transform: translateY(1px) scale(0.98);
    box-shadow: var(--dh-shadow-mech-active);
  }

  /* Call / Check */
  .act-btn-mech-call {
    background: linear-gradient(180deg, #182233 0%, #101724 100%);
    border: 1px solid var(--dh-border-call);
    color: var(--dh-text-strong);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.65),
      0 3px 8px rgba(0, 0, 0, 0.5);
  }
  @media (hover: hover) {
    .act-btn-mech-call:hover:not(:disabled) {
      background: linear-gradient(180deg, #1f2b40 0%, #141d2d 100%);
      border-color: rgba(212, 175, 55, 0.42);
      transform: translateY(-1px);
    }
  }
  .act-btn-mech-call:active:not(:disabled) {
    transform: translateY(1px) scale(0.98);
    box-shadow: var(--dh-shadow-mech-active);
  }

  /* Option A Base Raise / Bet (Dark Gold Obsidian — Drawer Entry / Standard Bet) */
  .act-btn-mech-raise {
    background: linear-gradient(180deg, #282112 0%, #151109 100%);
    border: 1px solid rgba(212, 175, 55, 0.6);
    color: var(--dh-gold-bright);
    box-shadow:
      inset 0 1px 0 rgba(243, 207, 122, 0.24),
      inset 0 -1px 0 rgba(0, 0, 0, 0.72),
      0 3px 10px rgba(0, 0, 0, 0.55),
      0 0 16px rgba(212, 175, 55, 0.14);
  }
  @media (hover: hover) {
    .act-btn-mech-raise:hover:not(:disabled) {
      background: linear-gradient(180deg, #332a17 0%, #1c160b 100%);
      border-color: var(--dh-gold-bright);
      transform: translateY(-1px);
      box-shadow:
        inset 0 1px 0 rgba(243, 207, 122, 0.34),
        inset 0 -1px 0 rgba(0, 0, 0, 0.72),
        0 5px 14px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(212, 175, 55, 0.22);
    }
  }
  .act-btn-mech-raise:active:not(:disabled) {
    transform: translateY(1px) scale(0.98);
    box-shadow: var(--dh-shadow-mech-active);
  }

  /* Final Commit Only: Full Champagne Gold Metallic Gradient */
  .act-btn-mech-gold {
    background: linear-gradient(90deg, #d4af37 0%, #f3cf7a 50%, #d4af37 100%);
    border: 1px solid var(--dh-gold);
    color: var(--dh-text-on-gold);
    font-family: var(--dh-font-headline);
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.38),
      inset 0 -1px 0 rgba(120, 84, 12, 0.55),
      0 0 22px rgba(212, 175, 55, 0.42),
      0 4px 10px rgba(0, 0, 0, 0.5);
  }
  @media (hover: hover) {
    .act-btn-mech-gold:hover:not(:disabled) {
      filter: brightness(1.08);
      transform: translateY(-1px);
    }
  }
  .act-btn-mech-gold:active:not(:disabled) {
    transform: translateY(1px) scale(0.98);
    box-shadow: var(--dh-shadow-mech-active);
  }

  /* All-In Danger Obsidian Crimson */
  .act-btn-mech-danger {
    background: linear-gradient(180deg, #2b131b 0%, #17090e 100%);
    border: 1px solid rgba(225, 29, 72, 0.6);
    color: var(--dh-crimson-soft);
    box-shadow:
      inset 0 1px 0 rgba(255, 180, 190, 0.16),
      inset 0 -1px 0 rgba(0, 0, 0, 0.72),
      0 3px 10px rgba(0, 0, 0, 0.55),
      0 0 14px rgba(244, 63, 94, 0.16);
  }
  @media (hover: hover) {
    .act-btn-mech-danger:hover:not(:disabled) {
      background: linear-gradient(180deg, #381722 0%, #1f0c13 100%);
      border-color: var(--dh-crimson-bright);
      transform: translateY(-1px);
    }
  }
  .act-btn-mech-danger:active:not(:disabled) {
    transform: translateY(1px) scale(0.98);
    box-shadow: var(--dh-shadow-mech-active);
  }

  .act-btn-mech-danger-strong {
    background: linear-gradient(180deg, #3b1521 0%, #1e0a11 100%);
    border: 2px solid var(--dh-crimson-bright);
    color: var(--dh-crimson-pale);
    box-shadow:
      inset 0 1px 0 rgba(255, 190, 200, 0.22),
      inset 0 -1px 0 rgba(0, 0, 0, 0.75),
      0 0 22px rgba(244, 63, 94, 0.34),
      0 4px 12px rgba(0, 0, 0, 0.6);
  }
  @media (hover: hover) {
    .act-btn-mech-danger-strong:hover:not(:disabled) {
      filter: brightness(1.08);
      transform: translateY(-1px);
    }
  }
  .act-btn-mech-danger-strong:active:not(:disabled) {
    transform: translateY(1px) scale(0.98);
    box-shadow: var(--dh-shadow-mech-active);
  }

  /* Emerald Closure (Showdown single winner / Resume) */
  .act-btn-mech-emerald {
    background: linear-gradient(180deg, #112c22 0%, #0a1b14 100%);
    border: 1px solid rgba(29, 237, 124, 0.5);
    color: var(--dh-emerald-bright);
    font-family: var(--dh-font-headline);
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow:
      inset 0 1px 0 rgba(120, 255, 190, 0.18),
      inset 0 -1px 0 rgba(0, 0, 0, 0.7),
      0 3px 10px rgba(0, 0, 0, 0.55),
      0 0 14px rgba(29, 237, 124, 0.14);
  }
  @media (hover: hover) {
    .act-btn-mech-emerald:hover:not(:disabled) {
      background: linear-gradient(180deg, #16382b 0%, #0e241b 100%);
      border-color: var(--dh-emerald);
      transform: translateY(-1px);
    }
  }
  .act-btn-mech-emerald:active:not(:disabled) {
    transform: translateY(1px) scale(0.98);
    box-shadow: var(--dh-shadow-mech-active);
  }

  .btn-verb {
    font-family: var(--dh-font-headline);
    font-weight: 700;
    letter-spacing: 0.03em;
  }

  .btn-amt-gold {
    font-family: var(--dh-font-mono);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--dh-gold);
  }

  .btn-amt-pale-gold {
    font-family: var(--dh-font-mono);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--dh-gold-pale);
  }

  .btn-amt-crimson {
    font-family: var(--dh-font-mono);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--dh-crimson-pale);
  }

  .btn-caret {
    font-size: 10px;
    color: rgba(212, 175, 55, 0.85);
    line-height: 1;
  }

  /* Expanded Raise Drawer Layout */
  .raise-preset-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }

  .raise-preset-btn {
    height: auto;
    min-height: var(--dh-preset-height);
    padding: 10px 8px;
    flex-direction: column;
    gap: 5px;
  }

  .raise-preset-label {
    font-family: var(--dh-font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
    color: var(--dh-text-subtle);
  }

  .act-btn-mech-selected .raise-preset-label {
    color: var(--dh-gold-soft);
    font-weight: 700;
  }

  .raise-preset-btn--allin .raise-preset-label {
    color: var(--dh-gold);
    font-weight: 700;
  }

  .raise-preset-amt {
    font-family: var(--dh-font-mono);
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--dh-text-secondary);
  }

  .act-btn-mech-selected .raise-preset-amt {
    color: var(--dh-gold);
  }

  .raise-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block-start: 10px;
    border-block-start: 1px solid #18202d;
  }

  .raise-tuner-group {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .stepper-trough {
    display: inline-flex;
    align-items: center;
    padding: 4px;
  }

  .step-btn {
    width: var(--dh-key-height);
    height: var(--dh-key-height);
    padding: 0;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #9cb1ce;
  }

  .step-btn--gold {
    color: var(--dh-gold);
  }

  .stepper-readout {
    min-width: 96px;
    padding-inline: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .stepper-sub {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--dh-text-subtle);
    text-transform: uppercase;
    line-height: 1;
  }

  .stepper-sub--active {
    color: var(--dh-gold-soft);
  }

  .stepper-val {
    font-family: var(--dh-font-mono);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--dh-gold);
    line-height: 1;
    white-space: nowrap;
  }

  .unit-trough {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    background: var(--dh-surface-trough);
    border: 1px solid #1b2538;
    border-radius: var(--dh-radius-key);
  }

  .unit-chip-btn {
    min-inline-size: var(--dh-touch-primary);
    height: var(--dh-touch-primary);
    padding-inline: 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--dh-text-subtle);
    font-family: var(--dh-font-mono);
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dh-dur-fast) var(--dh-ease);
    white-space: nowrap;
  }

  @media (hover: hover) {
    .unit-chip-btn:hover:not(:disabled) {
      color: var(--dh-text-strong);
    }
  }

  .unit-chip-btn:active:not(:disabled) {
    transform: translateY(1px) scale(0.97);
  }

  .unit-chip-btn.is-active {
    background: #18263d;
    color: var(--dh-gold);
    font-weight: 700;
    border-color: rgba(212, 175, 55, 0.34);
  }

  .raise-commit-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  /* ==================== 4. Poker Table, Cards & Multi-Pot ==================== */
  .felt-triton {
    background-color: #060b14;
    background-image:
      radial-gradient(ellipse at 50% 50%, var(--dh-felt-center) 0%, var(--dh-felt-mid) 58%, var(--dh-felt-edge) 100%),
      radial-gradient(rgba(212, 175, 55, 0.07) 0.65px, transparent 0.65px);
    background-size: 100% 100%, 22px 22px;
  }

  .table-rail-triton {
    box-shadow:
      inset 0 0 0 1.5px rgba(212, 175, 55, 0.35),
      inset 0 0 0 3.5px rgba(7, 11, 18, 0.95),
      inset 0 20px 48px -12px rgba(0, 0, 0, 0.96),
      0 24px 64px -12px rgba(0, 0, 0, 0.98),
      0 0 0 12px var(--dh-rail-outer),
      0 0 0 14px var(--dh-rail-bevel),
      0 0 0 15px rgba(212, 175, 55, 0.35);
  }

  /* Crisp Light Playing Card inside Dark Table (component-specific light/dark theme) */
  .poker-card {
    color-scheme: only light;
    width: 56px;
    height: 80px;
    background: #ffffff;
    color: #0f172a;
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    transition: transform var(--dh-dur-fast) var(--dh-ease), box-shadow var(--dh-dur-fast) var(--dh-ease);
  }

  .poker-card--sm {
    width: 42px;
    height: 60px;
    padding: 4px;
    border-radius: 6px;
  }

  .poker-card--red {
    color: #e11d48;
  }

  .poker-card--black {
    color: #0f172a;
  }

  .poker-card--highlight {
    box-shadow: 0 0 0 2px var(--dh-gold), 0 0 20px rgba(212, 175, 55, 0.55), 0 8px 18px rgba(0, 0, 0, 0.7);
    transform: translateY(-3px);
  }

  .poker-card--dim {
    opacity: 0.42;
    filter: saturate(0.4);
  }

  .poker-card--empty {
    color-scheme: only dark;
    background: rgba(12, 14, 18, 0.62);
    color: var(--dh-text-dim);
    border: 1px dashed rgba(104, 119, 143, 0.48);
    align-items: center;
    justify-content: center;
    gap: 3px;
    box-shadow: none;
  }

  .poker-card--void {
    color-scheme: only dark;
    background: rgba(24, 10, 14, 0.75);
    color: var(--dh-crimson-soft);
    border: 1px dashed rgba(244, 63, 94, 0.55);
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: none;
  }

  .card-corner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-family: var(--dh-font-headline);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
  }

  .poker-card--sm .card-corner {
    font-size: 11px;
  }

  .card-corner--bottom {
    transform: rotate(180deg);
  }

  .card-pip {
    align-self: center;
    font-size: 20px;
    line-height: 1;
  }

  .poker-card--sm .card-pip {
    font-size: 15px;
  }

  .pot-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: var(--dh-radius-pill);
    background: rgba(12, 14, 18, 0.92);
    border: 1px solid rgba(212, 175, 55, 0.32);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
  }

  .pot-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dh-gold);
  }

  .pot-pill-label {
    font-family: var(--dh-font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--dh-text-muted);
    text-transform: uppercase;
  }

  .pot-pill-value {
    font-family: var(--dh-font-mono);
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--dh-gold-bright);
    letter-spacing: -0.02em;
  }

  .pot-sub-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(9, 13, 20, 0.92);
    border: 1px solid var(--dh-border-trough);
    font-family: var(--dh-font-mono);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .pot-sub-pill--main {
    border-color: rgba(212, 175, 55, 0.45);
  }

  .pot-sub-pill--side {
    border-color: rgba(96, 165, 250, 0.4);
  }

  /* ==================== 4b. Tournament Blind Clock Corner HUD & Floor Dialog ==================== */
  .tclock-card {
    display: inline-flex;
    flex-direction: column;
    gap: clamp(0.45rem, 0.3rem + 0.25vw, 0.75rem);
    min-inline-size: clamp(18.5rem, 12.5rem + 9vw, 27.5rem);
    padding: clamp(0.7rem, 0.5rem + 0.35vw, 1.1rem) clamp(0.95rem, 0.7rem + 0.5vw, 1.4rem);
    border-radius: 12px;
    background: rgba(10, 15, 24, 0.92);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    font-family: var(--dh-font-mono);
    color: var(--dh-text-primary);
    transition: border-color var(--dh-dur-fast) var(--dh-ease), transform var(--dh-dur-fast) var(--dh-ease);
  }

  .tclock-card--cash {
    flex-direction: row;
    align-items: center;
    min-inline-size: auto;
    gap: clamp(0.6rem, 0.45rem + 0.3vw, 0.9rem);
    padding: clamp(0.65rem, 0.45rem + 0.3vw, 0.95rem) clamp(0.95rem, 0.7rem + 0.45vw, 1.35rem);
  }

  .tclock-card--btn {
    cursor: pointer;
    text-align: left;
  }

  @media (hover: hover) {
    .tclock-card--btn:hover {
      border-color: rgba(212, 175, 55, 0.58);
    }
  }

  .tclock-card--btn:active {
    transform: translateY(1px) scale(0.98);
  }

  .tclock-card--btn:focus-visible {
    outline: 2px solid var(--dh-gold-bright);
    outline-offset: 2px;
  }

  .tclock-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: clamp(0.85rem, 0.55rem + 0.6vw, 1.5rem);
    width: 100%;
  }

  .tclock-row--top {
    align-items: center;
  }

  .tclock-row--sub {
    padding-top: clamp(0.4rem, 0.25rem + 0.2vw, 0.6rem);
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }

  .tclock-cap-blinds,
  .tclock-cap-clock {
    display: inline-flex;
    align-items: baseline;
    gap: clamp(0.35rem, 0.25rem + 0.2vw, 0.6rem);
    white-space: nowrap;
  }

  .tclock-cap-blinds {
    align-items: center;
  }

  .tclock-cap-lvl {
    display: inline-flex;
    align-items: center;
    padding: 0.14em 0.46em;
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid rgba(212, 175, 55, 0.36);
    font-size: clamp(0.875rem, 0.7rem + 0.35vw, 1.25rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dh-gold-bright);
  }

  .tclock-cap-val {
    font-size: clamp(1.375rem, 1rem + 0.75vw, 2.125rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--dh-text-strong);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
  }

  .tclock-cap-ante {
    font-size: clamp(1rem, 0.75rem + 0.45vw, 1.45rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--dh-text-secondary);
    font-variant-numeric: tabular-nums;
  }

  .tclock-cap-time {
    font-size: clamp(1.375rem, 1rem + 0.75vw, 2.125rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--dh-gold-bright);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
  }

  .tclock-cap-time.is-paused {
    color: var(--dh-text-muted);
  }

  .tclock-cap-note {
    font-size: clamp(0.75rem, 0.65rem + 0.2vw, 0.95rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dh-text-secondary);
    white-space: nowrap;
  }

  .tclock-cap-next {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    font-size: clamp(0.875rem, 0.72rem + 0.3vw, 1.15rem);
    line-height: 1.3;
    color: var(--dh-text-secondary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .tclock-cap-next-k {
    color: var(--dh-text-muted);
    font-weight: 600;
  }

  .tclock-cap-next-v {
    font-weight: 700;
  }

  .tclock-cap-next.is-gold .tclock-cap-next-k,
  .tclock-cap-next.is-gold .tclock-cap-next-v {
    color: var(--dh-gold-bright);
  }

  .tclock-cap-more {
    font-size: clamp(0.8125rem, 0.7rem + 0.2vw, 1rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--dh-text-muted);
    white-space: nowrap;
  }

  @media (hover: hover) {
    .tclock-card--btn:hover .tclock-cap-more {
      color: var(--dh-text-secondary);
    }
  }

  .tclock-ctrl-btn {
    min-inline-size: var(--dh-touch-min);
    min-block-size: var(--dh-touch-min);
    padding-inline: 14px;
    border-radius: 8px;
    border: 1px solid var(--dh-border-trough);
    background: linear-gradient(180deg, #17202d 0%, #0d131d 100%);
    color: var(--dh-text-secondary);
    font-family: var(--dh-font-mono);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dh-dur-fast) var(--dh-ease);
    white-space: nowrap;
  }

  @media (hover: hover) {
    .tclock-ctrl-btn:hover:not(:disabled) {
      color: var(--dh-gold-bright);
      border-color: rgba(212, 175, 55, 0.48);
    }
  }

  .tclock-ctrl-btn:active:not(:disabled) {
    transform: translateY(1px) scale(0.97);
  }

  /* Native <dialog> Tournament Floor Overview Drawer */
  .tinfo-dialog {
    width: min(620px, calc(100vw - 32px));
    max-height: min(86vh, 760px);
    margin: auto;
    padding: 22px 24px;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.34);
    background: linear-gradient(180deg, #101622 0%, #090d15 100%);
    color: var(--dh-text-primary);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.88), 0 0 32px rgba(212, 175, 55, 0.12);
    overflow-y: auto;
  }

  .tinfo-dialog[open] {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .tinfo-dialog:modal {
    overscroll-behavior: contain;
  }

  .tinfo-dialog::backdrop {
    background: rgba(4, 7, 13, 0.74);
    backdrop-filter: blur(6px);
    overflow: hidden;
    overscroll-behavior: contain;
  }

  .tinfo-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .tinfo-kicker {
    display: block;
    font-family: var(--dh-font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--dh-gold);
  }

  .tinfo-title {
    margin: 4px 0 0;
    font-family: var(--dh-font-headline);
    font-size: 18px;
    font-weight: 700;
    color: var(--dh-text-strong);
  }

  .tinfo-close-btn {
    min-inline-size: var(--dh-touch-min);
    min-block-size: var(--dh-touch-min);
    border-radius: 10px;
    border: 1px solid var(--dh-border-trough);
    background: #141b27;
    color: var(--dh-text-muted);
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--dh-dur-fast) var(--dh-ease);
  }

  @media (hover: hover) {
    .tinfo-close-btn:hover {
      color: var(--dh-text-strong);
      border-color: rgba(212, 175, 55, 0.45);
    }
  }

  .tinfo-close-btn:active {
    transform: scale(0.95);
  }

  .tinfo-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  }

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

  .tinfo-card {
    padding: 12px 14px;
    border-radius: 11px;
    background: rgba(15, 22, 34, 0.85);
    border: 1px solid var(--dh-border-subtle);
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .tinfo-card-label {
    font-size: 11px;
    color: var(--dh-text-subtle);
  }

  .tinfo-card-val {
    font-family: var(--dh-font-mono);
    font-size: 15px;
    font-weight: 700;
    color: var(--dh-text-strong);
    font-variant-numeric: tabular-nums;
  }

  .tinfo-card-val--gold {
    color: var(--dh-gold-bright);
  }

  .tinfo-card-note {
    font-size: 11px;
    line-height: 1.45;
    color: var(--dh-text-muted);
  }

  .tinfo-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
  }

  .tinfo-metric {
    padding: 9px 11px;
    border-radius: 9px;
    background: rgba(12, 17, 26, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .tinfo-metric-k {
    font-size: 10px;
    color: var(--dh-text-subtle);
  }

  .tinfo-metric-v {
    font-family: var(--dh-font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--dh-text-primary);
    font-variant-numeric: tabular-nums;
  }

  .tinfo-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .tinfo-section-head {
    font-size: 12px;
    font-weight: 700;
    color: var(--dh-text-secondary);
  }

  .tinfo-schedule {
    border-radius: 10px;
    border: 1px solid var(--dh-border-subtle);
    background: rgba(8, 12, 20, 0.72);
    overflow: hidden;
  }

  .tinfo-row {
    display: grid;
    grid-template-columns: 48px 1fr 64px 104px;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--dh-font-mono);
    font-size: 12px;
    color: var(--dh-text-secondary);
    font-variant-numeric: tabular-nums;
  }

  .tinfo-row:last-child {
    border-bottom: none;
  }

  .tinfo-row--active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--dh-text-strong);
  }

  .tinfo-row--break {
    background: rgba(29, 237, 124, 0.06);
    color: var(--dh-emerald-bright);
  }

  .tinfo-row-lvl {
    font-weight: 700;
    color: var(--dh-gold);
  }

  .tinfo-row--break .tinfo-row-lvl {
    color: var(--dh-emerald-bright);
  }

  .tinfo-row-dur {
    color: var(--dh-text-subtle);
    text-align: right;
  }

  .tinfo-row-tags {
    display: inline-flex;
    justify-content: flex-end;
    gap: 4px;
  }

  .tinfo-tag {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    white-space: nowrap;
  }

  .tinfo-tag--hand {
    background: rgba(212, 175, 55, 0.2);
    color: var(--dh-gold-bright);
    border: 1px solid rgba(212, 175, 55, 0.45);
  }

  .tinfo-tag--clock {
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.4);
  }

  .tinfo-readonly-box {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(14, 20, 30, 0.85);
    border: 1px solid var(--dh-border-subtle);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .tinfo-readonly-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--dh-text-muted);
  }

  .tinfo-sim-details summary {
    min-block-size: var(--dh-touch-min);
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--dh-gold);
    cursor: pointer;
    user-select: none;
  }

  .tinfo-ctrl-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }

  /* ==================== 5. Seat Card 3-Tier Spec (14 States) ==================== */
  .seat-card {
    box-sizing: border-box;
    width: var(--dh-seat-width);
    padding: 10px;
    border-radius: 10px;
    background: rgba(12, 17, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    font-family: var(--dh-font-mono);
    position: relative;
    transition: border-color var(--dh-dur-mid) var(--dh-ease), box-shadow var(--dh-dur-mid) var(--dh-ease), transform var(--dh-dur-mid) var(--dh-ease);
  }

  .seat-card--interactive {
    cursor: pointer;
  }

  /* 席位卡 +8px 不可见扩展触控包络 */
  .seat-card--interactive::after {
    content: "";
    box-sizing: border-box;
    position: absolute;
    inset: calc(-1 * var(--dh-seat-touch-pad));
    border-radius: 18px;
  }

  @media (hover: hover) {
    .seat-card--interactive:hover {
      border-color: rgba(212, 175, 55, 0.45);
    }
  }

  .seat-card--interactive:active {
    transform: translateY(1px) scale(0.98);
  }

  .seat-card--hero {
    width: var(--dh-seat-hero-width);
    padding: 11px;
    background: #0c121c;
    border: 1.5px solid var(--dh-gold);
    box-shadow:
      0 0 24px -2px rgba(212, 175, 55, 0.42),
      0 10px 24px rgba(0, 0, 0, 0.85),
      inset 0 0 14px rgba(212, 175, 55, 0.12);
    animation: dh-hero-breath 2.4s ease-in-out infinite;
  }

  @keyframes dh-hero-breath {
    0%, 100% { box-shadow: 0 0 18px -2px rgba(212, 175, 55, 0.32), 0 10px 24px rgba(0, 0, 0, 0.85); }
    50% { box-shadow: 0 0 28px 1px rgba(243, 207, 122, 0.56), 0 12px 28px rgba(0, 0, 0, 0.95); }
  }

  .seat-card--timebank {
    border: 1.5px solid var(--dh-crimson-bright);
    box-shadow: 0 0 22px rgba(244, 63, 94, 0.35), 0 10px 24px rgba(0, 0, 0, 0.85);
  }

  .seat-card--allin {
    background: linear-gradient(180deg, #180b10 0%, #0e0811 100%);
    border: 1px solid rgba(225, 29, 72, 0.48);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.85), 0 6px 16px rgba(0, 0, 0, 0.65);
  }

  .seat-card--folded {
    opacity: 0.45;
    background: rgba(10, 12, 17, 0.72);
  }

  .seat-card--sitout {
    opacity: 0.58;
    border-style: dashed;
    border-color: rgba(152, 165, 184, 0.25);
  }

  .seat-card--winner {
    background: linear-gradient(180deg, #171d18 0%, #0d1216 100%);
    border: 1.5px solid var(--dh-emerald);
    box-shadow: 0 0 24px rgba(29, 237, 124, 0.3), 0 10px 24px rgba(0, 0, 0, 0.85);
  }

  .seat-card--empty {
    background: rgba(8, 12, 18, 0.45);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 92px;
    text-align: center;
    box-shadow: none;
  }

  .seat-row-id {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 3px 6px;
    margin-block-end: 6px;
    border-radius: 5px;
    background: rgba(9, 13, 20, 0.72);
  }

  .seat-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--dh-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .seat-pos {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    background: #242a36;
    color: var(--dh-text-muted);
    flex-shrink: 0;
  }

  .seat-pos--gold {
    background: rgba(212, 175, 55, 0.2);
    color: var(--dh-gold-soft);
    border: 1px solid rgba(212, 175, 55, 0.35);
  }

  .seat-stack {
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--dh-text-primary);
    padding-inline: 4px;
  }

  .seat-card--hero .seat-stack {
    font-family: var(--dh-font-headline);
    font-size: 15px;
    color: var(--dh-gold-bright);
  }

  .seat-status {
    margin-block-start: 7px;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #141923;
    color: var(--dh-text-muted);
  }

  .seat-status--center {
    justify-content: center;
  }

  .seat-status--gold {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--dh-gold-bright);
  }

  .seat-status--call {
    background: rgba(29, 237, 124, 0.1);
    color: var(--dh-emerald);
  }

  .seat-status--allin {
    background: rgba(225, 29, 72, 0.22);
    color: var(--dh-crimson-soft);
  }

  .seat-status--fold {
    background: rgba(147, 0, 10, 0.18);
    color: #ffb4ab;
    letter-spacing: 0.1em;
  }

  .seat-status--winner {
    background: rgba(29, 237, 124, 0.16);
    border: 1px solid rgba(29, 237, 124, 0.35);
    color: var(--dh-emerald-bright);
  }

  .dealer-puck {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dh-gold-bright) 0%, var(--dh-gold) 100%);
    color: var(--dh-text-on-gold);
    font-family: var(--dh-font-headline);
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dh-gold-pale);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  }

  .seat-timer-bar {
    height: 3px;
    margin-block-start: 6px;
    border-radius: 99px;
    background: #1f2937;
    overflow: hidden;
  }

  .seat-timer-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--dh-gold) 0%, var(--dh-crimson-bright) 100%);
  }

  /* ==================== 6. Accessible Spec Tabs (modern-web-guidance) ==================== */
  .spec-tablist {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: inline proximity;
    border-block-end: 1px solid var(--dh-border-subtle);
    padding-block-end: 2px;
  }

  .spec-tab {
    position: relative;
    flex: none;
    scroll-snap-align: start;
    border: 0;
    background: transparent;
    min-inline-size: var(--dh-touch-min);
    min-block-size: var(--dh-touch-min);
    padding: 10px 18px;
    font-family: var(--dh-font-headline);
    font-size: 14px;
    font-weight: 600;
    color: var(--dh-text-subtle);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: color var(--dh-dur-fast) var(--dh-ease);
  }

  @media (hover: hover) {
    .spec-tab:hover {
      color: var(--dh-text-secondary);
    }
  }

  .spec-tab[aria-selected="true"] {
    color: var(--dh-gold-bright);
  }

  /* Border-based underline survives Forced Colors Mode & does not shift dimensions */
  .spec-tab[aria-selected="true"]::after {
    content: "";
    position: absolute;
    inset: auto 0 -2px;
    border-block-end: 3px solid var(--dh-gold);
  }

  .spec-tab-count {
    font-family: var(--dh-font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 99px;
    background: #141b27;
    color: var(--dh-text-muted);
    border: 1px solid var(--dh-border-trough);
  }

  .spec-tab[aria-selected="true"] .spec-tab-count {
    background: rgba(212, 175, 55, 0.16);
    color: var(--dh-gold-bright);
    border-color: rgba(212, 175, 55, 0.4);
  }

  /* Keep styling on inner wrapper, NOT on [role="tabpanel"] (required for hidden="until-found") */
  .spec-panels-host {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .spec-panel {
    grid-area: 1 / 1;
    align-self: start;
  }

  .spec-panel[hidden] { pointer-events: none; }

  .spec-panel-body {
    padding-block: 28px 56px;
    display: flex;
    flex-direction: column;
    gap: 36px;
  }

  /* ==================== 7. Spec Page Layout Blocks ==================== */
  .spec-page {
    max-width: 1320px;
    margin-inline: auto;
    padding-inline: 24px;
  }

  .spec-hero {
    padding-block: 24px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
  }

  .spec-kicker {
    font-family: var(--dh-font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dh-gold);
  }

  .spec-h1 {
    font-family: var(--dh-font-headline);
    font-size: 28px;
    font-weight: 700;
    color: var(--dh-text-strong);
    letter-spacing: -0.02em;
    margin-block-start: 4px;
  }

  .spec-h2 {
    font-family: var(--dh-font-headline);
    font-size: 22px;
    font-weight: 700;
    color: var(--dh-text-primary);
    letter-spacing: -0.01em;
  }

  .spec-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .spec-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  .spec-blueprint {
    background: var(--dh-surface-lowest);
    border: 1px solid var(--dh-border-subtle);
    border-radius: 16px;
    padding: 24px;
    background-image: radial-gradient(rgba(212, 175, 55, 0.08) 1px, transparent 1px);
    background-size: 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .spec-state-card {
    background: var(--dh-surface-lowest);
    border: 1px solid var(--dh-border-subtle);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .spec-state-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }

  .spec-state-badge {
    font-family: var(--dh-font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    background: #141b27;
    color: var(--dh-gold-bright);
    border: 1px solid var(--dh-border-trough);
  }

  .spec-state-badge--emerald {
    color: var(--dh-emerald);
  }

  .spec-state-badge--crimson {
    color: var(--dh-crimson-soft);
  }

  .spec-state-title {
    font-family: var(--dh-font-headline);
    font-size: 15px;
    font-weight: 700;
    color: var(--dh-text-primary);
  }

  .spec-state-code {
    font-family: var(--dh-font-mono);
    font-size: 11px;
    color: var(--dh-text-subtle);
  }

  .spec-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

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

  .spec-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .spec-token-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--dh-surface-card);
    border: 1px solid var(--dh-border-trough);
  }

  .spec-token-swatch {
    width: 34px;
    height: 24px;
    padding: 0;
    border-radius: 6px;
    flex-shrink: 0;
    cursor: default;
  }

  .spec-rule-card {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--dh-surface-card);
    border: 1px solid var(--dh-border-trough);
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .spec-rule-card p {
    font-size: 12px;
    line-height: 1.6;
    color: var(--dh-text-muted);
  }

  .spec-seat-stage {
    min-height: 144px;
    border-radius: 12px;
    background: radial-gradient(circle at 50% 50%, #101f35 0%, #070d16 100%);
    border: 1px solid #18263b;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .spec-board-stage {
    min-height: 158px;
    border-radius: 12px;
    background: radial-gradient(ellipse at 50% 50%, #102138 0%, #070d16 100%);
    border: 1px solid #18263b;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .cards-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  @media (max-width: 1280px) {
    .dh-header {
      padding-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px));
      gap: 6px 8px;
    }
    .dh-header-group {
      gap: 6px;
    }
    .dh-brand {
      gap: 6px;
    }
    .dh-brand-title {
      font-size: 16px;
    }
    .dh-badge-triton,
    .dh-divider-v {
      display: none;
    }
    .dh-nav-link,
    .dh-seg-btn {
      padding-inline: 10px;
    }
    .dh-pill-meta {
      padding: 4px 8px;
    }
  }

  @media (max-width: 1100px) {
    .spec-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spec-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spec-grid-2 { grid-template-columns: minmax(0, 1fr); }
  }

  @media (max-width: 820px) {
    .raise-controls-row { flex-wrap: wrap; }
    .spec-grid-4, .spec-grid-3 { grid-template-columns: minmax(0, 1fr); }
  }

  @media (prefers-reduced-motion: reduce) {
    .seat-card--hero { animation: none; }
    .act-btn-mech,
    .act-btn-mech-selected,
    .act-btn-mech-fold,
    .act-btn-mech-call,
    .act-btn-mech-raise,
    .act-btn-mech-gold,
    .act-btn-mech-danger,
    .act-btn-mech-danger-strong,
    .act-btn-mech-emerald,
    .seat-card,
    .poker-card,
    .spec-tab { transition-duration: 0.01ms !important; }
  }
}

@layer utilities {
  .is-hidden {
    display: none !important;
  }
  .text-gold { color: var(--dh-gold-bright); }
  .text-emerald { color: var(--dh-emerald); }
  .text-crimson { color: var(--dh-crimson-soft); }
  .text-muted { color: var(--dh-text-muted); }
  .text-subtle { color: var(--dh-text-subtle); }
  .font-mono { font-family: var(--dh-font-mono); }
  .font-headline { font-family: var(--dh-font-headline); }
}

@layer components {
  .pot-sub-label, .seat-card--sitout :is(.seat-name, .seat-stack) { color: var(--dh-text-muted); }
  .pot-sub-detail { color: var(--dh-text-subtle); }
  .pot-sub-pill--main .pot-sub-amount, .pot-sub-pill--odd .pot-sub-label { color: var(--dh-gold); }
  .pot-sub-pill--side .pot-sub-amount { color: #60a5fa; }
  .pot-sub-pill--extra { border-color: rgba(244,63,94,.45); }
  .pot-sub-pill--extra .pot-sub-amount { color: var(--dh-crimson-soft); }
  .pot-sub-pill--odd { border-color: rgba(212,175,55,.55); }
  .seat-card--raised { border-color: rgba(212,175,55,.45); }
  .spec-seat-stage .seat-card--winner .seat-stack { color: var(--dh-emerald); }
  .void-label { font-size: 8px; }
  .btn-amt-alert { font-family: var(--dh-font-mono); font-weight: 800; color: white; }
}

@layer components {
  .triton-dock-shell--base .dock-actions-row .act-btn-mech-fold { min-width: 84px; }
  .triton-dock-shell--base .dock-actions-row .act-btn-mech-call { flex: 1; min-width: 118px; max-width: 158px; }
  .triton-dock-shell--base .dock-actions-row .act-btn-mech-raise { flex: 1; min-width: 100px; max-width: 140px; }
  .triton-dock-shell--base .dock-actions-row .act-btn-mech-danger { min-width: 136px; }
  .raise-commit-group .act-btn-mech-fold { min-width: 80px; }
  .raise-commit-group .act-btn-mech-call { min-width: 112px; }
  .raise-commit-group .act-btn-mech-gold { min-width: 160px; }
}
