/* =========================================================================
   GoodUp — page styles
   ========================================================================= */

/* ------------------------------------------------------------------- HERO */
.hero { position: relative; padding: 34px 0 10px; overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; min-height: min(76vh, 660px); }
.hero-copy { position: relative; z-index: 2; display: grid; gap: 22px; justify-items: start; }
.hero-title { font-size: clamp(40px, 6vw, 78px); line-height: .98; font-weight: 850; letter-spacing: -.045em; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span { display: block; animation: heroRise 1s var(--ease) both; }
.hero-title .line:nth-child(2) span { animation-delay: .1s; }
.hero-title .line:nth-child(3) span { animation-delay: .2s; }
@keyframes heroRise { from { transform: translateY(110%) rotate(2deg); opacity: 0; } }
.hero-sub { max-width: 520px; color: var(--ink-2); font-size: clamp(15px, 1.4vw, 17.5px); line-height: 1.65; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 6px; }
.hero-stats .kpi .v { font-size: clamp(22px, 2.4vw, 30px); }
.hero-visual { position: relative; height: 100%; min-height: 440px; display: grid; place-items: center; }
.hero-grid > .hero-visual { padding: 20px 0 60px; }
.hero-orb {
  position: absolute; inset: 8% 6%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(56, 189, 248, .3), rgba(88, 60, 200, .22) 45%, transparent 70%);
  filter: blur(28px); animation: orbPulse 9s ease-in-out infinite;
}
@keyframes orbPulse { 50% { transform: scale(1.08); opacity: .8; } }
.hero-ring {
  position: absolute; width: 76%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(120, 200, 255, .22); animation: spin 60s linear infinite;
}
.hero-ring.r2 { width: 58%; border-style: solid; border-color: rgba(168, 85, 247, .16); animation-direction: reverse; animation-duration: 42s; }
.hero-skins { position: relative; display: grid; grid-template-columns: repeat(2, 132px); gap: 16px; transform: rotate(-7deg); align-items: start; }
.hero-skins .skin-float {
  width: 132px; height: 132px; border-radius: 22px; overflow: hidden;
  box-shadow: 0 26px 60px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(148, 209, 255, .18);
  animation: floatY 6s ease-in-out infinite; background: #0b1120;
}
.hero-skins .skin-float img { width: 100%; height: 100%; object-fit: cover; }
.hero-skins .skin-float:nth-child(1) { animation-delay: -.4s; }
.hero-skins .skin-float:nth-child(2) { animation-delay: -1.6s; margin-top: 34px; }
.hero-skins .skin-float:nth-child(3) { animation-delay: -2.8s; margin-top: -18px; }
.hero-skins .skin-float:nth-child(4) { animation-delay: -3.6s; margin-top: 16px; }
@keyframes floatY { 50% { transform: translateY(-16px); } }
.hero-ticker {
  position: absolute; bottom: 0; left: -3%; right: -3%; display: flex; gap: 10px; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  padding: 12px 0; transform: rotate(-2.2deg);
}
.ticker-track { display: flex; gap: 10px; animation: tickerMove 38s linear infinite; }
.ticker-item {
  display: flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border-radius: 99px;
  background: rgba(13, 20, 38, .9); border: 1px solid var(--stroke); font-size: 12px; white-space: nowrap;
  color: var(--ink-2);
}
.ticker-item img { width: 22px; height: 22px; border-radius: 6px; }
.ticker-item b { color: var(--ink); font-weight: 750; }
@keyframes tickerMove { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------- game cards */
.games-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.game-card {
  position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 268px;
  padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--stroke); background: linear-gradient(160deg, rgba(20, 30, 56, .9), rgba(8, 13, 26, .95));
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
  isolation: isolate;
}
.game-card::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent, #38bdf8), transparent 62%); opacity: .24; filter: blur(20px);
  z-index: -1; transition: opacity .4s, transform .5s var(--ease);
}
.game-card:hover { transform: translateY(-8px); border-color: var(--stroke-hi); box-shadow: 0 40px 80px -40px rgba(56, 189, 248, .55); }
.game-card:hover::before { opacity: .42; transform: scale(1.12); }
.game-card .g-art { position: relative; height: 116px; margin-bottom: 16px; }
.game-card .g-title { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.game-card .g-desc { color: var(--ink-3); font-size: 13.5px; margin-top: 5px; max-width: 30ch; }
.game-card .g-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.game-card .g-play {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 99px;
  background: var(--grad-brand); color: #04121b; font-weight: 800; font-size: 13px;
  box-shadow: 0 10px 26px -12px rgba(56, 189, 248, .9); transition: transform .24s var(--ease-bounce);
}
.game-card:hover .g-play { transform: translateX(4px); }
.g-art svg { width: 100%; height: 100%; }

/* cases */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 20px; }
.case-card {
  position: relative; padding: 18px; border-radius: var(--r-lg); cursor: pointer;
  background: linear-gradient(170deg, rgba(22, 32, 58, .92), rgba(8, 13, 26, .96));
  border: 1px solid var(--stroke); overflow: hidden;
  transition: transform .36s var(--ease), border-color .3s, box-shadow .36s var(--ease);
}
.case-card:hover { transform: translateY(-6px) scale(1.012); border-color: var(--stroke-hi); box-shadow: 0 34px 70px -34px rgba(56, 189, 248, .55); }
.case-card .c-glow {
  position: absolute; inset: auto -30% -60% -30%; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, var(--case-hue, #38bdf8), transparent 68%); opacity: .22; filter: blur(26px);
  transition: opacity .4s;
}
.case-card:hover .c-glow { opacity: .4; }
.case-art { position: relative; height: 148px; display: grid; place-items: center; }
.case-art .crate {
  width: 112px; height: 112px; border-radius: 24px; position: relative; transform-style: preserve-3d;
  background: linear-gradient(150deg, color-mix(in srgb, var(--case-hue, #38bdf8) 46%, #0a0f20), #0a1020 70%);
  border: 1px solid color-mix(in srgb, var(--case-hue, #38bdf8) 55%, transparent);
  box-shadow: 0 20px 44px -18px color-mix(in srgb, var(--case-hue, #38bdf8) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .3);
  display: grid; place-items: center; transition: transform .5s var(--ease-bounce);
  animation: caseFloat 5.5s ease-in-out infinite;
}
.case-card:hover .case-art .crate { transform: translateY(-6px) rotate(-4deg) scale(1.05); }
.case-art .crate svg { width: 96px; height: 96px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45)); }
@keyframes caseFloat { 50% { transform: translateY(-8px); } }
.case-art .crate::after {
  content: ""; position: absolute; inset: 8px; border-radius: 16px; border: 1px dashed rgba(255, 255, 255, .18);
}
.case-meta { text-align: center; }
.case-meta .c-name { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.case-meta .c-desc { font-size: 12px; color: var(--ink-4); margin-top: 3px; min-height: 34px; }
.case-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--stroke); }
.case-price { font-weight: 800; font-variant-numeric: tabular-nums; }
.case-price small { color: var(--ink-4); font-weight: 600; font-size: 11px; display: block; letter-spacing: .06em; text-transform: uppercase; }
.case-mini-row { display: flex; gap: 4px; }
.case-mini-row img { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--stroke); background: #0a1020; object-fit: cover; }

/* case opening modal + reel */
.open-modal { width: min(980px, 100%); }
.reel-viewport {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--stroke); background: radial-gradient(120% 160% at 50% -30%, rgba(56, 189, 248, .18), rgba(6, 10, 22, .96) 62%);
  padding: 22px 0; margin-top: 6px;
}
.reel-viewport::before, .reel-viewport::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 3; pointer-events: none;
}
.reel-viewport::before { left: 0; background: linear-gradient(90deg, #080d1a, transparent); }
.reel-viewport::after { right: 0; background: linear-gradient(270deg, #080d1a, transparent); }
.reel-pointer {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; z-index: 4; transform: translateX(-1px);
  background: linear-gradient(180deg, transparent, var(--aqua) 15%, var(--aqua) 85%, transparent);
  box-shadow: 0 0 22px 2px rgba(56, 189, 248, .9);
}
.reel-pointer::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 12px solid var(--aqua);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, .9));
}
.reel-track { display: flex; gap: 12px; will-change: transform; padding: 0 12px; }
.reel-item {
  flex: none; width: 132px; border-radius: 16px; padding: 10px; background: rgba(10, 16, 32, .9);
  border: 1px solid var(--stroke); position: relative; overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.reel-item img { width: 100%; height: auto; border-radius: 10px; }
.reel-item .ri-name { font-size: 11px; font-weight: 650; margin-top: 8px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reel-item .ri-price { font-size: 11.5px; font-weight: 800; color: var(--aqua); }
.reel-item.winner { border-color: var(--rar, var(--aqua)); box-shadow: 0 0 0 1px var(--rar, var(--aqua)), 0 0 44px -6px var(--rar, var(--aqua)); }
.reel-item.winner::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35), transparent 70%);
  animation: winnerSheen 1.8s ease-in-out infinite;
}
@keyframes winnerSheen { 0%, 100% { transform: translateX(-110%); } 50% { transform: translateX(110%); } }
.reel-fade { opacity: .55; }

.result-banner {
  display: grid; place-items: center; gap: 6px; text-align: center; padding: 18px 10px 4px;
  animation: popIn .5s var(--ease-bounce);
}
.result-banner .rb-item { width: 148px; border-radius: 18px; overflow: hidden; border: 1px solid var(--rar, var(--aqua)); box-shadow: 0 0 60px -14px var(--rar, var(--aqua)); }
.result-banner .rb-name { font-weight: 800; font-size: 17px; margin-top: 10px; }
.result-banner .rb-price { font-weight: 800; color: var(--aqua); font-size: 15px; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
.confetti i {
  position: absolute; width: 7px; height: 11px; border-radius: 2px; opacity: .9;
  animation: confettiFall var(--d, 2.4s) linear forwards;
}
@keyframes confettiFall {
  from { transform: translate3d(0, -20px, 0) rotate(0deg); opacity: 1; }
  to { transform: translate3d(var(--dx, 0), 420px, 0) rotate(var(--rot, 540deg)); opacity: 0; }
}

/* ------------------------------------------------------------- game shells */
.game-shell { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.bet-panel { position: sticky; top: calc(var(--header-h) + 20px); }
.bet-panel .bp-row { display: grid; gap: 12px; }
.amount-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.amount-quick button {
  height: 32px; border-radius: 9px; font-size: 12px; font-weight: 700; color: var(--ink-3);
  background: rgba(120, 170, 255, .07); border: 1px solid transparent; transition: all .18s;
}
.amount-quick button:hover { color: #fff; background: rgba(56, 189, 248, .16); border-color: var(--stroke-hi); }
.play-btn {
  height: 58px; border-radius: 16px; font-size: 16.5px; font-weight: 850; letter-spacing: .01em;
  background: var(--grad-brand); color: #04121b; border: 0; width: 100%;
  box-shadow: 0 16px 40px -18px rgba(56, 189, 248, .95), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .24s var(--ease-bounce), box-shadow .3s, filter .2s;
  position: relative; overflow: hidden;
}
.play-btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.06); }
.play-btn:active:not(:disabled) { transform: scale(.985); }
.play-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.play-btn.cash { background: var(--grad-gold); color: #231703; }

.potential {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px;
  border-radius: 12px; background: rgba(8, 13, 27, .66); border: 1px solid var(--stroke); font-size: 13px;
}
.potential b { font-variant-numeric: tabular-nums; }

/* upgrader */
.up-stage {
  position: relative; border-radius: var(--r-xl); padding: 26px; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, rgba(56, 189, 248, .12), rgba(7, 11, 24, .95) 58%);
  border: 1px solid var(--stroke); min-height: 460px; display: grid; place-items: center;
}
.up-dial { position: relative; width: min(420px, 84%); aspect-ratio: 1; }
.up-dial svg { width: 100%; height: 100%; overflow: visible; }
.up-pointer {
  transform-origin: 210px 210px; transition: transform 2.4s cubic-bezier(.15, .75, .2, 1);
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, .9));
}
.up-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.up-mult { font-size: clamp(42px, 6vw, 60px); font-weight: 850; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.up-label { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-4); font-weight: 700; }
.up-result { position: absolute; inset: auto 0 -6%; text-align: center; font-weight: 800; letter-spacing: -.02em; }
.up-result.win { color: #9dffd9; text-shadow: 0 0 30px rgba(52, 211, 153, .7); animation: popIn .5s var(--ease-bounce); }
.up-result.lose { color: #ffb0ba; text-shadow: 0 0 30px rgba(251, 113, 133, .6); animation: popIn .5s var(--ease-bounce); }
.chance-slider { display: grid; gap: 8px; }
input[type="range"].range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; cursor: pointer;
}
input[type="range"].range::-webkit-slider-runnable-track {
  height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, rgba(56, 189, 248, .9) var(--fill, 30%), rgba(120, 170, 255, .16) var(--fill, 30%));
}
input[type="range"].range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(56, 189, 248, .28), 0 6px 16px rgba(0, 0, 0, .5); transition: box-shadow .2s;
}
input[type="range"].range:hover::-webkit-slider-thumb { box-shadow: 0 0 0 7px rgba(56, 189, 248, .22), 0 6px 16px rgba(0, 0, 0, .5); }
input[type="range"].range::-moz-range-track { height: 8px; border-radius: 99px; background: rgba(120, 170, 255, .16); }
input[type="range"].range::-moz-range-progress { height: 8px; border-radius: 99px; background: rgba(56, 189, 248, .9); }
input[type="range"].range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; }

