/* DESIGN CONTRACT — Poker account entry and native Radar composition, not the poker game.
   Palette: native profile/rewards neutrals (style.css, social-profile.css, vip.css).
   Reuse LuckyHash chrome; panel + btn + badge + checkbox. No blue hub surfaces.
   Translucent page cards; opaque --bg-card dialogs in the native top layer.
   Primary buttons: gold/ink at rest; ink/gold on hover, keyboard focus and press.
   Spacing: 4px grid, 8/12/16/24; radii 8/12/16; type inherits site font.
   Motion: --poker-ease, 150ms inputs / 200ms dialog; reduced-motion fallback.
   Modal: native dialog top layer (no arbitrary z-index), panel/btn composition.
   Dashboard C: compact Overview/My stats tabs and styled token listbox in one row; selected-token hero + two quieter metrics.
   Loading: stable account geometry, quiet status text; no whole-panel fade or fake balances.
   Picker: existing button/panel palette, opaque overlay layer 2, no browser-native option popup.
   Public token choices remain available when balance reads fail; unknown amounts stay neutral dashes.
   Token logos: existing LHT/XRP/RLUSD assets, no substitute spade or invented currency marks.
   Stats: existing two-column rewards/activity content integrated into the dashboard; one column below 760px.
   Cashier unavailable actions: neutral disabled tabs, no active glow or form; preserve drafts and separate read-only activity.
   Cashier TXIDs: quiet accent links in history/request details, underlined and keyboard-focusable.
   Dock actions: adjacent equal-height buttons; narrow containers use a full-width pair below identity.
   Connection status stays with identity; balance help stays with balance tools.
   Cashier: existing dock button + native panel/form/dialog; tabs, copy rows, QR and review in existing token palette. No payment celebration.
   Quiet snapshot UI, semantic signed amounts, original panel/btn/opaque dialog tokens.
   Form rules use existing small/note elements; blocking financial errors use --danger-color, disabled actions neutral.
   Password comparison uses native --danger-color / --success-color with explicit text; no new palette.
   Signup availability reuses those semantic tokens and existing field notes; pending/failure stay neutral.
   Signup submit stays neutral/disabled until local fields, availability and consents pass; valid matching passwords share green, invalid DOB is red.
   Existing-account checks reuse semantic field colors; verification stays disabled until the current name is ready and a password is entered.
   Password recovery stays in the native dialog with existing forms/actions; semantic feedback, disabled submits and no credential persistence.
   History disclosures compose heading/text buttons with the stats caret; active status and form feedback stay outside.
   Keep status and form feedback visible; no new gameplay/audio systems. */
