/* =====================================================================
   SolForge UI consistency layer
   Loaded after solforge.css and scoped to body.sf-ui so it wins over the
   older per-page rules. One set of tokens for page width, page titles,
   section titles, buttons and form fields across every screen.
   ===================================================================== */
:root{
  --sfu-page-w:1200px;
  --sfu-gutter:20px;
  --sfu-gold:#f2c75a;
  --sfu-gold-2:#e1b548;
  --sfu-gold-3:#a8741f;
  --sfu-text:#e9e2d4;
  --sfu-muted:#a99f8c;
  --sfu-line:#3d2f1d;
  --sfu-line-2:#5a4426;
  --sfu-panel:#13110e;
  --sfu-panel-2:#0f0d0b;
  --sfu-field:#0d0c0a;
  --sfu-radius:10px;
  --sfu-radius-sm:7px;
  --sfu-title:Georgia,"Times New Roman",serif;
  --sfu-sans:Arial,"Segoe UI",Helvetica,sans-serif;
  --sfu-glyph:"Segoe UI Symbol","Noto Sans Symbols 2","Noto Sans Symbols","DejaVu Sans",sans-serif;
}

/* ---------- glyphs: same monochrome style everywhere (no mixed colour emoji) ---------- */
body.sf-ui .topbar nav a,
body.sf-ui main h1{font-variant-emoji:text}
body.sf-ui .sf-glyph{font-family:var(--sfu-glyph);font-variant-emoji:text;font-weight:400}

/* ---------- top navigation ---------- */
body.sf-ui .topbar nav a .sf-glyph{display:block;font-size:13px;line-height:1;margin-bottom:3px;color:inherit}

/* ---------- page width: every content page shares one centred column ---------- */
body.sf-ui main.advanced-page,
body.sf-ui main.market-page,
body.sf-ui main.guild-page,
body.sf-ui main.season-leaderboard-page,
body.sf-ui main.gacha-page,
body.sf-ui main.rewards-page,
body.sf-ui main.wallet-page,
body.sf-ui main.sf-ref-page,
body.sf-ui main.player-profile-page,
body.sf-ui main.duel-page,
body.sf-ui main.season-page,
body.sf-ui main.cosmetic-page,
body.sf-ui main.achievements-page,
body.sf-ui main.sf-doc-page{
  max-width:var(--sfu-page-w)!important;width:auto!important;box-sizing:border-box!important;
  margin:0 auto!important;padding:22px var(--sfu-gutter) 56px!important;
}
/* first block inside a page always spans the full column */
body.sf-ui main.advanced-page>section,
body.sf-ui main.market-page>.page-head,
body.sf-ui main.season-leaderboard-page>section,
body.sf-ui main.rewards-page>section,
body.sf-ui main.wallet-page>section,
body.sf-ui main.sf-ref-page>section,
body.sf-ui main.duel-page>div,
body.sf-ui main.season-page>section,
body.sf-ui main.cosmetic-page>div,
body.sf-ui main.achievements-page>div,
body.sf-ui main.sf-doc-page>section{margin-left:0!important;margin-right:0!important;max-width:none!important;box-sizing:border-box}