/* miner */
.miner-stage {
  border-radius: var(--r-xl); padding: 22px; border: 1px solid var(--stroke);
  background: radial-gradient(110% 130% at 50% 0%, rgba(139, 92, 246, .12), rgba(7, 11, 24, .95) 60%);
  display: grid; gap: 18px;
}
.miner-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1.4vw, 12px); max-width: 520px; margin-inline: auto; width: 100%; }
.mine-cell {
  position: relative; aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--stroke);
  background: linear-gradient(160deg, rgba(30, 42, 74, .8), rgba(11, 17, 33, .9));
  display: grid; place-items: center; transition: transform .22s var(--ease-bounce), background .25s, border-color .25s, box-shadow .25s;
  transform-style: preserve-3d;
}
.mine-cell::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .07), transparent 50%); }
.mine-cell:hover:not(:disabled):not(.opened) { transform: translateY(-3px) scale(1.03); border-color: var(--stroke-hi); box-shadow: 0 12px 26px -14px rgba(56, 189, 248, .8); }
.mine-cell .cell-ico { width: 46%; height: 46%; opacity: .16; transition: opacity .2s, transform .3s; }
.mine-cell:hover .cell-ico { opacity: .34; }
.mine-cell.opened { background: linear-gradient(160deg, rgba(52, 211, 153, .2), rgba(6, 34, 28, .9)); border-color: rgba(52, 211, 153, .45); }
.mine-cell.opened .cell-ico { opacity: 1; animation: popIn .4s var(--ease-bounce); }
.mine-cell.boom { background: linear-gradient(160deg, rgba(251, 113, 133, .28), rgba(50, 8, 18, .92)); border-color: rgba(251, 113, 133, .6); animation: boom .55s var(--ease-bounce); }
.mine-cell.boom .cell-ico { opacity: 1; }
.mine-cell.revealed { opacity: .55; }
.mine-cell.dim { opacity: .25; }
@keyframes boom { 0% { transform: scale(1); } 35% { transform: scale(1.16) rotate(3deg); } 100% { transform: scale(1); } }
.miner-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.miner-bank { text-align: right; }
.miner-bank .v { font-size: 26px; font-weight: 850; letter-spacing: -.03em; color: var(--aqua); font-variant-numeric: tabular-nums; }

