:root {
  --bg:#080f0b;
  --panel:#0b180f;
  --panel2:#101d13;
  --lime:#b7ff24;
  --lime2:#d6ff43;
  --line:#304527;
  --muted:#a0a99d;
  --white:#f4f3e9;
  --red:#ff4254
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:100px
}

body {
  margin:0;
  background:#07100b;
  color:var(--white);
  font:14px/1.4 Arial,Helvetica,sans-serif;
  min-width:320px
}

button,a {
  -webkit-tap-highlight-color:transparent
}

button {
  font:inherit;
  cursor:pointer
}

a {
  color:inherit;
  text-decoration:none
}

.ambient {
  position:fixed;
  z-index:-1;
  inset:0;
  background:linear-gradient(180deg,rgba(3,10,6,.1),rgba(3,10,6,.52) 55%,#060d08 98%),url('assets/outpost.svg') center top/cover no-repeat;
  pointer-events:none
}

.ambient:after {
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse at 52% 22%,transparent 0%,rgba(0,0,0,.38) 65%,rgba(0,0,0,.7) 100%)
}

.wrap {
  width:min(1530px,calc(100% - 66px));
  margin:auto
}

.topbar {
  height:112px;
  display:flex;
  align-items:center;
  gap:20px
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  min-width:300px
}

