/* Modular player-profile block: kept separate so future account cards can grow independently. */
.profile-card { min-width: 0; }
.profile-card-heading-v2 { align-items: center; gap: 12px; margin-bottom: 16px; }
.profile-avatar-shell { position: relative; overflow: hidden; isolation: isolate; }
.profile-avatar-shell::after { position: absolute; inset: 0; z-index: -1; content: ""; background: radial-gradient(circle at 30% 20%, rgba(255,210,143,.2), transparent 65%); }
.profile-avatar-fallback { display: grid; width: 100%; height: 100%; place-items: center; font-size: 19px; font-weight: 900; text-transform: uppercase; }
.profile-avatar-shell img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-card-title-wrap { min-width: 0; flex: 1; }
.profile-card-title-wrap h2 { overflow-wrap: anywhere; }
.profile-login-line { display: block; margin-top: 5px; color: #b18a68; font-size: 10px; font-weight: 750; overflow-wrap: anywhere; }
.profile-detail-row { position: relative; align-items: center; gap: 10px; }
.profile-detail-row > span { flex: 0 0 auto; }
.profile-detail-row > strong { min-width: 0; max-width: 68%; font-variant-numeric: tabular-nums; }
.profile-id-row > strong { flex: 1 1 auto; max-width: none; color: #ffd09a; letter-spacing: .02em; }
.profile-copy-id { display: inline-grid; place-items: center; width: 30px; height: 28px; flex: 0 0 30px; border: 1px solid rgba(255,199,126,.18); border-radius: 9px; background: rgba(255,164,79,.055); color: #ffcf97; font-size: 17px; cursor: pointer; }
.profile-copy-id:hover { border-color: rgba(255,199,126,.42); background: rgba(255,164,79,.12); }
.profile-actions-row { display: flex; margin-top: 17px; padding-top: 15px; border-top: 1px solid rgba(255,215,182,.075); }
.profile-edit-toggle { display: inline-flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; min-height: 43px; padding: 0 14px; border: 1px solid rgba(255,178,99,.22); border-radius: 12px; background: linear-gradient(120deg, rgba(108,51,26,.24), rgba(40,23,17,.3)); color: #ffd6a7; font-size: 10px; font-weight: 850; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.profile-edit-toggle:hover { border-color: rgba(255,178,99,.46); background: rgba(111,53,24,.26); transform: translateY(-1px); }
.profile-edit-toggle > span:last-child { font-size: 16px; }
.profile-edit-panel { margin-top: 15px; padding: 16px; border: 1px solid rgba(255,196,139,.12); border-radius: 14px; background: rgba(7,5,5,.28); }
.profile-edit-form { display: grid; gap: 14px; }
.profile-form-field { display: grid; gap: 7px; min-width: 0; color: #dbc6b2; font-size: 10px; font-weight: 800; }
.profile-form-field input[type="text"] { width: 100%; min-width: 0; height: 43px; padding: 0 12px; border: 1px solid rgba(255,218,188,.12); border-radius: 10px; background: rgba(3,2,2,.42); color: #fff1e0; font-size: 12px; outline: none; }
.profile-form-field input[type="text"]:focus { border-color: rgba(255,181,101,.58); box-shadow: 0 0 0 3px rgba(255,139,59,.08); }
.profile-form-field small { color: #827267; font-size: 9px; line-height: 1.6; font-weight: 600; }
.profile-avatar-control { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.profile-file-button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 37px; padding: 0 11px; border: 1px solid rgba(255,190,121,.21); border-radius: 9px; background: rgba(255,170,86,.065); color: #ffcea0; font-size: 9px; font-weight: 850; cursor: pointer; }
.profile-file-button:hover { border-color: rgba(255,190,121,.44); }
.profile-file-name { min-width: 0; max-width: 100%; color: #8c7c70; font-size: 9px; overflow-wrap: anywhere; }
.profile-remove-avatar { display: flex; align-items: center; gap: 8px; color: #ce9e8b; font-size: 10px; font-weight: 700; }
.profile-remove-avatar input { accent-color: #ff9856; width: 15px; height: 15px; }
.profile-edit-buttons { display: flex; align-items: center; gap: 9px; }
.profile-save-button, .profile-cancel-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 41px; padding: 0 13px; border-radius: 10px; font-size: 10px; font-weight: 850; cursor: pointer; }
.profile-save-button { flex: 1; border: 1px solid rgba(255,206,147,.28); background: linear-gradient(105deg,#ffe0a0,#ffad55 58%,#ef5d34); color: #2b130a; box-shadow: inset 0 1px rgba(255,255,255,.28); }
.profile-save-button:disabled { opacity: .65; cursor: wait; }
.profile-save-button > span:last-child { font-size: 15px; }
.profile-cancel-button { border: 1px solid rgba(255,218,188,.12); background: rgba(255,255,255,.025); color: #c0ab98; }
.profile-form-feedback { margin: 0; padding: 9px 10px; border: 1px solid rgba(255,202,148,.12); border-radius: 9px; color: #d6bfa9; background: rgba(255,255,255,.025); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.profile-form-feedback[data-kind="success"] { color: #a5e5b5; border-color: rgba(130,223,154,.2); background: rgba(49,124,65,.08); }
.profile-form-feedback[data-kind="error"] { color: #ffb6a5; border-color: rgba(240,112,91,.22); background: rgba(126,36,26,.1); }
.account-avatar { overflow: hidden; padding: 0; }
.account-avatar-image { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.auth-field-hint { margin: -6px 0 1px; color: #827267; font-size: 9px; line-height: 1.55; }
@media (max-width: 560px) {
  .profile-card-heading-v2 { gap: 10px; }
  .profile-avatar-shell { width: 45px; height: 45px; flex-basis: 45px; border-radius: 14px; }
  .profile-verified { max-width: 94px; padding: 5px 6px; font-size: 7px; white-space: normal; text-align: center; }
  .profile-detail-row { align-items: flex-start; }
  .profile-detail-row > span { max-width: 42%; font-size: 9px; }
  .profile-detail-row > strong { max-width: 58%; font-size: 9px; }
  .profile-id-row > strong { max-width: none; overflow-wrap: anywhere; }
  .profile-edit-panel { padding: 13px; }
}
/* Keep account overview cards independent in height so future account modules can be added cleanly. */
.account-overview-grid { align-items: start; }

/* Phoenix account dashboard: clear priorities, compact secondary sections, mobile-first cards. */
.workspace-heading-account { align-items: flex-start; margin-bottom: 22px; }
.workspace-heading-account h1 { margin: 0 0 8px; font-size: clamp(29px, 3.3vw, 42px); letter-spacing: -.035em; }
.workspace-heading-account p { max-width: 520px; font-size: 12px; }
.account-overview-grid { grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); align-items: stretch; gap: 16px; margin-bottom: 28px; }
.wallet-hero-card, .profile-card { min-height: 100%; }
.wallet-hero-card { display: flex; flex-direction: column; justify-content: flex-start; }
.wallet-card-bottom { margin-top: auto; padding-top: 17px; }
.profile-card { padding: clamp(18px, 2.4vw, 25px); }
.profile-card-heading-v2 { margin-bottom: 15px; }
.profile-avatar-shell { width: 56px; height: 56px; flex-basis: 56px; border-radius: 17px; background: linear-gradient(145deg, #382016, #17100e); box-shadow: 0 5px 18px rgba(0,0,0,.23), inset 0 1px rgba(255,255,255,.08); }
.profile-avatar-shell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: inherit; image-rendering: auto; }
.profile-avatar-shell[hidden], .profile-avatar-shell img[hidden] { display: none !important; }
.profile-avatar-fallback { position: relative; z-index: 1; color: #ffd19a; font-size: 23px; }
.profile-card-title-wrap h2 { margin: 0; color: #fff0de; font-size: clamp(17px, 2vw, 22px); line-height: 1.2; font-weight: 850; overflow-wrap: anywhere; }
.profile-login-line { margin-top: 6px; color: #ffb46b; font-size: 11px; letter-spacing: .015em; }
.profile-verified { align-self: flex-start; max-width: 110px; padding: 6px 8px; font-size: 8px; }
.profile-detail-row { padding: 11px 0; }
.profile-detail-row > span { color: #99877a; font-size: 10px; }
.profile-detail-row > strong { color: #f0deca; font-size: 11px; }
.profile-id-row > strong { color: #ffd09a; letter-spacing: .055em; }
.profile-more-details { margin-top: 3px; border-top: 1px solid rgba(255,215,182,.075); }
.profile-more-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; color: #c9ad91; font-size: 10px; font-weight: 800; cursor: pointer; list-style: none; }
.profile-more-details > summary::-webkit-details-marker { display: none; }
.profile-more-details > summary::after { content: '⌄'; color: #e9a55f; font-size: 17px; transition: transform .18s; }
.profile-more-details[open] > summary::after { transform: rotate(180deg); }
.profile-more-details .profile-detail-row:first-of-type { border-top: 1px solid rgba(255,215,182,.055); }
.profile-actions-row { margin-top: 12px; padding-top: 12px; }
.profile-edit-toggle { min-height: 42px; border-radius: 13px; font-size: 11px; }

.account-tools { margin: 0 0 20px; }
.account-tools-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.account-tools-heading h2 { margin: 0; color: #fff0df; font-size: clamp(18px, 2.1vw, 22px); font-weight: 850; letter-spacing: -.025em; }
.account-tools-heading p { margin: 5px 0 0; color: #938176; font-size: 10px; line-height: 1.55; }
.account-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.account-action-card { position: relative; isolation: isolate; display: grid; grid-template-columns: 42px minmax(0, 1fr) 17px; align-items: center; gap: 11px; min-width: 0; min-height: 88px; padding: 13px 13px; overflow: hidden; text-align: left; border: 1px solid rgba(255,205,157,.105); border-radius: 17px; background: linear-gradient(135deg, rgba(35,23,18,.94), rgba(17,12,11,.94)); color: #f8e7d5; box-shadow: 0 10px 24px rgba(0,0,0,.12), inset 0 1px rgba(255,255,255,.025); cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.account-action-card::before { position: absolute; z-index: -1; content: ''; width: 95px; height: 95px; right: -40px; bottom: -49px; border-radius: 50%; background: rgba(231,97,38,.065); filter: blur(1px); transition: transform .25s ease, background .25s ease; }
.account-action-card:hover, .account-action-card:focus-visible { transform: translateY(-2px); border-color: rgba(255,171,96,.36); background: linear-gradient(135deg, rgba(49,29,20,.98), rgba(20,13,11,.97)); box-shadow: 0 14px 28px rgba(0,0,0,.2), 0 0 23px rgba(232,91,36,.055); }
.account-action-card:hover::before { transform: scale(1.25); background: rgba(231,97,38,.11); }
.account-action-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,183,108,.18); border-radius: 13px; background: linear-gradient(145deg, rgba(121,56,27,.24), rgba(36,22,16,.57)); color: #ffbd78; }
.account-action-icon svg { display: block; width: 22px; height: 22px; }
.account-action-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.account-action-copy strong { color: #f7e5d2; font-size: 11px; font-weight: 850; line-height: 1.3; overflow-wrap: anywhere; }
.account-action-copy small { color: #8f7c6f; font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; }
.account-action-arrow { align-self: center; color: #a98465; font-size: 16px; transition: color .18s, transform .18s; }
.account-action-card:hover .account-action-arrow { color: #ffd19b; transform: translate(1px, -1px); }
.account-expanded-panels { display: grid; gap: 16px; }
.account-expanded-panel[hidden] { display: none !important; }
.account-expanded-panel:not([hidden]) { animation: account-panel-in .2s ease-out both; }
@keyframes account-panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.account-expanded-panel > .wallet-panel, .account-expanded-panel > .transactions-panel { width: 100%; margin: 0; }
.account-expanded-panel .transactions-empty { min-height: 150px; }
.account-action-card[aria-expanded="true"] { border-color: rgba(255,181,101,.43); background: linear-gradient(135deg, rgba(68,36,22,.95), rgba(20,13,11,.98)); }

/* Footer payment selector uses the same visual language as the Phoenix wallet. */
.footer-payments { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 12px 24px; padding-top: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,224,195,.06); }
.footer-payments-kicker { color: #d99a5b; font-size: 8px; font-weight: 900; letter-spacing: .2em; }
.footer-payments-copy h2 { margin: 7px 0 5px; color: #f8e6d2; font-size: clamp(16px, 2vw, 20px); font-weight: 850; letter-spacing: -.025em; }
.footer-payments-copy p { margin: 0; color: #857368; font-size: 10px; line-height: 1.6; }
.footer-payment-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.footer-payment-option { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 61px; padding: 9px 10px; border: 1px solid rgba(255,206,153,.13); border-radius: 15px; background: linear-gradient(145deg, rgba(31,21,17,.85), rgba(14,10,9,.9)); text-align: left; }

.footer-payment-option > img { display: block; flex: 0 0 38px; width: 38px; height: 38px; object-fit: cover; object-position: center; border-radius: 11px; background: #141d27; box-shadow: 0 3px 12px rgba(0,0,0,.22); }
.footer-payment-option-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.footer-payment-option-copy strong { color: #f5e3d0; font-size: 11px; font-weight: 900; }
.footer-payment-option-copy small { color: #8e7c70; font-size: 9px; line-height: 1.25; }
.footer-payment-option-mark { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; margin-left: auto; border: 1px solid rgba(139,220,160,.16); border-radius: 50%; color: #9bdcaf; font-size: 11px; }
.footer-payments-note { grid-column: 1 / -1; margin: 0; color: #6f5e53; font-size: 9px; line-height: 1.55; }

.account-info-dialog { position: fixed; inset: 0; width: min(420px, calc(100vw - 28px)); max-width: 100%; max-height: min(88dvh, 640px); margin: auto; padding: 0; overflow: auto; border: 1px solid rgba(255,190,122,.25); border-radius: 22px; color: #fff1e2; background: radial-gradient(circle at 90% 0, rgba(190,75,28,.16), transparent 42%), linear-gradient(150deg, #21140f, #100b0a 72%); box-shadow: 0 28px 90px rgba(0,0,0,.72); }
.account-info-dialog::backdrop { background: rgba(4,3,3,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.account-info-shell { position: relative; padding: 28px 25px 23px; }
.account-info-close { position: absolute; top: 13px; right: 13px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,221,188,.12); border-radius: 11px; background: rgba(255,255,255,.025); color: #dfc8b2; font-size: 23px; cursor: pointer; }
.account-info-mark { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 17px; border: 1px solid rgba(255,183,108,.2); border-radius: 16px; background: linear-gradient(145deg, rgba(126,58,27,.38), rgba(43,24,17,.58)); color: #ffc17e; font-size: 25px; }
.account-info-shell h2 { margin: 0 42px 9px 0; color: #fff0df; font-size: 23px; line-height: 1.2; }
.account-info-shell p { margin: 0; color: #b09c8d; font-size: 12px; line-height: 1.75; }
.account-info-confirm { width: 100%; min-height: 43px; margin-top: 23px; border: 1px solid rgba(255,205,142,.3); border-radius: 12px; background: linear-gradient(110deg, #ffe4a8, #ffb45f 56%, #ed5c35); color: #2b130a; font-size: 11px; font-weight: 900; cursor: pointer; box-shadow: inset 0 1px rgba(255,255,255,.3); }

/* Give avatars a predictable crop and enough pixels in the account header on both PC and mobile. */
.account-avatar { width: 33px; height: 33px; flex: 0 0 33px; overflow: hidden; padding: 0; border: 1px solid rgba(255,206,145,.48); border-radius: 10px; background: linear-gradient(135deg,#ffe1a1,#f36a38); color: #2b1209; font-size: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.2); vertical-align: middle; }
.account-avatar-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: inherit; image-rendering: auto; }

@media (max-width: 900px) {
  .account-overview-grid { grid-template-columns: minmax(0,1fr); }
  .account-overview-grid > * { min-height: 0; }
  .wallet-hero-card { min-height: 0; }
  .account-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-payments { grid-template-columns: 1fr; gap: 14px; }
  .footer-payments-note { grid-column: auto; }
}
@media (max-width: 560px) {
  .workspace-heading-account { margin-bottom: 18px; }
  .workspace-heading-account h1 { font-size: clamp(29px, 8vw, 37px); }
  .workspace-heading-account p { font-size: 11px; }
  .account-overview-grid { gap: 12px; margin-bottom: 23px; }
  .profile-card { padding: 17px; }
  .profile-avatar-shell { width: 51px; height: 51px; flex-basis: 51px; border-radius: 15px; }
  .profile-avatar-fallback { font-size: 21px; }
  .profile-card-heading-v2 { gap: 10px; }
  .profile-card-title-wrap h2 { font-size: 18px; }
  .profile-verified { max-width: 84px; padding: 5px 6px; font-size: 7px; }
  .profile-id-row { gap: 7px; }
  .profile-id-row > span { max-width: none; font-size: 9px; }
  .profile-id-row > strong { font-size: 10px; letter-spacing: .015em; }
  .profile-copy-id { width: 28px; height: 28px; flex-basis: 28px; }
  .account-tools { margin-bottom: 16px; }
  .account-tools-heading { margin-bottom: 11px; }
  .account-tools-heading h2 { font-size: 19px; }
  .account-tools-heading p { max-width: 290px; font-size: 9px; }
  .account-action-grid { gap: 8px; }
  .account-action-card { grid-template-columns: 35px minmax(0,1fr) 12px; gap: 8px; min-height: 82px; padding: 10px 9px; border-radius: 14px; }
  .account-action-icon { width: 35px; height: 35px; border-radius: 11px; }
  .account-action-icon svg { width: 19px; height: 19px; }
  .account-action-copy strong { font-size: 10px; }
  .account-action-copy small { font-size: 8px; }
  .account-action-arrow { font-size: 14px; }
  .account-expanded-panels { gap: 12px; }
  .footer-payments { padding-top: 21px; padding-bottom: 18px; }
  .footer-payments-copy h2 { font-size: 17px; }
  .footer-payments-copy p { font-size: 9px; }
  .footer-payment-options { gap: 7px; }
  .footer-payment-option { min-height: 57px; gap: 7px; padding: 8px 7px; border-radius: 13px; }
  .footer-payment-option > img { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; }
  .footer-payment-option-copy strong { font-size: 10px; }
  .footer-payment-option-copy small { font-size: 8px; }
  .footer-payment-option-mark { width: 18px; height: 18px; flex-basis: 18px; font-size: 10px; }
  .footer-payments-note { font-size: 8px; }
  .account-info-shell { padding: 25px 19px 19px; }
  .account-avatar { width: 31px; height: 31px; flex-basis: 31px; border-radius: 9px; }
}
@media (max-width: 370px) {
  .account-action-grid { grid-template-columns: minmax(0, 1fr); }
  .account-action-card { grid-template-columns: 40px minmax(0,1fr) 17px; min-height: 75px; padding: 11px 12px; }
  .account-action-icon { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .account-action-card, .account-action-card::before, .account-action-arrow, .footer-payment-option { transition: none; }
  .account-expanded-panel:not([hidden]) { animation: none; }
}

/* Keep payment and account thumbnails crisp and aligned across DPRs. */
.account-avatar-image, .profile-avatar-shell img, .footer-payment-option > img { image-rendering: auto; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.account-avatar-image { object-position: center; }


/* Phoenix Casino account v3: compact first screen, separate task pages, fixed nav. */
[hidden] { display: none !important; }
body { display: block !important; min-height: 100vh; min-height: 100dvh; padding-bottom: calc(100px + env(safe-area-inset-bottom)) !important; }
body > main#top { flex: none !important; min-height: 0; width: 100%; }
.site-footer { flex: none !important; margin-top: clamp(28px, 4vw, 46px) !important; }
.workspace-view { min-height: 0 !important; padding-top: clamp(24px, 4vw, 40px) !important; padding-bottom: 26px !important; }
.workspace-heading-account { margin-bottom: 16px !important; }
.workspace-heading-account p { display: none !important; }
.workspace-heading-account h1 { margin: 0 !important; font-size: clamp(22px, 3vw, 30px) !important; }
.account-overview-grid { display: grid !important; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) !important; align-items: center !important; gap: clamp(12px, 2vw, 22px) !important; margin-bottom: 18px !important; }
.wallet-summary-column { min-width: 0; display: grid; gap: 8px; }
.wallet-hero-card.wallet-hero-art-card { position: relative; width: 100%; max-width: 740px; aspect-ratio: 3.13 / 1; min-height: 100px; padding: 0 !important; border: 0 !important; border-radius: 0 !important; overflow: visible !important; background: transparent !important; box-shadow: none !important; isolation: isolate; }
.wallet-hero-art-card::before, .wallet-hero-art-card::after { display: none !important; content: none !important; }
.wallet-banner-art { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; user-select: none; }
.wallet-banner-balance { position: absolute; top: 53%; left: 50%; transform: translate(-50%, -50%); width: 56%; min-width: 0; display: flex; align-items: baseline; justify-content: center; gap: clamp(4px, .8vw, 10px); white-space: nowrap; color: #fff0d1; font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(255,135,28,.2); }
.wallet-banner-balance strong { display: block; min-width: 0; max-width: 85%; overflow: hidden; text-overflow: ellipsis; font-size: clamp(15px, 2.25vw, 27px); line-height: 1; letter-spacing: -.035em; font-weight: 850; }
.wallet-banner-balance span { flex: 0 0 auto; color: #ffb44b; font-size: clamp(8px, 1.1vw, 12px); font-weight: 900; }
.wallet-summary-actions { display: flex; justify-content: center; }
.wallet-primary-action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; max-width: 330px; min-height: 39px; padding: 0 14px; border: 1px solid rgba(255,174,75,.35); border-radius: 12px; background: linear-gradient(115deg, #ffdf8c 0%, #ff9b43 56%, #ed562d 100%); color: #281006; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; box-shadow: 0 6px 16px rgba(218,78,22,.13), inset 0 1px rgba(255,255,255,.48); transition: transform .18s, filter .18s; }
.wallet-primary-action:hover { transform: translateY(-1px); filter: brightness(1.06); }
.wallet-primary-plus { font-size: 20px; line-height: 1; }
.wallet-action-arrow { margin-left: auto; font-size: 16px; }
.account-summary-card { min-width: 0; padding: clamp(15px, 2vw, 22px) !important; }
.profile-card-heading-v2 { margin-bottom: 10px !important; gap: 11px !important; }
.profile-avatar-shell { overflow: hidden; isolation: isolate; }
.profile-avatar-shell img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; image-rendering: auto; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.profile-avatar-fallback { display: grid; place-items: center; width: 100%; height: 100%; }
.profile-card-title-wrap h2 { margin: 0 !important; font-size: clamp(15px, 1.7vw, 19px) !important; overflow-wrap: anywhere; }
.profile-login-line { display: block; margin-top: 4px; color: #d79a64; font-size: 11px !important; font-weight: 750; overflow-wrap: anywhere; }
.account-summary-card .profile-detail-row { padding: 10px 0 !important; gap: 10px !important; }
.account-summary-card .profile-detail-row > span { font-size: 10px !important; color: #a08b78 !important; }
.account-summary-card .profile-detail-row > strong { max-width: 70% !important; font-size: 11px !important; color: #f3e2ce !important; overflow-wrap: anywhere; }
.account-summary-card .profile-id-row > strong { max-width: none !important; flex: 1 1 auto; color: #ffd092 !important; letter-spacing: .025em; }
.account-tools { margin: 15px 0 0 !important; }
.account-action-grid.account-action-list { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
.account-action-list .account-action-card { display: grid !important; grid-template-columns: 40px minmax(0,1fr) 18px !important; align-items: center; gap: 12px !important; min-height: 66px !important; padding: 10px 14px !important; border: 1px solid rgba(255,165,81,.13) !important; border-radius: 14px !important; background: linear-gradient(135deg, rgba(28,19,16,.97), rgba(13,10,9,.97)) !important; text-align: left; box-shadow: inset 0 1px rgba(255,255,255,.025); transition: border-color .18s, background .18s, transform .18s; }
.account-action-list .account-action-card:hover { border-color: rgba(255,168,74,.42) !important; background: linear-gradient(135deg, rgba(51,29,18,.98), rgba(17,11,9,.98)) !important; transform: translateY(-1px); }
.account-action-list .account-action-icon { display: grid; place-items: center; width: 40px !important; height: 40px !important; border-radius: 12px !important; border: 1px solid rgba(255,176,93,.22); background: linear-gradient(145deg, rgba(127,56,27,.33), rgba(43,22,15,.62)); color: #ffbb6c !important; }
.account-action-list .account-action-icon svg { display: block; width: 21px !important; height: 21px !important; }
.account-action-list .account-action-copy { min-width: 0; }
.account-action-list .account-action-copy strong { display: block; color: #f2dfca; font-size: 12px !important; font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
.account-action-list .account-action-arrow { color: #af8160 !important; font-size: 23px !important; font-weight: 400; line-height: 1; }
.account-action-list .account-action-copy small { display: none !important; }
.account-expanded-panels { margin-top: 12px; }
.account-expanded-panel[hidden] { display: none !important; }
.profile-settings-view, .payments-view { min-height: 0 !important; }
.profile-page-heading { align-items: center !important; margin-bottom: 20px !important; }
.profile-page-heading h1 { margin: 0 0 7px !important; font-size: clamp(27px, 4vw, 38px) !important; }
.profile-page-heading p { margin: 0 !important; font-size: 12px !important; }
.account-page-back { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 37px; padding: 0 12px; border: 1px solid rgba(255,184,107,.2); border-radius: 10px; background: rgba(255,255,255,.025); color: #e8c7a5; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.account-page-back > span:first-child { font-size: 20px; line-height: 1; }
.account-page-back:hover { border-color: rgba(255,178,83,.48); background: rgba(255,169,80,.07); }
.profile-settings-card { width: min(100%, 720px); margin: 0 auto; padding: clamp(17px, 3vw, 28px); border: 1px solid rgba(255,185,109,.14); border-radius: 20px; background: linear-gradient(145deg, rgba(29,19,15,.96), rgba(13,10,9,.98)); box-shadow: 0 18px 44px rgba(0,0,0,.25); }
.profile-settings-identity { display: flex; align-items: center; gap: 13px; min-width: 0; margin-bottom: 18px; }
.profile-data-avatar { width: 54px; height: 54px; flex-basis: 54px; border-radius: 16px; }
.profile-settings-identity > div { display: grid; gap: 4px; min-width: 0; }
.profile-settings-identity strong { color: #fff0df; font-size: 16px; overflow-wrap: anywhere; }
.profile-settings-identity small { color: #9d8877; font-size: 10px; }
.profile-settings-card .profile-detail-row { padding: 13px 0; }
.profile-settings-card .profile-detail-row > span { color: #9c8878; font-size: 11px; }
.profile-settings-card .profile-detail-row > strong { color: #f0ddc9; font-size: 11px; }
.profile-settings-card .profile-actions-row { margin-top: 15px; padding-top: 0; border-top: 0; }
.profile-settings-card .profile-edit-toggle { min-height: 46px; border-radius: 12px; font-size: 12px; }
.profile-settings-view #profileEditPanel { margin-top: 15px; }
.payments-view > .transactions-panel { width: min(100%, 900px); margin: 0 auto; }
.future-card { min-height: 170px !important; }
.workspace-secure { display: none !important; }

/* Real fixed bottom navigation on all views; the payment footer stays in document flow. */
.bottom-dock { position: fixed !important; z-index: 990 !important; left: 50% !important; right: auto !important; bottom: calc(12px + env(safe-area-inset-bottom)) !important; transform: translateX(-50%) !important; width: min(730px, calc(100vw - 32px)) !important; margin: 0 !important; }
.footer-payments { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; margin: 0 auto; padding: 25px 20px 28px !important; border-top: 1px solid rgba(255,171,83,.12); border-bottom: 0 !important; background: radial-gradient(ellipse at 50% 0%, rgba(139,53,20,.1), transparent 65%); }
.footer-payments-kicker, .footer-payments-copy p, .footer-payments-note, .footer-payment-option-copy, .footer-payment-option-mark { display: none !important; }
.footer-payments-copy { display: contents; }
.footer-payments-copy h2, .footer-payments > h2 { margin: 0 !important; color: #bf9a7b !important; font-size: 10px !important; font-weight: 800 !important; letter-spacing: .16em !important; text-transform: uppercase; text-align: center; }
.footer-payment-options { display: flex !important; align-items: center; justify-content: center; gap: 15px !important; }
.footer-payment-option { display: grid !important; place-items: center; flex: 0 0 46px; width: 46px !important; height: 46px !important; min-height: 46px !important; padding: 0 !important; overflow: hidden; border: 1px solid rgba(255,183,107,.23) !important; border-radius: 50% !important; background: #101010 !important; box-shadow: 0 4px 15px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.05); }
.footer-payment-option > img { display: block; width: 100% !important; height: 100% !important; flex: 0 0 100% !important; padding: 0; border-radius: 50% !important; object-fit: cover !important; object-position: center; }
.site-footer { margin-top: clamp(28px, 4vw, 42px) !important; }
.footer-inner { min-height: 65px !important; }
.footer-bottom { padding-bottom: 14px; }
.account-avatar { display: inline-grid; width: 36px !important; height: 36px !important; flex: 0 0 36px !important; padding: 0; overflow: hidden; place-items: center; border-radius: 50% !important; border: 1px solid rgba(255,191,122,.43); background: linear-gradient(135deg,#ffe1a1,#f36a38); color: #2b1209; font-size: 14px; }
.account-avatar-image { display: block; width: 100% !important; height: 100% !important; border-radius: 50% !important; object-fit: cover !important; object-position: center; image-rendering: auto; }

@media (max-width: 820px) {
  .account-overview-grid { grid-template-columns: minmax(0,1fr) !important; align-items: stretch !important; }
  .wallet-summary-column { gap: 6px; }
  .wallet-hero-card.wallet-hero-art-card { width: min(100%, 700px); margin-inline: auto; }
  .account-summary-card { padding: 17px !important; }
  .account-action-grid.account-action-list { grid-template-columns: minmax(0,1fr) !important; gap: 8px !important; }
}
@media (max-width: 560px) {
  body { padding-bottom: calc(91px + env(safe-area-inset-bottom)) !important; }
  .workspace-view { width: calc(100% - 26px) !important; padding-top: 23px !important; padding-bottom: 25px !important; }
  .workspace-heading-account { margin-bottom: 12px !important; }
  .wallet-hero-card.wallet-hero-art-card { width: 100%; min-height: 0; }
  .wallet-banner-balance { width: 56%; top: 53%; gap: 4px; }
  .wallet-banner-balance strong { font-size: clamp(14px, 4.5vw, 20px); }
  .wallet-banner-balance span { font-size: clamp(7px, 2.4vw, 10px); }
  .wallet-primary-action { min-height: 39px; font-size: 11px; }
  .account-summary-card { padding: 15px !important; }
  .profile-avatar-shell { width: 48px; height: 48px; flex-basis: 48px; border-radius: 14px; }
  .account-action-list .account-action-card { grid-template-columns: 38px minmax(0,1fr) 17px !important; min-height: 60px !important; padding: 8px 11px !important; border-radius: 12px !important; }
  .account-action-list .account-action-icon { width: 36px !important; height: 36px !important; border-radius: 11px !important; }
  .account-action-list .account-action-copy strong { font-size: 12px !important; }
  .profile-page-heading { align-items: flex-start !important; }
  .profile-page-heading h1 { font-size: clamp(24px, 7vw, 30px) !important; }
  .profile-page-heading p { max-width: 245px; font-size: 10px !important; }
  .account-page-back { min-height: 34px; padding-inline: 9px; font-size: 10px; }
  .profile-settings-card { padding: 16px; border-radius: 16px; }
  .footer-payments { padding: 20px 14px 23px !important; gap: 12px; }
  .footer-payments > h2 { font-size: 9px !important; letter-spacing: .13em !important; }
  .footer-payment-options { gap: 13px !important; }
  .footer-payment-option { flex-basis: 42px; width: 42px !important; height: 42px !important; min-height: 42px !important; }
  .footer-inner { flex-wrap: wrap; justify-content: center !important; gap: 11px 20px; padding: 12px 16px; }
  .bottom-dock { left: 7px !important; right: 7px !important; bottom: calc(6px + env(safe-area-inset-bottom)) !important; width: auto !important; transform: none !important; min-height: 62px; }
  .dock-item { min-width: 0; }
  .account-avatar { width: 32px !important; height: 32px !important; flex-basis: 32px !important; }
}
@media (max-width: 370px) {
  .account-action-list .account-action-card { min-height: 56px !important; grid-template-columns: 34px minmax(0,1fr) 15px !important; padding: 7px 8px !important; gap: 9px !important; }
  .account-action-list .account-action-icon { width: 33px !important; height: 33px !important; }
  .account-action-list .account-action-copy strong { font-size: 11px !important; }
}
@media (prefers-reduced-motion: reduce) { .account-action-list .account-action-card, .wallet-primary-action { transition: none; } }

/* Phoenix polish v2 — compact header wallet, focused deposit CTA, matte payment footer. */
.header-balance-button {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  flex: 0 1 auto !important;
  width: clamp(126px, 16vw, 166px) !important;
  min-width: 0 !important;
  max-width: 166px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 20px 0 23px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent url("assets/phoenix-header-balance.png?v=20261025-header-art") center / 100% 100% no-repeat !important;
  color: #fff0d8 !important;
  box-shadow: none !important;
  transition: filter .18s ease, transform .18s ease !important;
}
.header-balance-button:hover {
  border: 0 !important;
  background-color: transparent !important;
  filter: brightness(1.08) saturate(1.06);
  transform: translateY(-1px);
}
.header-balance-label { display: none !important; }
.header-balance-button #headerBalance,
.header-balance-button strong {
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 3px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: clamp(9px, 1.05vw, 12px) !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: -.015em !important;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 0 8px rgba(255,142,35,.18);
}
.header-balance-button #headerBalance small,
.header-balance-button strong small {
  display: inline !important;
  flex: 0 0 auto !important;
  color: #ffca83 !important;
  font-size: .72em !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

/* Bright, tactile CTA — ember warmth without a giant neon glow. */
.wallet-primary-action {
  position: relative !important;
  isolation: isolate;
  overflow: hidden !important;
  gap: 10px !important;
  min-height: 46px !important;
  max-width: 340px !important;
  padding: 0 15px !important;
  border: 1px solid rgba(255,166,77,.62) !important;
  border-radius: 14px !important;
  background: linear-gradient(115deg, #32140c 0%, #5d210f 48%, #2b100a 100%) !important;
  color: #fff0dc !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .01em;
  box-shadow: inset 0 1px rgba(255,235,195,.12), inset 0 -3px rgba(0,0,0,.16), 0 5px 15px rgba(0,0,0,.24) !important;
  transition: transform .18s ease, border-color .18s ease, filter .18s ease !important;
}
.wallet-primary-action::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255,89,31,.16), transparent 38%, rgba(255,190,84,.07));
}
.wallet-primary-action::after {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 1px;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,218,156,.62), transparent);
}
.wallet-primary-action:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.08) !important;
  border-color: rgba(255,192,112,.86) !important;
  box-shadow: inset 0 1px rgba(255,235,195,.17), 0 7px 20px rgba(119,38,11,.25) !important;
}
.wallet-primary-action:active { transform: translateY(0) scale(.99) !important; }
.wallet-primary-plus {
  display: grid !important;
  place-items: center;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255,226,172,.35);
  border-radius: 9px;
  background: linear-gradient(145deg, #ffcc75, #ee702d 65%, #a93217);
  color: #2b1007 !important;
  font-size: 20px !important;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 1px rgba(255,255,255,.35), 0 2px 7px rgba(0,0,0,.2);
}
.wallet-action-arrow {
  display: grid !important;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-left: auto;
  border: 1px solid rgba(255,205,137,.18);
  border-radius: 50%;
  background: rgba(0,0,0,.17);
  color: #ffd197 !important;
  font-size: 12px !important;
}

/* Flat, quiet footer: no artificial aura around payment-provider logos. */
.site-footer {
  flex: 0 0 auto !important;
  margin-top: auto !important;
  background: #090909 !important;
}
.footer-payments {
  background: #0b0b0c !important;
  box-shadow: none !important;
  border-top: 1px solid rgba(255,255,255,.055) !important;
}
.footer-payment-option {
  border: 1px solid rgba(255,255,255,.09) !important;
  background: #101012 !important;
  box-shadow: none !important;
}
.footer-payment-option > img {
  filter: none !important;
  box-shadow: none !important;
}
.footer-inner { border-bottom-color: rgba(255,255,255,.035) !important; }
.footer-bottom { background: #090909 !important; border-top-color: rgba(255,255,255,.04) !important; }

/* Short filtered views keep the footer at the bottom instead of letting it jump upward. */
html { min-height: 100%; }
body {
  min-height: 100vh !important;
  min-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
}
body > main#top { flex: 1 0 auto !important; width: 100%; }
.site-footer { margin-top: auto !important; }

/* Game-cover actions are compact centered chips; reserve room for close and title. */
.game-card.cover-first .game-art > h3 {
  left: 9px !important;
  right: 38px !important;
  top: 20% !important;
  max-width: calc(100% - 47px) !important;
  min-height: 0 !important;
  padding: 0 3px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  font-size: clamp(11px, 1.08vw, 14px) !important;
  line-height: 1.2 !important;
  text-align: center !important;
}
.game-card.cover-first.is-open .game-art > h3 { top: 20% !important; }
.game-card .art-link::after {
  top: auto;
  right: 7px !important;
  bottom: 7px !important;
  width: 25px !important;
  height: 25px !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  border-color: rgba(255,211,159,.24) !important;
  background: rgba(14,9,8,.88) !important;
  box-shadow: none !important;
}
.game-card.is-open .art-link::after {
  top: 6px !important;
  right: 6px !important;
  bottom: auto !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 7px !important;
  font-size: 15px !important;
  background: #5a2415 !important;
  border-color: rgba(255,181,104,.4) !important;
}
.game-card.cover-first.is-open .game-launch,
.game-card.cover-first.is-open .game-demo {
  left: 50% !important;
  right: auto !important;
  width: min(136px, calc(100% - 34px)) !important;
  max-width: calc(100% - 34px) !important;
  height: 31px !important;
  min-height: 31px !important;
  padding: 0 11px !important;
  border-radius: 10px !important;
  transform: translateX(-50%) !important;
  font-size: 10px !important;
  letter-spacing: 0 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.22) !important;
}
.game-card.cover-first.is-open .game-launch { bottom: calc(50% - 1px) !important; }
.game-card.cover-first.is-open .game-demo { bottom: calc(50% - 39px) !important; }
.game-card.cover-first.is-open .game-launch:hover,
.game-card.cover-first.is-open .game-demo:hover { filter: brightness(1.05); }

@media (max-width: 820px) {
  .header-balance-button { width: clamp(108px, 19vw, 132px) !important; height: 36px !important; min-height: 36px !important; padding: 0 16px 0 18px !important; }
  .header-balance-button #headerBalance,
  .header-balance-button strong { font-size: clamp(8px, 1.65vw, 10px) !important; }
  .wallet-primary-action { max-width: none !important; width: 100%; }
}
@media (max-width: 560px) {
  .header-balance-button { width: clamp(96px, 19vw, 124px) !important; height: 33px !important; min-height: 33px !important; padding: 0 13px 0 16px !important; }
  .header-balance-button #headerBalance,
  .header-balance-button strong { font-size: clamp(7px, 2.05vw, 9px) !important; gap: 2px !important; }
  .header-balance-button small,
  .header-balance-button strong small { font-size: .68em !important; }
  .wallet-primary-action { min-height: 45px !important; font-size: 11px !important; gap: 8px !important; }
  .wallet-primary-plus { flex-basis: 25px; width: 25px; height: 25px; }
  .game-card.cover-first.is-open .game-art > h3 { top: 18% !important; left: 8px !important; right: 33px !important; max-width: calc(100% - 41px) !important; font-size: 11px !important; }
  .game-card.cover-first.is-open .game-launch,
  .game-card.cover-first.is-open .game-demo { width: min(122px, calc(100% - 24px)) !important; max-width: calc(100% - 24px) !important; height: 30px !important; min-height: 30px !important; font-size: 9px !important; }
  .game-card.cover-first.is-open .game-launch { bottom: calc(50% - 1px) !important; }
  .game-card.cover-first.is-open .game-demo { bottom: calc(50% - 36px) !important; }
  .footer-payments { background: #0b0b0c !important; }
}
@media (prefers-reduced-motion: reduce) {
  .wallet-primary-action, .header-balance-button { transition: none !important; }
}


/* Phoenix UI polish v3: pure-CSS wallet chip, no artwork in the header. */
.header-balance-button {
  flex: 0 1 auto !important;
  width: clamp(116px, 15vw, 154px) !important;
  min-width: 0 !important;
  max-width: 154px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 10px !important;
  overflow: hidden !important;
  position: relative !important;
  isolation: isolate;
  border: 1px solid rgba(198, 103, 54, .56) !important;
  border-radius: 11px !important;
  background: #17100d !important;
  background-image: none !important;
  color: #f4e7da !important;
  box-shadow: inset 0 1px rgba(255, 231, 202, .07), inset 0 0 0 1px rgba(255, 135, 65, .035), 0 3px 10px rgba(0,0,0,.24) !important;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease !important;
}
.header-balance-button::before {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  left: 12px !important;
  right: 12px !important;
  top: 0 !important;
  height: 1px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(239, 143, 86, .46) !important;
  opacity: 1 !important;
  pointer-events: none !important;
}
.header-balance-button::after { content: none !important; display: none !important; }
.header-balance-button:hover {
  background: #1c120e !important;
  background-image: none !important;
  border-color: rgba(218, 123, 71, .74) !important;
  filter: none !important;
  transform: none !important;
  box-shadow: inset 0 1px rgba(255, 231, 202, .09), 0 4px 12px rgba(0,0,0,.3) !important;
}
.header-balance-label { display: none !important; }
.header-balance-button #headerBalance,
.header-balance-button strong {
  position: relative !important;
  z-index: 1 !important;
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 3px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #f6e9dd !important;
  font-size: clamp(9px, 1vw, 11px) !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  letter-spacing: -.015em !important;
  font-variant-numeric: tabular-nums;
  text-shadow: none !important;
}
.header-balance-button #headerBalance small,
.header-balance-button strong small {
  display: inline !important;
  flex: 0 0 auto !important;
  max-width: 34px !important;
  overflow: hidden !important;
  color: #c98a61 !important;
  font-size: .7em !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

/* A single solid copper-red deposit CTA: tactile, restrained, not glossy. */
.wallet-primary-action {
  background: #a44827 !important;
  background-image: none !important;
  color: #fff2e6 !important;
  border: 1px solid #b45a36 !important;
  border-radius: 12px !important;
  box-shadow: inset 0 1px rgba(255,242,225,.12), 0 3px 9px rgba(0,0,0,.23) !important;
  transform: none !important;
  filter: none !important;
}
.wallet-primary-action::before,
.wallet-primary-action::after { content: none !important; display: none !important; }
.wallet-primary-action:hover {
  background: #ae4d2b !important;
  background-image: none !important;
  border-color: #bd6742 !important;
  box-shadow: inset 0 1px rgba(255,242,225,.14), 0 4px 12px rgba(0,0,0,.26) !important;
  transform: translateY(-1px) !important;
  filter: none !important;
}
.wallet-primary-action:active { background: #963d21 !important; transform: translateY(0) !important; }
.wallet-primary-plus {
  background: transparent !important;
  color: #fff1e4 !important;
  border: 1px solid rgba(255,238,221,.25) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
.wallet-action-arrow {
  color: #ffe1cd !important;
  background: transparent !important;
  border-color: rgba(255,238,221,.18) !important;
  box-shadow: none !important;
}

/* The blurred ambient decorations were absolutely positioned at 440px/1050px.
   They extended the document's scrollable overflow after the footer. Pin them to
   the viewport so they remain purely decorative and cannot create a blank tail. */
.ambient,
.ambient-one,
.ambient-two {
  position: fixed !important;
  pointer-events: none !important;
}
.ambient-one { top: 34vh !important; }
.ambient-two { top: 72vh !important; }

/* Stable sticky-footer layout for the lobby and all page-view switches. */
html { min-height: 100%; }
body {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  width: 100%;
  overflow-x: clip !important;
}
body > main#top {
  display: block;
  flex: 1 0 auto !important;
  width: 100%;
  min-height: 0 !important;
}
.site-footer {
  position: relative;
  flex: 0 0 auto !important;
  width: 100%;
  margin-top: auto !important;
}
.bottom-dock { position: fixed !important; }

@media (max-width: 820px) {
  .header-balance-button {
    width: clamp(100px, 18vw, 128px) !important;
    max-width: 128px !important;
    height: 35px !important;
    min-height: 35px !important;
    padding-inline: 7px !important;
    border-radius: 10px !important;
  }
  .header-balance-button #headerBalance,
  .header-balance-button strong { font-size: clamp(8px, 1.45vw, 10px) !important; gap: 2px !important; }
}
@media (max-width: 560px) {
  .header-balance-button {
    width: clamp(88px, 18vw, 112px) !important;
    max-width: 112px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding-inline: 5px !important;
    border-radius: 9px !important;
  }
  .header-balance-button #headerBalance,
  .header-balance-button strong { font-size: clamp(7px, 2vw, 9px) !important; gap: 2px !important; }
  .header-balance-button #headerBalance small,
  .header-balance-button strong small { font-size: .68em !important; }
  .wallet-primary-action { width: 100%; max-width: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .header-balance-button, .wallet-primary-action { transition: none !important; }
}


/* Phoenix account/profile refinement v4: resilient avatar circle, crop workspace,
   and a real sticky-footer layout without a trailing padded background layer. */
.account-avatar {
  position: relative !important;
  display: inline-grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  flex: 0 0 36px !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 50% !important;
  background: #17100d !important;
  border: 1px solid rgba(201, 119, 73, .42) !important;
  line-height: 0 !important;
  isolation: isolate !important;
}
.account-avatar > .account-avatar-image {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: 50% 50% !important;
  background: #17100d !important;
  image-rendering: auto !important;
}

/* No body-level padding after the footer: that padding caused a separate blank
   tail below the footer. Reserve the mobile dock in the main content instead. */
html { min-height: 100%; background: #080808 !important; }
body {
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding-bottom: 0 !important;
  overflow-x: clip !important;
  background: #080808 !important;
}
body > main#top {
  display: flex !important;
  flex: 1 0 auto !important;
  flex-direction: column !important;
  width: 100% !important;
  min-height: max(0px, calc(100vh - 76px - 228px)) !important;
  min-height: max(0px, calc(100dvh - 76px - 228px)) !important;
  padding-bottom: calc(94px + env(safe-area-inset-bottom)) !important;
  background: transparent !important;
}
.site-footer {
  position: relative !important;
  z-index: 1 !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  margin-top: auto !important;
  padding-bottom: 0 !important;
  background: #080808 !important;
  background-image: none !important;
  border-top: 1px solid rgba(255,255,255,.055) !important;
}
.footer-inner, .footer-payments, .footer-bottom { background: #080808 !important; }
.footer-inner { border-bottom-color: rgba(255,255,255,.04) !important; }
.footer-payments { border-top-color: rgba(255,255,255,.035) !important; border-bottom-color: rgba(255,255,255,.035) !important; }
.footer-bottom { border-top-color: rgba(255,255,255,.04) !important; }
.bottom-dock { z-index: 100 !important; }

/* A restrained one-colour balance chip with occasional ember glints. */
.header-balance-button {
  flex: 0 1 152px !important;
  width: clamp(104px, 14vw, 152px) !important;
  min-width: 0 !important;
  max-width: 152px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 10px !important;
  overflow: hidden !important;
  isolation: isolate !important;
  border: 1px solid rgba(176, 91, 52, .56) !important;
  border-radius: 11px !important;
  background: #15100e !important;
  background-image: none !important;
  box-shadow: inset 0 1px rgba(255,235,219,.055), 0 3px 10px rgba(0,0,0,.24) !important;
}
.header-balance-button::before {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  left: 12px !important;
  right: 12px !important;
  top: 0 !important;
  height: 1px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(232, 133, 86, .4) !important;
  opacity: 1 !important;
  pointer-events: none !important;
}
.header-balance-button::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 0 !important;
  inset: 1px !important;
  border: 0 !important;
  border-radius: 9px !important;
  pointer-events: none !important;
  opacity: 0 !important;
  background:
    radial-gradient(circle at 13% 56%, rgba(255,105,58,.95) 0 1px, transparent 1.9px),
    radial-gradient(circle at 26% 24%, rgba(255,184,110,.82) 0 1px, transparent 1.9px),
    radial-gradient(circle at 78% 75%, rgba(255,89,48,.85) 0 1px, transparent 1.8px),
    radial-gradient(circle at 89% 33%, rgba(255,195,128,.72) 0 1px, transparent 1.7px) !important;
  animation: phoenix-balance-embers 5.8s ease-in-out infinite !important;
}
@keyframes phoenix-balance-embers {
  0%, 68%, 100% { opacity: 0; transform: translateY(1px); }
  72% { opacity: .7; transform: translateY(-1px); }
  77% { opacity: .25; transform: translateY(-3px); }
  82% { opacity: .55; transform: translateY(-4px); }
  88% { opacity: 0; transform: translateY(-5px); }
}
.header-balance-button #headerBalance,
.header-balance-button strong {
  position: relative !important;
  z-index: 1 !important;
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 3px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  font-size: clamp(8px, 1vw, 11px) !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums !important;
  text-shadow: none !important;
}
.header-balance-button #headerBalance small,
.header-balance-button strong small { flex: 0 0 auto !important; max-width: 34px !important; overflow: hidden !important; }
@media (max-width: 820px) {
  body > main#top { min-height: max(0px, calc(100dvh - 74px - 235px)) !important; }
  .account-avatar { width: 34px !important; height: 34px !important; min-width: 34px !important; min-height: 34px !important; flex-basis: 34px !important; }
  .header-balance-button { width: clamp(94px, 17vw, 124px) !important; max-width: 124px !important; height: 35px !important; min-height: 35px !important; padding-inline: 6px !important; }
}
@media (max-width: 560px) {
  body > main#top { min-height: max(0px, calc(100dvh - 72px - 245px)) !important; padding-bottom: calc(91px + env(safe-area-inset-bottom)) !important; }
  .account-avatar { width: 32px !important; height: 32px !important; min-width: 32px !important; min-height: 32px !important; flex-basis: 32px !important; }
  .header-balance-button { width: clamp(91px, 17vw, 113px) !important; max-width: 113px !important; height: 33px !important; min-height: 33px !important; padding-inline: 4px !important; border-radius: 10px !important; }
  .header-balance-button #headerBalance, .header-balance-button strong { font-size: clamp(7px, 2vw, 9px) !important; gap: 2px !important; }
  .header-balance-button #headerBalance small, .header-balance-button strong small { font-size: .67em !important; }
}
@media (prefers-reduced-motion: reduce) {
  .header-balance-button::after { animation: none !important; }
}

/* Telegram-like avatar crop dialog: square image source, circular live crop view. */
.avatar-crop-dialog {
  width: min(92vw, 390px);
  max-width: calc(100vw - 24px);
  max-height: min(88dvh, 680px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(236,158,100,.23);
  border-radius: 22px;
  color: #f5e7db;
  background: #11100f;
  box-shadow: 0 28px 90px rgba(0,0,0,.72), inset 0 1px rgba(255,255,255,.035);
}
.avatar-crop-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(7px); }
.avatar-crop-shell { display: grid; justify-items: center; gap: 15px; padding: 24px 20px 20px; }
.avatar-crop-title { margin: 0; color: #fff0e2; font-size: 19px; font-weight: 850; letter-spacing: -.025em; text-align: center; }
.avatar-crop-description { max-width: 290px; margin: -8px 0 0; color: #a99a8e; font-size: 12px; line-height: 1.5; text-align: center; }
.avatar-crop-canvas-wrap { display: grid; place-items: center; width: min(72vw, 280px); aspect-ratio: 1 / 1; margin: 2px 0; border-radius: 50%; overflow: hidden; background: #080808; border: 2px solid #b66b43; box-shadow: 0 0 0 5px rgba(183,96,52,.08), 0 8px 28px rgba(0,0,0,.38); touch-action: none; cursor: grab; }
.avatar-crop-canvas-wrap:active { cursor: grabbing; }
.avatar-crop-canvas { display: block; width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: contain; touch-action: none; }
.avatar-crop-zoom { display: grid; width: 100%; gap: 8px; color: #c7b4a5; font-size: 11px; font-weight: 750; }
.avatar-crop-zoom input { width: 100%; accent-color: #d57646; }
.avatar-crop-tip { margin: -6px 0 0; color: #827469; font-size: 10px; text-align: center; }
.avatar-crop-actions { display: flex; width: 100%; gap: 9px; }
.avatar-crop-actions button { flex: 1; min-width: 0; min-height: 43px; padding: 0 12px; border-radius: 11px; font: inherit; font-size: 12px; font-weight: 850; cursor: pointer; }
.avatar-crop-apply { border: 1px solid #b86139; background: #a84e2c; color: #fff0e5; }
.avatar-crop-cancel { border: 1px solid rgba(255,255,255,.1); background: #1a1918; color: #c6b7ac; }
@media (max-width: 420px) { .avatar-crop-shell { padding: 20px 16px 16px; gap: 13px; } .avatar-crop-title { font-size: 17px; } }

/* Phoenix security center v5 — clear MFA setup, recovery, and confirmation states. */
.security-view { padding-bottom: clamp(26px, 5vw, 48px); }
.security-page-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(245px,.75fr); gap:18px; align-items:start; }
.security-main-card,.security-side-card { min-width:0; border:1px solid rgba(255,187,125,.15); border-radius:20px; background:linear-gradient(145deg,#15100e 0%,#0d0c0b 56%,#101010 100%); box-shadow:0 18px 45px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.025); }
.security-main-card { padding:clamp(17px,3vw,28px); }
.security-main-top { display:grid; grid-template-columns:56px minmax(0,1fr) auto; gap:14px; align-items:start; }
.security-shield-icon { display:grid; place-items:center; width:54px; height:54px; border:1px solid rgba(255,172,103,.3); border-radius:16px; color:#ffb570; background:#21130e; box-shadow:inset 0 1px rgba(255,255,255,.045); }
.security-shield-icon svg { width:27px; height:27px; }
.security-main-title { min-width:0; }
.security-kicker { color:#d78d5a; font-size:9px; font-weight:900; letter-spacing:.18em; }
.security-main-title h2 { margin:5px 0 7px; color:#fff0e1; font-size:clamp(18px,2.2vw,23px); line-height:1.2; letter-spacing:-.025em; }
.security-main-title p { max-width:620px; margin:0; color:#a7978a; font-size:12px; line-height:1.65; }
.security-state-pill { display:inline-flex; align-items:center; justify-content:center; max-width:150px; padding:7px 10px; border:1px solid rgba(210,165,127,.18); border-radius:999px; background:#191311; color:#b9a393; font-size:9px; font-weight:900; letter-spacing:.07em; text-align:center; text-transform:uppercase; white-space:nowrap; }
.security-state-pill::before { content:""; width:6px; height:6px; margin-right:7px; flex:0 0 6px; border-radius:50%; background:#a58f7f; }
.security-state-pill[data-state="enabled"] { color:#c8edc5; border-color:rgba(126,201,123,.3); background:#101812; }
.security-state-pill[data-state="enabled"]::before { background:#8fd58b; box-shadow:0 0 8px rgba(114,218,118,.3); }
.security-state-pill[data-state="disabled"]::before { background:#bd8661; }
.security-status-copy { margin-top:20px; color:#bcaa9a; font-size:12px; line-height:1.6; }
.security-meter { height:3px; margin:12px 0 20px; overflow:hidden; border-radius:99px; background:#26201c; }
.security-meter span { display:block; width:20%; height:100%; border-radius:inherit; background:#97613e; transition:width .3s ease,background .3s ease; }
.security-main-card:has(.security-state-pill[data-state="enabled"]) .security-meter span { width:100%; background:#78bb79; }
.security-primary-button,.security-secondary-button,.security-danger-button,.security-copy-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:10px 15px; border-radius:11px; font:inherit; font-size:12px; line-height:1.2; font-weight:850; text-align:center; cursor:pointer; transition:transform .16s ease,background .16s ease,border-color .16s ease; }
.security-primary-button { border:1px solid #a85a35; color:#fff0e5; background:#9c4c2b; box-shadow:inset 0 1px rgba(255,255,255,.06),0 4px 11px rgba(0,0,0,.18); }
.security-primary-button:hover { background:#ad5833; border-color:#c4734b; }
.security-secondary-button,.security-copy-button { border:1px solid rgba(255,206,166,.16); color:#d9c6b8; background:#1a1715; }
.security-secondary-button:hover,.security-copy-button:hover { background:#231c18; border-color:rgba(255,188,133,.32); }
.security-danger-button { border:1px solid rgba(228,111,94,.28); color:#f3b1a7; background:#251411; }
.security-danger-button:hover { background:#331914; border-color:rgba(228,111,94,.5); }
.security-primary-button:active,.security-secondary-button:active,.security-danger-button:active,.security-copy-button:active { transform:translateY(1px); }
.security-primary-button:disabled,.security-secondary-button:disabled,.security-danger-button:disabled { cursor:not-allowed; opacity:.45; transform:none; }
.security-action-form,.security-setup-panel,.security-enabled-panel,.security-recovery-reveal { margin-top:16px; padding:17px; border:1px solid rgba(255,186,128,.13); border-radius:15px; background:rgba(5,5,5,.32); }
.security-action-form[hidden],.security-setup-panel[hidden],.security-enabled-panel[hidden],.security-recovery-reveal[hidden] { display:none !important; }
.security-form-heading { display:flex; flex-direction:column; gap:5px; margin-bottom:14px; }
.security-form-heading strong,.security-action-form > strong { color:#f8e7d9; font-size:13px; font-weight:900; }
.security-form-heading span { color:#938175; font-size:10px; line-height:1.5; }
.security-form-field { display:grid; gap:7px; margin:12px 0; color:#c9b8ab; font-size:11px; font-weight:750; }
.security-form-field input { box-sizing:border-box; width:100%; min-width:0; min-height:43px; padding:11px 12px; border:1px solid rgba(232,190,158,.16); border-radius:10px; outline:none; background:#0b0a09; color:#fff0e5; font:inherit; font-size:13px; }
.security-form-field input:focus { border-color:#bc7145; box-shadow:0 0 0 3px rgba(196,106,57,.13); }
.security-form-field input[name="code"] { font-size:20px; letter-spacing:.22em; font-variant-numeric:tabular-nums; }
.security-form-field input::placeholder { color:#695a50; }
.security-action-row { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:9px; margin-top:15px; }
.security-action-row > button { flex:0 1 auto; }
.security-inline-note { margin:10px 0; color:#d4bda9; font-size:11px; line-height:1.6; }
.security-setup-steps { display:grid; gap:9px; margin:0 0 15px; padding-left:21px; color:#baa99a; font-size:11px; line-height:1.6; }
.security-setup-steps li::marker { color:#d58753; font-weight:900; }
.security-secret-panel { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px; border:1px solid rgba(232,166,106,.18); border-radius:12px; background:#090807; }
.security-secret-panel > div { display:grid; gap:6px; min-width:0; }
.security-secret-panel span { color:#a08e80; font-size:10px; }
.security-secret-panel code { overflow-wrap:anywhere; color:#ffc487; font:800 15px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.08em; }
.security-copy-button { min-height:36px; padding:8px 10px; flex:0 0 auto; font-size:10px; }
.security-enabled-heading { display:flex; align-items:center; gap:12px; }
.security-enabled-heading > span { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border:1px solid rgba(134,201,124,.28); border-radius:50%; background:#112015; color:#a5e09e; font-size:18px; font-weight:900; }
.security-enabled-heading h3 { margin:0 0 5px; color:#e9f4e4; font-size:15px; }
.security-enabled-heading p { margin:0; color:#9eb09a; font-size:11px; line-height:1.5; }
.security-recovery-summary { display:flex; align-items:center; gap:11px; margin-top:16px; padding:13px; border:1px solid rgba(255,191,134,.12); border-radius:12px; background:#11100e; }
.security-recovery-symbol { display:grid; place-items:center; width:36px; height:36px; flex:0 0 36px; border-radius:11px; background:#24180f; color:#ffbd75; font-size:22px; }
.security-recovery-summary strong { color:#f3e4d7; font-size:12px; }
.security-recovery-summary p { margin:4px 0; color:#d2a477; font-size:11px; font-weight:800; }
.security-recovery-summary small { color:#89786b; font-size:10px; line-height:1.5; }
.security-secondary-actions { justify-content:flex-start; }
.security-action-form > p { margin:6px 0 12px; color:#9f8d80; font-size:11px; line-height:1.55; }
.security-warning-box { padding:13px; border:1px solid rgba(242,172,93,.3); border-radius:11px; background:rgba(90,47,14,.18); }
.security-warning-box strong { color:#ffd08a; font-size:12px; }
.security-warning-box p { margin:6px 0 0; color:#c4a98b; font-size:10px; line-height:1.6; }
.security-recovery-reveal h3 { margin:15px 0 10px; color:#ffe8d5; font-size:14px; }
.security-recovery-codes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin:10px 0; }
.security-recovery-code { display:block; min-width:0; padding:9px 7px; border:1px solid rgba(255,190,129,.12); border-radius:8px; background:#090807; color:#ffd39e; text-align:center; font:700 11px ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.04em; overflow-wrap:anywhere; }
.security-saved-check { display:flex; align-items:flex-start; gap:8px; margin-top:14px; color:#c2b0a1; font-size:11px; line-height:1.5; }
.security-saved-check input { margin-top:2px; accent-color:#bb7445; }
.security-finish-button { width:100%; margin-top:10px; }
.security-feedback { margin-top:15px; padding:12px 13px; border:1px solid rgba(203,159,123,.18); border-radius:11px; color:#d7c7b9; background:#15110f; font-size:11px; line-height:1.6; overflow-wrap:anywhere; }
.security-feedback[data-kind="success"] { color:#c4ebbe; border-color:rgba(130,197,121,.22); background:#101710; }
.security-feedback[data-kind="error"] { color:#ffc1b4; border-color:rgba(224,103,88,.24); background:#1d100e; }
.security-side-card { padding:22px; }
.security-side-icon { display:grid; place-items:center; width:40px; height:40px; border:1px solid rgba(255,181,113,.2); border-radius:13px; background:#24160f; color:#ffbd78; font-size:24px; }
.security-side-card h2 { margin:13px 0 12px; color:#f6e5d7; font-size:16px; letter-spacing:-.02em; }
.security-side-card ul { display:grid; gap:11px; margin:0; padding-left:18px; color:#a69588; font-size:11px; line-height:1.65; }
.security-side-card li::marker { color:#c77948; }
.security-side-footnote { margin:17px 0 0; padding-top:13px; border-top:1px solid rgba(255,255,255,.06); color:#78695e; font-size:10px; line-height:1.65; }
.auth-two-factor-mark { display:grid; place-items:center; width:48px; height:48px; margin:2px auto 10px; border:1px solid rgba(255,181,116,.25); border-radius:16px; background:#24150e; color:#ffbe7a; font-size:25px; }
.auth-two-factor-instruction { margin:0 0 13px; color:#baa89a; font-size:12px; line-height:1.6; text-align:center; }
.auth-two-factor-cancel { display:block; width:100%; margin-top:10px; padding:10px; border:1px solid rgba(255,255,255,.09); border-radius:10px; background:#171514; color:#bba99b; font:inherit; font-size:11px; cursor:pointer; }
.security-view ~ .bottom-dock { z-index:100; }
/* The dock is fixed over the page. Reserve its height inside the footer so the
   payment-provider avatars can be scrolled fully above it instead of being covered. */
.site-footer { padding-bottom:calc(124px + env(safe-area-inset-bottom)) !important; }
.footer-inner,.footer-payments,.footer-bottom { background:#080808 !important; }
.footer-payment-option { transform:translateZ(0); }
.account-avatar,.account-avatar > .account-avatar-image { border-radius:50% !important; }
@media (max-width: 900px) {
  .security-page-grid { grid-template-columns:minmax(0,1fr); }
  .security-side-card { display:grid; grid-template-columns:42px minmax(0,1fr); column-gap:12px; padding:17px; }
  .security-side-icon { grid-row:1 / span 2; }
  .security-side-card h2 { align-self:center; margin:0; }
  .security-side-card ul,.security-side-footnote { grid-column:1 / -1; }
  .security-side-card ul { margin-top:13px; }
  .security-side-footnote { margin-top:13px; }
}
@media (max-width: 560px) {
  .security-page-grid { gap:12px; }
  .security-main-card { padding:15px 13px; border-radius:17px; }
  .security-main-top { grid-template-columns:42px minmax(0,1fr); gap:10px; }
  .security-shield-icon { width:42px; height:42px; border-radius:12px; }
  .security-shield-icon svg { width:23px; height:23px; }
  .security-main-title h2 { font-size:17px; }
  .security-main-title p { font-size:11px; }
  .security-state-pill { grid-column:2; justify-self:start; max-width:100%; margin-top:-3px; }
  .security-status-copy { margin-top:13px; font-size:11px; }
  .security-action-form,.security-setup-panel,.security-enabled-panel,.security-recovery-reveal { padding:13px 11px; }
  .security-secret-panel { align-items:flex-start; flex-direction:column; }
  .security-copy-button { width:100%; }
  .security-action-row { gap:7px; }
  .security-action-row > button { flex:1 1 auto; min-width:0; padding:10px 9px; font-size:11px; }
  .security-recovery-codes { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .security-recovery-code { padding:8px 3px; font-size:10px; }
  .security-side-card { padding:15px; }
  .site-footer { padding-bottom:calc(128px + env(safe-area-inset-bottom)) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .security-primary-button,.security-secondary-button,.security-danger-button,.security-copy-button,.security-meter span { transition:none !important; }
}


/* PHOENIX header balance v6: compact cartoon-forged metal trim, CSS only. */
.header-balance-button {
  position: relative !important;
  flex: 0 1 152px !important;
  width: clamp(104px, 14vw, 152px) !important;
  min-width: 0 !important;
  max-width: 152px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 9px !important;
  border: 1px solid #754328 !important;
  border-radius: 12px !important;
  background:
    radial-gradient(ellipse at 50% -15%, rgba(202,76,30,.20), transparent 74%),
    linear-gradient(180deg, #21130f 0%, #120d0b 62%, #0b0908 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,222,178,.12),
    inset 0 -2px 0 rgba(0,0,0,.65),
    0 0 0 1px rgba(42,20,12,.8),
    0 3px 10px rgba(0,0,0,.30) !important;
  overflow: hidden !important;
  isolation: isolate !important;
}
.header-balance-button::before {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  inset: 3px !important;
  border: 1px solid rgba(219,132,76,.20) !important;
  border-radius: 8px !important;
  background: linear-gradient(110deg, rgba(255,117,53,.07), transparent 32%, transparent 68%, rgba(255,158,65,.045)) !important;
  opacity: 1 !important;
  pointer-events: none !important;
}
.header-balance-button::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 0 !important;
  inset: 1px !important;
  border: 0 !important;
  border-radius: 10px !important;
  pointer-events: none !important;
  opacity: 0 !important;
  background:
    radial-gradient(circle at 8% 65%, #ff653a 0 1px, transparent 2px),
    radial-gradient(circle at 15% 28%, rgba(255,191,112,.92) 0 1px, transparent 2px),
    radial-gradient(circle at 86% 68%, #e74e2b 0 1px, transparent 2px),
    radial-gradient(circle at 93% 30%, rgba(255,176,92,.82) 0 1px, transparent 2px) !important;
  animation: phoenix-balance-sparks-v6 6.4s ease-in-out infinite !important;
}
@keyframes phoenix-balance-sparks-v6 {
  0%, 66%, 100% { opacity: 0; transform: translateY(1px); }
  70% { opacity: .42; transform: translateY(0); }
  75% { opacity: .10; transform: translateY(-2px); }
  80% { opacity: .34; transform: translateY(-3px); }
  86% { opacity: 0; transform: translateY(-4px); }
}
.header-balance-button #headerBalance,
.header-balance-button strong {
  z-index: 1 !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 3px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  font-size: clamp(8px, 1vw, 11px) !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums !important;
  text-shadow: 0 0 8px rgba(255,131,60,.10) !important;
}
.header-balance-button #headerBalance small,
.header-balance-button strong small {
  flex: 0 0 auto !important;
  max-width: 31px !important;
  overflow: hidden !important;
  color: #e9b47a !important;
  font-size: .70em !important;
}
/* Keep payment-provider logos above the fixed dock when the document is scrolled to its end. */
.site-footer { padding-bottom: calc(168px + env(safe-area-inset-bottom)) !important; }
.footer-inner, .footer-payments, .footer-bottom { background: #080808 !important; }
.footer-payments { padding-top: 20px !important; padding-bottom: 20px !important; background: #080808 !important; }
.footer-payment-options { margin-bottom: 0 !important; }
@media (max-width: 820px) {
  .header-balance-button { width: clamp(96px, 17vw, 124px) !important; max-width: 124px !important; height: 35px !important; min-height: 35px !important; padding-inline: 6px !important; }
}
@media (max-width: 560px) {
  .header-balance-button { width: clamp(91px, 17vw, 113px) !important; max-width: 113px !important; height: 33px !important; min-height: 33px !important; padding-inline: 4px !important; border-radius: 10px !important; }
  .header-balance-button #headerBalance, .header-balance-button strong { font-size: clamp(7px, 2vw, 9px) !important; gap: 2px !important; }
  .header-balance-button #headerBalance small, .header-balance-button strong small { font-size: .67em !important; max-width: 27px !important; }
  .site-footer { padding-bottom: calc(174px + env(safe-area-inset-bottom)) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .header-balance-button::after { animation: none !important; }
}
.security-qr-layout { display:grid; grid-template-columns:190px minmax(0,1fr); gap:15px; align-items:center; margin:0 0 14px; }
.security-qr-card { display:grid; justify-items:center; gap:8px; padding:11px; border:1px solid rgba(231,188,149,.17); border-radius:13px; background:#0b0908; }
.security-qr-code { display:grid; place-items:center; width:168px; height:168px; max-width:100%; overflow:hidden; border:6px solid #fff8ef; border-radius:7px; background:#fff8ef; }
.security-qr-code img, .security-qr-code canvas { display:block; width:168px !important; height:168px !important; max-width:100%; }
.security-qr-card > span { color:#948275; font-size:9px; text-align:center; }
.security-qr-description strong { color:#f1e0d0; font-size:13px; }
.security-qr-description p { margin:7px 0 0; color:#a99889; font-size:11px; line-height:1.65; }
@media (max-width:560px) {
  .security-qr-layout { grid-template-columns:minmax(0,1fr); justify-items:center; }
  .security-qr-card { width:max-content; max-width:100%; }
  .security-qr-description { width:100%; }
}

/* FINAL v7: keep the provider logos above the fixed dock without a scrollable
   second background layer after the footer. Short views use flex space; long
   views keep normal document flow. */
html, body { min-height: 100%; background: #080808 !important; }
body {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: clip !important;
  background: #080808 !important;
}
body > main#top {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
  padding-bottom: calc(48px + env(safe-area-inset-bottom)) !important;
  margin-bottom: 0 !important;
  background: transparent !important;
}
.site-footer {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin-top: auto !important;
  padding: 0 !important;
  overflow: visible !important;
  background: #080808 !important;
  background-image: none !important;
  border-top: 1px solid rgba(255,255,255,.055) !important;
}
.site-footer > .footer-inner { order: 1 !important; }
.site-footer > .footer-bottom { order: 2 !important; padding: 14px 10px 12px !important; }
.site-footer > .footer-payments {
  order: 3 !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 20px 14px calc(144px + env(safe-area-inset-bottom)) !important;
  background: #080808 !important;
  border-top: 1px solid rgba(255,255,255,.045) !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}
.site-footer .footer-inner,
.site-footer .footer-bottom,
.site-footer .footer-payments { background-color: #080808 !important; }
.footer-payment-options { display: flex !important; align-items: center !important; justify-content: center !important; gap: 16px !important; margin: 0 !important; }
.footer-payment-option { flex: 0 0 48px !important; width: 48px !important; height: 48px !important; border-radius: 50% !important; overflow: hidden !important; background: #101010 !important; border: 1px solid rgba(255,255,255,.09) !important; box-shadow: none !important; }
.footer-payment-option > img { display:block !important; width:100% !important; height:100% !important; object-fit:cover !important; border-radius:50% !important; }
.bottom-dock { z-index: 990 !important; background: #100d0b !important; }

/* Header balance: new beveled ember-metal treatment, CSS only. */
.header-balance-button {
  position: relative !important;
  flex: 0 1 154px !important;
  width: clamp(100px, 14vw, 154px) !important;
  min-width: 0 !important;
  max-width: 154px !important;
  height: 39px !important;
  min-height: 39px !important;
  padding: 0 10px !important;
  border: 1px solid #9a5a37 !important;
  border-radius: 13px !important;
  background: #17100d !important;
  background-image: none !important;
  box-shadow: inset 0 1px 0 rgba(255,231,207,.12), inset 0 -2px 0 rgba(0,0,0,.55), 0 2px 0 #321c13, 0 4px 10px rgba(0,0,0,.24) !important;
  overflow: hidden !important;
  isolation: isolate !important;
}
.header-balance-button::before {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  inset: 3px !important;
  border: 1px solid rgba(226,151,94,.24) !important;
  border-radius: 9px !important;
  background: linear-gradient(90deg, rgba(130,54,26,.12), transparent 28%, transparent 72%, rgba(130,54,26,.10)) !important;
  opacity: 1 !important;
  pointer-events: none !important;
}
.header-balance-button::after {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  inset: 1px !important;
  border: 0 !important;
  border-radius: 11px !important;
  pointer-events: none !important;
  opacity: 0 !important;
  background:
    radial-gradient(circle at 11% 68%, #ff6b3b 0 1px, transparent 2px),
    radial-gradient(circle at 24% 30%, rgba(255,190,113,.95) 0 1px, transparent 2px),
    radial-gradient(circle at 77% 71%, rgba(255,76,43,.9) 0 1px, transparent 2px),
    radial-gradient(circle at 91% 26%, rgba(255,185,101,.86) 0 1px, transparent 2px);
  animation: phoenix-header-embers-v7 6.8s ease-in-out infinite !important;
}
.header-balance-button #headerBalance,
.header-balance-button strong {
  position: relative !important;
  z-index: 1 !important;
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 3px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  font-size: clamp(8px, 1vw, 11px) !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums !important;
  text-shadow: 0 1px rgba(0,0,0,.3) !important;
}
.header-balance-button #headerBalance small,
.header-balance-button strong small { flex: 0 1 auto !important; min-width:0 !important; max-width:32px !important; overflow:hidden !important; }
@keyframes phoenix-header-embers-v7 {
  0%, 71%, 100% { opacity: 0; transform: translateY(1px); }
  74% { opacity: .54; transform: translateY(0); }
  78% { opacity: .12; transform: translateY(-2px); }
  82% { opacity: .4; transform: translateY(-3px); }
  87% { opacity: 0; transform: translateY(-4px); }
}

/* Use one warm, confident colour for the main deposit action instead of a glossy gradient. */
.wallet-primary-action {
  background: #b94d2e !important;
  color: #fff2e8 !important;
  border: 1px solid #d16b45 !important;
  box-shadow: inset 0 1px 0 rgba(255,241,227,.12), 0 3px 9px rgba(0,0,0,.22) !important;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease !important;
}
.wallet-primary-action:hover { background: #c45734 !important; border-color: #dd8056 !important; filter: none !important; }
.wallet-primary-action:active { background: #a74428 !important; transform: translateY(1px) !important; }
@media (max-width: 820px) {
  .header-balance-button { width: clamp(96px, 17vw, 124px) !important; max-width:124px !important; height:36px !important; min-height:36px !important; padding-inline:6px !important; }
}
@media (max-width: 560px) {
  body > main#top { padding-bottom: calc(38px + env(safe-area-inset-bottom)) !important; }
  .header-balance-button { width:clamp(91px,17vw,114px) !important; max-width:114px !important; height:34px !important; min-height:34px !important; padding-inline:4px !important; border-radius:11px !important; }
  .header-balance-button #headerBalance,.header-balance-button strong { font-size:clamp(7px,2vw,9px) !important; gap:2px !important; }
  .header-balance-button #headerBalance small,.header-balance-button strong small { font-size:.67em !important; max-width:27px !important; }
  .site-footer > .footer-payments { padding-bottom:calc(138px + env(safe-area-inset-bottom)) !important; }
  .footer-payment-options { gap:13px !important; }
  .footer-payment-option { width:46px !important; height:46px !important; flex-basis:46px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .header-balance-button::after { animation:none !important; }
}

.header-balance-button #headerBalance {
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 4px !important;
}
.header-balance-value {
  display: block !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.header-balance-button #headerBalance small {
  display: inline-block !important;
  flex: 0 0 auto !important;
  max-width: 29px !important;
  white-space: nowrap !important;
}
@media (max-width:560px) {
  .header-balance-button #headerBalance { gap:2px !important; }
  .header-balance-button #headerBalance small { max-width:25px !important; }
}


/* Phoenix production polish v8: footer order, single deposit destination and responsive actions. */
.site-footer {
  display:flex !important;
  flex-direction:column !important;
  flex:0 0 auto !important;
  margin-top:auto !important;
  padding:0 0 calc(112px + env(safe-area-inset-bottom)) !important;
  background:#080808 !important;
  background-image:none !important;
  border-top:1px solid rgba(255,255,255,.045) !important;
  overflow:visible !important;
}
.site-footer > .footer-inner { order:1 !important; }
.site-footer > .footer-payments {
  order:2 !important;
  flex:0 0 auto !important;
  width:100% !important;
  margin:0 !important;
  padding:22px 14px 24px !important;
  background:#080808 !important;
  border-top:1px solid rgba(255,255,255,.035) !important;
  border-bottom:0 !important;
  box-shadow:none !important;
}
.site-footer > .footer-bottom {
  order:3 !important;
  display:block !important;
  width:100% !important;
  margin:0 !important;
  padding:14px 12px 10px !important;
  text-align:center !important;
  color:#71665f !important;
  background:#080808 !important;
  border-top:1px solid rgba(255,255,255,.035) !important;
  font-size:10px !important;
  letter-spacing:.06em !important;
}
.site-footer .footer-inner,
.site-footer .footer-payments,
.site-footer .footer-bottom { background-color:#080808 !important; }
.footer-payment-options { display:flex !important; justify-content:center !important; align-items:center !important; gap:16px !important; }
.footer-payment-option { flex:0 0 46px !important; width:46px !important; height:46px !important; border:1px solid rgba(255,255,255,.12) !important; background:#111 !important; box-shadow:none !important; }
.footer-payment-option img { width:100% !important; height:100% !important; object-fit:cover !important; }

/* Header wallet: a restrained brass wallet pill with a true deposit affordance. */
.header-balance-button {
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex:0 1 auto !important;
  width:clamp(120px, 15vw, 158px) !important;
  min-width:104px !important;
  max-width:158px !important;
  height:39px !important;
  min-height:39px !important;
  padding:0 34px 0 10px !important;
  border:1px solid #76503a !important;
  border-radius:12px !important;
  background:#17110e !important;
  box-shadow:inset 0 1px rgba(255,233,213,.08), inset 0 -1px rgba(0,0,0,.65), 0 2px 0 #261811 !important;
  overflow:hidden !important;
  text-decoration:none !important;
  transition:border-color .16s ease, background-color .16s ease, transform .16s ease !important;
}
.header-balance-button::before {
  content:"" !important;
  position:absolute !important;
  inset:3px !important;
  border:1px solid rgba(184,128,86,.20) !important;
  border-radius:8px !important;
  background:linear-gradient(90deg, rgba(255,255,255,.018), transparent 45%, rgba(179,89,45,.04)) !important;
  pointer-events:none !important;
}
.header-balance-button::after { content:none !important; display:none !important; }
.header-balance-button:hover { background:#20140f !important; border-color:#a16c49 !important; transform:translateY(-1px) !important; }
.header-balance-button #headerBalance,
.header-balance-button strong {
  position:relative !important;
  z-index:1 !important;
  display:flex !important;
  align-items:baseline !important;
  justify-content:center !important;
  gap:3px !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  color:#f4e6d9 !important;
  font-size:clamp(9px, 1vw, 11px) !important;
  line-height:1.1 !important;
  white-space:nowrap !important;
  font-variant-numeric:tabular-nums !important;
  text-shadow:none !important;
}
.header-balance-value { min-width:0 !important; max-width:100% !important; overflow:hidden !important; text-overflow:ellipsis !important; white-space:nowrap !important; }
.header-balance-button #headerBalance small { flex:0 0 auto !important; max-width:27px !important; font-size:.68em !important; color:#c59d7b !important; overflow:hidden !important; }
.header-balance-plus {
  position:absolute !important;
  z-index:2 !important;
  right:7px !important;
  top:50% !important;
  display:grid !important;
  place-items:center !important;
  width:22px !important;
  height:22px !important;
  transform:translateY(-50%) !important;
  border:1px solid rgba(238,184,133,.32) !important;
  border-radius:7px !important;
  background:#422719 !important;
  color:#f4c79d !important;
  font-size:17px !important;
  font-weight:600 !important;
  line-height:1 !important;
  box-shadow:inset 0 1px rgba(255,255,255,.07) !important;
  pointer-events:none !important;
}

/* All wallet entry points open the dedicated deposit view, never an accordion. */
.deposit-view { width:min(920px, calc(100% - 44px)) !important; }
.deposit-view > .wallet-panel { margin-top:18px !important; width:100% !important; }
.deposit-view .deposit-panel-heading { align-items:flex-start !important; }
.account-deposit-action { border-color:rgba(201,123,75,.25) !important; }
.account-deposit-action .account-action-icon { color:#e4a374 !important; }

/* Keep the same plus affordance when the card toggles; second tap still closes it. */
.game-card .art-link::after,
.game-card.is-open .art-link::after {
  content:'+' !important;
  top:auto !important;
  right:7px !important;
  bottom:7px !important;
  left:auto !important;
  width:25px !important;
  height:25px !important;
  display:grid !important;
  place-items:center !important;
  border:1px solid rgba(255,211,159,.28) !important;
  border-radius:8px !important;
  background:rgba(14,10,9,.88) !important;
  color:#f5d5b1 !important;
  font-size:17px !important;
  line-height:1 !important;
  transform:none !important;
  box-shadow:none !important;
  backdrop-filter:blur(5px) !important;
}
.game-card.cover-first.is-open .game-art > h3 {
  left:9px !important; right:39px !important; top:17% !important;
  width:auto !important; max-width:calc(100% - 48px) !important;
  padding:0 3px !important; text-align:center !important;
  font-size:clamp(10px, 1vw, 13px) !important;
  text-overflow:ellipsis !important; overflow:hidden !important; white-space:nowrap !important;
}
.game-card.cover-first.is-open .game-launch,
.game-card.cover-first.is-open .game-demo {
  left:50% !important; right:auto !important;
  width:min(132px, calc(100% - 28px)) !important;
  max-width:calc(100% - 28px) !important;
  height:33px !important; min-height:33px !important;
  padding:0 12px !important; border-radius:10px !important;
  transform:translateX(-50%) !important;
  font-size:10px !important; font-weight:800 !important;
  letter-spacing:0 !important;
  box-shadow:none !important;
  backdrop-filter:blur(5px) !important;
}
.game-card.cover-first.is-open .game-launch {
  bottom:calc(50% - 1px) !important;
  border:1px solid #a95b38 !important;
  background:#74351f !important;
  color:#fff1e4 !important;
  box-shadow:inset 0 1px rgba(255,232,209,.10), 0 3px 9px rgba(0,0,0,.22) !important;
}
.game-card.cover-first.is-open .game-launch span { color:#fff1e4 !important; font-size:inherit !important; }
.game-card.cover-first.is-open .game-demo {
  bottom:calc(50% - 39px) !important;
  border:1px solid rgba(255,214,174,.38) !important;
  background:rgba(16,12,10,.58) !important;
  color:#eed8c2 !important;
  box-shadow:inset 0 1px rgba(255,255,255,.06) !important;
}
.game-card.cover-first.is-open .game-demo:hover { background:rgba(61,37,27,.72) !important; border-color:rgba(255,214,174,.58) !important; }

@media (max-width:820px) {
  .header-balance-button { width:clamp(112px, 18vw, 132px) !important; max-width:132px !important; height:36px !important; min-height:36px !important; padding-right:31px !important; }
  .deposit-view { width:calc(100% - 28px) !important; }
}
@media (max-width:560px) {
  .site-footer { padding-bottom:calc(118px + env(safe-area-inset-bottom)) !important; }
  .site-footer > .footer-payments { padding:20px 14px 22px !important; }
  .site-footer > .footer-bottom { padding:13px 10px 10px !important; font-size:9px !important; }
  .header-balance-button { width:clamp(104px, 29vw, 122px) !important; min-width:104px !important; max-width:122px !important; height:34px !important; min-height:34px !important; padding:0 29px 0 6px !important; border-radius:10px !important; }
  .header-balance-button #headerBalance, .header-balance-button strong { font-size:clamp(8px, 2.1vw, 9px) !important; gap:2px !important; }
  .header-balance-button #headerBalance small { max-width:24px !important; }
  .header-balance-plus { width:20px !important; height:20px !important; right:5px !important; font-size:15px !important; }
  .game-card.cover-first.is-open .game-art > h3 { top:16% !important; left:7px !important; right:32px !important; max-width:calc(100% - 39px) !important; font-size:10px !important; }
  .game-card.cover-first.is-open .game-launch, .game-card.cover-first.is-open .game-demo { width:min(120px, calc(100% - 22px)) !important; max-width:calc(100% - 22px) !important; height:31px !important; min-height:31px !important; font-size:9px !important; }
  .game-card.cover-first.is-open .game-demo { bottom:calc(50% - 36px) !important; }
}
@media (prefers-reduced-motion:reduce) { .header-balance-button { transition:none !important; } }


/* PHOENIX UI v9 — remove the unwanted balance-cap line and center game names. */
.header-balance-button {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 1 146px !important;
  width: clamp(104px, 13vw, 146px) !important;
  min-width: 96px !important;
  max-width: 146px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 31px 0 10px !important;
  border: 1px solid #76503a !important;
  border-radius: 12px !important;
  background: #17100d !important;
  box-shadow: 0 2px 5px rgba(0,0,0,.25) !important;
  overflow: hidden !important;
  isolation: isolate !important;
  transform: none !important;
  transition: background-color .16s ease, border-color .16s ease !important;
}
.header-balance-button::before,
.header-balance-button::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  animation: none !important;
}
.header-balance-button:hover {
  background: #20140f !important;
  border-color: #a16c49 !important;
  transform: none !important;
}
.header-balance-button:focus-visible {
  outline: 2px solid #c88a5d !important;
  outline-offset: 2px !important;
}
.header-balance-button #headerBalance,
.header-balance-button strong {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 3px !important;
  flex: 1 1 auto !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  color: #f3e6d9 !important;
  font-size: clamp(9px, .95vw, 11px) !important;
  font-weight: 750 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
  text-shadow: none !important;
}
.header-balance-value {
  display: block !important;
  flex: 1 1 auto !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.header-balance-button #headerBalance small,
.header-balance-button strong small {
  display: inline-block !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 26px !important;
  overflow: hidden !important;
  color: #c9a184 !important;
  font-size: .68em !important;
  line-height: 1 !important;
  text-overflow: clip !important;
}
.header-balance-plus {
  position: absolute !important;
  z-index: 2 !important;
  top: 50% !important;
  right: 6px !important;
  display: grid !important;
  place-items: center !important;
  width: 19px !important;
  height: 19px !important;
  padding: 0 !important;
  border: 1px solid rgba(255,221,194,.28) !important;
  border-radius: 50% !important;
  background: #87432c !important;
  color: #fff0e4 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
}

/* The cover itself is the toggle. Do not draw a redundant plus badge on it. */
.game-card .art-link::before,
.game-card .art-link::after,
.game-card.is-open .art-link::before,
.game-card.is-open .art-link::after {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
.game-card.cover-first .game-art > h3,
.game-card.cover-first.is-open .game-art > h3 {
  position: absolute !important;
  top: 13% !important;
  left: 8px !important;
  right: 8px !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  padding: 5px 8px !important;
  border: 1px solid rgba(255,220,187,.17) !important;
  border-radius: 8px !important;
  background: rgba(10,7,6,.63) !important;
  color: #fff1df !important;
  font-size: clamp(12px, 1.18vw, 15px) !important;
  font-weight: 850 !important;
  line-height: 1.22 !important;
  letter-spacing: .01em !important;
  text-align: center !important;
  text-transform: none !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  text-shadow: 0 2px 4px rgba(0,0,0,.98), 0 0 10px rgba(0,0,0,.6) !important;
  transform: none !important;
}
.game-card.cover-first.is-open .game-art > h3 {
  top: 12% !important;
  left: 8px !important;
  right: 8px !important;
  -webkit-line-clamp: 2 !important;
}

@media (max-width: 820px) {
  .header-balance-button {
    flex-basis: auto !important;
    width: clamp(105px, 18vw, 128px) !important;
    min-width: 100px !important;
    max-width: 128px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding-right: 29px !important;
    padding-left: 7px !important;
  }
  .header-balance-button #headerBalance,
  .header-balance-button strong { font-size: clamp(8px, 2vw, 10px) !important; gap: 2px !important; }
  .header-balance-plus { right: 5px !important; width: 18px !important; height: 18px !important; font-size: 14px !important; }
}
@media (max-width: 420px) {
  .header-balance-button {
    width: clamp(96px, 28vw, 116px) !important;
    min-width: 96px !important;
    max-width: 116px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding-right: 27px !important;
    padding-left: 5px !important;
    border-radius: 11px !important;
  }
  .header-balance-button #headerBalance,
  .header-balance-button strong { font-size: 8px !important; gap: 2px !important; }
  .header-balance-button #headerBalance small,
  .header-balance-button strong small { max-width: 23px !important; font-size: .65em !important; }
  .header-balance-plus { right: 4px !important; width: 17px !important; height: 17px !important; font-size: 13px !important; }
  .game-card.cover-first .game-art > h3,
  .game-card.cover-first.is-open .game-art > h3 {
    top: 11% !important;
    left: 7px !important;
    right: 7px !important;
    padding: 4px 6px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    border-radius: 7px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .header-balance-button { transition: none !important; }
}

/* Account security: compact, task-first credential controls. */
.security-credentials-card { grid-column: 1 / -1; }
.security-credentials-heading { display:flex; align-items:flex-start; gap:14px; margin-bottom:20px; }
.security-credentials-heading > div { min-width:0; }
.security-credentials-heading h2 { margin:5px 0 5px; color:#fff0e5; font-size:clamp(18px,2vw,23px); letter-spacing:-.035em; }
.security-credentials-heading p { margin:0; color:#a9988b; font-size:12px; line-height:1.5; }
.security-credentials-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.security-credential-form { min-width:0; padding:16px; border:1px solid rgba(232,190,158,.12); border-radius:15px; background:linear-gradient(150deg,rgba(255,255,255,.025),rgba(0,0,0,.10)); }
.security-credential-top { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.security-credential-top h3 { margin:0; color:#f8e9dc; font-size:15px; letter-spacing:-.02em; }
.security-mini-state { max-width:52%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:5px 8px; border:1px solid rgba(232,190,158,.14); border-radius:999px; color:#c8b6a8; background:rgba(255,255,255,.025); font-size:9px; font-weight:800; letter-spacing:.07em; text-transform:uppercase; }
.security-mini-state[data-state="verified"],.security-mini-state[data-state="set"] { border-color:rgba(118,193,135,.25); color:#a4e1b0; background:rgba(73,145,85,.09); }
.security-mini-state[data-state="unverified"],.security-mini-state[data-state="none"] { border-color:rgba(234,156,88,.25); color:#f6c28d; background:rgba(196,106,57,.09); }
.security-current-email { display:flex; flex-wrap:wrap; gap:5px 8px; align-items:center; padding:10px 11px; border:1px solid rgba(232,190,158,.1); border-radius:10px; background:rgba(0,0,0,.14); color:#9c8b7e; font-size:10px; }
.security-current-email strong { color:#f2dfd0; font-size:12px; font-weight:750; overflow-wrap:anywhere; }
.security-credential-form .security-form-field { margin:11px 0; }
.security-credential-form .security-primary-button { width:100%; min-height:43px; display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:13px; padding:10px 13px; border:1px solid #b56d3c; border-radius:8px; color:#fff0e0; background:#7f4227; font:inherit; font-size:12px; font-weight:750; letter-spacing:.01em; cursor:pointer; transition:background-color .16s ease,border-color .16s ease; }
.security-credential-form .security-primary-button:hover:not(:disabled) { background:#96512e; border-color:#c48350; }
.security-credential-form .security-primary-button:focus-visible, .security-credential-toggle:focus-visible { outline:2px solid #e0ad7b; outline-offset:3px; }
.security-credential-form .security-primary-button:active:not(:disabled) { background:#68351f; }
.security-credential-form .security-primary-button:disabled { opacity:.6; cursor:wait; }
.security-credential-toggle { width:100%; display:flex; align-items:center; gap:12px; min-height:66px; padding:13px 14px; border:1px solid #433027; border-radius:10px; background:#1b1513; color:#f1dfd0; text-align:left; cursor:pointer; transition:background-color .16s ease,border-color .16s ease; }
.security-credential-toggle:hover { background:#241a16; border-color:#72503d; }
.security-credential-toggle[aria-expanded="true"] { border-color:#79513b; border-bottom-left-radius:0; border-bottom-right-radius:0; background:#211815; }
.security-credential-toggle-main { flex:1; min-width:0; display:grid; gap:5px; }
.security-credential-toggle-main strong { color:#f6e7da; font-size:13px; font-weight:750; }
.security-credential-toggle-main small { color:#ad9a8b; font-size:11px; font-weight:500; line-height:1.45; }
.security-credential-chevron { position:relative; display:grid; flex:0 0 24px; width:24px; height:24px; place-items:center; border:1px solid #49362b; border-radius:6px; color:#d4a17b; font-size:0; line-height:0; transition:transform .16s ease,border-color .16s ease,background-color .16s ease; }
.security-credential-chevron::before { content:""; width:6px; height:6px; margin-top:-3px; border-right:1.7px solid currentColor; border-bottom:1.7px solid currentColor; transform:rotate(45deg); }
.security-credential-toggle:hover .security-credential-chevron { border-color:#70503d; background:#241914; }
.security-credential-toggle[aria-expanded="true"] .security-credential-chevron { transform:rotate(180deg); }
.security-credential-fields { padding:14px; border:1px solid #49362b; border-top:0; border-radius:0 0 10px 10px; background:#171210; }
.security-credential-fields[hidden] { display:none !important; }
.security-credential-toggle .security-mini-state { flex:0 0 auto; }
.security-credential-form .security-primary-button:disabled { opacity:.6; cursor:wait; }
.security-credential-hint { margin:10px 0 0; color:#8f7f73; font-size:10px; line-height:1.5; }
.security-form-feedback { margin:10px 0 0; padding:9px 10px; border-radius:9px; color:#d6c1b1; background:rgba(255,255,255,.035); font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
.security-form-feedback[data-kind="success"] { color:#b8e9c1; background:rgba(64,146,83,.12); }
.security-form-feedback[data-kind="error"] { color:#ffb4a3; background:rgba(178,63,42,.12); }
.security-form-feedback[hidden] { display:none !important; }
.auth-forgot-link,.auth-recovery-back { display:block; width:100%; margin:10px 0 0; padding:7px 4px; border:0; background:none; color:#e9b77e; font:inherit; font-size:12px; font-weight:700; text-align:center; cursor:pointer; }
.auth-forgot-link:hover,.auth-recovery-back:hover { color:#ffe1a3; text-decoration:underline; }
.auth-recovery-form { gap:13px; }
.auth-recovery-form[hidden] { display:none !important; }
.auth-recovery-back { margin-top:2px; color:#a9998e; }
@media (max-width:720px) {
  .security-credentials-grid { grid-template-columns:minmax(0,1fr); gap:11px; }
  .security-credential-form { padding:13px; }
  .security-credentials-heading { gap:10px; margin-bottom:15px; }
  .security-credentials-heading .security-shield-icon { flex:0 0 42px; width:42px; height:42px; }
}

@media (max-width:560px) {
  .security-credential-toggle { padding:12px 10px; gap:8px; }
  .security-credential-toggle-main strong { font-size:12px; }
  .security-credential-toggle-main small { font-size:10px; }
  .security-credential-fields { padding:11px; }
}
