/* ============================================================================
   THE MOBSTERS 5.1 — CINEMATIC REMASTER
   Production visual remediation layer. No game state or outcomes live here.
   ============================================================================ */
:root{
  --c-bg:#060707;--c-bg-2:#090a0a;--c-surface:#0d0f0f;--c-surface-2:#121312;
  --c-surface-3:#171711;--c-gold:#d2ab62;--c-gold-hi:#f1daa2;--c-gold-low:#70562f;
  --c-red:#a91d28;--c-red-hi:#db3e49;--c-green:#53bd82;--c-blue:#63aee0;--c-orange:#e5753c;
  --c-text:#f2eadc;--c-soft:#c5bba9;--c-muted:#918a80;--c-faint:#68645e;
  --c-line:rgba(213,175,101,.20);--c-line-hi:rgba(224,186,107,.46);--c-red-line:rgba(210,55,64,.42);
  --c-r-sm:8px;--c-r:12px;--c-r-lg:18px;
  --c-shadow:0 18px 55px rgba(0,0,0,.48);--c-shadow-deep:0 34px 95px rgba(0,0,0,.62);
  --c-display:"Cinzel",Georgia,serif;--c-condensed:"Barlow Condensed",Arial,sans-serif;--c-body:"Inter",system-ui,sans-serif;
}

