/* The account centre follows the existing navy flight-deck palette. */
.account-overlay[hidden] { display: none !important; }
.account-overlay { position: fixed; inset: 0; z-index: 1000000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(11, 29, 49, .68); backdrop-filter: blur(5px); }
.account-panel { width: min(760px, 100%); max-height: min(88vh, 900px); overflow: auto; background: #f9fafb; color: #1f2937; border-radius: 16px; box-shadow: 0 24px 80px rgba(0,0,0,.3); user-select: text; }
.account-header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 28px; color: #fff; background: linear-gradient(90deg, #1e3a5f, #2d5a87); }
.account-eyebrow { font-size: 11px; color: #c4d6e8; letter-spacing: 1.5px; }
.account-header h2 { margin-top: 5px; font-size: 22px; font-weight: 600; }
.account-close { color: #fff; font-size: 28px; line-height: 1; width: 36px; height: 36px; border-radius: 8px; }
.account-close:hover { background: rgba(255,255,255,.14); }
.account-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 18px; }
.account-body h3 { font-size: 16px; margin-bottom: 5px; }
.account-note { color: #64748b; font-size: 13px; line-height: 1.8; white-space: pre-wrap; }
.account-warning { padding: 13px 16px; border-left: 3px solid #d97706; background: #fffbeb; color: #92400e; line-height: 1.8; font-size: 13px; }
.account-tabs { display: flex; gap: 6px; border-bottom: 1px solid #dbe3ec; padding-bottom: 10px; flex-wrap: wrap; }
.account-tabs button { border: 0; color: #64748b; background: transparent; }
.account-tabs button[aria-current="page"] { color: #1e3a5f; font-weight: 600; background: #e7eef6; }
.account-form { display: flex; flex-direction: column; gap: 16px; }
.account-form > .btn { align-self: flex-start; min-width: 140px; }
.account-field { display: flex; flex-direction: column; gap: 7px; color: #334155; font-size: 13px; }
.account-field input, .account-field select, .account-recovery-code { width: 100%; min-width: 0; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: #1f2937; font-family: inherit; font-size: 14px; user-select: text; }
.account-field input:focus, .account-field select:focus { border-color: #2d5a87; box-shadow: 0 0 0 3px #dbeafe; }
.account-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.6; color: #475569; }
.account-consent input { margin-top: 4px; accent-color: #2d5a87; }
.account-summary { padding: 20px; border: 1px solid #dbe3ec; border-radius: 10px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.account-tier { display: inline-block; color: #1e3a5f; font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.account-summary progress { width: 100%; height: 9px; accent-color: #2d5a87; }
.account-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.account-product { position: relative; padding: 22px; border: 1px solid #dbe3ec; border-radius: 10px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.account-product-code { color: #c6d5e6; font-size: 34px; font-weight: 700; line-height: 1; }
.account-product .btn { margin-top: auto; align-self: flex-start; }
.account-link { color: #2d5a87; text-decoration: none; font-size: 13px; }
.account-link.btn-primary { color: #fff; background: #2d5a87; padding: 9px 16px; border-radius: 6px; text-align: center; }
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.account-status:empty { display: none; }
.account-status { padding: 12px 28px; background: #edf2f7; color: #475569; font-size: 13px; line-height: 1.6; }
.account-status-error { background: #fef2f2; color: #b91c1c; }
.account-status-success { background: #ecfdf5; color: #047857; }
.account-save-list { display: flex; flex-direction: column; gap: 10px; }
.account-save-row { padding: 18px; border: 1px solid #dbe3ec; border-radius: 8px; background: #fff; }
.account-save-row h3 { overflow-wrap: anywhere; }
.account-save-row .btn { margin-top: 10px; margin-right: 8px; }
.account-device-row { padding: 12px 0; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.account-recovery-code { min-height: 90px; font-family: ui-monospace, monospace; line-height: 1.8; }
.account-cover-links { display: flex; justify-content: center; gap: 20px; margin-top: 18px; font-size: 13px; color: #cfdfef; }
.account-cover-links button, .account-cover-links a { color: inherit; font-size: inherit; text-decoration: none; }
.account-cover-hint { margin-top: 16px; font-size: 12px; color: #b7cbe1; text-align: center; line-height: 1.8; }
.hud-account-button { color: #fff; background: rgba(255,255,255,.12); padding: 6px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; white-space: nowrap; font-size: 12px; }
.account-panel button:focus-visible, .account-panel a:focus-visible, .hud-account-button:focus-visible, .account-cover-links button:focus-visible { outline: 2px solid #eab308; outline-offset: 3px; }
.account-panel button:disabled { cursor: wait; opacity: .55; }
.online-game-status { position: absolute; bottom: 10px; right: 14px; z-index: 150; max-width: calc(100vw - 28px); padding: 6px 10px; font-size: 11px; color: #475569; background: rgba(255,255,255,.94); border: 1px solid #dbe3ec; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.06); pointer-events: none; }
.online-game-status[data-state="error"] { background: #fff1f2; color: #b91c1c; border-color: #fecdd3; }
.online-save-slot { margin-top: 10px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 6px; width: 100%; background: #fff; color: #334155; }
.online-game-loading { position: fixed; inset: 0; z-index: 1000001; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; color: #fff; background: rgba(0,0,0,.65); font-size: 16px; line-height: 1.6; text-align: center; }
.online-game-loading[hidden] { display: none; }
.online-game-loading::before { content: ''; width: 24px; height: 24px; flex-shrink: 0; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: online-loading-spin .8s linear infinite; }
@keyframes online-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .online-game-loading::before { animation: none; } }
@media (max-width: 600px) { .account-overlay { padding: 10px; align-items: flex-start; padding-top: 20px; } .account-panel { max-height: calc(100dvh - 40px); border-radius: 12px; } .account-header { padding: 18px; } .account-body { padding: 18px; } .account-status { padding: 10px 18px; } .account-products { grid-template-columns: 1fr; } .account-device-row { align-items: flex-start; } .hud-account-button { font-size: 11px; padding: 5px 7px; } }
