/* ===================================================================== HOME */
/* banner carousel: copy on the left; on the right an official Roblox character (assets/img/characters) in front of the
   brand hex, in the slide's colour, with the cases or item the slide is about */
.hero-banner {
  position: relative; height: 380px; overflow: hidden; isolation: isolate; container-type: inline-size;
  border-radius: 14px; border: 1px solid var(--line-2); background: #0e1020;
}
.hb-track { display: flex; height: 100%; transition: transform 0.7s var(--ease); }
.hb-slide {
  --hb: 255, 138, 0;
  position: relative; flex: 0 0 100%; height: 100%; display: flex; align-items: center; padding-bottom: 46px; overflow: hidden;
  background: linear-gradient(90deg, #0e1020 34%, rgba(var(--hb), 0.07)), #0e1020;
}
.hb-rewards { --hb: 43, 217, 107; }
.hb-race { --hb: 143, 107, 255; }
.hb-battles { --hb: 255, 77, 94; }
.hb-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 48px; max-width: 50%; }
.hb-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgb(var(--hb, 255, 138, 0));
}
.hb-kicker::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.hb-title {
  font-family: var(--display); font-weight: 800; font-size: clamp(44px, 5.6cqw, 76px); line-height: 0.88; letter-spacing: 0.005em;
  text-transform: uppercase; color: #fff;
}
.hb-title em { font-style: normal; color: rgb(var(--hb)); }
.hb-main .hb-title em { color: #ffa21f; }
.hb-sub { font-size: 16px; color: var(--text-2); max-width: 440px; line-height: 1.5; }
.hb-sub b { color: #fff; }
.hb-cta { margin-top: 6px; }

.hb-art { position: absolute; right: 0; top: 0; bottom: 0; width: 56%; z-index: 1; pointer-events: none; }
.hb-hex { position: absolute; top: 50%; left: 66%; height: 128%; translate: -50% -50%; overflow: visible; transition: transform 1s var(--ease); transform: scale(0.94); }
.hb-hex .hx-fill { fill: rgb(var(--hb)); opacity: 0.9; }
.hb-hex .hx-shade { fill: url(#g-hex-shade); }
.hb-hex .hx-line { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 3; }
.hb-slide.on .hb-hex { transform: none; }
.hb-agent {
  position: absolute; bottom: 2%; left: 66%; height: 90%; width: auto; object-fit: contain; translate: -50% 0;
  filter: drop-shadow(-14px 10px 24px rgba(0, 0, 0, 0.45));
  opacity: 0; transform: translateY(18px); transition: transform 0.9s var(--ease), opacity 0.9s;
}
.hb-slide.on .hb-agent { opacity: 1; transform: none; }
.hb-cases { position: absolute; left: 0; bottom: 6%; width: 44%; aspect-ratio: 1.5; }
.hb-cases img {
  position: absolute; width: 62%; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.55));
  opacity: 0; transform: translateY(24px); transition: transform 0.9s var(--ease), opacity 0.9s;
}
.hb-cases .c1 { left: 10%; bottom: 0; width: 72%; transition-delay: 0.15s; }
.hb-cases .c2 { left: 0; bottom: 40%; width: 48%; transition-delay: 0.25s; }
.hb-cases .c3 { left: 44%; bottom: 44%; width: 46%; transition-delay: 0.3s; }
.hb-slide.on .hb-cases img { opacity: 1; transform: none; }
.hb-item {
  position: absolute; left: -2%; bottom: -25%; width: 58%; rotate: -8deg; filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.6));
  opacity: 0; transform: translateX(-24px); transition: transform 0.9s 0.15s var(--ease), opacity 0.9s 0.15s;
}
.hb-slide.on .hb-item { opacity: 1; transform: none; }
/* battles: the Red and Blue teams face each other over their own hexes */
.hb-battles .hb-hex.red { left: 34%; height: 104%; }
.hb-battles .hb-hex.blue { left: 76%; height: 104%; }
.hb-battles .hb-hex.red .hx-fill { fill: #e0503c; }
.hb-battles .hb-hex.blue .hx-fill { fill: #3f7ff0; }
.hb-battles .hb-agent { height: 86%; bottom: 2%; }
.hb-battles .hb-agent.red { left: 30%; scale: -1 1; }
.hb-battles .hb-agent.blue { left: 80%; height: 80%; }
.hb-vs {
  position: absolute; left: 55%; top: 46%; translate: -50% -50%; z-index: 2;
  font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; color: #fff; letter-spacing: 0.02em;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.hb-nav { position: absolute; left: 48px; bottom: 22px; z-index: 3; display: flex; align-items: center; gap: 10px; }
.hb-arrow { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); color: var(--text-2); transition: background 0.15s, color 0.15s; }
.hb-arrow:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.hb-arrow .ic { width: 16px; height: 16px; }
.hb-dots { display: flex; gap: 6px; }
.hb-dots button { width: 18px; height: 4px; background: rgba(255, 255, 255, 0.2); transform: skewX(-20deg); transition: width 0.3s, background 0.3s; }
.hb-dots button.on { width: 40px; background: var(--accent-grad); }
.hb-stats { margin-left: 14px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.hb-stats b { font-family: var(--display); font-size: 16px; color: var(--text-2); }
.hb-stats i { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); margin: 0 4px; }

/* originals grid: calm tiles, each with the real cases, items or tokens of its game */
.originals { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.game-card {
  --gc: 255, 138, 0;
  grid-column: span 3; position: relative; height: 196px; border-radius: 12px; overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 70% at 50% 38%, rgba(var(--gc), 0.13), transparent 75%), linear-gradient(180deg, #181a2d, #131525);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.game-card.big { grid-column: span 4; height: 224px; }
.gc-battles { --gc: 255, 106, 26; }
.gc-double { --gc: 43, 217, 107; }
.gc-upgrader { --gc: 255, 194, 74; }
.gc-plinko { --gc: 143, 107, 255; }
.gc-coinflip { --gc: 255, 194, 74; }
.gc-tiles { --gc: 76, 141, 255; }
.gc-crash { --gc: 51, 224, 127; }
.game-card:hover { transform: translateY(-3px); border-color: rgba(var(--gc), 0.35); }
.gc-art { position: absolute; inset: 0 0 58px; display: grid; place-items: center; transition: transform 0.35s var(--ease); }
.game-card:hover .gc-art { transform: scale(1.04); }
.gc-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 58px;
  display: flex; align-items: center; gap: 12px; padding: 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04); background: rgba(10, 11, 22, 0.55);
}
.gc-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; background: rgba(255, 138, 0, 0.12); color: var(--yellow); clip-path: var(--chamfer); --cut: 6px; }
.gc-ic .ic { width: 18px; height: 18px; }
.gc-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-family: var(--display); font-weight: 800; font-size: 21px; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1; color: #fff; }
.gc-name small { font-family: var(--font); font-size: 12.5px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-tag { position: absolute; z-index: 3; top: 12px; left: 12px; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; padding: 4px 8px; background: var(--accent-grad); color: #2a1300; clip-path: var(--chamfer); --cut: 5px; }
.gc-go { width: 30px; height: 30px; display: grid; place-items: center; color: var(--muted); border-radius: 8px; background: rgba(255, 255, 255, 0.05); transition: background 0.2s, color 0.2s, transform 0.2s; }
.gc-go .ic { width: 16px; height: 16px; }
.game-card:hover .gc-go { background: var(--accent-grad); color: #2a1300; transform: translateX(2px); }
.game-svg { width: 100%; height: 100%; }

.ga-battles { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 0 18px; }
.gb-case { width: 40%; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.5)); }
.gb-case:first-child { rotate: 4deg; }
.gb-case:last-child { rotate: -4deg; }
.gb-vs { font-family: var(--display); font-weight: 800; font-size: 30px; color: #fff; letter-spacing: 0.02em; text-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }

.double-art { display: flex; align-items: center; gap: 12px; }
.d-tile { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4), inset 0 -4px 0 rgba(0, 0, 0, 0.18); }
.d-tile .face { width: 80%; height: 80%; }
.d-tile.red { background: linear-gradient(180deg, #e65151, #b72f31); }
.d-tile.blue { background: linear-gradient(180deg, #5b9bff, #1d55c4); }
.d-tile.bonus { width: 86px; height: 86px; background: linear-gradient(180deg, #ffd45a, #e0960f); box-shadow: 0 16px 30px rgba(255, 178, 30, 0.3), inset 0 -5px 0 rgba(0, 0, 0, 0.18); }

.ga-upgrader { position: relative; width: 132px; height: 132px; display: grid; place-items: center; }
.ga-upgrader svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.gu-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 7; }
.gu-arc { fill: none; stroke: #ffc24a; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 32.5 100; }
.gu-item { width: 112%; max-width: none; rotate: -24deg; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.55)); }
.gu-pct { position: absolute; left: calc(100% + 14px); top: 50%; translate: 0 -50%; padding: 3px 8px; border-radius: 6px; background: rgba(255, 194, 74, 0.14); color: var(--yellow); font-family: var(--display); font-weight: 700; font-size: 15px; }

.ga-plinko { width: auto; height: 100%; }
.ga-plinko text { font-family: var(--display); }

.flip-art { position: relative; width: 170px; height: 110px; }
.flip-coin { position: absolute; width: 92px; height: 92px; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.45)); }
.flip-coin .face { width: 100%; height: 100%; }
.flip-coin.red { left: 0; top: 6px; transform: rotate(-10deg); }
.flip-coin.blue { right: 0; top: 14px; transform: rotate(8deg) scale(0.88); }

.tiles-art { display: grid; grid-template-columns: repeat(3, 46px); gap: 7px; }
.tt { height: 46px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(180deg, #343a47, #26283f); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.3); }
.tt.gem { background: linear-gradient(180deg, #1f3a2b, #183025); box-shadow: inset 0 0 0 2px rgba(63, 224, 127, 0.5); }
.tt.bomb { background: linear-gradient(180deg, #3a2226, #2c1a1d); box-shadow: inset 0 0 0 2px rgba(255, 77, 94, 0.45); }
.tt .ti-icon { width: 76%; height: 76%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45)); }

.crash-art { position: relative; width: 100%; height: 100%; }
.crash-art .game-svg { position: absolute; inset: 14px 18px 10px; width: calc(100% - 36px); height: calc(100% - 24px); }
.crash-dot { position: absolute; right: 18px; top: 22%; width: 12px; height: 12px; margin: -6px -6px 0 0; border-radius: 50%; background: #33e07f; box-shadow: 0 0 0 5px rgba(51, 224, 127, 0.18); }
.crash-mult { position: absolute; left: 24px; top: 16px; font-family: var(--display); font-size: 38px; font-weight: 800; color: #fff; }

/* duo promos */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.duo-card {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 26px 28px; min-height: 176px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s var(--ease), border-color 0.2s;
}
.duo-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.dc-race { --hb: 143, 107, 255; background: radial-gradient(60% 110% at 100% 50%, rgba(143, 107, 255, 0.16), transparent 65%), linear-gradient(180deg, #181a2d, #131525); }
.dc-create { --hb: 43, 217, 107; background: radial-gradient(60% 110% at 100% 50%, rgba(43, 217, 107, 0.13), transparent 65%), linear-gradient(180deg, #181a2d, #131525); }
.dc-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.dc-copy h3 { font-size: 34px; font-weight: 800; text-transform: uppercase; }
.dc-copy p { color: var(--muted); max-width: 320px; font-size: 14px; }
.dc-meta { margin-top: 8px; display: inline-flex; gap: 6px; align-items: center; color: var(--yellow); font-weight: 600; font-size: 13.5px; }
.dc-meta b { color: #fff; }
.dc-podium { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; width: 270px; flex: none; counter-reset: pod; }
.dc-podium li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); font-size: 13px; counter-increment: pod; }
.dc-podium li b { font-size: 13px; }
.dc-podium li::before { content: counter(pod); width: 16px; color: var(--yellow); font-family: var(--display); font-size: 17px; font-weight: 800; }
.dc-podium li > span:not(.avatar) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-podium .avatar { width: 22px; height: 22px; }
.dc-cases { display: flex; flex: none; padding-right: 6px; }
.dc-cases .case-visual { width: 118px; margin-left: -34px; }
.dc-cases .case-visual:first-child { margin-left: 0; }

/* live drops (strip tiles + any inline feeds) */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; box-shadow: 0 0 0 3px rgba(255, 77, 94, 0.2); animation: pulse 1.4s infinite; }
.live-feed { display: flex; gap: 8px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.drop {
  --rc: #8b93a4;
  flex: none; width: 132px; padding: 10px 10px 9px; border-radius: 10px; display: flex; flex-direction: column; gap: 4px;
  background: radial-gradient(100% 70% at 50% 110%, color-mix(in srgb, var(--rc) 32%, transparent), transparent 72%), var(--bg-3);
  border: 1px solid var(--line); border-bottom: 2px solid var(--rc);
}
.drop img { height: 62px; width: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); transition: transform 0.25s var(--ease); }
.drop:hover img { transform: scale(1.08); }
.drop-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop-who { display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.drop-who .avatar { width: 16px; height: 16px; }
.drop.you { box-shadow: inset 0 0 0 1px rgba(255, 150, 20, 0.6); }
.drop.enter { animation: dropIn 0.5s var(--ease); }
@keyframes dropIn { from { opacity: 0; transform: translateX(-30px) scale(0.9); } }

@media (max-width: 1240px) {
  .game-card, .game-card.big { grid-column: span 6; }
  .game-card.big:first-child { grid-column: span 12; }
}
@media (max-width: 980px) {
  .duo { grid-template-columns: 1fr; }
  .hero-banner { height: 330px; }
}
/* a narrow banner (a small screen, or the side columns taking room): wider copy, smaller art */
@container (max-width: 820px) {
  .hb-copy { max-width: 60%; padding: 0 30px; }
  .hb-sub { max-width: 320px; }
  .hb-art { width: 50%; }
  .hb-cases { width: 40%; left: -6%; }
  .hb-nav { left: 30px; }
  .hb-stats { display: none; }
}
@media (max-width: 640px) {
  .hero-banner { height: 380px; }
  .hb-slide { align-items: flex-start; padding-top: 28px; }
  /* the art moves behind the copy's right side, under a scrim that keeps the text readable */
  .hb-slide::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, #0e1020 30%, rgba(14, 16, 32, 0.72) 62%, rgba(14, 16, 32, 0.3)); }
  .hb-copy { max-width: 100%; padding: 0 22px; gap: 10px; }
  .hb-title { font-size: clamp(36px, 12.4cqw, 50px); }
  .hb-sub { font-size: 14px; max-width: 80%; }
  .hb-art { width: 76%; right: -20%; }
  .hb-cases, .hb-item, .hb-vs { display: none; }
  .hb-nav { left: 22px; bottom: 16px; }
  .game-card, .game-card.big, .game-card.big:first-child { grid-column: span 12; }
  .dc-podium, .dc-cases { display: none; }
  .dc-copy h3 { font-size: 28px; }
}

/* ==================================================================== CASES */
.cases-search { width: 230px; }

/* create-a-case banner */
.cases-promo {
  position: relative; display: flex; align-items: center; gap: 22px; min-height: 112px; padding: 0 56px 0 0; overflow: hidden;
  border-radius: 14px; border: 1px solid rgba(255, 174, 26, 0.18);
  background:
    radial-gradient(40% 140% at 10% 50%, rgba(255, 150, 20, 0.22), transparent 70%),
    repeating-linear-gradient(115deg, transparent 0 20px, rgba(255, 255, 255, 0.015) 20px 40px),
    linear-gradient(90deg, #211c2a, #17182a 55%);
}
.cp-art { position: relative; flex: none; width: 190px; align-self: stretch; }
.cp-art .case-visual { position: absolute; left: 22px; bottom: -14px; width: 150px; filter: drop-shadow(0 10px 22px rgba(255, 150, 20, 0.3)); }
.cp-plus { position: absolute; right: 14px; top: 16px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-grad); color: #2a1300; box-shadow: 0 6px 18px rgba(255, 138, 0, 0.45); }
.cp-plus .ic { width: 17px; height: 17px; stroke-width: 3; }
.cp-copy { flex: 1; min-width: 0; padding: 16px 0; }
.cp-copy h2 { font-family: var(--display); font-size: 28px; font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.cp-copy h2 em { font-style: italic; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 3px; }
.cp-copy p { margin-top: 5px; max-width: 560px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.cp-cta { flex: none; }
.cp-x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); background: rgba(255, 255, 255, 0.04); }
.cp-x:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.cp-x .ic { width: 15px; height: 15px; }

/* filter bar */
.cases-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding: 10px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); }
.cf-src { display: flex; gap: 6px; }
.cf-src button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 9px; border: 1px solid transparent; color: var(--muted); font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: rgba(255, 255, 255, 0.03); transition: color 0.15s, background 0.15s, border-color 0.15s; }
.cf-src button .ic { width: 18px; height: 18px; }
.cf-src button:hover { color: #fff; }
.cf-src button.on { color: #fff; background: rgba(255, 174, 26, 0.1); border-color: rgba(255, 174, 26, 0.45); }
.cf-src button.on .ic { color: var(--yellow); }
.cf-src .cf-fav { width: 40px; padding: 0; justify-content: center; }
.cf-src .cf-fav.on .ic { fill: currentColor; }
.cases-filters .cases-search { margin-left: auto; }
.cf-right { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.cf-right .cselect { min-width: 140px; }

/* risk range: label, a rail with two big handles, the picked bands on the right */
.risk-range { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--bg-1); border: 1px solid var(--line); }
.rr-label { flex: none; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.rr-val { flex: none; min-width: 74px; text-align: right; color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.rr-rail { position: relative; flex: 1; height: 100%; margin: 0 9px; cursor: pointer; touch-action: none; }
.rr-track { position: absolute; left: 0; right: 0; top: 50%; height: 8px; margin-top: -4px; border-radius: 4px; overflow: hidden; background: linear-gradient(90deg, #3ecf7a 0 25%, #f2c94c 25% 50%, #f08a3c 50% 75%, #e5484d 75%); }
.rr-dim { position: absolute; top: 0; bottom: 0; width: 0; background: rgba(14, 15, 26, 0.78); }
.rr-dim.l { left: 0; }
.rr-dim.r { right: 0; }
.rr-thumb {
  position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; z-index: 1;
  background: #fff; box-shadow: 0 0 0 4px var(--bg-1), 0 2px 8px rgba(0, 0, 0, 0.5); cursor: grab;
  transition: transform 0.12s var(--ease), box-shadow 0.12s;
}
.rr-thumb::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--tc, #3ecf7a); }
.rr-thumb::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; } /* bigger grab area */
.rr-thumb:hover, .rr-thumb:focus-visible { transform: scale(1.12); outline: none; box-shadow: 0 0 0 4px var(--bg-1), 0 0 0 6px rgba(255, 255, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.5); }
.rr-thumb.active { transform: scale(1.18); cursor: grabbing; }
.rr-rail.dragging { cursor: grabbing; }

/* favourite + risk meter on catalogue cards */
.case-card { position: relative; }
.case-fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--muted-2); background: rgba(0, 0, 0, 0.25); opacity: 0; transition: opacity 0.15s, color 0.15s; }
.case-card:hover .case-fav, .case-fav.on, .case-fav:focus-visible { opacity: 1; }
.case-fav:hover { color: #fff; }
.case-fav.on { color: #ff5a6e; }
.case-fav.on .ic { fill: currentColor; }
.case-fav .ic { width: 16px; height: 16px; }
.case-risk { width: 72%; height: 4px; margin: 10px auto 0; border-radius: 2px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.case-risk i { display: block; height: 100%; border-radius: 2px; background: var(--rc); box-shadow: 0 0 8px var(--rc); }
@media (hover: none) { .case-fav { opacity: 1; } }
@media (max-width: 900px) {
  .cases-promo { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 12px; padding: 0 40px 16px 0; }
  .cp-art { width: auto; min-height: 96px; }
  .cp-art .case-visual { width: 92px; left: 10px; bottom: 0; }
  .cp-plus { right: 0; top: 12px; width: 24px; height: 24px; }
  .cp-copy { padding: 14px 0 12px; }
  .cp-copy h2 { font-size: 21px; }
  .cp-copy p { font-size: 13px; }
  .cp-cta { grid-column: 1 / -1; margin: 0 0 0 16px; justify-content: center; }
  .cf-right { flex-wrap: wrap; }
  .cases-filters .cases-search { margin-left: 0; flex: 1 1 100%; }
  .cf-right > * { flex: 1 1 140px; }
  .risk-range { width: auto; flex-basis: 100%; }
  .cases-search { width: auto; }
}
.cat-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 18px; flex-wrap: wrap; }
.cat-bar .seg { overflow-x: auto; max-width: 100%; }
.live-feed-sm .drop { width: 112px; padding: 8px 8px 7px; }
.live-feed-sm .drop img { height: 48px; }
.live-feed-sm .drop-who { display: none; }

/* ===================================================================== CASE */
.page-case { position: relative; }
.case-page-glow { position: absolute; left: -26px; right: -26px; top: -26px; height: 520px; pointer-events: none; z-index: -1;
  background:
    radial-gradient(40% 60% at 50% 20%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); mask-image: linear-gradient(180deg, #000 40%, transparent); }
/* the case beside its name on wide screens (so the reel and Open stay above the fold), stacked on phones */
.case-head { display: flex; align-items: center; justify-content: center; gap: 30px; margin: 0 0 20px; }
.case-head .ch-art { width: 290px; flex: none; margin-top: 84px; animation: floaty 5s ease-in-out infinite; }
.case-head .ch-info { align-items: flex-start; text-align: left; max-width: 460px; }
.case-head .ch-meta { justify-content: flex-start; }
/* slow light rays in the case's colour behind it */
.case-head .ch-art::before {
  content: ''; position: absolute; left: 50%; top: 30%; width: 190%; aspect-ratio: 1; translate: -50% -50%; z-index: -1; pointer-events: none; opacity: 0.6;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--c1) 26%, transparent) 0deg 6deg, transparent 6deg 20deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 15%, transparent 70%); mask-image: radial-gradient(closest-side, #000 15%, transparent 70%);
  animation: rays 60s linear infinite;
}
@keyframes rays { to { rotate: 360deg; } }
/* opening: the crate rattles; reveal: a flash in the best drop's rarity colour */
.case-head .ch-art.opening .case-img, .case-head .ch-art.opening .case-hero { animation: crate-shake 0.75s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
@keyframes crate-shake {
  10%, 90% { transform: translate(-1px, 0) rotate(-1deg); }
  20%, 80% { transform: translate(2px, -2px) rotate(2deg); }
  30%, 50%, 70% { transform: translate(-4px, -3px) rotate(-3deg) scale(1.02); }
  40%, 60% { transform: translate(4px, -3px) rotate(3deg) scale(1.02); }
}
.case-head .ch-art::after {
  content: ''; position: absolute; left: 50%; top: 35%; width: 120%; aspect-ratio: 1; translate: -50% -50%; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--burst, #fff) 70%, transparent), transparent);
}
.case-head .ch-art.burst::after { animation: crate-burst 1.1s ease-out both; }
@keyframes crate-burst { 0% { opacity: 0; scale: 0.4; } 15% { opacity: 1; } 100% { opacity: 0; scale: 1.5; } }
@media (prefers-reduced-motion: reduce) {
  .case-head .ch-art, .case-head .ch-art::before { animation: none; }
  .case-head .ch-art.opening .case-img, .case-head .ch-art.opening .case-hero, .case-head .ch-art.burst::after { animation: none; }
}
.ch-info { display: flex; flex-direction: column; align-items: center; }
.ch-info h1 { font-size: 52px; font-weight: 800; text-shadow: 0 6px 30px rgba(0, 0, 0, 0.5); }
.ch-meta { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ch-price { font-family: var(--display); font-size: 24px; font-weight: 700; }
.ch-price .amt.big { font-size: 24px; }
.ch-desc { margin-top: 10px; font-size: 14px; }

.opener { position: relative; padding: 18px; border-radius: 12px; background: linear-gradient(180deg, rgba(23, 24, 45, 0.9), rgba(16, 17, 32, 0.9)); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.reels.single > .reel { width: 100%; }
.reels.multi { display: grid; gap: 10px; }
.reels.multi.n2 { grid-template-columns: repeat(2, 1fr); }
.reels.multi.n3 { grid-template-columns: repeat(3, 1fr); }
.reels.multi.n4 { grid-template-columns: repeat(4, 1fr); }
.reels.multi.n5 { grid-template-columns: repeat(5, 1fr); }
.reels.multi > .reel { height: 380px; }
.opener-bar { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.opener-bar .qty button { width: 42px; height: 42px; font-size: 15px; }
.open-btn { min-width: 280px; }
.open-btn .pill { background: rgba(0, 0, 0, 0.22); }
.fast-btn.active { color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(255, 150, 20, 0.5); }

.result { margin-top: 16px; padding: 18px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line-2); animation: fadeUp 0.3s var(--ease); }
.res-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.res-head h3 { font-size: 26px; font-weight: 800; text-transform: uppercase; }
.res-head p { margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.res-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.res-item {
  --rc: #8b93a4;
  display: grid; grid-template-columns: 92px 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 12px; row-gap: 8px;
  padding: 10px 12px; border-radius: 12px;
  background: radial-gradient(70% 120% at 0% 50%, color-mix(in srgb, var(--rc) 28%, transparent), transparent 70%), #1b1c30;
  border: 1px solid color-mix(in srgb, var(--rc) 40%, transparent);
  animation: pop 0.45s var(--ease);
}
.res-item img { grid-row: span 2; width: 92px; height: 70px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
.ri-meta { display: flex; flex-direction: column; min-width: 0; }
.ri-kind { font-size: 12px; color: var(--muted); }
.ri-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--rc); filter: brightness(1.25); }
.ri-rar { font-size: 11.5px; font-weight: 600; }
.ri-price { font-family: var(--display); font-size: 19px; justify-self: end; }
.res-item .ri-sell, .res-item .ri-sold { grid-column: 2 / 4; justify-self: end; }
.ri-sold { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--green-1); height: 32px; }
.ri-sold .ic { width: 14px; height: 14px; }
.res-item.sold { opacity: 0.55; }
.res-actions { display: flex; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .reels.multi > .reel { height: 300px; }
  .reels.multi.n4, .reels.multi.n5 { grid-template-columns: repeat(3, 1fr); }
  .case-head { flex-direction: column; gap: 6px; }
  .case-head .ch-art { width: 220px; margin-top: 64px; }
  .case-head .ch-info { align-items: center; text-align: center; }
  .case-head .ch-meta { justify-content: center; }
  .ch-info h1 { font-size: 36px; }
}
@media (max-width: 560px) {
  .reels.multi.n3, .reels.multi.n4, .reels.multi.n5 { grid-template-columns: repeat(2, 1fr); }
  .open-btn { min-width: 0; width: 100%; }
  .cases-search { width: 100%; }
  .page-title .right { width: 100%; }
  .page-title .right .select { flex: 1; }
}

/* ================================================================== PROFILE */
.profile-head { padding: 20px; margin-bottom: 22px; background: radial-gradient(60% 120% at 0% 0%, rgba(255, 150, 20, 0.08), transparent 60%), var(--bg-3); }
.ph-top { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.ph-id { flex: 1; min-width: 240px; }
.ph-name { display: flex; align-items: center; gap: 10px; }
.ph-name h1 { font-size: 26px; }
.ph-name .lvl { height: 22px; min-width: 28px; font-size: 13px; }
.ph-xp { margin-top: 10px; max-width: 460px; display: flex; flex-direction: column; gap: 6px; }
.ph-best { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 170px; padding: 10px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); text-align: center; }
.ph-best img { height: 60px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
.ph-best b { font-size: 12.5px; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.inv-search { width: 230px; }
.inv-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inv-sel { display: inline-flex; align-items: center; gap: 4px; }
.inv-more { display: flex; justify-content: center; margin-top: 16px; }

/* ================================================================== REWARDS */
.rw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rw-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px;
  border-radius: 14px; background: linear-gradient(180deg, #1b1c30, #161728); border: 1px solid var(--line); overflow: hidden;
}
.rw-card h3 { font-size: 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rw-card h3 .amt { font-size: 24px; }
.rw-card p { font-size: 13px; line-height: 1.5; }
.rw-card .btn { margin-top: auto; }
.rw-card.dim { opacity: 0.6; }
.rw-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--yellow); }
.rw-free { grid-column: span 2; flex-direction: row; align-items: center; background: radial-gradient(70% 120% at 100% 50%, rgba(43, 212, 107, 0.2), transparent 70%), linear-gradient(180deg, #1f2a24, #161728); }
.rw-free .rw-copy { flex: 1; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.rw-free .rw-case { width: 190px; flex: none; }
.rw-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.rw-code { display: flex; gap: 8px; width: 100%; margin-top: auto; }
.rw-code .input { flex: 1; text-transform: uppercase; }
.rw-race { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 14px; border-color: rgba(255, 150, 20, 0.35); background: linear-gradient(90deg, rgba(255, 150, 20, 0.12), var(--bg-3) 60%); }
.rw-race > .ic { width: 26px; height: 26px; color: var(--yellow); }
.rw-race > div { flex: 1; }
.lvl-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.lvl-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); text-align: center; }
.lvl-card .lvl { height: 26px; min-width: 34px; font-size: 14px; }
.lvl-card b .amt { font-size: 16px; }
.lvl-card.locked { opacity: 0.55; }
.lvl-card.ready { border-color: rgba(255, 150, 20, 0.5); box-shadow: 0 0 24px -8px rgba(255, 150, 20, 0.5); }
.lvl-card.claimed .muted { display: inline-flex; align-items: center; gap: 4px; color: var(--green-1); }

@media (max-width: 1100px) { .rw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .rw-grid { grid-template-columns: 1fr; }
  .rw-free { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .rw-free .rw-case { width: 150px; align-self: center; }
  .inv-actions { margin-left: 0; }
}

/* ==================================================================== RACE */
.race-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 24px; margin-bottom: 18px; flex-wrap: wrap;
  background: radial-gradient(60% 120% at 0% 0%, rgba(255, 150, 20, 0.14), transparent 60%), radial-gradient(50% 100% at 100% 100%, rgba(155, 107, 255, 0.14), transparent 60%), var(--bg-3); }
.rh-copy { max-width: 520px; display: flex; flex-direction: column; gap: 10px; }
.rh-copy h1 { font-size: 40px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rh-copy h1 .amt { font-size: 40px; color: var(--yellow); }
.rh-copy h1 > span { font-size: 16px; color: var(--muted); font-weight: 600; }
.rh-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.rh-meta div { padding: 10px 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); display: flex; flex-direction: column; gap: 2px; min-width: 120px; }
.rh-meta b { font-size: 16px; }
.podium { display: flex; align-items: flex-end; gap: 10px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 128px; text-align: center; }
.pod b { font-size: 13px; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod-block { width: 100%; margin-top: 6px; border-radius: 10px 10px 4px 4px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; padding-top: 10px; font-size: 13px; }
.pod-n { font-size: 26px; font-weight: 800; }
.pod.p1 .pod-block { height: 120px; background: linear-gradient(180deg, rgba(255, 150, 20, 0.35), rgba(255, 150, 20, 0.06)); color: var(--yellow); }
.pod.p2 .pod-block { height: 92px; background: linear-gradient(180deg, rgba(200, 210, 225, 0.3), rgba(200, 210, 225, 0.05)); }
.pod.p3 .pod-block { height: 72px; background: linear-gradient(180deg, rgba(222, 140, 80, 0.32), rgba(222, 140, 80, 0.05)); }
.pod.you b { color: var(--yellow); }
.race-table tr.you td { background: rgba(255, 150, 20, 0.07); }
.race-table tr.gap td { text-align: center; color: var(--muted-2); padding: 4px; }
.rank { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--bg-4); font-weight: 700; font-size: 13px; }
.rank.r1 { background: linear-gradient(180deg, #ffd84a, #f0a400); color: #241900; }
.rank.r2 { background: linear-gradient(180deg, #e9edf3, #aeb7c4); color: #1d2633; }
.rank.r3 { background: linear-gradient(180deg, #e7a26b, #b9682f); color: #2a1400; }

/* ================================================================= CREATOR */
.cc-mine { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; }
.cc-mcase { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); }
.cc-mcase.on { border-color: var(--yellow); }
.cc-mcase .case-visual { width: 54px; }
.cc-mcase > div { display: flex; flex-direction: column; font-size: 13px; min-width: 90px; }
.cc-new { color: var(--muted); font-weight: 600; gap: 6px; padding: 0 16px; }
.cc-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; }
.cc-side { position: sticky; top: calc(var(--topbar-h) + 16px); padding: 16px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - var(--topbar-h) - 32px); overflow-y: auto; }
.cc-preview { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, 0.2); }
.cc-preview .case-visual { width: 160px; }
.cc-swatches { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.sw { aspect-ratio: 1; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
.sw.on { box-shadow: 0 0 0 2px var(--bg-3), 0 0 0 4px var(--yellow); }
.cc-icons { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
.cc-icons button { aspect-ratio: 1; border-radius: 7px; background: var(--bg-1); color: var(--muted); display: grid; place-items: center; }
.cc-icons button svg { width: 60%; height: 60%; }
.cc-icons button.on { color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(255, 150, 20, 0.6); }
.cc-items-head { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.cc-rows { display: flex; flex-direction: column; gap: 6px; }
.cc-row { --rc: #888; display: grid; grid-template-columns: 44px minmax(0, 1fr) 92px 26px; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--bg-1); border-left: 3px solid var(--rc); }
.cc-row img { width: 44px; height: 34px; object-fit: contain; }
.cc-rname { display: flex; flex-direction: column; min-width: 0; font-size: 12px; }
.cc-rname b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-rname .amt { font-size: 11.5px; }
.cc-odds { display: flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px; border-radius: 8px; background: var(--bg-4); }
.cc-odds input { width: 100%; min-width: 0; background: none; border: 0; outline: none; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.cc-odds span { color: var(--muted); font-size: 12px; }
.cc-rm { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); }
.cc-rm:hover { color: var(--red); background: rgba(255, 77, 94, 0.1); }
.cc-rm .ic { width: 14px; height: 14px; }
.cc-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0; }
.cc-sum div { padding: 8px 10px; border-radius: 9px; background: var(--bg-1); display: flex; flex-direction: column; gap: 2px; }
.cc-sum b { font-size: 13.5px; }
.cc-tools { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cc-tools .input-icon { flex: 1; min-width: 200px; }

/* ==================================================================== FAIR */
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pf-card { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.pf-card h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 6px; }
.pf-card h3 .ic { color: var(--yellow); }
.pf-val { padding: 10px 12px; border-radius: 9px; background: var(--bg-1); border: 1px solid var(--line); color: var(--text-2); }
.pf-row { display: flex; gap: 8px; }
.pf-row .input { flex: 1; }
.pf-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); line-height: 1.55; font-size: 13.5px; }
.pf-steps code, .pf-steps b { color: #fff; }
.pf-steps code { font-family: var(--mono); font-size: 12px; background: var(--bg-1); padding: 1px 6px; border-radius: 5px; }
.pf-verify { margin-top: 16px; }
.pf-form { display: grid; grid-template-columns: 2fr 1fr 110px 110px 1fr; gap: 10px; }
.pf-form label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pf-out { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.pf-out > div { padding: 10px 12px; border-radius: 9px; background: var(--bg-1); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pf-out b { word-break: break-all; }

@media (max-width: 1100px) {
  .cc-layout { grid-template-columns: 1fr; }
  .cc-side { position: static; max-height: none; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .podium { width: 100%; justify-content: center; }
  .pod { width: 30%; }
  .rh-copy h1, .rh-copy h1 .amt { font-size: 30px; }
}

/* ---------------------------------------------------------------- admin */
.page-admin .tabs { margin-top: 6px; }
.adm-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.adm-link { color: var(--yellow); }
.adm-link:hover { text-decoration: underline; }
.adm-deleted td { opacity: 0.45; text-decoration: line-through; }
.adm-search { display: flex; gap: 8px; flex: 1; max-width: 560px; }
.adm-search .input-icon { flex: 1; }
.adm-user { display: flex; align-items: center; gap: 16px; padding: 18px; margin: 12px 0 16px; flex-wrap: wrap; }
.adm-uid { flex: 1; min-width: 220px; }
.adm-uid h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.adm-badges { margin-top: 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.adm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-form { display: grid; gap: 12px; }
.adm-form label { display: grid; gap: 6px; }
.adm-promo { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; padding: 16px; margin-bottom: 16px; }
.adm-promo label { display: grid; gap: 6px; flex: 1; min-width: 130px; }
.stat small { display: block; margin-top: 4px; font-size: 12px; }
.page-admin .section-head { margin-top: 22px; }

/* ---------------------------------------------------------------- cashier + account (real money) */
/* cashier: fixed-height modal, segmented tabs, coin list + address panel */
.modal.modal-cashier {
  width: min(760px, 100%); height: min(640px, calc(100dvh - 40px)); display: flex; flex-direction: column; overflow: hidden;
  background: #14152a; border: 1px solid rgba(160, 170, 255, 0.1); border-radius: 18px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.modal-cashier .modal-head { padding: 20px 20px 0 24px; }
.modal-cashier .modal-head h3 { font-size: 24px; }
.cash-hbal { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--bg-1); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.cash-hbal-l { color: var(--muted); font-size: 12px; font-weight: 600; }
.modal-cashier .modal-body { flex: 1; min-height: 0; display: flex; padding: 16px 24px 22px; }
.cash { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.modal-cashier .tabs {
  display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 4px; flex: none; overflow: visible;
  margin: 0 0 18px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1);
}
.modal-cashier .tabs button { height: 38px; padding: 0 10px; margin: 0; justify-content: center; border: 0; border-radius: 9px; font-size: 15px; transition: background 0.15s, color 0.15s; }
.modal-cashier .tabs button.on { color: #fff; background: var(--bg-4); border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 8px rgba(0, 0, 0, 0.3); }
#cash-body { flex: 1; min-height: 0; overflow-y: auto; margin-right: -10px; padding-right: 10px; scrollbar-width: thin; }
.cash h4 { margin: 14px 0 8px; }
.cash h4:first-child { margin-top: 0; }

.dep { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; }
.dep-coins { display: flex; flex-direction: column; gap: 6px; }
.dep-coin {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-align: left; color: var(--text-2);
  background: transparent; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s;
}
.dep-coin:hover { background: rgba(255, 255, 255, 0.03); }
.dep-coin.on { background: var(--bg-3); border-color: rgba(255, 174, 26, 0.5); }
.dep-coin .coin-logo { width: 32px; height: 32px; flex: none; }
.dep-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.dep-name b { color: #fff; font-size: 15px; }
.dep-name small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dep-panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 20px; border-radius: 14px; background: var(--bg-3); border: 1px solid var(--line); }
.dep-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dep-head .coin-logo { width: 44px; height: 44px; flex: none; }
.dep-head div { display: flex; flex-direction: column; gap: 2px; }
.dep-head b { font-size: 18px; color: #fff; }
.dep-head small { color: var(--muted); font-size: 12.5px; }
.dep-label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.dep-addr { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 8px 8px 14px; border-radius: 10px; background: var(--bg-1); border: 1px solid var(--line); }
.dep-addr code { flex: 1; min-width: 0; color: #fff; font-size: 13px; line-height: 1.4; }
.dep-addr .btn { flex: none; }
.dep-addr .skel { flex: 1; height: 14px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)); background-size: 200% 100%; animation: depSkel 1.2s linear infinite; }
@keyframes depSkel { to { background-position: -200% 0; } }
.dep-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.dep-facts div { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.025); }
.dep-facts dt { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.dep-facts dd { margin: 2px 0 0; color: #fff; font-weight: 700; font-size: 14px; }
.dep-warn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.45; color: var(--text-2); background: rgba(255, 174, 26, 0.07); border: 1px solid rgba(255, 174, 26, 0.2); }
.dep-warn .ic { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--yellow); }
.dep-foot { margin-top: 14px; color: var(--muted-2); font-size: 12.5px; }
.cash-pending { margin-top: 14px; display: grid; gap: 6px; }
.cash-pend { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--bg-3); font-size: 13px; }
.cash-pend .coin-logo { width: 22px; height: 22px; }
.cash-pend .muted { margin-left: auto; }
@media (max-width: 640px) {
  .modal.modal-cashier { height: calc(100dvh - 24px); }
  .modal-cashier .modal-body { padding: 14px 16px 16px; }
  .cash-hbal-l { display: none; }
  .dep { grid-template-columns: 1fr; }
  .dep-coins { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .dep-coin { flex: none; padding: 8px 12px 8px 8px; }
  .dep-name small { display: none; }
  .dep-panel { padding: 16px; }
}
.cash-note { padding: 10px 12px; border-radius: 10px; background: rgba(255, 150, 20, 0.08); border: 1px solid rgba(255, 150, 20, 0.25); margin: 10px 0; font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; }
.cash-note.red { background: rgba(255, 77, 94, 0.08); border-color: rgba(255, 77, 94, 0.3); }
.ban-banner { margin: 12px 16px 0; }
.cash-bal { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; }
.cash-bal b { font-size: 20px; }
.cash-form { display: grid; gap: 12px; margin-top: 12px; }
.cash-form label { display: grid; gap: 6px; }
.cash-form .pf-row .input { flex: 1; min-width: 0; }
.gate-check { display: flex !important; gap: 10px; align-items: flex-start; font-size: 14px; }
.gate-check input { margin-top: 3px; }
.acc-form { padding: 18px; display: grid; gap: 14px; }
.acc-form .pf-row .input { flex: 1; min-width: 0; }
.acc-row { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-row label { display: grid; gap: 6px; flex: 1; min-width: 150px; }
.acc-help { padding: 14px 18px; margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13.5px; }
.f-rg { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