html{background:var(--c-bg);scroll-padding-top:132px}
body.theme-v51{background:
  radial-gradient(75rem 44rem at 85% -12%,rgba(139,24,33,.14),transparent 57%),
  radial-gradient(50rem 32rem at 12% 0,rgba(193,142,55,.07),transparent 55%),
  linear-gradient(180deg,#050606 0%,#090a0a 52%,#050606 100%);color:var(--c-text)}
body.theme-v51 img{display:block;max-width:100%}
body.theme-v51 .grain{opacity:.012}
body.theme-v51 :focus-visible{outline:2px solid var(--c-gold);outline-offset:3px}
body.theme-v51 ::selection{background:#8b1b24;color:#fff}

/* ------------------------------ app shell -------------------------------- */
body.theme-v51 .topbar{height:72px;padding:0 clamp(10px,1.6vw,22px);gap:14px;background:rgba(6,7,7,.955);border-bottom:1px solid var(--c-line);box-shadow:0 10px 35px #000b;backdrop-filter:blur(20px) saturate(1.1)}
body.theme-v51 .topbar:after{background:linear-gradient(90deg,transparent 2%,rgba(225,185,103,.38) 28%,rgba(174,30,40,.42) 68%,transparent 98%)}
body.theme-v51 .brand{min-width:205px;gap:10px}
body.theme-v51 .brand img{width:42px;height:42px;object-fit:contain;filter:drop-shadow(0 8px 20px #000)}
body.theme-v51 .brand span{font:800 19px/1 var(--c-condensed);color:#ead5a5;letter-spacing:.025em}
body.theme-v51 .brand span b{color:#c52c36;letter-spacing:.26em}
body.theme-v51 .brand span small{display:block;margin-top:5px;color:#6e685f;font:700 6px/1 var(--c-body);letter-spacing:.22em}
body.theme-v51 .top-stats{display:flex;align-items:center;gap:7px;margin-left:auto}
body.theme-v51 .stat{min-width:98px;height:46px;padding:0 12px;display:flex;justify-content:center;border:1px solid rgba(213,175,101,.14);border-radius:9px;background:linear-gradient(180deg,rgba(20,19,16,.94),rgba(8,9,9,.96));box-shadow:inset 0 1px rgba(255,255,255,.025)}
body.theme-v51 .stat small{font:700 7px/1 var(--c-body);letter-spacing:.14em;color:#7f786d}
body.theme-v51 .stat strong{font:700 16px/1.05 var(--c-condensed);color:#efe5d4}
body.theme-v51 .stat.cash strong{color:#f1d89a}
body.theme-v51 .stat.respect strong{color:#d9bc79}
body.theme-v51 .stat em{font-style:normal;color:#736d63;font-size:.62em;margin-left:2px}
body.theme-v51 .top-actions{display:flex;gap:6px}
body.theme-v51 .icon-btn{position:relative;width:40px;height:40px;display:grid;place-items:center;border:1px solid rgba(213,175,101,.20);border-radius:9px;background:linear-gradient(180deg,#171612,#090a09);color:#dfc27e;box-shadow:inset 0 1px rgba(255,255,255,.035),0 7px 18px #0006;transition:.16s ease}
body.theme-v51 .icon-btn:hover{transform:translateY(-1px);border-color:rgba(234,196,115,.50);background:#1a1812}
body.theme-v51 .icon-btn em{position:absolute;right:-4px;top:-5px;min-width:17px;height:17px;padding:0 4px;display:grid;place-items:center;border-radius:999px;background:#bd2630;color:white;font:800 8px var(--c-body);box-shadow:0 0 0 2px #080909}

body.theme-v51 .vitals-strip{position:sticky;top:72px;z-index:89;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:#060707;border-bottom:1px solid rgba(213,175,101,.12);box-shadow:0 10px 28px #0008}
body.theme-v51 .vitals-strip>div{min-height:42px;padding:7px clamp(9px,1.25vw,18px);grid-template-columns:auto minmax(45px,1fr) auto;gap:8px;background:linear-gradient(180deg,#11110f,#080909);border-right:1px solid rgba(213,175,101,.08)}
body.theme-v51 .vitals-strip span{font:800 7px var(--c-body);letter-spacing:.13em;color:#837b70}
body.theme-v51 .vitals-strip b{font:700 9px var(--c-condensed);color:#dcd1be;white-space:nowrap}
body.theme-v51 .meter{height:7px;border:1px solid rgba(255,255,255,.055);border-radius:999px;background:#030404;box-shadow:inset 0 1px 4px #000;overflow:hidden}
body.theme-v51 .meter i{box-shadow:0 0 12px currentColor;transition:width .45s ease}
body.theme-v51 .vital.health .meter i{background:linear-gradient(90deg,#a71825,#e2454f)}
body.theme-v51 .vital.energy .meter i{background:linear-gradient(90deg,#b27c27,#e7b64f)}
body.theme-v51 .vital.stamina .meter i{background:linear-gradient(90deg,#2b719d,#62b7e5)}
body.theme-v51 .vital.heat .meter i{background:linear-gradient(90deg,#b13a20,#ee8144)}

body.theme-v51 .app-frame{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:calc(100vh - 114px)}
body.theme-v51 .sidebar{top:114px;height:calc(100vh - 114px);padding:12px 9px 26px;background:linear-gradient(180deg,rgba(10,11,10,.995),rgba(5,6,6,.995));border-right:1px solid rgba(213,175,101,.14);box-shadow:16px 0 44px #0005;scrollbar-width:thin;scrollbar-color:#554226 #090a09}
body.theme-v51 .identity-card{gap:10px;padding:5px 6px 14px;margin:0 2px 6px;border-bottom:1px solid rgba(213,175,101,.13)}
body.theme-v51 .identity-photo{width:46px;height:54px;flex:0 0 46px;border:1px solid rgba(221,181,96,.32);border-radius:9px;background:linear-gradient(#171510,#080909);overflow:hidden;clip-path:none;box-shadow:0 8px 18px #0008}
body.theme-v51 .identity-photo img{width:100%;height:100%;object-fit:contain;object-position:center top;transform:scale(1.18);transform-origin:50% 3%}
body.theme-v51 .identity-card .eyebrow{font:700 6px var(--c-body);letter-spacing:.15em;color:#766b58}
body.theme-v51 .identity-card a:not(.identity-photo){font:700 13px var(--c-display);color:#e5d1a4}
body.theme-v51 .identity-card small{font-size:8px;color:#706c66}
body.theme-v51 .main-nav{display:grid;gap:1px}
body.theme-v51 .nav-label{padding:13px 9px 4px;font:800 6px var(--c-body);letter-spacing:.22em;color:#56534e}
body.theme-v51 .main-nav a{position:relative;min-height:35px;padding:7px 8px;display:flex;align-items:center;gap:9px;border:1px solid transparent;border-radius:8px;color:#a7a095;font:600 10px var(--c-body);transition:background .15s,border-color .15s,color .15s,transform .15s}
body.theme-v51 .main-nav a i{width:21px;display:grid;place-items:center;color:#9b7b43;font-style:normal;font-size:13px;opacity:.9}
body.theme-v51 .main-nav a:hover{transform:translateX(2px);background:linear-gradient(90deg,rgba(50,42,29,.52),rgba(12,13,12,.76));border-color:rgba(213,175,101,.14);color:#f0e3cd}
body.theme-v51 .main-nav a.active{background:linear-gradient(90deg,rgba(123,22,31,.50),rgba(40,16,18,.64) 62%,rgba(10,11,10,.75));border-color:rgba(206,55,64,.34);color:#fff0db;box-shadow:inset 3px 0 #d33a44,0 5px 15px #0004}
body.theme-v51 .main-nav a.active i{color:#f1ca72}
body.theme-v51 .main-nav a.active:after{content:"";position:absolute;right:8px;width:5px;height:5px;border-radius:50%;background:#e3b961;box-shadow:0 0 10px #e3b96188}
body.theme-v51 .main-nav a em{margin-left:auto;min-width:17px;height:17px;font-size:7px}
body.theme-v51 .logout{display:block;margin:15px 9px 0;padding:8px 0;border-top:1px solid rgba(213,175,101,.08);color:#5e5b56;font-size:8px}
body.theme-v51 .main-content{max-width:1720px;width:100%;min-width:0;margin:0 auto;padding:24px clamp(14px,2.2vw,36px) 108px}
body.theme-v51 .site-footer{margin-top:34px;padding-top:18px;border-top:1px solid rgba(213,175,101,.12);color:#625e58;font-size:8px;letter-spacing:.10em}

/* ---------------------------- foundational UI ----------------------------- */
body.theme-v51 .panel,
body.theme-v51 .game-card,
body.theme-v51 .mission-card,
body.theme-v51 .heist-card,
body.theme-v51 .territory-card,
body.theme-v51 .achievement-card,
body.theme-v51 .market-card,
body.theme-v51 .skill-card,
body.theme-v51 .favor-card,
body.theme-v51 .class-card,
body.theme-v51 .evidence-card,
body.theme-v51 .guide-card{
  border:1px solid var(--c-line);background:linear-gradient(150deg,rgba(18,18,16,.96),rgba(8,9,9,.98));box-shadow:0 12px 34px rgba(0,0,0,.31);border-radius:var(--c-r);color:var(--c-text)
}
body.theme-v51 .panel{padding:16px;overflow:hidden}
body.theme-v51 .panel-title{min-height:35px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px;padding-bottom:10px;border-bottom:1px solid rgba(213,175,101,.12)}
body.theme-v51 .panel-title h2{font:700 16px var(--c-display);letter-spacing:.01em;color:#e3cd9e;text-transform:none}
body.theme-v51 .panel-title>a,body.theme-v51 .panel-title>span{font:700 8px var(--c-body);letter-spacing:.09em;color:#a68b55;text-transform:uppercase}
body.theme-v51 .section-title{margin:28px 0 12px;font:700 21px var(--c-display);color:#dfc793}
body.theme-v51 .kicker{font:800 7px var(--c-body);letter-spacing:.23em;color:#c4a35f;text-transform:uppercase}
body.theme-v51 .muted{color:var(--c-muted)}
body.theme-v51 .empty-state{min-height:92px;padding:20px;display:grid;place-items:center;text-align:center;border:1px dashed rgba(213,175,101,.20);border-radius:10px;background:rgba(10,11,10,.55);color:#77736d;font-size:11px}
body.theme-v51 .flash{position:relative;padding:12px 14px 12px 40px;border-radius:10px;border:1px solid rgba(213,175,101,.18);background:#101110;color:#d8cdbb;font-size:11px;box-shadow:0 9px 24px #0005}
body.theme-v51 .flash:before{content:"";position:absolute;left:14px;top:50%;width:10px;height:10px;border-radius:50%;transform:translateY(-50%);background:#9b8356;box-shadow:0 0 12px #9b835677}
body.theme-v51 .flash.success{border-color:rgba(83,189,130,.35);background:#0b1911;color:#bde9cd}.theme-v51 .flash.success:before{background:var(--c-green)}
body.theme-v51 .flash.danger{border-color:rgba(219,62,73,.36);background:#1b0b0e;color:#ffc4c8}.theme-v51 .flash.danger:before{background:var(--c-red-hi)}
body.theme-v51 .flash.warning{border-color:rgba(224,157,64,.35);background:#1b150b;color:#efd5a0}.theme-v51 .flash.warning:before{background:#e09d40}
body.theme-v51 .flash.info{border-color:rgba(99,174,224,.28);background:#0b151c;color:#c4e1f3}.theme-v51 .flash.info:before{background:var(--c-blue)}

body.theme-v51 .btn{min-height:38px;padding:9px 14px;border:1px solid #c64049;border-radius:8px;background:linear-gradient(180deg,#bf2e38,#8d1720);box-shadow:inset 0 1px rgba(255,255,255,.13),0 8px 18px rgba(101,15,22,.20);color:#fff7eb;font:800 9px var(--c-body);letter-spacing:.06em;text-transform:uppercase;transition:transform .14s,filter .14s,border-color .14s,box-shadow .14s}
body.theme-v51 .btn:hover{transform:translateY(-1px);filter:brightness(1.08);box-shadow:inset 0 1px rgba(255,255,255,.16),0 10px 22px rgba(115,18,25,.30)}
body.theme-v51 .btn:active{transform:translateY(1px) scale(.995)}
body.theme-v51 .btn.ghost{border-color:rgba(213,175,101,.24);background:linear-gradient(180deg,#171713,#0c0d0c);color:#d6c49d;box-shadow:none}
body.theme-v51 .btn.ghost:hover{border-color:rgba(231,193,111,.48);color:#f2dfb2}
body.theme-v51 .btn.danger{border-color:#9e2b33;background:linear-gradient(#7d1b23,#4f1015)}
body.theme-v51 .btn.big{min-height:44px;padding:11px 18px;font-size:10px}
body.theme-v51 .btn.small{min-height:32px;padding:7px 10px;font-size:8px}
body.theme-v51 .btn.full{width:100%}
body.theme-v51 .btn.is-working{opacity:.82;cursor:progress;position:relative}
body.theme-v51 .btn.is-working:after{content:"";width:10px;height:10px;border:1px solid currentColor;border-right-color:transparent;border-radius:50%;animation:v51-spin .65s linear infinite}
@keyframes v51-spin{to{transform:rotate(360deg)}}

body.theme-v51 input,body.theme-v51 select,body.theme-v51 textarea{width:100%;min-height:38px;border:1px solid rgba(213,175,101,.18);border-radius:8px;background:#080909;color:#ede3d2;padding:9px 10px;box-shadow:inset 0 2px 8px #0007}
body.theme-v51 textarea{min-height:88px;resize:vertical}
body.theme-v51 input:focus,body.theme-v51 select:focus,body.theme-v51 textarea:focus{border-color:rgba(231,193,111,.58);box-shadow:0 0 0 3px rgba(211,173,97,.08),inset 0 2px 8px #0007;outline:0}
body.theme-v51 label{color:#8f887d;font-size:9px;line-height:1.4}
body.theme-v51 label small{display:block;margin-top:4px;color:#68655f}
body.theme-v51 code{padding:2px 5px;border-radius:5px;background:#080909;color:#d8b875}
body.theme-v51 details{border-color:rgba(213,175,101,.13)}
body.theme-v51 summary{cursor:pointer}

/* -------------------------- route hero / artwork -------------------------- */
body.theme-v51 .page-head{position:relative;min-height:148px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 18px;padding:25px clamp(18px,2.7vw,34px);overflow:hidden;border:1px solid rgba(213,175,101,.20);border-radius:14px;background:linear-gradient(100deg,rgba(6,7,7,.99) 0%,rgba(8,9,9,.97) 48%,rgba(8,9,9,.74) 72%,rgba(6,7,7,.58));box-shadow:var(--c-shadow)}
body.theme-v51 .page-head:before{content:"";position:absolute;inset:0 0 0 47%;background-image:linear-gradient(90deg,#070808 0%,rgba(7,8,8,.42) 32%,rgba(7,8,8,.08) 100%),var(--route-art,url("art/rackets/speakeasy.png"));background-repeat:no-repeat;background-position:left center,var(--route-position,center center);background-size:100% 100%,var(--route-size,cover);filter:saturate(.78) contrast(1.08) brightness(.73);opacity:.82;pointer-events:none}
body.theme-v51 .page-head:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,var(--route-accent,var(--c-gold)),rgba(213,175,101,.08) 50%,transparent 82%)}
body.theme-v51 .page-head>div,body.theme-v51 .page-head>.btn,body.theme-v51 .page-head>form,body.theme-v51 .page-head>.achievement-summary{position:relative;z-index:2}
body.theme-v51 .page-head>div:first-child{max-width:min(760px,68%)}
body.theme-v51 .page-head h1{margin:5px 0 7px;font:700 clamp(31px,3.7vw,52px)/.96 var(--c-display);color:#ead4a4;text-shadow:0 8px 28px #000}
body.theme-v51 .page-head p{max-width:690px;margin:0;color:#a59d91;font-size:11px;line-height:1.65}

/* cover-type scene routes */
body.theme-v51.route-jobs{--route-art:url("art/rackets/warehouse.png");--route-size:cover;--route-position:center 40%;--route-accent:#c49a54}
body.theme-v51.route-missions{--route-art:url("art/rackets/docks.png");--route-size:cover;--route-position:center 45%;--route-accent:#d0a55c}
body.theme-v51.route-heists{--route-art:url("art/rackets/casino.png");--route-size:cover;--route-position:center 45%;--route-accent:#be2a35}
body.theme-v51.route-properties{--route-art:url("art/rackets/nightclub.png");--route-size:cover;--route-position:center 50%;--route-accent:#c12733}
body.theme-v51.route-chat{--route-art:url("art/rackets/speakeasy.png");--route-size:cover;--route-position:center 44%;--route-accent:#b52530}
/* contain-type framed item routes */
body.theme-v51.route-fight{--route-art:url("art/items/knuckles.png");--route-size:245px auto;--route-position:88% 50%;--route-accent:#c12733}
body.theme-v51.route-hitlist{--route-art:url("art/items/bounty.png");--route-size:245px auto;--route-position:88% 50%;--route-accent:#d14d42}
body.theme-v51.route-shop{--route-art:url("art/items/tommy.png");--route-size:245px auto;--route-position:88% 50%;--route-accent:#c9a158}
body.theme-v51.route-market{--route-art:url("art/items/watch.png");--route-size:245px auto;--route-position:88% 50%;--route-accent:#d3ad61}
body.theme-v51.route-inventory{--route-art:url("art/items/armored-suit.png");--route-size:245px auto;--route-position:88% 50%;--route-accent:#8cafc2}
body.theme-v51.route-collections{--route-art:url("art/items/ledger.png");--route-size:245px auto;--route-position:88% 50%;--route-accent:#cda45f}
body.theme-v51.route-bank{--route-art:url("art/items/cash-bag.png");--route-size:245px auto;--route-position:88% 50%;--route-accent:#d0ad68}
body.theme-v51.route-skills{--route-art:url("art/items/mastery.png");--route-size:245px auto;--route-position:88% 50%;--route-accent:#d0ad68}
body.theme-v51.route-favor{--route-art:url("art/items/favor.png");--route-size:245px auto;--route-position:88% 50%;--route-accent:#d0ad68}
body.theme-v51.route-crew,body.theme-v51.route-friends{--route-art:url("art/items/crew.png");--route-size:245px auto;--route-position:88% 50%;--route-accent:#d0ad68}
body.theme-v51.route-messages,body.theme-v51.route-notifications{--route-art:url("art/items/burner-phone.png");--route-size:245px auto;--route-position:88% 50%;--route-accent:#d0ad68}
body.theme-v51.route-leaderboard{--route-art:url("art/items/level255.png");--route-size:245px auto;--route-position:88% 50%;--route-accent:#d8b76f}
body.theme-v51.route-achievements{--route-art:url("art/items/mastery.png");--route-size:245px auto;--route-position:88% 50%;--route-accent:#d8b76f}
body.theme-v51.route-daily{--route-art:url("art/items/cash-bag.png");--route-size:245px auto;--route-position:88% 50%;--route-accent:#4eaf79}
body.theme-v51.route-contracts{--route-art:url("art/items/contract.png");--route-size:245px auto;--route-position:88% 50%;--route-accent:#bd2933}
body.theme-v51.route-guide{--route-art:url("art/items/ledger.png");--route-size:245px auto;--route-position:88% 50%;--route-accent:#cda45f}
body.theme-v51.route-hospital{--route-art:url("art/items/medkit.png");--route-size:245px auto;--route-position:88% 50%;--route-accent:#55af78}
body.theme-v51.route-jail{--route-art:url("art/items/flask.png");--route-size:245px auto;--route-position:88% 50%;--route-accent:#c36a44}
body.theme-v51.route-character,body.theme-v51.route-profile{--route-art:url("art/don.png");--route-size:auto 210px;--route-position:86% 16%;--route-accent:#c1323a}
body.theme-v51.route-city,body.theme-v51.route-territories{--route-art:url("art/rackets/docks.png");--route-size:cover;--route-position:center 44%;--route-accent:#c12f38}
body.theme-v51.route-admin{--route-art:url("art/items/ledger.png");--route-size:245px auto;--route-position:88% 50%;--route-accent:#8e7651}

/* ------------------------------- images ----------------------------------- */
body.theme-v51 .market-art,body.theme-v51 .equipment-art-v3,body.theme-v51 .slot-card,body.theme-v51 .achievement-medal,body.theme-v51 .guide-icon,body.theme-v51 .evidence-icon,body.theme-v51 .favor-glyph{isolation:isolate}
body.theme-v51 .market-art{display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 50% 40%,rgba(172,43,50,.12),transparent 52%),linear-gradient(145deg,#11120f,#070808);border:1px solid rgba(213,175,101,.17)}
body.theme-v51 .market-art img,body.theme-v51 .equipment-art-v3 img,body.theme-v51 .slot-art,body.theme-v51 .guide-icon img,body.theme-v51 .achievement-medal img,body.theme-v51 .evidence-icon img{width:100%;height:100%;object-fit:contain!important;object-position:center!important;filter:saturate(.92) contrast(1.05) drop-shadow(0 8px 15px #0008)}
body.theme-v51 .racket-art-v3,body.theme-v51 .racket-market-art,body.theme-v51 .chapter-art,body.theme-v51 .heist-art,body.theme-v51 .city-districts a,body.theme-v51 .auth-scene{overflow:hidden;background:#070808}
body.theme-v51 .racket-art-v3 img,body.theme-v51 .racket-market-art img,body.theme-v51 .chapter-art img,body.theme-v51 .heist-art img,body.theme-v51 .city-districts a img,body.theme-v51 .auth-scene img{width:100%;height:100%;object-fit:cover!important;object-position:center!important;filter:saturate(.86) contrast(1.08) brightness(.9)}
body.theme-v51 .racket-art-v3,body.theme-v51 .racket-market-art{aspect-ratio:724/464;height:auto!important;margin:0 0 13px;border-bottom:1px solid rgba(213,175,101,.19)}
body.theme-v51 .racket-art-v3:after,body.theme-v51 .racket-market-art:after{background:linear-gradient(0deg,rgba(5,6,6,.98) 0%,rgba(5,6,6,.26) 52%,transparent 86%)}
body.theme-v51 .racket-card:hover .racket-art-v3 img,body.theme-v51 .racket-market-card:hover .racket-market-art img{transform:scale(1.025)}
body.theme-v51 .job-art-strip{height:96px;margin:-16px -16px 14px;padding:9px 12px;display:flex;align-items:flex-end;gap:10px;background:linear-gradient(90deg,rgba(6,7,7,.97),rgba(6,7,7,.48)),url("art/rackets/warehouse.png") center 42%/cover no-repeat;border-bottom:1px solid rgba(213,175,101,.18)}
body.theme-v51 .job-art-strip img{width:86px;height:72px;object-fit:contain!important;filter:drop-shadow(0 7px 13px #000)}
body.theme-v51 .job-art-strip small{font:800 6px var(--c-body);letter-spacing:.15em;color:#9a896c}
body.theme-v51 .job-art-strip b{font:700 13px var(--c-display);color:#e1c88e}

/* --------------------------- cards and grids ------------------------------ */
body.theme-v51 .card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:13px}
body.theme-v51 .game-card{position:relative;padding:16px;overflow:hidden;transition:transform .18s,border-color .18s,box-shadow .18s}
body.theme-v51 .game-card:hover{transform:translateY(-2px);border-color:rgba(220,180,98,.35);box-shadow:0 17px 42px #0007}
body.theme-v51 .game-card:before{width:62px;height:2px;background:linear-gradient(90deg,var(--c-gold),transparent)}
body.theme-v51 .game-card h3{margin:13px 0 5px;font:700 20px var(--c-display);color:#ead5a5;text-transform:none}
body.theme-v51 .game-card p{min-height:0;color:#989188;font-size:10px;line-height:1.55}
body.theme-v51 .card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
body.theme-v51 .badge{padding:4px 7px;border:1px solid rgba(213,175,101,.18);border-radius:999px;background:#0a0b0a;color:#9b927f;font:800 7px var(--c-body);letter-spacing:.08em}
body.theme-v51 .card-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(76px,1fr));gap:1px;margin:13px -16px;background:rgba(213,175,101,.10)}
body.theme-v51 .card-metrics span{padding:9px;background:#0b0c0b;min-width:0}
body.theme-v51 .card-metrics small{display:block;color:#6f6b64;font:800 6px var(--c-body);letter-spacing:.09em}
body.theme-v51 .card-metrics b{display:block;margin-top:3px;color:#ded0b4;font:700 14px var(--c-condensed);overflow-wrap:anywhere}
body.theme-v51 .dossier-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:rgba(213,175,101,.10);border:1px solid rgba(213,175,101,.11);border-radius:10px;overflow:hidden}
body.theme-v51 .dossier-grid>div{min-width:0;padding:13px;background:#0b0c0b}
body.theme-v51 .dossier-grid small{font-size:7px;color:#777169}
body.theme-v51 .dossier-grid strong{font-size:20px;color:#e6d1a1;overflow-wrap:anywhere}
body.theme-v51 .dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
body.theme-v51 .quick-score-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
body.theme-v51 .quick-score-grid a{position:relative;min-width:0;min-height:132px;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;padding:10px;border:1px solid rgba(213,175,101,.15);border-radius:10px;background:#090a09;box-shadow:0 10px 26px #0005;transition:.17s}
body.theme-v51 .quick-score-grid a:hover{transform:translateY(-2px);border-color:rgba(224,185,101,.40)}
body.theme-v51 .quick-score-grid img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain!important;opacity:.50;filter:saturate(.82) contrast(1.08);transform:scale(.94)}
body.theme-v51 .quick-score-grid a:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,7,7,.14),rgba(6,7,7,.95) 76%)}
body.theme-v51 .quick-score-grid b,body.theme-v51 .quick-score-grid span{position:relative;z-index:2}
body.theme-v51 .quick-score-grid b{font:700 14px var(--c-display);color:#e4ce9c}
body.theme-v51 .quick-score-grid span{margin-top:3px;color:#77726b;font-size:8px}

/* dashboard cinema */
body.theme-v51 .command-hero{position:relative;min-height:350px;margin-bottom:14px;border:1px solid rgba(213,175,101,.22);border-radius:15px;overflow:hidden;background:#070808;box-shadow:var(--c-shadow-deep)}
body.theme-v51 .command-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,6,6,.98) 0%,rgba(7,8,8,.90) 42%,rgba(7,8,8,.36) 71%,rgba(5,6,6,.78) 100%),url("art/rackets/speakeasy.png") center 42%/cover no-repeat;filter:saturate(.78) contrast(1.1) brightness(.66)}
body.theme-v51 .command-hero-copy{position:relative;z-index:3;width:min(650px,61%);padding:clamp(28px,3.8vw,52px)}
body.theme-v51 .command-hero h1{margin:7px 0 10px;font:700 clamp(31px,4vw,54px)/1 var(--c-display);color:#ead4a5;text-shadow:0 8px 26px #000}
body.theme-v51 .command-hero p{max-width:560px;color:#aaa195;font-size:11px;line-height:1.65}
body.theme-v51 .command-hero-art{position:absolute;z-index:2;right:0;bottom:0;width:47%;height:100%;pointer-events:none;overflow:hidden}
body.theme-v51 .command-hero-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#070808 0%,transparent 22%,rgba(0,0,0,.08) 100%)}
body.theme-v51 .command-hero-art img:first-child{position:absolute;right:33%;bottom:-5%;height:105%;width:auto;object-fit:contain!important;filter:saturate(.93) contrast(1.06) drop-shadow(0 20px 30px #000e)}
body.theme-v51 .command-hero-art img:last-child{position:absolute;right:3%;bottom:-7%;height:94%;width:auto;object-fit:contain!important;opacity:.95;filter:saturate(.92) contrast(1.04) drop-shadow(0 20px 30px #000c)}
body.theme-v51 .command-event{display:inline-grid;grid-template-columns:8px auto auto;gap:9px;align-items:center;margin-top:17px;padding:8px 10px;border:1px solid rgba(213,175,101,.18);border-radius:8px;background:rgba(5,6,6,.76);backdrop-filter:blur(9px)}
body.theme-v51 .command-event i{width:7px;height:7px;border-radius:50%;background:#d6303a;box-shadow:0 0 12px #d6303aaa}
body.theme-v51 .command-event small{font-size:6px;color:#776f63}.theme-v51 .command-event strong{font-size:9px}.theme-v51 .command-event time{color:#d5b56b;font:700 9px var(--c-condensed)}
body.theme-v51 .xp-strip{margin:0 0 13px;padding:8px 10px;border:1px solid rgba(213,175,101,.11);border-radius:9px;background:#080909;color:#7d786f;font-size:8px}
body.theme-v51 .v5-action-rail{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:0 0 13px}
body.theme-v51 .v5-action-rail a{height:72px;min-width:0;display:flex;align-items:center;gap:8px;padding:8px;border:1px solid rgba(213,175,101,.14);border-radius:10px;background:linear-gradient(145deg,#11120f,#080909);overflow:hidden;box-shadow:0 9px 24px #0004;transition:.16s}
body.theme-v51 .v5-action-rail a:hover{transform:translateY(-2px);border-color:rgba(224,185,101,.36)}
body.theme-v51 .v5-action-rail img{width:46px;height:46px;flex:0 0 46px;object-fit:contain!important;filter:saturate(.88) contrast(1.04) drop-shadow(0 6px 9px #0008)}
body.theme-v51 .v5-action-rail span{min-width:0}.theme-v51 .v5-action-rail b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:700 11px var(--c-display);color:#dfc995}.theme-v51 .v5-action-rail small{display:block;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#6e6a64;font-size:7px}
body.theme-v51 .v4-guide-card{display:grid;grid-template-columns:minmax(0,1fr) 115px;align-items:center;gap:14px}
body.theme-v51 .v4-guide-card img{width:105px;height:105px;object-fit:contain!important;margin:auto;filter:drop-shadow(0 10px 20px #0008)}

/* jobs / missions / heists */
body.theme-v51 .jobs-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
body.theme-v51 .mission-hero,body.theme-v51 .heist-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,34%);min-height:200px;padding:0;overflow:hidden;border-radius:14px}
body.theme-v51 .mission-hero>div:not(.mission-hero-collage),body.theme-v51 .heist-intro>div:not(.heist-intro-art){padding:24px}
body.theme-v51 .mission-hero-collage,body.theme-v51 .heist-intro-art{height:100%;min-height:200px;overflow:hidden;background:#080909}
body.theme-v51 .mission-hero-collage img,body.theme-v51 .heist-intro-art img{width:100%;height:100%;object-fit:cover!important;object-position:center!important;filter:saturate(.82) contrast(1.08)}
body.theme-v51 .chapter-banner{display:grid;grid-template-columns:160px minmax(0,1fr) auto;align-items:center;gap:15px;padding:10px;border:1px solid rgba(213,175,101,.18);border-radius:12px;background:linear-gradient(135deg,#15140f,#080909)}
body.theme-v51 .chapter-art{width:100%;height:100px;border:1px solid rgba(213,175,101,.14);border-radius:9px}
body.theme-v51 .chapter-banner h2{margin:3px 0 4px;font:700 22px var(--c-display);color:#e3cc98}
body.theme-v51 .chapter-banner p{margin:0;color:#8d887f;font-size:9px;line-height:1.5}
body.theme-v51 .mission-grid,body.theme-v51 .heist-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:12px}
body.theme-v51 .mission-card,body.theme-v51 .heist-card{padding:14px;min-width:0}
body.theme-v51 .mission-card{display:grid;grid-template-columns:58px minmax(0,1fr) minmax(118px,auto);gap:13px;align-items:center}
body.theme-v51 .mission-card h3,body.theme-v51 .heist-card h3{font:700 18px var(--c-display);color:#e4ce9a}
body.theme-v51 .mission-card p,body.theme-v51 .heist-card p{color:#8e887f;font-size:9px;line-height:1.55}
body.theme-v51 .heist-art{aspect-ratio:16/8;border-radius:9px;margin-bottom:12px}
body.theme-v51 .heist-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:rgba(213,175,101,.10);border-radius:8px;overflow:hidden}
body.theme-v51 .heist-metrics>*{background:#0a0b0a;padding:8px;min-width:0}

/* rackets */
body.theme-v51 .property-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:13px}
body.theme-v51 .racket-card,body.theme-v51 .racket-market-card{padding:0 0 14px;overflow:hidden;border:1px solid var(--c-line);border-radius:13px;background:linear-gradient(145deg,#12120f,#080909);box-shadow:0 13px 35px #0005}
body.theme-v51 .racket-card>.card-metrics,body.theme-v51 .racket-market-card>.card-metrics{margin:0 13px 12px}
body.theme-v51 .racket-card>form,body.theme-v51 .racket-card>.card-top,body.theme-v51 .racket-card>h3,body.theme-v51 .racket-card>p,body.theme-v51 .racket-market-card>form,body.theme-v51 .racket-market-card>.card-top,body.theme-v51 .racket-market-card>h3,body.theme-v51 .racket-market-card>p{margin-left:13px;margin-right:13px}

/* inventory / equipment / character */
body.theme-v51 .loadout-hero{display:grid;grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr);gap:15px;align-items:stretch}
body.theme-v51 .avatar-stage{position:relative;min-height:330px;display:grid;place-items:end center;overflow:hidden;border:1px solid rgba(213,175,101,.17);border-radius:12px;background:radial-gradient(circle at 50% 24%,rgba(202,150,55,.12),transparent 44%),linear-gradient(#11110e,#070808)}
body.theme-v51 .avatar-stage img,body.theme-v51 .cinematic-avatar{max-height:390px;width:auto!important;max-width:92%;object-fit:contain!important;object-position:center bottom!important;filter:saturate(.92) contrast(1.05) drop-shadow(0 17px 28px #000b)}
body.theme-v51 .loadout-slots,body.theme-v51 .character-slot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
body.theme-v51 .slot-card{position:relative;min-height:126px;padding:11px;overflow:hidden;border:1px solid rgba(213,175,101,.15);border-radius:10px;background:linear-gradient(145deg,#12120f,#080909)}
body.theme-v51 .slot-card h3{position:relative;z-index:2;margin:0 0 5px;font:700 14px var(--c-display);color:#e0ca98}
body.theme-v51 .slot-card p,body.theme-v51 .slot-card small{position:relative;z-index:2;color:#77726a;font-size:8px}
body.theme-v51 .slot-art{position:absolute;right:2px;bottom:2px;width:96px!important;height:84px!important;opacity:.28;z-index:1}
body.theme-v51 .inventory-list{display:grid;gap:8px}
body.theme-v51 .inventory-list .item-row{display:grid;grid-template-columns:88px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px;border:1px solid rgba(213,175,101,.13);border-radius:10px;background:rgba(9,10,9,.72)}
body.theme-v51 .equipment-art-v3{width:88px;height:76px;display:grid;place-items:center;border:1px solid rgba(213,175,101,.16);border-radius:9px;background:#080909}
body.theme-v51 .character-layout{display:grid;grid-template-columns:minmax(280px,.78fr) minmax(0,1.22fr);gap:16px;align-items:start}
body.theme-v51 .sticky-avatar{position:sticky;top:128px}
body.theme-v51 .character-left,body.theme-v51 .archetype-panel,body.theme-v51 .character-art-catalog{border:1px solid var(--c-line);border-radius:13px;background:linear-gradient(145deg,#12120f,#080909);box-shadow:0 13px 36px #0005}
body.theme-v51 .choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}
body.theme-v51 .choice-card{min-width:0;padding:9px;border:1px solid rgba(213,175,101,.13);border-radius:9px;background:#0a0b0a}
body.theme-v51 .choice-card.selected{border-color:rgba(219,62,73,.50);box-shadow:inset 0 0 0 1px rgba(219,62,73,.17)}

/* street market + black market */
body.theme-v51 .shop-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
body.theme-v51 .item-card .market-art{height:auto!important;aspect-ratio:4/3;margin:-16px -16px 13px;width:auto!important;border-radius:0;border-inline:0;border-top:0}
body.theme-v51 .market-sell{margin-bottom:17px}
body.theme-v51 .market-sell-form{display:grid;grid-template-columns:minmax(190px,1.4fr) minmax(90px,.45fr) minmax(120px,.65fr) auto;gap:8px;align-items:end}
body.theme-v51 .market-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:12px}
body.theme-v51 .market-card{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;align-items:center;padding:11px;min-width:0}
body.theme-v51 .market-card>.market-art{width:108px;height:108px;margin:0;border-radius:9px}
body.theme-v51 .market-card h3{margin:3px 0;font:700 17px var(--c-display);color:#e3cc9a}
body.theme-v51 .market-card p{margin:0;color:#89847c;font-size:9px}
body.theme-v51 .market-price strong{font:700 18px var(--c-condensed);color:#6fd09a}
body.theme-v51 .market-buy{grid-column:1/-1;display:flex;gap:7px;align-items:center}
body.theme-v51 .bulk-buy{border:1px solid rgba(213,175,101,.12);border-radius:9px;background:#080909;padding:7px}
body.theme-v51 .bulk-buttons{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
body.theme-v51 .bulk-buttons button{min-height:27px;border:1px solid rgba(213,175,101,.15);border-radius:6px;background:#11110f;color:#aa9569;font:700 7px var(--c-body);cursor:pointer}

/* city / territory / crew */
body.theme-v51 .city-districts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.theme-v51 .city-districts a{position:relative;height:210px;border:1px solid rgba(213,175,101,.18);border-radius:12px;box-shadow:0 15px 36px #0007}
body.theme-v51 .city-districts a:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(5,6,6,.97),rgba(5,6,6,.06) 70%)}
body.theme-v51 .city-districts a>*{position:relative;z-index:2}
body.theme-v51 .territory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));gap:12px}
body.theme-v51 .territory-card{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:13px;align-items:start}
body.theme-v51 .territory-map-mark{width:65px;height:72px;display:grid;place-items:center;align-content:center;border:1px solid rgba(213,175,101,.23);border-radius:9px;background:radial-gradient(circle at 50% 35%,rgba(190,139,47,.14),transparent 50%),#0a0b0a}
body.theme-v51 .territory-map-mark span{font-size:6px;color:#7b7160;letter-spacing:.12em}.theme-v51 .territory-map-mark strong{font:700 26px var(--c-display);color:#d9ba75}
body.theme-v51 .territory-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.theme-v51 .territory-head h3{margin:5px 0 4px;font:700 19px var(--c-display);color:#e4ce9c}.theme-v51 .territory-copy p{color:#8c877e;font-size:9px;line-height:1.55}
body.theme-v51 .territory-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin-top:9px;background:rgba(213,175,101,.09);border-radius:8px;overflow:hidden}.theme-v51 .territory-metrics>span{padding:8px;background:#0a0b0a}.theme-v51 .territory-metrics small{display:block;color:#6b6760;font-size:6px}.theme-v51 .territory-metrics b{font:700 13px var(--c-condensed);color:#d9c28e}
body.theme-v51 .territory-action{grid-column:1/-1;display:flex;justify-content:flex-end}
body.theme-v51 .crew-hero{border-radius:14px;border:1px solid rgba(213,175,101,.20);background:linear-gradient(120deg,#15130f,#080909);box-shadow:var(--c-shadow)}
body.theme-v51 .crew-list>*{border:1px solid rgba(213,175,101,.11);border-radius:9px;background:#0a0b0a;margin-bottom:6px}

/* lists, rankings, timelines */
body.theme-v51 .list-stack{display:grid;gap:7px}
body.theme-v51 .ledger-row,body.theme-v51 .friend-row,body.theme-v51 .compact-list>a,body.theme-v51 .message-list>*{min-width:0;border:1px solid rgba(213,175,101,.10);border-radius:9px;background:rgba(8,9,9,.68);padding:10px;transition:.14s}
body.theme-v51 .ledger-row:hover,body.theme-v51 .compact-list>a:hover,body.theme-v51 .message-list>*:hover{border-color:rgba(213,175,101,.24);background:#0d0e0d}
body.theme-v51 .rank-list{display:grid}.theme-v51 .rank-list>a,.theme-v51 .rank-list>div{min-height:44px;padding:8px 6px;border-bottom:1px solid rgba(213,175,101,.09)}
body.theme-v51 .rank-list>a:hover{background:rgba(213,175,101,.035)}
body.theme-v51 .rank-list span{color:#746d61}.theme-v51 .rank-list em{color:#d2b36b}
body.theme-v51 .timeline>div:not(:last-child):after{background:rgba(213,175,101,.12)}
body.theme-v51 .timeline p{font-size:10px}.theme-v51 .timeline p span{color:#77736c;font-size:8px}
body.theme-v51 .leader-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:12px}

/* achievements / collections / guide */
body.theme-v51 .achievement-grid,body.theme-v51 .evidence-grid,body.theme-v51 .guide-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:11px}
body.theme-v51 .achievement-card{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;padding:13px}
body.theme-v51 .achievement-card.locked{opacity:.62;filter:saturate(.65)}
body.theme-v51 .achievement-medal{width:62px;height:62px;position:relative;display:grid;place-items:center;border:1px solid rgba(213,175,101,.18);border-radius:50%;background:#090a09;overflow:hidden}
body.theme-v51 .achievement-medal img{opacity:.72}.theme-v51 .achievement-medal span{position:absolute;font-size:18px;color:#f0ce79;text-shadow:0 2px 8px #000}
body.theme-v51 .achievement-card h2{margin:3px 0;font:700 17px var(--c-display);color:#e2cb98}.theme-v51 .achievement-card p{font-size:9px;color:#8a857d}
body.theme-v51 .achievement-progress>div,body.theme-v51 .contract-meter>div{height:6px;border-radius:999px;background:#050606;overflow:hidden}.theme-v51 .achievement-progress i,body.theme-v51 .contract-meter i{display:block;height:100%;background:linear-gradient(90deg,#9f1e27,#d7a74f)}
body.theme-v51 .guide-v4-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);gap:0;overflow:hidden;border:1px solid rgba(213,175,101,.20);border-radius:15px;background:linear-gradient(135deg,#15130f,#080909);box-shadow:var(--c-shadow)}
body.theme-v51 .guide-v4-hero>div:first-child{padding:clamp(22px,3vw,38px)}
body.theme-v51 .guide-v4-hero h1{margin:5px 0 8px;font:700 clamp(32px,4vw,52px) var(--c-display);color:#e7d1a0}.theme-v51 .guide-v4-hero p{color:#948d82;font-size:11px;line-height:1.65}
body.theme-v51 .guide-v4-art{display:grid;grid-template-columns:1fr 1fr;min-height:260px;background:#070808}.theme-v51 .guide-v4-art img{width:100%;height:100%;object-fit:contain!important;padding:12px;filter:saturate(.88) contrast(1.04) drop-shadow(0 10px 22px #000a)}
body.theme-v51 .guide-search{position:relative;top:auto;display:grid;gap:6px;margin-top:15px;padding:9px;border:1px solid rgba(213,175,101,.14);border-radius:9px;background:#080909;color:#8b8274;font-size:8px}
body.theme-v51 .guide-card{display:grid;grid-template-columns:68px minmax(0,1fr);gap:12px;padding:13px;align-items:start}.theme-v51 .guide-card.highlight{border-color:rgba(220,180,98,.48);box-shadow:0 0 0 1px rgba(220,180,98,.12),0 16px 38px #0006}.theme-v51 .guide-icon{width:66px;height:60px;display:grid;place-items:center;border:1px solid rgba(213,175,101,.14);border-radius:8px;background:#080909;overflow:hidden}.theme-v51 .guide-card h2{margin:1px 0 5px;font:700 15px var(--c-display);color:#e0ca98}.theme-v51 .guide-card p{margin:0;color:#88837b;font-size:9px;line-height:1.55}.theme-v51 .guide-card a{display:inline-block;margin-top:7px;color:#cba95f;font-size:8px}

/* chat / inbox */
body.theme-v51 .chat-shell{overflow:hidden;border:1px solid rgba(213,175,101,.17);border-radius:13px;background:#080909}.theme-v51 .chat-log{max-height:min(58vh,620px);overflow:auto;background:linear-gradient(#080909,#0b0c0b)}.theme-v51 .chat-line{padding:10px 12px;border-bottom:1px solid rgba(213,175,101,.07)}.theme-v51 .chat-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px;border-top:1px solid rgba(213,175,101,.12);background:#090a09}
body.theme-v51 .compose{display:grid;gap:9px}.theme-v51 .message-list{display:grid;gap:5px}

/* admin remains functional, calmer than the public game */
body.theme-v51.route-admin .main-content{max-width:1820px}.theme-v51 .admin-tabs{position:sticky;top:122px;z-index:25;display:flex;gap:4px;overflow:auto;padding:6px;border:1px solid rgba(213,175,101,.12);border-radius:10px;background:rgba(7,8,8,.93);backdrop-filter:blur(16px)}.theme-v51 .admin-tabs a{flex:0 0 auto;padding:8px 10px;border-radius:7px;color:#81796c;font-size:8px}.theme-v51 .admin-tabs a:hover{background:#15140f;color:#d8c397}.theme-v51 .admin-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}.theme-v51 .admin-metrics>*{padding:10px;border:1px solid rgba(213,175,101,.11);border-radius:9px;background:#0a0b0a}.theme-v51 .settings-grid,.theme-v51 .editor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.theme-v51 .editor-grid .wide{grid-column:1/-1}.theme-v51 .admin-editor-list details,.theme-v51 .admin-user-list details{margin-bottom:7px;border:1px solid rgba(213,175,101,.11);border-radius:9px;background:#090a09;overflow:hidden}.theme-v51 .admin-editor-list summary,.theme-v51 .admin-user-list summary{padding:10px}

/* ------------------------------ public site ------------------------------- */
body.theme-v51.guest-shell:before{content:"";position:fixed;inset:0;z-index:-2;background:radial-gradient(circle at 70% 0,rgba(156,32,39,.13),transparent 35%),linear-gradient(#050606,#080909)}
body.theme-v51 .guest-header{height:72px;padding:0 clamp(12px,3.5vw,48px);background:rgba(6,7,7,.955);border-bottom:1px solid rgba(213,175,101,.21);box-shadow:0 11px 34px #000a;backdrop-filter:blur(20px)}
body.theme-v51 .guest-header nav{margin-left:auto;display:flex;align-items:center;gap:4px}.theme-v51 .guest-header nav>a:not(.btn){padding:9px 10px;border-radius:7px;color:#9c9487;font:700 8px var(--c-body);letter-spacing:.08em;text-transform:uppercase}.theme-v51 .guest-header nav>a:not(.btn):hover{background:rgba(213,175,101,.05);color:#ead8b3}
body.theme-v51 .hero-v4{position:relative;min-height:650px;overflow:hidden;background:linear-gradient(100deg,#070808 0%,#070808 35%,#0a0a09 100%);border-bottom:1px solid rgba(213,175,101,.20)}
body.theme-v51 .hero-v4-city{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,6,6,.98) 0%,rgba(5,6,6,.88) 42%,rgba(5,6,6,.40) 70%,rgba(5,6,6,.70) 100%),url("art/rackets/speakeasy.png") center/cover no-repeat;filter:saturate(.80) contrast(1.08) brightness(.78)}
body.theme-v51 .hero-v4-copy{position:relative;z-index:3;width:min(760px,58%);padding:clamp(78px,9vw,126px) 0 68px clamp(22px,5.5vw,88px)}
body.theme-v51 .hero-v4-copy h1{margin:8px 0 16px;font:700 clamp(43px,5.8vw,82px)/.92 var(--c-display);letter-spacing:-.02em;color:#e9d19b;text-shadow:0 12px 36px #000}.theme-v51 .hero-v4-copy h1 em{font-style:normal;color:#c72c36}.theme-v51 .hero-v4-copy>p{max-width:650px;color:#aaa195;font-size:12px;line-height:1.72}
body.theme-v51 .hero-v4-cast{position:absolute;right:0;bottom:0;width:49%;height:96%;z-index:2;overflow:hidden}.theme-v51 .hero-don,.theme-v51 .hero-velvet{position:absolute;bottom:-7%;width:auto;object-fit:contain!important;filter:saturate(.93) contrast(1.05) drop-shadow(0 21px 34px #000e)}.theme-v51 .hero-don{right:32%;height:89%;z-index:2}.theme-v51 .hero-velvet{right:6%;height:84%;z-index:1}
body.theme-v51 .hero-v4-mark{position:absolute;right:5%;bottom:34px;z-index:4;display:flex;align-items:center;gap:9px;padding:8px 11px;border:1px solid rgba(213,175,101,.22);border-radius:8px;background:rgba(7,8,8,.78);backdrop-filter:blur(8px)}.theme-v51 .hero-v4-mark img{width:31px;height:31px;object-fit:contain}.theme-v51 .hero-v4-mark span{font:800 6px var(--c-body);letter-spacing:.18em;color:#a98e5b}
body.theme-v51 .hero-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));max-width:640px;margin-top:25px;border:1px solid rgba(213,175,101,.16);border-radius:9px;overflow:hidden;background:rgba(7,8,8,.72);backdrop-filter:blur(10px)}.theme-v51 .hero-stats>div{padding:10px 12px;border-right:1px solid rgba(213,175,101,.10)}.theme-v51 .hero-stats>div:last-child{border-right:0}.theme-v51 .hero-stats b{display:block;font:700 19px var(--c-condensed);color:#e2c98f}.theme-v51 .hero-stats span{font:800 6px var(--c-body);letter-spacing:.11em;color:#726b61;text-transform:uppercase}
body.theme-v51 .public-game-loop{max-width:1480px;margin:0 auto;padding:38px clamp(12px,4vw,55px);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.theme-v51 .public-game-loop article{position:relative;min-width:0;overflow:hidden;padding:0 15px 17px;border:1px solid rgba(213,175,101,.16);border-radius:12px;background:linear-gradient(#11110f,#080909);box-shadow:0 13px 38px #0007}.theme-v51 .public-game-loop img{width:calc(100% + 30px);height:155px;margin:0 -15px 13px;object-fit:contain!important;padding:8px;background:radial-gradient(circle at 50% 40%,rgba(146,33,40,.10),transparent 58%),#080909;border-bottom:1px solid rgba(213,175,101,.12);filter:saturate(.88) contrast(1.05)}.theme-v51 .public-game-loop article:nth-child(2) img{object-fit:cover!important;padding:0}.theme-v51 .public-game-loop article>span{position:absolute;right:10px;top:129px;font:700 24px var(--c-display);color:#bd9953;text-shadow:0 3px 8px #000}.theme-v51 .public-game-loop h2{margin:0 0 6px;font:700 15px var(--c-display);color:#ddc694}.theme-v51 .public-game-loop p{margin:0;color:#888279;font-size:9px;line-height:1.58}
body.theme-v51 .public-city-showcase,body.theme-v51 .public-loadout{max-width:1360px;margin:0 auto 22px;padding:0 clamp(12px,3vw,40px);display:grid;grid-template-columns:1fr 1fr}.theme-v51 .public-city-showcase>div,.theme-v51 .public-loadout>div:last-child{padding:clamp(24px,3.6vw,45px);border:1px solid rgba(213,175,101,.17);background:linear-gradient(145deg,#12120f,#080909)}.theme-v51 .public-city-showcase>img{width:100%;height:100%;min-height:360px;object-fit:contain!important;padding:18px;border:1px solid rgba(213,175,101,.17);background:#070808}.theme-v51 .public-city-showcase h2,.theme-v51 .public-loadout h2,.theme-v51 .public-final-cta h2{font:700 clamp(26px,3.5vw,46px)/1.03 var(--c-display);color:#e2cb99}.theme-v51 .public-city-showcase p,.theme-v51 .public-loadout p,.theme-v51 .public-final-cta p{color:#948d82;font-size:11px;line-height:1.7}.theme-v51 .public-pills{display:flex;flex-wrap:wrap;gap:5px;margin:16px 0}.theme-v51 .public-pills span{padding:5px 7px;border:1px solid rgba(213,175,101,.15);border-radius:999px;background:#090a09;color:#9c8456;font:800 6px var(--c-body);letter-spacing:.08em;text-transform:uppercase}
body.theme-v51 .public-loadout-art{display:grid;grid-template-columns:1fr 1fr;min-height:360px;border:1px solid rgba(213,175,101,.17);background:#070808}.theme-v51 .public-loadout-art img{width:100%;height:180px;object-fit:contain!important;padding:10px;border:1px solid rgba(213,175,101,.07);filter:saturate(.9) contrast(1.04)}
body.theme-v51 .public-v5-showcase{max-width:1320px;margin:28px auto 45px;padding:0 clamp(12px,3vw,40px)}.theme-v51 .public-v5-showcase img{width:100%;border:1px solid rgba(213,175,101,.22);border-radius:13px;box-shadow:0 28px 85px #000c}.theme-v51 .public-v5-showcase figcaption{text-align:center;margin-top:9px;color:#69645d;font-size:8px;letter-spacing:.08em}
body.theme-v51 .public-final-cta{max-width:1240px;margin:0 auto;padding:58px clamp(18px,5vw,76px);text-align:center;border-top:1px solid rgba(213,175,101,.13);background:radial-gradient(circle at 50% 0,rgba(151,106,34,.08),transparent 46%)}
body.theme-v51 .guest-footer{display:flex;justify-content:space-between;gap:18px;padding:20px clamp(14px,4vw,54px);border-top:1px solid rgba(213,175,101,.13);background:#060707;color:#68635c;font-size:8px}

/* auth */
body.theme-v51 .auth-wrap{min-height:calc(100vh - 144px);display:grid;grid-template-columns:minmax(300px,520px) minmax(300px,620px);justify-content:center;gap:0;padding:34px 16px}.theme-v51 .auth-card,.theme-v51 .auth-scene{border:1px solid rgba(213,175,101,.20);background:linear-gradient(145deg,#14130f,#080909);box-shadow:var(--c-shadow-deep)}.theme-v51 .auth-card{padding:clamp(22px,4vw,42px);border-radius:15px 0 0 15px}.theme-v51 .auth-card h1{font:700 clamp(31px,4vw,48px) var(--c-display);color:#e5cf9e}.theme-v51 .auth-scene{position:relative;border-radius:0 15px 15px 0;min-height:480px}.theme-v51 .auth-scene img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover!important}.theme-v51 .auth-scene:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#090a09a8,transparent 32%),linear-gradient(0deg,#070808df,transparent 55%)}.theme-v51 .auth-scene p{position:absolute;z-index:2;left:24px;right:24px;bottom:22px;margin:0;font:700 19px var(--c-display);color:#e4cd99;text-shadow:0 5px 18px #000}
body.theme-v51 .hp-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}

/* legal / faq */
body.theme-v51 .legal-hero{max-width:1100px;margin:28px auto 15px;padding:32px clamp(18px,4vw,42px);border:1px solid rgba(213,175,101,.18);border-radius:14px;background:linear-gradient(120deg,#14130f,#080909);box-shadow:var(--c-shadow)}.theme-v51 .legal-hero h1{margin:5px 0 7px;font:700 clamp(31px,4vw,50px) var(--c-display);color:#e4cd9b}.theme-v51 .legal-hero p{margin:0;color:#948d83}
body.theme-v51 .legal-grid,body.theme-v51 .faq-list{max-width:1100px;margin:0 auto;display:grid;gap:10px}.theme-v51 .legal-grid>*,body.theme-v51 .faq-list>*{padding:17px;border:1px solid rgba(213,175,101,.13);border-radius:11px;background:linear-gradient(150deg,#11110f,#080909)}

/* ----------------------------- responsive --------------------------------- */
@media(min-width:1500px){
  body.theme-v51 .app-frame{grid-template-columns:250px minmax(0,1fr)}
  body.theme-v51 .main-content{padding-left:40px;padding-right:40px}
  body.theme-v51 .property-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  body.theme-v51 .shop-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(max-width:1180px){
  body.theme-v51 .app-frame{grid-template-columns:218px minmax(0,1fr)}
  body.theme-v51 .brand{min-width:auto}.theme-v51 .brand span{font-size:17px}
  body.theme-v51 .top-stats .stat{min-width:88px;padding-inline:10px}
  body.theme-v51 .dashboard-grid{grid-template-columns:1fr}
  body.theme-v51 .quick-score-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.theme-v51 .v5-action-rail{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.theme-v51 .page-head>div:first-child{max-width:73%}
  body.theme-v51 .public-game-loop{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:980px){
  body.theme-v51 .topbar{height:64px;padding:0 10px}.theme-v51 .topbar .brand span{display:none}.theme-v51 .topbar .brand img{width:40px;height:40px}.theme-v51 .top-stats{gap:5px}.theme-v51 .stat{height:40px;min-width:80px!important;padding:0 8px!important}.theme-v51 .stat.respect{display:none}.theme-v51 .icon-btn{width:37px;height:37px}.theme-v51 .nav-toggle{display:grid}
  body.theme-v51 .vitals-strip{top:64px}
  body.theme-v51 .app-frame{display:block}
  body.theme-v51 .sidebar{position:fixed;z-index:160;left:0;top:0;width:min(320px,88vw);height:100dvh;padding:74px 10px 28px;transform:translateX(-104%);transition:transform .22s ease;box-shadow:28px 0 80px #000e}
  body.theme-v51.nav-open .sidebar{transform:translateX(0)}
  body.theme-v51.nav-open:after{content:"";position:fixed;inset:0;z-index:150;background:#000a;backdrop-filter:blur(2px)}
  body.theme-v51 .main-content{padding:20px 13px 90px}
  body.theme-v51 .mobile-dock{display:grid;grid-template-columns:repeat(5,1fr);height:64px;padding-bottom:env(safe-area-inset-bottom);border-top:1px solid rgba(213,175,101,.18);background:rgba(6,7,7,.96);backdrop-filter:blur(20px);box-shadow:0 -12px 30px #000b}
  body.theme-v51 .mobile-dock a,body.theme-v51 .mobile-dock button{min-width:0;padding:6px 3px;color:#80796f;border-right:1px solid rgba(213,175,101,.06)}.theme-v51 .mobile-dock i{font-size:16px;color:#9d7c43}.theme-v51 .mobile-dock span{font:800 6px var(--c-body);letter-spacing:.06em}.theme-v51 .mobile-dock a.active{color:#efd9a5}.theme-v51 .mobile-dock .dock-fight{margin:-8px 4px 4px;border-radius:11px;background:linear-gradient(#b52731,#74151c);box-shadow:0 -6px 20px rgba(123,18,26,.35)}
  body.theme-v51 .loadout-hero,body.theme-v51 .character-layout{grid-template-columns:1fr}
  body.theme-v51 .sticky-avatar{position:relative;top:auto}
  body.theme-v51 .auth-wrap{grid-template-columns:minmax(0,650px)}.theme-v51 .auth-card{border-radius:15px}.theme-v51 .auth-scene{display:none}
}

@media(max-width:720px){
  html{scroll-padding-top:116px}
  body.theme-v51 .topbar{height:56px;gap:6px}.theme-v51 .topbar .brand img{width:36px;height:36px}.theme-v51 .top-stats .stat{min-width:70px!important;height:36px;padding:0 6px!important}.theme-v51 .top-stats .stat small{font-size:5px}.theme-v51 .top-stats .stat strong{font-size:13px}.theme-v51 .stat.level{display:none}.theme-v51 .top-actions{gap:3px}.theme-v51 .icon-btn{width:34px;height:34px}.theme-v51 .alert-btn{display:none}
  body.theme-v51 .vitals-strip{top:56px;grid-template-columns:repeat(4,minmax(0,1fr));position:sticky}.theme-v51 .vitals-strip>div{min-height:42px;padding:5px 6px;display:flex;flex-direction:column;align-items:stretch;gap:3px}.theme-v51 .vitals-strip span{font-size:5px}.theme-v51 .vitals-strip b{order:2;font-size:6px}.theme-v51 .vitals-strip .meter{order:3;height:5px}
  body.theme-v51 .main-content{padding:13px 8px 82px}
  body.theme-v51 .page-head{min-height:142px;display:block;padding:18px 15px;margin-bottom:12px}.theme-v51 .page-head:before{inset:0 0 0 34%;opacity:.52}.theme-v51 .page-head>div:first-child{max-width:82%}.theme-v51 .page-head h1{font-size:29px;max-width:95%}.theme-v51 .page-head p{font-size:9px;line-height:1.5}.theme-v51 .page-head>.btn,.theme-v51 .page-head>form{margin-top:10px;width:100%}.theme-v51 .page-head>form .btn{width:100%}
  body.theme-v51 .panel{padding:12px}.theme-v51 .panel-title{margin-bottom:10px}.theme-v51 .panel-title h2{font-size:14px}
  body.theme-v51 .command-hero{min-height:440px;border-radius:12px}.theme-v51 .command-hero:before{background:linear-gradient(180deg,rgba(5,6,6,.92),rgba(5,6,6,.66) 47%,rgba(5,6,6,.97) 100%),url("art/rackets/speakeasy.png") center/cover no-repeat}.theme-v51 .command-hero-copy{width:100%;padding:22px 15px 214px}.theme-v51 .command-hero h1{font-size:32px}.theme-v51 .command-hero p{font-size:9px;max-width:94%}.theme-v51 .command-hero-art{width:100%;height:53%;opacity:.94}.theme-v51 .command-hero-art img:first-child{right:44%;height:108%;bottom:-12%}.theme-v51 .command-hero-art img:last-child{right:9%;height:101%;bottom:-12%}.theme-v51 .command-event{display:none}.theme-v51 .hero-actions{display:grid;grid-template-columns:1fr;gap:6px}.theme-v51 .hero-actions .btn{width:100%}
  body.theme-v51 .v5-action-rail{display:flex;overflow-x:auto;gap:6px;padding:0 1px 5px;scroll-snap-type:x proximity;scrollbar-width:none}.theme-v51 .v5-action-rail::-webkit-scrollbar{display:none}.theme-v51 .v5-action-rail a{flex:0 0 145px;height:66px;scroll-snap-align:start}.theme-v51 .v5-action-rail img{width:41px;height:41px;flex-basis:41px}
  body.theme-v51 .dashboard-grid{grid-template-columns:1fr}.theme-v51 .dossier-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-v51 .quick-score-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-v51 .quick-score-grid a{min-height:118px}.theme-v51 .quick-score-grid b{font-size:12px}
  body.theme-v51 .card-grid,body.theme-v51 .property-grid,body.theme-v51 .market-grid,body.theme-v51 .achievement-grid,body.theme-v51 .evidence-grid,body.theme-v51 .territory-grid,body.theme-v51 .mission-grid,body.theme-v51 .heist-grid,body.theme-v51 .leader-grid{grid-template-columns:1fr}
  body.theme-v51 .mission-hero,body.theme-v51 .heist-intro{grid-template-columns:1fr}.theme-v51 .mission-hero-collage,body.theme-v51 .heist-intro-art{min-height:160px;order:-1}.theme-v51 .chapter-banner{grid-template-columns:96px minmax(0,1fr)}.theme-v51 .chapter-status{grid-column:1/-1;text-align:left}.theme-v51 .chapter-art{height:86px}.theme-v51 .mission-card{grid-template-columns:50px minmax(0,1fr)}.theme-v51 .mission-action{grid-column:1/-1}.theme-v51 .mission-action .btn{width:100%}
  body.theme-v51 .racket-art-v3,body.theme-v51 .racket-market-art{aspect-ratio:16/10}
  body.theme-v51 .loadout-slots,body.theme-v51 .character-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-v51 .avatar-stage{min-height:280px}.theme-v51 .inventory-list .item-row{grid-template-columns:76px minmax(0,1fr)}.theme-v51 .inventory-list .item-row form{grid-column:1/-1}.theme-v51 .inventory-list .item-row .btn{width:100%}.theme-v51 .equipment-art-v3{width:76px;height:68px}
  body.theme-v51 .market-sell-form{grid-template-columns:1fr 1fr}.theme-v51 .market-sell-form>*:first-child{grid-column:1/-1}.theme-v51 .market-sell-form .btn{width:100%}.theme-v51 .market-card{grid-template-columns:92px minmax(0,1fr)}.theme-v51 .market-card>.market-art{width:88px;height:88px}
  body.theme-v51 .city-districts{grid-template-columns:1fr}.theme-v51 .city-districts a{height:175px}.theme-v51 .territory-card{grid-template-columns:58px minmax(0,1fr)}.theme-v51 .territory-map-mark{width:54px;height:62px}.theme-v51 .territory-head{display:block}.theme-v51 .territory-owner{margin-top:8px}
  body.theme-v51 .guide-v4-hero{grid-template-columns:1fr}.theme-v51 .guide-v4-art{min-height:0;height:155px;order:-1}.theme-v51 .guide-v4-hero>div:first-child{padding:18px 14px}.theme-v51 .guide-card{grid-template-columns:58px minmax(0,1fr)}.theme-v51 .guide-icon{width:56px;height:52px}
  body.theme-v51 .hero-v4{min-height:700px}.theme-v51 .hero-v4-copy{width:100%;padding:38px 15px 325px}.theme-v51 .hero-v4-copy h1{font-size:39px}.theme-v51 .hero-v4-copy>p{font-size:10px;line-height:1.6}.theme-v51 .hero-v4-cast{width:100%;height:46%;right:0}.theme-v51 .hero-don{right:38%;height:103%}.theme-v51 .hero-velvet{right:6%;height:96%}.theme-v51 .hero-v4-mark{display:none}.theme-v51 .hero-stats{grid-template-columns:repeat(2,1fr);margin-top:18px}.theme-v51 .hero-stats>div:nth-child(2){border-right:0}.theme-v51 .hero-stats>div:nth-child(-n+2){border-bottom:1px solid rgba(213,175,101,.09)}
  body.theme-v51 .public-game-loop{grid-template-columns:1fr;padding:24px 9px}.theme-v51 .public-game-loop article{display:grid;grid-template-columns:116px minmax(0,1fr);grid-template-rows:auto 1fr;min-height:136px;padding:0 12px 12px}.theme-v51 .public-game-loop img{grid-row:1/3;width:110px;height:136px;margin:0 12px 0 -12px;border-bottom:0;border-right:1px solid rgba(213,175,101,.11)}.theme-v51 .public-game-loop article>span{right:8px;top:8px;font-size:18px}.theme-v51 .public-game-loop h2{align-self:end;margin-top:36px}.theme-v51 .public-game-loop p{font-size:8px}
  body.theme-v51 .public-city-showcase,body.theme-v51 .public-loadout{grid-template-columns:1fr;margin:0 8px 16px;padding:0}.theme-v51 .public-city-showcase>img{order:-1;min-height:0;height:auto;max-height:430px}.theme-v51 .public-city-showcase>div,.theme-v51 .public-loadout>div:last-child{padding:20px 15px}.theme-v51 .public-loadout-art{min-height:0}.theme-v51 .public-loadout-art img{height:135px}
  body.theme-v51 .guest-header{height:60px;padding:0 10px}.theme-v51 .guest-header .brand span{font-size:14px}.theme-v51 .guest-header nav>a:not(.btn){display:none}.theme-v51 .guest-header .btn{min-height:34px;padding-inline:10px}.theme-v51 .guest-footer{flex-direction:column;text-align:center;gap:7px}
  body.theme-v51 .auth-wrap{padding:18px 9px}.theme-v51 .auth-card{padding:21px 14px}.theme-v51 .legal-hero{margin:16px 8px 10px;padding:22px 15px}.theme-v51 .legal-grid,body.theme-v51 .faq-list{padding:0 8px}
}

@media(max-width:460px){
  body.theme-v51 .top-stats .stat.cash{min-width:80px!important}.theme-v51 .notify-btn{display:none}
  body.theme-v51 .vitals-strip>div{padding-inline:4px}.theme-v51 .vitals-strip span{font-size:4.5px}.theme-v51 .vitals-strip b{font-size:5.5px}
  body.theme-v51 .page-head{min-height:132px}.theme-v51 .page-head:before{inset:0 0 0 28%;opacity:.46}.theme-v51 .page-head>div:first-child{max-width:90%}.theme-v51 .page-head h1{font-size:26px}
  body.theme-v51 .dossier-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-v51 .dossier-grid strong{font-size:17px}
  body.theme-v51 .quick-score-grid{gap:6px}.theme-v51 .quick-score-grid a{min-height:108px;padding:8px}
  body.theme-v51 .loadout-slots,body.theme-v51 .character-slot-grid{grid-template-columns:1fr 1fr;gap:6px}.theme-v51 .slot-card{min-height:108px;padding:9px}.theme-v51 .slot-art{width:75px!important;height:65px!important}
  body.theme-v51 .market-sell-form{grid-template-columns:1fr}.theme-v51 .market-sell-form>*{grid-column:1/-1!important}.theme-v51 .market-card{grid-template-columns:1fr}.theme-v51 .market-card>.market-art{width:100%;height:auto;aspect-ratio:4/3}.theme-v51 .market-buy{flex-direction:column}.theme-v51 .market-buy input{width:100%!important}
  body.theme-v51 .territory-card{grid-template-columns:1fr}.theme-v51 .territory-map-mark{width:100%;height:48px;display:flex;gap:8px}.theme-v51 .territory-action{justify-content:stretch}.theme-v51 .territory-action .btn{width:100%}
  body.theme-v51 .public-game-loop article{grid-template-columns:94px minmax(0,1fr)}.theme-v51 .public-game-loop img{width:88px;height:128px}.theme-v51 .public-loadout-art img{height:112px}
}

@media(prefers-reduced-motion:reduce){
  body.theme-v51 *,body.theme-v51 *:before,body.theme-v51 *:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}

/* Character renderer scene correction: use a clean district montage instead of the old concept sheet. */
body.theme-v51 .avatar-city{background-image:url("art/city-showcase.jpg")!important;background-size:cover!important;background-position:center!important;opacity:.13!important;filter:saturate(.55) brightness(.55)!important}
body.theme-v51 .avatar-loadout{background:rgba(213,175,101,.12)!important}
body.theme-v51 .avatar-gear{background:#090a09!important;padding:7px!important}
body.theme-v51 .avatar-gear img{object-fit:contain!important}
body.theme-v51 .character-art-catalog img{width:100%;height:auto;object-fit:contain!important;padding:8px;background:#050606;border-color:rgba(213,175,101,.15)!important}
body.theme-v51 img.asset-fallback{opacity:.58;filter:grayscale(.2) saturate(.6)!important}
body.theme-v51.hud-scrolled .topbar{box-shadow:0 15px 42px #000d}

/* 5.1 structural corrections for mission/heist markup used by the live templates. */
body.theme-v51 .mission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.theme-v51 .mission-card{display:block;padding:14px}
body.theme-v51 .mission-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
body.theme-v51 .mission-card-top span{font:800 7px var(--c-body);letter-spacing:.11em;color:#b79655;text-transform:uppercase}
body.theme-v51 .mission-card-top b{font:700 10px var(--c-condensed);color:#d6c08d}
body.theme-v51 .mission-card>h3{margin:0 0 6px}
body.theme-v51 .mission-card>p{margin:0 0 10px}
body.theme-v51 .mission-card .mastery-track{margin:9px 0 11px}
body.theme-v51 .mission-card .mission-action{margin-top:9px}
body.theme-v51 .heist-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.theme-v51 .heist-card{display:block;padding:0;overflow:hidden}
body.theme-v51 .heist-card .heist-art{position:relative;width:100%;aspect-ratio:16/7.3;border:0;border-bottom:1px solid rgba(213,175,101,.16);border-radius:0;margin:0}
body.theme-v51 .heist-card .heist-art span{position:absolute;left:10px;bottom:9px;z-index:2;padding:4px 7px;border:1px solid rgba(213,175,101,.25);border-radius:999px;background:rgba(5,6,6,.80);color:#e0c782;font:800 7px var(--c-body);letter-spacing:.09em}
body.theme-v51 .heist-card .heist-art:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(5,6,6,.90),transparent 58%)}
body.theme-v51 .heist-copy{padding:14px}
body.theme-v51 .heist-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
body.theme-v51 .heist-title small{display:block;color:#867b68;font:800 6px var(--c-body);letter-spacing:.09em}
body.theme-v51 .heist-title h2{margin:4px 0 0;font:700 19px var(--c-display);color:#e5cf9c}
body.theme-v51 .heist-title>b{color:#78cf9b;font:700 15px var(--c-condensed);text-align:right}
body.theme-v51 .heist-copy>p{color:#8d877e;font-size:9px;line-height:1.55}
body.theme-v51 .heist-record{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0;padding:8px;border:1px solid rgba(213,175,101,.10);border-radius:8px;background:#090a09;color:#777169;font-size:7px}
body.theme-v51 .heist-record .hot{color:#e98267}
body.theme-v51 .heist-intro-art{position:relative;min-height:210px;overflow:hidden;background:#070808}
body.theme-v51 .heist-intro-art img:first-child{position:absolute;inset:0;width:100%;height:100%;object-fit:cover!important;object-position:center!important;filter:saturate(.82) contrast(1.08) brightness(.78)}
body.theme-v51 .heist-intro-art img:last-child{position:absolute;right:4%;bottom:-5%;width:42%;height:68%;object-fit:contain!important;filter:drop-shadow(0 16px 25px #000d) saturate(.95)}
body.theme-v51 .heist-intro-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,7,7,.42),transparent 52%)}
body.theme-v51 .mission-hero-collage{position:relative;min-height:210px;overflow:hidden;background:#070808}
body.theme-v51 .mission-hero-collage img:first-child{position:absolute;inset:0;width:100%;height:100%;object-fit:cover!important;object-position:center!important;filter:saturate(.80) contrast(1.07) brightness(.74)}
body.theme-v51 .mission-hero-collage img:last-child{position:absolute;right:6%;bottom:3%;width:41%;height:72%;object-fit:contain!important;filter:drop-shadow(0 14px 22px #000d)}
body.theme-v51 .mission-hero-collage:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,7,7,.35),transparent 55%)}

@media(max-width:900px){body.theme-v51 .mission-grid,body.theme-v51 .heist-grid{grid-template-columns:1fr}}
@media(max-width:720px){body.theme-v51 .mission-card{display:block}.theme-v51 .heist-intro-art,.theme-v51 .mission-hero-collage{min-height:165px}.theme-v51 .heist-title{display:block}.theme-v51 .heist-title>b{display:block;margin-top:6px;text-align:left}.theme-v51 .heist-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Neutralize legacy concept-sheet backgrounds that should never be stretched behind live UI. */
body.theme-v51.game-shell:before{content:"";position:fixed;inset:0;z-index:-3;background:radial-gradient(60rem 34rem at 78% 0,rgba(137,25,33,.10),transparent 55%),linear-gradient(180deg,#050606,#080909 55%,#050606);filter:none!important;opacity:1!important}
body.theme-v51.game-shell:after{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background:radial-gradient(circle at 20% 12%,rgba(211,173,97,.035),transparent 34%);opacity:1!important}
body.theme-v51 .mission-hero-v4:before{display:none!important}
body.theme-v51 .public-district-grid{display:grid;grid-template-columns:1fr 1fr;min-height:360px;border:1px solid rgba(213,175,101,.17);background:#070808;overflow:hidden}
body.theme-v51 .public-district-grid figure{position:relative;min-width:0;min-height:180px;margin:0;overflow:hidden;border:1px solid rgba(213,175,101,.07);background:#070808}
body.theme-v51 .public-district-grid img{width:100%;height:100%;object-fit:cover!important;filter:saturate(.83) contrast(1.08);transition:transform .25s,filter .25s}
body.theme-v51 .public-district-grid figure:hover img{transform:scale(1.025);filter:saturate(.93) contrast(1.08)}
body.theme-v51 .public-district-grid figure:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(5,6,6,.95),transparent 58%)}
body.theme-v51 .public-district-grid figcaption{position:absolute;z-index:2;left:12px;right:12px;bottom:10px;display:flex;flex-direction:column;gap:2px}
body.theme-v51 .public-district-grid b{font:700 13px var(--c-display);color:#e3cc99}.theme-v51 .public-district-grid span{color:#817a70;font-size:7px;text-transform:uppercase;letter-spacing:.08em}
@media(max-width:720px){body.theme-v51 .public-district-grid{min-height:0}.theme-v51 .public-district-grid figure{min-height:135px}.theme-v51 .public-district-grid figcaption{left:9px;bottom:8px}.theme-v51 .public-district-grid b{font-size:11px}.theme-v51 .public-district-grid span{font-size:6px}}

/* -------------------------- remaining live pages -------------------------- */
body.theme-v51 .mt{margin-top:16px}
body.theme-v51 .stack{display:grid;gap:10px}
body.theme-v51 .inline-form{display:flex;flex-wrap:wrap;gap:8px;align-items:end}
body.theme-v51 .inline-form>label{flex:1 1 170px;display:grid;gap:5px}
body.theme-v51 .inline-form>.btn{flex:0 0 auto}

/* Fight / player targets */
body.theme-v51 .player-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:10px}
body.theme-v51 .player-card{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:11px;align-items:center;padding:11px;border:1px solid var(--c-line);border-radius:11px;background:linear-gradient(145deg,#12120f,#080909);box-shadow:0 11px 28px #0005;transition:.16s}
body.theme-v51 .player-card:hover{transform:translateY(-2px);border-color:rgba(224,185,101,.35)}
body.theme-v51 .avatar-monogram{display:grid;place-items:center;width:48px;height:48px;border:1px solid rgba(213,175,101,.25);border-radius:10px;background:radial-gradient(circle at 50% 30%,rgba(199,144,48,.13),transparent 55%),#090a09;color:#e0c47e;font:700 20px var(--c-display)}
body.theme-v51 .avatar-monogram.small{width:42px;height:42px;font-size:16px}
body.theme-v51 .avatar-monogram.xl{width:86px;height:86px;font-size:34px}
body.theme-v51 .player-info{display:flex;flex-direction:column;min-width:0;gap:2px}
body.theme-v51 .player-info>a{font:700 13px var(--c-display);color:#e4ce9a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.theme-v51 .player-info span{color:#8b847a;font-size:8px}.theme-v51 .player-info small{color:#625f5a;font-size:7px}

/* Hitlist */
body.theme-v51 .contract-form{background:linear-gradient(135deg,#17110f,#090909)}
body.theme-v51 .contract-list{display:grid;gap:8px}
body.theme-v51 .contract-list>article{display:grid;grid-template-columns:74px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:11px;border:1px solid rgba(198,55,62,.24);border-radius:11px;background:linear-gradient(100deg,rgba(77,15,21,.23),rgba(12,12,11,.96) 36%);box-shadow:0 10px 25px #0005}
body.theme-v51 .target-stamp{display:grid;place-items:center;height:52px;border:1px solid rgba(198,55,62,.38);border-radius:8px;background:#2a0c10;color:#f0c0b6;font:800 10px var(--c-body);letter-spacing:.12em;transform:rotate(-2deg)}
body.theme-v51 .contract-list a{font:700 14px var(--c-display);color:#ead1a0}.theme-v51 .contract-list span{display:block;margin-top:3px;color:#817b72;font-size:8px}.theme-v51 .contract-list>article>strong{color:#6fd09a;font:700 19px var(--c-condensed)}

/* Bank */
body.theme-v51 .bank-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
body.theme-v51 .vault-card{position:relative;min-height:155px;padding:20px;overflow:hidden;border:1px solid rgba(213,175,101,.18);border-radius:13px;background:linear-gradient(145deg,#17140f,#080909);box-shadow:0 15px 35px #0006}
body.theme-v51 .vault-card:before{content:"";position:absolute;right:-18px;bottom:-24px;width:150px;height:120px;background:url("art/items/cash-bag.png") center/contain no-repeat;opacity:.20;filter:saturate(.8)}
body.theme-v51 .vault-card.safe:before{background-image:url("art/items/ledger.png")}
body.theme-v51 .vault-card span,body.theme-v51 .vault-card strong,body.theme-v51 .vault-card small{position:relative;z-index:2;display:block}.theme-v51 .vault-card span{font:800 7px var(--c-body);letter-spacing:.15em;color:#8f7b56}.theme-v51 .vault-card strong{margin:10px 0 6px;font:700 clamp(28px,4vw,44px) var(--c-condensed);color:#e4ce98}.theme-v51 .vault-card.safe strong{color:#77cd99}.theme-v51 .vault-card small{color:#77716a;font-size:9px}

/* Skills / Favor */
body.theme-v51 .skill-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:10px}
body.theme-v51 .skill-card{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px}
body.theme-v51 .skill-rank{width:58px;height:58px;display:grid;place-items:center;align-content:center;border:1px solid rgba(213,175,101,.24);border-radius:50%;background:radial-gradient(circle,#1a1710,#090a09)}
body.theme-v51 .skill-rank span{font:700 20px var(--c-display);color:#dfc37d}.theme-v51 .skill-rank small{color:#756c5d;font-size:7px}.theme-v51 .skill-card h3{margin:0 0 4px;font:700 15px var(--c-display);color:#e2ca96}.theme-v51 .skill-card p{margin:0 0 5px;color:#88827a;font-size:9px}.theme-v51 .skill-card>div>small{color:#6f6b65;font-size:7px}
body.theme-v51 .favor-balance{position:relative;z-index:2;min-width:150px;padding:11px 14px;border:1px solid rgba(213,175,101,.22);border-radius:10px;background:rgba(7,8,8,.78);text-align:right}.theme-v51 .favor-balance small{display:block;color:#786f61;font-size:6px;letter-spacing:.14em}.theme-v51 .favor-balance strong{font:700 19px var(--c-display);color:#e5c56f}
body.theme-v51 .favor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,275px),1fr));gap:10px}
body.theme-v51 .favor-card{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px}
body.theme-v51 .favor-glyph{width:52px;height:52px;display:grid;place-items:center;border:1px solid rgba(213,175,101,.22);border-radius:50%;background:#0a0b0a;color:#e3c275;font-size:22px;box-shadow:inset 0 0 20px rgba(198,145,45,.05)}
body.theme-v51 .favor-card h3{margin:0 0 3px;font:700 15px var(--c-display);color:#e1ca98}.theme-v51 .favor-card p{margin:0;color:#878179;font-size:8px;line-height:1.45}
body.theme-v51 .class-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:9px}.theme-v51 .class-card{padding:12px}.theme-v51 .class-card.active{border-color:rgba(213,175,101,.45);box-shadow:inset 0 0 0 1px rgba(213,175,101,.10),0 13px 30px #0006}.theme-v51 .class-card span{font:800 6px var(--c-body);letter-spacing:.14em;color:#8c7650}.theme-v51 .class-card h3{margin:3px 0;font:700 15px var(--c-display);color:#e1ca98}.theme-v51 .class-card strong{color:#68c792;font-size:9px}.theme-v51 .class-card p{color:#837d75;font-size:8px;line-height:1.5}

/* Crew */
body.theme-v51 .crew-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.45fr);gap:1px;overflow:hidden;padding:0}
body.theme-v51 .crew-hero>div{padding:22px}.theme-v51 .crew-hero>div+div{border-left:1px solid rgba(213,175,101,.12);background:rgba(7,8,8,.55)}
body.theme-v51 .crew-tag{display:inline-flex;padding:4px 7px;border:1px solid rgba(213,175,101,.24);border-radius:6px;background:#090a09;color:#e1c276;font:800 8px var(--c-body);letter-spacing:.09em}
body.theme-v51 .crew-hero h2{margin:7px 0 5px;font:700 24px var(--c-display);color:#e3cb97}.theme-v51 .crew-hero p{color:#8d867d;font-size:9px}.theme-v51 .crew-bank small{display:block;color:#786f62;font-size:7px;letter-spacing:.12em}.theme-v51 .crew-bank strong{display:block;margin:8px 0 12px;font:700 26px var(--c-condensed);color:#77cf9c}
body.theme-v51 .mini-form{display:grid;grid-template-columns:1fr auto;gap:7px}.theme-v51 .roster{display:grid;gap:5px}.theme-v51 .roster a{display:grid;grid-template-columns:82px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px;border:1px solid rgba(213,175,101,.09);border-radius:8px;background:#090a09}.theme-v51 .role{color:#b99b60;font:800 7px var(--c-body);letter-spacing:.08em}.theme-v51 .roster b{color:#d8c49d}.theme-v51 .roster em{color:#6d6963;font:normal 8px var(--c-body)}
body.theme-v51 .crew-list{display:grid;gap:7px}.theme-v51 .crew-list>article{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:11px;align-items:center;padding:11px;border:1px solid rgba(213,175,101,.12);border-radius:9px;background:#090a09}

/* Daily / Contracts */
body.theme-v51 .daily-card{position:relative;overflow:hidden;padding:22px;border:1px solid rgba(83,189,130,.20);border-radius:14px;background:linear-gradient(140deg,#0d1711,#080909);box-shadow:0 15px 38px #0006}.theme-v51 .daily-card:after{content:"";position:absolute;right:-25px;bottom:-30px;width:185px;height:145px;background:url("art/items/cash-bag.png") center/contain no-repeat;opacity:.18}.theme-v51 .calendar-stamp{position:relative;z-index:2;color:#84d5a4;font:800 8px var(--c-body);letter-spacing:.14em}.theme-v51 .daily-card>*{position:relative;z-index:2}
body.theme-v51 .contract-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));gap:10px}.theme-v51 .contract-grid>article{padding:13px;border:1px solid var(--c-line);border-radius:11px;background:linear-gradient(145deg,#12120f,#080909);box-shadow:0 11px 28px #0005}.theme-v51 .contract-grid h2,.theme-v51 .contract-grid h3{font-family:var(--c-display);color:#e1ca98}.theme-v51 .reward-line{display:flex;flex-wrap:wrap;gap:5px;margin:9px 0}.theme-v51 .reward-line span{padding:4px 6px;border:1px solid rgba(213,175,101,.12);border-radius:999px;background:#090a09;color:#a89162;font-size:7px}

/* Evidence / collections */
body.theme-v51 .collection-set{margin-bottom:24px}.theme-v51 .section-row{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:10px}.theme-v51 .section-row h2{margin:4px 0 0;font:700 20px var(--c-display);color:#e0c995}
body.theme-v51 .evidence-card{padding:12px}.theme-v51 .evidence-card.missing{opacity:.48;filter:saturate(.55)}.theme-v51 .evidence-icon{width:56px;height:50px;display:grid;place-items:center;margin-bottom:8px;border:1px solid rgba(213,175,101,.15);border-radius:8px;background:radial-gradient(circle,rgba(189,136,45,.08),transparent 60%),#090a09;color:#c6a45e;font:800 14px var(--c-display)}.theme-v51 .evidence-card h3{margin:4px 0;font:700 14px var(--c-display);color:#dfc894}.theme-v51 .evidence-card p{color:#817c74;font-size:8px;line-height:1.5}.theme-v51 .evidence-card>b{color:#78cb98;font-size:8px}

/* Profiles */
body.theme-v51 .profile-hero-v3{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:22px;align-items:center;padding:18px;border:1px solid rgba(213,175,101,.18);border-radius:14px;background:linear-gradient(135deg,#14130f,#080909);box-shadow:var(--c-shadow)}
body.theme-v51 .profile-avatar-art{max-width:300px;width:100%}.theme-v51 .profile-avatar-art .avatar-portrait{height:320px}.theme-v51 .profile-hero-v3 h1{margin:5px 0 7px;font:700 clamp(33px,5vw,58px)/1 var(--c-display);color:#e4ce9c}.theme-v51 .profile-hero-v3 p,.theme-v51 .profile-hero-v3 small{color:#89837a}.theme-v51 .profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:11px}

/* City wire / events / bosses */
body.theme-v51 .wire-list{display:grid;gap:7px}.theme-v51 .wire-card{display:grid;grid-template-columns:88px minmax(0,1fr) auto;gap:11px;align-items:center;padding:10px;border:1px solid rgba(213,175,101,.10);border-radius:9px;background:#090a09}.theme-v51 .wire-card.new{border-color:rgba(213,175,101,.26);background:linear-gradient(90deg,rgba(79,58,25,.17),#090a09 36%)}.theme-v51 .wire-type{font:800 7px var(--c-body);letter-spacing:.10em;color:#ae915b}.theme-v51 .wire-card p{margin:0;color:#d4c7b3;font-size:9px}.theme-v51 .wire-card small{color:#66625d;font-size:7px}.theme-v51 .wire-seen{color:#5f5d59;font-size:7px}
body.theme-v51 .event-strip{display:grid;gap:7px;margin:12px 0 16px}.theme-v51 .event-strip article{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px;border:1px solid rgba(213,175,101,.12);border-radius:9px;background:#090a09}.theme-v51 .live-dot{width:8px;height:8px;border-radius:50%;background:#4ec37f;box-shadow:0 0 12px #4ec37f88}.theme-v51 .event-strip strong{display:block;color:#dfc995;font:700 12px var(--c-display)}.theme-v51 .event-strip small{color:#747069;font-size:8px}.theme-v51 .event-strip b{color:#6fd09a;font:700 15px var(--c-condensed)}
body.theme-v51 .boss-card-v3{display:grid;grid-template-columns:82px minmax(0,1.1fr) minmax(200px,.8fr) auto;gap:13px;align-items:center;padding:12px;border:1px solid rgba(198,55,62,.24);border-radius:12px;background:linear-gradient(100deg,rgba(79,13,19,.26),#090a09 34%);box-shadow:0 13px 32px #0006}.theme-v51 .boss-art{width:80px;height:80px;display:grid;place-items:center;border:1px solid rgba(198,55,62,.30);border-radius:9px;background:#13090b;overflow:hidden}.theme-v51 .boss-art img{width:100%;height:100%;object-fit:contain!important}.theme-v51 .boss-card-v3 h2{margin:3px 0 5px;font:700 18px var(--c-display);color:#eccca0}.theme-v51 .boss-card-v3 p{margin:0;color:#89827a;font-size:8px}.theme-v51 .boss-health{display:grid;gap:5px}.theme-v51 .boss-health strong{font:700 13px var(--c-condensed);color:#e2c993}.theme-v51 .boss-health small{color:#756f68;font-size:7px}

/* message details + legal prose */
body.theme-v51 .message-list details{border:1px solid rgba(213,175,101,.10);border-radius:9px;background:#090a09;overflow:hidden}.theme-v51 .message-list summary{display:flex;justify-content:space-between;gap:10px;padding:10px}.theme-v51 .message-list summary div{display:flex;flex-direction:column;min-width:0}.theme-v51 .message-list summary b{color:#d9c398}.theme-v51 .message-list summary span{color:#6e6a64;font-size:8px}.theme-v51 .message-list details>p{padding:0 10px 12px;color:#aaa195;font-size:9px;line-height:1.65}
body.theme-v51 .prose-page{max-width:980px;margin:0 auto}.theme-v51 .prose-page h2{color:#dfc895;font-family:var(--c-display)}.theme-v51 .prose-page p,.theme-v51 .prose-page li{color:#918a80;line-height:1.7}

@media(max-width:760px){
  body.theme-v51 .inline-form{display:grid;grid-template-columns:1fr}.theme-v51 .inline-form>.btn{width:100%}
  body.theme-v51 .player-grid{grid-template-columns:1fr}.theme-v51 .player-card{grid-template-columns:42px minmax(0,1fr)}.theme-v51 .player-card form{grid-column:1/-1}.theme-v51 .player-card .btn{width:100%}
  body.theme-v51 .contract-list>article{grid-template-columns:58px minmax(0,1fr)}.theme-v51 .target-stamp{height:46px}.theme-v51 .contract-list>article>strong,.theme-v51 .contract-list>article>form{grid-column:2}.theme-v51 .contract-list>article>form .btn{width:100%}
  body.theme-v51 .bank-grid{grid-template-columns:1fr}
  body.theme-v51 .skill-card,body.theme-v51 .favor-card{grid-template-columns:54px minmax(0,1fr)}.theme-v51 .skill-card form,.theme-v51 .favor-card form{grid-column:1/-1}.theme-v51 .skill-card form .btn,.theme-v51 .favor-card form .btn{width:100%}
  body.theme-v51 .crew-hero{grid-template-columns:1fr}.theme-v51 .crew-hero>div+div{border-left:0;border-top:1px solid rgba(213,175,101,.12)}.theme-v51 .roster a{grid-template-columns:70px minmax(0,1fr)}.theme-v51 .roster em{grid-column:2}.theme-v51 .crew-list>article{grid-template-columns:auto minmax(0,1fr)}.theme-v51 .crew-list>article>em,.theme-v51 .crew-list>article>form{grid-column:2}.theme-v51 .crew-list>article>form .btn{width:100%}
  body.theme-v51 .section-row{align-items:flex-start;flex-direction:column}.theme-v51 .section-row form,.theme-v51 .section-row .btn{width:100%}
  body.theme-v51 .profile-hero-v3{grid-template-columns:1fr}.theme-v51 .profile-avatar-art{max-width:260px;margin:auto}
  body.theme-v51 .wire-card{grid-template-columns:72px minmax(0,1fr)}.theme-v51 .wire-card form,.theme-v51 .wire-seen{grid-column:2}.theme-v51 .wire-card form .btn{width:100%}
  body.theme-v51 .boss-card-v3{grid-template-columns:70px minmax(0,1fr)}.theme-v51 .boss-art{width:68px;height:68px}.theme-v51 .boss-health,.theme-v51 .boss-card-v3 form{grid-column:1/-1}.theme-v51 .boss-card-v3 form .btn{width:100%}
}
body.theme-v51 .favor-glyph img{width:44px;height:44px;object-fit:contain!important;filter:saturate(.95) contrast(1.04) drop-shadow(0 5px 8px #0008)}
body.theme-v51 .evidence-icon img{width:100%;height:100%;object-fit:contain!important;padding:3px}

/* 5.1 production character-base presentation: clean portraits only, no contact-sheet/mockup art. */
body.theme-v51 .character-signatures{overflow:hidden}
body.theme-v51 .signature-look-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
body.theme-v51 .signature-look-grid article{display:grid;grid-template-columns:92px minmax(0,1fr);gap:11px;align-items:center;padding:10px;border:1px solid rgba(213,175,101,.12);border-radius:10px;background:linear-gradient(145deg,#11110e,#080909)}
body.theme-v51 .signature-portrait{height:118px;display:grid;place-items:end center;overflow:hidden;border:1px solid rgba(213,175,101,.14);border-radius:8px;background:radial-gradient(circle at 50% 20%,rgba(198,145,50,.12),transparent 44%),url("art/city-showcase.jpg") center/cover}
body.theme-v51 .signature-portrait img{width:auto!important;height:128%!important;max-width:none!important;object-fit:contain!important;object-position:center bottom!important;filter:saturate(.86) contrast(1.05) drop-shadow(0 10px 12px #000b)}
body.theme-v51 .signature-look-grid b{display:block;color:#e1c995;font:700 14px var(--c-display)}
body.theme-v51 .signature-look-grid p{margin:5px 0 0;color:#847e75;font-size:8px;line-height:1.5}
@media(max-width:620px){body.theme-v51 .signature-look-grid{grid-template-columns:1fr}body.theme-v51 .signature-look-grid article{grid-template-columns:76px minmax(0,1fr)}body.theme-v51 .signature-portrait{height:100px}}
