:root {
  --bg: #121418;
  --panel: rgba(30, 33, 40, .94);
  --panel-2: #262a32;
  --panel-3: #30353f;
  --line: #343a45;
  --text: #f2f4f7;
  --muted: #9aa4b1;
  --accent: #c6ff3d;
  --green: #c6ff3d;
  --green-hi: #d8ff74;
  --orange: #c6ff3d;
  --red: #e5534b;
  --font: Manrope, system-ui, sans-serif;
  --radius: 10px;
  --cond: 'Exo 2', Manrope, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font); font-size: 14px; color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(900px 520px at 85% -10%, #1f2a14 0%, rgba(18,20,24,0) 60%), radial-gradient(1200px 700px at 10% 110%, #1a1f2b 0%, #121418 60%);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: var(--accent); }
button { font-family: inherit; cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .45; }
input, textarea, select { font-family: inherit; font-size: 14px; }
img { display: block; }
.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(34, 38, 44, .97); border-bottom: 1px solid var(--line); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 6px 16px; }
.logo { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; min-height: 44px; }
.logo span { font-family: var(--cond); font-weight: 800; font-size: 24px; letter-spacing: 2px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; flex: 1 1 auto; justify-content: center; }
.nav button { background: none; border: 0; font-family: var(--cond); font-weight: 700; font-size: 16px; letter-spacing: .5px; text-transform: uppercase; padding: 8px 16px; min-height: 40px; border-radius: 999px; position: relative; }
.nav button:hover { background: #232832; }
.nav button.on { background: var(--accent); color: #11140a; }
.user-box { display: flex; align-items: center; gap: 8px; }
.bal { border-radius: var(--radius); display: flex; align-items: center; gap: 6px; background: #1d2126; border: 1px solid var(--line); padding: 0 12px; height: 40px; font-weight: 700; }
.coin { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); display: inline-block; box-shadow: inset 0 0 0 3px #7a9a1f; }
.avatar { border-radius: 50%; width: 40px; height: 40px; background: #1d2126; border: 1px solid var(--line); object-fit: cover; }
.btn { border-radius: var(--radius); text-decoration: none; border: 0; padding: 0 18px; min-height: 40px; font-weight: 700; font-family: var(--cond); text-transform: uppercase; font-size: 14px; letter-spacing: .6px; transition: filter .15s, transform .15s; }
.btn:hover:not(:disabled) { filter: brightness(1.12); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-green { background: var(--green); color: #11140a; }
.btn-grey { background: #4a515b; color: #fff; }
.btn-dark { background: #23272d; color: #fff; border: 1px solid var(--line); }
.btn-orange { background: var(--orange); color: #11140a; }
.btn-red { background: #7d2a26; color: #fff; }
.btn-steam { background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%); color: #fff; display: inline-flex; align-items: center; gap: 10px; box-shadow: inset 0 0 0 1px rgba(102, 192, 244, 0.45), 0 4px 14px rgba(0, 0, 0, 0.35); font-weight: 700; text-decoration: none; cursor: pointer; transition: all .2s ease; }
.btn-steam:hover:not(:disabled) { background: linear-gradient(135deg, #22374e 0%, #172433 100%); box-shadow: inset 0 0 0 1px #66c0f4, 0 0 20px rgba(102, 192, 244, 0.4); color: #fff; }
.btn-steam:disabled { opacity: 0.35; cursor: not-allowed; filter: grayscale(0.7); box-shadow: none; }
.steam-icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.auth-terms-box { background: #14181f; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 12px; padding: 14px 16px; margin: 18px 0; text-align: left; transition: border-color 0.2s ease, background 0.2s ease; }
.auth-terms-box:hover { border-color: rgba(182, 244, 55, 0.3); }
.auth-terms-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; user-select: none; font-size: 13px; line-height: 1.5; color: #c5cbd5; }
.auth-terms-label input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.icon-btn { border-radius: var(--radius); width: 40px; height: 40px; display: grid; place-items: center; background: #1d2126; border: 1px solid var(--line); }

/* layout */
.layout { display: flex; flex-wrap: wrap; align-items: flex-start; }
.side { flex: 0 0 216px; background: rgba(28, 31, 36, .96); border-right: 1px solid var(--line); min-height: calc(100vh - 57px); position: sticky; top: 57px; max-height: calc(100vh - 57px); display: flex; flex-direction: column; }
.side-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-weight: 700; }
.side-head small { color: var(--muted); font-weight: 500; text-transform: uppercase; }
.side-tabs { display: grid; grid-template-columns: 1fr 1fr; }
.side-tabs button { background: #2a2f36; border: 0; min-height: 40px; display: grid; place-items: center; }
.side-tabs button.on { background: #2b331c; color: var(--accent); }
.feed { overflow: hidden; flex: 1; padding: 6px 0; touch-action: none; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent 100%); mask-image: linear-gradient(180deg, #000 85%, transparent 100%); }
.feed-item { display: flex; gap: 10px; padding: 6px 10px; align-items: center; }
.feed-item:first-child { animation: vcIn .45s ease both; }
.feed-img { width: 74px; flex: none; }
.feed-img .pic { border-radius: 8px 8px 0 0; height: 50px; background: linear-gradient(180deg, #4a515b, #2c3138); display: grid; place-items: center; }
.feed-img .pic img { max-width: 70px; max-height: 46px; }
.feed-img .bar { height: 3px; }
.feed-txt { min-width: 0; }
.feed-txt b { display: block; font-family: var(--cond); font-size: 13px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-txt span { display: block; color: #c9d0d8; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-empty { padding: 14px; color: var(--muted); font-size: 13px; }
.main { flex: 999 1 560px; min-width: 0; padding: 28px 24px 60px; }
.wrap { max-width: 1200px; margin: 0 auto; }
@media (max-width: 760px) {
  .side { position: static; flex-basis: 100%; min-height: 0; max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .main { padding: 20px 14px 60px; }
  .nav { gap: 4px 16px; }
  .nav button { font-size: 17px; }
}

/* common */
.h1 { font-family: var(--cond); font-weight: 800; font-size: 26px; letter-spacing: .5px; text-transform: uppercase; margin: 0 0 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: #1a1d24; min-height: 52px; }
.panel-head h2, .panel-head h3 { margin: 0; font-family: var(--cond); font-size: 18px; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border-radius: 999px; background: #232832; border: 0; min-height: 34px; padding: 0 12px; font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: 14px; }
.chip.on { background: var(--accent); color: #11140a; }
.input { border-radius: var(--radius); background: #171a20; border: 1px solid var(--line); color: var(--text); padding: 9px 10px; min-height: 40px; }
.input:focus, .btn:focus-visible, .chip:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-bottom: 26px; }
.empty { text-align: center; padding: 60px 16px; }
.empty h3 { font-family: var(--cond); font-size: 24px; text-transform: uppercase; margin: 0 0 6px; }

/* cases */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 36px; }
.case-card { position: relative; overflow: hidden; border-radius: 16px; background: #1c2027; border: 1px solid var(--line); padding: 0; text-align: left; transition: transform .2s, box-shadow .2s; }
.case-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .5); }
.case-card:hover .crate { transform: scale(1.06); }
.case-art { height: 150px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #2c323c, #1c2027 70%); position: relative; overflow: hidden; }
.crate { position: relative; width: 170px; height: 110px; transition: transform .3s; }
.crate svg { position: absolute; inset: 0; }
.crate img { position: absolute; left: 50%; top: 46%; width: 110px; transform: translate(-50%, -50%) rotate(-12deg); filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
.case-info { padding: 10px 14px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.case-info b { display: block; font-size: 14px; }
.case-info span { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; background: #262b33; padding: 5px 9px; border-radius: 999px; }
.tag { position: absolute; left: 10px; top: 10px; z-index: 2; border-radius: 6px; background: var(--accent); color: #11140a; font-family: var(--cond); font-weight: 700; font-size: 13px; padding: 3px 7px; }

/* case page */
.case-hero { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; text-align: center; margin-bottom: 22px; }
.case-hero .crate { width: 260px; height: 170px; }
.case-hero .crate img { width: 170px; }
.roulette { border-radius: 16px; position: relative; height: 196px; overflow: hidden; background: rgba(20, 23, 27, .9); border: 1px solid var(--line); margin: 14px 0 26px; }
.roulette-strip { position: absolute; left: 50%; top: 14px; display: flex; gap: 6px; will-change: transform; }
.r-card { border-radius: 10px; overflow: hidden; flex: none; width: 150px; height: 166px; background: linear-gradient(180deg, #4a515b, #2c3138); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; position: relative; }
.r-card img { width: 124px; height: 84px; object-fit: contain; }
.r-card .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; }
.r-card b { font-size: 11px; color: #c9d0d8; text-align: center; max-width: 136px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-card span { font-size: 12px; font-weight: 700; text-align: center; max-width: 136px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marker { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); z-index: 3; }
.fade-l, .fade-r { position: absolute; top: 0; bottom: 0; width: 16%; z-index: 2; pointer-events: none; }
.fade-l { left: 0; background: linear-gradient(90deg, #14171b, rgba(20, 23, 27, 0)); }
.fade-r { right: 0; background: linear-gradient(270deg, #14171b, rgba(20, 23, 27, 0)); }

/* item tiles */
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.item { position: relative; overflow: hidden; border-radius: 12px; background: linear-gradient(180deg, #2a2f38, #1d2128); border: 0; padding: 0; text-align: left; display: flex; flex-direction: column; transition: transform .15s, filter .15s; }
button.item:hover { transform: translateY(-3px); filter: brightness(1.12); }
.item.sel { outline: 2px solid var(--accent); outline-offset: -2px; }
.item .pic { height: 96px; display: grid; place-items: center; }
.item .pic img { max-width: 88%; max-height: 84px; }
.item .bar { height: 3px; }
.item .txt { background: #1a1d23; padding: 7px 9px 9px; }
.item .txt b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .txt span { display: block; font-size: 12px; color: #c9d0d8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .price { position: absolute; right: 6px; top: 5px; font-weight: 700; font-size: 12px; display: flex; gap: 4px; align-items: center; }
.item .wear { position: absolute; right: 6px; top: 22px; font-size: 11px; color: #c9d0d8; }
.item .chance { position: absolute; left: 6px; top: 5px; font-size: 11px; color: #c9d0d8; }
.item-actions { display: grid; grid-template-columns: 1fr 1fr; }
.item-actions button { border: 0; min-height: 34px; font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: 13px; }

/* upgrade */
.up-top { display: grid; grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr); gap: 14px; }
.up-slot { min-height: 330px; display: flex; flex-direction: column; }
.up-slot .body { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; padding: 14px; }
.up-slot .big img { width: 260px; max-width: 100%; height: 180px; object-fit: contain; }
.mini { width: 92px; text-align: center; }
.mini .pic { border-radius: 8px 8px 0 0; height: 62px; background: linear-gradient(180deg, #4a515b, #2c3138); display: grid; place-items: center; }
.mini .pic img { max-width: 84px; max-height: 56px; }
.mini .bar { height: 3px; }
.mini small { font-size: 11px; }
.dial-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px 0; }
.dial { position: relative; width: 290px; height: 290px; border-radius: 50%; }
.dial .ticks { position: absolute; inset: -14px; border-radius: 50%; background: repeating-conic-gradient(rgba(255,255,255,.22) 0 .8deg, transparent .8deg 6deg); -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%); mask: radial-gradient(circle, transparent 66%, #000 67%); }
.dial .ring { position: absolute; inset: 0; border-radius: 50%; transition: background .25s; }
.dial .face { position: absolute; inset: 30px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #3a3f47, #202429); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 0 30px rgba(0,0,0,.7); }
.dial .face b { font-family: var(--cond); font-size: 40px; font-weight: 800; }
.dial .face small { font-family: var(--cond); text-transform: uppercase; font-size: 12px; color: #c9d0d8; }
.dial .needle { position: absolute; inset: 0; }
.dial .needle::before { content: ""; position: absolute; left: 50%; top: -10px; margin-left: -12px; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 26px solid #fff; }
.dial.win { animation: vcWin 1s ease-out 2; }
.dial.lose { animation: vcShake .6s ease; }
.up-controls { display: grid; grid-template-columns: minmax(0, 1fr) 320px minmax(0, 1fr); gap: 14px; margin: 14px 0; }
.coins-box { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.coins-box label { font-family: var(--cond); text-transform: uppercase; font-size: 13px; line-height: 1.1; }
.coins-box input[type=range] { flex: 1; accent-color: #fff; }
.up-btn { width: 100%; min-height: 54px; font-size: 24px; }
.mults { border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mults button { background: #1c2027; border: 0; border-right: 1px solid #1f2328; min-height: 54px; font-family: var(--cond); font-weight: 700; }
.mults button:hover:not(:disabled) { background: #343a42; }
.up-bottom { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.up-bottom .scroll { max-height: 470px; overflow-y: auto; padding: 12px; }
@media (max-width: 980px) { .up-top, .up-controls { grid-template-columns: 1fr; } .mults { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* rewards */
.rw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 18px; }
.rw-card { border-radius: 16px; padding: 20px 22px; min-height: 230px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.rw-card h3 { margin: 0; font-family: var(--cond); font-size: 22px; text-transform: uppercase; }
.rw-card > * { position: relative; z-index: 1; max-width: 62%; }
.rw-card > .timer, .rw-card > .btn { max-width: none; }
.rw-card img.art { z-index: 0; max-width: none; opacity: .9; position: absolute; right: -10px; bottom: 14px; top: auto; width: 170px; transform: rotate(-12deg); filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); }
.timer { display: flex; gap: 6px; margin-top: auto; }
.timer div { background: rgba(20, 23, 27, .85); min-width: 46px; padding: 6px 4px; text-align: center; }
.timer b { display: block; font-size: 20px; }
.timer small { font-size: 10px; text-transform: uppercase; color: #c9d0d8; }
.top-drops { display: flex; align-items: stretch; background: #1c2027; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.top-drops > h3 { flex: none; display: grid; place-items: center; padding: 0 22px; margin: 0; font-family: var(--cond); font-size: 22px; text-transform: uppercase; color: #11140a; background: var(--accent); }
.top-drops .track-copy { display: contents; }
@keyframes vcMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.top-drops .item { width: 140px; flex: none; }
/* Top drops: always auto-scrolls (also with reduced motion, like the case spin), no manual scrolling. */
.top-drops .row { position: relative; overflow: hidden; padding: 10px 0; flex: 1; min-width: 0; pointer-events: none; user-select: none; -webkit-user-select: none; touch-action: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
.top-drops .track { display: flex; gap: 8px; width: max-content; padding-right: 8px; animation: vcMarquee var(--dur, 40s) linear infinite !important; animation-duration: var(--dur, 40s) !important; animation-iteration-count: infinite !important; will-change: transform; }
.top-drops .td-item { box-shadow: 0 0 0 1px color-mix(in srgb, var(--rc) 35%, transparent); animation: vcTdGlow 3.2s ease-in-out infinite !important; animation-duration: 3.2s !important; animation-iteration-count: infinite !important; }
.top-drops .td-item:nth-child(3n+2) { animation-delay: -1.1s !important; }
.top-drops .td-item:nth-child(3n) { animation-delay: -2.2s !important; }
.top-drops .td-item .pic img { animation: vcTdFloat 3.2s ease-in-out infinite !important; animation-duration: 3.2s !important; animation-iteration-count: infinite !important; }
@keyframes vcTdGlow { 50% { box-shadow: 0 0 0 1px var(--rc), 0 0 18px -4px var(--rc); } }
@keyframes vcTdFloat { 50% { transform: translateY(-4px) rotate(-3deg); } }
.top-drops > h3 { position: relative; overflow: hidden; }
.top-drops > h3::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-100%); animation: vcTdShine 3.5s ease-in-out infinite !important; animation-duration: 3.5s !important; animation-iteration-count: infinite !important; }
@keyframes vcTdShine { 60%, 100% { transform: translateX(100%); } }

/* modal & toast */
.overlay { position: fixed; inset: 0; background: rgba(8, 9, 11, .82); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 60; }
.modal { border-radius: 18px; position: relative; width: 100%; max-width: 460px; background: #2a2e35; border: 1px solid var(--line); padding: 24px; text-align: center; overflow: hidden; animation: vcPop .55s cubic-bezier(.2, 1.4, .4, 1) both; }
.modal .rays { position: absolute; left: 50%; top: 150px; width: 720px; height: 720px; margin: -360px 0 0 -360px; border-radius: 50%; animation: vcSpin 16s linear infinite; pointer-events: none; }
.modal > * { position: relative; }
.modal .drop-img { width: 300px; max-width: 90%; height: 200px; object-fit: contain; margin: 4px auto; filter: drop-shadow(0 16px 30px rgba(0,0,0,.6)); }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.toast { border-radius: var(--radius); position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #2a2e35; border: 1px solid var(--accent); padding: 12px 18px; z-index: 80; max-width: calc(100% - 32px); animation: vcUp .3s ease both; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 70; }
.confetti i { position: absolute; top: 0; width: 10px; height: 16px; border-radius: 2px; animation: vcConfetti 2.6s ease-in forwards; }

/* support */
.support-fab { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); border: 0; display: grid; place-items: center; z-index: 40; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.support { border-radius: 16px; overflow: hidden; position: fixed; right: 20px; bottom: 88px; width: 340px; max-width: calc(100% - 40px); height: 440px; background: #2a2e35; border: 1px solid var(--line); z-index: 40; display: flex; flex-direction: column; animation: vcUp .25s ease both; }
.support .msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { border-radius: 12px; max-width: 82%; padding: 8px 10px; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.msg.me { align-self: flex-end; background: #3b4a17; }
.msg.them { align-self: flex-start; background: #3a4049; }
.support form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.support form input { flex: 1; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; color: var(--muted); font-size: 13px; }
.foot h4 { margin: 0 0 8px; color: var(--text); font-family: var(--cond); text-transform: uppercase; }
.foot button { background: none; border: 0; padding: 0; display: block; color: var(--muted); min-height: 28px; text-align: left; }
.foot button:hover { color: var(--text); }
.legal { max-width: 860px; line-height: 1.6; }
.legal section { border-radius: 14px; background: var(--panel); border: 1px solid var(--line); padding: 18px 20px; margin-bottom: 12px; }
.legal h2 { margin: 0 0 6px; font-family: var(--cond); text-transform: uppercase; font-size: 18px; }
.legal p { margin: 0 0 6px; color: #c9d0d8; }

@keyframes vcSpin { to { transform: rotate(360deg); } }
@keyframes vcPop { 0% { transform: scale(.2); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: none; } }
@keyframes vcUp { from { transform: translate(-50%, 14px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.support { animation-name: vcUpPlain; }
@keyframes vcUpPlain { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes vcIn { from { transform: translateY(-20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes vcShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-10px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
@keyframes vcWin { 0% { box-shadow: 0 0 0 0 rgba(38, 184, 90, .8); } 100% { box-shadow: 0 0 0 44px rgba(38, 184, 90, 0); } }
@keyframes vcConfetti { 0% { transform: translateY(-40px) rotate(0); opacity: 1; } 100% { transform: translateY(105vh) rotate(720deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }


/* Smooth Animations */
.tab-anim {
  animation: vcTabIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes vcTabIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-anim {
  animation: vcViewIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes vcViewIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Micro-interactions */
.btn {
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover:not(:disabled) {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.btn-green:hover:not(:disabled) {
  box-shadow: 0 0 16px rgba(198, 255, 61, 0.45);
}
.case-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.case-card:hover {
  border-color: rgba(198, 255, 61, 0.5);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5), 0 0 14px rgba(198, 255, 61, 0.15);
}

/* Comprehensive Mobile Adaptation */
@media (max-width: 768px) {
  .top-in {
    padding: 8px 12px;
    gap: 8px;
    justify-content: space-between;
  }
  .logo span {
    font-size: 20px;
    letter-spacing: 1px;
  }
  .nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 2px;
    justify-content: flex-start;
    gap: 4px;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav button {
    font-size: 13px;
    padding: 6px 12px;
    min-height: 34px;
    flex: none;
  }
  .user-box {
    gap: 6px;
  }
  .bal {
    height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }
  .avatar {
    width: 34px;
    height: 34px;
  }
  
  .layout {
    flex-direction: column;
  }
  .side {
    order: 2;
    position: static;
    flex-basis: 100%;
    width: 100%;
    min-height: 0;
    max-height: 190px;
    border-right: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .main {
    order: 1;
    padding: 14px 10px 40px;
    flex-basis: 100%;
    width: 100%;
  }

  /* Cases grid on phones: 2 columns */
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 24px;
  }
  .case-card .case-art {
    height: 120px;
  }
  .crate {
    width: 130px;
    height: 84px;
  }
  .crate img {
    width: 80px;
  }
  .case-info {
    padding: 8px 10px 10px;
  }
  .case-info b {
    font-size: 13px;
  }
  .case-info span {
    font-size: 11px;
    padding: 3px 7px;
  }

  /* Item grids on mobile: 2-3 columns */
  .item-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .item .pic {
    height: 80px;
  }
  .item .pic img {
    max-height: 70px;
  }

  /* Modals on mobile */
  .modal {
    max-width: 95vw;
    width: 95vw;
    padding: 18px 14px;
    margin: 10px auto;
  }
  .modal .drop-img {
    height: 140px;
  }

  /* Roulette on mobile */
  .roulette {
    height: 160px;
    margin: 10px 0 20px;
  }
  .r-card {
    width: 120px;
    height: 134px;
  }
  .r-card img {
    width: 90px;
    height: 60px;
  }

  /* Upgrades on mobile */
  .up-top, .up-controls {
    grid-template-columns: 1fr;
  }
  .dial-wrap {
    padding: 8px 0;
  }
  .dial {
    width: 230px;
    height: 230px;
  }
  .dial .face {
    inset: 22px;
  }
  .dial .face b {
    font-size: 30px;
  }
  .mults {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Support drawer on mobile */
  .support {
    right: 10px;
    bottom: 76px;
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    height: 400px;
  }
}

@media (max-width: 480px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .item-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .rw-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Motion & loading layer ===== */

/* route progress bar */
.top-progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; z-index: 100; background: var(--accent); box-shadow: 0 0 10px rgba(198, 255, 61, .7); opacity: 0; pointer-events: none; }
.top-progress.run { opacity: 1; animation: vcProgress 1.6s cubic-bezier(.1, .7, .2, 1) forwards; }
.top-progress.done { width: 100% !important; animation: none; opacity: 0; transition: width .2s ease, opacity .3s ease .15s; }
@keyframes vcProgress { from { width: 0; } to { width: 85%; } }

/* sliding nav highlight */
.nav { position: relative; }
.nav-pill { position: absolute; left: 0; top: 0; border-radius: 999px; background: var(--accent); transition: transform .35s cubic-bezier(.2, .9, .2, 1.1), width .35s cubic-bezier(.2, .9, .2, 1), opacity .2s; pointer-events: none; z-index: 0; opacity: 0; }
.nav button { z-index: 1; transition: color .25s, background-color .2s; }
.nav button.on { background: transparent; color: #11140a; }

/* press feedback for every button */
button:not(:disabled):active, .btn:not(:disabled):active { transform: scale(.96); }
.case-card:active { transform: translateY(-1px) scale(.98); }
.chip, .side-tabs button, .mults button, .item-actions button, .topup-opt { transition: background-color .2s, color .2s, transform .12s, box-shadow .2s; }
.item-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.item-actions button:hover:not(:disabled) { filter: brightness(1.25); }
.topup-opt.on { outline: 2px solid var(--accent); outline-offset: -2px; background: #2b331c; }

/* loading spinner on buttons */
.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.is-loading > * { visibility: hidden; }
.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2.5px solid var(--spin, #fff); border-right-color: transparent; animation: vcSpin .7s linear infinite; }
.btn-green.is-loading, .btn-orange.is-loading { --spin: #11140a; }
.btn:disabled.is-loading { opacity: .85; }

/* confirm state for two-step actions */
.btn.confirm { background: #7d2a26 !important; color: #fff !important; animation: vcPulseRed 1s ease-in-out infinite; }
@keyframes vcPulseRed { 50% { box-shadow: 0 0 0 5px rgba(229, 83, 75, .25); } }

/* entrance + exit */
.pop-in { animation: vcPopIn .42s cubic-bezier(.2, .9, .25, 1.15) both; }
@keyframes vcPopIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.vanish { animation: vcVanish .26s ease forwards; pointer-events: none; }
@keyframes vcVanish { to { opacity: 0; transform: scale(.85); filter: blur(2px); } }
.shake { animation: vcShake .45s ease; }
input.shake, select.shake { border-color: var(--red) !important; }

/* skeletons */
.sk { border-radius: 14px; background: linear-gradient(90deg, #1c2027 0%, #262b34 40%, #1c2027 80%); background-size: 300% 100%; animation: vcShimmer 1.3s ease-in-out infinite; }
@keyframes vcShimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.sk-title { height: 30px; width: 220px; margin-bottom: 18px; border-radius: 8px; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.sk-grid.sk-cases { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.sk-case { height: 200px; }
.sk-item { height: 140px; border-radius: 12px; }
.sk-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.sk-panel { height: 240px; }
.sk-dial { height: 240px; border-radius: 50%; width: 240px; justify-self: center; }
.sk-hero { height: 170px; max-width: 520px; margin: 0 auto 20px; }
.sk-strip { height: 196px; margin-bottom: 26px; }
.feed.loading::before { content: ""; display: block; height: 260px; margin: 6px 10px; border-radius: 10px; background: repeating-linear-gradient(180deg, #252a32 0 56px, transparent 56px 64px); opacity: .7; animation: vcBreath 1.2s ease-in-out infinite; }
@keyframes vcBreath { 50% { opacity: .35; } }

/* toasts: stacked, typed, with a life bar */
#toastRoot { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 32px); }
#toastRoot .toast { position: relative; left: auto; bottom: auto; transform: none; max-width: 100%; overflow: hidden; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 18px 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: vcToastIn .35s cubic-bezier(.2, .9, .3, 1.2) both; }
#toastRoot .toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--accent); }
.toast-ok { border-color: var(--accent) !important; }
.toast-err { border-color: var(--red) !important; }
#toastRoot .toast-err::before { background: var(--red); }
.toast-info { border-color: #4b69ff !important; }
#toastRoot .toast-info::before { background: #6f88ff; }
.toast-life { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); opacity: .6; transform-origin: left; animation: vcLife 3.5s linear forwards; }
.toast-err .toast-life { background: var(--red); }
.toast-info .toast-life { background: #6f88ff; }
#toastRoot .toast.out { animation: vcToastOut .26s ease forwards; }
@keyframes vcToastIn { from { opacity: 0; transform: translateY(16px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes vcToastOut { to { opacity: 0; transform: translateY(10px) scale(.95); } }
@keyframes vcLife { to { transform: scaleX(0); } }

/* modal open/close */
.overlay { animation: vcFade .22s ease both; backdrop-filter: blur(3px); }
.overlay.out { animation: vcFadeOut .2s ease forwards; }
.overlay.out .modal { animation: vcModalOut .2s ease forwards; }
@keyframes vcFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vcFadeOut { to { opacity: 0; } }
@keyframes vcModalOut { to { opacity: 0; transform: scale(.92) translateY(10px); } }
.modal-actions.three > :last-child { grid-column: 1 / -1; }
.modal-drop { box-shadow: 0 0 0 1px var(--rc), 0 0 60px -10px var(--rc); }
.modal-drop .drop-img { animation: vcDropIn .8s cubic-bezier(.2, 1.3, .4, 1) .15s both, vcFloat 3.2s ease-in-out 1s infinite; }
@keyframes vcDropIn { from { opacity: 0; transform: scale(.3) rotate(-25deg); } to { opacity: 1; transform: none; } }

/* case page */
.crate.float { animation: vcFloat 3.4s ease-in-out infinite; }
@keyframes vcFloat { 50% { transform: translateY(-8px); } }
.case-card .crate { transition: transform .35s cubic-bezier(.2, .9, .3, 1.3); }
.case-card:hover .crate { transform: scale(1.08) rotate(-3deg); }
.case-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .07) 50%, transparent 65%); transform: translateX(-100%); transition: transform .6s ease; pointer-events: none; }
.case-card:hover::after { transform: translateX(100%); }
.roulette.spinning .marker { box-shadow: 0 0 14px 3px rgba(198, 255, 61, .8); animation: vcMarker .5s ease-in-out infinite alternate; }
@keyframes vcMarker { to { box-shadow: 0 0 4px 1px rgba(198, 255, 61, .5); } }
.r-card { transition: transform .3s cubic-bezier(.2, 1.4, .4, 1), box-shadow .3s; }
.r-card.winner { transform: scale(1.07); z-index: 4; box-shadow: 0 0 0 2px var(--accent), 0 0 30px rgba(198, 255, 61, .45); animation: vcWinnerGlow .7s ease-in-out infinite alternate; }
@keyframes vcWinnerGlow { to { box-shadow: 0 0 0 2px var(--accent), 0 0 12px rgba(198, 255, 61, .25); } }
#fastBtn.on { background: #2b331c; color: var(--accent); border-color: #3a4a1a; }

/* upgrade */
.dial.spinning .ring { animation: vcRingGlow .6s ease-in-out infinite alternate; }
@keyframes vcRingGlow { from { filter: drop-shadow(0 0 0 rgba(198, 255, 61, 0)); } to { filter: drop-shadow(0 0 16px rgba(198, 255, 61, .55)); } }
.dial .face b { transition: color .3s; }
.up-spinning .up-bottom, .up-spinning .mults, .up-spinning .coins-box, .up-spinning #clrLeft, .up-spinning #clrRight { pointer-events: none; opacity: .55; transition: opacity .3s; }
.item.sel { animation: vcSelect .3s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes vcSelect { 50% { transform: scale(1.05); } }
.mini { animation: vcPopIn .3s cubic-bezier(.2, 1.3, .4, 1) both; }

/* rewards */
.rw-card { transition: transform .25s ease, box-shadow .25s ease; }
.rw-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.rw-card.ready { box-shadow: 0 0 0 2px var(--accent); }
.btn.glow:not(:disabled) { animation: vcGlow 1.6s ease-in-out infinite; }
@keyframes vcGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(198, 255, 61, .6); } 60% { box-shadow: 0 0 0 10px rgba(198, 255, 61, 0); } }
.timer div { border-radius: 6px; }

/* header balance flash */
.bal.up { animation: vcBalUp .9s ease; }
.bal.down { animation: vcBalDown .9s ease; }
@keyframes vcBalUp { 20% { border-color: var(--accent); box-shadow: 0 0 14px rgba(198, 255, 61, .45); transform: scale(1.05); } }
@keyframes vcBalDown { 20% { border-color: var(--red); box-shadow: 0 0 12px rgba(229, 83, 75, .4); } }
.avatar { transition: transform .2s; }
#profileBtn:hover .avatar { transform: scale(1.08); }

/* live feed */
.feed-item { transition: background-color .2s; border-radius: 8px; }
.feed-item:hover { background: #232832; }
.feed-item:first-child { animation: none; }

@keyframes vcFeedIn { 0% { opacity: 0; transform: translateX(-24px); box-shadow: inset 3px 0 0 var(--rc); } 60% { opacity: 1; transform: none; } 100% { box-shadow: inset 3px 0 0 transparent; } }
.side-tabs button { transition: background-color .2s, color .2s; }

/* support */
.support.out { animation: vcSupportOut .2s ease forwards; }
@keyframes vcSupportOut { to { opacity: 0; transform: translateY(14px) scale(.97); } }
.support-fab { transition: transform .25s cubic-bezier(.2, 1.3, .4, 1), box-shadow .2s; }
.support-fab:hover { transform: scale(1.08); box-shadow: 0 10px 26px rgba(198, 255, 61, .3); }
.support-fab.open { transform: rotate(-12deg) scale(.94); }
.msg { animation: vcPopIn .25s ease both; }
.msg.pending { opacity: .6; }
.typing { display: flex; gap: 5px; padding: 12px; align-self: flex-start; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: vcDot 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes vcDot { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-5px); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .nav-pill, .case-card::after { transition: none; }
  .is-loading::after { animation: vcSpin .9s linear infinite !important; animation-iteration-count: infinite !important; animation-duration: .9s !important; }
}

.case-grid > p, .item-grid > p { grid-column: 1 / -1; }

/* profile email card */
.email-box { margin-bottom: 18px; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; background: #15191d; border: 1px solid #254d37; border-radius: 12px; padding: 12px 16px; margin: 0; }
.email-ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 9px; background: #1e3a24; color: var(--accent); }
.email-lbl { flex: 1 1 260px; font-size: 13px; font-weight: 600; }
.email-row .input { flex: 1 1 220px; min-width: 0; }
.email-row small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.email-val { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* brand logo (box + bolt) */
.logo picture { display: block; flex: none; }
.logo-img { display: block; height: 38px; width: auto; filter: drop-shadow(0 0 10px rgba(198, 255, 61, .18)); transition: transform .3s cubic-bezier(.2, 1.3, .4, 1), filter .3s; }
.foot .logo-img { height: 29px; }
.logo:hover .logo-img { transform: rotate(-6deg) scale(1.06); filter: drop-shadow(0 0 14px rgba(198, 255, 61, .35)); }
@media (max-width: 768px) { .top .logo-img { height: 32px; } }

/* generated case covers (transparent PNG/WebP crates) */
.case-art.has-cover { height: auto; aspect-ratio: 4 / 3; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #343b47 0%, #1c2027 72%); }
.case-cover { display: block; width: 86%; height: auto; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .55)); transition: transform .45s cubic-bezier(.2, .9, .3, 1.2), filter .3s; }
.case-card:hover .case-cover { transform: translateY(-6px) scale(1.07) rotate(-2deg); filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .6)) brightness(1.08); }
.case-hero-cover { width: 320px; height: auto; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .6)); animation: vcFloat 3.4s ease-in-out infinite; }
@media (max-width: 768px) { .case-card .case-art.has-cover { height: auto; } .case-hero-cover { width: 220px; } }

/* ===== notifications bell ===== */
.bell-wrap { position: relative; }
.bell { position: relative; color: var(--text); }
.bell-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font: 700 11px/18px var(--font); font-style: normal; text-align: center; box-shadow: 0 0 0 2px #22262c; }
.bell.ring svg { animation: vcBell .9s ease; transform-origin: 50% 0; }
@keyframes vcBell { 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
.bell-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 340px; max-width: calc(100vw - 24px); max-height: 420px; overflow-y: auto; background: #23272e; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); z-index: 50; animation: vcUpPlain .2s ease both; }
.bell-head { padding: 12px 14px; border-bottom: 1px solid var(--line); font-family: var(--cond); text-transform: uppercase; }
.bell-item { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; border-bottom: 1px solid #2c313a; color: var(--text); text-decoration: none; font-size: 13px; line-height: 1.35; }
.bell-item:hover { background: #2a2f38; }
.bell-item.unread { box-shadow: inset 3px 0 0 var(--accent); background: #262c22; }

/* ===== golden upgrade ===== */
.dial.golden .ring { filter: drop-shadow(0 0 18px rgba(255, 210, 87, .7)); }
.dial.golden { animation: vcGoldPulse 1s ease-out 2; }
@keyframes vcGoldPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 210, 87, .8); } 100% { box-shadow: 0 0 0 46px rgba(255, 210, 87, 0); } }
.golden-frame { outline: 3px solid #ffd257; outline-offset: -3px; border-radius: 12px; box-shadow: inset 0 0 40px rgba(255, 210, 87, .25); animation: vcGoldFrame 1.2s ease-in-out infinite alternate; }
@keyframes vcGoldFrame { to { box-shadow: inset 0 0 70px rgba(255, 210, 87, .45); } }
.golden-modal { max-width: 640px; border-color: #ffd257; background: radial-gradient(circle at 50% 0%, #3b3217, #2a2e35 60%); }
.gm-roll { position: relative; height: 92px; overflow: hidden; border-radius: 12px; background: #1b1e24; border: 1px solid #5c4c1c; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.gm-strip { position: absolute; left: 0; top: 10px; display: flex; gap: 8px; will-change: transform; }
.gm-card { flex: none; width: 110px; height: 72px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(180deg, #3a3423, #26231a); color: #f3d98b; font: 800 22px var(--cond); border: 1px solid #5c4c1c; }
.gm-card.hi { color: #ffd257; background: linear-gradient(180deg, #5a4716, #2e2610); }
.gm-card.winner { transform: scale(1.08); box-shadow: 0 0 0 2px #ffd257, 0 0 26px rgba(255, 210, 87, .6); color: #fff; transition: transform .3s cubic-bezier(.2, 1.4, .4, 1); }
.gm-marker { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #ffd257; box-shadow: 0 0 10px #ffd257; }
.modal-drop.is-golden { box-shadow: 0 0 0 2px #ffd257, 0 0 80px -10px #ffd257; }
.golden-bonus { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 210, 87, .12); border: 1px solid rgba(255, 210, 87, .45); color: #ffe39a; display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* ===== containers ===== */
.ct-head { margin-bottom: 18px; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ct-card { border-radius: 16px; background: #1c2027; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s; }
.ct-card:hover { transform: translateY(-3px); border-color: rgba(198, 255, 61, .45); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.ct-card.leading { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 24px -6px rgba(198, 255, 61, .5); }
.ct-card.soon .ct-timer span { color: #ff8a84; animation: vcBreath 1s ease-in-out infinite; }
.ct-card.no-anim { animation: none !important; }
.ct-art { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #343b47 0%, #1c2027 72%); }
.ct-art img { width: 82%; height: auto; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .55)); transition: transform .4s cubic-bezier(.2, .9, .3, 1.2); }
.ct-card:hover .ct-art img { transform: translateY(-5px) scale(1.05) rotate(-2deg); }
.ct-chip { position: absolute; left: 10px; top: 10px; padding: 4px 9px; border-radius: 999px; font: 700 12px var(--cond); text-transform: uppercase; }
.ct-chip.lead { background: var(--accent); color: #11140a; }
.ct-chip.out { background: #7d2a26; color: #fff; }
.ct-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.ct-name { font-family: var(--cond); font-size: 18px; text-transform: uppercase; }
.ct-timer { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 10px; border-radius: 10px; background: #15181d; }
.ct-timer small { color: var(--muted); text-transform: uppercase; font-size: 11px; }
.ct-timer span { font-weight: 800; font-size: 16px; color: var(--accent); }
.ct-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ct-stats div { min-width: 0; }
.ct-stats small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.ct-stats b { display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-bid { min-height: 44px; }
.ct-history { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.ct-hist { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #1c2027; border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--rc); }
.ct-hist img { width: 64px; height: 44px; object-fit: contain; }
.ct-hist b { display: block; font-size: 13px; }
.ct-hist span { display: block; font-size: 12px; }
.ct-modal { max-width: 560px; text-align: left; }
.ct-modal-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.ct-modal-top img { width: 140px; height: auto; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .5)); }
.ct-items { max-height: 230px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ct-item { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; background: #23272e; box-shadow: inset 3px 0 0 var(--rc); }
.ct-item img { width: 54px; height: 36px; object-fit: contain; }
.ct-item div { flex: 1; min-width: 0; }
.ct-item b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-item span { display: flex; gap: 4px; align-items: center; font-size: 12px; color: #c9d0d8; }
.ct-item em { font-style: normal; font-weight: 700; color: var(--accent); }
.ct-bid-form { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 760px) { .ct-modal-top img { width: 100px; } .bell-panel { right: -60px; } }