/* ---------- page title (h1) ---------- */
body.sf-ui main h1{
  font-family:var(--sfu-title)!important;font-size:30px!important;font-weight:700!important;line-height:1.15!important;
  letter-spacing:1px!important;text-transform:uppercase!important;color:var(--sfu-gold)!important;margin:0!important;
  text-shadow:0 2px 14px rgba(242,199,90,.12)
}
body.sf-ui main h1 .sf-glyph{font-size:.82em;margin-right:10px;vertical-align:.04em;color:var(--sfu-gold-2)}
/* the zone name on the battle screen and the player name on profiles are names, not page titles */
body.sf-ui main.dashboard h1,
body.sf-ui main.player-profile-page .profile-hero h1{text-transform:none!important;letter-spacing:0!important}
body.sf-ui main.player-profile-page .profile-hero h1{font-family:var(--sfu-sans)!important;color:#fff!important}
/* rewards / wallet panels use an h2 as their page title */
body.sf-ui main.rewards-page .modal-head h2,
body.sf-ui main.wallet-page .modal-head h2{
  font-family:var(--sfu-title)!important;font-size:30px!important;font-weight:700!important;letter-spacing:1px!important;line-height:1.15!important;
  text-transform:uppercase!important;color:var(--sfu-gold)!important;margin:0 0 6px!important
}
body.sf-ui main h2 .sf-glyph{font-size:.82em;margin-right:10px;color:var(--sfu-gold-2)}
body.sf-ui main.rewards-page .modal-head,
body.sf-ui main.wallet-page .modal-head{padding:22px 24px!important;min-height:96px;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:16px}
/* the kicker line above a title */
body.sf-ui main .advanced-hero small,
body.sf-ui main .kicker{font-family:var(--sfu-sans);font-size:11px!important;font-weight:800!important;letter-spacing:2px!important;text-transform:uppercase;color:#c79a3b!important}

/* ---------- page header blocks: same frame, padding and height ---------- */
body.sf-ui main .page-head,
body.sf-ui main .advanced-hero,
body.sf-ui main .gacha-head,
body.sf-ui main .guild-toolbar,
body.sf-ui main .sf-ref-head,
body.sf-ui main .season-hero,
body.sf-ui main .cosmetic-hero,
body.sf-ui main .duel-hero,
body.sf-ui main .sf-doc-hero,
body.sf-ui main .slb-head{
  box-sizing:border-box!important;min-height:96px;padding:20px 24px!important;margin:0 0 16px!important;
  border:1px solid var(--sfu-line-2)!important;border-radius:var(--sfu-radius)!important;
  background:radial-gradient(circle at 75% 0,rgba(171,113,24,.16),transparent 45%),linear-gradient(180deg,#17130e,#100e0b)!important;
}
body.sf-ui main .page-head p,
body.sf-ui main .advanced-hero p,
body.sf-ui main .sf-doc-hero p,
body.sf-ui main .season-hero p,
body.sf-ui main .cosmetic-hero p,
body.sf-ui main .sf-ref-head p{font-size:13px!important;line-height:1.55!important;color:var(--sfu-muted)!important;margin:6px 0 0!important;max-width:720px}
body.sf-ui main .advanced-hero>div:first-child{display:flex;flex-direction:column;gap:6px}
body.sf-ui main .advanced-hero p{margin-top:0!important}

/* header stat boxes (boss keys, pool, etc.) line up as label-under-value pairs */
body.sf-ui main .advanced-balance{display:grid!important;grid-auto-flow:column;grid-template-rows:auto auto;column-gap:28px;row-gap:2px;text-align:right;align-items:end}
body.sf-ui main .advanced-balance b{grid-row:1;font-size:24px!important;line-height:1.1;color:var(--sfu-gold)!important}
body.sf-ui main .advanced-balance span{grid-row:2;font-size:10px!important;letter-spacing:1.4px!important;color:var(--sfu-muted)!important;text-transform:uppercase}

/* ---------- section titles inside cards ---------- */
body.sf-ui main .section-head h2,
body.sf-ui main .panel-title,
body.sf-ui main .market-page h2,
body.sf-ui main.market-page section>h2,
body.sf-ui main.market-page .card>h2,
body.sf-ui main.store-page h2,
body.sf-ui main.stake-page h2,
body.sf-ui main.stake-page h3,
body.sf-ui main.wallet-page h3,
body.sf-ui main.sf-ref-page h3,
body.sf-ui main.season-page h2,
body.sf-ui main.forge-page h2,
body.sf-ui main .guild-side h2,
body.sf-ui main .sf-guild-hub h2,
body.sf-ui main .sf-guild-hub h3{
  font-family:var(--sfu-sans)!important;font-size:14px!important;font-weight:800!important;letter-spacing:1.2px!important;
  text-transform:uppercase!important;color:var(--sfu-gold)!important;line-height:1.3!important
}
body.sf-ui main .section-head p{font-size:12px!important;color:var(--sfu-muted)!important;margin-top:4px!important}
body.sf-ui main .section-head{align-items:flex-start!important;gap:14px}

/* ---------- cards ---------- */
body.sf-ui main .card{border-radius:var(--sfu-radius)!important}

/* ---------- buttons ---------- */
body.sf-ui .gold-btn,
body.sf-ui main button.gold-btn,
body.sf-ui main a.gold-btn{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px;
  min-height:40px!important;padding:0 18px!important;box-sizing:border-box!important;
  border:1px solid #f0c75e!important;border-radius:8px!important;
  background:linear-gradient(180deg,var(--sfu-gold-2),var(--sfu-gold-3))!important;color:#1b1307!important;
  font-family:var(--sfu-sans)!important;font-size:12px!important;font-weight:800!important;letter-spacing:.6px!important;
  text-transform:uppercase!important;line-height:1.2!important;text-align:center!important;text-decoration:none!important;
  box-shadow:0 1px 0 rgba(255,230,150,.35) inset,0 6px 16px rgba(0,0,0,.35)!important;cursor:pointer;
  transition:filter .15s ease,transform .15s ease
}
body.sf-ui .gold-btn:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px)}
body.sf-ui .gold-btn:active:not(:disabled){transform:none;filter:brightness(.95)}
body.sf-ui .gold-btn:disabled,
body.sf-ui .gold-btn[disabled]{background:#2a2216!important;border-color:#4a3a22!important;color:#8a7a5c!important;box-shadow:none!important;cursor:not-allowed;filter:none;transform:none}
/* compact buttons inside tiles / list rows */
body.sf-ui main .store-card .gold-btn,
body.sf-ui main .product .gold-btn,
body.sf-ui main .pet-grid .pet-card .gold-btn,
body.sf-ui main .achievement-card .gold-btn,
body.sf-ui main .ach-card .gold-btn,
body.sf-ui main .mini-btn{min-height:32px!important;font-size:11px!important;padding:0 14px!important}
/* full-width call-to-action stays full width */
body.sf-ui main .full-btn{width:100%!important}

/* secondary / ghost buttons */
body.sf-ui main .abandon-form button,
body.sf-ui main .ghost-btn,
body.sf-ui main .secondary-btn{
  min-height:32px;padding:0 14px;border:1px solid var(--sfu-line-2)!important;border-radius:8px!important;
  background:#17130d!important;color:#e4c46e!important;font-size:11px!important;font-weight:800!important;letter-spacing:.5px;text-transform:uppercase;cursor:pointer
}
body.sf-ui main .abandon-form{display:flex;justify-content:center;margin-top:10px}

/* tab / filter pill rows share one look */
body.sf-ui main .market-tabs a,
body.sf-ui main .market-tabs button,
body.sf-ui main .slb-tabs a,
body.sf-ui main .slb-tabs button{min-height:34px;display:inline-flex;align-items:center;gap:6px;padding:0 14px!important;border-radius:8px!important;font-size:12px!important;font-weight:800!important;letter-spacing:.3px}

/* ---------- form fields: never fall back to the white browser default ---------- */
body.sf-ui main :is(input:where(:not([type=radio],[type=checkbox],[type=range],[type=hidden],[type=submit],[type=button],[type=color],[type=file])),select,textarea){
  box-sizing:border-box;min-height:38px;padding:0 12px;
  background-color:var(--sfu-field)!important;color:var(--sfu-text)!important;
  border:1px solid #4a3a22!important;border-radius:var(--sfu-radius-sm)!important;
  font-family:var(--sfu-sans);font-size:13px;outline:none;
  transition:border-color .15s ease,box-shadow .15s ease
}
body.sf-ui main textarea{padding:10px 12px}
body.sf-ui main input:focus,
body.sf-ui main select:focus,
body.sf-ui main textarea:focus{border-color:#c99a3a!important;box-shadow:0 0 0 3px rgba(201,154,58,.18)!important}
body.sf-ui main input::placeholder,
body.sf-ui main textarea::placeholder{color:#7d725f}
body.sf-ui main select{padding-right:28px;cursor:pointer}
body.sf-ui main input[type=radio],
body.sf-ui main input[type=checkbox]{accent-color:var(--sfu-gold-2)}
/* wallet amount fields sit inside their own styled frame */
body.sf-ui main.wallet-page .wallet-input input{border:0!important;background:transparent!important;box-shadow:none!important;min-height:0}

/* ---------- auth pages ---------- */
body.sf-ui main.auth{display:flex!important;justify-content:center!important;align-items:flex-start!important;min-height:calc(100vh - 40px);padding:48px 16px!important;box-sizing:border-box;max-width:none!important;width:auto!important;margin:0!important}
body.sf-ui main.auth .auth-card{width:100%!important;max-width:460px!important;box-sizing:border-box;padding:32px 32px 28px!important;margin:0!important;border-radius:12px!important}
body.sf-ui main.auth h1{font-size:32px!important;margin:8px 0 22px!important}
body.sf-ui main.auth label{display:block;font-size:12px;font-weight:700;letter-spacing:.3px;color:var(--sfu-muted);margin:0 0 14px}
body.sf-ui main.auth label input{display:block;width:100%;margin-top:6px;min-height:42px}
body.sf-ui main.auth .gold-btn{width:100%!important;min-height:44px!important;margin-top:8px!important}
body.sf-ui main.auth p{font-size:13px;color:var(--sfu-muted);text-align:center;margin:18px 0 0}
body.sf-ui main.auth .class-option{position:relative;display:block}
body.sf-ui main.auth .class-option input[type=radio]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;opacity:0;cursor:pointer;z-index:1}
body.sf-ui main.auth .class-option span{display:block;transition:border-color .15s ease,background .15s ease}
body.sf-ui main.auth .class-option input:checked+span{border-color:#d9a63e!important;background:rgba(217,166,62,.09)!important;box-shadow:0 0 0 1px #d9a63e inset}
body.sf-ui main.auth .class-option input:focus-visible+span{box-shadow:0 0 0 3px rgba(201,154,58,.3)}

/* ---------- small fixes found while auditing ---------- */
/* Powerball: ticket field + buy button line up at the same height */
body.sf-ui main.powerball-dual-page input[type=number]{min-height:52px!important;text-align:center;font-size:15px;font-weight:700}
/* Boss Hall: idle warden title matches the other section titles */
body.sf-ui main .boss-key-card .section-head h2{text-transform:uppercase!important}
/* empty states */
body.sf-ui main .muted{color:var(--sfu-muted)}
body.sf-ui main .boss-history .muted{font-size:13px!important;padding:6px 0}

/* Gacha: the title glyph is not the red "NEW" badge; vault spans the column like the panels below it */
body.sf-ui main .gacha-head h1 span.sf-glyph{font:400 .82em var(--sfu-glyph)!important;background:none!important;color:var(--sfu-gold-2)!important;padding:0!important;margin:0 10px 0 0!important;vertical-align:.04em!important}
body.sf-ui main.gacha-page .gacha-vault{margin-left:0!important;margin-right:0!important;width:auto!important;max-width:none!important;padding-bottom:22px!important;min-height:0!important;height:auto!important}
body.sf-ui main.gacha-page .gacha-head{border-bottom:1px solid var(--sfu-line-2)!important}
/* Market: filters stay on one tidy row */
body.sf-ui main.market-page form.filters{display:grid!important;grid-template-columns:minmax(180px,2fr) repeat(2,minmax(110px,1fr)) repeat(2,minmax(80px,.8fr)) repeat(2,minmax(100px,1fr)) auto;gap:8px!important;align-items:center;padding:16px 0!important}
body.sf-ui main.market-page form.filters>*{width:100%!important;min-width:0;margin:0!important}
body.sf-ui main.market-page form.filters .gold-btn,
body.sf-ui main.market-page form.filters button{width:auto!important;min-height:38px!important;margin:0!important}
@media(max-width:980px){body.sf-ui main.market-page form.filters{grid-template-columns:1fr 1fr}}

/* Pets: a clean three-column card grid with the price/actions pinned to the bottom of every card */
body.sf-ui main .pet-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;margin:0!important}
body.sf-ui main .pet-grid .pet-card{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;padding:18px!important;margin:0!important;min-height:0!important;position:relative}
body.sf-ui main .pet-grid .pet-card .pet-icon{width:64px!important;height:64px!important;flex:0 0 auto;display:flex;align-items:center;justify-content:center;border:1px solid var(--sfu-line-2);border-radius:var(--sfu-radius-sm);background:#0c0b09;position:static!important;margin:0!important}
body.sf-ui main .pet-grid .pet-card .pet-icon img{max-width:52px;max-height:52px;object-fit:contain}
body.sf-ui main .pet-grid .pet-card .pet-copy{flex:1 1 auto;padding:0!important;margin:0!important}
body.sf-ui main .pet-grid .pet-card .pet-copy h2{font-size:17px!important;margin:0 0 4px!important;color:#f3e6c8!important;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
body.sf-ui main .pet-grid .pet-card .pet-copy h2 em{font-size:10px!important;font-style:normal;color:var(--sfu-muted)!important}
body.sf-ui main .pet-grid .pet-card .pet-copy>span{display:block;font-size:11px;letter-spacing:.6px;text-transform:uppercase;color:#c79a3b;margin-bottom:8px}
body.sf-ui main .pet-grid .pet-card .pet-copy p{font-size:13px!important;margin:0 0 6px!important;color:var(--sfu-text)}
body.sf-ui main .pet-grid .pet-card .pet-copy small{font-size:11px!important;color:var(--sfu-muted)!important;line-height:1.45}
body.sf-ui main .pet-grid .pet-card .pet-actions{position:static!important;margin:auto 0 0!important;padding:12px 0 0!important;border-top:1px solid var(--sfu-line);display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;width:auto!important;transform:none!important}
body.sf-ui main .pet-grid .pet-card .pet-actions form{margin:0!important;width:100%}
body.sf-ui main .pet-grid .pet-card .pet-actions .gold-btn{width:100%!important;margin:0!important;min-height:36px!important}
body.sf-ui main .pet-grid .pet-card .pet-actions button:not(.gold-btn){width:100%;min-height:34px;border:1px solid var(--sfu-line-2)!important;border-radius:8px!important;background:#17130d!important;color:#e4c46e!important;font-size:11px!important;font-weight:800!important;letter-spacing:.5px;cursor:pointer}
body.sf-ui main .pet-grid .pet-card .pet-actions button.chosen{background:#2a2010!important;border-color:#d9a63e!important}
body.sf-ui main .pet-grid .pet-card .pet-price{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:14px!important;font-weight:800;color:#f3e6c8!important;margin:0!important;white-space:normal!important;text-align:left!important}
body.sf-ui main .pet-grid .pet-card .pet-usd{font-size:11px;font-weight:700;color:var(--sfu-muted)}
body.sf-ui main .pet-grid .pet-card .pet-special-label{position:static!important;width:auto!important;height:auto!important;margin:0!important;padding:10px!important;border:1px dashed var(--sfu-line-2)!important;border-radius:8px!important;text-align:center!important;font-size:11px!important;font-weight:800;letter-spacing:1px;color:#e4c46e!important;background:#0f0d0b!important;transform:none!important}
body.sf-ui main .pet-grid .pet-card .pet-actions>b{font-size:12px;letter-spacing:1px;color:var(--sfu-gold);text-align:center}
@media(max-width:1000px){body.sf-ui main .pet-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:640px){body.sf-ui main .pet-grid{grid-template-columns:1fr!important}}

/* glyph always sits inline before the title text */
body.sf-ui main h1 .sf-glyph,
body.sf-ui main h2 .sf-glyph{display:inline!important}
/* compact buttons used inside list cards */
body.sf-ui main .achievement-title-btn,
body.sf-ui main .pet-buy,
body.sf-ui main button.gold-btn.small,
body.sf-ui main .sf-mini-btn{min-height:30px!important;padding:0 12px!important;font-size:10px!important;letter-spacing:.5px!important}

/* shared empty state */
body.sf-ui main .sf-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:160px;margin:14px 0;padding:24px;border:1px dashed var(--sfu-line-2);border-radius:var(--sfu-radius);background:rgba(15,13,11,.6);text-align:center}
body.sf-ui main .sf-empty-state b{font-size:15px;color:var(--sfu-gold)}
body.sf-ui main .sf-empty-state span{font-size:13px;color:var(--sfu-muted);max-width:420px;line-height:1.5}
/* guilds: create-guild form fills its card */
body.sf-ui main .create-guild{display:flex!important;flex-direction:column!important;gap:10px!important;padding:14px 0 0!important;max-width:none!important;margin:0!important}
body.sf-ui main .create-guild input,
body.sf-ui main .create-guild .gold-btn{width:100%!important;max-width:none!important;margin:0!important}
/* mailbox empty message */
body.sf-ui main.advanced-page .mail-empty,
body.sf-ui main.advanced-page>section.card>p.muted{font-size:13px!important;padding:8px 2px}

/* =====================================================================
   Inventory inspect panel (game.php → Inventory → click any item)
   One layout for gear, chests, potions, keys, tickets and resources:
   framed art → name → rarity pill → meta line → info boxes → stat list → actions
   ===================================================================== */
body.sf-ui .inventory .inspect{--rc:#c79a3b;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;
  margin-top:10px!important;padding:16px 14px!important;min-height:0!important;box-sizing:border-box;text-align:center!important;
  border:1px solid var(--sfu-line)!important;border-radius:var(--sfu-radius)!important;background:linear-gradient(180deg,#14110d,#0e0c0a)!important;color:var(--sfu-text)!important}
body.sf-ui .inventory .inspect.rarity-common{--rc:#9CA3AF}
body.sf-ui .inventory .inspect.rarity-uncommon{--rc:#22C55E}
body.sf-ui .inventory .inspect.rarity-rare{--rc:#3B82F6}
body.sf-ui .inventory .inspect.rarity-epic{--rc:#b65ad6}
body.sf-ui .inventory .inspect.rarity-legendary{--rc:#F59E0B}
body.sf-ui .inventory .inspect.rarity-mythic{--rc:#E54241}
body.sf-ui .inventory .inspect.rarity-cosmic{--rc:#c8f03f}
body.sf-ui .inventory .inspect.rarity-divine{--rc:#FF7AD9}
body.sf-ui .inventory .inspect.rarity-celestial{--rc:#7DF9FF}
body.sf-ui .inventory .inspect.rarity-angel{--rc:#e0a83a}
body.sf-ui .inventory .inspect.rarity-god{--rc:#9b7ae0}
body.sf-ui .inventory .inspect.rarity-ancient{--rc:#d9b26b}
body.sf-ui .inventory .inspect.inspect-material{--rc:#c79a3b}

/* header: art, name, rarity pill, meta */
body.sf-ui .inventory .inspect>img.inspect-item-art{align-self:center;width:96px!important;height:96px!important;max-width:none!important;max-height:none!important;object-fit:contain!important;box-sizing:border-box!important;padding:10px!important;margin:0 0 2px!important;
  border:1px solid var(--rc)!important;border-radius:12px!important;background:radial-gradient(circle at 50% 40%,color-mix(in srgb,var(--rc) 22%,transparent),#0b0a08 70%)!important;
  box-shadow:0 0 18px color-mix(in srgb,var(--rc) 25%,transparent),inset 0 0 0 1px rgba(255,255,255,.03)!important;filter:none!important}
body.sf-ui .inventory .inspect>strong{display:block;font-size:16px!important;font-weight:800!important;line-height:1.25!important;color:#f6ead0!important;margin:0!important;letter-spacing:.2px}
body.sf-ui .inventory .inspect>span{align-self:center;display:inline-block;margin:0!important;padding:3px 10px!important;border:1px solid color-mix(in srgb,var(--rc) 60%,transparent);border-radius:999px;
  background:color-mix(in srgb,var(--rc) 12%,transparent);color:var(--rc)!important;font-size:10px!important;font-weight:800!important;letter-spacing:.9px!important;text-transform:uppercase;line-height:1.4}
body.sf-ui .inventory .inspect>small,
body.sf-ui .inventory .inspect>small.inspect-lock-state{display:block;font-size:11px!important;line-height:1.45!important;color:var(--sfu-muted)!important;margin:0!important}

/* info boxes all share one frame */
body.sf-ui .inventory .inspect .item-upgrade-preview,
body.sf-ui .inventory .inspect .gear-compare,
body.sf-ui .inventory .inspect .gear-chest-open-box,
body.sf-ui .inventory .inspect .potion-heal-stat{box-sizing:border-box;width:100%!important;margin:0!important;padding:12px!important;text-align:left!important;
  border:1px solid var(--sfu-line)!important;border-radius:8px!important;background:#0c0b09!important;box-shadow:none!important;color:var(--sfu-text)!important;font-size:12px!important;line-height:1.5!important}
body.sf-ui .inventory .inspect .potion-heal-stat{text-align:center!important;font-size:12px!important}
body.sf-ui .inventory .inspect .potion-heal-stat b{color:#6ee787!important}
body.sf-ui .inventory .inspect .potion-heal-stat.inspect-info{color:#cfc4ae!important}

/* section headings inside boxes */
body.sf-ui .inventory .inspect .upgrade-preview-head,
body.sf-ui .inventory .inspect .gear-compare>b,
body.sf-ui .inventory .inspect .gear-chest-open-box>b{display:flex!important;justify-content:space-between;align-items:center;margin:0 0 10px!important;padding:0 0 8px!important;border-bottom:1px solid var(--sfu-line);
  font-size:10px!important;font-weight:800!important;letter-spacing:1.2px!important;text-transform:uppercase;color:var(--sfu-gold)!important;text-align:left!important}
body.sf-ui .inventory .inspect .upgrade-preview-head b{font-size:10px!important;letter-spacing:1.2px!important;color:var(--sfu-gold)!important}
body.sf-ui .inventory .inspect .upgrade-preview-head span{font-size:11px!important;font-weight:800;color:#f6ead0!important}

/* upgrade costs */
body.sf-ui .inventory .inspect .upgrade-preview-costs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin:0 0 8px!important}
body.sf-ui .inventory .inspect .upgrade-preview-costs>span{display:flex!important;flex-direction:column;gap:2px;padding:7px 9px!important;border:1px solid #2c2318!important;border-radius:6px!important;background:#100e0b!important;min-height:0!important}
body.sf-ui .inventory .inspect .upgrade-preview-costs small{font-size:9px!important;letter-spacing:1px!important;color:var(--sfu-muted)!important;text-transform:uppercase}
body.sf-ui .inventory .inspect .upgrade-preview-costs strong{font-size:13px!important;color:#f6ead0!important}
body.sf-ui .inventory .inspect .upgrade-preview-chance{display:flex!important;justify-content:space-between;align-items:center;font-size:11px!important;color:var(--sfu-muted)!important;padding:6px 0 0!important;border-top:1px solid #241d14;margin:0!important}
body.sf-ui .inventory .inspect .upgrade-preview-chance b{color:#6ee787!important;font-size:12px!important}
body.sf-ui .inventory .inspect .upgrade-preview-note{display:block;font-size:10px!important;color:#857a66!important;margin-top:4px!important}

/* stat list: two columns of label / value rows */
body.sf-ui .inventory .inspect .item-stats{width:100%!important;max-width:none!important;box-sizing:border-box;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px 10px!important;margin:0!important;padding:10px 12px!important;
  border:1px solid var(--sfu-line)!important;border-radius:8px!important;background:#0c0b09!important}
body.sf-ui .inventory .inspect .item-stats>span{display:flex!important;justify-content:space-between!important;align-items:baseline;gap:6px;min-width:0;margin:0!important;padding:4px 0!important;
  border:0!important;border-bottom:1px solid #1f1a13!important;border-radius:0!important;background:none!important;box-shadow:none!important;font-size:11px!important;text-align:left!important;color:#e9dcc0!important}
body.sf-ui .inventory .inspect .item-stats>span em{font-style:normal;font-size:10px;font-weight:700;letter-spacing:.8px;color:var(--sfu-muted);white-space:nowrap}
body.sf-ui .inventory .inspect .item-stats>span b{font-weight:800;color:#f6ead0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.sf-ui .inventory .inspect .item-stats>span:not(.is-zero) b{color:#7fe08f}
body.sf-ui .inventory .inspect .item-stats>span:not([class]) b{color:#f0d79a}
body.sf-ui .inventory .inspect .item-stats>span.is-zero{opacity:.45}

/* compare */
body.sf-ui .inventory .inspect .gear-compare>div{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin:0 0 8px!important}
body.sf-ui .inventory .inspect .gear-compare>div>span{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;padding:6px!important;border:1px solid #2c2318!important;border-radius:6px!important;background:#100e0b!important;font-size:10px!important;color:var(--sfu-muted)!important;text-align:center}
body.sf-ui .inventory .inspect .gear-compare>div>span strong{font-size:15px!important;color:#f6ead0!important}
body.sf-ui .inventory .inspect .gear-compare>div>span:last-child{font-size:11px!important;font-weight:800;color:#e58c7a!important}
body.sf-ui .inventory .inspect .gear-compare small{display:block;font-size:10px!important;color:#857a66!important;text-align:center}

/* chest / key / ticket boxes */
body.sf-ui .inventory .inspect .gear-chest-open-box{display:flex!important;flex-direction:column;gap:6px}
body.sf-ui .inventory .inspect .gear-chest-open-box>span{display:block;font-size:12px!important;color:#cfc4ae!important;line-height:1.5}
body.sf-ui .inventory .inspect .gear-chest-open-box>small{font-size:10px!important;color:#857a66!important}
body.sf-ui .inventory .inspect .gear-chest-open-box form{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px!important;align-items:end;margin:6px 0 0!important}
body.sf-ui .inventory .inspect .gear-chest-open-box form.chest-unlock-form{grid-template-columns:1fr}
body.sf-ui .inventory .inspect .gear-chest-open-box label{display:flex!important;flex-direction:column;gap:4px;margin:0!important;font-size:10px!important;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--sfu-muted)!important;text-align:left}
body.sf-ui .inventory .inspect .gear-chest-open-box label input{width:100%!important;min-height:36px!important;text-align:center;font-weight:700}
body.sf-ui .inventory .inspect .gear-chest-open-box form>button:only-child{grid-column:1/-1}
body.sf-ui .inventory .inspect .class-change-options{display:grid!important;grid-template-columns:repeat(3,1fr);gap:6px}
body.sf-ui .inventory .inspect .class-change-options form{display:block!important;margin:0!important}

/* action buttons: two per row, a lone last button fills the row */
body.sf-ui .inventory .inspect .inspect-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin:2px 0 0!important;padding:0!important;justify-content:stretch!important}
body.sf-ui .inventory .inspect .inspect-actions>*{flex:1 1 calc(50% - 4px)!important;min-width:0!important;margin:0!important}
body.sf-ui .inventory .inspect .inspect-actions>.potion-heal-stat,
body.sf-ui .inventory .inspect .inspect-actions>.gear-chest-open-box{flex-basis:100%!important}
body.sf-ui .inventory .inspect .inspect-actions:empty{display:none!important}
body.sf-ui .inventory .inspect form{margin:0!important}
body.sf-ui .inventory .inspect .inspect-actions form>button,
body.sf-ui .inventory .inspect .inspect-actions>button,
body.sf-ui .inventory .inspect>form>button,
body.sf-ui .inventory .inspect .gear-chest-open-box button{width:100%!important;min-height:36px!important;padding:0 10px!important;font-size:11px!important;white-space:nowrap!important;letter-spacing:.5px!important}
body.sf-ui .inventory .inspect .inspect-lock-form{display:block;width:100%}
/* secondary: lock / unlock */
body.sf-ui .inventory .inspect .gold-btn.inspect-lock-btn{background:#17130d!important;border-color:var(--sfu-line-2)!important;color:#e4c46e!important;box-shadow:none!important}
body.sf-ui .inventory .inspect .gold-btn.inspect-lock-btn:hover{border-color:#c99a3a!important}
/* sell: muted red so it is never mistaken for the main action */
body.sf-ui .inventory .inspect .gold-btn.inspect-sell-btn{background:#1d1110!important;border-color:#6b2f27!important;color:#f0a492!important;box-shadow:none!important}
body.sf-ui .inventory .inspect .gold-btn.inspect-sell-btn:disabled{background:#161211!important;border-color:#33241f!important;color:#6f5a52!important}

/* empty state */
body.sf-ui .inventory .inspect.inspect-empty{min-height:120px;justify-content:center}
body.sf-ui .inventory .inspect .inspect-empty-text{display:flex;flex-direction:column;gap:4px;margin:0;color:var(--sfu-muted)}
body.sf-ui .inventory .inspect .inspect-empty-text b{font-size:13px;color:#e4c46e}
body.sf-ui .inventory .inspect .inspect-empty-text span{font-size:11px;line-height:1.5}

body.sf-ui .inventory .inspect .item-stats>span:not([class]){grid-column:1/-1}
body.sf-ui .inventory .inspect .gear-chest-open-box>span{margin:0!important;padding:0!important}
body.sf-ui .inventory .inspect .gear-chest-open-box>b{margin-bottom:4px!important}
body.sf-ui .inventory .inspect .gear-chest-open-box label{padding:0!important}

/* Inventory → Pets tab */
body.sf-ui .inventory .pet-slots{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:10px 0 8px!important}
body.sf-ui .inventory .pet-slots>div{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:84px!important;height:auto!important;padding:10px!important;box-sizing:border-box;
  border:1px dashed var(--sfu-line-2)!important;border-radius:8px!important;background:#0c0b09!important;text-align:center}
body.sf-ui .inventory .pet-slots .pet-slot-art{width:40px;height:40px;margin:0 auto 2px}
body.sf-ui .inventory .pet-slots .pet-slot-art:empty{display:none}
body.sf-ui .inventory .pet-slots small{font-size:9px!important;letter-spacing:1.2px!important;color:var(--sfu-muted)!important}
body.sf-ui .inventory .pet-slots b{font-size:13px!important;color:#f6ead0!important}
/* v1.83.42: the pet art (68px) overflowed its 40px box and ran over the pet's name */
body.sf-ui .inventory .pet-slots .pet-slot-art{width:72px!important;height:72px!important;margin:0 auto 6px!important;display:grid;place-items:center;overflow:hidden;flex:none}
body.sf-ui .inventory .pet-slots .pet-slot-art .pet-art-img{width:100%!important;height:100%!important;object-fit:contain}
body.sf-ui .inventory .pet-slots b{display:block;line-height:1.2;max-width:100%;overflow-wrap:anywhere;position:relative;z-index:1}
body.sf-ui .inventory .pet-summary{font-size:11px!important;color:var(--sfu-muted)!important;margin:0 0 8px!important}
body.sf-ui .inventory .pet-list{display:flex!important;flex-direction:column!important;gap:8px!important}
body.sf-ui .inventory .pet-list .pet-card{--rc:#c79a3b;display:grid!important;grid-template-columns:56px minmax(0,1fr)!important;gap:10px!important;align-items:start!important;
  margin:0!important;padding:10px!important;min-height:0!important;box-sizing:border-box;border:1px solid var(--sfu-line)!important;border-radius:8px!important;background:#0f0d0b!important}
body.sf-ui .inventory .pet-list .pet-card.rare{--rc:#3B82F6}
body.sf-ui .inventory .pet-list .pet-card.epic{--rc:#b65ad6}
body.sf-ui .inventory .pet-list .pet-card.legendary{--rc:#F59E0B}
body.sf-ui .inventory .pet-list .pet-card.mythic{--rc:#E54241}
body.sf-ui .inventory .pet-list .pet-card.celestial{--rc:#7DF9FF}
body.sf-ui .inventory .pet-list .pet-icon{position:static!important;width:56px!important;height:56px!important;margin:0!important;display:flex!important;align-items:center;justify-content:center;
  border:1px solid var(--rc)!important;border-radius:8px!important;background:radial-gradient(circle,color-mix(in srgb,var(--rc) 18%,transparent),#0b0a08 70%)!important;box-sizing:border-box}
body.sf-ui .inventory .pet-list .pet-icon img{max-width:44px!important;max-height:44px!important;width:auto!important;height:auto!important;object-fit:contain}
body.sf-ui .inventory .pet-list .pet-info{min-width:0;padding:0!important;margin:0!important;display:flex;flex-direction:column;gap:5px;text-align:left}
body.sf-ui .inventory .pet-list .pet-info h4{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0!important;font-size:13px!important;color:var(--rc)!important;line-height:1.25}
body.sf-ui .inventory .pet-list .pet-info h4 small{font-size:9px!important;font-weight:700;color:var(--sfu-muted)!important;border:1px solid var(--sfu-line-2);border-radius:999px;padding:1px 6px}
body.sf-ui .inventory .pet-list .pet-info p{margin:0!important;font-size:11px!important;line-height:1.4;color:#cfc4ae!important}
body.sf-ui .inventory .pet-list .pet-ability{margin:0!important;padding:6px 8px!important;font-size:10px!important;line-height:1.4;border:1px solid #2c2318!important;border-radius:6px!important;background:#0b0a08!important;color:#b8ad97!important}
body.sf-ui .inventory .pet-list .pet-price{display:flex!important;justify-content:space-between;align-items:baseline;gap:6px;margin:2px 0 0!important;font-size:12px!important;font-weight:800;color:#36d07a!important; /* v1.83.46: SFORGE prices in green */text-align:left!important}
body.sf-ui .inventory .pet-list .pet-price b{display:block;width:100%;text-align:center;padding:6px;border:1px dashed var(--sfu-line-2);border-radius:6px;font-size:10px!important;letter-spacing:1px;color:#e4c46e!important}
body.sf-ui .inventory .pet-list .pet-usd{font-size:10px!important;color:var(--sfu-muted)!important;font-weight:700}
body.sf-ui .inventory .pet-list form{margin:0!important}
body.sf-ui .inventory .pet-list form button{width:100%!important;min-height:32px!important;font-size:11px!important}

/* =====================================================================
   Battle screen (game.php) layout polish
   ===================================================================== */
/* top controls: all three toggles share one pill size */
body.sf-ui .arena-top .auto-pot-trigger,
body.sf-ui .arena-top .auto-combat-trigger,
body.sf-ui .arena-top .pvp-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;height:32px!important;min-height:32px!important;padding:0 14px!important;box-sizing:border-box!important;
  border-radius:8px!important;font-size:11px!important;font-weight:800!important;letter-spacing:.6px!important;line-height:1!important;white-space:nowrap!important;margin:0!important}
body.sf-ui .arena-top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
body.sf-ui .arena-top .auto-combat-pvp-stack{display:flex!important;gap:8px!important;align-items:center!important}
body.sf-ui .arena-top form{margin:0!important}

/* chest / boss buttons under the arena */
body.sf-ui .sf-battle-stats{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
body.sf-ui .sf-chest-button,
body.sf-ui .sf-boss-button{width:100%!important;min-height:44px!important;border-radius:8px!important;font-size:12px!important;font-weight:800!important;letter-spacing:1px!important}

/* zone list: wraps into two even rows instead of a clipped scroller with cut-off names */
body.sf-ui .zone-wrap:not(.is-collapsed) .zones{display:grid!important;grid-template-columns:repeat(9,minmax(0,1fr))!important;gap:5px!important;overflow:visible!important;max-width:none!important}
body.sf-ui .zones .zone{display:flex!important;flex-direction:column!important;align-items:center!important;gap:3px!important;min-width:0!important;height:auto!important;padding:10px 8px!important;box-sizing:border-box;border-radius:8px!important;text-align:center!important}
body.sf-ui .zones .zone>small:first-child{font-size:10px!important;font-weight:800;color:#8d7f66!important}
body.sf-ui .zones .zone>b{font-size:12px!important;line-height:1.25!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;min-height:30px;display:flex!important;align-items:center;justify-content:center}
body.sf-ui .zones .zone>span{font-size:10px!important;color:var(--sfu-muted)!important}
body.sf-ui .zones .zone .zone-recommended-power{font-size:9.5px!important;line-height:1.35!important;color:#8d7f66!important}
body.sf-ui .zones .zone .zone-earning{font-size:10px!important;line-height:1.3!important;min-height:26px;display:flex!important;align-items:center;justify-content:center}
body.sf-ui .zones .zone>button{width:100%!important;min-height:28px!important;margin-top:auto!important;border-radius:6px!important;font-size:11px!important;font-weight:800!important}

/* earnings strip: five equal columns, labels on one line, values the same size */
body.sf-ui .earnings.earnings-ticker{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:0!important;align-items:stretch!important}
body.sf-ui .earnings.earnings-ticker>div{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;padding:14px 8px!important;min-width:0;text-align:center!important;box-sizing:border-box}
body.sf-ui .earnings.earnings-ticker .earning-label{font-size:10px!important;letter-spacing:1.3px!important;white-space:nowrap!important;display:flex;align-items:center;gap:6px;justify-content:center}
body.sf-ui .earnings.earnings-ticker .earning-label em{font-size:9px!important}
body.sf-ui .earnings.earnings-ticker b{font-size:20px!important;line-height:1.15!important;white-space:nowrap}
body.sf-ui .earnings.earnings-ticker>div>span{font-size:10px!important;color:var(--sfu-muted)!important;line-height:1.3}
body.sf-ui .earnings.earnings-ticker .earn-main{align-items:center!important;text-align:center!important}

/* card titles: subtitle and "View all" sit consistently on the right */
body.sf-ui .activity-view-all{margin-left:auto;display:inline-flex;align-items:center;height:22px;padding:0 10px;border:1px solid var(--sfu-line-2);border-radius:999px;font-size:10px!important;letter-spacing:.6px;text-transform:uppercase;color:#e4c46e!important;text-decoration:none}

/* inventory toolbar */
body.sf-ui .inventory .inv-action,
body.sf-ui .inventory .inv-actions a,
body.sf-ui .inventory a.inv-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;height:28px!important;min-height:28px!important;padding:0 10px!important;box-sizing:border-box;border-radius:6px!important;font-size:10.5px!important;font-weight:800!important;white-space:nowrap}
body.sf-ui .inventory .inv-pages{display:flex!important;gap:6px!important;flex-wrap:wrap}
body.sf-ui .inventory .inv-pages a{display:inline-flex!important;align-items:center;height:28px!important;padding:0 12px!important;border-radius:6px!important;font-size:10.5px!important;font-weight:800!important;letter-spacing:.6px}

/* quests: progress on the left, claim on the right */
body.sf-ui .quest>i{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-height:26px!important;padding:3px 4px 3px 8px!important;box-sizing:border-box;font-style:normal!important;font-size:10.5px!important}
body.sf-ui .quest>i .quest-inline-form{margin:0 0 0 auto!important;display:inline-flex}
body.sf-ui .quest>i .quest-inline-form button{height:20px!important;min-height:20px!important;padding:0 10px!important;border-radius:5px!important;font-size:9.5px!important;font-weight:800!important;letter-spacing:.6px}
body.sf-ui .quest>strong{text-align:right!important;line-height:1.35!important}
body.sf-ui .earnings.earnings-ticker>div>span{white-space:nowrap}
body.sf-ui .earnings.earnings-ticker .earn-main>span{font-size:9px!important;letter-spacing:.4px}
body.sf-ui .zones .zone .zone-recommended-power{min-height:26px;display:flex!important;align-items:center;justify-content:center}
body.sf-ui .inventory .pet-list .pet-card{flex:0 0 auto!important;height:auto!important;max-height:none!important;overflow:visible!important}
body.sf-ui .inventory .pet-list .pet-info>*{flex:0 0 auto}


/* ---------- top bar: line icons, links spread across the whole bar ---------- */
body.sf-ui .topbar{display:flex!important;align-items:center!important;gap:14px!important}
body.sf-ui .topbar nav{flex:1 1 auto!important;display:flex!important;justify-content:space-between!important;align-items:stretch!important;gap:2px!important;min-width:0;margin:0!important}
body.sf-ui .topbar nav a{flex:1 1 0!important;min-width:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;
  padding:8px 4px!important;border-radius:8px!important;font-size:12.5px!important;font-weight:700!important;letter-spacing:.2px;white-space:nowrap;text-align:center;position:relative}
body.sf-ui .topbar nav a .sf-nav-icon{width:20px;height:20px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;opacity:.85;transition:transform .15s ease,opacity .15s ease}
body.sf-ui .topbar nav a:hover .sf-nav-icon{opacity:1;transform:translateY(-1px)}
body.sf-ui .topbar nav a.active .sf-nav-icon{opacity:1;filter:drop-shadow(0 0 6px rgba(242,199,90,.45))}
body.sf-ui .topbar nav a .sf-nav-label{display:block;line-height:1}
body.sf-ui .topbar nav a .mail-alert{position:absolute;top:4px;right:calc(50% - 20px)}
body.sf-ui .topbar .walletbar{flex:0 0 auto!important;margin-left:0!important}
body.sf-ui .topbar .brand{flex:0 0 auto!important}
@media(max-width:1280px){body.sf-ui .topbar nav a{font-size:11px!important}body.sf-ui .topbar nav a .sf-nav-icon{width:18px;height:18px}}

/* ---------- chest / boss buttons: compact, right-aligned, with icons ---------- */
body.sf-ui .sf-battle-stats{display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:8px!important;grid-template-columns:none!important}
body.sf-ui .sf-chest-button-wrap,body.sf-ui .sf-boss-button-wrap{flex:0 0 auto!important;width:auto!important}
body.sf-ui .sf-chest-button-wrap form,body.sf-ui .sf-boss-button-wrap form{margin:0!important}
body.sf-ui .sf-chest-button,
body.sf-ui .sf-boss-button{width:auto!important;min-width:0!important;height:40px!important;min-height:40px!important;display:inline-flex!important;align-items:center!important;gap:8px!important;padding:0 14px 0 8px!important;
  border-radius:8px!important;font-size:13px!important;font-weight:800!important;letter-spacing:.2px!important;text-transform:none!important;white-space:nowrap!important;cursor:pointer}
body.sf-ui .sf-chest-button{background:linear-gradient(180deg,#e9bd52,#b7802a)!important;border:1px solid #f2cd6a!important;color:#1d1408!important;box-shadow:0 1px 0 rgba(255,235,160,.4) inset,0 4px 12px rgba(0,0,0,.35)!important}
body.sf-ui .sf-boss-button{background:linear-gradient(180deg,#8e2a26,#5e1714)!important;border:1px solid #c0473d!important;color:#ffe6c7!important;box-shadow:0 1px 0 rgba(255,170,150,.25) inset,0 4px 12px rgba(0,0,0,.35)!important}
body.sf-ui .sf-chest-button:hover:not(:disabled),body.sf-ui .sf-boss-button:hover:not(:disabled){filter:brightness(1.08)}
body.sf-ui .sf-chest-button:disabled,body.sf-ui .sf-boss-button:disabled{filter:grayscale(.55) brightness(.7);cursor:not-allowed}
body.sf-ui .sf-btn-icon{width:26px;height:26px;flex:0 0 auto;object-fit:contain}
body.sf-ui .sf-btn-skull{fill:none;stroke:#f2c75a;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 1px rgba(0,0,0,.5))}
body.sf-ui .sf-btn-count{font-weight:900}
body.sf-ui .sf-btn-keys{display:inline-flex;align-items:center;gap:4px;margin-left:2px;padding:0 0 0 8px;border-left:1px solid rgba(255,220,180,.25);font-weight:900}
body.sf-ui .sf-btn-keys img{width:18px;height:18px;object-fit:contain}

/* ---------- zone list: all nine zones on one line (normal and nightmare) ---------- */
body.sf-ui .zones .zone{padding:8px 4px 6px!important;gap:2px!important}
body.sf-ui .zones .zone>small:first-child{font-size:9px!important}
body.sf-ui .zones .zone>b{font-size:11px!important;line-height:1.2!important;min-height:27px!important;word-break:normal;hyphens:auto}
body.sf-ui .zones .zone>span{font-size:9px!important;line-height:1.25!important;min-height:23px;display:flex!important;align-items:center;justify-content:center}
body.sf-ui .zones .zone .zone-recommended-power{font-size:9px!important;min-height:13px!important;white-space:nowrap}
body.sf-ui .zones .zone .zone-earning{font-size:9px!important;min-height:24px!important;line-height:1.2!important}
body.sf-ui .zones .zone>button{min-height:24px!important;height:24px!important;font-size:10px!important;padding:0 4px!important}

/* ---------- auto-pot toggle: never clipped, whatever the state ---------- */
body.sf-ui .auto-pot-control{flex:0 0 auto!important;width:auto!important;max-width:none!important;overflow:visible!important}
body.sf-ui .arena-top .auto-pot-trigger{width:auto!important;min-width:max-content!important;max-width:none!important;overflow:visible!important;text-overflow:clip!important}
body.sf-ui .sf-chest-button>span,body.sf-ui .sf-boss-button>span{font-size:13px!important;line-height:1!important;color:inherit!important;opacity:1!important;letter-spacing:.2px!important;text-transform:none!important;position:static!important;display:inline-flex!important;align-items:center;margin:0!important;padding-top:0!important;padding-bottom:0!important;background:none!important}
body.sf-ui .sf-boss-button>span.sf-btn-keys{padding-left:8px!important;margin-left:2px!important}
body.sf-ui .sf-chest-button>img,body.sf-ui .sf-boss-button>svg{position:static!important;margin:0!important;opacity:1!important}

/* =====================================================================
   Top bar (v3): brand · evenly spread nav · balances · wallet · profile
   ===================================================================== */
body.sf-ui .topbar{position:sticky;top:0;z-index:60;display:flex!important;align-items:stretch!important;gap:18px!important;height:64px!important;min-height:64px!important;padding:0 18px!important;box-sizing:border-box;
  background:linear-gradient(180deg,#15120d,#0c0a08)!important;border-bottom:1px solid #3a2c19!important;box-shadow:0 6px 24px rgba(0,0,0,.45)!important}
body.sf-ui .topbar .brand{align-self:center;display:flex!important;align-items:center;gap:8px;font-size:19px!important;letter-spacing:1.5px!important;padding-right:6px;text-decoration:none}
/* nav */
body.sf-ui .topbar nav{flex:1 1 auto!important;display:flex!important;align-items:stretch!important;justify-content:space-between!important;gap:0!important;margin:0!important;min-width:0;height:100%}
body.sf-ui .topbar nav a{flex:1 1 0!important;min-width:0!important;height:100%!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;
  padding:0 2px!important;margin:0!important;box-sizing:border-box;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  color:#a69a84!important;font-size:12px!important;font-weight:700!important;letter-spacing:.3px!important;text-decoration:none!important;position:relative;transition:color .15s ease,background .15s ease}
body.sf-ui .topbar nav a::after{content:"";position:absolute;left:18%;right:18%;bottom:0;height:2px;border-radius:2px 2px 0 0;background:#f2c75a;opacity:0;transform:scaleX(.4);transition:opacity .18s ease,transform .18s ease}
body.sf-ui .topbar nav a:hover{color:#f1e3c4!important;background:linear-gradient(180deg,transparent,rgba(242,199,90,.06))!important}
body.sf-ui .topbar nav a.active{color:#f2c75a!important;background:linear-gradient(180deg,transparent 30%,rgba(242,199,90,.10))!important}
body.sf-ui .topbar nav a.active::after{opacity:1;transform:scaleX(1);box-shadow:0 0 10px rgba(242,199,90,.7)}
body.sf-ui .topbar nav a .sf-nav-icon{width:20px!important;height:20px!important;stroke-width:1.6!important;opacity:1!important}
body.sf-ui .topbar nav a.active .sf-nav-icon{filter:drop-shadow(0 0 6px rgba(242,199,90,.5))}
body.sf-ui .topbar nav a .mail-alert{position:absolute!important;top:12px!important;left:calc(50% + 6px)!important;right:auto!important;width:8px;height:8px;padding:0!important;border-radius:50%;background:#ff5a4a!important;color:transparent!important;font-size:0!important;box-shadow:0 0 0 2px #120f0b,0 0 8px #ff5a4a}
/* right cluster */
body.sf-ui .topbar .sf-walletbar{flex:0 0 auto!important;align-self:center;display:flex!important;align-items:center!important;gap:10px!important;margin:0!important;font-size:12px!important}
body.sf-ui .topbar .sf-walletbar>span:not(.sf-bal),body.sf-ui .topbar .sf-walletbar>.mk{display:none!important}
body.sf-ui .topbar .sf-balances{display:flex;align-items:center;height:38px;border:1px solid #3a2c19;border-radius:999px;background:#0d0b09;overflow:hidden}
body.sf-ui .topbar .sf-bal{display:flex;align-items:center;gap:7px;height:100%;padding:0 14px 0 10px}
body.sf-ui .topbar .sf-bal+.sf-bal{border-left:1px solid #3a2c19}
body.sf-ui .topbar .sf-bal i{width:16px;height:16px;flex:0 0 auto;border-radius:50%}
body.sf-ui .topbar .sf-bal-gold i{background:radial-gradient(circle at 35% 30%,#fff1b0,#f2c14e 45%,#a8741f 100%);box-shadow:0 0 6px rgba(242,193,78,.5)}
body.sf-ui .topbar .sf-bal-sforge i{border-radius:3px;transform:rotate(45deg) scale(.82);background:linear-gradient(135deg,#d9ff8a,#7ed957 55%,#3f8f2a);box-shadow:0 0 6px rgba(126,217,87,.5)}
body.sf-ui .topbar .sf-bal b{font-size:13px!important;font-weight:800!important;color:#f6ead0!important;letter-spacing:.2px;font-variant-numeric:tabular-nums}
body.sf-ui .topbar .sf-bal-sforge b{color:#b6f27a!important}
body.sf-ui .topbar .sf-bal small{font-size:9px!important;font-weight:800;letter-spacing:1px;color:#857a66!important}
body.sf-ui .topbar #walletBtn{display:inline-flex!important;align-items:center!important;gap:7px!important;height:38px!important;padding:0 16px!important;box-sizing:border-box;border-radius:999px!important;
  border:1px solid #f0c75e!important;background:linear-gradient(180deg,#e9bd52,#b7802a)!important;color:#1b1307!important;font-size:12px!important;font-weight:800!important;letter-spacing:.6px!important;text-transform:uppercase;text-decoration:none!important;box-shadow:0 1px 0 rgba(255,235,160,.4) inset!important}
body.sf-ui .topbar #walletBtn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.sf-ui .topbar .user-menu{position:relative}
body.sf-ui .topbar .user-menu-toggle{display:inline-flex!important;align-items:center!important;gap:8px!important;height:38px!important;padding:0 12px 0 4px!important;box-sizing:border-box;border-radius:999px!important;
  border:1px solid #3a2c19!important;background:#0d0b09!important;color:#f1e3c4!important;font-size:12px!important;font-weight:800!important;cursor:pointer}
body.sf-ui .topbar .user-menu-toggle:hover{border-color:#6b522c!important}
body.sf-ui .topbar .sf-avatar{width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f2c75a,#9d6b1c);color:#1b1307;font-size:13px;font-weight:900}
body.sf-ui .topbar .user-menu-caret{font-size:10px;color:#857a66}
body.sf-ui .topbar .user-menu-dropdown{right:0!important;left:auto!important;top:calc(100% + 8px)!important;min-width:170px!important;padding:6px!important;border:1px solid #3a2c19!important;border-radius:10px!important;background:#120f0b!important;box-shadow:0 12px 30px rgba(0,0,0,.6)!important}
body.sf-ui .topbar .user-menu-dropdown a{display:block!important;padding:9px 12px!important;border-radius:7px!important;font-size:12px!important;font-weight:700!important;color:#e9dcc0!important;text-decoration:none!important}
body.sf-ui .topbar .user-menu-dropdown a:hover{background:#1d1810!important;color:#f2c75a!important}
/* admin (only admins see it): small round icon so the bar looks the same for everyone */
body.sf-ui .topbar .admin-nav-link{display:inline-flex!important;align-items:center;justify-content:center;width:38px!important;height:38px!important;padding:0!important;box-sizing:border-box;border-radius:50%!important;border:1px solid #6b522c!important;background:#17130d!important;color:#f2c75a!important;font-size:0!important}
body.sf-ui .topbar .admin-nav-link svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1360px){body.sf-ui .topbar .sf-bal small{display:none}body.sf-ui .topbar .sf-username{display:none}body.sf-ui .topbar .user-menu-toggle{padding:0 10px 0 4px!important}}
@media(max-width:1200px){body.sf-ui .topbar nav a{font-size:11px!important}body.sf-ui .topbar #walletBtn{padding:0 12px!important}}
body.sf-ui .topbar nav a{flex:1 1 auto!important;padding:0 8px!important}
@media(max-width:1300px){body.sf-ui .topbar nav a{padding:0 5px!important}}
/* v1.83.34: quick links (pump.fun, Discord, How to Play, Docs, White Paper) under the Activity panel on game.php */
.sf-quick-links{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:8px 6px!important;margin-top:10px}
.sf-quick-links a{display:flex;flex-direction:column;align-items:center;gap:5px;padding:8px 2px;border-radius:8px;color:#d9b45a;text-decoration:none;font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;text-align:center;transition:background .15s,color .15s}
.sf-quick-links a:hover{background:#2a2012;color:#ffe7a6}
.sf-quick-links svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sf-quick-links span{line-height:1.15}
@media(max-width:650px){body.sf-ui .earnings.earnings-ticker{grid-template-columns:1fr 1fr!important}body.sf-ui .earnings.earnings-ticker>div:first-child{grid-column:1/-1}} /* v1.83.34: phones: two earnings figures per row (they overlapped) */
@media(max-width:700px){.sf-quick-links{margin-bottom:72px}} /* room for the chat button */
/* v1.83.46: profile skins - equipped skin is outlined and its button reads DEACTIVATE */
.profile-skin-item.is-equipped{border-color:#e0a83a;box-shadow:0 0 0 1px rgba(224,168,58,.35) inset}
.profile-skin-item button{margin-top:6px;width:100%}
.profile-skin-item .profile-skin-off{background:#2a1416;border:1px solid #b8463f;color:#ffb4ad}
.profile-skin-item .profile-skin-off:hover{background:#3a1a1c;color:#fff}
.profile-skin-item .profile-skin-on{display:block;margin-top:6px;font-size:8px;color:#e0a83a;letter-spacing:.08em}
/* v1.83.46: pet cards show the real effect now, next level and Lv 10 */
.pet-effect{font-size:11px;color:#9fe3b4;margin-top:4px;line-height:1.45}
.pet-effect span{color:#8b93a3}
body.sf-ui .inventory .pet-list .pet-price .pet-usd{color:#8b93a3!important}
/* v1.83.48: Founder ID tag on the profile */
.profile-pack-ids{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.profile-pack-ids .profile-founder-id{display:inline-block;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.06em;color:#ffd76a;border:1px solid #d9a63e;background:rgba(242,199,90,.12)}
/* v1.83.48: withdraw address quick-fill buttons */
.withdraw-fill{display:flex;gap:8px;margin:-2px 0 10px}
.withdraw-fill .solana-btn{flex:1 1 0}
/* v1.83.48: Discord Founder role link on the profile */
.profile-discord-form{display:flex;gap:8px;align-items:center}
.profile-discord-form input{min-width:0;width:200px;padding:8px 10px;border-radius:8px;border:1px solid var(--sfu-line-2);background:var(--sfu-field);color:var(--sfu-text)}
@media (max-width:640px){.profile-discord-form{width:100%}.profile-discord-form input{flex:1}}
/* v1.83.49: season gear carry-over */
.season-carry-intro{color:var(--sfu-muted);font-size:13px;line-height:1.5;margin:6px 0 12px}
.season-carry-sum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.season-carry-sum>div{border:1px solid var(--sfu-line);border-radius:8px;padding:10px;background:var(--sfu-panel-2);text-align:center}
.season-carry-sum b{display:block;font-size:18px;color:var(--sfu-text)}.season-carry-sum span{font-size:10px;color:var(--sfu-muted);letter-spacing:.06em}
.season-carry-list{display:flex;flex-direction:column;gap:6px;max-height:520px;overflow:auto}
.season-carry-row{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--sfu-line);border-radius:8px;padding:8px 10px;background:var(--sfu-panel)}
.season-carry-row b{display:block;font-size:13px}.season-carry-row small{color:var(--sfu-muted);font-size:11px}
.season-carry-row.picked{border-color:#36d07a}
.season-carry-row form .gold-btn{white-space:nowrap;padding:7px 12px!important;min-height:0!important}
@media (max-width:640px){.season-carry-sum{grid-template-columns:1fr}.season-carry-row{flex-direction:column;align-items:stretch}}
/* v1.83.50: end-of-season pop-up */
.sf-season-end{position:fixed;inset:0;z-index:9000;display:grid;place-items:center;padding:16px;background:rgba(6,5,4,.72);backdrop-filter:blur(3px)}
.sf-season-end-card{width:min(440px,100%);text-align:center;border:1px solid #d9a63e;border-radius:14px;padding:22px 20px;background:radial-gradient(circle at 50% 0,#2a2010 0,#12100c 70%);box-shadow:0 20px 60px rgba(0,0,0,.6)}
.sf-season-end-card small{letter-spacing:.14em;color:#d9a63e;font-weight:800;font-size:11px}
.sf-season-end-card h2{margin:6px 0 10px;color:#f6ead0;font-size:22px}
.sf-season-end-card p{color:#cfc4ad;font-size:14px;line-height:1.5;margin:0 0 14px}
.sf-season-end-timer{margin:0 0 16px;padding:12px;border:1px solid #3d2f1d;border-radius:10px;background:#0d0c0a}
.sf-season-end-timer span{display:block;font-size:11px;letter-spacing:.1em;color:#a99f8c}
.sf-season-end-timer b{display:block;font-size:34px;font-variant-numeric:tabular-nums;color:#ffd76a;margin-top:4px}
.sf-season-end-card .gold-btn{min-width:140px}
/* v1.83.50: carry-over list pictures and checkmarks */
.season-carry-row{justify-content:flex-start}
.season-carry-row .season-carry-info{flex:1 1 auto;min-width:0}
.season-carry-row .season-carry-info b span{color:var(--sfu-muted);font-weight:700}
.season-carry-art{position:relative;flex:0 0 44px;width:44px;height:44px;border:1px solid var(--sfu-line-2);border-radius:8px;background:#0b0a08;display:grid;place-items:center}
.season-carry-art img{max-width:38px;max-height:38px;object-fit:contain}
.carry-check{position:absolute;right:-5px;top:-5px;width:18px;height:18px;border-radius:50%;background:#22b35e;color:#fff;font-style:normal;font-size:12px;font-weight:900;display:grid;place-items:center;box-shadow:0 0 0 2px #0b0a08}
.slot .carry-check{right:2px;top:2px;z-index:3}
.inv-carry-btn{display:block;width:100%;margin-top:10px;text-align:center}
.profile-discord .discord-connected{display:inline-block;margin-right:6px;padding:2px 8px;border-radius:999px;background:rgba(34,179,94,.16);border:1px solid #22b35e;color:#5fe39a;font-style:normal;font-weight:800;font-size:11px;letter-spacing:.06em}
/* v1.83.51: registration status on the Admin page */
.admin-reg-open{color:#5fe39a!important;font-weight:800}.admin-reg-closed{color:#ff7a7a!important;font-weight:800}