/* crash */
.crash-stage {
  position: relative; border-radius: var(--r-xl); border: 1px solid var(--stroke); overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, rgba(56, 189, 248, .1), rgba(5, 9, 20, .97) 60%);
  min-height: 420px;
}
.crash-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.crash-stage { height: clamp(320px, 34vw, 430px); }
.crash-overlay { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; text-align: center; }
.crash-mult { font-size: clamp(46px, 8vw, 86px); font-weight: 880; letter-spacing: -.05em; font-variant-numeric: tabular-nums; transition: color .2s; }
.crash-mult.crashed { color: var(--red); text-shadow: 0 0 44px rgba(251, 113, 133, .65); animation: shake .5s; }
.crash-mult.cashed { color: var(--green); text-shadow: 0 0 44px rgba(52, 211, 153, .6); }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.crash-phase { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-4); font-weight: 750; margin-top: 6px; }
.crash-countdown { font-size: 60px; font-weight: 850; color: var(--aqua); text-shadow: 0 0 40px rgba(56, 189, 248, .6); font-variant-numeric: tabular-nums; }
.crash-history { display: flex; gap: 7px; flex-wrap: wrap; }
.chip-mult {
  padding: 4px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: rgba(120, 170, 255, .09); border: 1px solid var(--stroke); color: var(--ink-3);
}
.chip-mult.low { color: #ffb0ba; border-color: rgba(251, 113, 133, .3); background: rgba(251, 113, 133, .08); }
.chip-mult.mid { color: #ffe9a8; border-color: rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .08); }
.chip-mult.high { color: #b8ffd9; border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .08); }
.crash-players { display: grid; gap: 8px; max-height: 300px; overflow-y: auto; }
.crash-player { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; background: rgba(8, 13, 27, .6); border: 1px solid var(--stroke); font-size: 12.5px; }
.crash-player .avatar { width: 26px; height: 26px; }
.crash-player .p-name { font-weight: 650; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crash-player .p-cash { margin-left: auto; color: var(--green); font-weight: 800; }
.crash-player .p-bet { color: var(--ink-3); }
.crash-player.cashed { border-color: rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .06); }

/* ------------------------------------------------------------- page header */
.page-head { display: grid; gap: 10px; margin-bottom: 26px; }
.page-head .h1 { font-size: clamp(30px, 4.2vw, 48px); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-4); }
.crumbs a:hover { color: var(--aqua); }

/* -------------------------------------------------------------- home parts */
.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature {
  display: flex; gap: 12px; padding: 16px; border-radius: var(--r-md);
  background: rgba(12, 18, 36, .6); border: 1px solid var(--stroke);
  transition: border-color .25s, transform .3s var(--ease);
}
.feature:hover { border-color: var(--stroke-hi); transform: translateY(-3px); }
.feature .f-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-brand-soft); border: 1px solid var(--stroke); flex: none; }
.feature .f-ico svg { width: 20px; height: 20px; color: var(--aqua); }
.feature .f-title { font-weight: 750; font-size: 14px; }
.feature .f-text { font-size: 12.5px; color: var(--ink-4); margin-top: 2px; }

