#headerWallet[role="button"]{cursor:pointer}
#headerWallet[role="button"]:focus-visible{outline:2px solid #e8ae70;outline-offset:4px}
#headerWallet.is-fake-wallet{border-color:rgba(158,150,237,.55);background:linear-gradient(145deg,#28243b,#191c28)}
#headerWallet.is-fake-wallet .lbl{color:#d8d0ff;letter-spacing:.04em}
/* Scoped to the wallet dialog; other site modals retain their own theme. */
.cmodal.cmodal-wallet{width:560px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);overflow-y:auto;padding:28px;border-radius:22px;border:1px solid #3b3e4a;background:radial-gradient(ellipse at top left,rgba(224,168,109,.07),transparent 65%),#191d26;box-shadow:0 32px 100px #0009;color:#f4f5f8}
.cmodal-wallet .cmodal-icon{display:none}
.cmodal-wallet .cmodal-title{text-align:left;font-size:26px;line-height:1.25;letter-spacing:-.6px;margin:0 0 8px;color:#f4f5f8}
.cmodal-wallet .cmodal-body{text-align:left;margin:0;color:#c6cbd5;font-size:16px;line-height:1.5}
.cmodal-wallet .cmodal-actions{justify-content:flex-end;margin-top:12px}
.cmodal-wallet .cmodal-actions button{flex:0 0 auto;min-width:100px;font-size:16px;border-radius:11px}
.fw-wallet-intro{margin:0 0 24px;font-size:16px;color:#adb6c5}
.fw-wallet-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.fw-wallet-choice{--fw-accent:#edba7c;--fw-tint:rgba(237,186,124,.1);appearance:none;position:relative;display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0;text-align:left;padding:18px;border:1px solid #414754;border-radius:16px;background:linear-gradient(145deg,#262c37,#212630);color:#f3f5f9;font:inherit;font-size:16px;line-height:1.45;cursor:pointer;transition:border-color .16s,background .16s,box-shadow .16s}
.fw-wallet-fake{--fw-accent:#c1b1ff;--fw-tint:rgba(193,177,255,.1)}
.fw-wallet-choice:hover:not(:disabled){border-color:var(--fw-accent);box-shadow:0 0 0 1px var(--fw-tint)}
.fw-wallet-choice.is-selected{border-color:var(--fw-accent);background:linear-gradient(145deg,var(--fw-tint),transparent),#252a34}
.fw-wallet-choice:focus-visible{outline:2px solid var(--fw-accent);outline-offset:4px}
.fw-choice-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:20px}
.fw-choice-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:var(--fw-tint);color:var(--fw-accent);font-size:18px}
.fw-choice-badge{font-size:12px;line-height:1.3;font-weight:700;color:#b5bfcd;text-align:right}
.is-selected .fw-choice-badge{color:var(--fw-accent)}
.fw-choice-name{font-size:16px;font-weight:700;color:#d6dce7}
.fw-wallet-choice strong{display:block;font-size:30px;line-height:1.2;letter-spacing:-.8px;font-weight:800;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:6px 0 10px}
.fw-choice-description{font-size:14px;line-height:1.5;color:#b5bfcd;min-height:42px}
.fw-choice-action{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #ffffff12;margin-top:18px;padding-top:14px;font-size:14px;font-weight:700;color:var(--fw-accent)}
.is-selected .fw-choice-action{justify-content:flex-start}
.fw-wallet-choice:disabled{cursor:default;opacity:.5}
.fw-wallet-choice.is-selected:disabled{opacity:1}
.fw-wallet-guide{display:flex;gap:12px;margin-top:20px;padding:16px;background:#ffffff04;border:1px solid #ffffff0c;border-radius:13px}
.fw-guide-icon{color:#aab6c8;padding-top:2px;font-size:17px}
.fw-wallet-guide strong{font-size:15px;color:#dde3ed}
.fw-wallet-guide p{font-size:14px;line-height:1.6;color:#aeb8c8;margin:5px 0 0}
.fw-wallet-status{min-height:0;margin:0;color:#d5c4f7;font-size:15px;line-height:1.5}
.fw-wallet-status:not(:empty){margin-top:14px;min-height:23px}
.fw-wallet-status.is-error{color:#ffb2b2}
.fw-balance-loading{display:inline-block;width:72px;height:14px;vertical-align:middle;overflow:hidden;border-radius:5px;background:rgba(184,195,215,.12);color:transparent}
@media(max-width:480px){.cmodal.cmodal-wallet{padding:22px 16px}.cmodal-wallet .cmodal-title{font-size:24px}.fw-wallet-options{gap:10px}.fw-wallet-choice{padding:14px}.fw-choice-top{flex-wrap:wrap;gap:10px;margin-bottom:16px}.fw-choice-badge{font-size:12px;text-align:left}.fw-wallet-choice strong{font-size:26px}.fw-choice-action{font-size:13px}.fw-wallet-guide{padding:13px}.fw-wallet-guide p{font-size:14px}}
@media(max-width:350px){.fw-wallet-options{grid-template-columns:1fr}.fw-choice-top{margin-bottom:10px}.fw-choice-description{min-height:0}}
@media(prefers-reduced-motion:reduce){.fw-wallet-choice{transition:none}.cmodal.cmodal-wallet{animation:none}}
.fw-admin-form{font-size:16px;line-height:1.5}
.fw-admin-form .fld{width:100%;font-size:16px;min-height:44px;margin:7px 0 14px}
.fw-admin-actions{display:flex;gap:10px}.fw-admin-actions .btn{flex:1;font-size:16px;min-height:44px}
.fw-admin-history{margin-top:18px;font-size:14px;line-height:1.5;color:#c8ced8}
.fw-admin-history p{margin:8px 0;padding-top:8px;border-top:1px solid rgba(255,255,255,.09)}
/* The existing theme hides wallet labels. Fake play must remain visibly
   labeled, within the wallet's existing height and width. */
body:not(.guest-mode) #headerWallet.is-fake-wallet{display:grid!important;grid-template-columns:18px auto;grid-template-rows:14px 18px;row-gap:0!important;column-gap:9px!important;border-color:rgba(158,150,237,.55)!important;background:linear-gradient(145deg,#28243b,#191c28)!important}
body:not(.guest-mode) #headerWallet.is-fake-wallet .header-wallet-icon{grid-column:1;grid-row:1 / 3}
body:not(.guest-mode) #headerWallet.is-fake-wallet .lbl{display:block!important;grid-column:2;grid-row:1;font-size:14px!important;line-height:14px!important;text-transform:none!important;letter-spacing:0!important;color:#d8d0ff!important}
body:not(.guest-mode) #headerWallet.is-fake-wallet #balance{grid-column:2;grid-row:2;font-size:17px!important;line-height:18px!important}

/* Only the granted fake wallet uses these inventory controls. */
.fw-practice #miSelectAllBtn,.fw-practice #miBulkTray,.fw-practice #wdWithdrawBtn,.fw-practice .inv-recent{display:none!important}
.fw-crafter-link{display:flex;align-items:center;justify-content:center;text-decoration:none;min-height:46px;font-size:16px}
.cr-practice-stock-link{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 14px;border:1px solid #8f70c8;border-radius:10px;background:#7050a52b;color:#e6d6ff;font-size:16px;text-decoration:none;font-weight:650}
.cr-practice-stock-link:focus-visible,.fw-crafter-link:focus-visible{outline:2px solid #c5a4ff;outline-offset:3px}
