/* DUSTDROP v27 — NIGHT SHIFT / unified premium graphite design system.
   Additive v26 layer. Existing JS mechanics are not restyled away. */
:root{
  --bg:#070b10;--panel:#111a25;--border:#273b4e;
  --blue:#79ccf5;--muted:#8da2b5;--ice:#79ccf5;
  --line:#273849;--surface:#101a25;--surface-2:#152332;--ink:#eaf1f8;
}
html{background:#070b10}
body{color:#edf3f8;background:radial-gradient(ellipse 88% 610px at 52% -105px,#142739 0%,#0b131c 55%,#070b10 100%) fixed;letter-spacing:-.008em}
body:before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:repeating-linear-gradient(122deg,transparent 0,transparent 135px,#81cdff04 137px,#81cdff04 139px,transparent 140px,transparent 320px);opacity:.6}
.app{max-width:1040px;padding:24px 24px 128px}
.top{padding:4px 0 19px;margin-bottom:23px;border-bottom:1px solid #243748;align-items:center}
.brand{font-size:27px;font-weight:950;letter-spacing:1.2px;text-shadow:none}
.brand:before{background:linear-gradient(135deg,#7ccff0,#2e769a);filter:none;width:12px;height:15px}
.brand b{color:#79c8f0}
.top>.muted,.top .muted{color:#8b9eae}
.top>div:first-child>.muted{font-size:11px;letter-spacing:.3px;margin-top:4px}
.top-actions{gap:8px}
.audio-toggle,.balance{background:#101e2b;border:1px solid #2a4258;box-shadow:inset 0 1px #ffffff0b;}
.audio-toggle{color:#aacbde;border-radius:12px;min-height:44px;padding:11px 14px;font-size:12px}
.balance{padding:9px 12px;border-radius:12px;font-size:13px;color:#e8f4fb}
.balance .muted{font-size:10px}
.banner{border:1px solid #31536a;background:linear-gradient(108deg,#102435ed,#11273ad9 66%,#0a1523),url('assets/hero-awp.webp') right center/auto 125% no-repeat;box-shadow:0 25px 45px #0004,inset 0 1px #ffffff13;border-radius:20px}
.banner:before{background:linear-gradient(90deg,#07121b47,transparent)}
.banner strong{font-weight:950;letter-spacing:-1.3px}
.banner strong span{color:#8ddaf7}
.banner .button,.button,.sell-all-btn{background:linear-gradient(145deg,#278ec0,#166894);color:#f6fcff;border:1px solid #5eb8e155;box-shadow:inset 0 1px #ffffff18,0 8px 17px #050e1733;border-radius:12px;transition:background .18s ease,transform .18s ease}
.button:hover:not(:disabled){background:linear-gradient(140deg,#389cc8,#207ba7)}
.button:focus-visible{outline:2px solid #a9e3ff;outline-offset:3px}
.button.outline,.outline{background:#142333;color:#c6ddec;border:1px solid #31495c;box-shadow:none}
.page h2{font-weight:900;letter-spacing:-.7px}
.section-heading{margin-top:23px}
.section-heading h2{font-size:21px;color:#e9f1f7}
.section-heading>span{color:#8bb4c9;font-weight:750;font-size:11px;letter-spacing:1.5px}
/* ONE neutral card / one neutral price language. No case-dependent colour borders. */
.cards{gap:13px}
.case,.case.budget-case,.case.series-v27{
  padding:10px 10px 12px;border-radius:18px;border:1px solid #294357;
  background:linear-gradient(165deg,#162535 0%,#0e1823 74%);
  box-shadow:0 15px 28px #00000040,inset 0 1px #ffffff10;
  isolation:isolate;min-width:0;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.case:before,.case.series-v27:before{height:0!important;box-shadow:none!important;opacity:0!important}
.case:after{display:none!important}
.case:focus-visible{outline:2px solid #a4dbf6;outline-offset:3px}
.case:hover,.case.budget-case:hover,.case.series-v27:hover{border-color:#49718a;box-shadow:0 17px 31px #0006,inset 0 1px #ffffff16}
.case .cube,.case.budget-case .cube,.case.series-v27 .cube{
  height:auto;aspect-ratio:8/5;min-height:0;margin-bottom:11px;
  border-radius:12px;border:1px solid #294256;
  background:#0a131e;box-shadow:inset 0 0 0 1px #ffffff08;
}
.case .cube:before{display:none}
.case .cube img{width:100%;height:100%;object-fit:cover;object-position:center;transform:none!important;filter:none!important;}
.case .cube:after{box-shadow:inset 0 0 0 1px #ffffff11,inset 0 -15px 28px #0003}
.case b{font-size:15px;line-height:1.19;color:#f0f5f9;min-height:0;font-weight:880;letter-spacing:-.15px;text-shadow:none}
.case small{font-size:11px;color:#8fa2b5;line-height:1.27;min-height:29px;margin:5px 0 0}
.case .price,.case.budget-case .price,.case.series-v27 .price{
  display:flex;align-items:center;justify-content:space-between;gap:7px;
  min-width:0;min-height:45px;margin-top:11px;padding:9px 10px;
  border:1px solid #304b60!important;border-radius:10px;
  background:linear-gradient(180deg,#182b3a,#14212e)!important;
  box-shadow:inset 0 1px #ffffff10!important;color:#e2eff7!important;
}
.case .price>span{min-width:0}
.case .price .cost,.case.budget-case .price .cost,.case.series-v27 .price .cost{
  font-size:13.5px!important;font-weight:950!important;white-space:nowrap!important;
  color:#b4e8ff!important;letter-spacing:-.22px!important;
}
.case .price .meta,.case.budget-case .price .meta,.case.series-v27 .price .meta{
  margin:0!important;border:1px solid #365268!important;border-radius:7px!important;
  background:#1b3245!important;color:#bdd4e4!important;
  padding:6px 7px!important;font-size:9px!important;letter-spacing:0!important;
  white-space:nowrap!important;font-weight:850!important;box-shadow:none!important;
}
.series-label{display:inline-flex;margin:2px 0 7px;letter-spacing:1.05px;font-size:9px;font-weight:850;color:#7dbcdc}
/* New release has its own chapter header, not another flashy promotion. */
.collection-v27{border:1px solid #2d5067;border-radius:17px;background:linear-gradient(125deg,#15283a 3%,#0c1c2b 75%,#071620);padding:16px 18px 15px;margin:29px 0 13px;position:relative;overflow:hidden;box-shadow:inset 0 1px #ffffff0d}
.collection-v27:after{content:"";position:absolute;right:-42px;top:-75px;width:280px;height:220px;background:radial-gradient(ellipse,#478dba24,transparent 70%);pointer-events:none}
.collection-v27-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:12px;margin-bottom:14px;border-bottom:1px solid #ffffff16}
.collection-number{font-size:10px;font-weight:900;color:#8dd2f6;letter-spacing:1.3px}
.collection-mini{font-size:9px;font-weight:700;letter-spacing:1.1px;color:#799cb3}
.collection-v27-intro{display:flex;align-items:center;justify-content:space-between;gap:12px}
.collection-kicker{font-size:9px;letter-spacing:1.3px;color:#a2bacb;font-weight:800}
.collection-v27 h2{font-size:28px;letter-spacing:-1.6px;margin:4px 0 3px;color:#edf5fa;line-height:1.05}
.collection-v27 h2 em{font-style:normal;color:#74c7ee}
.collection-v27 p{font-size:11px;line-height:1.5;color:#9cb6c8;max-width:410px;margin:7px 0 0}
.collection-symbol{font-size:56px;font-weight:300;color:#60a4c58a;line-height:1}
.newcase-grid{margin-bottom:26px}
/* Global surfaces and game actions. */
.panel,.economy-card,.inventory-stat,.case-prices{background:linear-gradient(150deg,#132333,#0e1925);border-color:#294255;box-shadow:inset 0 1px #ffffff0c}
.skin,.owned .skin{background:linear-gradient(165deg,#152535,#0d1722);border-color:#2d4153;border-radius:15px}
.steam-price strong{color:#9edfff}
.steam-price a{color:#9cd9f7}
.inventory-stat strong{color:#e9f4fa}
.sell-all-btn{background:linear-gradient(130deg,#267eac,#236f9a);box-shadow:none}
.modal{background:#0d1721;border:1px solid #355366;border-radius:19px;box-shadow:0 40px 100px #000a}
.overlay{background:#03070ddf;backdrop-filter:blur(6px)}
.close{background:#182939;border:1px solid #30495f;color:#c9deeb}
.arc{background:radial-gradient(circle at 50% 58%,#183449,#08121b 68%);border-color:#355169}
.arc:before{border-color:#73b7d754}
.pointer{color:#9dddfd}
.nav{
  max-width:706px;width:min(706px,calc(100% - 18px));
  bottom:max(8px,env(safe-area-inset-bottom));padding:8px;gap:6px;
  background:#0b1621f2;border:1px solid #344c60;
  box-shadow:0 22px 55px #000a,inset 0 1px #ffffff13;
  border-radius:21px;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)
}
.nav button{min-width:0;min-height:56px;gap:5px;border-radius:13px;background:transparent;color:#96aabd;box-shadow:none}
.nav button .nav-icon{width:22px;height:22px}
.nav button svg{width:22px;height:22px;stroke-width:1.8}
.nav button .nav-label{font-size:10px;letter-spacing:0;font-weight:740}
.nav button.active,.nav button[data-page="inventory"].active,.nav button[data-page="clutch"].active{
  background:linear-gradient(160deg,#244f6c,#19374f)!important;
  border-color:#5ba9ce!important;
  color:#f3fbff!important;
  box-shadow:inset 0 1px #e5f5ff19,0 5px 13px #02091045!important;
}
.nav button.active .nav-label,.nav button.active .nav-icon{color:#e4f5fd!important}
.nav button:focus-visible{outline:2px solid #a3dcf8;outline-offset:2px}
/* Keep reactor/clutch mechanics. Only tone down contrasting panel borders. */
.rx-itemgrid .rx-item,.rx-reactor,.reactor-header,.clutch-section{border-color:#2b465c}
.reactor-header h2{letter-spacing:-1px}
/* Tablet and desktop: grid uses available space; mobile retains two-column Telegram rhythm. */
@media(min-width:620px){.cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.case{padding:12px 12px 14px}.case b{font-size:17px}.case small{font-size:12px}.case .price .cost{font-size:15px!important}.collection-v27{padding:24px 25px}.collection-v27 h2{font-size:39px}.collection-v27 p{font-size:13px}.top{margin-bottom:28px}}
@media(min-width:900px){.cards{grid-template-columns:repeat(4,minmax(0,1fr))}.tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:420px){.app{padding:17px 12px 120px}.top{gap:7px}.brand{font-size:24px}.brand:before{width:10px;height:13px;margin-right:5px}.top-actions{gap:6px}.audio-toggle{padding:9px 10px;font-size:11px}.balance{padding:8px 9px;font-size:12px}.cards{gap:10px}.case,.case.budget-case,.case.series-v27{padding:8px 8px 10px;border-radius:15px}.case .cube{border-radius:10px;margin-bottom:9px}.case b{font-size:14px}.case .price,.case.budget-case .price,.case.series-v27 .price{gap:4px;padding:8px 7px;min-height:41px}.case .price .cost{font-size:12px!important}.case .price .meta{padding:5px!important;font-size:8px!important}.case small{font-size:10px;min-height:27px}.collection-v27{padding:14px;margin-top:23px}.collection-v27 h2{font-size:27px}.collection-symbol{font-size:38px}.nav{width:calc(100% - 13px);gap:3px;padding:6px 5px}.nav button{min-height:51px;border-radius:12px;gap:4px}.nav button .nav-label{font-size:8.5px}.nav button .nav-icon,.nav button svg{width:20px;height:20px}}
@media(max-width:345px){.app{padding-inline:9px}.brand{font-size:22px}.audio-toggle{font-size:0;width:37px;height:37px;min-height:37px;padding:0}.audio-toggle:before{content:'♫';font-size:18px;color:#8ed8fb}.balance{padding:7px;font-size:11px}.case .price .cost{font-size:11px!important}.case .price .meta{font-size:7.3px!important;padding:4px 3px!important}.case b{font-size:13px}.case small{font-size:9px}.collection-v27-top{flex-wrap:wrap}.nav button .nav-label{font-size:8px!important;letter-spacing:-.35px}.nav{gap:2px}.nav button{padding-inline:0}}
@media(prefers-reduced-motion:reduce){.case,.nav button,.button{transition:none!important}}
/* Remove leftover v17 orange section-marker styling. */
.section-heading{border-left:3px solid #5ba9cc;padding-left:11px}
.section-heading>span{color:#91b8cd}
@media(max-width:345px){.section-heading h2{font-size:16px}}
@media(max-width:345px){
 .case .price,.case.budget-case .price,.case.series-v27 .price{flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;padding:7px 8px;min-height:56px}
 .case .price .meta,.case.budget-case .price .meta,.case.series-v27 .price .meta{font-size:8px!important;max-width:100%}
 .case .price .cost,.case.budget-case .price .cost,.case.series-v27 .price .cost{font-size:12px!important}
}
