:root{color-scheme:dark;--bg:#10151e;--panel:#182231;--muted:#acb8c9;--red:#ee5b62;--line:#354254}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 60% 0,#27364a,transparent 55%),var(--bg);font-family:Inter,system-ui,sans-serif;color:#f2f5fa;line-height:1.5}.shell{max-width:1280px;margin:auto;padding:0 26px}header{min-height:100px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}a{color:#edc878}button,input,select{font:inherit}button,.button{cursor:pointer;border:1px solid #626f82;border-radius:6px;background:#253246;color:#fff;padding:10px 16px;text-decoration:none;display:inline-block}button:hover,.button:hover{background:#39475c}button.primary,.button.primary{background:#dec28f;border-color:#dec28f;color:#191a1d;font-weight:750}button:disabled{opacity:.45;cursor:wait}button.danger{color:#ff9ca3}.logo{text-decoration:none;color:white;font-size:28px;letter-spacing:-1.5px;font-weight:900;font-style:italic}.logo span{color:var(--red)}.logo small{display:block;letter-spacing:2px;font-size:8px;font-style:normal}.account,.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.account{justify-content:flex-end;font-size:13px}nav{display:flex;gap:8px;overflow-x:auto;padding:20px 0}nav a{white-space:nowrap;text-decoration:none;color:var(--muted);padding:9px 14px;border:1px solid transparent;border-radius:8px}nav a.active{color:#fff;background:#422932;border-color:#92525a}main{min-height:65vh}h1{font-size:clamp(30px,5vw,54px);line-height:1.05;letter-spacing:-1.5px;margin:16px 0}h2{letter-spacing:-.5px}p{color:var(--muted)}.eyebrow{color:#ef9da1;font-size:11px;letter-spacing:3px;text-transform:uppercase}.hero{display:grid;grid-template-columns:1.3fr 1fr;gap:30px;padding:28px 0}.hero h1{max-width:660px}.hero p{max-width:600px}.panel{padding:24px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(140deg,#243244,#141d29);margin:18px 0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stats strong{font-size:30px;display:block;color:white}.stats span{font-size:12px;color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:22px;padding:16px 0}.tile{min-width:0}.tile>button{margin-top:12px;width:100%}.tile p{font-size:12px;margin:8px 0}.card-button{border:0;background:transparent!important;padding:0;width:100%;text-align:initial}.cq195-pending span{font-size:12px;letter-spacing:2px}.cq195-name{min-height:36px}.cq195-logo{padding-bottom:9px}.cq195-taxonomy{margin-top:8px}.toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.toolbar input{flex:1;min-width:150px}input,select{border:1px solid #69778b;border-radius:8px;background:#101a28;color:white;padding:11px;max-width:100%}label{display:block;margin:12px 0;color:#dae1ec;font-size:13px}label input:not([type=checkbox]),label select{display:block;width:100%;margin-top:5px}label.check{display:flex;align-items:start;gap:10px}.auth{max-width:430px;margin:auto}.split{display:grid;grid-template-columns:1fr 1fr;gap:24px}.badge{font-size:12px;border:1px solid #6d7888;border-radius:30px;padding:5px 10px}.empty{padding:45px;text-align:center;border:1px dashed var(--line);border-radius:12px}.pack{width:160px;max-width:100%;margin:auto;display:block;transform:rotate(-6deg);filter:drop-shadow(0 20px 24px #0008)}.pack-stage{display:grid;place-items:center;min-height:300px}.meter{height:10px;overflow:hidden;background:#3c4859;border-radius:9px;margin:18px 0}.meter progress{width:100%;height:100%;accent-color:var(--red)}.reveal{perspective:1000px}.reveal>button{transition:transform .5s}.reveal>button:hover{transform:rotateY(12deg)}.notification{border-left:3px solid var(--red)}.notification.read{border-left-color:#657286;opacity:.7}.notification p{color:white}.trade-list .panel{margin:12px 0}.trade-list h3{margin:0}.help{font-size:12px}.muted{color:var(--muted)}.error{color:#ffb7bd}.success{color:#9ee3b9}#status:not(:empty){background:#263a37;border:1px solid #597b6b;padding:12px;border-radius:8px;margin-bottom:15px;position:sticky;top:0;z-index:8}dialog{background:#152130;color:white;border:1px solid #6c7e95;border-radius:16px;max-width:680px;width:calc(100% - 24px);max-height:90vh;padding:28px;overflow:auto}dialog::backdrop{background:#03070dcc}.close{float:right;padding:0 10px;font-size:25px}.dialog-card{max-width:300px;margin:20px auto}footer{border-top:1px solid var(--line);padding:25px 0;margin-top:50px;font-size:11px;letter-spacing:.5px}footer>span{float:right}.skip{position:absolute;top:-100px}.skip:focus{top:0;background:#000;padding:15px;z-index:100}:is(a,button,input,select,textarea):focus-visible{outline:2px solid #c4cbd5;outline-offset:3px}main:focus{outline:none}.recovery{overflow-wrap:anywhere;background:#0d1420;padding:15px;font-family:monospace;font-size:16px}.offer-cards{max-height:350px;overflow:auto}.offer-cards label{border-bottom:1px solid var(--line);padding:10px}.achievement{border-left:3px solid #e5bd69}.achievement.locked{border-left-color:#5e6b7c}.pagination{display:flex;align-items:center;justify-content:center;gap:20px;margin:25px}.form-error{color:#ffb2b9}.spacer{margin-top:25px}@media(max-width:700px){.shell{padding:0 14px}.hero,.split{grid-template-columns:1fr}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.panel{padding:17px}.account{gap:6px}.account button{padding:8px;font-size:12px}.logo{font-size:22px}header{gap:10px}.stats strong{font-size:24px}footer>span{float:none;display:block}.hero{padding-top:10px}.pack-stage{min-height:240px}.toolbar{gap:7px}dialog{padding:18px}.cq195-name{min-height:32px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Fixed column counts divide the 30-card page size, avoiding premature empty slots. */
.grid{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(min-width:1400px){.grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1050px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.grid{grid-template-columns:1fr}}
h1{font-size:clamp(28px,4vw,40px)}
.pack-room,.opening{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:65vh;text-align:center;padding:24px 0}
.pack-room p,.opening p{margin:0}.pack-count{font-size:20px;font-variant-numeric:tabular-nums}
.pack-open{border:0;background:transparent!important;padding:0;width:220px;max-width:65vw;filter:drop-shadow(0 16px 24px #0007);transition:transform .2s}
.pack-open:hover:not(:disabled){transform:translateY(-5px)}.pack-open:disabled{cursor:default}
.card-back{display:block;width:100%;height:auto}.single-reveal{width:260px;max-width:70vw;perspective:1000px}
.reveal-card{display:block;transition:transform .24s,opacity .24s}
.reveal-card.put-aside{transform:translateX(130px) rotate(12deg);opacity:0}
@keyframes reveal-card{from{transform:rotateY(-90deg)}to{transform:rotateY(0)}}
@media(prefers-reduced-motion:reduce){.reveal-card{animation:none!important;transition:none!important}}
/* Carquive collector edition: graphite, brushed silver and oxblood. */
:root{--bg:#111214;--panel:#191a1d;--muted:#a5a6ac;--red:#c47e83;--line:#303136;color-scheme:dark}
body{background:radial-gradient(ellipse at 80% 0,#242529 0,transparent 48%),var(--bg);color:#eeeef0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
.shell{max-width:1320px;padding:0 36px}header{min-height:92px;border-bottom:1px solid #ffffff12}.logo{font-style:normal;font-weight:650;font-size:25px;letter-spacing:4px}.logo span{color:#d2d3d7}.logo small{font-size:8px;letter-spacing:3px;font-weight:400;color:#909198;margin-top:4px}
a{color:#d2d3d8}button,.button{border-color:#45464d;background:#24252a;border-radius:6px;padding:10px 16px;font-size:13px;font-weight:500;transition:background .18s,border-color .18s}button:hover,.button:hover{background:#323339;border-color:#777981}button.primary,.button.primary{background:#dec28f;border-color:#dec28f;color:#191a1d;font-weight:600}button.primary:hover,.button.primary:hover{background:#e3c88f;}.badge{border-color:#3c3d43;border-radius:5px;font-variant-numeric:tabular-nums}nav{gap:6px;padding:14px 0 22px}nav a{font-size:13px;border-radius:0;padding:10px 12px}nav a.active{background:transparent;border-color:transparent;border-bottom-color:#b2727a;color:#fff}h1,h2{font-weight:500}h1{letter-spacing:-1px;margin:22px 0 12px}h2{font-size:23px}.panel{background:#191a1d;border-color:#323338;border-radius:8px;box-shadow:none}.toolbar input,input,select{background:#18191c;border-color:#3d3e45;border-radius:4px;font-size:13px}.toolbar{padding:14px 0;border-top:1px solid #ffffff0b;border-bottom:1px solid #ffffff0b}.toolbar button{align-self:center}.toolbar select{min-height:42px}.grid{gap:24px;padding:20px 0}.tile>button{margin-top:0}.tile p{color:#96979e}.cq195-pending{background:radial-gradient(ellipse at 50% 100%,rgba(var(--rgb),.07),transparent 70%),linear-gradient(145deg,#26282d,#111317)}.cq195-photo{background:#1a1c20}.cq195-face{background:#15161a}.cq195-bottom{background:linear-gradient(#15171b,#101114)}.cq195-metal{box-shadow:0 0 0 1px #ffffff23 inset,0 12px 18px #0006}.cq195-card{filter:drop-shadow(0 7px 10px #0004)}.cq195-pending span{color:#a4a6ae;font-size:10px;letter-spacing:2.5px}.cq195-name{font-weight:600}.pack-room{min-height:70vh;gap:12px}.pack-room h1{font-size:17px;letter-spacing:3px;text-transform:uppercase;color:#babac1;margin:0 0 18px}.pack-open{width:230px}.pack-count{font-size:18px;letter-spacing:2px;margin-top:12px}.pack-room [data-clock]{font-size:13px}.pack-room .help{font-size:11px;color:#8d8e96}.opening{overflow:hidden}.single-reveal{width:280px}dialog{background:#1a1b1f;border-color:#4c4d55;border-radius:8px}.empty{border-color:#35363d;color:#a5a6ac}footer{display:flex;justify-content:space-between;align-items:center;gap:16px;color:#777982;font-size:10px;letter-spacing:1.5px}footer a{letter-spacing:0;font-size:12px}#status:not(:empty){position:fixed;top:auto;bottom:20px;right:24px;max-width:min(420px,calc(100vw - 48px));background:#252a28;border-color:#48564d;box-shadow:0 8px 28px #0006;font-size:13px}.hero{grid-template-columns:1.3fr 1fr;align-items:center;min-height:58vh;gap:50px;padding:44px 0}.hero h1{font-size:clamp(38px,5vw,64px);letter-spacing:-2px;line-height:1.08;max-width:650px}.hero .intro{font-size:15px;line-height:1.7;max-width:430px;margin:24px 0}.edition-label{font-size:10px;letter-spacing:3px;color:#b4b5bb;text-transform:uppercase}.hero-display{display:flex;align-items:center;justify-content:center;padding:35px;background:radial-gradient(ellipse,#34303366,transparent 67%)}.hero-display .card-back{width:220px;filter:drop-shadow(0 24px 30px #0008)}.collection-metrics{display:flex;gap:0;padding:25px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:16px 0 30px}.collection-metrics>div{flex:1;border-right:1px solid var(--line);padding:0 24px}.collection-metrics>div:first-child{padding-left:0}.collection-metrics>div:last-child{border:0}.collection-metrics strong{display:block;font-size:23px;font-weight:500;font-variant-numeric:tabular-nums}.collection-metrics span{display:block;font-size:11px;color:#999ba4;margin-top:5px}.section-line{display:flex;justify-content:space-between;align-items:center;margin-top:35px}.section-line h2{font-size:19px}.section-line a{font-size:12px}.rarity-strip{display:flex;gap:20px;flex-wrap:wrap;padding:20px 0;color:#999ba4;font-size:11px}.rarity-strip span{display:flex;align-items:center;gap:8px}.rarity-strip i{width:5px;height:5px;border-radius:50%;background:var(--dot)}
@media(max-width:700px){.shell{padding:0 18px}.hero{grid-template-columns:1fr;gap:12px;padding:28px 0}.hero-display{padding:15px}.hero-display .card-back{width:165px}.logo{font-size:19px;letter-spacing:2px}.logo small{font-size:6px;letter-spacing:2px}.account{font-size:11px}.account .button,.account button{padding:7px 9px}.grid{gap:14px}.collection-metrics{flex-wrap:wrap;gap:20px}.collection-metrics>div{flex:1 1 35%;padding:0 12px}.collection-metrics>div:nth-child(3){padding-left:0}.collection-metrics>div:nth-child(2){border:0}.hero h1{font-size:41px}.pack-room{min-height:65vh}.pack-open{width:200px}footer{flex-wrap:wrap}nav{padding-bottom:14px}.toolbar select{flex:1;min-width:135px}}
/* Keep both sides in the same footprint during a reveal. */
.single-reveal{aspect-ratio:650/960}.single-reveal>.reveal-card{height:100%}.single-reveal .card-back{height:100%;object-fit:contain}.single-reveal .cq195-card,.single-reveal .cq195-metal{height:100%}.single-reveal .cq195-face{height:100%;display:flex;flex-direction:column}.single-reveal .cq195-photo{flex:1;aspect-ratio:auto}.single-reveal .cq195-bottom{flex:none}
/* Consistent controls across Safari, Chromium and Firefox. */
button,input:not([type=checkbox]):not([type=radio]),select,.button{-webkit-appearance:none;appearance:none}
input[type=checkbox]{-webkit-appearance:checkbox;appearance:auto;width:22px;height:22px;min-width:22px;flex:0 0 22px;padding:0;margin:0;accent-color:#a56d77;cursor:pointer}
label.check{align-items:center;min-height:44px;cursor:pointer}
button,.button{background:#202125;border:1px solid #424349;border-top-color:#56575e;border-radius:6px;box-shadow:none;font-size:12px;letter-spacing:.2px}
button:hover,.button:hover{background:#292a30;border-color:#696b74}
button.primary,.button.primary{background:#dec28f;border-color:#dec28f;}
nav{gap:5px}nav a{border-radius:6px;color:#999ca7;transition:color .18s,background .18s;border:1px solid transparent}
nav a:hover{color:#f3f3f5;background:#ffffff05}nav a.active{background:linear-gradient(180deg,#2c2c32,#222228);border:1px solid #4a454d;box-shadow:inset 0 1px 0 #ffffff06;color:#fff}
.account>a.profile-shortcut{text-decoration:none}.account>a.profile-shortcut:hover{color:white}.account .badge{padding:9px 13px;border:1px solid #393a41;background:#ffffff03;font-size:11px;letter-spacing:.4px}.account .button{display:inline-flex;align-items:center;gap:8px;min-height:37px}.nav-icon{width:17px;height:17px;display:block}
.toolbar{gap:10px;padding:16px;background:#ffffff02;border:1px solid #2d2e34;border-radius:9px;margin:24px 0}
.toolbar input,.toolbar select,select{min-height:42px;box-shadow:inset 0 1px 2px #0003;background-color:#191a1e;border:1px solid #383940;border-top-color:#303138;border-radius:6px;font-size:12px;color:#d9dae1}
select{background-image:linear-gradient(45deg,transparent 50%,#999ca7 50%),linear-gradient(135deg,#999ca7 50%,transparent 50%);background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%;background-size:5px 5px;background-repeat:no-repeat;padding:11px 35px 11px 13px;cursor:pointer}
select:hover,.toolbar input:hover{border-color:#60616a}input::placeholder{color:#858892}.toolbar button{min-height:42px;padding:10px 22px}.toolbar input:focus,.toolbar select:focus{border-color:#9699a5}
.rarity-showcase{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:1050px){.rarity-showcase{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.rarity-showcase{grid-template-columns:repeat(2,minmax(0,1fr))}.toolbar{padding:12px;gap:9px}.toolbar input{flex-basis:100%}.toolbar select{min-width:0;flex:1 1 40%}.toolbar button{flex:1}.account .badge{padding:7px 9px}.account .button{min-height:33px}}
@media(max-width:360px){.rarity-showcase{grid-template-columns:1fr}}
.bulk-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0;color:#c9cbd2;font-size:12px}.bulk-bar small{color:#92949e;margin-left:auto}.card-select{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:11px;color:#aeb1bc}.card-select input{-webkit-appearance:checkbox;appearance:auto;width:16px;height:16px;padding:0;accent-color:#a56d77;cursor:pointer}.selected-tile>.card-button{outline:1px solid #b68a93;outline-offset:5px;border-radius:5px}.bulk-summary{max-height:180px;overflow:auto;color:#aaaeb8;font-size:12px;padding-left:18px}
.achievement-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.achievement-heading h2{margin:0}.achievement-heading .badge{white-space:nowrap}.achievement-claim{margin-top:18px;font-size:12px}.achievement progress{accent-color:#a26f79;max-width:70%}
.install-panel{position:fixed;bottom:max(20px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(440px,calc(100% - 28px));display:flex;align-items:flex-start;gap:14px;padding:20px;background:#202126;border:1px solid #53555f;border-radius:12px;box-shadow:0 16px 60px #0009;z-index:20}.install-panel[hidden],#install-app[hidden],#install-confirm[hidden]{display:none}.install-panel img{border-radius:10px;flex-shrink:0}.install-panel strong{font-size:14px;font-weight:550}.install-panel p{font-size:12px;line-height:1.6;margin:6px 0 14px}.install-panel button{margin-right:7px}#install-app{font-size:11px;padding:7px 12px}

/* Refined controls and compact phone navigation */
button:where(:not(.card-button):not(.pack-open)),.button{
 min-height:44px;padding:11px 19px;border:1px solid #55565f;border-radius:10px;
 background:#212226;color:#eeeef1;
 box-shadow:none;letter-spacing:.2px;
 font-weight:550;transition:background .18s,border-color .18s,box-shadow .18s;
}
button:where(:not(.card-button):not(.pack-open)):hover,.button:hover{background:#28292e;border-color:#85868e;box-shadow:none}
button.primary,.button.primary{background:#dec28f;border-color:#dec28f;color:#191a1d;box-shadow:none}
button.primary:hover,.button.primary:hover{background:#e3c88f;border-color:#e3c88f;}
button:disabled{opacity:.4;cursor:not-allowed;box-shadow:none}
button:where(:not(.card-button):not(.pack-open)):active,.button:active{box-shadow:none}
.card-button,.pack-open{box-shadow:none}
.reveal-card{position:relative}
.duplicate-badge{position:absolute;bottom:9px;left:8px;z-index:3;max-width:calc(100% - 16px);padding:5px 9px;border:1px solid #d8ba73;border-radius:7px;background:#211c12f2;color:#f3d999;font:600 11px/1.3 Inter,system-ui,sans-serif;box-shadow:0 3px 10px #0006;pointer-events:none}
.listing-timer{font-size:12px;color:#92959f}.listing-timer span{display:block;color:#e5d7b3;font-size:15px;font-weight:550;font-variant-numeric:tabular-nums}
.desktop-links{display:flex;gap:6px}.mobile-nav{display:none}
@media(max-width:700px){
 body{padding-bottom:calc(86px + env(safe-area-inset-bottom))}
 header{min-height:64px;justify-content:flex-end;border-bottom:0;padding-top:env(safe-area-inset-top)}
 header>.logo,header #account>button{display:none}
 header #account>.badge{background:#1b1c20;border:1px solid #383940;border-radius:12px;color:#e3c88f;padding:9px 14px;font-size:14px}
 header #account>a[aria-label="Notifications"]{display:flex;align-items:center;gap:7px;background:transparent;box-shadow:none;border-color:transparent;min-height:44px}
 #nav{margin:0;padding:0;overflow:visible}#nav .desktop-links{display:none}
 .mobile-nav{position:fixed;inset:auto 0 0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));z-index:30;background:#141518f5;border-top:1px solid #3b3c42;padding:8px 8px calc(8px + env(safe-area-inset-bottom));backdrop-filter:blur(18px)}
 #nav .mobile-nav>a,.mobile-nav summary{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:56px;margin:0;padding:6px 2px;border:0;border-radius:9px;background:transparent;color:#9699a4;font-size:10px;line-height:1.2;text-decoration:none;cursor:pointer;list-style:none}
 .mobile-nav svg{width:23px;height:23px}.mobile-nav summary::-webkit-details-marker{display:none}
 #nav .mobile-nav [aria-current="page"],.mobile-nav details[open]>summary{color:#dec28f;background:#ffffff06}
 .mobile-nav details{min-width:0}.mobile-nav .more-panel{position:absolute;bottom:calc(100% + 9px);right:12px;width:min(270px,calc(100vw - 24px));max-height:calc(100dvh - 165px);overflow-y:auto;background:#1b1c20;border:1px solid #42434b;border-radius:17px;padding:9px;box-shadow:0 15px 60px #0009}
 #nav .more-panel a,#nav .more-panel button{display:block;text-align:left;width:100%;padding:13px 16px;min-height:46px;color:#d4d5dc;font-size:14px;white-space:normal;background:transparent;border:0;box-shadow:none;border-radius:9px;margin:0}
 #nav .more-panel a:hover,#nav .more-panel button:hover{background:#ffffff08}
 main{padding-top:8px}.pack-room{min-height:calc(100dvh - 180px)}
 #status:not(:empty){bottom:calc(90px + env(safe-area-inset-bottom));z-index:40}
 .install-panel{bottom:calc(90px + env(safe-area-inset-bottom));z-index:40}
 dialog{max-height:calc(100dvh - 130px)}footer{margin-top:28px}
}
@media(prefers-reduced-motion:reduce){button,.button{transition:none!important}}

/* Direct card gestures: vertical scrolling stays available on phones. */
.reveal-card{touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;will-change:transform,opacity}
.reveal-card img{-webkit-user-drag:none;pointer-events:none}
.reveal-card[data-act="swipe-card"]{cursor:grab;animation:none}
.reveal-card[data-act="swipe-card"]:active{cursor:grabbing}
.single-reveal{isolation:isolate}
.opening-complete{min-height:55vh;justify-content:center}
.opening-complete h1{font-size:30px}

/* Ownership stays attached to the vehicle preview, including exchange choices. */
.cq195-photo{position:relative}
.owned-badge{position:absolute;left:8px;bottom:9px;z-index:3;max-width:calc(100% - 16px);padding:5px 9px;background:#122c24f5;border:1px solid #628f78;border-radius:7px;color:#c1e4cb;font:600 11px/1.3 Inter,system-ui,sans-serif;letter-spacing:.2px;box-shadow:0 3px 10px #0006;pointer-events:none}
dialog:has(.exchange-sides){max-width:940px}
.exchange-sides{gap:24px}.exchange-sides>section{min-width:0}
.exchange-sides h3{display:flex;justify-content:space-between;align-items:center;gap:8px}.exchange-sides h3 small{font-size:12px;color:#c9b68f}
.exchange-sides .offer-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:440px;overflow:auto;padding:4px}
.exchange-choice{position:relative;display:flex;flex-direction:column;gap:5px;margin:0;padding:10px!important;border:1px solid #42444d!important;border-radius:12px;background:#15161a;cursor:pointer;min-width:0}
.exchange-choice:has(input:checked){border-color:#c6ab79!important;background:#28231d;box-shadow:0 0 0 1px #c6ab7940}
.exchange-choice input[type="checkbox"]{align-self:flex-end;margin-bottom:5px}
.exchange-preview{display:block;pointer-events:none}.exchange-preview .cq195-card{width:100%}
.exchange-name{font-size:13px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.exchange-meta{font-size:11px;color:#a2a5af}
.new-vehicle{font-size:11px;color:#dec997}.exchange-choice[hidden]{display:none}
.exchange-summary{padding:12px 16px;background:#111215;border:1px solid #383941;border-radius:10px;margin:20px 0;font-size:12px}
.exchange-summary p{margin:7px 0}.exchange-summary .owned-warning{color:#e3c88f}
.trade-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;max-width:780px}.trade-preview .cq195-card{max-width:190px}
@media(max-width:700px){.exchange-sides{grid-template-columns:1fr}.exchange-sides .offer-cards{max-height:390px}.owned-badge{font-size:10px;padding:4px 7px}}

/* The card back turns away before its face turns into view. */
.reveal-card.is-turning-back{animation:pack-turn-back 280ms cubic-bezier(.4,0,1,1) both;pointer-events:none}
.reveal-card[data-act].is-turning-front{animation:pack-turn-front 420ms cubic-bezier(0,0,.2,1) both;pointer-events:none}
@keyframes pack-turn-back{from{transform:rotateY(0) scale(1)}to{transform:rotateY(90deg) scale(1.025)}}
@keyframes pack-turn-front{from{transform:rotateY(-90deg) scale(1.025)}to{transform:rotateY(0) scale(1)}}
.auction-leader{padding:10px 12px;border:1px solid #c9ad6850;border-radius:12px;background:#c9ad680a;overflow-wrap:anywhere}
.auction-leader>span{font-size:.85rem;color:var(--muted)}
.leader-you{display:inline-block;padding:2px 7px;border-radius:20px;background:#c9ad6820;color:#e4cc8e;font-size:.72rem}
.cq195-photo{position:relative;overflow:hidden}
.cq195-photo.has-photo{background:#111419}
.cq195-photo.has-photo>img.cq195-real-art{position:absolute;inset:28px 0 38px;width:100%;height:calc(100% - 66px);object-fit:contain;object-position:center}
.cq195-photo.has-photo:after{display:none}
.photo-credit{position:absolute;bottom:5px;left:6px;right:6px;z-index:3;text-align:left;font:8px/1.2 system-ui,sans-serif;color:#e0e3e7;text-shadow:0 1px 2px #000;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.has-photo .owned-badge,.has-photo .duplicate-badge{bottom:21px}
.market-grid{align-items:start;gap:22px}
.market-tile{padding:0;overflow:hidden;display:flex;flex-direction:column;background:transparent;border:0}
.market-tile>.card-button{display:block;width:100%;padding:0}
.market-grid .cq195-card{width:100%;aspect-ratio:650/960}
.market-grid .cq195-metal,.market-grid .cq195-face{height:100%}
.market-grid .cq195-face{display:flex;flex-direction:column}
.market-grid .cq195-photo{flex:1;aspect-ratio:auto}
.market-grid .cq195-bottom{flex:none;min-height:105px}
.market-grid .cq195-name{min-height:2.6em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Marketplace transaction area; collectible artwork stays unchanged. */
.market-caption{display:flex;flex-direction:column;gap:12px;padding:14px 3px 4px;font-variant-numeric:tabular-nums}
.market-caption-info{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:16px;font-size:10px}
.market-kind{color:#b9c2cf;font-weight:500}.market-kind.auction{color:#d6be92}
.market-owner{color:#909c99;font-size:9px}
.market-caption-price{min-width:0}
.market-price-label{display:block;color:#8f949e;font-size:10px;margin-bottom:4px}
.market-caption-price>div{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}
.market-caption-price strong{font-size:21px;line-height:1.15;letter-spacing:-.6px;font-weight:550;color:#f0f0f3}
.market-caption-price small{font-size:10px;color:#9ca1ac}
.market-caption-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:10px;border-top:1px solid #ffffff0b}
.market-time{display:flex;flex-direction:column;gap:4px;font-size:10px;color:#bcc0c9;white-space:nowrap}
.market-time small{font-size:9px;color:#818894}
.market-caption .market-action{flex:none;min-height:44px;min-width:52px;padding:8px 12px;margin:0;border:1px solid #ffffff12;border-radius:7px;background:#23272d;color:#dce1e9;font-size:11px;font-weight:600}
.market-caption .market-action.auction{background:#d6be9212;color:#dfc89e;border-color:#d6be9220}
.market-caption .market-action:hover{background:#31363e}.market-caption .market-action.auction:hover{background:#d6be9224}
.market-caption .market-action:disabled{opacity:.4;cursor:default}
.market-detail-card{width:220px;max-width:65%;margin:0 auto 20px}
.bid-history{list-style:none;padding:0;max-height:260px;overflow:auto}
.bid-history li{display:grid;grid-template-columns:1fr auto;gap:5px;padding:12px 0;border-bottom:1px solid #ffffff18}
.bid-history small{grid-column:1/-1;color:var(--muted)}
.daily-panel{max-width:850px;margin:24px auto}
.daily-prompt-intro{text-align:center;color:#dcc18a;font-size:16px;margin:8px 0 16px}
[data-daily-prompt] .daily-panel{margin:0;padding:18px}
[data-daily-prompt] .daily-cycle{grid-template-columns:repeat(4,minmax(0,1fr))}
.market-detail-heading{display:grid;grid-template-columns:110px minmax(0,1fr);gap:20px;align-items:center}
.market-detail-heading .market-detail-card{width:100%;max-width:none;margin:0}
.market-detail-heading h2{margin:0 0 8px}.market-detail-heading p{margin:7px 0;font-size:12px}
.listing-car-name{color:#f0f0f3;font-weight:600;overflow-wrap:anywhere}
[data-market-detail]>.bid-history{max-height:180px;margin-bottom:22px;padding:0 12px;border:1px solid #ffffff1a;border-radius:12px;background:#ffffff03}
[data-market-detail]>h3{font-size:16px;margin:18px 0 8px}

@media(max-width:700px){
 .mobile-nav #mobile-more .more-panel{position:fixed;left:auto;right:10px;bottom:calc(78px + env(safe-area-inset-bottom));width:min(260px,calc(100vw - 20px));max-height:calc(100dvh - 100px - env(safe-area-inset-bottom));overflow-y:auto;padding:8px;border-radius:14px;background:#141719;box-shadow:0 12px 40px #0008;border:1px solid #ffffff24}
 #nav .more-panel>a,#nav .more-panel>button{position:relative;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:9px;min-height:36px;padding:7px 8px;text-align:left;font-size:12px;line-height:1.3;background:transparent;border:0;border-radius:10px;color:#aaafb3}
 #nav .more-panel>a:hover,#nav .more-panel>a[aria-current="page"]{background:#ffffff0c;color:#fff}
 .more-icon{display:flex;color:#e2e7e8;flex-shrink:0}.more-icon svg{width:18px;height:18px}
 .menu-reward-ready{margin-left:auto;font-size:9px;background:#604f2b;color:#f6dda4;border-radius:10px;padding:3px 6px}

 #mobile-more[open]>summary svg{color:#fff}
}
.daily-cycle{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:20px 0}
.daily-cycle>div{display:flex;flex-direction:column;gap:6px;padding:15px 5px;text-align:center;border:1px solid #ffffff20;border-radius:12px}
.daily-cycle>div.current{border-color:#c9ad68;background:#c9ad6812}
.daily-cycle span,.daily-cycle small{font-size:.72rem;color:var(--muted)}
.daily-panel.daily-claimed{background:linear-gradient(135deg,#143d2b,#10271e);border-color:#4ade8070}
.daily-claim-success{display:flex;align-items:center;gap:16px;padding:18px;border-radius:16px;background:#225c3d;color:#eaffef}
.daily-claim-success>span{display:grid;place-items:center;width:64px;height:64px;flex-shrink:0;border-radius:50%;background:#4ade80;color:#083d20;font-size:46px;font-weight:800;line-height:1}
.daily-claim-success b{font-size:20px}.daily-claim-success p{margin:6px 0 0;font-size:13px}
.daily-cycle>div.claimed{background:#21583b;border-color:#4ade8080}
.daily-cycle>div.claimed span,.daily-cycle>div.claimed small{color:#c4f5d4}
.daily-cycle>div.claimed .daily-check{font-size:30px;font-weight:800;line-height:1;color:#68f59a}
.daily-claimed [data-act="daily-login"]:disabled{background:#286b46;color:#eaffef;border-color:#4ade8070;opacity:1}
@media(max-width:600px){.daily-cycle{grid-template-columns:repeat(4,minmax(0,1fr))}.market-grid{gap:14px}.market-grid .cq195-bottom{min-height:95px}}
/* Showdown uses the existing V7 palette and shared card components. */
.cq195-top .pv-badge{font-size:11px;font-weight:750;letter-spacing:.04em;background:#121315e8;color:#fff;padding:5px 7px;border:1px solid #777;border-radius:5px;margin-right:auto}
.cq195-mini .cq195-top strong{font-size:clamp(7px,4cqw,10px);padding:5px 7px 5px 4px}.cq195-top .pv-badge{white-space:nowrap;font-size:clamp(8px,4cqw,11px)}
.cq195-top{gap:6px;align-items:center}.cq195-top strong{font-size:9px}
.sd-summary,.sd-match-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.sd-summary{margin:24px 0}.sd-beta{border-left:2px solid #ad4141;padding:10px 16px;color:#c1c2c5}.sd-score{font-size:34px;white-space:nowrap}.sd-match{margin-top:20px}.sd-match-heading h2{margin:8px 0;overflow-wrap:anywhere}
.sd-cars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:20px 0}.sd-cars section{min-width:0}.sd-vehicle{max-width:280px;margin:auto}.sd-vehicle>small{display:block;overflow-wrap:anywhere;color:#aaa;font-size:10px;margin:8px 0}.sd-ratings{display:grid;grid-template-columns:1fr 1fr;gap:8px}.sd-ratings>div{display:flex;justify-content:space-between;gap:4px;border-bottom:1px solid #35363b;padding:6px 0;font-size:12px}.sd-ratings dd{margin:0;color:#fff}
.sd-focus{padding:18px 0;border-top:1px solid #3b3c41;margin-top:20px}.sd-focus-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}.sd-focus-options label{display:flex;align-items:center;gap:8px;padding:12px;border:1px solid #45464c;border-radius:8px}.sd-focus-options label:has(input:checked){background:#34363d;border-color:#ddd}.sd-focus-options input{width:18px;min-height:18px;accent-color:#ccc}.sd-locked{color:#82d4a4}.sd-results{margin-top:24px}.sd-results ol{list-style:none;padding:0}.sd-results li{display:grid;gap:6px;padding:14px 0;border-bottom:1px solid #35363b}.sd-results span,.sd-results small{color:#b6b7bc}.sd-results summary{cursor:pointer}#sd-card-preview{margin:18px auto;max-width:260px}
@media(max-width:600px){.sd-cars{gap:12px}.sd-cars h3{font-size:14px}.sd-ratings{grid-template-columns:1fr}.sd-focus-options{grid-template-columns:repeat(2,minmax(0,1fr))}.sd-score{font-size:28px}.sd-summary{gap:12px}.sd-summary button{width:100%}.sd-match{padding:16px}}
/* Showdown refinement: matte surfaces, restrained hierarchy and touch-safe controls. */
.showdown-page{max-width:1040px;margin:auto;padding-bottom:28px}.sd-page-heading{display:block;min-height:0;border:0;padding:30px 0 6px}.sd-kicker{font-size:10px;letter-spacing:.2em;color:#96999f;font-weight:500}.sd-page-heading h1{font-size:clamp(36px,6vw,56px);font-weight:450;letter-spacing:-.045em;margin:12px 0}.sd-page-heading p{font-size:14px;color:#a4a6ab}
.showdown-page .sd-summary{border-top:1px solid #ffffff12;border-bottom:1px solid #ffffff12;padding:18px 0;gap:20px;font-size:12px;color:#aeb0b6}.showdown-page .sd-beta{font-size:11px;border:0;padding:0;color:#93969c}.sd-rules{font-size:12px;color:#a2a5ac;margin:20px 0 32px}.sd-rules summary{cursor:pointer;color:#d0d2d7}.sd-rules p{max-width:700px;line-height:1.7}
.showdown-page .sd-match{background:#161719;border:1px solid #ffffff14;border-radius:16px;padding:28px;box-shadow:none}.sd-match-heading{align-items:flex-start}.sd-match-heading small{font-size:9px;letter-spacing:.16em;color:#afb0b6}.sd-match-heading h2{font-size:clamp(19px,3vw,26px);font-weight:450;letter-spacing:-.025em}.sd-match-heading p,.sd-match>p{font-size:12px;color:#92959d}.sd-score{font-weight:400;letter-spacing:-.06em;font-variant-numeric:tabular-nums;color:#e8e9ec}.sd-cars{gap:32px;padding:22px 0}.sd-cars h3{font-size:12px;font-weight:500;color:#b9bbc1;text-align:center}.sd-copy{font-size:10px;color:#83868f;margin:10px 0}.sd-copy summary{cursor:pointer}.sd-copy small{display:block;overflow-wrap:anywhere;margin-top:8px}.sd-ratings{margin:16px 0}.sd-ratings>div{font-size:11px;border-bottom-color:#ffffff0c;padding:8px 0}.sd-ratings dd{font-variant-numeric:tabular-nums;color:#dddfe5}
.sd-focus{border-top-color:#ffffff14;padding:24px 0 12px}.sd-focus h3{font-size:23px;font-weight:450;letter-spacing:-.035em;margin:7px 0 10px}.sd-focus>p{font-size:12px;line-height:1.6;color:#a3a6ad;max-width:440px}.sd-focus-options{gap:10px;margin:20px 0}.sd-focus-options label{position:relative;display:flex;align-items:center;justify-content:flex-start;gap:10px;min-width:0;min-height:52px;margin:0;padding:14px 12px;border:1px solid #36383e;background:#1c1d20;border-radius:8px;color:#d0d2d7;cursor:pointer;transition:background .15s,border-color .15s}
/* Override the generic label input width:100% rule, including Safari. */
.sd-focus-options label input[type=radio]{appearance:auto;-webkit-appearance:radio;display:block;flex:0 0 16px;width:16px;min-width:16px;max-width:16px;height:16px;min-height:16px;margin:0;padding:0;accent-color:#d5d7dd;box-shadow:none}
.sd-focus-options label span{min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.4}.sd-focus-options label:has(input:checked){background:#292b30;border-color:#b8bbc3;box-shadow:0 0 0 1px #b8bbc320}.sd-focus-options label:focus-within{outline:2px solid #d0d3dc;outline-offset:3px}
.showdown-page button:not(.card-button),dialog:has([data-form^="sd-"]) button:not(.close):not(.card-button){background:#24262a;background-image:none;box-shadow:none;text-shadow:none;border:1px solid #45474e;border-radius:7px;font-size:12px;font-weight:500;min-height:42px}.showdown-page button.primary,dialog:has([data-form^="sd-"]) button.primary{background:#e3e4e7;color:#18191c;border-color:#e3e4e7}.showdown-page button.primary:hover{background:#fff}.showdown-page button[data-act="sd-forfeit-dialog"]{border-color:transparent;background:none;color:#a28b8f;padding:8px 0;min-height:40px;font-size:11px}.sd-results{border-top:1px solid #ffffff12;padding-top:18px;font-size:12px}.sd-results summary{color:#bfc1c7}.sd-results li strong{font-weight:500}
.performance-panel{margin:24px 0;padding:20px 0;border-top:1px solid #ffffff18;border-bottom:1px solid #ffffff18}.performance-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.performance-heading h3{font-size:18px;font-weight:450;margin:0}.performance-heading>span{font-size:11px;color:#a1a5af}.performance-heading strong{font-size:20px;font-weight:450;color:#f0f1f3;margin-left:4px}.performance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;margin:22px 0}.performance-grid>div{display:grid;grid-template-columns:1fr auto;gap:7px;min-width:0}.performance-grid dt{font-size:12px;color:#bbbfc7}.performance-grid dd{margin:0;font-size:12px;color:#eee;font-variant-numeric:tabular-nums}.performance-grid dd span{color:#747984;font-size:9px;margin-left:4px}.performance-grid meter{grid-column:1/-1;display:block;width:100%;height:4px;appearance:none;background:#303238;border:0;border-radius:2px}.performance-grid meter::-webkit-meter-bar{background:#303238;border:0;border-radius:2px}.performance-grid meter::-webkit-meter-optimum-value{background:#b7bbc4;border-radius:2px}.performance-grid meter::-moz-meter-bar{background:#b7bbc4}.performance-panel .help{font-size:10px;color:#92969f;margin-bottom:0}.performance-link{font-size:11px;background:transparent;box-shadow:none;color:#b6bac4}#performance-dialog{background:#17181b;border-color:#41434a;border-radius:14px}#performance-dialog h2{text-align:center;font-size:20px;font-weight:450}.exchange-choice button.exchange-preview{margin:0;cursor:zoom-in}
@media(max-width:600px){.showdown-page .sd-match{padding:18px;border-radius:12px}.sd-page-heading{padding-top:18px}.sd-cars{gap:16px;padding:12px 0}.sd-focus-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sd-focus-options label{padding:13px 10px;gap:8px}.sd-focus-options label span{font-size:11px}.sd-focus h3{font-size:21px}.showdown-page .sd-summary{gap:14px}.sd-focus form>button.primary{width:100%}.performance-grid{gap:16px}.sd-results li span{line-height:1.7}}
/* Collector controls and notification inbox. */
#notification-popover[hidden]{display:none}#notification-popover{position:fixed;z-index:35;top:90px;right:max(18px,calc((100vw - 1248px)/2));width:min(330px,calc(100vw - 24px));max-height:min(420px,55dvh);display:flex;flex-direction:column;background:#151719f5;backdrop-filter:blur(20px);border:1px solid #393c40;border-radius:16px;box-shadow:0 24px 70px #0009;overflow:hidden;text-align:left}.notification-popover-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 13px;border-bottom:1px solid #ffffff13}.notification-popover-head h2{font-size:14px;font-weight:550;letter-spacing:0;margin:0}.notification-popover-head button{padding:4px 10px;border:0;background:none;box-shadow:none;font-size:23px;color:#9fa3ac}.notification-list{overflow:auto;overscroll-behavior:contain;min-height:0}.notification-item{display:grid;grid-template-columns:18px minmax(0,1fr);gap:9px;padding:11px 13px;border-bottom:1px solid #ffffff0c}.notification-symbol svg{width:18px;height:18px;color:#afb4bd}.notification-item a{display:block;text-decoration:none}.notification-item small{font-size:10px;text-transform:uppercase;letter-spacing:.11em;color:#9fa4ad}.notification-item p{font-size:12px;line-height:1.4;color:#e0e2e6;margin:3px 0 4px;overflow-wrap:anywhere}.notification-item time{font-size:10px;color:#818792}.notification-item.is-unread{background:#ffffff03}.notification-item.is-unread small:after{content:'';display:inline-block;width:5px;height:5px;background:#c58c93;border-radius:50%;margin-left:9px;vertical-align:middle}.notification-item.is-read p{color:#aeb3bb}.notification-actions{display:flex;gap:8px;margin-top:5px}.notification-actions button,.notification-popover-foot button{box-shadow:none;background:none;border:0;font-size:11px;padding:7px;color:#c8cbd2}.notification-popover-foot{border-top:1px solid #ffffff13;padding:3px 9px;text-align:right}.notification-empty{padding:25px;font-size:13px}.notification-bell{position:relative}.notification-bell>span{font-size:10px}
.filter-panel.toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:end;padding:20px;border:1px solid #ffffff12;border-radius:12px;background:#17181b;margin:24px 0}.filter-field{margin:0!important;min-width:0;display:block}.filter-field>span{display:block;color:#969ba6;font-size:10px;letter-spacing:.06em;margin-bottom:8px}.filter-panel .filter-field input,.filter-panel .filter-field select{margin:0;width:100%;min-width:0;min-height:42px;background-color:#1c1e22;box-shadow:none;border:1px solid #35383e;border-radius:6px;font-size:12px;color:#e1e3e8}.filter-field:has(input[name=q]){grid-column:span 2}.filter-panel button{box-shadow:none;background:#e1e3e8;color:#17191c;border:1px solid #e1e3e8;border-radius:6px;min-height:42px;align-self:end;font-weight:500}.filter-panel button.filter-reset{background:transparent;border-color:#34373d;color:#9ba1ab}
dialog:has(.performance-panel){background:#16181b;border:1px solid #3b3e45;border-radius:16px;box-shadow:0 30px 90px #0008}dialog:has(.performance-panel) button:not(.card-button):not(.close){box-shadow:none;background-image:none;border-radius:7px;font-size:12px;font-weight:500;min-height:42px;border:1px solid #42464e;background:#22252a;color:#dce0e7}dialog:has(.performance-panel) button.primary{background:#dedfe3;color:#15171a;border-color:#dedfe3}.card-detail-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0}.card-detail-actions button[data-act="list-dialog"]{grid-column:1/-1;grid-row:1}.card-detail-actions button.danger{color:#c0939a;background:transparent;border-color:#433338}.card-organize{border-top:1px solid #ffffff12;padding:18px 0;color:#a9afb9;font-size:12px}.card-organize summary{cursor:pointer}.card-organize input{background:#1c1e22;border-color:#34373d}.patch-timeline{max-width:760px;margin:32px 0}.patch-entry{border-top:1px solid #36383d;padding:26px 0}.patch-meta{display:flex;gap:18px;color:#939aa6;font-size:11px}.patch-meta span{color:#d0a5ab}.patch-entry h2{font-size:24px;font-weight:450;margin:12px 0 20px}.patch-entry ul{padding-left:18px;color:#b6bbc4;font-size:14px;line-height:1.8}.patch-entry li{margin:10px 0}.pack-results{width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin:20px 0 28px;text-align:left}.opening-complete{width:100%}.opening-complete>button.primary{min-width:180px}
@media(max-width:700px){#notification-popover{top:72px;right:12px;width:min(310px,calc(100vw - 24px));max-height:min(370px,50dvh)}.filter-panel.toolbar{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:12px}.filter-panel button{width:100%}.filter-panel .filter-field select{min-width:0}.pack-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.pack-results>button:last-child:nth-child(odd){grid-column:1/-1;width:calc(50% - 7px);justify-self:center}.notification-item{padding:10px 12px}.patch-entry h2{font-size:21px}}
header #account>button.notification-bell{display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;padding:0;min-width:44px;min-height:44px;background:transparent;box-shadow:none;border:0}
/* Collector profiles and quieter header controls */
.notification-popover-head button{font-size:18px;line-height:1;min-height:30px;min-width:30px;padding:5px}
header #account>a.profile-shortcut{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:0 0 44px;padding:0;color:#c6cad0;border:0;border-radius:50%;background:transparent}
header #account>a.profile-shortcut::before{content:"";position:absolute;inset:4px;border:1px solid #34373b;border-radius:50%;background:#191b1e;pointer-events:none}
header #account>a.profile-shortcut svg{position:relative}
.profile-shortcut svg{width:19px;height:19px}header #account>.badge.carkeys-badge{display:inline-flex;align-items:center;padding:6px 9px;font-size:12px;border-radius:8px;color:#e3c88f;background:#1b1c20;border:1px solid #383940;text-decoration:none;white-space:nowrap}
.player-profile{max-width:1000px;margin:auto}.profile-heading{display:flex;align-items:center;gap:18px;padding:24px 0}.profile-heading h1{font-size:clamp(25px,5vw,38px);margin:5px 0;overflow-wrap:anywhere}.profile-heading small{font-size:10px;letter-spacing:.16em;color:#8b909a}.profile-avatar{display:grid;place-items:center;width:60px;height:60px;flex:none;border:1px solid #383c41;border-radius:50%;background:#1b1d20}.profile-avatar svg{width:28px;height:28px;color:#cdd0d6}.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid #303338;padding:22px 0;margin:8px 0 30px}.profile-stats>div{display:grid;gap:5px;text-align:center}.profile-stats strong{font-size:26px;font-weight:500}.profile-stats span{font-size:11px;color:#949aa4;text-transform:uppercase;letter-spacing:.1em}.profile-showcase{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.showcase-empty{aspect-ratio:650/960;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;border:1px dashed #373b41;border-radius:14px;color:#666d78;background:#17191c}.showcase-empty span{font-size:30px;font-weight:300}.showcase-empty small{font-size:11px}.profile-actions{display:flex;gap:10px;flex-wrap:wrap;padding:28px 0;border-top:1px solid #303338;margin-top:28px}.profile-actions .button,.profile-actions button,.player-profile .section-line button{display:inline-flex;align-items:center;justify-content:center;text-align:center;gap:8px;background:#212226;border:1px solid #55565f;border-radius:6px;box-shadow:none;color:#eeeef1;font-size:12px;font-weight:500;line-height:1.4;letter-spacing:.2px;min-height:44px;padding:8px 13px;text-decoration:none}.friend-row .button{background:#202328;border:1px solid #3b4048;box-shadow:none;color:#dce0e6;font-size:12px;padding:10px 14px}.profile-actions .profile-remove{color:#bb9398;margin-left:auto}.friend-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid #303338}.friend-row strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}#showcase-options{max-height:42vh;overflow:auto;margin:14px 0}.showcase-choice{display:flex;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #303338}.showcase-choice input[type=checkbox]{width:18px;height:18px;flex:0 0 18px}.showcase-choice small{display:block;color:#9299a4;margin-top:4px;font-size:10px}.single-reveal{contain:layout style}.single-reveal .cq195-real-art{content-visibility:visible}
@media(max-width:700px){.profile-showcase{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.profile-actions .profile-remove{margin-left:0}.profile-heading{padding-top:12px}.profile-stats{padding:17px 0}.profile-stats strong{font-size:23px}}
/* Friends: names lead, actions stay secondary. */
main:has([data-form="friend-request"])>section{margin:28px 0}
main:has([data-form="friend-request"])>section>h2{font-size:18px;font-weight:550;margin:0 0 14px;color:#d8dce2}
[data-form="friend-request"]{padding:14px;background:#17191c;border:1px solid #30343a;border-radius:12px;gap:10px}
[data-form="friend-request"] input{font-size:14px;min-height:42px;background:#121417;border-color:#353a42}
[data-form="friend-request"] button{font-size:12px;padding:10px 14px;min-height:42px;background:#dedfe2;color:#151719;border-color:#dedfe2;box-shadow:none;flex:none}
[data-form="friend-request"] .form-error:empty{display:none}
.friend-row{min-height:78px;padding:17px 20px;margin:10px 0;border:1px solid #30343a;border-radius:12px;background:#191b1e;gap:20px}
.friend-row strong{font-size:19px;font-weight:550;line-height:1.35;min-width:0;letter-spacing:-.2px}
.friend-row .button{flex:0 0 auto;white-space:nowrap;font-size:11px;font-weight:500;line-height:1.3;padding:9px 12px;min-height:36px;background:transparent;color:#b9bfc9;border-color:#3c4149;border-radius:8px;box-shadow:none}
.friend-row .button:hover{background:#24272c;color:#fff}
main:has([data-form="friend-request"]) .panel h2{font-size:19px;font-weight:550}
main:has([data-form="friend-request"]) .panel .button,main:has([data-form="friend-request"]) .panel button{font-size:12px;padding:9px 12px;box-shadow:none}
@media(max-width:700px){.friend-row{padding:16px;gap:12px;min-height:76px}.friend-row strong{font-size:18px}.friend-row .button{width:auto;min-height:40px;padding:10px;font-size:11px}[data-form="friend-request"]{flex-wrap:wrap}[data-form="friend-request"] input{min-width:140px}}
/* Fit the idle Packs screen around its header, footer and mobile navigation. */
.shell:has(#main>.pack-room){display:flex;flex-direction:column;min-height:100dvh}
.shell:has(#main>.pack-room)>header,.shell:has(#main>.pack-room)>nav{flex-shrink:0}
/* Carry the Packs flex layout through the fresh-data status wrapper. */
.view-shell:has(>#main>.pack-room){display:flex;flex-direction:column;flex:1;min-height:0}
#main:has(>.pack-room){min-height:0;flex:1;display:flex;padding-top:0}
#main>.pack-room{min-height:0;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px 0}
#main>.pack-room h1{margin:0 0 8px}
#main>.pack-room p,#main>.pack-room .pack-count{margin:0}
#main>.pack-room .pack-open{width:min(210px,25dvh)}
.shell:has(#main>.pack-room)>footer{margin-top:0;padding:10px 0;gap:8px;flex-shrink:0}
.shell:has(#main>.pack-room)>footer #install-app{padding:6px 9px;font-size:11px}
@media(max-width:700px){.shell:has(#main>.pack-room){min-height:calc(100dvh - 86px - env(safe-area-inset-bottom))}.shell:has(#main>.pack-room)>footer{font-size:8px;letter-spacing:.8px}.shell:has(#main>.pack-room)>footer a{font-size:10px}#main>.pack-room{gap:7px;padding:8px 0}#main>.pack-room .pack-open{width:min(200px,25dvh)}}
.pack-storage{display:flex;align-items:center;gap:12px}.refill-shop{max-width:420px;margin:8px auto}.refill-shop>small{font-size:9px;letter-spacing:.16em;color:#969ca5}.refill-shop h2{font-size:27px;margin:12px 0 6px}.refill-shop>p{font-size:13px}.refill-balance{display:flex;justify-content:space-between;gap:12px;padding:15px 0;font-size:12px;border-bottom:1px solid #363a40;color:#d0d4dc}.refill-options{display:grid;gap:9px;margin:18px 0}.refill-options button{display:flex;align-items:center;justify-content:space-between;text-align:left;padding:16px;background:#202327;border:1px solid #414650;border-radius:9px;box-shadow:none}.refill-options strong{font-size:15px;font-weight:500}.refill-options small{display:block;font-size:10px;color:#939aa6;font-weight:400;margin-top:4px}.refill-options b{text-align:right;font-size:18px;font-weight:500}.refill-options button:disabled{opacity:.4;cursor:not-allowed}.refill-shop .refill-total{font-size:32px;color:#e9ebef}.refill-total span{font-size:13px;color:#9fa5af}.refill-shop .primary{background:#dbdee3;color:#17191c;border-color:#dbdee3;box-shadow:none}
/* Center the counter under the pack; the shop is a quiet text action below the timer. */
#main .pack-storage{position:relative;display:flex;justify-content:center;align-items:center;width:min(210px,25dvh);min-height:36px;gap:0}
#dialog:has(.refill-shop){max-width:420px;padding:24px;background:#181a1d;border:1px solid #3b3f45;border-radius:14px}
#dialog .refill-shop{margin:2px 0}.refill-shop h2{font-size:23px;font-weight:500;letter-spacing:-.5px}
#dialog .refill-options{display:block;margin:8px 0 16px}
.refill-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 0;border-bottom:1px solid #ffffff0c}
.refill-row>div{min-width:0}.refill-row strong{display:block;font-size:14px;font-weight:500;color:#e0e3e8}.refill-price{display:block;font-size:11px;color:#a2a8b2;margin-top:4px}.refill-row small{font-size:10px;color:#797f89;margin-top:4px}
#dialog .refill-row button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:auto;min-width:82px;min-height:36px;padding:8px 12px;border:1px solid #464b54;border-radius:5px;background:transparent;box-shadow:none;color:#d5d9e0;font-size:10px;font-weight:500;letter-spacing:.07em;text-align:center}
#dialog .refill-row button:hover:not(:disabled){background:#25282d;border-color:#7b838e}
#dialog .refill-row button:disabled{opacity:.32;cursor:not-allowed}
#dialog .refill-shop button.primary{background:#d9dce1;border-color:#d9dce1;box-shadow:none;color:#16181b}
@media(max-width:700px){#main .pack-storage{width:min(200px,25dvh)}#dialog:has(.refill-shop){padding:20px}}


/* Club pages: scoped V7 graphite surfaces, restrained typography and silver controls. */
#main .club-page{max-width:1040px;margin:36px auto 70px;color:#e0e3e8}
#main .club-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:32px}
#main .club-eyebrow{display:block;font-size:9px;letter-spacing:.18em;font-weight:500;color:#939aa5}
#main .club-heading h1{font-size:clamp(28px,4vw,40px);font-weight:450;letter-spacing:-1.2px;line-height:1.15;margin:12px 0}
#main .club-heading p{font-size:13px;color:#9da4ae;margin:0;line-height:1.65}
#main .club-page .club-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:10px 15px;border:1px solid #41464e;border-radius:6px;background:#202328;background-image:none;box-shadow:none;color:#d5dae2;font-size:11px;line-height:1.4;font-weight:500;letter-spacing:.02em;text-decoration:none;white-space:normal}
#main .club-page .club-button:hover:not(:disabled){background:#2a2e34;border-color:#79818e;box-shadow:none;color:#fff}
#main .club-page .club-button:disabled{opacity:1;background:#212429;border-color:#343941;color:#858d99;cursor:not-allowed}
#main .club-page svg{width:16px;height:16px;flex:none;display:block}
#main .club-page .club-refresh{flex:none;background:transparent;color:#a8b0bb}
#main .club-stats{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #33373d;border-radius:10px;background:#17191c;padding:24px 0;margin-bottom:38px}
#main .club-stats>div{padding:0 28px;border-right:1px solid #30343a;display:grid;gap:10px}
#main .club-stats>div:last-child{border:0}
#main .club-stats span{font-size:10px;color:#969eaa;letter-spacing:.03em}
#main .club-stats strong{font-size:30px;font-weight:400;letter-spacing:-1px;font-variant-numeric:tabular-nums;line-height:1.2}
#main .club-section-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px}
#main .club-section-title h2{font-size:16px;font-weight:500;margin:0;letter-spacing:-.2px}
#main .club-section-title>span{font-size:9px;letter-spacing:.15em;color:#8b939f}
#main .collector-table-wrap{overflow-x:auto;border:1px solid #33373d;border-radius:10px;background:#17191c}
#main .collector-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}
#main .collector-table caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#main .collector-table thead{background:#1d2024;color:#939ca9;font-size:9px;letter-spacing:.1em;text-transform:uppercase}
#main .collector-table td,#main .collector-table th{padding:18px 24px;border-bottom:1px solid #2c3036;font-weight:400}
#main .collector-table tbody tr:last-child>*{border-bottom:0}
#main .collector-table tbody tr:hover{background:#ffffff03}
#main .collector-table td:first-child{width:90px;color:#949eac;font-variant-numeric:tabular-nums}
#main .collector-table td:last-child,#main .collector-table thead th:last-child{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
#main .collector-table td:last-child{font-size:17px;font-weight:450}
#main .collector-player{display:flex;align-items:center;gap:14px;color:#e0e3e8;text-decoration:none;min-width:0}
#main .collector-player>span:nth-child(2){min-width:0}
#main .collector-player>svg{margin-left:auto;color:#747e8c}
#main .collector-player:hover .collector-name{color:#fff;text-decoration:underline;text-underline-offset:4px}
#main .collector-avatar{display:grid;place-items:center;width:36px;height:36px;flex:none;border:1px solid #41474f;border-radius:50%;background:#21252a;color:#bcc4cf;font-size:12px}
#main .collector-name{display:flex;align-items:center;gap:9px;overflow-wrap:anywhere;font-size:14px;font-weight:500}
#main .collector-player small{display:block;color:#929ba8;font-size:10px;margin-top:4px;overflow-wrap:anywhere}
#main .collector-you{background:#b9c7da08;box-shadow:inset 2px 0 #a7b2c1}
#main .collector-you-label{font-size:8px;letter-spacing:.08em;font-weight:500;border:1px solid #4b535f;border-radius:3px;padding:2px 5px;color:#b3bdcc}
#main .club-footnote{font-size:11px;color:#8d96a3;line-height:1.7;margin:18px 0}
#main .club-empty{padding:40px;border:1px solid #33373d;border-radius:10px;background:#17191c}
#main .club-empty h2{font-size:20px}#main .club-empty p{font-size:13px}
#main .weekly-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 0;margin-bottom:22px;border-block:1px solid #33373d;font-size:11px}
#main .weekly-difficulty{color:#d4dae3;font-weight:500}.weekly-difficulty>span{color:#8e98a6;font-size:9px;letter-spacing:.1em;margin-left:8px}
#main .weekly-deadline{font-size:10px;color:#929cab}.weekly-deadline [data-ends-at]{font-variant-numeric:tabular-nums;color:#c1cad6;margin-left:6px}
#main .weekly-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;align-items:start}
#main .weekly-card,#main .weekly-reward{background:#17191c;border:1px solid #33373d;border-radius:10px;overflow:hidden;margin:0}
#main .weekly-card-heading{padding:26px 28px;border-bottom:1px solid #30343a}
#main .weekly-card-heading h2{font-size:25px;font-weight:450;letter-spacing:-.6px;margin:9px 0}
#main .weekly-card-heading p{font-size:12px;color:#939daa;margin:0}
#main .weekly-requirements{padding:0 28px;list-style:none;margin:0}
#main .weekly-requirements li{display:flex;gap:18px;padding:25px 0;border-bottom:1px solid #30343a}
#main .weekly-requirements li:last-child{border:0}
#main .weekly-step{display:grid;place-items:center;align-self:start;width:30px;height:30px;flex:none;border:1px solid #3d444f;border-radius:50%;color:#8793a3;font-size:10px;font-variant-numeric:tabular-nums}
#main .is-complete .weekly-step{color:#d2dce9;border-color:#738091;background:#abbad20d}
#main .weekly-goal{flex:1;min-width:0}.weekly-goal-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
#main .weekly-goal-heading h3{font-size:13px;font-weight:500;line-height:1.5;letter-spacing:0;margin:3px 0 14px}
#main .weekly-goal-heading>span{font-size:12px;color:#d2dae6;white-space:nowrap;font-variant-numeric:tabular-nums}.weekly-goal-heading small{color:#7e8a9b;font-size:10px}
#main .weekly-requirements progress{display:block;width:100%;height:3px;appearance:none;border:0;border-radius:2px;overflow:hidden;background:#2c333c;color:#acb9ca;accent-color:#acb9ca}
#main .weekly-requirements progress::-webkit-progress-bar{background:#2c333c;border-radius:2px}#main .weekly-requirements progress::-webkit-progress-value{background:#acb9ca;border-radius:2px}#main .weekly-requirements progress::-moz-progress-bar{background:#acb9ca}
#main .weekly-goal-link{display:inline-flex;align-items:center;gap:7px;color:#9eaabc;font-size:10px;text-decoration:none;margin-top:14px;min-height:24px}
#main .weekly-goal-link:hover{color:#e0e7f2}#main .weekly-goal-link svg{width:13px;height:13px}
#main .weekly-reward{padding:26px 24px;text-align:center}
#main .weekly-payout{margin:28px 0;color:#c6ceda}.weekly-payout strong{display:block;font-size:62px;line-height:1;font-weight:350;letter-spacing:-3px;font-variant-numeric:tabular-nums}.weekly-payout>span{display:block;font-size:11px;letter-spacing:.12em;text-transform:uppercase;margin-top:12px;color:#929eae}
#main .weekly-completion{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #303740;padding:20px 0;font-size:10px;color:#929eae}.weekly-completion strong{font-size:11px;font-weight:500;color:#d3dce8}
#main .club-page .club-claim{width:100%;min-height:44px;background:#d7dde6;color:#161a20;border-color:#d7dde6;font-size:11px}
#main .club-page .club-claim:hover:not(:disabled){background:#edf1f6;border-color:#edf1f6;color:#101318}
#main .club-page .club-claim:disabled{background:#242a32;border-color:#3c4552;color:#9da9ba}
#main .weekly-reward-note{font-size:10px;line-height:1.8;color:#8995a6;margin:16px 0 0}
#main .club-rules{margin:24px 0;border-bottom:1px solid #333a43;padding-bottom:18px;color:#939fae;font-size:11px}
#main .club-rules summary{cursor:pointer;color:#aab5c4;min-height:28px}#main .club-rules p{line-height:1.8;max-width:760px;color:#939fae}
@media(max-width:700px){#main .club-page{margin:22px auto 36px}#main .club-heading{align-items:flex-start;gap:14px;margin-bottom:24px}#main .club-heading h1{font-size:29px}#main .club-heading p{font-size:12px}#main .club-page .club-refresh{padding:10px;min-width:38px}#main .club-refresh span{display:none}#main .club-stats{padding:20px 0;margin-bottom:28px}#main .club-stats>div{padding:0 14px}#main .club-stats span{font-size:9px;line-height:1.5}#main .club-stats strong{font-size:25px}#main .weekly-layout{grid-template-columns:1fr;gap:16px}#main .weekly-card-heading{padding:22px}#main .weekly-requirements{padding:0 22px}#main .weekly-requirements li{gap:12px;padding:22px 0}#main .weekly-reward{padding:24px}#main .weekly-payout{margin:22px 0}.weekly-payout strong{font-size:52px}#main .weekly-banner{align-items:flex-start;flex-direction:column;gap:9px;padding:14px 0}#main .collector-table td,#main .collector-table th{padding:16px 12px}#main .collector-table td:first-child{width:48px;font-size:11px}#main .collector-avatar{display:none}#main .collector-name{font-size:12px;flex-wrap:wrap;gap:5px}#main .collector-player{gap:8px}#main .collector-player>svg{display:none}#main .collector-table td:last-child{font-size:15px}#main .collector-table thead{font-size:8px;letter-spacing:.04em}}

/* Premium collector system — final shared layer.
   Keep card geometry and reveal mechanics intact; unify the surrounding product. */
:root{
 --bg:#111214;--panel:#191b1e;--muted:#a9adb5;--red:#b98087;--line:#34373c;
 --surface-raised:#202327;--surface-hover:#282c31;--text:#f0efec;
 --text-secondary:#c2c5cb;--accent:#8b4e58;--accent-hover:#a05d68;
 --radius-sm:6px;--radius:12px;--space:8px;
}
html{scroll-padding-block:24px;scrollbar-color:#50545d #17191c}
body{background:var(--bg);color:var(--text);text-rendering:optimizeLegibility}
.shell{max-width:1320px}
.shell>header{border-bottom-color:var(--line)}
main{padding-bottom:24px}
h1{font-size:clamp(28px,3.6vw,42px);font-weight:500;line-height:1.15;letter-spacing:-.035em}
h2{font-weight:500;line-height:1.3;letter-spacing:-.025em}
h3{line-height:1.4}p{line-height:1.7}
a{color:var(--text-secondary);text-underline-offset:4px}
a:hover{color:var(--text)}
.eyebrow,.club-eyebrow{color:var(--muted);letter-spacing:.16em}
button:where(:not(.card-button):not(.pack-open)),.button{
 background:#212226;border:1px solid #55565f;border-radius:6px;
 box-shadow:none;color:#eeeef1;font-size:12px;font-weight:550;line-height:1.4;
 min-height:40px;padding:8px 13px;letter-spacing:.2px;
 transition:background-color .16s,border-color .16s,color .16s;
}
button:where(:not(.card-button):not(.pack-open):hover:not(:disabled)),.button:hover{
 background:#28292e;border-color:#85868e;box-shadow:none;
}
button:disabled{opacity:.48;cursor:not-allowed;box-shadow:none}
button.danger{color:#e0a8b0;border-color:#68444b;background:transparent}
input,select,textarea,.toolbar input,.toolbar select{
 background-color:#17191c;color:var(--text);border:1px solid #484d55;border-radius:var(--radius-sm);
 box-shadow:none;font:inherit;font-size:13px;min-height:44px;
}
textarea{display:block;width:100%;padding:12px;resize:vertical;line-height:1.6}
input::placeholder,textarea::placeholder{color:#a0a5ae;opacity:1}
label{color:var(--text-secondary)}
:is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid #e4e2df;outline-offset:4px}
input[type=checkbox]{accent-color:var(--accent)}
.panel,.empty,.friend-row,.filter-panel.toolbar{
 background:var(--panel);border-color:var(--line);border-radius:var(--radius);box-shadow:none;
}
.panel{padding:24px;margin:20px 0}.empty{padding:40px 24px;color:var(--muted)}
.toolbar,.filter-panel.toolbar{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);gap:14px}
.filter-field>span{color:var(--muted);font-size:11px;letter-spacing:.025em}
.filter-panel .filter-field input,.filter-panel .filter-field select{min-height:44px;border-color:#484d55;background-color:#17191c}
.filter-panel button{background:#dededb;color:#191b1e;border-color:#dededb}
.filter-panel button.filter-reset{background:transparent;color:var(--text-secondary);border-color:#484d55}
nav a.active{background:var(--surface-raised);border-color:#55545b;box-shadow:none;color:var(--text)}
nav a:hover{background:var(--surface-raised)}
.tile p,.help,.club-footnote{color:var(--muted)}
.badge{background:var(--surface-raised);border-color:#464b53;border-radius:5px;color:var(--text-secondary)}
.stats strong,.collection-metrics strong,.profile-stats strong{font-weight:450;font-variant-numeric:tabular-nums;letter-spacing:-.03em}
.collection-metrics span,.profile-stats span{color:var(--muted)}
.collection-metrics{padding-block:24px;border-color:var(--line)}
.section-line{gap:16px;flex-wrap:wrap;margin-top:32px}.section-line h2{margin-block:8px}
.rarity-strip{gap:14px 22px;color:var(--muted)}
.owned-badge,.duplicate-badge{box-shadow:none;font-weight:500;font-size:10px;border-radius:4px;padding:4px 7px}
.owned-badge{background:#1b2a25f5;border-color:#648372;color:#d3e3da}
.duplicate-badge{background:#302c24f5;border-color:#897e65;color:#e4ddcb}
.cq195-card{filter:drop-shadow(0 5px 8px #0003)}
.cq195-metal{box-shadow:0 0 0 1px #ffffff20 inset,0 8px 14px #0004}
.cq195-pending{background:linear-gradient(145deg,#25282d,#15171a)}
.cq195-bottom{background:#15171a}
.cq195-pending span{color:#b8bdc5;font-weight:500;letter-spacing:.12em}
.cq195-name{line-height:1.25;font-weight:600;text-shadow:none}
.cq195-top strong{font-weight:650;letter-spacing:.045em}
.cq195-top b{font-weight:600}
.cq195-photo.image-unavailable .photo-credit{display:none}
.cq195-photo.image-unavailable{background:#1c1f23}
#status:not(:empty){background:#222b27;border-color:#536b5d;color:#e2e8e3;box-shadow:0 5px 20px #0003}
dialog,dialog:has(.performance-panel){background:var(--panel);border:1px solid #50565f;border-radius:14px;box-shadow:0 24px 80px #0006}
dialog::backdrop{background:#080a0dc9;backdrop-filter:blur(4px)}
.recovery{border:1px solid #59545a;border-left:3px solid var(--red);border-radius:6px;background:#151719;line-height:1.7;padding:18px}
.recovery-notice{padding:18px;border:1px solid #655058;border-radius:var(--radius);background:#221d20}
.profile-avatar,.showcase-empty{background:var(--panel);border-color:#444951}
.profile-actions .button,.profile-actions button,.friend-row .button{min-height:44px;border-radius:6px}
.profile-collection-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:24px 0;border-block:1px solid var(--line)}
.profile-collection-summary strong{display:block;font-size:28px;font-weight:450;font-variant-numeric:tabular-nums}
.profile-collection-summary span{font-size:12px;color:var(--muted)}
.album-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:18px;margin:24px 0}
.album-card{min-width:0;padding:24px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius)}
.album-card h2,.album-card h3{font-size:19px;margin:0 0 8px}.album-card p{font-size:12px;margin:8px 0 18px}
.album-card a{text-decoration:none}.album-card a:hover{text-decoration:underline}
.album-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--text-secondary);font-variant-numeric:tabular-nums}
.album-card progress,.album-progress progress{display:block;width:100%;height:4px;margin:14px 0;accent-color:#bdc1c9}
.album-missing{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:160px;gap:12px;padding:24px 14px;border:1px dashed #4c515a;border-radius:8px;color:var(--muted);background:#17191c;text-align:center}
.album-missing svg{width:70%;height:48px;color:#656c76}.album-missing h3{font-size:13px;margin:0}.album-missing small{font-size:11px}
.history-summary{display:flex;flex-wrap:wrap;gap:16px;padding:20px 0;border-block:1px solid var(--line);margin:20px 0;font-variant-numeric:tabular-nums}
.history-summary>div{flex:1;min-width:130px}.history-summary strong{display:block;font-size:25px;font-weight:450}.history-summary span{color:var(--muted);font-size:12px}
.ledger-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px;font-variant-numeric:tabular-nums}
.ledger-table th{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:500}
.ledger-table th,.ledger-table td{padding:16px 12px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.ledger-table th:last-child,.ledger-table td:last-child{text-align:right}
.onboarding{padding:10px 0;border:0;border-block:1px solid var(--line);border-radius:0;background:transparent;margin:12px 0}
.onboarding h2{margin:0;font-size:13px;font-weight:500}.onboarding p{font-size:13px}
.onboarding-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;list-style:none;padding:0;margin:4px 0 0}
.onboarding-steps>li{padding:0;border:0;border-radius:0;min-width:0}
.onboarding-steps strong{display:block;font-size:13px;margin-bottom:6px}.onboarding-steps p{font-size:12px}
.onboarding-steps .is-complete{color:#a9c6b5;background:transparent}
.onboarding-steps .button{width:100%;margin-top:10px;text-align:center}
footer{display:flex;align-items:center;flex-wrap:wrap;gap:14px 24px;padding-block:24px;margin-top:48px;border-color:var(--line);color:var(--muted)}
footer>span{float:none;margin-right:auto}footer a{font-size:11px}
@media(max-width:700px){
 .shell{padding-inline:18px}.shell>header{border-bottom:0}main{padding-bottom:16px}
 h1{font-size:30px}.panel{padding:20px}.album-card{padding:20px}
 .filter-panel.toolbar{gap:12px;padding:16px}.grid{gap:16px 12px}
 .profile-collection-summary{gap:12px}.profile-collection-summary strong{font-size:24px}
 .profile-collection-summary span{font-size:11px}
 .onboarding-steps{grid-template-columns:repeat(3,minmax(0,1fr))}.onboarding-steps>li{padding:0}
 .ledger-table{font-size:11px}.ledger-table th,.ledger-table td{padding:14px 6px}
 .ledger-table th{font-size:9px;letter-spacing:.03em}
 footer{gap:12px 18px;margin-top:32px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
@media(forced-colors:active){button,.button,.panel,.album-card{border:1px solid ButtonText}.cq195-metal{border:2px solid CanvasText}.owned-badge,.duplicate-badge{border:1px solid CanvasText}.album-card progress{forced-color-adjust:auto}}

/* Browse controls: search stays close to the collection; refinements open on demand. */
.browse-toolbar{display:flex;align-items:center;gap:12px;margin:24px 0 12px}
.browse-toolbar input[type=search],.browse-toolbar input[name=q]{flex:1;min-width:0;width:auto;padding:12px 14px}
.browse-toolbar button{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}
.browse-toolbar button svg{width:16px;height:16px}
.active-filters{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.active-filters:empty{display:none}
.active-filters .filter-chip{display:inline-flex;align-items:center;justify-content:center;gap:9px;max-width:100%;min-height:36px;padding:7px 11px;border:1px solid #4b4650;border-radius:5px;background:#272329;color:#e0d7dc;font-size:11px;overflow-wrap:anywhere;white-space:normal}
.active-filters .filter-chip:hover{background:#342c33;border-color:#9b7b8c}
.active-filters .filter-chip svg{width:12px;height:12px;flex:none}
.active-filters .filter-reset,.active-filters [data-act=clear-filters]{background:transparent;border-color:transparent;color:var(--muted);min-height:36px;padding:7px 10px;font-size:11px;text-decoration:underline;text-underline-offset:4px}
#filter-dialog{width:min(520px,calc(100% - 32px));max-width:520px;padding:28px;max-height:calc(100dvh - 48px);overscroll-behavior:contain}
#filter-dialog .close{min-width:44px;min-height:44px;margin:-10px -10px 0 8px;background:transparent;border-color:transparent;box-shadow:none;font-size:24px}
.filter-sheet h2{margin:0 0 8px;font-size:24px}.filter-sheet>p{margin:0 0 24px;font-size:12px;color:var(--muted)}
.filter-sheet form,.filter-sheet .filter-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;min-width:0;width:100%}
.filter-sheet label{margin:0;min-width:0;color:var(--text-secondary);font-size:12px}
.filter-sheet label input,.filter-sheet label select{width:100%;max-width:100%;box-sizing:border-box;margin-top:6px;min-width:0}
.filter-sheet .filter-actions,.filter-sheet .form-actions{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px;padding-top:20px;margin-top:4px;border-top:1px solid var(--line)}
.filter-sheet form>button{margin-top:8px}
.filter-sheet .filter-actions .primary,.filter-sheet .form-actions .primary{min-width:140px}
@media(max-width:700px){
 .browse-toolbar{gap:8px;margin-top:20px}.browse-toolbar button{padding-inline:12px;font-size:11px}
 .browse-toolbar input[type=search],.browse-toolbar input[name=q]{font-size:16px;padding-inline:12px}
 .active-filters{gap:6px;margin-bottom:16px}.active-filters .filter-chip{min-height:40px;padding:8px 10px}
 #filter-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:calc(100dvh - 48px);border-radius:18px 18px 0 0;padding:24px 20px calc(24px + env(safe-area-inset-bottom));border-bottom:0}
 .filter-sheet h2{font-size:22px}.filter-sheet form,.filter-sheet .filter-fields{gap:18px 12px}
 .filter-sheet .filter-actions,.filter-sheet .form-actions{position:sticky;bottom:0;background:var(--panel);padding-top:18px}
 .filter-sheet .filter-actions button,.filter-sheet .form-actions button{flex:1}
}
@media(max-width:360px){.filter-sheet form,.filter-sheet .filter-fields{grid-template-columns:1fr}.browse-toolbar button{padding-inline:9px}}

/* Complete button state audit. Visual size stays compact; hit areas stay usable. */
button.primary:where(:not(.card-button):not(.pack-open)){background:#dec28f;border-color:#dec28f;color:#191a1d;box-shadow:none}
button.primary:where(:not(.card-button):not(.pack-open):hover:not(:disabled)){background:#e3c88f;border-color:#e3c88f;}

button:where(:not(.card-button):not(.pack-open)):active:not(:disabled),.button:active:not([aria-disabled=true]){box-shadow:none}
button:where(:not(.card-button):not(.pack-open)):disabled,button:where(:not(.card-button):not(.pack-open))[aria-disabled=true],.button[aria-disabled=true]{cursor:not-allowed;box-shadow:none;opacity:.4}
button[aria-busy=true],.button[aria-busy=true]{cursor:progress;position:relative}
button[aria-busy=true]::after,.button[aria-busy=true]::after{content:'';display:inline-block;vertical-align:middle;width:12px;height:12px;margin-left:9px;border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;animation:control-busy .8s linear infinite}
@keyframes control-busy{to{transform:rotate(360deg)}}
button.card-button:focus-visible,button.pack-open:focus-visible{outline:2px solid #e4e2df;outline-offset:5px;border-radius:8px}
button.card-button:disabled,button.pack-open:disabled{cursor:not-allowed}
#dialog .refill-row button,.notification-popover-head button,.notification-actions button,.notification-popover-foot button,#main .club-page .club-button,.friend-row .button{min-height:44px;box-shadow:none}
.notification-popover-head button{min-width:44px;border-radius:6px}
#dialog .refill-row button:active:not(:disabled),#main .club-page .club-button:active:not(:disabled),.friend-row .button:active{box-shadow:none}
#dialog .refill-row button:disabled{color:#a7abb3;border-color:#43474e;background:#24272c;opacity:.6}
.album-silhouette{display:block;width:min(80%,180px);height:72px;margin:12px auto;color:#737b87;fill:currentColor;opacity:.7}
.album-silhouette svg{display:block;width:100%;height:100%;fill:currentColor}
.table-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.table-scroll:focus-visible{outline:2px solid #e4e2df;outline-offset:4px}
.ledger-table small{display:block;color:var(--muted);font-size:11px;line-height:1.6;margin-top:4px}
@media(prefers-reduced-motion:reduce){button[aria-busy=true]::after,.button[aria-busy=true]::after{animation:none}}

/* Utility semantics and stable loading states. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.album-cover{display:block;min-height:46px;color:var(--muted);font-size:10px;letter-spacing:.16em;line-height:1.6}
button.card-button[aria-busy=true]::after,button.pack-open[aria-busy=true]::after{position:absolute;right:12px;bottom:12px;margin:0}

/* Keep onboarding above the pack room and let compact browse controls wrap. */
#main:has(>.pack-room):has(>.onboarding){flex-direction:column}
#main>.onboarding{flex:none;width:100%;min-width:0}
.onboarding-steps>li{display:grid;grid-template-columns:auto minmax(0,1fr);align-content:start;gap:6px 10px}
.onboarding-steps>li>small{grid-column:2}
.onboarding-steps>li>a{overflow-wrap:anywhere}
.browse-toolbar{flex-wrap:wrap}
.browse-toolbar form[data-form="browse-search"]{display:flex;align-items:center;gap:8px;flex:1 1 240px;min-width:0}
.browse-toolbar form[data-form="browse-search"] input{width:100%;min-width:0}

/* Screenshot review: hierarchy, contained sheets and compact guidance. */
button:where(:not(.card-button):not(.pack-open)),.button{-webkit-tap-highlight-color:transparent}
button:focus:not(:focus-visible),.button:focus:not(:focus-visible){outline:none}
#dialog .close,#filter-dialog [data-act="filter-close"]{display:grid;place-items:center;float:right;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;margin:-8px -8px 0 8px;border:0;border-radius:6px;background:transparent;box-shadow:none;color:#bfc3cb;font-size:22px;font-weight:400;line-height:1}
#dialog .close:hover,#filter-dialog [data-act="filter-close"]:hover{background:#ffffff08;color:#fff;border:0;box-shadow:none}
#dialog .close:focus-visible,#filter-dialog [data-act="filter-close"]:focus-visible{outline:2px solid #aeb6c4;outline-offset:-5px}
#dialogBody button+button,[data-market-detail]>button+button{margin-left:8px}
#dialogBody .card-detail-actions button,#dialogBody .row button{margin-left:0}
#dialogBody [data-act="sale-history"]{background:transparent;border-color:transparent;color:#b3bac5;text-decoration:underline;text-underline-offset:4px;font-weight:400}
#dialogBody [data-act="cancel-listing"]{background:transparent;border-color:#5b4148;color:#d6a9b0}
.active-filters button.filter-chip:not(.card-button):not(.pack-open){padding:6px 10px;min-height:36px;background:#211f23;border-color:#4b424c;font-size:11px;font-weight:400}
.active-filters button[data-act="reset-filter"]{background:transparent;border-color:transparent;color:var(--muted);text-decoration:underline;text-underline-offset:3px;font-size:11px}
.onboarding-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.onboarding-top button:where(:not(.card-button):not(.pack-open)){min-height:32px;padding:5px 8px;border:0;background:transparent;color:var(--muted);font-size:11px}
.onboarding-steps>li{display:flex;align-items:center;gap:7px;font-size:11px;line-height:1.4}
.onboarding-steps>li>a{display:flex;align-items:center;gap:6px;min-height:40px;color:#c4c8d0;text-decoration:none;font-size:11px}
.onboarding-steps>li>a:hover{text-decoration:underline}
.onboarding-steps>li>span{color:#8e96a3;font-size:10px}
.onboarding-steps>li small{display:none}

.filter-sheet{min-width:0;max-width:100%}.filter-sheet .section-line{margin:0 0 18px;flex-wrap:nowrap;align-items:center}
.filter-sheet h2{font-size:20px;line-height:1.3;margin:0}.filter-sheet label{overflow:hidden}
#filter-dialog{box-sizing:border-box;overflow-x:hidden}
@media(max-width:700px){
 input,select,textarea,.toolbar input,.toolbar select,.filter-panel .filter-field input,.filter-panel .filter-field select,.filter-sheet input,.filter-sheet select,[data-form="friend-request"] input{font-size:16px}
 .filter-sheet label input,.filter-sheet label select{font-size:16px;min-height:44px;padding:10px;max-width:100%}
 .filter-sheet label select{padding-right:30px}
 .browse-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
 .browse-toolbar form[data-form="browse-search"]{min-width:0;gap:5px}
 .browse-toolbar form[data-form="browse-search"] input{font-size:16px}
 .browse-toolbar button:where(:not(.card-button):not(.pack-open)){padding:8px 10px;font-size:11px;min-height:44px}
 .browse-toolbar form[data-form="browse-search"] button{background:transparent;border-color:transparent;padding-inline:5px;color:#b9c0cb}
 #filter-dialog{max-width:100vw;width:100%;padding:18px 16px calc(20px + env(safe-area-inset-bottom))}
 .filter-sheet .filter-actions{gap:10px;padding-top:14px}
 .filter-sheet .filter-actions button{min-width:0}
 .onboarding{padding:8px 0;margin:8px 0}.onboarding-top h2{font-size:12px}

 .menu-reward-ready{font-size:8px;padding:2px 4px}
}
/* Scoped action groups keep secondary tasks quiet without shrinking hit targets. */
.market-detail-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:16px 0}
#dialogBody .market-detail-actions>button{margin:0;min-height:44px}
#dialogBody .market-detail-actions>.ghost{border-color:transparent;background:transparent;color:#b3bac5;font-size:11px;font-weight:400;padding:8px 4px;text-decoration:underline;text-underline-offset:4px}
#dialogBody:focus,#filter-title:focus{outline:none}
.browse-toolbar .search-submit{width:44px;min-width:44px;padding:10px}
.browse-toolbar .search-submit svg{width:18px;height:18px}
.selection-hint{margin:10px 0;color:#929aa7;font-size:11px}
.onboarding-top>div{display:flex;align-items:center;gap:8px}
.onboarding-top small{font-size:10px;color:#929aa7}
.onboarding-security{display:inline-flex;align-items:center;min-height:32px;color:#b7a6aa;font-size:10px;text-underline-offset:3px}
.profile-collection-details{padding:12px 0;border-block:1px solid var(--line);color:var(--muted);font-size:12px;margin:12px 0 24px}
.profile-collection-details>summary{cursor:pointer;min-height:32px;display:list-item;align-content:center}

@media(max-width:700px){.onboarding-steps>li>a{font-size:12px;gap:4px}.onboarding-security{font-size:12px}.market-detail-actions{gap:6px 10px}.market-detail-actions>form{width:100%}}

/* Keep every More destination reachable on shorter phones. */
@media(max-width:700px) and (max-height:650px){.mobile-nav #mobile-more .more-panel{max-height:calc(100dvh - 90px - env(safe-area-inset-bottom));padding:8px}}
/* Garage browsing uses equal slots; original frames and photo credits remain. */
.garage-grid{align-items:start}
.garage-grid .cq195-photo{aspect-ratio:1.3}
.garage-grid .cq195-name{min-height:3.75em;max-height:3.75em;line-height:1.25;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.garage-grid .cq195-minirow{min-height:4em;align-content:start}
.garage-grid .duplicate-summary{display:inline-block;margin:8px 0 2px;line-height:1.5;font-size:11px;color:#a5a6ac}
.garage-grid .tile>p:empty{display:none}

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Profile actions retain flat controls; the collection disclosure stays native. */
.player-profile .profile-actions .button:hover,.player-profile .profile-actions button:hover:not(:disabled),.player-profile .section-line button:hover:not(:disabled){background:#28292e;border-color:#85868e;box-shadow:none}

/* Album detail: identical card slots, with actions below rather than inside missing cards. */
.album-vehicle-grid{align-items:start;row-gap:20px}
.album-vehicle-slot{width:100%;min-width:0;aspect-ratio:650/960}
.album-vehicle-slot>.card-button,.album-vehicle-slot .cq195-card,.album-vehicle-slot .cq195-metal,.album-vehicle-slot .cq195-face{width:100%;height:100%;min-width:0}
.album-vehicle-slot .cq195-face{display:flex;flex-direction:column}
.album-vehicle-slot .cq195-photo{flex:1;min-height:0;aspect-ratio:auto}
.album-vehicle-slot .cq195-bottom{flex:none}
.album-vehicle-slot .cq195-name{min-height:2.5em;max-height:2.5em;line-height:1.25;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.album-vehicle-slot .cq195-minirow{min-height:3.75em;align-content:start}
.album-vehicle-slot>.album-missing{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;margin:0;padding:14px 10px;border:1px dashed #4c515a;border-radius:8px;background:#17191c;box-shadow:none;text-align:center;color:var(--muted)}
.album-vehicle-slot .album-silhouette{flex:none;width:70%;height:40px;margin:0 auto 4px;opacity:.55}
.album-vehicle-slot .album-silhouette svg{height:100%;width:100%}
.album-vehicle-slot .album-missing h3{font-size:13px;font-weight:500;line-height:1.35;letter-spacing:-.01em;margin:0;max-width:100%;max-height:4.05em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere}
.album-vehicle-slot .album-missing p{font-size:10px;line-height:1.45;margin:0;color:var(--muted)}
.album-vehicle-slot .album-missing .help{font-size:10px;line-height:1.4;color:#929aa7}
.album-vehicle-actions{display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:8px;gap:6px}
.album-vehicle-actions>p,.album-vehicle-actions>span{margin:0;font-size:11px;line-height:1.4;color:var(--muted)}
.album-vehicle-actions>button{min-height:44px;width:100%;padding:7px 8px;border-radius:6px;font-size:11px;font-weight:500;line-height:1.3}
@media(max-width:360px){.album-vehicle-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px}.album-vehicle-slot>.album-missing{padding:10px 8px;gap:7px}.album-vehicle-slot .album-missing h3{font-size:12px}.album-vehicle-slot .album-silhouette{height:32px}.album-vehicle-actions>button{font-size:10px}}
/* Keep usable artwork above metadata in the narrowest two-column albums. */
@media(max-width:360px){.album-vehicle-slot{aspect-ratio:650/1160}}

/* Packs alone fits the usable mobile viewport; long results and short screens may scroll. */
@media(max-width:700px){
 .shell:has(#main>.pack-room),.shell:has(#main>.opening){display:flex;flex-direction:column;min-height:calc(100dvh - 86px - env(safe-area-inset-bottom))}
 .shell:has(#main>.pack-room)>header,.shell:has(#main>.opening)>header{flex:none}
 .view-shell:has(>#main>.opening){display:flex;flex-direction:column;flex:1;min-height:0}
 #main:has(>.pack-room),#main:has(>.opening){display:flex;flex-direction:column;flex:1;min-height:0;padding:0}
 #main>.pack-room,#main>.opening{flex:1;min-height:0;gap:8px;padding:10px 0}
 #main>.opening{overflow:visible}
 #main>.opening:not(.opening-complete) .single-reveal{width:min(240px,34dvh);max-width:70vw}
 .shell:has(#main>.pack-room)>footer,.shell:has(#main>.opening)>footer{flex:none;margin-top:0;padding:10px 0;gap:6px 12px;font-size:8px;letter-spacing:.8px}
 .shell:has(#main>.pack-room)>footer a,.shell:has(#main>.opening)>footer a{font-size:10px}
 .shell:has(#main>.pack-room)>footer #install-app,.shell:has(#main>.opening)>footer #install-app{min-height:32px;padding:6px 9px;font-size:10px}
 #main>.onboarding+.pack-room{padding:6px 0;gap:4px}
 #main>.onboarding+.pack-room .pack-open{width:min(180px,calc(22dvh - env(safe-area-inset-bottom)))}
 #main>.opening-complete{justify-content:flex-start;padding-top:16px}
 #main>.opening-complete .pack-results{flex:none}
}
@media(max-width:700px) and (max-height:600px){
 #main>.pack-room,#main>.opening{justify-content:flex-start;padding-block:12px}
 #main>.opening:not(.opening-complete) .single-reveal{width:min(190px,32dvh)}
}

/* Related pages share quiet, horizontally scrollable secondary navigation. */
/* Quiet, consistent page tabs: typography and one gold baseline, not boxed buttons. */
nav.collection-tabs,nav.section-tabs{display:flex;align-items:stretch;gap:20px;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;margin:16px 0 16px;padding:0;border-bottom:1px solid var(--line)}
nav.collection-tabs>a,nav.section-tabs>a{display:inline-flex;align-items:center;justify-content:center;flex:none;position:relative;min-height:44px;padding:10px 2px;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--muted);font-size:12px;font-weight:500;line-height:1.4;letter-spacing:.15px;white-space:nowrap;text-decoration:none}
nav.collection-tabs>a:hover,nav.section-tabs>a:hover{background:transparent;color:#eeeef1;box-shadow:none}
nav.collection-tabs>a[aria-current="page"],nav.section-tabs>a[aria-current="page"]{background:transparent;color:#dec28f;box-shadow:none}
nav.collection-tabs>a[aria-current="page"]::after,nav.section-tabs>a[aria-current="page"]::after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:#dec28f}
.pagination{gap:16px}
.pagination>button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:1px solid #383940;border-radius:6px;background:#1b1c20;box-shadow:none;font-size:12px;font-weight:500;line-height:1.4;letter-spacing:.15px}
.pagination>button:hover:not(:disabled){background:#24262a;border-color:#55565f}
.pagination>span{font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted)}
.profile-album-badges{display:block;margin:24px 0 16px}
.profile-album-badges>h2{font-size:18px;font-weight:500;margin:0 0 8px}
.profile-badge-list{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.profile-album-badges .album-completion-badge{display:inline-flex;align-items:center;gap:6px;max-width:100%;min-height:28px;padding:4px 8px;border:1px solid #49453c;border-radius:6px;background:#191b1e;box-shadow:none;color:#d2d5db;text-decoration:none;font-size:12px;font-weight:500;line-height:1.4;overflow-wrap:anywhere}
.album-completion-badge svg,.album-completion-badge .badge-icon{width:16px;height:16px;flex:none;color:#dec28f;font-size:14px;line-height:16px}
.profile-badge-note{margin:8px 0 20px;max-width:680px;font-size:11px;line-height:1.6;color:var(--muted)}
@media(max-width:360px){nav.collection-tabs,nav.section-tabs{gap:16px}nav.collection-tabs>a,nav.section-tabs>a{padding-inline:2px;font-size:12px}.profile-album-badges .album-completion-badge{font-size:11px;padding-inline:10px}}

.profile-more-badges{margin-top:8px}
.profile-more-badges>summary{display:list-item;cursor:pointer;min-height:44px;align-content:center;padding:10px 0;color:var(--muted);font-size:12px;line-height:1.5}
.profile-more-badges>summary:hover{color:#eeeef1}
.profile-more-badges[open]>.profile-badge-list{margin-top:4px}

/* Text-only shop entry, with emphasis when generated pack storage is empty. */
#main .pack-room>.pack-shop{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:44px;min-width:44px;padding:8px 16px;border:0;border-radius:0;background:transparent;color:#dec28f;box-shadow:none;text-shadow:none;font-size:13px;font-weight:500;line-height:1.4;letter-spacing:.15px;animation:none;transition:color .15s}
#main .pack-room>.pack-shop:hover{background:transparent;color:#f2dcae;box-shadow:none}
#main .pack-room>.pack-shop.is-empty{color:#f3d899;font-size:14px;font-weight:700}
#main .pack-room>.pack-shop:focus-visible{outline:2px solid #dec28f;outline-offset:2px}

/* Compact Showdown copy chooser; existing card artwork and typography stay intact. */
.sd-copy-list{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;gap:8px;max-height:320px;overflow:auto;margin:12px 0}
.sd-copy-choice{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:14px;width:100%;text-align:left;padding:8px;min-height:130px}
#dialogBody .sd-copy-list .sd-copy-choice{margin:0}
.sd-copy-choice[aria-pressed="true"]{outline:2px solid currentColor;outline-offset:-3px}
.sd-copy-choice>span:last-child{min-width:0;display:grid;gap:5px}
.sd-copy-choice strong,.sd-copy-choice small{overflow-wrap:anywhere}
.sd-copy-art{width:76px;height:112px;flex:0 0 76px;overflow:hidden;pointer-events:none}
.sd-copy-art .cq195-card{width:200px!important;max-width:200px!important;margin:0;transform:scale(.38);transform-origin:top left}
#sd-copy-picker summary{cursor:pointer;padding:12px 0}
@media(max-width:480px){.sd-copy-list{max-height:260px}.sd-copy-choice{gap:10px}}

/* Reflow at accessibility zoom without clipping controls or shrinking tap targets. */
#main>.opening:not(.opening-complete) .single-reveal{max-width:min(70vw,100%)}
.opening-complete>button.primary{min-width:min(180px,100%);max-width:100%}
.pagination{flex-wrap:wrap;margin-inline:0}
.toolbar input{min-width:min(150px,100%)}
@media(max-width:700px){
 .pack-results,.album-vehicle-grid{grid-template-columns:repeat(auto-fit,minmax(min(130px,100%),1fr))}
 .pack-results>button:last-child:nth-child(odd){grid-column:1/-1;width:min(100%,max(130px,calc(50% - 7px)));justify-self:center}
 dialog{max-height:calc(100dvh - 24px);overflow-wrap:anywhere}
 .exchange-sides .offer-cards{max-height:min(390px,42dvh)}
}
@media(max-width:700px){
 #nav .mobile-nav>a,.mobile-nav summary{min-width:0;white-space:normal}
 .mobile-nav>a>span,.mobile-nav summary>span{max-width:100%;overflow-wrap:anywhere;text-align:center}
}

.moderation-photo{max-width:100%;max-height:260px;object-fit:contain}

#photo-announcement-dialog{width:520px;max-width:calc(100% - 28px);max-height:calc(100% - 28px);padding:24px;overflow:auto}
#photo-announcement-dialog h2{font-size:1.35rem;line-height:1.25;margin:0;max-width:none}
#photo-announcement-dialog p{font-size:1rem;line-height:1.6;margin:16px 0;color:var(--muted,#b2b4ba)}
#photo-announcement-dialog .row{flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:20px}
#photo-announcement-dialog button{max-width:100%;white-space:normal}
.photo-contribution-guide{margin-bottom:18px}
@media(max-width:360px){#photo-announcement-dialog{padding:18px}#photo-announcement-dialog .row{justify-content:stretch}#photo-announcement-dialog .row button{flex:1 1 120px}}

#photo-announcement-dialog .section-line{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}
#photo-announcement-dialog .section-line button{margin:0}

.account-id-control{margin-bottom:20px;min-width:0}
.account-id-control input{width:100%;min-width:0;max-width:100%;font-family:monospace}
.account-id-control button{margin-top:8px;max-width:100%;white-space:normal}
.account-id-control [role="status"]:empty{display:none}

/* Ledger activity reflows without squeezed table columns or split balances. */
.ledger-activity ol{list-style:none;margin:0;padding:0}
.ledger-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;padding:14px 0;border-bottom:1px solid var(--line)}
.ledger-main{min-width:0;overflow-wrap:anywhere}
.ledger-description{display:block;margin-top:3px;color:var(--text-secondary);line-height:1.45}
.ledger-numbers{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.ledger-numbers>strong{font-size:15px}
.ledger-reference{grid-column:1/-1;font-size:11px;color:var(--muted);min-width:0;overflow-wrap:anywhere}
.ledger-reference summary{cursor:pointer;width:fit-content}
@media(max-width:360px){.ledger-entry{gap:6px 10px}.ledger-numbers small{font-size:10px}}

/* Compact review and form accessibility; default game animations unchanged. */
.photo-zoom{min-width:0}.photo-zoom img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain}
.moderation-review,.contribution-status{min-width:0;overflow-wrap:anywhere}
.panel details summary{cursor:pointer}
[data-price-warning]{overflow-wrap:anywhere}[data-price-warning]:empty{display:none}
@media(max-width:600px){input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px}dialog{max-height:calc(100dvh - 24px);overflow-y:auto}dialog .split>*{min-width:0}}
@media(forced-colors:active){button,.button,input,select,textarea{border:1px solid ButtonText}:focus-visible{outline:2px solid Highlight}.photo-credit{background:Canvas;color:CanvasText}}

/* Friend actions remain in the player cell, without an extra table column. */
#main .leaderboard-friend{margin-top:6px;max-width:100%;font-size:11px}
#main .leaderboard-add{font-size:11px;padding:5px 9px;min-height:32px;max-width:100%;white-space:normal}
#main .collector-player{min-width:0;overflow-wrap:anywhere}
#main .collector-name{overflow-wrap:anywhere}


.leaderboard-tabs{flex-wrap:wrap}
#main .collectors-page{container-type:inline-size}
#main .collectors-page .club-heading>div{min-width:0;overflow-wrap:anywhere}
#main .collectors-page .club-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
#main .collectors-page .club-stats>div{min-width:0}
@container(max-width:250px){
 #main .collectors-page .club-heading{flex-wrap:wrap}
 #main .collectors-page .club-stats{grid-template-columns:1fr;padding:8px}
 #main .collectors-page .club-stats>div{border:0;padding:8px;gap:3px}
 #main .collectors-page .club-section-title{flex-wrap:wrap;gap:8px}
 #main .collector-table:not(.showdown-standings) thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #main .collector-table:not(.showdown-standings) tbody{display:block}
 #main .collector-table:not(.showdown-standings) tr{display:flex;flex-direction:column;border-bottom:1px solid #33373d}
 #main .collector-table:not(.showdown-standings) tr>*{width:auto!important;padding:8px!important;border:0!important;text-align:left!important;white-space:normal!important}
 #main .collector-table:not(.showdown-standings) td:last-child::before{content:'Cars: ';font-size:11px}
}

.personal-collection{margin:0 0 16px;border-block:1px solid #33373d;padding:12px 0;font-size:12px}
.personal-target{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.personal-target>span{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}
.personal-target small{font-size:9px;color:#bba56e;letter-spacing:.08em}
.collection-pin{font-size:11px;padding:7px 10px}
.collection-pin{margin-bottom:12px}
.collection-milestones{margin-top:10px;font-size:12px}
.collection-milestones summary{cursor:pointer;color:#aeb5bf}
.milestone-list{list-style:none;padding:0;margin:12px 0}
.milestone-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:9px 0;border-bottom:1px solid #33373d;overflow-wrap:anywhere}
.milestone-list li span{grid-column:1;font-size:11px;color:#aeb5bf}
.milestone-list time{font-size:10px;color:#aeb5bf}
.contributor-recognition{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px}

.personal-target .target-missing{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:4px 0;color:#c6b17c;font-size:12px;line-height:1.2;text-align:center;text-decoration:none;white-space:nowrap}
.target-missing strong{font-size:14px;font-weight:500;font-variant-numeric:tabular-nums}
.target-missing span{line-height:1.2}
.target-missing:hover{text-decoration:underline;text-underline-offset:4px}
.target-missing:focus-visible{outline:2px solid #c6b17c;outline-offset:4px;border-radius:2px}
.collector-table-wrap:focus-visible{outline:2px solid #c6b17c;outline-offset:2px}
/* Retain the approved table: narrow screens scroll columns instead of squeezing names or numbers. */
#main .showdown-standings{min-width:560px;table-layout:fixed}
#main .showdown-standings th:nth-child(2){width:160px}
#main .showdown-standings td{white-space:nowrap}
#main .showdown-standings .leaderboard-add{white-space:nowrap}

.standings-record{display:none}
@media(max-width:600px){
 #main .showdown-standings{min-width:0;width:100%;table-layout:fixed}
 #main .showdown-standings th:nth-child(1),#main .showdown-standings td:nth-child(1){width:42px;padding-inline:8px}
 #main .showdown-standings th:nth-child(2){width:auto;padding-inline:8px}
 #main .showdown-standings th:nth-child(3),#main .showdown-standings td:nth-child(3){width:64px;padding-inline:8px;text-align:right}
 #main .showdown-standings th:nth-child(n+4),#main .showdown-standings td:nth-child(n+4){display:none}
 #main .showdown-standings .standings-record{display:block;margin-top:6px;font-size:11px;color:#aeb5bf}
 .standings-record summary{cursor:pointer}
 .standings-record p{font-size:11px;line-height:1.5;margin:6px 0 0;overflow-wrap:anywhere}
}
@container(max-width:250px){#main .showdown-standings{min-width:280px}}

/* Private photo review: one photo comparison and compact, explicit decisions. */
.moderation-review>.section-line{margin:0;gap:12px}.moderation-review h3{margin:12px 0 8px}.photo-review-queue{display:flex;align-items:start;justify-content:space-between;gap:12px;margin:8px 0;padding:4px 0;overflow:visible}.photo-review-queue>details{min-width:0;flex:1}.photo-review-queue>.button{flex:none}.photo-review-queue details a{display:block;padding:8px 0;white-space:normal;overflow-wrap:anywhere}.photo-review-queue [aria-current]{color:#dec28f}.review-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.review-comparison section{min-width:0}.review-comparison h4{margin:4px 0}.review-comparison p{margin:6px 0;font-size:13px}.moderation-review .review-comparison .moderation-photo{display:block;width:100%;height:clamp(130px,25vw,330px);max-height:330px;object-fit:contain}.review-image-hint{margin:4px 0 10px!important}.review-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:start;margin:14px 0}.review-actions>details{flex:1 1 140px;min-width:0}.review-actions>details[open]{flex-basis:100%}.review-actions summary{display:block;text-align:center}.review-actions form{margin-top:10px}.moderation-review details{margin-bottom:8px}.review-history a{display:block;padding:6px 0}.moderation-review .review-comparison a{display:block}.moderation-review summary{overflow-wrap:anywhere}.moderation-review input:not([type=checkbox]),.moderation-review textarea{box-sizing:border-box;max-width:100%;min-width:0}.moderation-review .row{flex-wrap:wrap}.moderation-review .button{white-space:normal}
.moderation-review{container-type:inline-size}.photo-review-queue{flex-wrap:wrap}.photo-review-queue>details{flex:1 1 140px}.photo-review-queue>.button{max-width:100%}
@container(max-width:240px){.review-comparison{grid-template-columns:minmax(0,1fr)}.moderation-review .review-comparison .moderation-photo{height:auto;max-height:330px}}
/* Shared primary navigation and optional, non-modal guided tour. */
#desktop-more{position:relative}#desktop-more>summary{padding:9px 14px;cursor:pointer;color:var(--muted)}#desktop-more .more-panel{position:absolute;right:0;top:100%;z-index:90;width:230px;padding:8px;background:#191a1d;border:1px solid #42434b;border-radius:8px;max-height:70vh;overflow:auto}#desktop-more .more-panel a,#desktop-more .more-panel button{display:block;width:100%;text-align:left;white-space:normal}#desktop-more .more-icon{display:none}
.tour-invitation{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.tour-invitation p{margin:4px 0;font-size:13px}.tour-highlight{outline:2px solid #dec28f!important;outline-offset:5px;scroll-margin-block:180px}
#guided-tour{position:fixed;z-index:200;right:16px;bottom:90px;width:min(340px,calc(100% - 32px));max-height:calc(100dvh - 110px);overflow:auto;box-sizing:border-box;padding:14px;background:#191a1d;border:1px solid #dec28f;border-radius:8px;box-shadow:0 8px 28px #0006}#guided-tour.tour-at-top{top:14px;bottom:auto}#guided-tour h2{font-size:18px;margin:8px 0}#guided-tour p{font-size:13px;margin:8px 0}#guided-tour .tour-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#dec28f}#guided-tour button{font-size:12px;padding:8px 12px;min-height:36px}#guided-tour .row{justify-content:flex-end;gap:6px}#guided-tour .tour-error:empty{display:none}
#guided-tour.tour-in-dialog{position:sticky;inset:auto;bottom:0;width:100%;margin:12px 0 0;max-height:45dvh}.tour-contribution .tour-highlight{outline-offset:1px}

#nav{overflow:visible}#guided-tour{overflow-wrap:anywhere}#guided-tour .row{flex-wrap:wrap}
/* Keep pack artwork within the available width at accessibility zoom. */
.pack-room .pack-open,.pack-room .pack-storage{max-width:100%}.pack-room .pack-open .card-back{max-width:100%;height:auto}
.daily-claim-success{flex-wrap:wrap}.daily-claim-success>div{min-width:0;overflow-wrap:anywhere}
#guided-tour>.row{position:sticky;bottom:0;background:#191a1d;padding-top:6px}
#guided-tour.tour-in-dialog{position:fixed;inset:auto 16px 16px auto;width:min(340px,calc(100% - 32px));margin:0}#guided-tour.tour-in-dialog.tour-at-top{top:12px;bottom:auto}#guided-tour .row button{flex:0 1 auto}
/* Percentage bounds also respect a zoomed layout viewport. */
dialog{max-height:calc(100% - 24px)}#guided-tour>.row{position:static}#guided-tour button{padding:6px 7px;min-height:32px}

/* New-car contributions follow the existing panel and button system. */
.new-car-panel{max-width:760px;margin-inline:auto;overflow-wrap:anywhere}.new-car-panel form{max-width:620px}.new-car-panel input[type=file]{min-width:0;width:100%}.new-car-preview{display:block;width:100%;max-width:460px;max-height:260px;object-fit:contain;margin:16px auto;border-radius:10px;background:var(--bg)}.new-car-ratings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.new-car-panel textarea{width:100%;max-width:100%;font:inherit}.new-car-panel .check input{flex:none}.new-car-panel details{margin:16px 0}.new-car-panel button{white-space:normal}.new-car-panel h1{font-size:clamp(26px,5vw,38px)}@media(max-width:420px){.new-car-ratings{grid-template-columns:repeat(2,minmax(0,1fr))}}

.admin-tabs{flex-wrap:wrap;overflow:visible;gap:4px}.admin-tabs a{white-space:normal}.admin-dashboard-queues{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:24px 0 8px}.admin-dashboard-queues a{display:flex;flex-direction:column;gap:6px;padding:18px;text-align:left;min-width:0}.admin-dashboard-queues span{color:var(--muted);font-size:12px}@media(max-width:540px){.admin-dashboard-queues{grid-template-columns:1fr}.admin-tabs a{padding:8px 10px;font-size:12px}}

/* Fresh reads hide account content without changing its scroll geometry. */
.view-shell{position:relative}.awaiting-account{visibility:hidden}.view-status[hidden]{display:none}.view-status{position:absolute;inset:0;min-height:160px;padding:24px 0;pointer-events:none}.view-status>div{position:sticky;top:100px;pointer-events:auto}.fresh-loading{display:flex;align-items:center;justify-content:center;gap:12px;min-height:80px;padding:16px;color:#c8c6bf;font-size:14px;letter-spacing:.02em}.fresh-loading-mark{width:18px;height:18px;border:1.5px solid #6c6554;border-top-color:#ddc18c;border-radius:50%;animation:fresh-read-turn .85s linear infinite;flex:none}.fresh-error{text-align:center;padding:24px;background:#111214;border:1px solid #36383b;border-radius:8px}.fresh-error p{margin-top:0}.personal-collection .fresh-loading,[data-collection-target] .fresh-loading{justify-content:flex-start;min-height:48px;padding:8px 0;font-size:12px}@keyframes fresh-read-turn{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.fresh-loading-mark{animation:none;border-top-color:#ddc18c;border-right-color:#ddc18c}}

/* A quiet community invitation, matching the charcoal collector surfaces. */
#discord-invitation-dialog{width:440px;max-width:calc(100% - 28px);max-height:calc(100% - 28px);padding:26px;background:#181a1e;border:1px solid #3b3e45;box-shadow:0 24px 80px #0006;border-radius:16px}
#discord-invitation-dialog .section-line{display:flex;align-items:center;justify-content:space-between;gap:12px}
#discord-invitation-dialog .close{float:none;flex:none;width:44px;height:44px;padding:0;border:0;background:transparent;color:#bfc3cb}
#discord-invitation-dialog h2{font-size:26px;font-weight:500;line-height:1.2;margin:18px 0 14px}
#discord-invitation-dialog p,.discord-community p{color:#aeb2bb}
#discord-invitation-dialog .row{gap:10px;margin-top:24px}
#discord-invitation-dialog .row>*{min-height:44px;text-align:center;font-size:13px}
#discord-invitation-dialog .help{font-size:12px;margin:18px 0 0}
.discord-join.button{background:#e0e1e5;color:#181a1e;border:1px solid #e0e1e5;font-weight:550;box-shadow:none}
.discord-join.button:hover{background:#fff;border-color:#fff}
.discord-community{background:#181a1e;border-color:#34373d}
@media(max-width:400px){#discord-invitation-dialog{padding:18px}#discord-invitation-dialog h2{font-size:23px}#discord-invitation-dialog .row>*{flex:1 1 100%}}

#discord-invitation-dialog [hidden]{display:none}
#discord-invitation-dialog [data-discord-status]{font-size:13px}

/* Keep dismissal outside long card/form content; only the body scrolls. */
#dialog[open],#performance-dialog[open]{display:flex;flex-direction:column;overflow:hidden;padding:0;max-height:calc(100dvh - 24px)}
#dialog>.dialog-header,#performance-dialog>.dialog-header{display:flex;justify-content:flex-end;flex:0 0 auto;padding:4px 8px 0}
#dialog>.dialog-header>.close,#performance-dialog>.dialog-header>.close{float:none;flex:none;min-width:44px;height:44px;padding:0;margin:0;line-height:1}
#dialog>.dialog-scroll,#performance-dialog>.dialog-scroll{overflow-y:auto;min-height:0;padding:0 20px 20px;overscroll-behavior:contain;scrollbar-gutter:stable}

/* More navigation: one roomy icon-and-label list on every screen. */
#nav .more-panel>a,#nav .more-panel>button,#desktop-more .more-panel>a,#desktop-more .more-panel>button{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px;width:100%;min-height:52px;padding:14px 12px;margin:0;text-align:left;font-size:14px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;border:0;border-radius:10px;background:transparent;box-shadow:none}
#nav .more-panel .more-icon,#desktop-more .more-panel .more-icon{display:flex;align-items:center;justify-content:center;width:22px;min-width:22px;flex:0 0 22px;color:#e2e7e8}
.more-panel .more-icon svg{width:22px;height:22px}
.more-panel>a>span:not(.more-icon){min-width:0}
#nav .more-panel>a:focus-visible,#nav .more-panel>button:focus-visible,#desktop-more .more-panel>a:focus-visible,#desktop-more .more-panel>button:focus-visible{outline:2px solid #dec28f;outline-offset:-2px;background:#ffffff0c}
#desktop-more .more-panel{width:280px;max-width:calc(100vw - 24px);padding:10px;max-height:min(70dvh,calc(100dvh - 170px));overscroll-behavior:contain;scroll-padding-block:10px}
@media(max-width:700px){
 .mobile-nav #mobile-more .more-panel{width:min(280px,calc(100vw - 20px));padding:10px;bottom:calc(78px + env(safe-area-inset-bottom));max-height:calc(100dvh - 98px - env(safe-area-inset-bottom) - env(safe-area-inset-top));overscroll-behavior:contain;scroll-padding-block:10px}
}

/* Market details show the original collectible frame, never a narrow thumbnail. */
#dialog:has([data-market-detail]){width:min(760px,calc(100vw - 24px));max-width:760px}
.market-detail-heading{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:28px;align-items:start}
.market-detail-heading .market-detail-card{width:100%;max-width:280px;margin:0 auto;align-self:start}
.market-detail-card>.cq195-card{width:100%;aspect-ratio:650/960}
.market-detail-card .cq195-metal,.market-detail-card .cq195-face{height:100%}
.market-detail-card .cq195-face{display:flex;flex-direction:column}
.market-detail-card .cq195-photo{flex:1;min-height:0;aspect-ratio:auto}
.market-detail-card .cq195-bottom{flex:none}
.market-detail-card>.driver-card{width:100%;height:auto;aspect-ratio:420/620}
.market-detail-info{min-width:0;padding-top:12px}
.market-detail-heading h2{font-size:26px;line-height:1.2;overflow-wrap:break-word}
.market-detail-heading .listing-car-name{font-size:17px;line-height:1.45;overflow-wrap:break-word}
.market-detail-heading p{font-size:14px;line-height:1.6;margin:12px 0}
.market-ownership:empty{display:none}.market-ownership .owned-badge{position:static;display:inline-block;margin:0}
.photo-source,.rating-note{margin:18px 0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.photo-source>summary,.rating-note>summary{cursor:pointer;min-height:40px;align-content:center;color:var(--muted)}
.photo-source p,.rating-note p{margin:10px 0}
@media(max-width:600px){.market-detail-heading{grid-template-columns:minmax(0,1fr);gap:20px}.market-detail-info{padding-top:0}.market-detail-heading h2{font-size:24px}}

/* Keep player help links together with consistent baselines and wrapping. */
.shell>footer .footer-links{display:flex;align-items:center;flex-wrap:wrap;gap:4px 18px}
.shell>footer .footer-links a{display:inline-flex;align-items:center;min-height:32px;margin:0;padding:0;font-size:11px;line-height:1.4;letter-spacing:normal;white-space:nowrap}
@media(max-width:700px){.shell>footer .footer-links{flex-basis:100%;justify-content:flex-start;gap:2px 16px}.shell>footer>span{margin-right:0;flex:1 1 auto}}

.catalog-editor-results{display:grid;gap:.75rem;max-height:18rem;overflow:auto;margin:1rem 0}.catalog-editor-results a{padding:.65rem;overflow-wrap:anywhere}.catalog-editor-results small{display:block}.new-car-panel input,.new-car-panel textarea,.new-car-panel select{max-width:100%;box-sizing:border-box}

/* Quiet, compact controls shared by the marketplace detail views. */
[data-market-detail] .auction-leader{border:0;border-left:2px solid #c9ad6840;border-radius:0;background:transparent;padding:4px 0 4px 12px;font-size:12px;line-height:1.7;margin:22px 0 16px}
[data-market-detail] .auction-leader>span{font-size:12px}
[data-market-detail] .sale-price{margin:22px 0 16px;font-variant-numeric:tabular-nums}
[data-market-detail] .sale-price small{display:block;font-size:11px;color:var(--muted);margin-bottom:5px}
[data-market-detail] .sale-price strong{font-size:26px;font-weight:500;letter-spacing:-.5px}
[data-market-detail] .sale-price strong span{font-size:12px;color:var(--muted);letter-spacing:0;font-weight:400}
[data-market-detail] .market-detail-actions{align-items:flex-end;gap:12px 16px}
[data-market-detail] form[data-form="bid"]{width:100%;max-width:470px;margin:0}
.bid-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:14px}
#dialogBody .bid-choices button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:52px;min-width:0;padding:8px 3px;margin:0;background:#ffffff03;border:1px solid #ffffff12;border-radius:6px;font-size:11px;color:#c0c5ce;font-variant-numeric:tabular-nums}
#dialogBody .bid-choices button strong{font-size:13px;font-weight:550;letter-spacing:-.3px}
#dialogBody .bid-choices button small,#dialogBody .bid-choices button span{font-size:9px;color:#9199a5;white-space:nowrap}
#dialogBody .bid-choices button[aria-pressed="true"]{color:#e7cea1;background:#d6be9210;border-color:#d6be9250}
#dialogBody .bid-choices button:disabled{opacity:.35;cursor:default}
.bid-entry{display:flex;align-items:flex-end;gap:10px}.bid-entry label{flex:1;min-width:0;margin:0;color:#a7aeb9;font-size:11px}
.bid-entry input{height:44px;min-width:0;font-variant-numeric:tabular-nums}
#dialogBody .bid-entry button,#dialogBody .market-detail-actions>button.primary{min-height:44px;width:auto;flex:none;padding:10px 16px;margin:0;font-size:12px;border-radius:6px}
[data-market-detail] [data-bid-help]{font-size:11px;line-height:1.6;color:#9199a5;margin:9px 0 0}
[data-market-detail] .form-error{font-size:12px;margin:8px 0 0}
[data-market-detail] .form-error:empty{display:none}
@media(max-width:400px){.market-caption-price strong{font-size:19px}.market-caption .market-action{padding-inline:9px;min-width:48px}.bid-choices{gap:4px}#dialogBody .bid-choices button strong{font-size:12px}}

.bid-entry[hidden],[data-bid-help][hidden]{display:none}

/* Marketplace proposal: a shared price hierarchy and restrained transaction surface. */
.market-caption{gap:13px;margin-top:9px;padding:13px 11px 11px;background:linear-gradient(145deg,#1b1e23,#15171b);border-radius:8px}
.market-caption-info{font-size:9px;letter-spacing:.055em}
.market-kind{text-transform:uppercase;font-weight:600}.market-owner{letter-spacing:0}
.market-caption-price strong{font-size:24px;line-height:1.2;letter-spacing:-.65px;font-weight:600}
.market-price-label{font-size:10px;color:#a2a9b5;margin-bottom:3px}
.market-caption-price small{color:#a2a9b5;font-size:10px}
.market-caption-footer{padding-top:9px;border-color:#ffffff09}
.market-time{font-size:10px;color:#c8cdd6}.market-time small{color:#929baa}
.market-caption .market-action{background:#303640;border-color:transparent;color:#e4e9f1;min-width:50px;border-radius:6px}
.market-caption .market-action.auction{background:#cbb3851c;border-color:transparent;color:#e8d1a8}
.market-caption .market-action:focus-visible,[data-market-detail] button:focus-visible{outline:2px solid #e5cea3;outline-offset:3px}
[data-market-detail] .market-detail-info h2{font-size:10px;line-height:1.4;letter-spacing:.12em;text-transform:uppercase;color:#d2bb92;font-weight:600;margin:0 0 9px}
[data-market-detail] .listing-car-name{font-size:19px;line-height:1.35;font-weight:550;letter-spacing:-.35px;color:#f0f1f5;margin:0 0 14px}
[data-market-detail] .market-seller{font-size:11px;color:#9ca5b4;margin:0 0 9px}
[data-market-detail] .market-seller strong{font-weight:400;color:#d1d7df}
[data-market-detail] .market-ownership{margin:0 0 12px}
[data-market-detail] .market-ownership:empty{display:none}
[data-market-detail] .market-deadline{display:flex;justify-content:space-between;gap:12px;max-width:300px;font-size:11px;color:#9ca5b4;margin:14px 0 0;padding-top:12px;border-top:1px solid #ffffff0b}
[data-market-detail] .market-deadline [data-ends-at]{color:#cdd3dd;font-variant-numeric:tabular-nums}
[data-market-detail] .auction-leader{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;max-width:470px;margin:22px 0 14px;padding:0;border:0;line-height:1.35}
.market-quote{display:flex;flex-direction:column;gap:5px}.market-quote>small{font-size:11px;color:#a5adba}
.market-quote>strong{font-size:32px;font-weight:550;letter-spacing:-.8px;color:#f0f2f6;font-variant-numeric:tabular-nums}
.market-quote>strong>span{font-size:12px;color:#a5adba;letter-spacing:0;font-weight:400}
[data-market-detail] .auction-leader>.market-leading{display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-size:10px;color:#929dad;padding-bottom:4px}
.market-leading>strong{font-size:11px;font-weight:400;color:#d4dae3;max-width:140px;overflow-wrap:anywhere}
[data-market-detail] .sale-price strong{font-size:32px;font-weight:550;letter-spacing:-.8px;color:#f0f2f6}
[data-market-detail] .market-detail-actions{margin-top:0}
.bid-choices{gap:7px;margin:0}
#dialogBody .bid-choices button{min-height:58px;background:#252a32;border-color:transparent;border-radius:7px;gap:5px;color:#e4e9f1;box-shadow:none}
#dialogBody .bid-choices button strong{font-size:17px;font-weight:550;letter-spacing:-.35px;line-height:1.15}
#dialogBody .bid-choices button small,#dialogBody .bid-choices button span{font-size:10px;color:#a7b0be}
#dialogBody .bid-choices button[data-act="bid-custom"]{background:transparent;box-shadow:none;border-color:#ffffff16;font-size:11px;color:#cbd2dd}
#dialogBody .bid-choices button[aria-pressed="true"]{background:#d6bd8e1a;border-color:#d6bd8e40;color:#ead5b1}
#dialogBody .bid-choices button:hover:enabled{background:#343c47}
#dialogBody .bid-choices button[aria-pressed="true"]:hover:enabled{background:#d6bd8e29}
.bid-entry{padding-top:16px;margin-top:16px;border-top:1px solid #ffffff0b;gap:9px}
.bid-entry label{font-size:10px;color:#b2bbc9;line-height:1.5}.bid-entry input{margin-top:6px;background:#14171c;border-color:#454e5b;border-radius:6px;font-size:15px;color:#e9edf4;padding-inline:12px}
#dialogBody .bid-entry button,#dialogBody .market-detail-actions>button.primary{background:#d5bf96;color:#20232a;border-color:transparent;font-size:11px;letter-spacing:.01em;font-weight:600}
#dialogBody .market-detail-actions>.ghost{font-size:10px;text-decoration:none;color:#a9b3c2;padding:10px 0}
#dialogBody .market-detail-actions>.ghost:hover{text-decoration:underline;color:#e0e5ed}
[data-market-detail] [data-bid-help]{font-size:10px;color:#a4aebd;line-height:1.5;margin-top:8px}
@media(max-width:400px){.market-caption{padding:11px 9px 9px}.market-caption-price strong{font-size:22px}.market-caption .market-action{min-width:44px;padding-inline:8px}.market-time{font-size:9px}.bid-choices{gap:6px}#dialogBody .bid-choices button strong{font-size:16px}.market-quote>strong{font-size:30px}}

/* Calm, contextual onboarding. Keep the current account tour version. */
#guided-tour{width:370px;padding:24px 25px 19px;border:1px solid #484640;border-radius:20px;background:linear-gradient(145deg,#232426,#191a1c);box-shadow:0 18px 60px #0007;z-index:202;transition:top .32s ease,left .32s ease;overscroll-behavior:contain}
#guided-tour.tour-in-dialog{position:fixed;margin:0}#guided-tour .tour-heading{font-size:10px;letter-spacing:1.7px;text-transform:uppercase;color:#d9bf8f;font-weight:650;gap:12px;margin-bottom:18px}#guided-tour .tour-heading button{border:0;background:transparent;color:#b8b8b9;font-size:24px;margin:-10px -12px -10px 0;flex:none;width:44px;height:44px}
#guided-tour h2{font-size:25px;font-weight:550;line-height:1.15;letter-spacing:-.7px;margin:0 0 12px}#guided-tour h2:focus{outline:none}#guided-tour p{font-size:14px;line-height:1.65;color:#bdbdbf;margin:0}.tour-copy{animation:tour-copy-in .28s ease both}.tour-progress{display:flex;gap:4px;margin:20px 0 10px}.tour-progress i{height:3px;border-radius:2px;background:#424345;flex:1}.tour-progress i.done{background:#d8bd8b}.tour-meta{display:flex;justify-content:space-between;gap:8px;color:#a5a5a8;font-size:10px}#guided-tour>.row{position:static;flex-wrap:nowrap;gap:6px;margin-top:17px;padding-top:15px;border-top:1px solid #ffffff0d;background:none}#guided-tour .row button{min-height:44px;padding:0 13px;font-size:13px;border:0;border-radius:10px;background:transparent}#guided-tour .row .primary{background:#dec28f;color:#191a1d;margin-left:auto;padding:0 20px}#guided-tour .row .ghost{color:#aaa}#guided-tour button:disabled{cursor:default}#guided-tour .tour-error:not(:empty){color:#ffb7bd;margin-top:12px}
.tour-highlight{outline:none!important;scroll-margin-block:70px}#tour-spotlight{position:fixed;z-index:201;pointer-events:none;border:1px solid #dfc692bb;border-radius:12px;box-shadow:0 0 0 9999px #090a0c55;transition:left .3s ease,top .3s ease,width .3s ease,height .3s ease}#tour-resume{position:fixed;z-index:202;bottom:max(90px,env(safe-area-inset-bottom));right:16px;max-width:calc(100% - 32px);min-height:48px;padding:10px 18px;background:#222223;border:1px solid #645a46;color:#e4cca0;border-radius:30px;box-shadow:0 8px 30px #0006}.tour-invitation{padding:20px 24px;border-radius:16px;border-color:#4a453b;background:#1b1c1e}.tour-invitation button{min-height:44px}
@keyframes tour-copy-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){#guided-tour{padding:21px 22px 16px}#guided-tour h2{font-size:24px}#guided-tour .tour-meta{font-size:10px}#guided-tour{padding-bottom:max(16px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){#guided-tour,#tour-spotlight,.tour-copy{transition:none;animation:none}}
/* Showcase selection is an ordered draft, independent of search result order. */
.showcase-heading{margin-top:32px;align-items:center;gap:16px}.showcase-heading h2{margin:0 0 6px}.showcase-heading p{margin:0;color:#97999f;font-size:12px}.player-profile .showcase-heading .showcase-edit{border-color:#5d5547;color:#dec28f;border-radius:10px;white-space:nowrap}.showcase-edit span{font-size:19px}.profile-showcase{padding-top:12px}.showcase-empty{border-radius:16px;background:linear-gradient(145deg,#1d1e20,#151618)}.showcase-eyebrow{font-size:10px;letter-spacing:1.7px;text-transform:uppercase;color:#d9bf8f}.showcase-editor h2{font-size:27px;letter-spacing:-.7px;margin:8px 0 12px}.showcase-editor h2:focus{outline:none}.showcase-editor>p{font-size:13px;line-height:1.6}.showcase-order-row{display:flex;align-items:center;gap:12px;border:1px solid #3b3b3d;border-radius:12px;padding:12px;margin:8px 0;background:#1c1d20}.showcase-position{font-size:12px;color:#d9bf8f}.showcase-thumbnail{width:42px;flex:none;pointer-events:none}.showcase-thumbnail .cq195-card{width:100%}.showcase-card-label{flex:1;min-width:0}.showcase-card-label strong{font-size:13px;display:block;overflow-wrap:anywhere}.showcase-card-label small{font-size:10px;color:#9a9da4}.showcase-moves{display:flex;gap:4px}.showcase-moves button{width:44px;min-height:44px;padding:0;border:1px solid #45464a;border-radius:8px;background:#27282b;font-size:18px}.showcase-moves button:disabled{cursor:default;opacity:.3}.showcase-editor-empty{padding:24px;text-align:center;border:1px dashed #444;border-radius:12px;color:#aaa}.showcase-editor #showcase-options{max-height:240px;overscroll-behavior:contain}.showcase-editor .showcase-choice{margin:0;min-height:52px;padding:12px 6px}.showcase-editor-actions{position:sticky;bottom:-28px;display:flex;justify-content:flex-end;gap:8px;padding:16px 0;background:var(--panel,#191a1d);border-top:1px solid #3b3b3d}.showcase-editor-actions button{min-height:44px;border-radius:10px}#showcase-message{color:#d9bf8f;font-size:12px;min-height:18px}#showcase-count{font-size:12px;color:#999}
@media(max-width:600px){.showcase-heading{align-items:flex-start}.showcase-heading p{max-width:170px}.showcase-order-row{gap:8px;padding:10px 8px;flex-wrap:wrap}.showcase-thumbnail{width:35px}.showcase-moves{width:100%;justify-content:flex-end}.showcase-moves button{width:48px}.showcase-editor-actions{bottom:-20px}.showcase-editor-actions button{flex:1}}

.showcase-thumbnail{height:58px;overflow:hidden;border-radius:6px;background:#242528;display:grid;place-items:center}.showcase-thumbnail img{width:100%;height:100%;object-fit:cover}.showcase-thumbnail span{font-size:7px;color:#d9bf8f;writing-mode:vertical-rl}.showcase-order-row{min-height:84px}
@media(max-width:600px),(max-height:480px){body.tour-running #main{padding-bottom:360px}}

.market-caption .market-remove{align-self:flex-start;min-height:36px;margin:0;padding:7px 0;border:0;background:transparent;color:#aab1bd;font-size:11px;text-align:left;text-decoration:underline;text-underline-offset:3px}
.market-caption .market-remove:hover{color:#e5cea3}.market-caption .market-remove:focus-visible{outline:2px solid #e5cea3;outline-offset:3px}

/* Shared company attribution, with Carquive help links kept easy to reach. */
.shell>footer .footer-branding{display:flex;flex:1 1 32rem;flex-direction:column;gap:2px;min-width:0;font-size:11px;line-height:1.6;letter-spacing:normal;overflow-wrap:break-word}
.shell>footer .footer-branding a{font-size:inherit;text-underline-offset:3px;text-decoration-color:#ffffff40}
@media(max-width:700px){.shell>footer .footer-branding{flex-basis:100%;font-size:10px}}

/* Opt-in full-frame source renditions also stay intact in editor thumbnails. */
.showcase-thumbnail>img.preserve-full-frame{object-fit:contain}