.drops-list { display: grid; gap: 8px; }
.drop-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px;
  background: rgba(9, 15, 30, .6); border: 1px solid var(--stroke); font-size: 12.5px;
  transition: border-color .2s, transform .2s;
}
.drop-row:hover { border-color: var(--stroke-hi); transform: translateX(3px); }
.drop-row img { width: 32px; height: 32px; border-radius: 9px; background: #0a1020; border: 1px solid var(--stroke); }
.drop-row .d-name { font-weight: 650; color: var(--ink); }
.drop-row .d-meta { color: var(--ink-4); font-size: 11.5px; }
.drop-row .d-price { margin-left: auto; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- auth page */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 38px; border-right: 1px solid var(--stroke); }
.auth-aside .a-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 90% at 20% 10%, rgba(56, 189, 248, .2), transparent 60%), radial-gradient(80% 80% at 80% 90%, rgba(168, 85, 247, .2), transparent 60%); }
.auth-aside .a-skins { position: relative; display: grid; grid-template-columns: repeat(3, 84px); gap: 12px; justify-content: center; margin: 26px 0; }
.auth-aside .a-skins img { border-radius: 16px; width: 100%; animation: floatY 6s ease-in-out infinite; box-shadow: 0 18px 40px -18px #000; }
.auth-aside .a-skins img:nth-child(2) { animation-delay: -1.5s; margin-top: 20px; }
.auth-aside .a-skins img:nth-child(3) { animation-delay: -3s; margin-top: -12px; }
.auth-form-wrap { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(420px, 100%); }
.auth-card .h2 { margin-bottom: 6px; }
.auth-switch { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 18px; }
.auth-switch a { color: var(--aqua); font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }
.strength { display: flex; gap: 4px; margin-top: 7px; }
.strength i { height: 4px; flex: 1; border-radius: 9px; background: rgba(120, 170, 255, .14); transition: background .3s; }
.strength[data-score="1"] i:nth-child(1) { background: var(--red); }
.strength[data-score="2"] i:nth-child(-n+2) { background: var(--gold); }
.strength[data-score="3"] i:nth-child(-n+3) { background: var(--aqua); }
.strength[data-score="4"] i { background: var(--green); }

/* ------------------------------------------------------------ profile page */
.profile-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.profile-card { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; justify-items: center; text-align: center; }
.profile-card .avatar { width: 92px; height: 92px; border: 2px solid var(--stroke-hi); box-shadow: 0 0 40px -12px rgba(56, 189, 248, .7); }
.balance-big { font-size: 34px; font-weight: 850; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(8, 13, 27, .7); border: 1px solid var(--stroke); overflow-x: auto; }
.tabs button { height: 38px; padding: 0 15px; border-radius: 10px; font-size: 13px; font-weight: 650; color: var(--ink-3); white-space: nowrap; transition: all .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button.active { background: rgba(56, 189, 248, .16); color: #d6f6ff; box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .3); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .35s var(--ease); }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.inv-card {
  position: relative; border-radius: 16px; overflow: hidden; background: rgba(10, 16, 32, .8);
  border: 1px solid var(--stroke); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.inv-card:hover { transform: translateY(-4px); border-color: var(--rar, var(--stroke-hi)); box-shadow: 0 20px 40px -22px var(--rar, rgba(56, 189, 248, .6)); }
.inv-card img { width: 100%; }
.inv-card .ic-body { padding: 9px 10px 11px; }
.inv-card .ic-name { font-size: 12px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-card .ic-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.inv-card .ic-price { font-size: 12px; font-weight: 800; color: var(--aqua); }
.inv-card .ic-sell {
  position: absolute; inset: auto 8px 8px auto; opacity: 0; transform: translateY(6px);
  transition: opacity .2s, transform .2s;
}
.inv-card:hover .ic-sell { opacity: 1; transform: none; }
.inv-card.selected { border-color: var(--aqua); box-shadow: 0 0 0 2px rgba(56, 189, 248, .45); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat-box { padding: 15px; border-radius: 14px; background: rgba(10, 16, 32, .7); border: 1px solid var(--stroke); }
.spark { height: 54px; display: flex; align-items: flex-end; gap: 3px; margin-top: 10px; }
.spark i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, rgba(56, 189, 248, .9), rgba(56, 189, 248, .2)); min-height: 2px; transition: height .6s var(--ease); }
.spark i.neg { background: linear-gradient(180deg, rgba(251, 113, 133, .9), rgba(251, 113, 133, .2)); }

/* ------------------------------------------------------------------- fair */
.fair-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; }
.step-list { display: grid; gap: 14px; counter-reset: step; }
.step { position: relative; padding: 18px 18px 18px 62px; border-radius: var(--r-md); background: rgba(12, 18, 36, .62); border: 1px solid var(--stroke); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 850; font-size: 13px; color: #04121b;
  background: var(--grad-brand); box-shadow: 0 8px 20px -10px rgba(56, 189, 248, .9);
}
.verify-box { display: grid; gap: 12px; }
.code-block {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6; padding: 14px 16px; border-radius: 12px;
  background: rgba(4, 8, 18, .85); border: 1px solid var(--stroke); color: #b9e6ff;
  overflow-x: auto; white-space: pre-wrap; word-break: break-all;
}
.hashline { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); word-break: break-all; }

/* ----------------------------------------------------------------- support */
.ticket-list { display: grid; gap: 10px; }
.ticket-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: rgba(10, 16, 32, .7); border: 1px solid var(--stroke); transition: border-color .2s, transform .2s;
  width: 100%; text-align: left;
}
.ticket-row:hover { border-color: var(--stroke-hi); transform: translateX(3px); }
.ticket-row .tr-sub { font-weight: 700; font-size: 14px; }
.ticket-row .tr-meta { font-size: 12px; color: var(--ink-4); }
.msg-list { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.msg { display: flex; gap: 10px; }
.msg .bubble { padding: 11px 14px; border-radius: 4px 14px 14px 14px; background: rgba(120, 170, 255, .08); border: 1px solid var(--stroke); font-size: 13.5px; max-width: 78%; }
.msg.admin .bubble { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .28); }
.msg.mine { flex-direction: row-reverse; }
.msg.mine .bubble { border-radius: 14px 4px 14px 14px; background: rgba(56, 189, 248, .14); border-color: rgba(56, 189, 248, .28); }
.msg .m-meta { font-size: 11px; color: var(--ink-4); margin-bottom: 3px; }