.poker-page {
  --poker-bg: var(--dark-color); --poker-panel: rgba(255,255,255,.03);
  --poker-raised: rgba(255,255,255,.05); --poker-modal: var(--bg-card);
  --poker-text: var(--text-color); --poker-dim: var(--text-secondary);
  --poker-border: rgba(255,255,255,.08); --poker-accent: #e6c97a;
  --poker-ink: #171717; --poker-backdrop: rgba(0,0,0,.66);
  --poker-radius: 16px; --poker-ease: cubic-bezier(.4,0,.2,1);
  background: var(--poker-bg); color: var(--poker-text);
}
.poker-hero { padding-bottom: 24px; }
.poker-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--poker-accent); margin-bottom: 12px; }
.poker-shell { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; padding-bottom: 48px; align-items: start; }
.poker-panel { background: var(--poker-panel); border: 1px solid var(--poker-border); border-radius: var(--poker-radius); padding: 24px; min-width: 0; }
.poker-panel section { padding: 0; }
.poker-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.poker-panel h2 { font-size: 1.4rem; margin: 0 0 16px; line-height: 1.3; }
.poker-panel h3 { margin: 16px 0; overflow-wrap: anywhere; }
.poker-panel p { color: var(--poker-dim); line-height: 1.6; margin: 0 0 16px; }
.poker-badge { color: var(--poker-accent); border: 1px solid var(--poker-accent); border-radius: 8px; padding: 4px 8px; font-size: 11px; font-weight: 700; }
.poker-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 16px; border: 1px solid var(--poker-border); border-radius: 12px; color: var(--poker-text); background: var(--poker-raised); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: border-color .15s var(--poker-ease), transform .15s var(--poker-ease); }
.poker-btn:hover:not(:disabled) { border-color: var(--poker-accent); color: var(--poker-text); }
.poker-btn:active { transform: scale(.98); }
.poker-btn.primary { background: var(--poker-accent); color: var(--poker-ink); border-color: var(--poker-accent); filter: none; transition: background-color .15s var(--poker-ease), color .15s var(--poker-ease), border-color .15s var(--poker-ease), transform .15s var(--poker-ease); }
.poker-btn.primary:is(:hover, :focus-visible, :active):not(:disabled) { background: var(--poker-ink); color: var(--poker-accent); border-color: var(--poker-accent); }
.poker-btn.primary:focus-visible { outline: 2px solid var(--poker-accent); outline-offset: 4px; }
.poker-btn:disabled { opacity: .55; cursor: not-allowed; }
.poker-btn:disabled:active { transform: none; }
#poker-signup-submit:disabled, #poker-connect-submit:disabled, #poker-recovery .poker-btn:disabled, #poker-cashier .poker-btn:disabled { background: var(--poker-raised); color: var(--poker-dim); border-color: var(--poker-border); opacity: 1; }
.poker-panel :focus-visible { outline: 2px solid var(--poker-accent); outline-offset: 4px; }
.poker-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 24px; }
.poker-panel label { display: block; margin: 16px 0 8px; font-size: .9rem; }
.poker-panel input:not([type=checkbox]) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 48px; background: var(--poker-bg); border: 1px solid var(--poker-border); border-radius: 8px; padding: 12px; color: var(--poker-text); font: inherit; color-scheme: dark; }
.poker-panel small, .poker-panel .poker-note { display: block; color: var(--poker-dim); font-size: .8rem; line-height: 1.5; margin-top: 8px; }
.poker-panel .poker-field-error { color: var(--poker-accent); overflow-wrap: anywhere; }
.poker-panel .poker-field-hint { color: var(--poker-accent); }
#poker-repeat-password-error { color: var(--danger-color); }
#poker-repeat-password-error.poker-field-success { color: var(--success-color); }
#poker-repeat-password[aria-invalid="true"] { border-color: var(--danger-color); }
#poker-new-password.poker-field-matched, #poker-repeat-password.poker-field-matched { border-color: var(--success-color); }
#poker-birthday-error { color: var(--danger-color); }
#poker-birthday[aria-invalid="true"] { border-color: var(--danger-color); }
.poker-panel .poker-field-error[data-availability="available"] { color: var(--success-color); }
.poker-panel .poker-field-error[data-availability="taken"] { color: var(--danger-color); }
.poker-panel .poker-field-error:is([data-availability="checking"], [data-availability="unavailable"]) { color: var(--poker-dim); }
#pc-withdraw-balance, #pc-withdraw-error { font-variant-numeric: tabular-nums; }
.poker-panel input[aria-invalid="true"] { border-color: var(--poker-accent); }
.poker-panel input[data-availability="available"] { border-color: var(--success-color); }
.poker-panel input[data-availability="taken"] { border-color: var(--danger-color); }
.poker-panel .poker-field-error[data-connect-status="ready"] { color: var(--success-color); }
.poker-panel .poker-field-error:is([data-connect-status="invalid"], [data-connect-status="not_found"], [data-connect-status="linked"]) { color: var(--danger-color); }
.poker-panel .poker-field-error:is([data-connect-status="checking"], [data-connect-status="unavailable"]) { color: var(--poker-dim); }
.poker-panel input[data-connect-status="ready"] { border-color: var(--success-color); }
.poker-panel input:is([data-connect-status="invalid"], [data-connect-status="not_found"], [data-connect-status="linked"]) { border-color: var(--danger-color); }
#poker-recovery .poker-field-error, #poker-recovery-feedback[data-tone="error"] { color: var(--danger-color); }
#poker-recovery .poker-field-success, #poker-recovery-feedback[data-tone="success"] { color: var(--success-color); }
#poker-recovery input[aria-invalid="true"] { border-color: var(--danger-color); }
#poker-recovery input.poker-field-matched { border-color: var(--success-color); }
#poker-cashier .poker-field-error { color: var(--danger-color); }
#poker-cashier input[aria-invalid="true"] { border-color: var(--danger-color); }
#poker-recovery-wait, #pc-transfer-balance, #pc-amount-error { font-variant-numeric: tabular-nums; }
#poker-recovery > .poker-btn { margin-top: 16px; width: 100%; }
.poker-checkbox input[aria-invalid="true"] { outline: 1px solid var(--poker-accent); outline-offset: 4px; }
.poker-panel form > button { margin-top: 24px; width: 100%; }
.poker-panel .poker-checkbox { display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; }
.poker-checkbox input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; accent-color: var(--poker-accent); }
.poker-checkbox a, .poker-support { color: var(--poker-accent); text-decoration: underline; }
.poker-support { display: block; margin-top: 16px; }
.poker-wallet { overflow-wrap: anywhere; font-size: .8rem; font-variant-numeric: tabular-nums; }
.poker-panel [hidden] { display: none !important; }
#poker-message { margin-top: 8px; }
@media (max-width: 900px) { .poker-shell { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
@media (max-width: 480px) { .poker-panel { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .poker-btn, .poker-btn.primary { transition: none; } .poker-btn:active { transform: none; } }

.poker-dialog { box-sizing: border-box; width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; background: var(--poker-modal); color: var(--poker-text); overflow-y: auto; overscroll-behavior: contain; }
.poker-dialog[open] { animation: poker-dialog-in .2s var(--poker-ease); }
.poker-dialog::backdrop { background: var(--poker-backdrop); }
.poker-dialog .poker-panel-head { margin-bottom: 16px; }
.poker-dialog .poker-panel-head h2 { margin: 0; }
.poker-dialog .poker-panel-head .poker-btn { width: auto; flex: 0 0 auto; }
.poker-choices { display: grid; gap: 12px; margin: 24px 0 8px; }
.poker-choice { width: 100%; align-items: flex-start; flex-direction: column; gap: 8px; text-align: left; }
.poker-choice span { color: var(--poker-dim); font-size: .9rem; font-weight: 400; line-height: 1.5; }
.poker-page:has(.poker-dialog[open]) { overflow: hidden; }
#poker-back { margin-bottom: 16px; }
@keyframes poker-dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .poker-dialog[open] { animation: none; } }

/* Radar composition: original site header/sidebar stay untouched. */
.poker-shell { display:block; container-type:inline-size; container-name:poker; }
.poker-heading { position:static; background:none; border:0; margin:28px 0 24px; padding:0; }
.poker-heading h1 { font-size:clamp(26px,3.4vw,44px); line-height:1.15; letter-spacing:-.035em; margin:8px 0 12px; font-weight:700; }
.poker-heading h1 span { color:var(--poker-accent); }
.poker-heading > p:last-child { color:var(--poker-dim); margin:0; }
.poker-account { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 20px; margin-bottom:24px; }
.poker-account-copy { min-width:0; }
.poker-account #poker-message { margin:0; color:var(--poker-text); font-size:.9rem; }
.poker-account #poker-wallet { margin:4px 0 0; font-size:.75rem; }
.poker-account-actions, #poker-linked { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.poker-account-actions { flex-shrink:0; }
#poker-username { font-size:.85rem; color:var(--poker-accent); overflow-wrap:anywhere; }
.poker-destination { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:8px; font-size:.8rem; color:var(--poker-accent); }
.poker-destination .poker-btn { padding:4px 8px; min-height:32px; font-size:.75rem; }
.poker-help { color:var(--poker-dim); font-size:.85rem; border-top:1px solid var(--poker-border); padding-top:16px; }
.poker-help summary { cursor:pointer; color:var(--poker-text); padding:8px 0; }
.poker-help p { line-height:1.6; margin:12px 0; max-width:760px; }
.poker-help-links { display:flex; gap:24px; flex-wrap:wrap; margin-top:16px; }
.poker-help a { color:var(--poker-accent); text-decoration:underline; }
.poker-shell [hidden] { display:none !important; }
@container poker (max-width:800px) {
  .poker-account { align-items:flex-start; flex-direction:column; }
}
@media(max-width:480px) { .poker-heading { margin-top:20px; } .poker-account { padding:16px; } }

/* Compact Dashboard C: one selected-token overview and integrated stats tab.
   Existing panel/button tokens, styled listbox and canonical token assets. */
.poker-page { --poker-warm: rgba(230,201,122,.06); --poker-gold-border: rgba(230,201,122,.3); --poker-connected: #81bb9b; --poker-picker-layer:2; }
.poker-account { display:block; padding:16px 24px 0; }
.poker-account[data-loading=true] { min-block-size:296px; }
.poker-account[data-loading=true] .poker-account-header { min-height:44px; }
.poker-account-actions { min-width:0; gap:8px; flex-wrap:nowrap; }
.poker-account-actions .poker-btn { width:auto; min-height:44px; padding:8px 16px; font-size:.85rem; line-height:1.4; }
#poker-linked { width:auto; gap:8px; flex-wrap:nowrap; }
.poker-icon-btn svg { width:18px; height:18px; pointer-events:none; }
.poker-account-header { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:16px; padding-bottom:16px; }
.poker-identity { display:flex; align-items:center; gap:12px; min-width:0; }
.poker-identity > div { min-width:0; }
.poker-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.poker-avatar { overflow:hidden; position:relative; display:grid; place-items:center; flex:0 0 40px; height:40px; border:1px solid var(--poker-gold-border); border-radius:12px; background:var(--poker-warm); color:var(--poker-accent); font-size:24px; }
.poker-account #poker-username { color:var(--poker-text); font-size:.95rem; font-weight:600; }
.poker-account #poker-wallet { color:var(--poker-dim); font-size:.75rem; margin-top:4px; }
.poker-account #poker-message:not(:empty) { margin-top:8px; }
.poker-account[aria-busy=true]:not([data-loading]) #poker-message { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.poker-account #poker-message:empty { display:none; }
.poker-connected { color:var(--poker-connected); font-size:.75rem; white-space:nowrap; }
.poker-account[aria-busy=true] .poker-connected { color:var(--poker-dim); }
.poker-connected::before { content:'•'; margin-right:6px; }
.poker-btn.poker-icon-btn { flex:0 0 44px; width:44px; padding:0; background:transparent; font-size:20px; }
.poker-dashboard { min-width:0; }
.poker-dashboard-nav { display:flex; align-items:center; justify-content:space-between; gap:12px; border-block:1px solid var(--poker-border); }
.poker-dashboard-tools { display:flex; align-items:center; gap:8px; min-width:0; flex-shrink:0; }
.poker-dashboard-tabs { display:flex; gap:24px; min-width:0; flex-shrink:0; }
.poker-btn.poker-dashboard-tab { position:relative; border:0; border-radius:0; min-height:52px; padding:12px 0; background:transparent; color:var(--poker-dim); font-size:.9rem; white-space:nowrap; }
.poker-dashboard-tab::after { content:''; position:absolute; inset:auto 0 -1px; height:3px; background:var(--poker-accent); transform:scaleX(0); transition:transform .15s var(--poker-ease); }
.poker-btn.poker-dashboard-tab[aria-selected=true] { color:var(--poker-accent); }
.poker-dashboard-tab[aria-selected=true]::after { transform:scaleX(1); }
.poker-btn.poker-dashboard-tab:hover { color:var(--poker-text); }
.poker-btn.poker-dashboard-tab:active { transform:none; }
.poker-balance { min-width:0; }
.poker-token-picker { position:relative; min-width:0; max-width:100%; }
.poker-btn.poker-token-select { height:44px; min-height:44px; max-width:100%; padding:8px 12px; gap:8px; font-size:.85rem; }
.poker-token-select[aria-expanded=true] { border-color:var(--poker-accent); }
.poker-token-select svg { width:16px; height:16px; flex:none; transition:transform .15s var(--poker-ease); }
.poker-token-select[aria-expanded=true] svg { transform:rotate(180deg); }
#poker-token-label { min-width:0; max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#poker-token-identity { display:flex; }
.poker-token-menu { position:absolute; inset:calc(100% + 8px) 0 auto auto; z-index:var(--poker-picker-layer); width:220px; max-width:calc(100vw - 64px); max-height:260px; overflow:auto; overscroll-behavior:contain; padding:4px; border:1px solid var(--poker-border); border-radius:12px; background:var(--poker-modal); }
.poker-btn.poker-token-option { display:flex; justify-content:flex-start; width:100%; min-height:44px; padding:8px 12px; gap:12px; text-align:left; border-color:transparent; border-radius:8px; background:transparent; font-size:.85rem; }
.poker-token-option[aria-selected=true] { color:var(--poker-accent); background:var(--poker-warm); }
.poker-token-option[aria-selected=true]::after { content:'✓'; margin-left:auto; }
.poker-token-option:focus-visible { outline-offset:-2px; }
.poker-coin { display:inline-grid; place-items:center; flex:0 0 28px; width:28px; height:28px; color:var(--poker-dim); background:transparent; font-size:10px; font-weight:600; overflow:hidden; }
.poker-coin img { width:100%; height:100%; object-fit:contain; }
.poker-balance-overview { display:grid; grid-template-columns:minmax(0,1.7fr) repeat(2,minmax(0,1fr)); align-items:center; padding:20px 0; min-height:108px; }
.poker-overview-metric { min-width:0; padding:0 24px; border-left:1px solid var(--poker-border); }
.poker-overview-metric:first-child { padding-left:0; border-left:0; }
.poker-overview-metric:last-child { padding-right:0; }
.poker-asset-label { display:block; color:var(--poker-dim); font-size:.8rem; margin-bottom:8px; }
.poker-overview-value { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 8px; min-width:0; color:var(--poker-text); }
.poker-asset-amount { min-width:0; color:inherit; font-size:28px; font-weight:600; line-height:1.15; letter-spacing:-.035em; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.is-available .poker-overview-value { color:var(--poker-accent); }
.poker-balance-overview[data-state=unavailable] .poker-overview-value { color:var(--poker-dim); }
.is-available .poker-asset-amount { font-size:clamp(28px,3.5cqi,44px); }
.poker-asset-unit { color:var(--poker-dim); font-size:.8rem; font-weight:500; }
.poker-balance-footer { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; min-height:48px; border-top:1px solid var(--poker-border); color:var(--poker-dim); font-size:.7rem; }
#poker-balance-status { min-width:0; line-height:1.5; }
#poker-balance-count:not(:empty)::before { content:'· '; }
.poker-balance-tools { display:flex; align-items:center; flex-shrink:0; gap:8px; }
.poker-btn.poker-text-btn { background:transparent; border-color:transparent; color:var(--poker-accent); padding:8px; gap:8px; font-size:.7rem; }
.poker-dashboard .poker-btn.poker-text-btn { font-size:.75rem; }
.poker-btn.poker-text-btn:hover:not(:disabled) { background:var(--poker-warm); }
.poker-balance-list { display:grid; gap:8px; margin-top:16px; max-height:50dvh; overflow-y:auto; overscroll-behavior:contain; padding:4px; }
.poker-btn.poker-balance-row { width:100%; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; text-align:left; font-size:.8rem; }
.poker-balance-identity { display:flex; align-items:center; gap:8px; min-width:0; }
.poker-token-copy { min-width:0; overflow-wrap:anywhere; }
.poker-token-copy strong { font-size:.85rem; }
.poker-row-values { text-align:right; min-width:0; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.poker-row-values small { font-size:.65rem; margin-top:4px; }
.poker-balances-dialog .poker-note { margin-bottom:0; }
.poker-account .poker-stats.stats-panel { padding:24px 0; margin:0; border:0; background:transparent; border-radius:0; }
@container poker (max-width:800px) {
  .poker-account[data-loading=true] { min-block-size:350px; }
  .poker-account-header { grid-template-columns:minmax(0,1fr); gap:12px; }
  .poker-account-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; align-items:stretch; }
  .poker-account-actions > * { min-width:0; }
  #poker-linked { align-items:stretch; }
  #poker-linked > .poker-btn { flex:1 1 0; min-width:0; }
  .poker-account .poker-connected { margin-left:auto; }
}
@container poker (max-width:500px) {
  .poker-account { padding:16px 16px 0; }
  .poker-account[data-loading=true] { min-block-size:440px; }
  .poker-account-header { gap:12px; padding-bottom:16px; }
  .poker-identity { gap:8px; }
  .poker-account #poker-username { font-size:.85rem; }
  .poker-account #poker-wallet { font-size:.65rem; }
  .poker-avatar { flex-basis:32px; height:32px; border-radius:8px; }
  .poker-account .poker-connected { font-size:.65rem; }
  .poker-account-actions .poker-btn { padding:8px 12px; font-size:.8rem; }
  .poker-dashboard-tabs { gap:16px; }
  .poker-btn.poker-dashboard-tab { font-size:.8rem; }
  .poker-btn.poker-token-select { padding:8px; gap:4px; font-size:.75rem; }
  .poker-token-select .poker-coin { width:20px; height:20px; flex-basis:20px; }
  #poker-token-label { max-width:64px; }
  .poker-balance-overview { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:16px; padding:16px 0; min-height:160px; }
  .poker-overview-metric { padding:0 0 0 16px; }
  .poker-overview-metric.is-available { grid-column:1/-1; }
  .poker-overview-metric:nth-child(2) { border-left:0; padding-left:0; }
  .poker-asset-amount { font-size:24px; }
  .is-available .poker-asset-amount { font-size:32px; }
  .poker-asset-label { font-size:.75rem; }
  .poker-balance-footer { padding:4px 0; gap:4px; }
  .poker-balance-tools { gap:0; }
  .poker-account .poker-stats.stats-panel { padding:20px 0; }
}
@container poker (max-width:340px) {
  .poker-balance-footer { grid-template-columns:1fr; padding:12px 0 4px; }
  .poker-balance-tools { justify-self:end; }
  .poker-connected { white-space:normal; text-align:right; }
}
@container poker (max-width:280px) {
  /* The selected currency remains in each amount and in the trigger's accessible name. */
  #poker-token-label { display:none; }
}
@media(prefers-reduced-motion:reduce) { .poker-dashboard-tab::after, .poker-token-select svg { transition:none; } }

/* My stats: established rewards/activity content in Dashboard C; never live/fabricated numbers. */
.poker-page { --poker-stats-win:#8ac6a3; --poker-stats-loss:#d99c98; --poker-stats-track:#30302c; }
.poker-sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.poker-page [hidden] { display:none!important; }
.poker-stats :focus-visible { outline:2px solid var(--poker-accent); outline-offset:4px; }
.poker-stats.stats-panel { padding:24px; background:var(--poker-panel); border:1px solid var(--poker-gold-border); border-radius:16px; margin-bottom:24px; }
.poker-stats header { position:static; background:none; border:0; padding:0; box-shadow:none; width:auto; }
.poker-stats .stats-header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:24px; }
.poker-stats .stats-header h2 { margin:0 0 4px; font-size:24px; letter-spacing:-.035em; font-weight:600; }
.poker-stats .stats-header p { font-size:12px; margin:0; color:var(--poker-dim); }
.poker-stats .stats-stamp { display:flex; align-items:center; gap:12px; color:var(--poker-dim); font-size:10px; padding-top:6px; flex-wrap:wrap; }
.poker-stats .unit-badge { font-size:10px; color:var(--poker-accent); border:1px solid var(--poker-gold-border); padding:4px 8px; border-radius:999px; background:var(--poker-warm); }
.poker-stats .stats-grid { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:32px; }
.poker-stats section { padding:0; min-width:0; }
.poker-stats .level-card { background:var(--poker-warm); border:1px solid var(--poker-border); border-radius:12px; padding:20px; }
.poker-stats .level-top { display:flex; align-items:center; gap:16px; }
.poker-stats .level-symbol { display:grid; place-items:center; flex:0 0 52px; height:60px; border:1px solid var(--poker-gold-border); border-radius:12px; color:var(--poker-accent); font-size:28px; font-weight:500; background:var(--poker-warm); }
.poker-stats .micro { font-size:10px; letter-spacing:.1em; color:var(--poker-dim); font-weight:500; text-transform:uppercase; }
.poker-stats .level-name { font-size:20px; font-weight:500; letter-spacing:-.025em; margin:4px 0 0; overflow-wrap:anywhere; }
.poker-stats .level-next { margin-left:auto; text-align:right; color:var(--poker-dim); font-size:10px; }
.poker-stats .level-next strong { display:block; font-size:13px; color:var(--poker-text); font-weight:500; margin-top:4px; overflow-wrap:anywhere; }
.poker-stats .progress-label { display:flex; justify-content:space-between; gap:8px; font-size:10px; color:var(--poker-dim); margin-top:20px; }
.poker-stats .progress-label b { color:var(--poker-accent); font-weight:500; }
.poker-stats .progress-track { height:6px; background:var(--poker-stats-track); border-radius:999px; margin-top:8px; overflow:hidden; }
.poker-stats .progress-fill { width:0; height:100%; border-radius:999px; background:var(--poker-accent); }
.poker-stats .rake-rate { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px 0 16px; }
.poker-stats .rate-label { font-size:13px; font-weight:500; }
.poker-stats .rake-rate small { display:block; font-size:10px; color:var(--poker-dim); margin-top:4px; }
.poker-stats .rake-rate strong { font-size:30px; font-weight:500; color:var(--poker-accent); letter-spacing:-.04em; }
.poker-stats .rake-totals { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.poker-stats .rake-total { padding:16px; border:1px solid var(--poker-border); border-radius:12px; background:var(--poker-bg); min-width:0; }
.poker-stats .rake-total .amount { font-size:24px; font-weight:500; letter-spacing:-.04em; display:block; margin:8px 0 0; line-height:1.2; overflow-wrap:anywhere; }
.poker-stats .rake-total .amount small { display:inline; font-size:10px; color:var(--poker-dim); letter-spacing:0; font-weight:400; margin-left:4px; }
.poker-stats .hint { font-size:10px; color:var(--poker-dim); margin-top:8px; display:block; }
.poker-stats .rewards-note { margin:16px 0 0; color:var(--poker-dim); font-size:10px; line-height:1.7; }
.poker-stats .stats-notice { font-size:12px; color:var(--poker-dim); margin:12px 0; line-height:1.6; }
.poker-stats .activity-column { padding-left:32px; border-left:1px solid var(--poker-border); }
.poker-stats .activity-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:0 0 8px; }
.poker-stats .activity-heading h3 { font-size:15px; font-weight:500; margin:0; }
.poker-stats .activity-heading span { font-size:10px; color:var(--poker-dim); }
.poker-stats .activity-list { list-style:none; margin:0; padding:0; }
.poker-stats .activity-row { display:flex; gap:12px; align-items:center; padding:14px 0; border-bottom:1px solid var(--poker-border); }
.poker-stats .activity-icon { display:grid; place-items:center; width:32px; height:32px; flex:0 0 32px; border:1px solid var(--poker-border); border-radius:999px; background:var(--poker-raised); color:var(--poker-dim); font-size:18px; }
.poker-stats .activity-copy { flex:1; min-width:0; }
.poker-stats .activity-copy strong { display:block; font-size:12px; font-weight:500; overflow-wrap:anywhere; }
.poker-stats .activity-copy span { display:block; font-size:10px; color:var(--poker-dim); margin-top:4px; overflow-wrap:anywhere; }
.poker-stats .activity-value { text-align:right; max-width:46%; overflow-wrap:anywhere; flex-shrink:0; }
.poker-stats .activity-value strong { font-size:14px; font-weight:500; display:block; }
.poker-stats .activity-row.in .activity-value strong,.poker-stats .activity-row.in .activity-icon { color:var(--poker-stats-win); }
.poker-stats .activity-row.out .activity-value strong { color:var(--poker-stats-loss); }
.poker-stats .activity-row.reward .activity-icon { color:var(--poker-accent); background:var(--poker-warm); }
.poker-stats .activity-value span { font-size:9px; color:var(--poker-dim); display:block; margin-top:4px; }
.poker-stats .activity-bottom { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:8px; }
.poker-stats .activity-bottom>span { font-size:9px; color:var(--poker-dim); max-width:210px; line-height:1.6; }
.poker-stats .poker-btn.more-activity { font-size:10px; padding:8px; background:transparent; border-color:transparent; color:var(--poker-accent); gap:8px; white-space:nowrap; }
.poker-stats .poker-btn.more-activity:hover { border-color:var(--poker-gold-border); }
.poker-stats :is(.level-symbol,.progress-label,.rake-rate strong,.amount,.activity-value) { font-variant-numeric:tabular-nums; }
#poker-activity-list { max-height:55dvh; overflow-y:auto; overscroll-behavior:contain; padding-right:8px; }
@container poker (max-width:760px) {
 .poker-stats.stats-panel { padding:20px 16px; }
 .poker-stats .stats-header { display:block; margin-bottom:20px; }
 .poker-stats .stats-stamp { padding:0; margin-top:12px; justify-content:space-between; }
 .poker-stats .stats-grid { grid-template-columns:1fr; gap:24px; }
 .poker-stats .level-card { padding:16px; }
 .poker-stats .activity-column { padding:20px 0 0; border-left:0; border-top:1px solid var(--poker-border); }
 .poker-stats .rake-rate { padding:16px 0; }
 .poker-stats .rake-total { padding:16px 12px; }
 .poker-stats .rake-total .micro { font-size:9px; letter-spacing:.06em; }
 .poker-stats .activity-row { gap:8px; }
 .poker-stats .activity-copy strong { font-size:11px; }
 .poker-stats .activity-value strong { font-size:13px; }
}
@media(max-width:350px) {
 .poker-stats.stats-panel { padding:16px 12px; }
 .poker-stats .activity-icon { display:none; }
 .poker-stats .rake-total .amount { font-size:21px; }
 .poker-stats .level-symbol { flex-basis:40px; height:52px; }
 .poker-stats .level-top { gap:8px; }
 .poker-stats .level-name { font-size:18px; }
 .poker-stats .activity-bottom { gap:4px; }
}
@media(prefers-reduced-motion:reduce) { .poker-stats.stats-panel { animation:none; } }

/* Native cashier request uses the existing account/dialog components. */
#poker-deposit-amount, #poker-deposit-message { font-variant-numeric: tabular-nums; }
#poker-deposit-actions { margin-bottom: 16px; }

/* Cashier composes the existing quiet native dialog and control vocabulary. */
#poker-cashier { width:min(640px,calc(100% - 32px)); }
#poker-cashier .poker-eyebrow { margin:0 0 4px; color:var(--poker-accent); }
.pc-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.pc-tabs .poker-btn { flex:1; padding:8px 12px; font-size:.8rem; }
.pc-tabs .poker-btn:disabled { color:var(--poker-dim); background:var(--poker-raised); border-color:var(--poker-border); filter:grayscale(1); }
.pc-tabs [aria-selected=true]:not(:disabled) { border-color:var(--poker-accent); color:var(--poker-accent); }
#poker-cashier select { width:100%; min-height:48px; background:var(--poker-bg); color:var(--poker-text); border:1px solid var(--poker-border); border-radius:8px; padding:12px; font:inherit; }
.pc-copy { display:flex; align-items:center; gap:8px; }
.pc-copy input { font-variant-numeric:tabular-nums; }
.pc-deposit-grid { display:grid; grid-template-columns:minmax(0,1fr) 160px; align-items:center; gap:16px; margin-top:8px; }
#pc-qr { width:160px; height:160px; border-radius:8px; }
.pc-transfer-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.pc-summary { padding:16px; border:1px solid var(--poker-accent); border-radius:12px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.pc-history-heading { margin-top:24px; }
.pc-history-heading h3 { min-width:0; }
.poker-btn.pc-history-toggle { font:inherit; color:var(--poker-text); justify-content:flex-start; text-align:left; }
.pc-history-toggle .caret { flex-shrink:0; transition:transform .15s var(--poker-ease); }
.pc-history-toggle[aria-expanded=true] .caret { transform:rotate(180deg); }
@media(prefers-reduced-motion:reduce) { .pc-history-toggle .caret { transition:none; } }
.pc-history { padding:0; margin:0; list-style:none; }
.pc-history li { padding:12px 0; border-bottom:1px solid var(--poker-border); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.pc-history li small { margin:4px 0 0; }
.poker-panel .pc-tx-link { color:var(--poker-accent); text-decoration:underline; text-underline-offset:2px; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; transition:color 150ms var(--poker-ease); }
.poker-panel .pc-tx-link:is(:hover, :focus-visible, :active) { color:var(--poker-text); }
@media(prefers-reduced-motion:reduce) { .poker-panel .pc-tx-link { transition:none; } }
@media(max-width:540px) { .pc-deposit-grid { grid-template-columns:minmax(0,1fr); } #pc-qr { justify-self:center; margin-top:8px; } }

/* Wallet requests compose the existing Cashier form, summary and button primitives. */
.pc-methods [aria-pressed=true] { border-color:var(--poker-accent); color:var(--poker-accent); }
.pc-request { margin-top:16px; }
#pc-request-summary { padding:0; border:0; color:var(--poker-text); font-weight:600; }
.pc-wallet-link { display:flex; flex-direction:column; gap:16px; margin-bottom:16px; }
#pc-request-qr { align-self:center; border-radius:8px; }
#pc-xaman-open { text-decoration:none; }
#pc-request-status { min-height:1.5em; }
#pc-wallet-amount { font-variant-numeric:tabular-nums; }
