/* DUSTDROP v32 · Premium Polish — preserves v31 mechanics and stored game economy. */
:root{--v32-ink:#eff8ff;--v32-muted:#94b6ce;--v32-edge:#33536c;--v32-blue:#5bc8ff}
button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #86dfff!important;outline-offset:3px}
button:disabled{cursor:not-allowed}
/* A clear hierarchy on every page, with restrained consistent accents. */
#home .banner{border-color:#335e7a;background:linear-gradient(112deg,#173750,#0d2031 75%);border-radius:19px}
#home .banner strong{font-size:clamp(26px,3.6vw,36px);letter-spacing:-1px}
#home .catalog-overview .overview-pill{min-height:68px;border-color:#2d5067}
#home .overview-pill:hover{border-color:#5fc9f7}
#home .clutch-quick{border-color:#3f6882}
#referrals .v32-ref-heading{border-bottom:1px solid #29495e;margin-bottom:18px;padding:0 0 15px}
#referrals .v32-ref-heading h2{font-size:30px;margin:7px 0 5px}
#referrals .v32-ref-heading p{margin:0;color:#8eafc5;font-size:12px;line-height:1.5}
#referrals .panel{border-color:#2c4a61;background:linear-gradient(135deg,#12283a,#0b1827)}
#referrals .v32-ref-case{display:flex;align-items:center;gap:16px}
#referrals .v32-ref-case img{width:150px;max-width:40%;aspect-ratio:8/5;object-fit:cover;border-radius:11px;border:1px solid #375774}
#referrals .v32-ref-case b{font-size:16px}
#referrals .v32-ref-case p{font-size:12px;color:#92b0c7;margin:6px 0 12px}
#referrals .v32-ref-case button{font-size:12px}
#inventory .v31-page-lead,#profile .v31-profile-hero{scroll-margin-top:20px}
#inventory .inventory-toolbar{border-color:#335b73}
#inventory .v31-inventory-filters{box-shadow:inset 0 1px #ffffff10}
#profile .v31-profile-hero{background:radial-gradient(ellipse at 85% 5%,#2568944d,transparent 55%),linear-gradient(115deg,#112c45,#0a1a29)}
#profile .v31-stat-grid .v31-stat{border-color:#315069}
/* Primary interaction: open case now, exact odds only when explicitly requested. */
#modal .modal:has(.v32-case-screen){width:min(552px,100%);padding:13px 15px 16px;border-color:#385c76;border-radius:21px;max-height:calc(100dvh - 20px);box-shadow:0 26px 90px #000c}
#modal .modal:has(.v32-case-screen)> .row{min-height:41px;margin-bottom:8px;border-bottom:1px solid #28475e;padding-bottom:10px}
#modal .modal:has(.v32-case-screen)> .row> b{color:#82c9e9;font-size:11px;letter-spacing:1.8px}
#modal .modal:has(.v32-case-screen) .close{font-size:12px;background:#11283b;color:#b1c9da}
.v32-case-screen{min-width:0}
.v32-case-banner{position:relative;border-radius:15px;overflow:hidden;background:#0b1928;border:1px solid #315873;isolation:isolate}
.v32-case-banner:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#05121b23 0%,transparent 47%,#091a2a87 100%);pointer-events:none}
.v32-case-cover{display:block;width:100%;height:192px;object-fit:cover;object-position:center center}
.v32-case-collection{position:absolute;z-index:2;left:12px;top:12px;display:inline-block;padding:7px 10px;border:1px solid #91daff57;border-radius:8px;background:#071824df;color:#c5ebfd;letter-spacing:1.4px;font-size:9px;font-weight:900;text-shadow:0 1px 6px #000}
.v32-case-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:15px 1px 13px}
.v32-case-top>div:first-child{min-width:0}
.v32-mini-label{color:#8fb1c7;font-size:9px;font-weight:900;letter-spacing:1.1px}
.v32-case-top h2{font-size:29px;letter-spacing:-1px;line-height:1.09;margin:5px 0 0;color:#f2faff}
.v32-case-price{padding:10px 14px;border:1px solid #355a71;background:linear-gradient(155deg,#182d3f,#0e1d2c);border-radius:12px;min-width:125px;text-align:right;flex-shrink:0}
.v32-case-price small{display:block;color:#8eaac1;font-size:9px;font-weight:850;letter-spacing:1px}
.v32-case-price strong{display:block;margin-top:4px;color:#d4f1ff;font-size:18px;white-space:nowrap;letter-spacing:-.25px}
.v32-case-actions{display:grid;grid-template-columns:1fr;gap:9px}
.v32-case-actions button{width:100%;min-height:49px;border-radius:13px;touch-action:manipulation}
.v32-case-spin{display:flex;align-items:center;justify-content:center;gap:14px;font-size:15px;letter-spacing:.3px;min-height:56px!important;border:1px solid #a6e7ff78!important;background:linear-gradient(112deg,#0872ac,#1fb9f0 58%,#096caa)!important;box-shadow:inset 0 1px #d7f7ff48,0 10px 25px #068ddb3a;color:#fff!important}
.v32-case-spin span{font-size:23px;line-height:.6;font-weight:400}
.v32-show-drops{display:flex;align-items:center;justify-content:center;gap:10px;background:#0f2232!important;color:#bcdced!important;font-size:12px;border:1px solid #34526a!important;box-shadow:none!important}
.v32-show-drops b{font-size:21px;line-height:0;transition:transform .2s ease}
.v32-show-drops[aria-expanded="true"]{border-color:#4997bf!important;color:#dff7ff!important}
.v32-show-drops[aria-expanded="true"] b{transform:rotate(180deg)}
.v32-case-state{text-align:center;min-height:15px;margin:10px 0 0;font-size:11px;color:#8eafc4;line-height:1.3}
.v32-case-legal{text-align:center;border-top:1px solid #223d51;margin-top:15px;padding:10px 2px 0;font-size:10px;color:#7396ac;line-height:1.45}
.v32-case-contents{padding:13px 0 4px;margin:11px 0 0;border-top:1px solid #31516a}
.v32-case-contents[hidden]{display:none!important}
.v32-contents-header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}
.v32-contents-header h3{font-size:17px;margin:0;color:#e9f7ff}
.v32-contents-header span{font-size:10px;color:#8eacc0}
.v32-case-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:11px}
.v32-case-metrics>div{border:1px solid #365570;background:#132a40;border-radius:10px;padding:10px 12px}
.v32-case-metrics small{color:#95b8cf;display:block;font-size:9px;letter-spacing:.3px}
.v32-case-metrics strong{display:block;margin-top:3px;color:#a5e6ff;font-size:19px}
.v32-drop-list{display:grid;grid-template-columns:1fr;gap:7px}
.v32-drop-item{min-width:0;display:grid;grid-template-columns:77px minmax(0,1fr) auto;gap:9px;align-items:center;border:1px solid #2b455b;border-left:3px solid var(--rarity,#587d92);border-radius:9px;background:linear-gradient(110deg,#122535,#0c1c2a);padding:7px 8px 7px 5px}
.v32-drop-item img,.v32-no-drop{display:block;width:77px;height:56px;object-fit:contain;background:#09172788;border-radius:7px}
.v32-no-drop{display:grid;place-items:center;color:#8499a9;font-size:29px}
.v32-drop-name{min-width:0;overflow:hidden}
.v32-drop-name b{display:block;color:#e8f6ff;font-size:11px;line-height:1.2;overflow-wrap:anywhere}
.v32-drop-name span{display:block;color:#8cacc1;margin-top:4px;font-size:9px;line-height:1.3;overflow-wrap:anywhere}
.v32-drop-odds{font-size:12px;color:#b5e6ff;white-space:nowrap;font-variant-numeric:tabular-nums}
.v32-odds-note{font-size:10px;color:#87a8be;line-height:1.5;margin:10px 3px 8px}
/* More controlled gameplay feedback and result presentation. */
.v31-reveal .v31-win-art{height:220px;border-radius:19px}
.v31-reveal .v31-result-kicker{letter-spacing:1.6px}
.v31-reveal .trade-actions{gap:8px}
.v31-reveal .trade-actions button{min-width:0;white-space:normal;font-size:12px}
.v31-reel-stage .arc{box-shadow:inset 0 1px 0 #ffffff12,inset 0 -18px 28px #0008}
/* REACTOR: milled-metal housing; upgrades remain controlled by existing engine. */
#upgrade .reactor-header{border-bottom:1px solid #274b61;margin-bottom:15px;padding-bottom:17px}
#upgrade .reactor-lab{border-color:#41627b;border-radius:23px;background:radial-gradient(ellipse at 50% 39%,#1d537378 0%,#0e263b 45%,#081825 82%);box-shadow:inset 0 1px #ffffff20,0 21px 48px #0007}
#upgrade .reactor-lab:after{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,transparent 10%,#73cfffa5 48%,transparent 90%);pointer-events:none}
#upgrade .rx-pair{gap:9px}
#upgrade .rx-equipped{border-color:#3c5c72;background:linear-gradient(160deg,#1b3448,#0c1c2b);box-shadow:inset 0 1px #ffffff1a,0 9px 24px #0003;min-height:160px}
#upgrade .rx-equipped.target{border-color:#36708c}
#upgrade .rx-equipped .rx-itemprice{color:#a5e6ff}
#upgrade .rx-exchange{color:#9ee9ff;text-shadow:0 0 10px #18b9fa}
#upgrade .rx-stage{height:min(284px,84vw);width:min(284px,84vw);margin:14px auto 8px;filter:drop-shadow(0 10px 20px #0006)}
#upgrade .rx-halo{inset:3px;border-color:#3389b86d}
#upgrade .rx-outer{inset:17px;border:3px solid #244d66;box-shadow:0 0 20px #139fd82c,inset 0 0 18px #0a2036}
#upgrade .rx-outer:after{content:"";position:absolute;inset:4px;border-radius:50%;border:1px solid #8dd9ff25;box-shadow:inset 0 0 18px #0bb9fb25}
#upgrade .rx-core{inset:59px;border:1px solid #477894;background:radial-gradient(circle at 47% 30%,#265475,#071724 77%);box-shadow:inset 0 0 33px #000a,0 0 32px #168ad83d}
#upgrade .rx-core strong{font-size:clamp(28px,4vw,39px);color:#e6faff}
#upgrade .rx-circle{inset:30px;box-shadow:0 0 27px #188ac93d}
#upgrade .rx-ring-ticks{inset:24px;opacity:.8}
#upgrade .rx-go{border-radius:14px;box-shadow:0 11px 22px #0278c43b}
#upgrade .rx-presets{border-color:#315b77}
#upgrade .rx-presets-options .rx-preset{border-radius:11px}
#upgrade .rx-warning{color:#bed1dd;max-width:560px;margin:0 auto}
#upgrade .rx-select-head{border-left:3px solid #52c8ff;padding-left:12px}
#upgrade .rx-itemgrid .upgrade-item{border-radius:13px;transition:background .14s,border-color .14s,transform .14s}
#upgrade .rx-itemgrid .upgrade-item:active{transform:scale(.98)}
#upgrade .rx-stage[data-phase="win"]{filter:drop-shadow(0 0 27px #19c99970)}
#upgrade .rx-stage[data-phase="lose"]{filter:drop-shadow(0 0 16px #e1467052)}
/* CLUTCH: operations UI, four-round progression, risk is clear in the content not gamified by false odds. */
#clutch .clutch-hero{border-color:#406b85;background-color:#10283d;min-height:208px;border-radius:19px;box-shadow:inset 0 1px #ffffff17,0 19px 39px #0006}
#clutch .clutch-hero h2{letter-spacing:-1.5px}
#clutch .clutch-section{background:linear-gradient(155deg,#10273b,#0a1826);border-color:#33556b;border-radius:18px}
#clutch .clutch-levels{gap:9px}
#clutch .clutch-level{border-radius:13px;border-color:#3b5e75;background:linear-gradient(150deg,#142b40,#0b1c29)}
#clutch .clutch-level.active{border-color:#79d7ff;background:radial-gradient(circle at 50% 0,#23617c75,transparent 76%),linear-gradient(160deg,#15364f,#0d263a);box-shadow:inset 0 1px #ffffff24,0 0 0 1px #62c7fa49}
#clutch .clutch-progress{border:1px solid #274961;background:#0b1e30;border-radius:13px;padding:12px 8px}
#clutch .clutch-node{min-width:0}
#clutch .clutch-opponents{gap:8px}
#clutch .clutch-enemy{border-radius:14px;border-color:#3c6580;box-shadow:inset 0 1px #ffffff1b,0 10px 20px #0008}
#clutch .clutch-enemy.selectable{border-color:#5c9bc0}
#clutch .clutch-enemy.selectable:focus-visible{border-color:#98e9ff}
#clutch .clutch-enemy.chosen{outline:2px solid #a3e7ff}
#clutch .clutch-fight-state{border-radius:11px;border-color:#305a77;min-height:44px}
#clutch .clutch-prize{border-radius:15px}
#clutch .clutch-notice{max-width:660px;margin:0 auto;color:#809fb5}
@media(min-width:960px){#upgrade .reactor-lab{max-width:800px;margin:0 auto}#upgrade .rx-itemgrid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:360px}#clutch .clutch-hero{min-height:225px}#clutch .clutch-opponents{gap:14px}}
@media(max-width:759px){
  #modal .modal:has(.v32-case-screen){width:100%;padding:10px;border-radius:17px;max-height:calc(100dvh - 12px)}
  .v32-case-cover{height:clamp(145px,45vw,185px)}
  .v32-case-top{margin:12px 1px 11px}
  .v32-case-top h2{font-size:22px}
  .v32-case-price{min-width:108px;padding:8px 10px}
  .v32-case-price strong{font-size:15px}
  .v32-case-actions{gap:8px}
  .v32-case-spin{min-height:53px!important;font-size:14px}
  .v32-show-drops{min-height:44px!important}
  .v32-case-legal{margin-top:12px}
  #upgrade .rx-stage{width:min(264px,76vw);height:min(264px,76vw)}
  #upgrade .rx-core{inset:55px}
  #upgrade .rx-equipped{min-height:146px}
  #clutch .clutch-hero{min-height:194px}
}
@media(max-width:350px){
  .v32-case-top h2{font-size:21px}
  .v32-case-collection{font-size:8px;top:8px;left:8px}
  .v32-case-price{min-width:99px}
  .v32-drop-item{grid-template-columns:55px minmax(0,1fr) auto;gap:6px}
  .v32-drop-item img,.v32-no-drop{width:55px;height:51px}
  .v32-drop-odds{font-size:10px}
  .v32-drop-name b{font-size:10px}
  .v32-drop-name span{font-size:8px}
  #upgrade .rx-pair{gap:4px}
  #upgrade .rx-stage{width:248px;height:248px}
  #upgrade .rx-core{inset:53px}
  #referrals .v32-ref-case{gap:8px}
}
@media(prefers-reduced-motion:reduce){.v32-show-drops b,#upgrade .rx-itemgrid .upgrade-item{transition:none!important}}