/* ------------------------------------------------------------------- admin */
.admin-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 20px; align-items: start; }
.admin-nav { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 4px; padding: 8px; border-radius: 16px; background: rgba(10, 16, 32, .72); border: 1px solid var(--stroke); }
.admin-nav button {
  display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-3); transition: all .18s; text-align: left;
}
.admin-nav button:hover { background: rgba(120, 170, 255, .08); color: var(--ink); }
.admin-nav button.active { background: rgba(56, 189, 248, .14); color: #d6f6ff; box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .26); }
.admin-nav button svg { width: 17px; height: 17px; }
.admin-panel { display: none; }
.admin-panel.active { display: block; animation: fadeIn .3s var(--ease); }
.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.admin-toolbar .input { height: 38px; max-width: 280px; }
.admin-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.admin-kpi { padding: 16px; border-radius: 14px; background: linear-gradient(160deg, rgba(20, 30, 56, .8), rgba(8, 13, 26, .9)); border: 1px solid var(--stroke); }
.admin-kpi .v { font-size: 25px; font-weight: 850; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.admin-kpi .k { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-4); font-weight: 700; margin-top: 3px; }
.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; margin-top: 12px; justify-content: center; }
.chart-bars i { flex: 1; max-width: 46px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, rgba(56, 189, 248, .85), rgba(56, 189, 248, .12)); min-height: 3px; position: relative; transition: filter .2s; }
.chart-bars i:hover { filter: brightness(1.3); }
.admin-case-item { display: grid; grid-template-columns: 40px 1fr 105px 32px; gap: 10px; align-items: center; margin-bottom: 8px; }
.admin-case-item img { width: 40px; height: 40px; border-radius: 9px; }
.admin-case-item .input { height: 34px; font-size: 12.5px; padding: 0 10px; }
.chance-sum { font-variant-numeric: tabular-nums; font-weight: 800; }
.chance-sum.bad { color: var(--red); }
.chance-sum.good { color: var(--green); }

