/* One document scroller; fixed navigation must not cover the final card. */
html { scrollbar-gutter: stable; }
body.simple-ux { background-attachment: scroll; }
.rush-workspace { min-height: 100svh; }
.rush-workspace > .main-content { min-height: calc(100svh - var(--header)); padding-bottom: 80px; }
.disclosure-panel > summary { touch-action: pan-y pinch-zoom; }
.disclosure-panel, .disclosure-body { overflow: visible; }
.wallet-payment-requests { touch-action: pan-y pinch-zoom; }
.wallet-payment-requests .section-heading { margin: 0; }
.wallet-payment-requests h2 { margin: 0; font-size: 18px; }
.wallet-payment-requests .request-count { min-width: 28px; text-align: center; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; color: var(--muted); }
.wallet-payment-requests .request-row:last-child { border-bottom: 0; }

/* Account identity, credentials and actions share one compact surface. */
.game-room-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 24px; }
.game-room-header { display: flex; align-items: center; gap: 14px; min-width: 0; }
.game-room-art { width: 64px; height: 64px; flex: none; object-fit: contain; border-radius: 16px; background: #0a0f1d; }
.game-room-header > div { min-width: 0; }
.game-room-eyebrow { color: var(--muted); font-size: 11px; }
.game-room-header h1 { margin: 2px 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; text-wrap: balance; overflow-wrap: anywhere; }
.game-room-header .connected-label { font-size: 10px; }
.game-room-score { display: flex; align-items: center; gap: 18px; text-align: right; }
.game-room-score span { display: block; color: var(--muted); font-size: 11px; }
.game-room-score strong { display: block; font: 800 30px/1.2 Bricolage, sans-serif; color: var(--gold); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.game-room-score .score-refresh { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; color: var(--gold); background: #1a2234; }
.game-room-score .score-refresh span { display: none; }
.game-credentials-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.game-credentials-grid > div { min-width: 0; }
.game-room-panel .credential-label { margin: 0 0 6px; }
.game-room-panel .credential-field { padding: 4px 6px 4px 12px; min-height: 54px; gap: 4px; }
.game-room-panel .credential-field:focus-within { border-color: var(--gold); }
.game-room-panel .credential-field input { font-size: 16px; min-width: 0; }
.game-room-panel .credential-action { width: 44px; height: 44px; min-height: 44px; background: transparent; }
.game-room-panel .credential-action:hover { background: #1a2234; color: var(--gold); }
.game-room-panel .credential-action svg, .game-room-panel .copy-login svg { width: 19px; height: 19px; }
.game-login-tools { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-top: -12px; min-width: 0; }
.game-room-panel .copy-login { flex: none; min-height: 40px; padding: 5px 0; font-size: 12px; }
.game-room-panel .credential-feedback { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.game-room-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.game-room-actions .game-transfer-action { min-height: 52px; padding: 12px; justify-content: center; gap: 8px; border-radius: 12px; background: #1a2234; border-color: var(--line); }
.game-room-actions .game-transfer-action strong { font-size: 14px; }
.game-room-actions .game-transfer-action svg { width: 20px; height: 20px; margin: 0; }
.game-room-actions .game-room-play { min-height: 52px; border-radius: 12px; font-size: 14px; }
.game-room-panel .game-password-reset { grid-column: 1 / -1; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.game-room-panel .game-password-reset summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 10px; border: 1px solid #94a3c838; border-radius: 12px; color: #b4c8ec; background: #0d1422; list-style: none; cursor: pointer; }
.game-password-reset summary::-webkit-details-marker { display: none; }
.game-password-reset summary > svg { width: 20px; height: 20px; flex: none; }
.game-password-reset summary > span { flex: 1; }
.game-password-reset summary small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.game-password-reset[open] summary > .ux-icon { transform: rotate(90deg); }
.game-room-panel .game-password-reset form { padding: 14px 4px 0; gap: 14px; }
.game-password-reset form label { display: flex; align-items: flex-start; gap: 9px; line-height: 1.5; }
.game-password-reset form input[type=checkbox] { flex: none; width: 18px; height: 18px; margin: 2px 0; accent-color: #9bbbf1; }
.game-password-confirm { min-height: 44px; padding: 10px 14px; border: 1px solid #53688b; border-radius: 10px; background: #1b2941; color: #d7e5ff; font-size: 13px; font-weight: 600; }
.game-room-sync { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 11px; }
.game-room-sync .player-sync-status { margin: 3px 0 0; font-size: 11px; }
.game-room-sync .is-error, .credential-feedback.is-error { color: #ffb9bf; }
[data-player-account] > .game-activity { margin: 20px 0; }
.game-activity .activity-filters a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 768px) {
  html { scroll-padding-bottom: calc(144px + env(safe-area-inset-bottom)); }
  .rush-workspace > .main-content { padding-bottom: calc(144px + env(safe-area-inset-bottom)); }
  .has-customer-chat .rush-workspace > .main-content { padding-bottom: 16px; }
  .game-room-panel { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px; }
  .game-room-header { gap: 12px; }
  .game-room-art { width: 56px; height: 56px; border-radius: 14px; }
  .game-room-header h1 { font-size: 26px; }
  .game-room-score { justify-content: space-between; text-align: left; padding: 12px 14px; border: 1px solid #6b552c; border-radius: 12px; background: #201c13; }
  .game-room-score strong { font-size: 28px; }
  .game-credentials-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .game-room-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .game-room-actions .game-room-play { grid-column: 1 / -1; }
  .game-room-actions .game-transfer-action strong { font-size: 13px; }
  .game-room-panel .game-password-reset { padding-top: 12px; }
}
@media (min-width: 769px) and (max-width: 1000px) {
  .game-credentials-grid { grid-template-columns: minmax(0, 1fr); }
}

.funding-wallet-option > span { min-width: 0; overflow-wrap: anywhere; }
.funding-wallet-option:has(input:disabled) { opacity: .7; }
@media (max-width: 480px) {
  .ux-dialog .funding-wallet-picker { grid-template-columns: minmax(0, 1fr); }
  .ux-dialog .funding-wallet-option { min-height: 64px; }
}
/* Successful checks need no explanatory footer; keep actual errors visible. */
.game-room-sync [data-balance-status]:empty { display: none; }
