:root {
  --bg: #07100c;
  --bg-soft: #0b1712;
  --panel: rgba(15, 28, 24, .86);
  --panel-solid: #111c2d;
  --card: #121b2b;
  --card-2: #172236;
  --line: rgba(255, 255, 255, .09);
  --text: #f7f9ff;
  --muted: #9da9ba;
  --green: #8cff35;
  --green-2: #37db65;
  --blue: #6bb6ff;
  --pink: #ff4e91;
  --warning: #ffd56a;
}

/* Case detail flow */
.modal-open { overflow: hidden; }
.case-detail-overlay { position: fixed; inset: 0; z-index: 1200; display: none; place-items: center; padding: 24px; background: rgba(2,6,10,.86); backdrop-filter: blur(12px); }
.case-detail-overlay.show { display: grid; }
.case-detail-modal { position: relative; width: min(1080px, 96vw); max-height: 92vh; overflow: auto; padding: 28px; border: 1px solid rgba(91,255,80,.25); border-radius: 28px; background: linear-gradient(145deg,#121b1b,#0b1018 55%,#101524); box-shadow: 0 32px 100px rgba(0,0,0,.65); }
.case-detail-close { position: absolute; top: 18px; right: 20px; width: 42px; height: 42px; border-radius: 14px; color: #fff; background: #232936; font-size: 28px; }
.case-detail-head { display: flex; align-items: center; gap: 24px; padding-right: 50px; }
.case-detail-head > img { width: 150px; height: 130px; object-fit: contain; filter: drop-shadow(0 24px 28px rgba(0,0,0,.45)); }
.case-detail-head span, .case-detail-buy span { color: #8b95a6; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.case-detail-head h2 { margin: 4px 0 8px; font-size: clamp(28px,4vw,48px); }
.case-detail-head strong { color: var(--green); font-size: 20px; }
.case-detail-items { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 12px; margin: 24px 0; }
.case-detail-items article { display: grid; gap: 7px; min-width: 0; padding: 14px; border: 1px solid #27303b; border-radius: 18px; background: rgba(255,255,255,.035); }
.case-detail-items img { width: 100%; height: 105px; object-fit: contain; }
.case-detail-items b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-detail-items strong { color: var(--green); }
.case-detail-items span { color: #8792a5; font-size: 12px; }
.case-detail-buy { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; padding: 18px; border-radius: 20px; background: #080d13; }
.case-quantity { display: flex; gap: 8px; }
.case-quantity button { min-width: 52px; padding: 12px; border: 1px solid #2b3541; border-radius: 12px; color: #aeb7c5; background: #151c25; font-weight: 900; }
.case-quantity button.active { color: #071108; border-color: var(--green); background: var(--green); }
.case-detail-buy > div:nth-child(2) { display: grid; gap: 3px; text-align: right; }
.case-detail-buy strong { font-size: 22px; }
.case-detail-buy > button { padding: 14px 24px; border-radius: 14px; }
.case-detail-note { margin: 12px 4px 0; color: #84909e; font-size: 12px; }
.inventory-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.inventory-actions button, .inventory-actions a, .coupon-form button { border: 0; border-radius: 10px; padding: 10px 12px; color: #071108; background: var(--green); font-weight: 900; }
.inventory-actions button[data-sell] { color: #fff; background: #29313e; }
.coupon-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.coupon-form input { min-width: 0; padding: 14px 16px; border: 1px solid #303948; border-radius: 12px; color: #fff; background: #0a1018; text-transform: uppercase; }
.promo-activate-form { margin: 16px 0 22px; padding: 14px; display: grid; grid-template-columns: auto minmax(180px,1fr) auto; align-items: center; gap: 10px; border: 1px solid rgba(140,255,53,.22); border-radius: 16px; background: rgba(14,30,23,.88); }
.promo-activate-form input { min-width: 0; padding: 12px 14px; border: 1px solid #334139; border-radius: 11px; color: #fff; background: #08110d; text-transform: uppercase; }
.promo-activate-form button { min-height: 42px; padding: 0 16px; border-radius: 11px; color: #071108; background: var(--green); font-weight: 900; }
@media (max-width:700px) { .promo-activate-form { grid-template-columns: 1fr; } }
.free-case-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; padding: 18px 0 34px; }
.free-case-card { min-width: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.free-case-card button,.free-case-card > a { width: 100%; height: 355px; display: grid; grid-template-rows: 190px 42px 32px 38px; align-items: center; justify-items: center; gap: 7px; padding: 12px 10px 20px; background: radial-gradient(circle at 50% 45%,rgba(91,80,255,.25),transparent 58%); }
.free-case-card img { width: 100%; height: 190px; object-fit: contain; transition: transform .3s ease,filter .3s ease; filter: drop-shadow(0 22px 20px rgba(0,0,0,.5)); }
.free-case-card button:hover img,.free-case-card > a:hover img { transform: translateY(-8px) scale(1.04); filter: drop-shadow(0 28px 28px rgba(103,91,255,.35)); }
.free-case-card b { width: 100%; height: 42px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; align-self: center; color: #e8edf5; line-height: 21px; text-align: center; }
.free-case-card strong { height: 32px; display: flex; align-items: center; color: var(--green); font-size: 24px; line-height: 1; }
.free-case-card span { color: #9ba6b7; font-size: 12px; }
.free-case-card em { min-height: 38px; display: flex; align-items: center; padding: 9px 14px; border-radius: 10px; color: #071108; background: var(--green); font-style: normal; font-weight: 900; }
.mobile-bonus-stack { display: none; gap: 10px; }
.mobile-bonus-card { position: relative; overflow: hidden; display: grid; gap: 14px; min-height: 132px; padding: 20px; border-radius: 20px; color: white; }
.mobile-bonus-card.deposit { background: linear-gradient(135deg,#3159a9,#263c88); }
.mobile-bonus-card.daily { background: linear-gradient(135deg,#a525ba,#6e1cb1); }
.mobile-bonus-card div { display: grid; gap: 5px; }
.mobile-bonus-card b { font-size: 18px; text-transform: uppercase; }
.mobile-bonus-card span { font-size: 13px; font-weight: 800; }
.mobile-bonus-card button { justify-self: start; padding: 11px 15px; border-radius: 11px; color: #101522; background: #fff; font-weight: 900; text-transform: uppercase; }
.account-mobile-bonuses { display: none; gap: 12px; }
.account-bonus-card { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 14px; min-height: 180px; padding: 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; box-shadow: 0 22px 50px rgba(0,0,0,.24); }
.account-bonus-card::after { content: ""; position: absolute; z-index: -1; width: 180px; height: 180px; right: -55px; bottom: -85px; border-radius: 50%; background: rgba(255,255,255,.14); }
.account-bonus-card.deposit { background: linear-gradient(135deg,#244d9d,#315fc5 62%,#507ee8); }
.account-bonus-card.daily { background: linear-gradient(135deg,#6e178d,#a527bf 62%,#cc48d9); }
.account-bonus-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: rgba(255,255,255,.16); font-size: 26px; font-weight: 900; }
.account-bonus-card div:nth-child(2) { display: grid; align-content: start; gap: 4px; }
.account-bonus-card span, .account-bonus-card small { color: rgba(255,255,255,.76); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.account-bonus-card h2 { margin: 0; font-size: 20px; }
.account-bonus-card p { margin: 2px 0; color: rgba(255,255,255,.86); font-size: 13px; }
.account-bonus-card button { grid-column: 1 / -1; justify-self: start; padding: 12px 17px; border-radius: 12px; color: #121526; background: #fff; font-weight: 900; text-transform: uppercase; }
.case-play-body { background: radial-gradient(circle at 50% 20%,#152d28 0,#07110f 42%,#070b12 100%); }
.case-play-header { width: min(1500px,calc(100vw - 40px)); min-height: 92px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.case-play-header nav { display: flex; gap: 10px; }
.case-play-header nav a { padding: 11px 15px; border-radius: 12px; background: #17211f; font-weight: 900; }
.case-play-page { width: min(1500px,calc(100vw - 40px)); margin: auto; padding-bottom: 70px; }
.case-stage { display: grid; justify-items: center; text-align: center; padding: 22px 20px 42px; }
.case-stage-label { color: var(--green); font-weight: 900; text-transform: uppercase; }
.case-stage h1 { margin: 8px 0 12px; font-size: clamp(32px,5vw,62px); }
.case-stage-art { width: min(700px,92vw); height: 330px; display: grid; grid-template-columns: 95px 1fr 95px; align-items: center; }
.case-stage-art i { height: 78%; border: 7px solid var(--green); filter: drop-shadow(0 0 18px rgba(140,255,53,.45)); }
.case-stage-art i:first-child { border-right: 0; border-radius: 34px 0 0 34px; }
.case-stage-art i:last-child { border-left: 0; border-radius: 0 34px 34px 0; }
.case-stage-art img { width: 100%; height: 300px; object-fit: contain; filter: drop-shadow(0 30px 28px rgba(0,0,0,.55)); }
.case-play-quantity { display: flex; gap: 7px; margin-top: 12px; }
.case-play-quantity button { min-width: 58px; padding: 13px; border-radius: 10px; color: #77837e; background: #121c1b; font-weight: 900; }
.case-play-quantity button.active { color: #071108; background: var(--green); }
.case-play-actions { display: flex; gap: 12px; margin-top: 20px; }
.case-play-open,.case-play-balance { min-width: 260px; padding: 17px 24px; border-radius: 14px; font-size: 17px; font-weight: 900; }
.case-play-open { color: #071108; background: var(--green); }
.case-play-open:disabled { color: #8c9490; background: #202927; }
.case-play-balance { color: #fff; background: #1c2826; }
.case-skip { display: flex; align-items: center; gap: 9px; margin-top: 18px; color: #9aa5a1; font-weight: 800; }
.case-skip input { accent-color: var(--green); }
.case-play-status { width: min(1100px,96vw); min-height: 20px; margin-top: 22px; }
.case-contents-section { padding: 22px 0; border-top: 1px solid var(--line); }
.case-contents-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 12px; }
.case-contents-grid article { position: relative; overflow: hidden; display: grid; align-content: end; gap: 5px; min-height: 190px; padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: linear-gradient(160deg,#33549d,#18254e); }
.case-contents-grid article:nth-child(5n+1) { background: linear-gradient(160deg,#7546a6,#312057); }
.case-contents-grid article:nth-child(7n+1) { background: linear-gradient(160deg,#9b4d56,#3e263a); }
.case-contents-grid article:nth-child(11n+1) { background: linear-gradient(160deg,#a47748,#453044); }
.case-contents-grid article::before { content: ""; position: absolute; width: 150px; height: 150px; left: 50%; top: 18px; transform: translateX(-50%); border: 2px solid rgba(255,255,255,.05); border-radius: 50%; }
.case-contents-grid img { width: 100%; height: 130px; object-fit: contain; }
.case-contents-grid b,.case-contents-grid span,.case-contents-grid small { position: relative; z-index: 1; }
.case-contents-grid b { font-size: 14px; }
.case-contents-grid span,.case-contents-grid small { color: rgba(255,255,255,.68); font-size: 10px; }
.case-spin-results { display: grid; gap: 10px; padding: 12px; border-radius: 18px; background: #080e12; }
.case-spin-lane { position: relative; overflow: hidden; height: 112px; border: 1px solid #293630; border-radius: 14px; }
.case-spin-lane-number { position:absolute; z-index:4; left:8px; top:8px; min-width:24px; height:24px; display:grid; place-items:center; border-radius:8px; background:#8cff35; color:#07110d; font-size:12px; font-weight:1000; }
.case-spin-lane > i { position: absolute; z-index: 2; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--green); box-shadow: 0 0 14px var(--green); }
.case-spin-track { height: 100%; display: flex; gap: 8px; padding: 7px; transform: translateX(0); }
.case-spin-track.run { transition: transform 3.2s cubic-bezier(.05,.76,.08,1); transform: translateX(calc(50% - 2880px)); }
.case-spin-track[data-direction="right"].run { transform: translateX(calc(50% - 320px)); }
.case-spin-track.instant { transform: translateX(calc(50% - 2880px)); }
.case-spin-track article { flex: 0 0 120px; display: grid; place-items: center; padding: 6px; border-radius: 10px; background: #172329; }
.case-spin-track img { width: 100%; height: 70px; object-fit: contain; }
.case-spin-track b { max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.case-final-message { padding: 16px; color: var(--green); font-size: 18px; font-weight: 900; }
@media (max-width: 700px) {
  .case-detail-overlay { padding: 8px; }
  .case-detail-modal { padding: 18px; border-radius: 20px; }
  .case-detail-head > img { width: 100px; height: 90px; }
  .case-detail-buy { grid-template-columns: 1fr; }
  .case-detail-buy > div:nth-child(2) { text-align: left; }
  .case-quantity { overflow-x: auto; }
  .free-case-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .free-case-card button,.free-case-card > a { height: 295px; grid-template-rows: 130px 42px 32px 38px; padding-inline: 6px; }
  .free-case-card img { height: 130px; }
  .mobile-bonus-stack { display: grid; }
  .account-mobile-bonuses { display: grid; }
  .case-play-header,.case-play-page { width: min(100% - 24px,1500px); }
  .case-play-header .brand strong { display: none; }
  .case-stage { padding-inline: 0; }
  .case-stage-art { height: 230px; grid-template-columns: 48px 1fr 48px; }
  .case-stage-art img { height: 210px; }
  .case-stage-art i { border-width: 4px; }
  .case-play-actions { width: 100%; display: grid; }
  .case-play-open,.case-play-balance { min-width: 0; width: 100%; }
  .case-play-quantity { max-width: 100%; overflow-x: auto; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.025) 25%, transparent 25%) 0 0 / 128px 128px,
    linear-gradient(180deg, #07100c 0%, #08121d 42%, #070c16 100%);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(140,255,53,.08), transparent 28%, transparent 72%, rgba(107,182,255,.08)),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 220px);
}

body.is-busy {
  cursor: progress;
}

body.site-custom-background {
  background:
    linear-gradient(180deg, rgba(4,12,9,.80), rgba(6,12,22,.88)),
    var(--site-bg-image) center / cover fixed no-repeat !important;
}

button,
input { font: inherit; }

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

button {
  border: 0;
  cursor: pointer;
  color: inherit;
}

button:disabled {
  cursor: progress;
  opacity: .64;
}

img {
  display: block;
  max-width: 100%;
}

img.image-failed {
  opacity: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 16, .9);
  backdrop-filter: blur(16px);
}

.live-strip-viewport { height: 71px; overflow-x: auto; overflow-y: hidden; background: rgba(255,255,255,.04); scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; cursor: grab; }
.live-strip-viewport::-webkit-scrollbar { display: none; }
.live-strip-viewport.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.live-strip {
  height: 71px;
  width: max-content;
  display: flex;
  gap: 1px;
  animation: none;
}
.live-strip .live-card { width: 153px; flex: 0 0 153px; scroll-snap-align: start; }

.live-card {
  position: relative;
  min-width: 0;
  padding: 7px 9px;
  display: grid;
  justify-items: center;
  align-content: end;
  overflow: hidden;
  background: linear-gradient(145deg, #172238, #0d1523);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.live-card:nth-child(3n+1) { background: linear-gradient(145deg, #183323, #0d1523); }
.live-card:nth-child(3n+2) { background: linear-gradient(145deg, #162e56, #0d1523); }
.live-card:nth-child(3n+3) { background: linear-gradient(145deg, #342049, #0d1523); }

.live-card img {
  position: absolute;
  top: 5px;
  width: 94px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 16px 16px rgba(0,0,0,.44));
}

.live-card b,
.live-card span {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 9.5px;
  font-weight: 900;
}

.live-card span { color: var(--green); }

.topbar,
.main-nav,
.page {
  width: min(1600px, calc(100vw - 48px));
  margin: 0 auto;
}

.upgrades-body { min-height: 100vh; background: radial-gradient(circle at 50% 30%,rgba(140,255,53,.12),transparent 34%),linear-gradient(145deg,#06110d,#08101c 58%,#070b14); }
.upgrades-page { min-height: calc(100vh - 110px); display: grid; place-items: center; width: min(1200px,calc(100vw - 32px)); margin: 0 auto; padding: 40px 0; }
.upgrades-coming { width: 100%; padding: clamp(28px,6vw,72px); border: 1px solid rgba(140,255,53,.22); border-radius: 32px; background: rgba(11,19,25,.82); box-shadow: 0 40px 100px rgba(0,0,0,.42); text-align: center; }
.upgrades-kicker { color: var(--green); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.upgrades-coming h1 { margin: 12px 0 4px; font-size: clamp(48px,9vw,112px); line-height: .95; text-transform: uppercase; }
.upgrades-coming > p { color: #a9b4c4; font-size: 18px; font-weight: 800; }
.upgrades-countdown { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; margin: 34px 0; }
.upgrades-countdown > div { min-width: 0; padding: 22px 8px; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; background: rgba(255,255,255,.045); }
.upgrades-countdown strong { display: block; color: var(--green); font-size: clamp(28px,5vw,58px); line-height: 1; }
.upgrades-countdown span { display: block; margin-top: 9px; color: #9da8b8; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.upgrades-countdown.finished strong { color: #fff; }
@media (max-width: 760px) { .upgrades-countdown { grid-template-columns: repeat(2,minmax(0,1fr)); } .upgrades-coming { border-radius: 22px; } }
.promotion-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:16px; }
.promotion-card { position:relative; min-height:260px; overflow:hidden; border:1px solid rgba(140,255,53,.2); border-radius:24px; background:linear-gradient(135deg,#19263d,#23132d); }
.promotion-card > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.42; }
.promotion-card > div { position:relative; z-index:1; min-height:260px; padding:28px; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-end; background:linear-gradient(0deg,rgba(5,9,15,.95),rgba(5,9,15,.12)); }
.promotion-card span,.promotion-card strong { color:var(--green); font-weight:900; }
.promotion-card h3 { margin:7px 0; font-size:clamp(23px,4vw,38px); }
.promotion-card p { margin:0 0 12px; color:#d3dae5; }
.promotion-card a,.promotion-card button { margin-top:16px; padding:11px 16px; border:0; border-radius:12px; background:var(--green); color:#07110d; font-weight:900; }
.promotion-card button:disabled { cursor:not-allowed; background:#26342f; color:#91a098; opacity:1; }
.market-buy-card button,.market-full-grid [data-market-buy] { margin-top:8px; min-height:38px; padding:8px 14px; border-radius:11px; background:var(--green); color:#07110d; font-weight:900; }
.market-buy-card button:disabled,.market-full-grid [data-market-buy]:disabled { opacity:.45; cursor:not-allowed; }

.topbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.topbar::-webkit-scrollbar { display: none; }

.topbar a,
.topbar button {
  flex: 0 0 auto;
  background: transparent;
  color: #c4cddd;
  font-size: 13px;
  font-weight: 800;
}

.topbar a:hover,
.topbar button:hover { color: var(--green); }

.main-nav {
  min-height: 102px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  font-size: 22px;
  font-weight: 900;
}

.brand span {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #08120d;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  box-shadow: 0 14px 26px rgba(55,219,101,.16);
}

.brand img {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  object-fit: contain;
  background: rgba(255,255,255,.06);
  box-shadow: 0 14px 26px rgba(0,0,0,.18);
}

.account-logo img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(255,255,255,.06);
  box-shadow: 0 14px 26px rgba(0,0,0,.18);
}

.main-tabs,
.price-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tab,
.quick,
.price-tabs button,
.switch,
.ghost {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  color: #d6deea;
  font-size: 14px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tab.active,
.tab:hover,
.price-tabs button.active,
.switch.active {
  background: rgba(140,255,53,.12);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(140,255,53,.22);
}

.login,
.primary {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #07110d;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(90,255,65,.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login {
  max-width: 260px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.login.authenticated {
  background: linear-gradient(135deg, #1d2f26, #142235);
  color: #f7f9ff;
  box-shadow: inset 0 0 0 1px rgba(140,255,53,.28);
}

.menu-btn {
  display: none;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  font-size: 22px;
}

.page {
  position: relative;
  z-index: 1;
  padding: 28px 0 80px;
}

.mobile-showcase { display: none; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 18px;
}

.hero-card,
.small-promo,
.tool-panel,
.case-card,
.skin-card {
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.045);
}

.hero-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(29,85,50,.8), rgba(17,27,44,.92));
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .64;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 13, 18, .92), rgba(7,13,18,.58) 56%, rgba(7,13,18,.16));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(640px, 64%);
  min-height: 390px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy span,
.section-head span {
  color: var(--green);
  font-weight: 900;
}

h1,
h2,
p { margin: 0; }

h1 {
  margin-top: 14px;
  font-size: clamp(38px, 4.8vw, 66px);
  line-height: 1.06;
  text-transform: uppercase;
}

.hero-copy p {
  margin-top: 18px;
  max-width: 600px;
  color: #c3cedc;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.45;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.promo-stack {
  display: grid;
  gap: 18px;
}

.small-promo {
  position: relative;
  min-height: 186px;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px;
  display: grid;
  align-content: end;
  background: linear-gradient(135deg, #173453, #162238);
}

.small-promo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .76;
}

.small-promo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,13,20,.82), rgba(8,13,20,.18));
}

.small-promo div,
.small-promo button {
  position: relative;
  z-index: 1;
}

.small-promo b {
  display: block;
  max-width: 280px;
  font-size: 22px;
  line-height: 1.08;
  text-transform: uppercase;
}

.small-promo span {
  display: block;
  margin-top: 7px;
  color: #e8efff;
  font-weight: 820;
}

.small-promo button,
.small-promo a {
  width: fit-content;
  min-height: 40px;
  margin-top: 16px;
  padding: 0 16px;
  border-radius: 12px;
  background: #fff;
  color: #0b1020;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.small-promo.pink { background: linear-gradient(135deg, #ea2f72, #ff944a); }
.small-promo.blue { background: linear-gradient(135deg, #2468ff, #7337ff); }

.tool-panel {
  min-height: 72px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  background: var(--panel);
}

.tool-panel input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  padding: 0 15px;
  background: rgba(4, 8, 14, .58);
  color: #fff;
  font-weight: 800;
}

.tool-panel input::placeholder { color: #6f7a8e; }

.main-roulette {
  margin-top: 18px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(140,255,53,.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 0%, rgba(140,255,53,.12), transparent 34%),
    linear-gradient(135deg, rgba(9, 22, 18, .96), rgba(15, 25, 39, .92));
  box-shadow: 0 22px 44px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.045);
}

.roulette-head,
.roulette-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.roulette-head span,
.roulette-price span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.roulette-head h2 {
  margin-top: 4px;
  font-size: 26px;
  line-height: 1.05;
  text-transform: uppercase;
}

.roulette-pack {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255,255,255,.055);
}

.roulette-pack button {
  width: 42px;
  height: 38px;
  border-radius: 12px;
  background: rgba(3, 8, 13, .48);
  color: #dce5f2;
  font-weight: 900;
}

.roulette-pack button.active,
.roulette-pack button:hover {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #07100c;
}

.main-roulette-track-wrap {
  position: relative;
  height: 176px;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(3, 8, 13, .48);
}

.main-roulette-track-wrap::before,
.main-roulette-track-wrap::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: 120px;
  pointer-events: none;
}

.main-roulette-track-wrap::before {
  left: 0;
  background: linear-gradient(90deg, rgba(4,8,12,.96), transparent);
}

.main-roulette-track-wrap::after {
  right: 0;
  background: linear-gradient(270deg, rgba(4,8,12,.96), transparent);
}

.main-roulette-pointer {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--green), transparent);
  box-shadow: 0 0 18px rgba(140,255,53,.7);
}

.main-roulette-track {
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
  will-change: transform;
}

.main-roulette[data-pack-size="2"] .main-roulette-track-wrap,
.main-roulette[data-pack-size="3"] .main-roulette-track-wrap,
.main-roulette[data-pack-size="4"] .main-roulette-track-wrap,
.main-roulette[data-pack-size="5"] .main-roulette-track-wrap { height: 176px; margin-block: 10px; }

.separate-roulette-lane {
  border-color: rgba(140,255,53,.16);
}

.separate-roulette-lane + .separate-roulette-lane {
  margin-top: -2px;
}

.main-roulette-track.multi {
  display: grid;
  align-content: stretch;
  gap: 8px;
  padding: 10px 12px;
  transform: none !important;
  will-change: auto;
}

.roulette-lane {
  min-width: max-content;
  display: flex;
  align-items: stretch;
  gap: 10px;
  will-change: transform;
}

.main-roulette-track.multi .main-roulette-item {
  flex-basis: 138px;
  min-height: 92px;
  padding: 8px;
  border-radius: 14px;
}

.main-roulette-track.multi .main-roulette-item img {
  width: 108px;
  height: 56px;
  margin-bottom: 5px;
}

.main-roulette-track.multi .case-prize-placeholder {
  width: 56px;
  height: 56px;
  margin-bottom: 5px;
  border-radius: 14px;
  font-size: 17px;
}

.main-roulette-track.multi .main-roulette-item b {
  font-size: 10px;
}

.main-roulette-track.multi .main-roulette-item strong {
  font-size: 12px;
}

.main-roulette-track.demo {
  animation: mainRouletteDemo 24s linear infinite;
}

@keyframes mainRouletteDemo {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.main-roulette-item {
  flex: 0 0 150px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  display: grid;
  justify-items: center;
  align-content: end;
  background: linear-gradient(145deg, #142033, #0c1522);
}

.main-roulette-item:nth-child(3n+1) { background: linear-gradient(145deg, #11301e, #0c1522); }
.main-roulette-item:nth-child(3n+2) { background: linear-gradient(145deg, #172f55, #0c1522); }
.main-roulette-item:nth-child(3n+3) { background: linear-gradient(145deg, #33204a, #0c1522); }

.main-roulette.is-resolved .main-roulette-item.final {
  box-shadow: inset 0 0 0 1px rgba(140,255,53,.55), 0 0 28px rgba(140,255,53,.14);
}

.main-roulette-item img {
  width: 128px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.42));
}

.case-prize-placeholder {
  width: 82px;
  height: 82px;
  margin-bottom: 8px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(140,255,53,.12);
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(140,255,53,.18);
}

.main-roulette-item b,
.main-roulette-item strong {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 900;
}

.main-roulette-item strong {
  margin-top: 3px;
  color: var(--green);
  font-size: 15px;
}

.roulette-price {
  display: grid;
  gap: 2px;
}

.roulette-price strong {
  font-size: 24px;
  color: var(--green);
}

.roulette-spin {
  min-width: 170px;
}

.roulette-results {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.roulette-results:empty { display: none; }

.roulette-results > span {
  color: var(--muted);
  font-weight: 900;
}

.roulette-results article {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.045);
}

.roulette-results img {
  width: 52px;
  height: 42px;
  object-fit: contain;
}

.roulette-results b,
.roulette-results strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 900;
}

.roulette-results strong { color: var(--green); }

.section-head {
  margin: 38px 0 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.section-head h2 {
  font-size: 24px;
  line-height: 1.1;
  text-transform: uppercase;
}

.section-head button,
.section-head a {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(140,255,53,.12);
  color: #fff;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.section-actions { display: flex; gap: 8px; align-items: center; }
.market-head { margin-top: 42px; }
.market-page { min-height: 100vh; background: #090b12; color: #fff; }
.market-page-header { max-width: 1440px; margin: 0 auto; padding: 24px 32px; display: flex; align-items: center; justify-content: space-between; }
.market-page-header nav { display: flex; gap: 10px; }
.market-page-header nav a { color: #aeb4c7; padding: 10px 16px; border-radius: 12px; text-decoration: none; }
.market-page-header nav a.active, .market-page-header nav a:hover { color: #fff; background: #24283a; }
.market-page-main { max-width: 1440px; margin: 0 auto; padding: 30px 32px 80px; }
.market-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
.market-title span { color: #8d95ac; font-weight: 800; text-transform: uppercase; font-size: 12px; }
.market-title h1 { font-size: clamp(36px, 6vw, 72px); margin: 4px 0 0; }
.market-title a { color: #c8ccda; text-decoration: none; }
.market-filters { display: grid; grid-template-columns: minmax(220px, 1fr) 160px 160px auto auto; gap: 10px; margin-bottom: 28px; padding: 16px; background: #121522; border: 1px solid #24283a; border-radius: 18px; }
.market-filters input { min-width: 0; color: #fff; background: #0b0e17; border: 1px solid #30364b; border-radius: 12px; padding: 13px 14px; }
.market-filters button, .market-filters a { border: 0; border-radius: 12px; padding: 13px 18px; font-weight: 800; text-decoration: none; text-align: center; cursor: pointer; }
.market-filters button { background: #7b61ff; color: #fff; }
.market-filters a { background: #24283a; color: #fff; }
.market-full-grid .skin-card small { color: #8d95ac; font-size: 11px; font-weight: 800; text-transform: uppercase; }
@media (max-width: 760px) {
  .market-page-header, .market-page-main { padding-left: 16px; padding-right: 16px; }
  .market-page-header nav a:not(.active) { display: none; }
  .market-filters { grid-template-columns: 1fr 1fr; }
  .market-filters input:first-child { grid-column: 1 / -1; }
}

/* Header logo: keep this final override after all responsive legacy rules. */
.site-header .main-nav {
  min-height: 116px;
}

.site-header .main-nav .brand img,
.market-page-header .brand img {
  width: 86px !important;
  height: 86px !important;
  max-width: none;
  border-radius: 22px;
}

.site-header .main-nav .brand span,
.market-page-header .brand span {
  width: 86px !important;
  height: 86px !important;
  border-radius: 22px;
}

@media (max-width: 760px) {
  .site-header .main-nav {
    min-height: 90px;
    grid-template-columns: 62px minmax(0, 1fr) 52px;
  }

  .site-header .main-nav .brand img,
  .market-page-header .brand img,
  .site-header .main-nav .brand span,
  .market-page-header .brand span {
    width: 60px !important;
    height: 60px !important;
    border-radius: 17px;
  }
}

.case-card,
.skin-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 42%),
    linear-gradient(180deg, rgba(29,40,62,.92), rgba(12,18,30,.96));
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.case-card:hover,
.skin-card:hover {
  transform: translateY(-3px);
  border-color: rgba(140,255,53,.34);
  box-shadow: 0 22px 46px rgba(0,0,0,.28), 0 0 0 1px rgba(140,255,53,.08);
}

.case-open {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  width: 100%;
  min-height: 248px;
  padding: 18px 12px 14px;
  display: grid;
  grid-template-rows: 132px auto 36px;
  justify-items: center;
  gap: 10px;
  background: transparent;
}

.case-art {
  width: 100%;
  height: 132px;
  display: grid;
  place-items: center;
}

.case-art img,
.skin-card img {
  width: 100%;
  height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.38));
}

.case-meta,
.case-card b,
.skin-card b {
  min-width: 0;
  max-width: 100%;
  text-align: center;
}

.case-card b,
.skin-card b {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 900;
}

.case-card strong,
.skin-card strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
}

.case-card em {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.09);
  color: #fff;
  font-style: normal;
  font-size: 13px;
  font-weight: 860;
  transition: background .18s ease, color .18s ease;
}

.case-card:hover em {
  background: rgba(140,255,53,.16);
  color: var(--green);
}

.skin-card {
  min-height: 220px;
  padding: 16px 12px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  background: linear-gradient(180deg, rgba(29,40,62,.9), rgba(12,18,30,.96));
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  text-align: center;
  font-weight: 850;
}

.skeleton {
  min-height: 220px;
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.08), rgba(255,255,255,.04));
  background-size: 220% 100%;
  animation: shimmer 1.2s linear infinite;
}

.site-stats {
  margin-top: 42px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  background:
    radial-gradient(circle at 8% 20%, rgba(140,255,53,.08), transparent 20rem),
    linear-gradient(135deg, rgba(29,24,75,.88), rgba(18,18,50,.88));
  box-shadow: 0 20px 45px rgba(0,0,0,.2);
}

.site-stat {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.site-stat.online {
  align-content: center;
  justify-items: start;
  border-right: 1px solid rgba(255,255,255,.08);
}

.site-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
  position: relative;
  background: rgba(140,255,53,.14);
  box-shadow: inset 0 0 0 3px var(--green);
}

.site-stat-icon::before,
.site-stat-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--green);
}

.site-stat-icon::before {
  top: 8px;
  width: 11px;
  height: 11px;
}

.site-stat-icon::after {
  bottom: 7px;
  width: 20px;
  height: 10px;
}

.site-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 34px;
}

.site-stat strong {
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1;
  color: #fff;
  font-weight: 1000;
}

.site-stat small {
  color: rgba(255,255,255,.58);
  font-size: 14px;
  font-weight: 900;
}

.legal-footer {
  margin-top: 44px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  background: rgba(8, 16, 13, .78);
  box-shadow: 0 20px 48px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.04);
}

.legal-notice {
  padding: 16px 18px;
  border-radius: 16px;
  display: grid;
  gap: 7px;
  background: rgba(140,255,53,.1);
  box-shadow: inset 0 0 0 1px rgba(140,255,53,.16);
}

.legal-notice span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-notice strong {
  max-width: 1120px;
  font-size: 16px;
  line-height: 1.42;
}

.footer-tabs {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.footer-tabs a {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  color: #d8e1ee;
  font-size: 13px;
  font-weight: 850;
}

.footer-tabs a:hover {
  background: rgba(140,255,53,.14);
  color: #fff;
}

.legal-footer p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}

.legal-footer small {
  display: block;
  margin-top: 12px;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 800;
}

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 24px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 13px 17px;
  border-radius: 14px;
  background: #fff;
  color: #0b1020;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: .18s ease;
  box-shadow: 0 18px 38px rgba(0,0,0,.34);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.opening-overlay {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 7, 12, .76);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  backdrop-filter: blur(18px);
}

.opening-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.opening-modal {
  position: relative;
  width: min(940px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(140,255,53,.12), transparent 34%),
    linear-gradient(180deg, rgba(18,29,45,.98), rgba(7,12,20,.98));
  box-shadow: 0 34px 90px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.08);
}

.opening-modal.multi-opening {
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.opening-modal.multi-opening .opening-wheel-wrap {
  height: 108px;
  margin-top: 9px;
}

.opening-modal.multi-opening .opening-item {
  flex-basis: 112px;
  height: 88px;
  grid-template-rows: 42px 18px 16px;
  padding: 5px;
  gap: 2px;
}

.opening-modal.multi-opening .opening-item img { height: 42px; }
.opening-modal.multi-opening .opening-wheel { padding: 8px; }

.opening-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.opening-title {
  padding-right: 48px;
}

.opening-title span,
.opening-result span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.opening-title h2 {
  margin-top: 6px;
  overflow-wrap: anywhere;
  font-size: 28px;
  line-height: 1.05;
}

.opening-wheel-wrap {
  position: relative;
  margin-top: 20px;
  height: 194px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  background: rgba(3,8,14,.54);
}

.opening-wheel-wrap::before,
.opening-wheel-wrap::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 120px;
  pointer-events: none;
}

.opening-wheel-wrap::before {
  left: 0;
  background: linear-gradient(90deg, rgba(3,8,14,.98), transparent);
}

.opening-wheel-wrap::after {
  right: 0;
  background: linear-gradient(270deg, rgba(3,8,14,.98), transparent);
}

.opening-pointer {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--green), transparent);
  box-shadow: 0 0 26px rgba(140,255,53,.78);
}

.opening-wheel {
  height: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px;
  will-change: transform;
}

.opening-item {
  flex: 0 0 150px;
  height: 162px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  display: grid;
  grid-template-rows: 82px auto auto;
  justify-items: center;
  gap: 6px;
  background: linear-gradient(180deg, rgba(29,40,62,.94), rgba(12,18,30,.98));
}

.opening-overlay.done .opening-item.final {
  border-color: rgba(140,255,53,.42);
  box-shadow: 0 0 0 1px rgba(140,255,53,.1), 0 18px 32px rgba(0,0,0,.28);
}

.opening-item img {
  width: 100%;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 16px 14px rgba(0,0,0,.42));
}

.opening-item b {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.opening-item strong {
  color: var(--green);
  font-size: 15px;
  font-weight: 900;
}

.opening-result {
  min-height: 72px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  display: grid;
  align-content: center;
  background: rgba(255,255,255,.055);
}

.opening-result b {
  margin-top: 4px;
  font-size: 22px;
  font-weight: 900;
}

.opening-result strong {
  color: var(--green);
  font-size: 21px;
  font-weight: 900;
}

.opening-overlay.done .opening-result {
  background: rgba(140,255,53,.12);
  box-shadow: inset 0 0 0 1px rgba(140,255,53,.18);
}

.opening-result-grid {
  width: 100%;
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.opening-result-grid article {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 12px;
  background: rgba(5, 11, 18, .42);
}

.opening-result-grid img {
  width: 100%;
  height: 54px;
  object-fit: contain;
}

.opening-result-grid b,
.opening-result-grid strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
}

.bottom-nav { display: none; }

.account-body {
  background:
    radial-gradient(circle at 14% 6%, rgba(140,255,53,.12), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(107,182,255,.14), transparent 30%),
    linear-gradient(180deg, #07100c 0%, #08121d 45%, #070b14 100%);
}

.account-top,
.account-page {
  position: relative;
  z-index: 1;
  width: min(1420px, calc(100vw - 48px));
  margin: 0 auto;
}

.account-top {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-logo {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
}

.account-logo span {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #06110d;
  background: linear-gradient(135deg, var(--green), var(--green-2));
}

.account-top nav {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-top a:not(.account-logo) {
  min-height: 42px;
  padding: 11px 14px;
  border-radius: 13px;
  background: rgba(255,255,255,.07);
  color: #e9eef7;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

.account-top .account-site-link {
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #06110d;
}

.account-page {
  padding-bottom: 80px;
}

.account-hero {
  min-height: 280px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: 18px;
  background:
    linear-gradient(90deg, rgba(8,14,21,.92), rgba(8,14,21,.48)),
    linear-gradient(135deg, rgba(140,255,53,.18), rgba(107,182,255,.14));
  box-shadow: 0 28px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
}

.account-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.account-identity img,
.account-avatar-fallback {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  flex: 0 0 auto;
  object-fit: cover;
  background: rgba(255,255,255,.08);
  box-shadow: 0 18px 34px rgba(0,0,0,.3);
}

.account-avatar-fallback {
  display: grid;
  place-items: center;
  color: #06110d;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  font-size: 28px;
  font-weight: 900;
}

.account-avatar-fallback-img {
  object-fit: contain !important;
}

.account-identity span,
.account-balance-card span,
.account-metrics span,
.account-section-head span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-identity h1 {
  max-width: 760px;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  font-size: clamp(32px, 5vw, 62px);
  line-height: .94;
}

.account-identity p {
  margin-top: 10px;
  color: #c5cfdd;
  font-weight: 800;
}

.account-balance-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: rgba(5,11,17,.62);
}

.account-balance-card strong {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 34px;
  font-weight: 900;
}

.account-metrics {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.account-metrics article,
.account-section {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  background: rgba(15,28,24,.76);
  box-shadow: 0 20px 48px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.04);
}

.account-metrics article {
  padding: 18px;
}

.account-metrics strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.account-alert {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255,78,145,.25);
  border-radius: 16px;
  background: rgba(255,78,145,.1);
  font-weight: 850;
}

.account-section {
  margin-top: 20px;
  padding: 18px;
}

.account-section-head {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.account-section-head h2 {
  margin-top: 5px;
  font-size: 26px;
  text-transform: uppercase;
}

.account-section-head button {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 13px;
  background: rgba(140,255,53,.14);
  font-weight: 900;
}

.account-inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.account-inventory-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, rgba(29,40,62,.86), rgba(9,15,26,.94));
}

.account-item-art {
  height: 142px;
  display: grid;
  place-items: center;
}

.account-item-art img {
  width: 100%;
  height: 142px;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,.4));
}

.account-card-copy b {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 900;
}

.account-card-copy span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.account-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-card-bottom strong {
  color: var(--green);
  font-size: 21px;
  font-weight: 900;
}

.account-card-bottom button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 12px;
  background: rgba(255,255,255,.09);
  font-weight: 900;
}

.account-history-list {
  display: grid;
  gap: 10px;
}

.account-history-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.04);
}

.account-history-card img {
  width: 76px;
  height: 58px;
  object-fit: contain;
}

.account-history-card b,
.account-history-card span,
.account-history-card time {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.account-history-card b {
  display: block;
  font-weight: 900;
}

.account-history-card span,
.account-history-card time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.account-empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
  font-weight: 850;
}

@media (max-width: 1240px) {
  .topbar,
  .main-nav,
  .page {
    width: min(100vw - 32px, 980px);
  }

  .main-nav {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .main-tabs { justify-content: center; }
  .menu-btn { display: grid; place-items: center; }
  .hero-grid { grid-template-columns: 1fr; }

  .promo-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-grid,
  .skin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tool-panel {
    grid-template-columns: 1fr 1fr;
  }

  .roulette-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .account-hero {
    grid-template-columns: 1fr;
  }

  .account-inventory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 88px;
    background:
      linear-gradient(135deg, rgba(255,255,255,.024) 25%, transparent 25%) 0 0 / 104px 104px,
      linear-gradient(180deg, #06110d, #07111d 48%, #070b14);
  }

  .site-header {
    position: relative;
    border-bottom: 0;
    background: linear-gradient(180deg, rgba(5,13,10,.98), rgba(5,13,18,.94));
  }

  .live-strip-viewport {
    height: 99px;
  }

  .live-strip {
    height: 99px;
    grid-auto-columns: 25vw;
    gap: 6px;
    padding: 7px 9px;
    background: transparent;
  }

  .live-card {
    height: 100%;
    padding: 6px 5px;
    display: grid;
    grid-template-rows: 39px 27px 19px;
    align-content: center;
    justify-items: center;
    gap: 2px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
  }

  .live-card img {
    position: static;
    grid-row: 1;
    width: 65px;
    height: 39px;
  }

  .topbar,
  .main-tabs,
  .brand strong,
  .hero-grid {
    display: none;
  }

  .live-card b {
    display: block;
    grid-row: 2;
    width: 100%;
    height: 24px;
    overflow: hidden;
    white-space: normal;
    text-overflow: clip;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 8.5px;
    line-height: 12px;
    text-align: center;
  }

  .live-card span {
    display: block;
    grid-row: 3;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(5,13,10,.82);
    color: var(--green);
    font-size: 10px;
    line-height: 15px;
  }

  .main-nav {
    width: calc(100vw - 28px);
    min-height: 82px;
    grid-template-columns: 56px minmax(0, 1fr) 52px;
    gap: 10px;
  }

  .brand span {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 15px;
  }

  .brand img {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .account-logo img {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .login {
    justify-self: end;
    min-width: 148px;
    max-width: 190px;
    min-height: 48px;
    border-radius: 15px;
    font-size: 16px;
  }

  .menu-btn {
    width: 52px;
    height: 48px;
    border-radius: 15px;
  }

  .page {
    width: calc(100vw - 28px);
    padding: 8px 0 104px;
  }

  .mobile-showcase {
    display: grid;
    gap: 13px;
  }

  .mobile-promo {
    position: relative;
    min-height: 166px;
    overflow: hidden;
    border-radius: 22px;
    padding: 20px;
    background: linear-gradient(135deg, #e72f72, #ff944a);
    box-shadow: 0 18px 34px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.16);
  }

  .mobile-promo > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .72;
  }

  .mobile-promo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(215,45,104,.9), rgba(255,143,82,.52));
  }

  .mobile-promo div {
    position: relative;
    z-index: 1;
  }

  .mobile-promo h1 {
    max-width: 230px;
    margin: 0;
    font-size: 25px;
    line-height: 1.06;
    text-transform: none;
  }

  .mobile-promo p {
    max-width: 220px;
    margin-top: 9px;
    color: rgba(255,255,255,.86);
    font-size: 15px;
    font-weight: 760;
    line-height: 1.25;
  }

  .promo-row {
    width: min(310px, 100%);
    margin-top: 15px;
    padding: 6px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.17);
  }

  .promo-row span {
    padding-left: 13px;
    color: rgba(255,255,255,.68);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .promo-row button {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--green);
    color: #07110d;
    font-size: 14px;
    font-weight: 900;
  }

  .deposit-ribbon {
    min-height: 58px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    padding: 0 16px;
    background:
      linear-gradient(135deg, rgba(140,255,53,.18), transparent),
      #193018;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
  }

  .deposit-ribbon span {
    text-align: center;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-case-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 4px 0 6px;
  }

  .mobile-case-duo button,
  .mobile-case-duo > a {
    min-width: 0;
    min-height: 170px;
    padding: 8px;
    display: grid;
    justify-items: center;
    align-content: end;
    gap: 4px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(29,40,62,.76), rgba(12,18,30,.28));
    color: #fff;
    text-decoration: none;
  }

  .mobile-case-duo img {
    width: 100%;
    height: 116px;
    object-fit: contain;
    filter: drop-shadow(0 18px 16px rgba(0,0,0,.44));
  }

  .mobile-case-duo span,
  .mobile-case-duo b {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    font-weight: 900;
  }

  .mobile-case-duo span { font-size: 13px; }
  .mobile-case-duo b { color: var(--green); font-size: 17px; }

  .free-case-head,
  #freeCases { display: none; }

  .tool-panel {
    min-height: 0;
    margin-top: 12px;
    padding: 11px;
    border-radius: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    background: rgba(15, 28, 24, .9);
  }

  .quick,
  .switch,
  .price-tabs button {
    min-height: 40px;
    padding: 0 11px;
    border-radius: 12px;
    font-size: 12px;
  }

  .tool-panel input {
    grid-column: 1 / -1;
    height: 42px;
    border-radius: 12px;
    font-size: 14px;
  }

  .price-tabs {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .main-roulette {
    margin-top: 12px;
    padding: 12px;
    border-radius: 18px;
  }

  .roulette-head,
  .roulette-foot {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .roulette-head h2 {
    font-size: 19px;
  }

  .roulette-pack {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 5px;
  }

  .roulette-pack button {
    width: auto;
    height: 34px;
    border-radius: 10px;
    font-size: 13px;
  }

  .main-roulette-track-wrap {
    height: 132px;
    margin: 12px 0;
    border-radius: 15px;
  }

  .main-roulette[data-pack-size="2"] .main-roulette-track-wrap,
  .main-roulette[data-pack-size="3"] .main-roulette-track-wrap,
  .main-roulette[data-pack-size="4"] .main-roulette-track-wrap,
  .main-roulette[data-pack-size="5"] .main-roulette-track-wrap { height: 132px; }

  .main-roulette-track-wrap::before,
  .main-roulette-track-wrap::after {
    width: 48px;
  }

  .main-roulette-track {
    gap: 7px;
    padding: 8px;
  }

  .main-roulette-item {
    flex-basis: 108px;
    padding: 8px;
    border-radius: 13px;
  }

  .main-roulette-track.multi {
    gap: 6px;
    padding: 8px;
  }

  .roulette-lane {
    gap: 7px;
  }

  .main-roulette-track.multi .main-roulette-item {
    flex-basis: 104px;
    min-height: 70px;
    padding: 7px;
    border-radius: 12px;
  }

  .main-roulette-item img {
    width: 94px;
    height: 58px;
    margin-bottom: 6px;
  }

  .main-roulette-track.multi .main-roulette-item img {
    width: 84px;
    height: 42px;
    margin-bottom: 4px;
  }

  .main-roulette-track.multi .case-prize-placeholder {
    width: 42px;
    height: 42px;
    margin-bottom: 4px;
    border-radius: 11px;
    font-size: 14px;
  }

  .case-prize-placeholder {
    width: 58px;
    height: 58px;
    margin-bottom: 6px;
    border-radius: 14px;
    font-size: 17px;
  }

  .main-roulette-item b {
    font-size: 11px;
  }

  .main-roulette-item strong {
    font-size: 13px;
  }

  .roulette-price strong {
    font-size: 20px;
  }

  .roulette-spin {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border-radius: 13px;
    font-size: 14px;
  }

  .roulette-results {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .roulette-results article {
    padding: 8px;
    border-radius: 12px;
  }

  .section-head {
    margin: 24px 0 11px;
    gap: 8px;
  }

  .section-head h2 {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 17px;
  }

  .section-head button,
  .section-head a {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 12px;
    white-space: nowrap;
  }

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

  .case-card,
  .skin-card {
    border-radius: 16px;
  }

  .case-open {
    min-height: 194px;
    padding: 10px 8px;
    grid-template-rows: 100px auto 32px;
    gap: 6px;
  }

  .case-art,
  .case-art img,
  .skin-card img {
    height: 100px;
  }

  .case-card b,
  .skin-card b {
    font-size: 12px;
  }

  .case-card strong,
  .skin-card strong {
    font-size: 18px;
  }

  .case-card em {
    min-height: 32px;
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 12px;
  }

  .skin-card {
    min-height: 174px;
    padding: 10px 8px;
  }

  .legal-footer {
    margin-top: 28px;
    padding: 13px;
    border-radius: 18px;
  }

  .site-stats {
    margin-top: 28px;
    padding: 14px;
    grid-template-columns: 1fr;
    gap: 14px;
    border-radius: 18px;
  }

  .site-stat.online {
    min-height: 74px;
    padding-bottom: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    grid-template-columns: 42px 1fr;
    align-items: center;
  }

  .site-stat.online .site-stat-icon {
    grid-row: span 2;
  }

  .site-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .site-stat strong {
    font-size: 22px;
  }

  .site-stat small {
    font-size: 12px;
  }

  .legal-notice {
    padding: 13px;
    border-radius: 14px;
  }

  .legal-notice strong {
    font-size: 13px;
    line-height: 1.38;
  }

  .footer-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-tabs a {
    min-height: 38px;
    border-radius: 11px;
    font-size: 12px;
  }

  .legal-footer p {
    font-size: 12px;
  }

  .legal-footer small {
    font-size: 11px;
  }

  .bottom-nav {
    position: fixed;
    z-index: 50;
    left: 50%;
    right: auto;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: min(520px, calc(100vw - 20px));
    height: 64px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    transform: translateX(-50%);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 19px;
    background: rgba(9, 36, 23, .94);
    box-shadow: 0 16px 34px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.07);
    backdrop-filter: blur(18px);
  }

  .bottom-nav button,
  .bottom-nav a {
    min-width: 0;
    width: 100%;
    overflow: hidden;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    background: transparent;
    color: rgba(255,255,255,.64);
    font-size: 20px;
    font-weight: 900;
  }

  .bottom-nav span {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    font-size: 10px;
  }

  .bottom-nav button.active,
  .bottom-nav a.active {
    background: rgba(140,255,53,.13);
    color: var(--green);
    box-shadow: inset 0 -3px 0 rgba(140,255,53,.55);
  }

  .toast { bottom: 86px; }

  .opening-overlay {
    padding: 12px;
  }

  .opening-modal {
    border-radius: 20px;
    padding: 16px;
  }

  .opening-title h2 {
    font-size: 21px;
  }

  .opening-wheel-wrap {
    height: 158px;
    margin-top: 14px;
    border-radius: 16px;
  }

  .opening-wheel-wrap::before,
  .opening-wheel-wrap::after {
    width: 52px;
  }

  .opening-wheel {
    gap: 8px;
    padding: 10px;
  }

  .opening-item {
    flex-basis: 118px;
    height: 134px;
    grid-template-rows: 66px auto auto;
    border-radius: 14px;
  }

  .opening-item img {
    height: 66px;
  }

  .opening-result {
    min-height: 66px;
    margin-top: 12px;
  }

  .opening-result b,
  .opening-result strong {
    font-size: 18px;
  }

  .opening-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .opening-result-grid img {
    height: 46px;
  }

  .account-top,
  .account-page {
    width: calc(100vw - 24px);
  }

  .account-top {
    min-height: 76px;
  }

  .account-logo strong {
    display: none;
  }

  .account-top a:not(.account-logo) {
    min-height: 38px;
    padding: 9px 11px;
    font-size: 12px;
  }

  .account-hero {
    min-height: 0;
    padding: 18px;
    border-radius: 20px;
  }

  .account-identity {
    align-items: flex-start;
  }

  .account-identity img,
  .account-avatar-fallback {
    width: 66px;
    height: 66px;
    border-radius: 18px;
  }

  .account-identity h1 {
    font-size: 29px;
  }

  .account-identity p {
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .account-balance-card {
    padding: 16px;
  }

  .account-balance-card strong {
    font-size: 26px;
  }

  .account-metrics {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .account-section {
    padding: 13px;
    border-radius: 18px;
  }

  .account-section-head {
    align-items: flex-start;
  }

  .account-section-head h2 {
    font-size: 20px;
  }

  .account-inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .account-inventory-card {
    padding: 10px;
    border-radius: 15px;
  }

  .account-item-art,
  .account-item-art img {
    height: 102px;
  }

  .account-card-bottom {
    display: grid;
    gap: 8px;
  }

  .account-card-bottom strong {
    font-size: 18px;
  }

  .account-history-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
  }

  .account-history-card img {
    width: 58px;
    height: 48px;
  }

  .account-history-card time {
    grid-column: 2;
  }

}
.withdraw-notice {
  display: block;
  margin-top: 8px;
  color: #ffcf70;
  line-height: 1.35;
}

/* Compact cabinet layout */
.account-quick-nav { max-width: 1240px; margin: 12px auto 0; padding: 8px; display: flex; gap: 7px; overflow-x: auto; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(17,27,43,.9); scrollbar-width: none; }
.account-quick-nav::-webkit-scrollbar { display: none; }
.account-quick-nav a { flex: 0 0 auto; padding: 9px 14px; border-radius: 9px; color: #dbe5f2; text-decoration: none; font-size: 12px; font-weight: 900; }
.account-quick-nav a:hover { color: #07110d; background: var(--green); }
.account-page { max-width: 1240px; padding-top: 14px; }
.account-hero { min-height: 0; padding: 16px; grid-template-columns: minmax(0,1fr) 270px; border-radius: 18px; align-items: center; }
.account-identity { gap: 13px; }
.account-identity img,.account-avatar-fallback { width: 68px; height: 68px; border-radius: 16px; }
.account-identity h1 { margin-top: 4px; font-size: clamp(24px,3vw,38px); line-height: 1; }
.account-identity p { margin-top: 6px; font-size: 12px; }
.account-balance-card { padding: 14px 16px; border-radius: 14px; }
.account-balance-card strong { margin-top: 4px; font-size: 25px; }
.account-metrics { margin-top: 10px; gap: 9px; }
.account-metrics article { padding: 12px 14px; border-radius: 14px; }
.account-metrics strong { margin-top: 3px; font-size: 18px; }
.account-section { margin-top: 12px; padding: 14px; border-radius: 15px; }
.account-section-head { margin-bottom: 11px; }
.account-section-head h2 { margin-top: 2px; font-size: 19px; }
.account-mobile-bonuses { margin-top: 12px; gap: 10px; }
.account-bonus-card { min-height: 0; padding: 13px; border-radius: 15px; }
.account-inventory-tools { display: flex; gap: 8px; }
.account-inventory-tools .sell-all-inventory { color: #07110d; background: var(--green); }
.account-inventory-tools button:disabled { opacity: .42; cursor: not-allowed; }
.account-inventory-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 9px; }
.account-inventory-card { padding: 9px; gap: 7px; border-radius: 13px; }
.account-item-art,.account-item-art img { height: 82px; }
.account-card-copy b { font-size: 12px; }
.account-card-copy small { font-size: 10px; }
.account-card-bottom { align-items: stretch; flex-direction: column; }
.account-card-bottom strong { font-size: 16px; }
.inventory-actions { display: grid; gap: 5px; }
.account-card-bottom button { min-height: 30px; padding: 0 8px; border-radius: 8px; font-size: 10px; }
.account-history-card { padding: 8px 10px; grid-template-columns: 58px minmax(0,1fr) auto; border-radius: 11px; }
.account-history-card img { width: 58px; height: 42px; }

/* Mandatory Steam legal consent */
.legal-consent-page { min-height: 100vh; margin: 0; color: #f5f7fb; background: radial-gradient(circle at 50% 10%,rgba(140,255,53,.12),transparent 34%),#060b12; font-family: Inter,system-ui,sans-serif; }
.legal-consent-overlay { min-height: 100vh; padding: 24px; display: grid; place-items: center; }
.legal-consent-modal { position: relative; width: min(100%,560px); padding: 30px; border: 1px solid rgba(140,255,53,.25); border-radius: 22px; background: linear-gradient(145deg,#14201d,#0b1220); box-shadow: 0 35px 90px rgba(0,0,0,.55); }
.legal-consent-close { position: absolute; right: 16px; top: 12px; color: #fff; text-decoration: none; font-size: 30px; }
.legal-consent-mark { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; color: #07110d; background: var(--green); font-size: 22px; font-weight: 1000; }
.legal-consent-modal h1 { margin: 20px 0 8px; font-size: 30px; }
.legal-consent-modal > p,.legal-consent-modal > small { color: #aeb9c9; line-height: 1.55; }
.legal-consent-modal form { margin: 22px 0 14px; display: grid; gap: 10px; }
.legal-consent-modal label { padding: 12px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.035); font-size: 13px; font-weight: 750; }
.legal-consent-modal input { width: 18px; height: 18px; accent-color: var(--green); }
.legal-consent-modal label button { padding: 0; color: var(--green); background: transparent; text-decoration: underline; }
.legal-consent-submit { min-height: 48px; margin-top: 6px; border-radius: 12px; color: #07110d; background: var(--green); font-weight: 1000; }
.legal-consent-error { margin-top: 12px; padding: 10px; border-radius: 10px; color: #ffd3d3; background: rgba(255,65,95,.13); }
.legal-document { position: fixed; z-index: 1000; inset: 0; padding: 20px; display: none; place-items: center; background: rgba(0,0,0,.78); }
.legal-document.show { display: grid; }
.legal-document article { position: relative; width: min(100%,720px); max-height: 82vh; padding: 28px; overflow-y: auto; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: #101a29; }
.legal-document article > button { position: absolute; right: 14px; top: 10px; color: #fff; background: transparent; font-size: 26px; }
.legal-document p { color: #c7d0dc; line-height: 1.65; }

@media (max-width: 800px) {
  .account-quick-nav { margin-inline: 10px; }
  .account-hero { grid-template-columns: 1fr; }
  .account-balance-card { width: 100%; }
  .account-inventory-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .account-inventory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .account-inventory-tools { width: 100%; }
  .account-inventory-tools button { flex: 1; }
  .legal-consent-modal { padding: 22px 16px; }
}

/* Cabinet v2: visibly separated dashboard and tabbed workspace */
.account-dashboard { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(210px,.72fr) minmax(210px,.72fr); gap:10px; }
.account-profile-panel,.account-dashboard-card { min-width:0; min-height:138px; padding:16px; border:1px solid rgba(255,255,255,.09); border-radius:17px; background:linear-gradient(145deg,rgba(18,33,38,.95),rgba(13,22,36,.95)); box-shadow:0 16px 38px rgba(0,0,0,.22); }
.account-profile-panel { display:flex; flex-direction:column; justify-content:space-between; }
.account-profile-actions { display:flex; gap:7px; margin-top:12px; }
.account-profile-actions a,.account-dashboard-card a,.account-dashboard-card button { min-height:32px; padding:8px 11px; border-radius:9px; display:inline-flex; align-items:center; justify-content:center; color:#e8eef7; background:rgba(255,255,255,.075); text-decoration:none; font-size:11px; font-weight:900; }
.account-dashboard-card { display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; }
.account-dashboard-card > span { color:var(--green); font-size:11px; font-weight:1000; text-transform:uppercase; }
.account-dashboard-card > strong { display:block; max-width:100%; color:#fff; font-size:clamp(22px,2.4vw,32px); line-height:1; overflow-wrap:anywhere; }
.account-wallet-panel { background:linear-gradient(145deg,rgba(30,46,67,.96),rgba(10,20,32,.96)); }
.account-wallet-panel > strong { color:var(--green); }
.account-wallet-panel a,.account-daily-panel button { color:#07110d; background:var(--green); }
.account-daily-panel { background:linear-gradient(145deg,rgba(51,38,72,.96),rgba(16,23,38,.96)); }
.account-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
.account-quick-nav { margin:10px 0 0; max-width:none; padding:6px; border-radius:12px; }
.account-quick-nav button { flex:0 0 auto; min-height:34px; padding:7px 13px; border-radius:8px; color:#aeb9ca; background:transparent; font-size:11px; font-weight:950; }
.account-quick-nav button:hover,.account-quick-nav button.active { color:#07110d; background:var(--green); }
.account-tab-panel { display:none !important; }
.account-tab-panel.active { display:block !important; }
.account-mobile-bonuses.account-tab-panel.active { display:grid !important; }
.account-promotions-compact .promotion-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.account-promotions-compact .promotion-card { min-height:128px; border-radius:13px; }
.account-promotions-compact .promotion-card > div { min-height:128px; padding:13px; justify-content:flex-end; }
.account-promotions-compact .promotion-card h3 { margin:3px 0; font-size:16px; line-height:1.1; }
.account-promotions-compact .promotion-card p { max-height:32px; margin:0 0 5px; overflow:hidden; font-size:11px; line-height:16px; }
.account-promotions-compact .promotion-card a,.account-promotions-compact .promotion-card button { min-height:28px; margin-top:6px; padding:6px 9px; border-radius:8px; font-size:10px; }
.account-promotions-compact .promotion-card strong,.account-promotions-compact .promotion-card span { font-size:10px; }

@media (max-width:900px) {
  .account-dashboard { grid-template-columns:1fr 1fr; }
  .account-profile-panel { grid-column:1/-1; }
}
@media (max-width:560px) {
  .account-dashboard { grid-template-columns:1fr; }
  .account-profile-panel { grid-column:auto; }
  .account-dashboard-card { min-height:112px; }
  .account-promotions-compact .promotion-grid { grid-template-columns:1fr; }
}