/* ------------------------------------------------------------------- rules */
.prose { display: grid; gap: 16px; max-width: 860px; color: var(--ink-2); font-size: 14.5px; line-height: 1.75; }
.prose h2 { color: var(--ink); margin-top: 8px; }
.prose ul { display: grid; gap: 8px; padding-left: 22px; list-style: disc; }
.prose strong { color: var(--ink); }

/* ------------------------------------------------------------- responsive 2 */
@media (max-width: 1180px) {
  .game-shell { grid-template-columns: 300px minmax(0, 1fr); }
  .admin-shell { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { min-height: 340px; order: -1; }
  .hero-skins { grid-template-columns: repeat(4, minmax(0, 92px)); }
  .games-grid { grid-template-columns: 1fr; }
  .feature-strip { grid-template-columns: 1fr 1fr; }
  .game-shell { grid-template-columns: 1fr; }
  .bet-panel { position: static; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-card { position: static; }
  .fair-hero { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; overflow-x: auto; padding: 6px; }
  .admin-nav button { white-space: nowrap; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
@media (max-width: 620px) {
  .feature-strip { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
  .up-stage { padding: 14px; min-height: 380px; }
  .reel-item { width: 112px; }
  .tabs button { padding: 0 12px; font-size: 12.5px; }
  .admin-case-item { grid-template-columns: 34px 1fr 86px 28px; }
  .crash-stage { height: 300px; }
}

/* -------------------------------------------------------------- bare pages */
body.bare-page .site-header,
body.bare-page .site-footer,
body.bare-page .chat-fab { display: none !important; }
.bare-main { min-height: 100vh; padding: 0; }
@media (max-width: 960px) {
  .auth-form-wrap { padding: 24px 16px; }
}
