/* DUSTDROP v36 / ULTIMATE DESIGN
   Presentation-only layer on v35. Deliberately DOES NOT style roulette .arc,
   .arcitem, .pointer, .result, reel.js, or SFX: opening animation is locked. */
:root{
  --dd-bg:#060c14;--dd-panel:#101e2c;--dd-panel-2:#13283b;
  --dd-stroke:#28475e;--dd-stroke-hover:#497994;
  --dd-primary:#6bcfff;--dd-primary-soft:#a2dff9;
  --dd-white:#eff7fd;--dd-gray:#93adc0;
  --dd-radius:17px;
}
html{scroll-padding-top:18px}
body{background:radial-gradient(ellipse 780px 420px at 65% -120px,#163a54 0%,transparent 78%),#060c14!important;color:var(--dd-white)}
body:before{opacity:.18}
.app{isolation:isolate}
/* Foundations / consistent input and focus states */
button,[role="button"]{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #90e0ff!important;outline-offset:3px!important}
.button{border-radius:11px;background:linear-gradient(150deg,#2178aa,#2498cd 65%,#1b82b8);border:1px solid #66caf06b;color:#f5fcff;box-shadow:inset 0 1px #ffffff27,0 7px 15px #0004;font-weight:850;letter-spacing:.05px}
.button:not(:disabled):hover{filter:brightness(1.09)}
.button.outline{background:linear-gradient(160deg,#172e41,#0b1b2a);border-color:#365b75;box-shadow:inset 0 1px #ffffff0b;color:#d3e9f6}
.button:disabled{box-shadow:none;cursor:not-allowed}
.top{padding-bottom:16px;border-bottom-color:#2c4b61}
.top .brand{letter-spacing:.5px;text-shadow:0 0 16px #0d60913b}
.top-actions .audio-toggle,.top-actions .balance{border:1px solid #35556d;background:#0d1c2b!important;box-shadow:inset 0 1px #ffffff13}
.top-actions .balance{padding:9px 15px;font-size:12px;line-height:1.35}
.top-actions .balance .muted{font-size:10px;letter-spacing:.4px;text-transform:uppercase}
/* Desktop shell */
@media(min-width:1180px){
 .app{padding-top:20px;padding-bottom:64px}
 .nav{background:linear-gradient(170deg,#101e2b 0%,#0b1521 47%,#070e17 100%)!important;border-right-color:#244158!important}
 .nav button{border:1px solid transparent!important;border-radius:11px!important;min-height:48px!important}
 .nav button:hover{background:#142d42!important;border-color:#2b526c!important}
 .nav button.active{border-color:#438eb8!important;background:linear-gradient(110deg,#153e59,#102a40)!important;box-shadow:inset 3px 0 #6ad5ff,0 9px 19px #0004!important}
 .v30-sidebar-brand{padding-bottom:21px;margin-bottom:26px}
 .top{min-height:56px;padding-bottom:17px}
}
/* Mobile bottom nav: the six destinations remain unchanged */
@media(max-width:1179px){
 .nav{border:1px solid #3b5d73!important;background:#0a1726f5!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 -8px 31px #000b!important}
 .nav button.active{border:1px solid #5db5df!important;background:linear-gradient(160deg,#235777,#17374e)!important;color:#eafdff!important;box-shadow:inset 0 1px #ffffff29,0 0 14px #168dca36!important}
 .nav button:not(.active){color:#9db3c6}
}
/* HERO: graphite layout, more contrast, clear CTAs. Image is existing local artwork */
#home .v34-home-hero{min-height:264px;border-color:#3f6c84;border-radius:20px;background:radial-gradient(ellipse at 76% 34%,#2c709251,transparent 48%),linear-gradient(110deg,#182e42 0%,#0b1d2d 58%,#08131f 100%);box-shadow:inset 0 1px #ffffff21,0 21px 42px #0006}
#home .v34-home-hero:after{content:"";position:absolute;inset:auto 0 0;height:2px;background:linear-gradient(90deg,transparent,#48bfed9e,transparent);pointer-events:none}
#home .v34-home-copy{padding:32px 30px}
#home .v34-home-copy h1{font-size:clamp(30px,4.1vw,48px);letter-spacing:-1.6px;line-height:1.08;margin:13px 0 12px}
#home .v34-home-copy h1 em{color:#7bd6ff}
#home .v34-home-copy p{font-size:13px;color:#aec7d7;max-width:320px;margin-bottom:19px}
#home .v34-home-agent{right:1%;bottom:-14px;filter:drop-shadow(-8px 12px 28px #0009);opacity:.94}
#home .v34-home-hero-actions .button{min-height:47px;border-radius:11px}
#home .v34-overview{gap:12px;margin:14px 0 20px}
#home .v34-overview>div{padding:16px 19px;background:linear-gradient(150deg,#152b3e,#0e1a28);border-color:#31566e;border-radius:15px}
#home .v34-overview strong{font-size:clamp(21px,2.6vw,27px);color:#e7f6fe}
#home .v34-overview small{color:#a1bacb}
#home .v34-section-head{margin:26px 0 12px;align-items:center}
#home .v34-section-head h2{font-size:21px;letter-spacing:-.5px}
#home .v34-kicker{font-size:10px;color:#8edafa;letter-spacing:1.7px}
#home .v34-more{min-height:38px;border-color:#355d79;color:#c4e4f5;background:#112b40}
#home .v34-modes{gap:12px}
#home .v34-mode{min-height:151px;padding:17px 18px;background:linear-gradient(145deg,#17374b,#0d1b2a 81%);border:1px solid #38627b;border-radius:16px}
#home .v34-mode:nth-child(2){background:radial-gradient(circle at 90% 0%,#276d8952,transparent 63%),linear-gradient(145deg,#173045,#0d1c2c)}
#home .v34-mode:nth-child(3){background:radial-gradient(circle at 100% 0%,#54466948,transparent 56%),linear-gradient(145deg,#19293d,#0d1a29)}
#home .v34-mode-icon{border-radius:10px;background:#18394e;border-color:#4c859e}
#home .v34-mode b{font-size:17px}
#home .v34-ref-shortcut{border-color:#355a73;background:linear-gradient(110deg,#162e41,#0e1b29);box-shadow:inset 0 1px #ffffff14}
#home .v34-home-foot{border-top-color:#274457}
#home .v35-open-shortcut,#profile .v35-open-shortcut{border-color:#365e77;background:linear-gradient(105deg,#132c3e,#0d1b2a);padding:13px 16px;border-radius:14px;box-shadow:inset 0 1px #ffffff15}
#home .v35-open-shortcut strong,#profile .v35-open-shortcut strong{font-size:14px}
#home .v35-open-shortcut small,#profile .v35-open-shortcut small{line-height:1.4}
/* Catalog: reduce ornamentation, consistent artwork-to-price hierarchy */
#cases .v30-hero{border-color:#365c76;background:linear-gradient(100deg,#162c3e,#081624);border-radius:18px;box-shadow:inset 0 1px #ffffff16,0 14px 28px #0005}
#cases .v30-hero h1{font-weight:950;letter-spacing:-1.7px}
#cases .v30-catalog-toolbar{gap:11px}
#cases .v30-tab{border:1px solid #30516a;border-radius:10px;background:linear-gradient(155deg,#14293c,#0c1b2a);font-weight:800;min-height:44px}
#cases .v30-tab:hover{border-color:#65bce6}
#cases .v30-search input{background:#0d1d2d;border-color:#345a73}
#cases .section-heading.v30-section-title{margin:28px 0 13px;padding-left:15px}
#cases .section-heading.v30-section-title h2{font-size:21px!important}
#cases .section-heading.v30-section-title:before{height:24px;box-shadow:none;background:#57beee}
/* CASE CARD VISUALS ONLY. Don't affect selected case, modal, roulette or drop maths. */
#home .case,#cases .case{border-color:#315369!important;background:#0b1724!important;border-radius:15px!important;box-shadow:0 9px 20px #0005,inset 0 1px #ffffff16!important}
#home .case:hover,#cases .case:hover{border-color:#61b3df!important;box-shadow:0 13px 26px #0008,0 0 0 1px #3c95bd26!important}
#home .case .cube,#cases .case .cube{background:#08131f!important}
#home .case .cube:after,#cases .case .cube:after{box-shadow:inset 0 -13px 19px #0007}
#home .case>b,#cases .case>b{font-weight:850;font-size:13px!important;min-height:32px;margin:7px 7px 1px}
#home .case .price,#cases .case .price{margin:2px 9px 10px!important}
#home .case .price .cost,#cases .case .price .cost{background:linear-gradient(145deg,#17405a,#123049);border-color:#3a8fb9!important;color:#e2f7ff!important;border-radius:8px;box-shadow:inset 0 1px #ffffff20!important}
#home .case .price .meta,#cases .case .price .meta{color:#a9bdca!important}
#cases .v30-referral{border:1px solid #38617a;background:linear-gradient(120deg,#152d41,#0e1d2d);border-radius:15px}
#cases .v30-legal{border-top:1px solid #223c50;margin-top:25px;color:#849eb0}
/* Inventory: one control surface instead of visually independent boxes */
#inventory .v31-page-lead{margin-bottom:19px}
#inventory .v31-page-lead h2{letter-spacing:-1px}
#inventory .inventory-toolbar{border:1px solid #31546c;border-radius:18px;background:linear-gradient(160deg,#111f2d,#0b1723);padding:13px;margin:0 0 15px}
#inventory .inventory-summary{gap:9px}
#inventory .inventory-stat{border-color:#2a4b62;background:#111f2d;border-radius:12px;box-shadow:none;min-width:0}
#inventory .inventory-stat small{color:#a1b9ca}
#inventory .inventory-stat strong{color:#e9f6fc;overflow-wrap:anywhere}
#inventory .inventory-actions{margin-top:10px}
#inventory .sell-all-btn{border-color:#59bae77d}
#inventory .v31-inventory-filters{border:1px solid #315269;background:linear-gradient(160deg,#112536,#0d1c2b);border-radius:16px;padding:15px}
#inventory .v31-inventory-filters input,#inventory .v31-inventory-filters select{border:1px solid #355b74;background:#0b1a29;color:#e9f5fc;border-radius:10px;min-height:43px}
#inventory .v31-inventory-tiles .skin{background:linear-gradient(155deg,#12263a,#0a1724);border-color:#335470;border-radius:15px}
#inventory .v31-inventory-count{color:#95b1c5}
/* Reactor 3.0 visual polish: do not modify probability, result logic or core motion */
#upgrade .reactor-header{border-bottom-color:#2d5067;margin-bottom:15px}
#upgrade .reactor-header h2{letter-spacing:-1px}
#upgrade .rx-v33-flow{gap:8px;margin-bottom:20px}
#upgrade .rx-v33-step{background:linear-gradient(155deg,#152c3f,#0e1c29);border:1px solid #365b75;border-radius:13px}
#upgrade .rx-v33-step.active{background:linear-gradient(145deg,#1a4862,#123047);border-color:#5ab3dd;box-shadow:inset 0 1px #ffffff17}
#upgrade .rx-select-head{border-bottom:1px solid #25465d;padding-bottom:11px}
#upgrade .upgrade-item{border:1px solid #31546c;border-radius:12px;background:#102133;box-shadow:inset 0 1px #ffffff0b;min-width:0}
#upgrade .upgrade-item.selected{border-color:#68bfea;background:#183b52;box-shadow:inset 0 0 0 1px #70c9ed3d}
#upgrade .rx-presets{background:linear-gradient(160deg,#142c3e,#0d1b29);border:1px solid #365d77;border-radius:15px}
#upgrade .rx-preset{border-radius:10px}
#upgrade .rx-v33-search input{background:#0e2131;border-color:#35607a;border-radius:11px}
#upgrade .rx-v33-next{background:linear-gradient(100deg,#194967,#153b54);border-color:#4c9ac3;border-radius:12px}
#upgrade .reactor-lab{border-color:#3c6c85;background:radial-gradient(ellipse at 50% 38%,#2056775c 0%,#10283d 56%,#0b1826 94%);box-shadow:inset 0 1px #ffffff18,0 20px 38px #0005}
#upgrade .rx-equipped{border-color:#315974;background:linear-gradient(155deg,#16344a,#0d1d2d);border-radius:13px}
#upgrade .rx-go{border-radius:12px}
#upgrade .rx-v33-risk{color:#b0c5d3}
/* Tactical CLUTCH: one restrained combat palette, strong hierarchy. */
#clutch .clutch-hero{border:1px solid #42647d;border-radius:18px;background:#102438;box-shadow:0 14px 30px #0006,inset 0 1px #ffffff11}
#clutch .clutch-hero h2{letter-spacing:-1px}
#clutch .cl-v33-command{background:linear-gradient(120deg,#17374c,#0d2030);border:1px solid #3f6b82;box-shadow:inset 0 1px #ffffff18;border-radius:13px}
#clutch .clutch-section{background:linear-gradient(150deg,#122a3b,#0c1a29);border-color:#355a74;border-radius:17px;box-shadow:inset 0 1px #ffffff0b}
#clutch .clutch-level{background:linear-gradient(155deg,#193349,#101e2d);border:1px solid #375f77;border-radius:12px}
#clutch .clutch-level.active{border-color:#77d9f3;box-shadow:inset 0 0 0 1px #9bddec32,0 10px 18px #0004}
#clutch .clutch-progress{border-color:#31536b}
#clutch .clutch-node{border-radius:10px}
#clutch .clutch-prize{background:linear-gradient(145deg,#142f43,#0e1d2c);border-color:#315c75;border-radius:13px}
#clutch .clutch-enemy{border:1px solid #426d85;background:#122637;border-radius:13px;box-shadow:inset 0 1px #ffffff0f}
#clutch .clutch-enemy.selectable:hover{border-color:#89c9e9}
#clutch .cl-v33-risk{background:#27242063}
/* Profile: distinctive header + compact statistics */
#profile .v34-profile-top{border-color:#3c6781;background:radial-gradient(circle at 87% -15%,#37759447,transparent 52%),linear-gradient(130deg,#152e42,#0d1d2b);border-radius:18px;box-shadow:inset 0 1px #ffffff19}
#profile .v34-profile-avatar{border-radius:17px;background:linear-gradient(145deg,#215476,#11314b);box-shadow:inset 0 1px #ffffff2a,0 12px 25px #0006}
#profile .v34-rank-card{border-color:#335a71;background:linear-gradient(150deg,#142b3e,#0b1a29);border-radius:16px}
#profile .v34-profile-stats>div{border-color:#31546c;background:#102334;border-radius:13px}
#profile .v34-profile-grid>a,#profile .v34-profile-grid>button{border-color:#345a70;border-radius:12px}
#profile .v34-details{border-color:#32556d;background:linear-gradient(150deg,#13283a,#0c1c2b);border-radius:13px}
/* Referrals: help, code and case are distinct logical zones */
#referrals .v34-ref-hero{background:radial-gradient(circle at 88% 26%,#3c74803b,transparent 45%),linear-gradient(120deg,#183449,#0d1b29);border-color:#39657e;border-radius:20px}
#referrals .v34-ref-content{border-color:#365971}
#referrals .v34-ref-content>div{min-width:0}
#referrals .v34-ref-content .panel{border-color:#365a72}
#referrals .v34-ref-code{letter-spacing:1.1px;overflow-wrap:anywhere}
#referrals .v34-details{border-color:#305671;border-radius:12px}
/* Online alpha: unify with demo aesthetic while preserving disconnected warnings */
#online .v35-alpha>header{border-color:#2f5168}
#online .v35-card{border-color:#305970;background:linear-gradient(160deg,#122c3e,#0b1b29);border-radius:16px}
#online .v35-stats div{border-color:#31546c;background:#112738}
#online .v35-card select{border-color:#35607a;background:#0c1e2e}
#online .v35-status{border-color:#365b70;background:#102536}
#online .v35-status[data-kind=error]{border-color:#945e62;background:#35242b;color:#ffd5cf}
/* Layout & touch tuning */
@media(min-width:760px) and (max-width:1179px){
 .app{padding-inline:22px}
 #home .v34-overview{gap:11px}
 #home .v34-home-agent{right:4%}
}
@media(max-width:759px){
 .app{padding-bottom:calc(132px + env(safe-area-inset-bottom))}
 .top{gap:8px;margin-bottom:15px}
 .top .brand{font-size:clamp(21px,6.4vw,25px)}
 .top-actions{gap:7px}
 .top-actions .balance{font-size:11px;padding:8px 10px}
 .top-actions .balance .muted{font-size:9px}
 .audio-toggle{font-size:11px;padding:9px 10px}
 #home .v34-home-hero{min-height:258px}
 #home .v34-home-copy{padding:24px 18px;max-width:100%}
 #home .v34-home-copy h1{font-size:clamp(28px,8vw,36px);max-width:240px}
 #home .v34-home-copy p{font-size:11px;max-width:170px}
 #home .v34-home-agent{width:214px;height:235px;right:-22px;bottom:-11px;opacity:.85}
 #home .v34-home-hero-actions{max-width:185px}
 #home .v34-home-hero-actions .button{width:100%;min-height:42px;font-size:11px;padding:10px 12px}
 #home .v34-overview{gap:8px;margin:11px 0 17px}
 #home .v34-overview>div{padding:11px 9px;border-radius:12px}
 #home .v34-overview strong{font-size:17px;letter-spacing:-.4px;white-space:normal;overflow-wrap:anywhere}
 #home .v34-overview small{font-size:8px;letter-spacing:.15px}
 #home .v34-section-head{margin-top:22px}
 #home .v34-section-head h2{font-size:19px}
 #home .v34-modes{gap:8px}
 #home .v34-mode{min-height:137px;padding:12px;border-radius:13px}
 #home .v34-mode b{font-size:13px}
 #home .v34-mode small{font-size:10px}
 #home .v34-mode-icon{width:33px;height:33px;font-size:19px;margin-bottom:6px}
 #home .v34-ref-shortcut{margin:23px 0 16px;padding:9px;gap:9px}
 #home .v34-ref-shortcut img{width:88px}
 #cases .v30-hero{border-radius:15px}
 #cases .v30-hero-copy{padding:21px 19px}
 #cases .v30-hero h1{font-size:clamp(27px,8vw,35px)}
 #cases .v30-catalog-toolbar{margin:14px 0 17px}
 #cases .v30-tab{padding:8px 6px;font-size:10px}
 #cases .v30-tab-icon{font-size:13px}
 #cases .section-heading.v30-section-title{margin:23px 0 10px}
 #cases .section-heading.v30-section-title h2{font-size:18px!important}
 #home .case>b,#cases .case>b{font-size:12px!important;min-height:30px}
 #home .case .price .meta,#cases .case .price .meta{font-size:9px!important}
 #home .case .price .cost,#cases .case .price .cost{font-size:11px!important;padding:6px 7px}
 #inventory .inventory-toolbar{padding:9px}
 #inventory .inventory-summary{gap:7px}
 #inventory .inventory-stat{padding:11px 12px}
 #inventory .inventory-stat small{font-size:9px}
 #inventory .inventory-stat strong{font-size:17px}
 #inventory .v31-inventory-filters{padding:11px;gap:9px}
 #inventory .v31-inventory-filters input,#inventory .v31-inventory-filters select{font-size:12px}
 #upgrade .rx-v33-flow{gap:6px}
 #upgrade .rx-v33-step{border-radius:10px}
 #upgrade .rx-presets{border-radius:13px}
 #upgrade .reactor-lab{border-radius:18px}
 #clutch .clutch-hero{border-radius:15px}
 #clutch .cl-v33-command{border-radius:12px}
 #clutch .clutch-section{border-radius:14px}
 #profile .v34-profile-top{border-radius:16px;padding:15px}
 #profile .v34-profile-avatar{width:60px;height:60px;border-radius:14px}
 #profile .v34-profile-identity h2{font-size:19px}
 #profile .v34-rank-card{padding:14px}
 #referrals .v34-ref-hero{border-radius:16px}
 .nav{padding-top:6px!important}
 .nav button{min-height:50px!important}
}
@media(max-width:345px){
 .app{padding-inline:9px}
 .top-actions .audio-toggle{padding-inline:7px}
 #home .v34-home-agent{right:-36px;opacity:.75}
 #home .v34-home-copy h1{font-size:27px}
 #home .v34-overview>div{padding:10px 7px}
 #home .v34-overview strong{font-size:15px}
 #home .v34-mode{padding:10px 8px}
 #home .v34-mode b{font-size:12px}
 #cases .v30-tab{font-size:9px}
 #inventory .inventory-stat{padding:9px}
}
@media(prefers-reduced-motion:reduce){
 #home .v34-mode,#home .case,#cases .case{transition:none!important}
}