.brand img {
  height:78px;
  width:78px;
  object-fit:cover;
  object-position:center 19%;
  border-radius:12px;
  filter:drop-shadow(0 3px 5px #000)
}

.brand span {
  font-family:Impact,'Arial Black',sans-serif;
  font-size:39px;
  letter-spacing:1px;
  color:#f5ebd4;
  text-shadow:2px 3px 0 #4b4934;
  white-space:nowrap
}

.nav {
  display:flex;
  align-items:center;
  gap:4px;
  flex:1;
  background:rgba(5,13,8,.88);
  border:1px solid #19281c;
  border-radius:12px;
  padding:8px
}

.navlink {
  white-space:nowrap;
  padding:14px 15px;
  font-size:12px;
  font-weight:900;
  border-radius:9px;
  color:#c1c6bc;
  transition:.2s
}

.navlink span {
  font-size:18px;
  vertical-align:-2px;
  margin-right:3px
}

.navlink:hover,.navlink.selected {
  color:#101a09;
  background:var(--lime);
  box-shadow:0 0 18px #b7ff2466
}

.account {
  display:flex;
  gap:10px;
  align-items:center
}

.steam {
  display:flex;
  align-items:center;
  gap:9px;
  border:1px solid #243127;
  background:rgba(6,13,10,.91);
  color:#e4e5de;
  border-radius:12px;
  padding:10px 15px;
  min-width:122px;
  text-align:left;
  font-size:15px
}

.steammark {
  font-size:27px
}

.steam small,.balance small {
  display:block;
  font-size:10px;
  color:#aab1a6
}

.balance {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:rgba(6,16,9,.94);
  border:1px solid #a8f327;
  border-radius:12px;
  padding:9px 10px 9px 15px;
  color:#f3f0e9;
  font-weight:900;
  font-size:18px;
  min-width:147px;
  text-align:left
}

.balance small {
  color:var(--lime);
  font-weight:900;
  margin-top:1px
}

.balance b {
  background:var(--lime);
  color:#17210a;
  border-radius:7px;
  padding:3px 10px;
  font-size:28px;
  box-shadow:0 0 15px #b7ff2455
}

.mobile-menu {
  display:none;
  background:#172317;
  color:#cfff5d;
  border:1px solid #5b8437;
  border-radius:8px;
  font-size:25px;
  padding:5px 12px
}

.live-strip {
  margin-top:33px;
  display:flex;
  align-items:stretch;
  gap:8px;
  height:99px;
  position:relative
}

.live-label {
  width:162px;
  flex-shrink:0;
  background:linear-gradient(120deg,#102016,#09120d);
  border:1px solid #42631c;
  border-radius:13px;
  padding:17px 15px;
  box-shadow:inset 0 0 24px #101f10
}

.live-label strong {
  display:block;
  font-size:17px;
  white-space:nowrap
}

.live-dot {
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--lime);
  box-shadow:0 0 13px var(--lime);
  margin-right:4px
}

.live-label span {
  display:block;
  color:#a4b1a0;
  font-size:11px;
  margin-top:7px
}

.live-label span b {
  color:var(--lime)
}

.live-label small {
  font-size:9px;
  color:#6e8565
}

.live-window {
  overflow:hidden;
  flex:1;
  mask-image:linear-gradient(90deg,black 0%,black 95%,transparent 100%)
}

.live-track {
  display:flex;
  width:max-content;
  gap:5px;
  animation:marquee 43s linear infinite
}

.live-window:hover .live-track {
  animation-play-state:paused
}

@keyframes marquee {
  to {
    transform:translateX(-50%)
  }
}

.drop-card {
  width:136px;
  height:99px;
  flex:none;
  border:1px solid #25332b;
  border-left:3px solid var(--rarity,#b7ff24);
  border-radius:9px;
  background:linear-gradient(160deg,#19201d,#070e0b);
  position:relative;
  overflow:hidden;
  text-align:left;
  color:#eee;
  padding:7px
}

.drop-card img {
  position:absolute;
  right:0;
  top:-1px;
  width:112px;
  height:61px;
  object-fit:cover;
  opacity:.85;
  mask-image:linear-gradient(0deg,transparent,#000 40%)
}

.drop-card strong {
  position:absolute;
  bottom:19px;
  left:8px;
  font-size:11px;
  z-index:1
}

.drop-card small {
  position:absolute;
  bottom:6px;
  left:8px;
  font-size:9px;
  color:#9a9d9b
}

.drop-card:hover {
  border-color:var(--lime)
}

.live-next {
  position:absolute;
  right:0;
  top:25px;
  z-index:2;
  width:40px;
  height:50px;
  background:#0b160e;
  color:#e8ffe3;
  border:1px solid #2a4524;
  border-radius:50%;
  font-size:17px
}

.dashboard {
  display:grid;
  grid-template-columns:minmax(0,2.05fr) minmax(355px,1fr);
  gap:12px;
  margin-top:19px
}

.panel {
  background:linear-gradient(135deg,rgba(10,24,14,.96),rgba(6,17,10,.97));
  border:1px solid #2a4126;
  border-radius:13px;
  box-shadow:0 16px 40px #0006,inset 0 0 40px #19321a18
}

.shop-panel {
  padding:18px 19px 12px;
  min-height:351px
}

.filters {
  display:flex;
  gap:7px;
  margin-bottom:17px;
  overflow-x:auto;
  padding-bottom:2px;
  scrollbar-width:thin
}

.filter {
  flex:1;
  white-space:nowrap;
  border:1px solid #1c2c20;
  background:#101d14;
  color:#c0c6bb;
  border-radius:9px;
  font-size:11px;
  font-weight:900;
  padding:14px 10px;
  transition:.2s
}

.filter:hover {
  color:#e9ffbb;
  border-color:#5d8136
}

.filter.active {
  background:var(--lime);
  color:#152207;
  border-color:#c9ff41;
  box-shadow:0 0 16px #aaff2850
}

.case-grid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:11px
}

.case-card {
  min-width:0;
  min-height:246px;
  background:linear-gradient(150deg,#0b1711,#08120d);
  border:1px solid #304c26;
  border-radius:10px;
  overflow:hidden;
  padding:0 14px 12px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  transition:transform .18s,border-color .18s,box-shadow .18s;
  text-align:left;
  color:#f1f3e7
}

.case-card:hover {
  transform:translateY(-4px);
  border-color:var(--lime);
  box-shadow:0 0 24px #b7ff2420
}

.case-picture {
  width:calc(100% + 28px);
  margin-left:-14px;
  height:152px;
  position:relative;
  background:radial-gradient(ellipse at 50% 70%,var(--glow,#25361e),transparent 70%)
}

.case-picture img {
  width:100%;
  height:100%;
  object-fit:contain;
  padding:4px;
  box-sizing:border-box;
  mix-blend-mode:normal
}

.case-card h3 {
  font-size:13px;
  margin:3px 0 8px;
  font-weight:900;
  white-space:nowrap
}

.case-foot {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:auto
}

.case-price {
  font-size:21px;
  font-weight:900;
  color:var(--lime)
}

.case-view {
  border:1px solid #405536;
  border-radius:7px;
  padding:5px 8px;
  color:#d5e4cd
}

.panel-hint {
  font-size:9px;
  letter-spacing:.5px;
  text-align:center;
  color:#6c8269;
  margin:10px 0 0
}

.panel-heading {
  display:flex;
  align-items:center;
  gap:10px
}

.panel-heading h2 {
  font-size:17px;
  margin:0;
  font-weight:900
}

.help {
  border:1px solid #3b5138;
  border-radius:6px;
  background:#1b2b1c;
  color:#d1dfcb;
  font-weight:900;
  width:24px;
  height:24px
}

.upgrade-panel {
  padding:19px 18px 11px;
  min-height:351px
}

.subhead {
  font-size:10px;
  color:#b4bdb1;
  margin:9px 0 15px
}

.upgrade-stage {
  display:grid;
  grid-template-columns:1fr 1.04fr 1fr;
  gap:7px;
  align-items:center
}

.item-slot {
  height:138px;
  background:linear-gradient(140deg,#1d2a21,#101c13);
  border:1px solid #2b3a2e;
  border-radius:10px;
  color:#eee;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:12px;
  text-align:left;
  min-width:0
}

.item-slot:hover {
  border-color:var(--lime)
}

.item-icon {
  font-size:50px;
  line-height:1.3;
  align-self:center;
  color:#c6d1b7;
  text-shadow:0 0 20px #8ab745
}

.item-slot strong {
  font-size:11px;
  white-space:nowrap
}

.item-slot b {
  font-size:14px;
  color:var(--lime);
  margin-top:3px
}

.chance {
  width:min(140px,100%);
  aspect-ratio:1;
  border-radius:50%;
  display:grid;
  place-items:center;
  margin:auto;
  background:conic-gradient(var(--lime) 0deg 120deg,#182b18 120deg 360deg);
  padding:11px;
  filter:drop-shadow(0 0 8px #b7ff2429)
}

.chance>div {
  border-radius:50%;
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  background:#0a160d;
  border:9px solid #132418
}

.chance strong {
  font-size:27px
}

.chance small {
  font-size:10px;
  color:#c6d0bf
}

.multipliers {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin:14px 0
}

.multipliers button {
  padding:9px 0;
  background:#111f15;
  border:1px solid #233722;
  color:#bec8b6;
  border-radius:8px;
  font-weight:900
}

.multipliers button.active,.multipliers button:hover {
  border-color:var(--lime);
  color:var(--lime);
  box-shadow:0 0 14px #b7ff2444
}

.primary {
  border:0;
  border-radius:8px;
  background:var(--lime);
  color:#132006;
  font-weight:900;
  padding:14px 19px;
  box-shadow:0 0 15px #a4ed273a;
  transition:.2s
}

.primary:hover {
  background:#d1ff61;
  transform:translateY(-1px)
}

.full {
  width:100%
}

.bottom-grid {
  display:grid;
  grid-template-columns:minmax(0,3.2fr) minmax(260px,.9fr);
  gap:12px;
  margin-top:12px
}

.stone-panel {
  min-height:268px;
  display:grid;
  grid-template-columns:31% 26% 43%;
  overflow:hidden
}

.stone-art {
  overflow:hidden;
  position:relative
}

.stone-art img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:20% center
}

.stone-art:after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,transparent 65%,#0a180e)
}

.stone-info {
  padding:24px 12px 18px 0;
  display:flex;
  flex-direction:column;
  justify-content:center
}

.stone-title {
  display:flex;
  align-items:flex-start;
  gap:11px
}

.stone-title span {
  font-size:37px;
  color:var(--lime)
}

.stone-title h2 {
  font-family:Impact,'Arial Black',sans-serif;
  font-size:29px;
  line-height:1.05;
  margin:0;
  color:#f6f1e2;
  letter-spacing:.5px
}

.stone-info p {
  font-size:12px;
  color:#d0d8c9;
  line-height:1.5;
  margin:17px 0
}

.outline {
  border:1px solid var(--lime);
  background:#0a160e;
  color:var(--lime);
  border-radius:7px;
  font-weight:900;
  font-size:10px;
  padding:12px 11px;
  align-self:flex-start
}

.outline:hover {
  background:#223819
}

.leaders {
  padding:18px 17px 8px 8px;
  min-width:0
}

.leader-tabs {
  display:flex;
  gap:5px;
  overflow-x:auto
}

.leader-tabs button {
  border:1px solid #233524;
  background:#101f14;
  color:#b4c0ad;
  padding:11px 10px;
  border-radius:8px;
  font-size:10px;
  font-weight:900;
  white-space:nowrap
}

.leader-tabs button.active {
  border-color:var(--lime);
  color:#fff;
  box-shadow:0 0 13px #b7ff2450
}

.leader-rows {
  margin-top:10px
}

.leader-row {
  display:grid;
  grid-template-columns:26px 29px 1fr auto;
  gap:8px;
  align-items:center;
  padding:5px 0;
  border-bottom:1px solid #203022;
  font-size:12px
}

.leader-row .rank {
  display:grid;
  place-items:center;
  width:23px;
  height:23px;
  background:#1b291c;
  border-radius:6px;
  font-weight:900
}

.leader-row:first-child .rank {
  background:#e8ce28;
  color:#16190a
}

.leader-row:nth-child(2) .rank {
  background:#9da8aa;
  color:#151918
}

.leader-row:nth-child(3) .rank {
  background:#aa7145;
  color:#160f09
}

.avatar {
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:5px;
  background:linear-gradient(130deg,#354b34,#101d16)
}

.leader-row .score {
  font-weight:900
}

.leader-note {
  font-size:8px;
  color:#657b60;
  margin-top:7px
}

.leader-empty {
  grid-column:1 / -1;
  padding:16px 8px;
  color:#8f9c8b;
  text-align:center;
  font-size:12px
}

.leader-tabs button:disabled {
  opacity:.42;
  cursor:not-allowed
}

.topup-panel {
  position:relative;
  overflow:hidden;
  min-height:268px;
  padding:28px 20px
}

.topup-panel:after {
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(ellipse at 85% 65%,#456d2440,transparent 65%);
  pointer-events:none
}

.topup-copy {
  position:relative;
  z-index:2
}

.topup-copy h2 {
  font-family:Impact,'Arial Black',sans-serif;
  font-size:30px;
  line-height:1.06;
  color:var(--lime);
  margin:4px 0 15px
}

.topup-copy p {
  color:#d3d9ce;
  font-size:13px;
  line-height:1.55
}

.topup-copy button {
  margin-top:14px;
  font-size:12px
}

.topup-panel img {
  position:absolute;
  height:250px;
  width:auto;
  right:-52px;
  bottom:-65px;
  object-fit:contain;
  transform:rotate(-9deg);
  filter:drop-shadow(0 0 8px #a6e93433)
}

.extra-panel {
  margin-top:12px;
  background:rgba(8,18,11,.9);
  border:1px solid #243923;
  border-radius:11px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:17px 24px
}

.eyebrow {
  font-size:10px;
  color:var(--lime);
  font-weight:900
}

.extra-panel h2 {
  font-size:16px;
  margin:4px 0
}

.extra-panel p {
  font-size:12px;
  color:#a6b5a1;
  margin:0
}

footer {
  padding:26px 2px 35px;
  display:flex;
  justify-content:space-between;
  color:#7e947d;
  font-size:10px;
  font-weight:700
}

dialog {
  border:1px solid #81b93a;
  background:linear-gradient(140deg,#162b1b,#09140d);
  color:#eee;
  border-radius:16px;
  padding:32px;
  width:min(460px,calc(100% - 30px));
  box-shadow:0 30px 100px #000b
}

dialog::backdrop {
  background:#000b;
  backdrop-filter:blur(5px)
}

dialog h2 {
  font-size:24px;
  margin:5px 0 12px
}

dialog p {
  color:#b9c8b5;
  line-height:1.6
}

dialog .primary {
  margin-top:20px;
  width:100%
}

.modal-symbol {
  font-size:34px;
  color:var(--lime)
}

.modal-x {
  position:absolute;
  right:15px;
  top:10px;
  border:0;
  background:none;
  color:#b8cbb0;
  font-size:26px
}

.modal-detail {
  display:flex;
  justify-content:space-between;
  padding:10px 0;
  border-bottom:1px solid #35452c;
  font-size:12px
}

.modal-detail b {
  color:var(--lime)
}

.toast {
  position:fixed;
  bottom:24px;
  right:24px;
  z-index:20;
  background:#1b2f1d;
  color:#eaffd3;
  border:1px solid var(--lime);
  border-radius:10px;
  padding:12px 18px;
  opacity:0;
  transform:translateY(15px);
  transition:.25s;
  pointer-events:none
}

.toast.show {
  opacity:1;
  transform:translateY(0)
}

.reveal {
  opacity:0;
  transform:translateY(17px);
  transition:opacity .55s,transform .55s
}

.reveal.visible {
  opacity:1;
  transform:none
}

@media(max-width:1500px) {
  .wrap {
    width:min(1380px,calc(100% - 40px))
  }
  .brand {
    min-width:260px
  }
  .brand span {
    font-size:33px
  }
  .brand img {
    height:64px;
    width:64px
  }
  .topbar {
    gap:10px
  }
  .navlink {
    padding:12px 9px;
    font-size:10px
  }
  .steam {
    min-width:105px;
    padding:8px
  }
  .balance {
    min-width:120px;
    gap:8px
  }
  .case-card {
    padding-left:8px;
    padding-right:8px
  }
  .case-picture {
    width:calc(100% + 16px);
    margin-left:-8px
  }
  .case-card h3 {
    font-size:11px
  }
  .stone-panel {
    grid-template-columns:28% 28% 44%
  }
  .stone-title h2 {
    font-size:25px
  }
  .leader-tabs button {
    font-size:9px;
    padding:9px 7px
  }
}

@media(max-width:1100px) {
  .topbar {
    height:auto;
    min-height:88px;
    flex-wrap:wrap;
    padding:10px 0
  }
  .brand {
    margin-right:auto
  }
  .mobile-menu {
    display:block
  }
  .nav {
    display:none;
    order:4;
    flex-basis:100%;
    flex-wrap:wrap
  }
  .nav.open {
    display:flex
  }
  .dashboard {
    grid-template-columns:1fr
  }
  .bottom-grid {
    grid-template-columns:1fr
  }
  .topup-panel {
    min-height:210px
  }
  .topup-panel img {
    height:280px;
    right:25px;
    bottom:-90px
  }
  .case-card {
    min-height:225px
  }
  .stone-panel {
    min-height:260px
  }
  .live-strip {
    margin-top:15px
  }
}

@media(max-width:690px) {
  .wrap {
    width:calc(100% - 22px)
  }
  .brand {
    min-width:0;
    gap:6px
  }
  .brand img {
    width:46px;
    height:46px
  }
  .brand span {
    font-size:23px
  }
  .account {
    gap:5px
  }
  .steam {
    min-width:0;
    padding:6px
  }
  .steammark {
    font-size:18px
  }
  .steam span:last-child {
    font-size:0
  }
  .steam small {
    display:none
  }
  .balance {
    min-width:90px;
    font-size:13px;
    padding:5px
  }
  .balance small {
    font-size:8px
  }
  .balance b {
    font-size:18px;
    padding:3px 6px
  }
  .mobile-menu {
    font-size:18px
  }
  .navlink {
    font-size:11px
  }
  .live-strip {
    height:83px
  }
  .live-label {
    width:112px;
    padding:13px 9px
  }
  .live-label strong {
    font-size:12px
  }
  .live-label span {
    font-size:9px
  }
  .drop-card {
    height:83px;
    width:113px
  }
  .dashboard {
    margin-top:12px
  }
  .shop-panel {
    padding:11px
  }
  .filters {
    gap:5px
  }
  .filter {
    flex:none;
    padding:10px 13px
  }
  .case-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px
  }
  .case-card {
    min-height:204px
  }
  .case-picture {
    height:137px
  }
  .case-card h3 {
    font-size:12px
  }
  .upgrade-panel {
    padding:14px
  }
  .stone-panel {
    grid-template-columns:1fr 1fr
  }
  .stone-art {
    height:190px
  }
  .stone-info {
    padding:14px 8px
  }
  .stone-title h2 {
    font-size:24px
  }
  .stone-info p {
    font-size:10px;
    margin:8px 0
  }
  .leaders {
    grid-column:1/-1;
    padding:14px
  }
  .leader-tabs button {
    flex:1
  }
  .leader-note {
    font-size:8px
  }
  .topup-panel {
    min-height:220px
  }
  .topup-panel img {
    height:245px;
    right:-35px;
    bottom:-62px
  }
  .extra-panel {
    align-items:flex-start;
    flex-direction:column
  }
  .extra-panel h2 {
    font-size:14px
  }
  footer {
    flex-direction:column;
    gap:8px
  }
  .item-slot {
    padding:7px;
    height:125px
  }
  .item-icon {
    font-size:38px
  }
  .item-slot strong {
    font-size:9px
  }
  .chance {
    padding:7px
  }
  .chance>div {
    border-width:5px
  }
  .chance strong {
    font-size:21px
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation-duration:.01ms!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important
  }
  .reveal {
    opacity:1;
    transform:none
  }
}

/* V5: compact single-screen dashboard, no redundant navigation */
body {
  font-size:15px;
  background:#07100b
}

.topbar {
  justify-content:space-between;
  gap:16px;
  min-height:82px;
  height:auto
}

.brand {
  min-width:0;
  flex-shrink:0
}

.account {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end
}

.promo-chip {
  display:flex;
  align-items:center;
  gap:9px;
  padding:9px 12px;
  border-radius:10px;
  border:1px solid #33492c;
  background:linear-gradient(120deg,#132319,#0a170e);
  color:#f4f6ed;
  text-align:left;
  min-height:52px;
  transition:.2s
}

.promo-chip:hover {
  border-color:var(--lime);
  box-shadow:0 0 15px #a8f1252d
}

.promo-chip .promo-icon {
  font-size:23px;
  color:var(--lime)
}

.promo-chip strong {
  font-size:13px;
  color:var(--lime);
  display:block;
  white-space:nowrap
}

.promo-chip small {
  display:block;
  color:#bdcbb3;
  font-size:11px;
  white-space:nowrap
}

.stone-panel {
  grid-template-columns:28% 24% 48%;
  min-height:340px
}

.stone-art {
  background:radial-gradient(ellipse at 42% 75%,#42552066,transparent 62%),linear-gradient(135deg,#1b2919,#08120b)
}

.stone-scene {
  height:100%;
  min-height:340px;
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:end;
  justify-content:center
}

.stone-scene:before {
  content:"";
  position:absolute;
  inset:0;
  background:repeating-linear-gradient(0deg,transparent 0 24px,#c5ff1905 25px 26px),radial-gradient(circle at 50% 85%,#b7ff241a,transparent 60%)
}

.stone-scene img {
  position:relative;
  width:auto;
  height:94%;
  max-width:100%;
  object-fit:contain;
  object-position:center bottom;
  filter:drop-shadow(0 12px 14px #0009);
  transform:rotate(-7deg) translateY(24px)
}

.stone-scene .stone-slogan {
  position:absolute;
  top:20px;
  left:15px;
  z-index:2;
  font:900 18px/1.1 Impact,'Arial Black',sans-serif;
  color:#dcf9a5;
  letter-spacing:1px;
  text-shadow:0 3px 8px #000
}

.stone-art:after {
  background:linear-gradient(90deg,transparent 70%,#0a180e)
}

.stone-info {
  padding:22px 14px 18px 0
}

.stone-info p {
  font-size:14px
}

.leaders {
  padding:15px 17px 10px 8px
}

.leader-row {
  padding:3px 0;
  font-size:13px;
  grid-template-columns:27px 27px minmax(0,1fr) auto
}

.leader-row .rank {
  width:24px;
  height:24px
}

.leader-row .player {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.leader-tabs button {
  font-size:11px;
  padding:8px 9px
}

.leader-note {
  font-size:10px
}

.filter {
  font-size:12px
}

.case-card h3 {
  font-size:13px
}

.item-slot strong {
  font-size:12px
}

.subhead {
  font-size:11px
}

.panel-hint {
  font-size:10px
}

@media(max-width:1500px) {
  .brand span {
    font-size:29px
  }
  .brand img {
    height:56px;
    width:56px
  }
  .promo-chip {
    padding:7px 9px
  }
  .promo-chip strong {
    font-size:12px
  }
  .promo-chip small {
    font-size:10px
  }
  .stone-panel {
    grid-template-columns:26% 25% 49%
  }
  .leader-tabs button {
    font-size:10px
  }
}

@media(max-width:1100px) {
  .topbar {
    min-height:75px
  }
  .account {
    width:auto
  }
  .stone-panel {
    grid-template-columns:28% 25% 47%
  }
  .stone-scene {
    min-height:300px
  }
}

@media(max-width:800px) {
  .topbar {
    align-items:center
  }
  .account {
    width:100%;
    justify-content:space-between
  }
  .promo-chip {
    flex:1;
    justify-content:center
  }
  .stone-panel {
    grid-template-columns:1fr 1fr
  }
  .stone-art {
    min-height:215px
  }
  .stone-scene {
    min-height:215px
  }
  .stone-scene img {
    height:220px
  }
  .stone-info {
    padding:15px
  }
  .leaders {
    grid-column:1/-1;
    padding:14px
  }
  .leader-row {
    font-size:13px
  }
  .topup-panel {
    min-height:205px
  }
}

@media(max-width:480px) {
  .promo-chip {
    min-width:calc(50% - 5px)
  }
  .promo-chip strong {
    font-size:11px
  }
  .promo-chip small {
    font-size:9px
  }
  .stone-title h2 {
    font-size:23px
  }
  .stone-info p {
    font-size:12px
  }
  .stone-scene .stone-slogan {
    font-size:13px
  }
  .leader-tabs button {
    font-size:9px;
    padding:9px 6px
  }
}

/* V6: functional cart, legible hall of fame, informative balance offer */
.topbar {
  gap:18px
}

.cart-shortcut {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  margin-left:auto;
  min-width:150px;
  padding:10px 16px;
  min-height:53px;
  border:1px solid #344a2c;
  border-radius:11px;
  background:linear-gradient(120deg,#132417,#0b170f);
  color:#f3f6e9;
  font-size:14px;
  font-weight:900;
  text-align:left;
  transition:box-shadow .2s,border-color .2s
}

.cart-shortcut:hover {
  border-color:var(--lime);
  box-shadow:0 0 20px #b7ff2430
}

.cart-icon {
  color:var(--lime);
  display:grid;
  place-items:center
}

.cart-shortcut small {
  display:block;
  font-size:11px;
  color:#a9c29a;
  font-weight:600;
  margin-top:2px
}

.cart-shortcut small b {
  color:var(--lime)
}

.account {
  margin-left:0
}

.stone-title {
  align-items:center;
  gap:12px
}

.stone-title span {
  font-size:43px;
  line-height:1
}

.stone-title h2 {
  font-size:clamp(29px,2.25vw,40px);
  line-height:1.06;
  letter-spacing:.8px;
  text-shadow:0 3px 10px #000
}

.stone-info {
  padding:20px 13px 20px 0;
  justify-content:center;
  gap:12px
}

.stone-info p.stone-description {
  font-size:16px;
  line-height:1.42;
  margin:0;
  color:#e0e9d8;
  max-width:220px
}

.stone-permanent {
  font-size:12px;
  font-weight:900;
  color:var(--lime);
  letter-spacing:.5px;
  white-space:nowrap
}

.stone-permanent span {
  font-size:17px
}

.topup-panel {
  padding:21px 18px;
  min-height:340px
}

.topup-copy {
  max-width:100%
}

.topup-eyebrow {
  display:inline-block;
  color:#d4fba0;
  font-size:11px;
  font-weight:900;
  letter-spacing:.65px
}

.topup-copy h2 {
  font-size:34px;
  margin:9px 0 13px;
  line-height:1.05
}

.bonus-list {
  display:grid;
  gap:8px;
  position:relative;
  z-index:3
}

.bonus-row {
  display:flex;
  align-items:center;
  gap:9px;
  padding:10px 8px;
  border:1px solid #3b5b29;
  border-radius:9px;
  background:linear-gradient(90deg,#203719ed,#0c1b11da);
  max-width:100%
}

.bonus-emoji {
  display:grid;
  place-items:center;
  flex:none;
  min-width:32px;
  height:32px;
  color:var(--lime);
  font-size:19px;
  font-weight:900
}

.bonus-row strong {
  display:block;
  color:var(--lime);
  font-size:15px;
  line-height:1.2;
  white-space:nowrap
}

.bonus-row small {
  display:block;
  font-size:12px;
  color:#e0e9d6;
  margin-top:4px;
  line-height:1.25
}

.topup-copy button {
  margin-top:12px;
  font-size:13px;
  padding:13px 15px;
  position:relative;
  z-index:3
}

.topup-disclaimer {
  display:block;
  margin-top:8px;
  color:#96a78b;
  font-size:10px
}

.topup-panel img {
  height:200px;
  right:-77px;
  bottom:-67px;
  opacity:.88;
  z-index:1
}

@media(max-width:1500px) {
  .cart-shortcut {
    min-width:125px;
    padding:8px 10px
  }
  .topbar {
    gap:10px
  }
  .stone-title h2 {
    font-size:30px
  }
  .stone-info p.stone-description {
    font-size:14px
  }
  .bonus-row strong {
    font-size:13px
  }
  .bonus-row small {
    font-size:11px
  }
  .topup-copy h2 {
    font-size:31px
  }
}

@media(max-width:1150px) {
  .cart-shortcut {
    margin-left:auto
  }
  .topbar {
    flex-wrap:wrap
  }
  .topup-panel {
    min-height:300px
  }
  .topup-panel img {
    right:-35px;
    bottom:-70px;
    height:260px
  }
  .topup-copy {
    max-width:65%
  }
  .bonus-row strong {
    font-size:15px
  }
}

@media(max-width:800px) {
  .cart-shortcut {
    min-width:120px
  }
  .account {
    width:100%;
    justify-content:space-between
  }
  .stone-info {
    gap:10px
  }
  .stone-title h2 {
    font-size:30px
  }
  .stone-info p.stone-description {
    font-size:14px
  }
  .topup-copy {
    max-width:70%
  }
}

@media(max-width:480px) {
  .brand span {
    font-size:22px
  }
  .cart-shortcut {
    min-width:100px;
    padding:7px 9px;
    font-size:11px
  }
  .cart-shortcut small {
    font-size:9px
  }
  .cart-icon svg {
    width:19px;
    height:19px
  }
  .stone-title h2 {
    font-size:24px
  }
  .stone-title span {
    font-size:25px
  }
  .stone-info p.stone-description {
    font-size:12px
  }
  .stone-permanent {
    font-size:9px;
    white-space:normal
  }
  .topup-copy {
    max-width:83%
  }
  .topup-panel img {
    opacity:.38;
    right:-55px
  }
  .bonus-row strong {
    font-size:12px
  }
  .bonus-row small {
    font-size:10px
  }
  .topup-copy h2 {
    font-size:30px
  }
}

/* V7 — unified top bar and original two mascot poses; keep V6 outpost.svg background */
.topbar {
  width:min(1530px,calc(100% - 40px));
  height:96px;
  min-height:96px;
  gap:12px;
  justify-content:space-between
}

.brand {
  flex:1 1 auto;
  min-width:240px;
  gap:12px
}

.brand img {
  width:70px;
  height:70px
}

.brand span {
  font-size:clamp(26px,2.35vw,39px)
}

.cart-shortcut {
  margin-left:0;
  flex:1 1 155px;
  max-width:225px
}

.account {
  flex:0 1 auto;
  flex-wrap:nowrap;
  gap:9px;
  justify-content:flex-end
}

.cart-shortcut,.steam,.promo-chip,.balance {
  height:58px;
  min-height:58px;
  box-sizing:border-box;
  border-radius:11px
}

.steam {
  min-width:120px;
  justify-content:center
}

.promo-chip {
  min-width:128px;
  justify-content:center
}

.balance {
  min-width:163px
}

.live-strip {
  margin-top:16px
}

.stone-panel {
  grid-template-columns:31% 22% 47%;
  position:relative
}

.stone-art {
  background:radial-gradient(ellipse at 50% 70%,#5b3a1e66,transparent 68%),linear-gradient(140deg,#1c2516,#08140c)
}

.stone-scene {
  min-height:340px;
  overflow:hidden;
  align-items:end
}

.stone-scene:before {
  background:radial-gradient(ellipse at 42% 83%,#e9a22c33,transparent 60%)
}

.stone-scene img {
  width:100%;
  height:100%;
  max-width:none;
  object-fit:contain;
  object-position:center bottom;
  transform:none;
  filter:drop-shadow(0 8px 16px #0009)
}

.stone-scene .stone-slogan {
  top:14px;
  left:14px;
  font-size:18px;
  color:#fff0b7;
  text-shadow:0 2px 8px #000
}

.stone-art:after {
  background:linear-gradient(90deg,transparent 79%,#0a180e)
}

.stone-info {
  padding-left:5px;
  position:relative;
  z-index:2
}

.stone-title h2 {
  font-size:clamp(28px,2.1vw,37px)
}

.topup-panel {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:linear-gradient(125deg,#142615,#07140b)
}

.topup-panel:before {
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 85% 50%,#b7ff2420,transparent 58%);
  pointer-events:none;
  z-index:0
}

.topup-panel .gift-mascot {
  position:absolute;
  height:250px;
  width:240px;
  object-fit:contain;
  object-position:center bottom;
  right:-47px;
  bottom:-14px;
  opacity:.9;
  z-index:1;
  filter:drop-shadow(0 6px 10px #0008)
}

.topup-copy {
  position:relative;
  z-index:2
}

.topup-copy h2 {
  font-size:34px
}

.bonus-list {
  max-width:100%;
  position:relative;
  z-index:3
}

.bonus-row {
  background:linear-gradient(90deg,#1d3617fa,#102018eb)
}

@media(max-width:1500px) {
  .topbar {
    width:calc(100% - 40px)
  }
  .brand {
    min-width:225px
  }
  .brand span {
    font-size:29px
  }
  .brand img {
    height:61px;
    width:61px
  }
  .cart-shortcut {
    min-width:128px;
    max-width:170px
  }
  .promo-chip {
    min-width:110px
  }
  .steam {
    min-width:103px
  }
  .balance {
    min-width:133px
  }
  .stone-panel {
    grid-template-columns:30% 23% 47%
  }
}

@media(max-width:1180px) {
  .topbar {
    height:auto;
    min-height:86px;
    flex-wrap:wrap;
    padding:10px 0
  }
  .brand {
    flex:1 1 45%
  }
  .cart-shortcut {
    flex:0 0 auto
  }
  .account {
    flex:1 1 100%;
    justify-content:space-between
  }
  .account>* {
    flex:1 1 auto
  }
  .stone-panel {
    grid-template-columns:29% 25% 46%
  }
}

@media(max-width:800px) {
  .topbar {
    width:calc(100% - 22px)
  }
  .brand {
    min-width:0
  }
  .account {
    flex-wrap:wrap
  }
  .stone-panel {
    grid-template-columns:1fr 1fr
  }
  .stone-scene {
    min-height:220px
  }
  .stone-scene img {
    height:100%
  }
  .stone-info {
    padding:14px
  }
  .topup-panel .gift-mascot {
    height:250px;
    right:-45px
  }
}

@media(max-width:480px) {
  .topbar {
    gap:7px
  }
  .brand span {
    font-size:22px
  }
  .brand img {
    width:48px;
    height:48px
  }
  .cart-shortcut {
    height:48px;
    min-height:48px
  }
  .account {
    gap:5px
  }
  .steam,.promo-chip,.balance {
    height:51px;
    min-height:51px
  }
  .promo-chip {
    min-width:calc(50% - 5px)
  }
  .balance {
    min-width:100px
  }
  .stone-title h2 {
    font-size:24px
  }
  .stone-scene .stone-slogan {
    font-size:12px
  }
  .topup-panel .gift-mascot {
    height:230px;
    opacity:.65
  }
}

/* Use the entire desktop header instead of leaving a large dead gap. */
@media(min-width:1181px) {
  .topbar {
    display:grid;
    grid-template-columns:minmax(250px,1.1fr) minmax(145px,.65fr) minmax(610px,3.1fr);
    gap:12px
  }
  .brand {
    min-width:0
  }
  .cart-shortcut {
    width:100%;
    max-width:none;
    min-width:0
  }
  .account {
    width:100%;
    display:grid;
    grid-template-columns:1fr 1.06fr 1.1fr 1.18fr;
    gap:9px
  }
  .account>button {
    width:100%;
    min-width:0;
    padding-left:10px;
    padding-right:10px
  }
  .promo-chip strong {
    font-size:clamp(11px,.94vw,14px)
  }
  .promo-chip small {
    font-size:11px
  }
}


/* PEREMIRIE profile panel */
dialog.profile-modal {
  width:min(560px,calc(100% - 24px));
  max-height:min(90dvh,760px);
  overflow:auto;
  padding:28px;
  border-color:#456c43;
  background:radial-gradient(ellipse at 12% 0%,#1d3928 0%,#111d17 48%,#0b120e 100%);
}
dialog.profile-modal .modal-symbol,
dialog.profile-modal #modalBody {display:none}
dialog.profile-modal h2 {font-family:Arial,Helvetica,sans-serif;font-size:17px;letter-spacing:.12em;color:#7BF5A0;margin:0 38px 22px 0}
dialog.profile-modal #modalDetails {display:grid;gap:18px}
.profile-hero {display:flex;align-items:center;gap:16px;padding:2px 0 18px;border-bottom:1px solid #34483a;min-width:0}
.profile-avatar {width:68px;height:68px;flex:0 0 68px;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:linear-gradient(145deg,#274330,#18271e);border:2px solid #7BF5A0;color:#E5C46D;font-size:20px;font-weight:800;box-shadow:0 0 22px #7bf5a022}
.profile-avatar img {width:100%;height:100%;object-fit:cover}
.profile-identity {display:grid;gap:4px;min-width:0}
.profile-name {color:#f0f2ef;font-size:20px;overflow-wrap:anywhere}
.profile-caption {color:#7BF5A0;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.profile-steamid {color:#9aa99d;font-size:11px;overflow-wrap:anywhere}
.profile-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.profile-stat {min-width:0;padding:14px 12px;border:1px solid #34483a;border-radius:12px;background:#0c1711a8;display:grid;gap:9px}
.profile-stat-label {color:#a9b8ab;font-size:11px;line-height:1.35}
.profile-stat-value {color:#E5C46D;font-size:16px;overflow-wrap:anywhere}
.profile-future {display:grid;grid-template-columns:1fr 1fr;gap:10px}
.profile-future-card {display:flex;justify-content:space-between;align-items:center;gap:8px;padding:11px 12px;border-radius:10px;background:#ffffff06;border:1px solid #ffffff12;font-size:11px}
.profile-future-card span {color:#a9b8ab}
.profile-future-card strong {color:#7BF5A0;text-align:right}
dialog.profile-modal #modalOk {margin-top:0;background:linear-gradient(120deg,#315b36,#233d2a);border:1px solid #578458;color:#eaf6e9}
@media(max-width:520px) {
  dialog.profile-modal {padding:23px 18px;width:calc(100% - 20px);max-height:92dvh}
  .profile-stats {grid-template-columns:1fr;gap:8px}
  .profile-stat {grid-template-columns:1fr auto;align-items:center;padding:11px 12px}
  .profile-stat-value {text-align:right}
  .profile-name {font-size:17px}
  .profile-future-card {align-items:flex-start;flex-direction:column}
  .profile-future-card strong {text-align:left}
}


/* Current wipe and historical leaderboard sections */
.current-board {display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr);align-items:center;gap:20px;padding:22px 24px;margin:12px 0}
.current-board-copy {min-width:0}
.current-board-eyebrow {font-size:10px;font-weight:900;letter-spacing:.11em;color:var(--lime)}
.current-board-copy h2 {font-family:Impact,'Arial Black',sans-serif;font-size:25px;line-height:1.08;color:#f5f1e5;margin:7px 0 9px}
.current-board-copy p {font-size:12px;line-height:1.5;color:#aab7a6;margin:0;max-width:340px}
.current-board-content {min-width:0}
.current-board-content .leader-tabs {margin-bottom:4px}
.current-board-content .leader-note {text-align:right}
.stone-history {padding:18px 17px 8px 8px;min-width:0}
.stone-history .leader-tabs {margin-bottom:7px}
.stone-history .leader-empty {padding:12px 8px;line-height:1.5}
@media(max-width:800px) {
  .current-board {grid-template-columns:1fr;gap:12px;padding:18px}
  .current-board-copy h2 {font-size:23px}
  .stone-history {grid-column:1/-1;padding:14px}
}

.history-player {display:grid;gap:2px;min-width:0}
.history-player .player {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-season {font-size:8px;color:#72816e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-row .score {white-space:nowrap}
