/* ============ RustUp — палитра Rust ============ */
:root {
  --bg: #12110f;
  --bg2: #1a1815;
  --panel: rgba(34, 31, 27, .94);
  --panel2: #2b2823;
  --panel3: #35312a;
  --line: #3d3830;
  --text: #e8dec8;
  --muted: #968c7a;
  --red: #cd412b;
  --red-d: #9e2f1e;
  --orange: #e8682c;
  --green: #6f8f3a;
  --green-l: #89ab4b;
  --sand: #c9bb98;
  --olive: #3b3a28;

  /* редкость (по цене) */
  --r0: #939893;
  --r1: #467edf;
  --r2: #ae6eee;
  --r3: #d2290f;
  --r4: #ffdd59;

  --r: 4px;
  --head: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Roboto Condensed', 'Arial Narrow', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 50% -120px, rgba(205, 65, 43, .22), transparent 70%),
    radial-gradient(700px 600px at 100% 40%, rgba(111, 143, 58, .07), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .35 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-attachment: fixed;
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.4;
  display: flex; flex-direction: column;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
img { display: block; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.cur { color: var(--sand); font-family: var(--head); font-weight: 600; }
.view { flex: 1; width: 100%; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 42px; padding: 0 18px;
  font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 15px;
  border-radius: var(--r); white-space: nowrap;
  transition: filter .15s, transform .15s, background .15s, border-color .15s;
}
.btn svg { font-size: 20px; }
.btn--sm { height: 34px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn--sm svg { font-size: 16px; }
.btn:hover:not(:disabled) { filter: brightness(1.12); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--steam { background: linear-gradient(180deg, var(--green-l), var(--green)); color: #f3f6e8; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.btn--steam small { font-family: var(--body); font-weight: 400; font-size: 12px; text-transform: none; opacity: .85; margin-left: 2px; }
.btn--red { background: linear-gradient(180deg, var(--orange), var(--red)); color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.btn--ghost { border: 1px solid var(--line); background: var(--panel2); }
.btn--ghost:hover { border-color: var(--red); }
.btn--block { width: 100%; }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--panel3); border-radius: var(--r); color: var(--muted);
  transition: color .15s, background .15s;
}
.icon-btn:hover { color: var(--text); background: var(--line); }
.icon-btn.is-on { color: #fff; background: var(--red); }
.icon-btn svg { font-size: 17px; }

.hazard {
  display: inline-block; width: 18px; height: 10px; margin-right: 10px; flex-shrink: 0;
  background: repeating-linear-gradient(-45deg, var(--red) 0 4px, transparent 4px 8px);
}

/* ---------- шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 24px;
  background: rgba(18, 17, 15, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; font-size: 24px; letter-spacing: .03em; }
.logo b, .wheel__brand b, .footer__brand b { color: var(--red); font-weight: 700; }
.nav { display: flex; height: 100%; margin: 0 auto; }
.nav__link {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 0 20px;
  font-family: var(--head); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: 14px;
  color: var(--muted); transition: color .15s, background .15s;
}
.nav__link svg { font-size: 17px; }
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--text); background: linear-gradient(0deg, rgba(205,65,43,.28), transparent); }
.nav__link.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); }
.topbar__right { display: flex; align-items: center; gap: 14px; }
.socials { display: flex; gap: 6px; }
.socials a { width: 34px; height: 34px; display: grid; place-items: center; background: var(--panel2); border-radius: var(--r); color: var(--muted); transition: .15s; }
.socials a:hover { color: #fff; background: var(--red); }
.socials svg { font-size: 18px; }
.user { display: flex; align-items: center; gap: 10px; }
.balance {
  display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 4px 0 12px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r);
  font-family: var(--head); font-weight: 600; font-size: 16px;
}
.balance__add { width: 30px; height: 30px; margin-left: 4px; border-radius: 3px; background: var(--green); color: #fff; font-size: 20px; line-height: 1; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r); background: linear-gradient(135deg, var(--red), var(--red-d)); font-family: var(--head); font-weight: 700; font-size: 18px; overflow: hidden; flex-shrink: 0; }
.avatar--xl { width: 84px; height: 84px; font-size: 38px; }

/* ---------- лента дропов ---------- */
.feed { display: flex; height: 80px; border-bottom: 1px solid var(--line); background: rgba(26, 24, 21, .85); overflow: hidden; }
.feed__stats { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 20px; border-right: 1px solid var(--line); min-width: 190px; }
.feed__stats div { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); text-transform: uppercase; }
.feed__stats b { color: var(--text); font-family: var(--head); font-size: 16px; font-weight: 600; }
.feed__ico { color: var(--red); font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-l); box-shadow: 0 0 0 3px rgba(137,171,75,.2); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(137,171,75,0); } }
.feed__tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.feed__tabs button { flex: 1; width: 44px; display: grid; place-items: center; color: var(--muted); transition: .15s; }
.feed__tabs button:hover { color: var(--text); }
.feed__tabs button.is-on { background: var(--red); color: #fff; }
.feed__best {
  --c: var(--r4);
  position: relative; flex: 0 0 210px; display: flex; align-items: center; gap: 10px; padding: 0 12px; text-align: left;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 35%, #2b2823), #2b2823 70%);
  border-right: 1px solid var(--line); overflow: hidden;
}
.feed__best::before {
  content: ''; position: absolute; right: -20px; top: -10px; width: 100px; height: 100px; opacity: .1;
  background: repeating-linear-gradient(-45deg, var(--c) 0 6px, transparent 6px 14px);
}
.feed__best img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.feed__best small { display: block; font-size: 10px; text-transform: uppercase; color: var(--orange); font-weight: 700; letter-spacing: .05em; }
.feed__best b { display: block; font-size: 12px; text-transform: uppercase; line-height: 1.15; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed__best span { font-size: 12px; color: var(--sand); font-family: var(--head); }
.feed__track { display: flex; gap: 4px; padding: 6px; overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, #000 88%, transparent); }
.drop {
  --c: var(--r0);
  position: relative; flex: 0 0 148px; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 4px; text-align: left;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 26%, var(--panel2)), var(--panel2));
  border-bottom: 3px solid var(--c); border-radius: 2px;
  animation: dropIn .5s cubic-bezier(.2,.9,.3,1.2);
}
.drop:hover { filter: brightness(1.15); }
.drop img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); }
.drop div { min-width: 0; }
.drop b { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.drop span { font-size: 11px; color: var(--sand); font-family: var(--head); }
.drop em { position: absolute; top: 3px; left: 4px; font-style: normal; font-size: 10px; font-family: var(--head); padding: 0 4px; background: rgba(0,0,0,.55); border-radius: 2px; color: var(--orange); }
@keyframes dropIn { from { flex-basis: 0; opacity: 0; transform: translateY(-20px); } }

/* ---------- контейнер ---------- */
.wrap { max-width: 1360px; margin: 0 auto; padding: 28px 24px 60px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); position: relative; }
.panel__head {
  display: flex; align-items: center; height: 46px; padding: 0 16px;
  font-family: var(--head); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: 14px;
  border-bottom: 1px solid var(--line); background: rgba(0,0,0,.18);
}
.panel__head em { margin-left: auto; font-style: normal; color: var(--sand); }
.panel__head--tools { justify-content: space-between; gap: 10px; height: auto; min-height: 54px; padding: 8px 10px 8px 12px; flex-wrap: wrap; }
.title { display: flex; align-items: center; gap: 10px; }
.title svg { color: var(--red); font-size: 18px; }
.tabs { display: flex; gap: 4px; }
.tab { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--r); font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; font-size: 14px; color: var(--muted); transition: .15s; }
.tab svg { font-size: 16px; }
.tab em { color: var(--muted); font-style: normal; margin: 0; }
.tab:hover { color: var(--text); }
.tab.is-on { background: var(--red); color: #fff; }
.tab.is-on em { color: rgba(255,255,255,.75); }
.tools { display: flex; gap: 6px; flex-wrap: wrap; }
.tools input {
  height: 34px; width: 70px; padding: 0 10px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r);
  font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 13px; outline: none;
}
.tools input[type=search] { width: 150px; }
.tools input:focus { border-color: var(--red); }
.tools .icon-btn.is-on { background: var(--line); color: var(--orange); }

/* ---------- сцена апгрейда ---------- */
.stage { display: grid; grid-template-columns: 1fr 380px 1fr; gap: 20px; align-items: stretch; }
.slot { display: flex; flex-direction: column; min-height: 420px; }
.slot__body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 16px; position: relative; overflow: hidden; }
.slot__body::before {
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.025) 39px 40px), repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.025) 39px 40px);
}
.slot__empty { text-align: center; color: var(--muted); position: relative; }
.slot__empty svg { font-size: 96px; opacity: .22; display: block; margin: 0 auto 12px; }
.slot__empty p { font-family: var(--head); text-transform: uppercase; font-size: 13px; letter-spacing: .05em; }
.slot__empty small { font-family: var(--body); text-transform: none; letter-spacing: 0; opacity: .8; }
.slot__picked { position: relative; display: grid; gap: 6px; width: 100%; grid-template-columns: repeat(3, 1fr); align-content: center; }
.slot__picked .card { cursor: default; }
.slot__big { position: relative; text-align: center; width: 100%; }
.slot__big::before { content: ''; position: absolute; left: 50%; top: 40%; width: 260px; height: 260px; transform: translate(-50%, -50%); background: radial-gradient(circle, color-mix(in srgb, var(--c) 45%, transparent), transparent 65%); pointer-events: none; }
.slot__big img { position: relative; width: 220px; height: 220px; object-fit: contain; margin: 0 auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,.6)); animation: pop .35s cubic-bezier(.2,.9,.3,1.3); }
.slot__big h3 { position: relative; font-family: var(--head); text-transform: uppercase; font-size: 20px; margin-top: 6px; color: var(--c); }
.slot__big p { position: relative; font-family: var(--head); font-size: 22px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.slot__foot { padding: 0 16px 12px; min-height: 12px; text-align: center; }
.stake { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); background: rgba(0,0,0,.15); font-size: 13px; color: var(--muted); }
.stake__val { display: flex; align-items: center; gap: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 0 8px; }
.stake__val input { width: 72px; height: 32px; background: none; border: 0; outline: none; font-family: var(--head); }
input[type=range] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; background: var(--panel3); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 2px; background: var(--red); transform: rotate(45deg); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 2px; background: var(--red); cursor: pointer; }

/* ---------- колесо ---------- */
.wheel { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.wheel__brand { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 34px; font-family: var(--head); font-weight: 700; font-size: 22px; }
.wheel__tools { position: absolute; left: 0; display: flex; gap: 4px; }
.wheel__brand > .icon-btn { position: absolute; right: 0; }
.ring { position: relative; width: 320px; aspect-ratio: 1; }
.ring__svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring__track { fill: none; stroke: #2a2620; stroke-width: 22; }
.ring__win { fill: none; stroke: url(#winGrad); stroke-width: 22; transition: stroke-dasharray .45s cubic-bezier(.3,.8,.3,1); filter: drop-shadow(0 0 8px rgba(232,104,44,.45)); }
.ring__bonus { fill: none; stroke: #ffcf3a; stroke-width: 22; filter: drop-shadow(0 0 6px rgba(255,207,58,.8)); transition: opacity .3s; animation: goldPulse 1.6s ease-in-out infinite; }
@keyframes goldPulse { 50% { stroke: #fff1a8; } }
.ring.in-bonus .ring__bonus { opacity: 0; }
.ring.in-bonus .ring__win { stroke: #ffcf3a; filter: drop-shadow(0 0 12px rgba(255,207,58,.7)); }
.ring.in-bonus .ring__pct { color: #ffd84d; }
.ring.in-bonus .ring__label { color: #ffd84d; }
.ring__result.bonus { background: radial-gradient(circle, rgba(255,207,58,.97), rgba(170,110,10,.97)); color: #2a1a00; box-shadow: 0 0 70px rgba(255,207,58,.6); }
.ring__result .bonus-big { font-size: 34px; line-height: 1; }
.ring__result small { font-size: 14px; font-family: var(--head); letter-spacing: .04em; }
.ring__inner { fill: #1b1916; stroke: var(--line); stroke-width: 1.5; }
#ticks line { stroke: #4a443a; stroke-width: 1.2; }
#ticks line.big { stroke: #6e6556; stroke-width: 2; }
.ring__pointer { position: absolute; inset: 0; transform: rotate(0deg); pointer-events: none; z-index: 2; }
.ring__pointer i {
  position: absolute; left: 50%; top: -6px; width: 22px; height: 30px; margin-left: -11px;
  background: linear-gradient(180deg, #fff, var(--sand));
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.6));
}
.ring__pointer::after { content: ''; position: absolute; left: 50%; top: 22px; width: 2px; height: 30px; margin-left: -1px; background: linear-gradient(var(--sand), transparent); }
.ring__center { position: absolute; inset: 20%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring__bg { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; opacity: .12; filter: grayscale(.3); pointer-events: none; transition: opacity .3s; }
.ring__bg:not([src]) { display: none; }
.ring.spinning .ring__bg { opacity: .05; }
.ring__pct { position: relative; font-family: var(--head); font-weight: 700; font-size: 42px; line-height: 1; letter-spacing: .01em; white-space: nowrap; font-variant-numeric: tabular-nums; transition: transform .25s, color .25s; }
.ring__pct.bump { transform: scale(1.06); color: #fff; }
.ring__label { position: relative; font-size: 12px; text-transform: uppercase; color: var(--muted); margin-top: 4px; letter-spacing: .05em; }
.ring__mult { position: relative; margin-top: 8px; font-family: var(--head); font-weight: 600; color: var(--orange); font-size: 15px; min-height: 18px; }
.brand { white-space: nowrap; }
.ring__result {
  position: absolute; inset: 19%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-family: var(--head); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .04em;
  opacity: 0; transform: scale(.6); transition: .3s cubic-bezier(.2,.9,.3,1.3); pointer-events: none; z-index: 1;
}
.ring__result img { width: 90px; height: 90px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.ring__result.show { opacity: 1; transform: scale(1); }
.ring__result.win { background: radial-gradient(circle, rgba(111,143,58,.97), rgba(52,72,24,.97)); color: #f2f7e6; box-shadow: 0 0 60px rgba(137,171,75,.5); }
.ring__result.lose { background: radial-gradient(circle, rgba(205,65,43,.97), rgba(110,30,18,.97)); color: #fff; box-shadow: 0 0 60px rgba(205,65,43,.5); }
.ring.spinning .ring__win { filter: drop-shadow(0 0 14px rgba(232,104,44,.8)); }
.mults { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; width: 100%; }
.mults button {
  height: 34px; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r);
  font-family: var(--head); font-weight: 600; font-size: 14px; color: var(--muted); transition: .15s;
}
.mults button:hover { color: var(--text); border-color: var(--red); }
.mults button.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.btn--upgrade {
  width: 100%; height: 56px; font-size: 20px; letter-spacing: .1em;
  background: linear-gradient(180deg, var(--orange), var(--red) 60%, var(--red-d)); color: #fff;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), 0 8px 30px rgba(205,65,43,.25);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
}
.btn--upgrade:disabled { background: var(--panel3); color: var(--muted); box-shadow: none; opacity: 1; }

/* ---------- списки ---------- */
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.lst { display: flex; flex-direction: column; min-height: 520px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px; align-content: start; flex: 1; }
.grid--wide { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid__empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 0; font-size: 14px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 10px; border-top: 1px solid var(--line); background: rgba(0,0,0,.15); min-height: 54px; }
.pager button { min-width: 34px; height: 34px; padding: 0 8px; background: var(--panel3); border-radius: var(--r); font-family: var(--head); color: var(--muted); }
.pager button:hover:not(:disabled) { color: var(--text); background: var(--line); }
.pager button:disabled { opacity: .35; cursor: default; }
.pager span { font-family: var(--head); color: var(--muted); font-size: 13px; padding: 0 6px; }

.card {
  --c: var(--r0);
  position: relative; aspect-ratio: 1 / 1.02; padding: 6px 6px 8px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center;
  background:
    radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 34%, transparent), transparent 64%),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, var(--olive)), color-mix(in srgb, var(--c) 8%, #22211a));
  border: 1px solid color-mix(in srgb, var(--c) 28%, var(--line)); border-radius: 3px;
  cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s;
  user-select: none;
}
.card::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.card:hover { transform: translateY(-2px); border-color: var(--c); }
.card.is-sel { border-color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange), 0 0 18px rgba(232,104,44,.35); }
.card.is-sel::before { content: ''; position: absolute; top: 7px; right: 7px; width: 20px; height: 20px; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; border-radius: 2px; z-index: 3; }
.card.is-off { opacity: .32; cursor: not-allowed; }
.card.is-off:hover { transform: none; }
.card__price {
  position: absolute; top: 7px; left: 6px; z-index: 2; display: flex; align-items: center; gap: 2px;
  padding: 1px 6px; background: rgba(0,0,0,.55); border-radius: 2px;
  font-family: var(--head); font-weight: 500; font-size: 12px;
}
.card__img { flex: 1; display: grid; place-items: center; width: 100%; min-height: 0; }
.card__img img { width: 82%; max-height: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); transition: transform .2s; }
.card:hover .card__img img { transform: scale(1.08); }
.card__name { font-size: 11px; font-weight: 700; text-transform: uppercase; line-height: 1.15; letter-spacing: .02em; min-height: 2.3em; display: flex; align-items: center; justify-content: center; color: color-mix(in srgb, var(--c) 35%, #fff); overflow: hidden; }
.card__act { position: absolute; top: 7px; right: 6px; display: flex; gap: 3px; z-index: 3; opacity: 0; transition: opacity .15s; }
.card:hover .card__act { opacity: 1; }
.card__act button { padding: 2px 6px; background: var(--green); color: #fff; font-size: 10px; text-transform: uppercase; font-weight: 700; border-radius: 2px; }
.card__act button[data-act=withdraw] { background: #3f6aa8; }
.card.is-sel .card__act { display: none; }
.card__status { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 2; font-size: 10px; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; padding: 2px; background: rgba(0,0,0,.6); }
.card__status.win { color: var(--green-l); }
.card__status.lose { color: var(--red); }
.card__status.out { color: #7fa8e8; }
.card__status.sold { color: var(--sand); }
.card.is-new { animation: newItem 1.4s ease; }
@keyframes newItem { 0%,40% { box-shadow: 0 0 0 2px var(--green-l), 0 0 30px rgba(137,171,75,.6); } }

.guest { position: absolute; inset: 54px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; background: rgba(26,24,21,.88); backdrop-filter: blur(3px); z-index: 4; overflow: hidden; }
.guest h3 { font-family: var(--head); text-transform: uppercase; font-size: 22px; letter-spacing: .04em; }
.guest p { color: var(--muted); margin-bottom: 10px; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; }
.guest--page { position: static; min-height: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.guest--page > svg { font-size: 44px; color: var(--red); }
.carousel { width: 100%; margin-top: 34px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); }
.carousel__track { display: flex; gap: 10px; width: max-content; animation: slide 40s linear infinite; }
.carousel .card { width: 120px; flex-shrink: 0; cursor: default; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- профиль ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; font-family: var(--head); text-transform: uppercase; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.back:hover { color: var(--text); }
.profile { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 12px; margin-bottom: 20px; }
.pcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-height: 140px; position: relative; overflow: hidden; }
.pcard--user { display: flex; align-items: center; gap: 18px; background: linear-gradient(135deg, rgba(205,65,43,.25), var(--panel) 70%); }
.pcard--user h2 { font-family: var(--head); text-transform: uppercase; font-size: 24px; }
.pid { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.pid:hover { color: var(--text); }
.pcard--best { --c: var(--r3); display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 40%, var(--panel)), var(--panel) 75%); }
.pcard--best img { width: 110px; height: 110px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.5)); }
.pcard--best small { font-family: var(--head); text-transform: uppercase; font-size: 12px; color: var(--muted); letter-spacing: .05em; }
.pcard--best h3 { font-family: var(--head); text-transform: uppercase; font-size: 18px; color: color-mix(in srgb, var(--c) 50%, #fff); line-height: 1.15; margin: 2px 0; }
.pcard--best .chip { position: absolute; top: 12px; right: 12px; background: var(--red); color: #fff; font-family: var(--head); font-size: 12px; padding: 2px 8px; border-radius: 2px; }
.pcard--stats { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; padding: 0; background: none; border: 0; }
.pcard--stats div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.pcard--stats span { font-family: var(--head); text-transform: uppercase; font-size: 13px; color: var(--muted); grid-column: 1 / -1; }
.pcard--stats b { font-family: var(--head); font-size: 20px; text-transform: uppercase; }
.pcard--stats em { font-style: normal; font-family: var(--head); color: var(--sand); font-size: 16px; }

/* ---------- награды ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.sec-head .h2 { margin: 0; }
.h2 { display: flex; align-items: center; font-family: var(--head); text-transform: uppercase; font-size: 26px; letter-spacing: .04em; margin: 44px 0 18px; }
.raffles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.raffle { --c: var(--r1); position: relative; display: flex; flex-direction: column; border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line)); border-radius: var(--r); overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 42%, #1d1b18), #1d1b18 80%); }
.raffle::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); }
.raffle__top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 0; font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; }
.raffle__top span { display: flex; align-items: center; gap: 5px; font-size: 13px; color: rgba(255,255,255,.75); }
.raffle__body { display: grid; grid-template-columns: 1fr 140px; gap: 6px; padding: 8px 16px 14px; align-items: center; }
.raffle__body img { width: 140px; height: 140px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.55)); }
.raffle__name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.raffle__price { font-family: var(--head); font-size: 18px; margin: 2px 0 12px; }
.timer { display: flex; gap: 4px; }
.timer div { width: 40px; padding: 4px 0; background: rgba(0,0,0,.4); border-radius: 3px; text-align: center; }
.timer b { display: block; font-family: var(--head); font-size: 17px; line-height: 1.1; }
.timer small { font-size: 9px; text-transform: uppercase; color: var(--muted); }
.raffle__foot { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 16px; background: rgba(0,0,0,.28); }
.raffle__foot small { display: block; font-size: 11px; text-transform: uppercase; color: var(--muted); }
.raffle__foot b { font-family: var(--head); }
.raffle__winners { display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; font-family: var(--head); text-transform: uppercase; font-size: 12px; letter-spacing: .04em; color: var(--muted); background: rgba(0,0,0,.4); }
.raffle__winners:hover { color: var(--text); }
.raffle.is-in .btn--steam { background: var(--panel3); color: var(--green-l); box-shadow: none; }

.cargo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; padding: 28px; align-items: center; overflow: hidden; }
.cargo__boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.crate { position: relative; aspect-ratio: .7; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, #3a2a22, #221a15); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; overflow: hidden; transition: transform .2s, border-color .2s; perspective: 600px; }
.crate__ico { width: 70%; aspect-ratio: 1; background: url("../assets/crate.svg") center/contain no-repeat; filter: drop-shadow(0 8px 12px rgba(0,0,0,.6)); }
.crate.is-locked .crate__ico { filter: grayscale(.8) brightness(.55); }
.crate__lbl { font-family: var(--head); text-transform: uppercase; font-size: 12px; letter-spacing: .05em; color: var(--muted); }
.crate.can-open { cursor: pointer; border-color: var(--orange); box-shadow: 0 0 22px rgba(232,104,44,.25); }
.crate.can-open:hover { transform: translateY(-4px); }
.crate.is-open { --c: var(--r1); border-color: var(--c); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 45%, transparent), #1d1b18 70%); animation: flip .5s ease; }
.crate.is-open img { width: 80%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.6)); }
.crate.is-open b { font-size: 11px; text-transform: uppercase; text-align: center; padding: 0 6px; line-height: 1.15; }
.crate.is-open span { font-family: var(--head); color: var(--sand); font-size: 14px; }
.crate.is-dim { opacity: .4; }
@keyframes flip { from { transform: rotateY(90deg); } }
.cargo__title { font-family: var(--head); text-transform: uppercase; font-size: 40px; line-height: 1; letter-spacing: .02em; -webkit-text-stroke: 0; text-shadow: 3px 3px 0 rgba(205,65,43,.4); }
.tape { display: inline-block; margin: 14px 0; padding: 6px 22px; background: #e9e1cf; color: var(--red); font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; transform: rotate(-2deg); clip-path: polygon(2% 0, 100% 6%, 98% 100%, 0 92%); }
.cargo__info p { color: var(--muted); margin-bottom: 16px; font-size: 14px; }
.cargo__progress { width: 100%; height: 8px; background: var(--panel3); border-radius: 4px; overflow: hidden; margin: 8px 0 4px; }
.cargo__progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--red)); }

.topdrop { display: flex; margin-top: 20px; overflow: hidden; }
.topdrop__label { flex: 0 0 180px; display: grid; place-items: center; background: linear-gradient(135deg, var(--red), var(--red-d)); font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: 26px; letter-spacing: .03em; }
.topdrop__track { display: flex; gap: 4px; padding: 6px; overflow-x: auto; scrollbar-width: thin; }
.topdrop__track .card { flex: 0 0 110px; }

/* ---------- честная игра ---------- */
.h2--top { margin-top: 0; }
.fair-intro { color: var(--muted); max-width: 900px; margin: -6px 0 18px; font-size: 15px; }
.fair-intro b { color: var(--text); }
.fair-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.fair-feat { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.fair-feat > svg { font-size: 26px; color: var(--green-l); padding: 8px; box-sizing: content-box; background: rgba(111,143,58,.15); border-radius: var(--r); }
.fair-feat b { display: block; font-family: var(--head); text-transform: uppercase; font-size: 14px; letter-spacing: .03em; }
.fair-feat span { color: var(--muted); font-size: 13px; }
.fair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.fair-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.fair-body .field { margin: 0; }
.flabel { font-family: var(--head); text-transform: uppercase; font-size: 12px; letter-spacing: .05em; color: var(--muted); margin-top: 6px; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 13px; word-break: break-all; padding: 10px 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); text-align: left; color: var(--sand); }
.mono.copy { cursor: pointer; }
.mono.copy:hover { border-color: var(--green-l); }
.finput, .fair-body .field input { width: 100%; height: 40px; padding: 0 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); outline: none; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 13px; }
.finput:focus, .fair-body .field input:focus { border-color: var(--red); }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fair-body .btn--block { margin-top: 12px; }
.fnote { font-size: 12px; margin-top: 4px; }
.fh4 { font-family: var(--head); text-transform: uppercase; font-size: 14px; letter-spacing: .04em; margin-top: 14px; }
.revealed { list-style: none; display: grid; gap: 6px; }
.revealed li { padding: 10px 12px; background: var(--panel2); border-radius: var(--r); font-size: 12px; display: grid; gap: 4px; }
.revealed code { font-family: ui-monospace, Consolas, monospace; color: var(--sand); word-break: break-all; }
.revealed small { color: var(--muted); }
.revealed .empty { color: var(--muted); background: none; padding: 4px 0; font-size: 13px; }
.fair-result { margin-top: 10px; display: grid; gap: 6px; }
.fair-result:empty { display: none; }
.fres { padding: 12px 14px; border-radius: var(--r); font-family: var(--head); text-transform: uppercase; letter-spacing: .03em; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.fres svg { font-size: 20px; }
.fres.win { background: rgba(111,143,58,.22); color: var(--green-l); border: 1px solid rgba(137,171,75,.4); }
.fres.lose { background: rgba(205,65,43,.18); color: #ff8a73; border: 1px solid rgba(205,65,43,.4); }
.fres.bad { background: rgba(227,167,47,.15); color: #f0c060; border: 1px solid rgba(227,167,47,.4); }
.fkv { display: grid; grid-template-columns: 110px 1fr; gap: 8px; font-size: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.fkv span { color: var(--muted); text-transform: uppercase; font-family: var(--head); letter-spacing: .04em; }
.fkv code { font-family: ui-monospace, Consolas, monospace; word-break: break-all; color: var(--text); }
.fkv .ok { color: var(--green-l); }
.fkv .no { color: #ff8a73; }
.fair-games, .fair-algo { margin-top: 20px; }
.fair-table { padding: 6px 10px 10px; overflow-x: auto; }
.fair-table table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.fair-table th { text-align: left; font-family: var(--head); text-transform: uppercase; font-weight: 500; letter-spacing: .04em; color: var(--muted); font-size: 12px; padding: 8px; }
.fair-table td { padding: 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.fair-table td img { width: 34px; height: 34px; object-fit: contain; vertical-align: middle; margin-right: 6px; }
.fair-table .w { color: var(--green-l); font-weight: 700; }
.fair-table .l { color: #ff8a73; font-weight: 700; }
.fair-table .empty { color: var(--muted); padding: 30px; text-align: center; }
.fair-algo pre { margin: 0; padding: 16px; overflow-x: auto; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 13px; line-height: 1.7; color: var(--sand); }
@media (max-width: 1000px) { .fair-grid, .fair-feats { grid-template-columns: 1fr; } }

/* ---------- модалка ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(8,7,6,.78); backdrop-filter: blur(4px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal__box { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; background: #201e1a; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: pop .25s cubic-bezier(.2,.9,.3,1.2); }
.modal__x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; background: rgba(0,0,0,.4); border-radius: var(--r); font-size: 22px; line-height: 1; color: var(--muted); z-index: 2; }
.modal__x:hover { color: #fff; background: var(--red); }
.m-head { padding: 18px 56px 14px 20px; border-bottom: 1px solid var(--line); font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.m-head svg { color: var(--red); }
.m-body { padding: 20px; }
.m-body p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.m-hero { height: 130px; display: grid; place-items: center; background: linear-gradient(180deg, rgba(205,65,43,.35), transparent), repeating-linear-gradient(-45deg, rgba(255,255,255,.03) 0 10px, transparent 10px 20px); border-bottom: 1px solid var(--line); }
.m-hero div { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 700; font-size: 38px; }
.m-hero b { color: var(--red); }
.m-title { text-align: center; font-family: var(--head); text-transform: uppercase; font-size: 26px; letter-spacing: .04em; margin-bottom: 6px; }
.m-sub { text-align: center; }
.check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 6px; background: var(--panel2); border-radius: var(--r); cursor: pointer; font-size: 14px; }
.check input { appearance: none; width: 22px; height: 22px; border: 1px solid var(--green); border-radius: 2px; flex-shrink: 0; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat; }
.check a { color: var(--green-l); }
.steps { list-style: none; display: grid; gap: 8px; counter-reset: s; }
.steps li { position: relative; padding: 10px 12px 10px 48px; background: var(--panel2); border-radius: var(--r); font-size: 14px; color: var(--text); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; background: var(--red); color: #fff; font-family: var(--head); border-radius: 2px; }
.steps li b { color: var(--orange); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.amounts button { height: 48px; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r); font-family: var(--head); font-size: 18px; transition: .15s; }
.amounts button:hover, .amounts button.is-on { border-color: var(--green-l); color: var(--green-l); }
.field { display: flex; gap: 6px; margin-bottom: 12px; }
.field input { flex: 1; min-width: 0; height: 42px; padding: 0 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); outline: none; }
.field input:focus { border-color: var(--red); }
.winners { list-style: none; display: grid; gap: 4px; }
.winners li { display: grid; grid-template-columns: 40px 1fr 54px; gap: 10px; align-items: center; padding: 6px 8px; background: var(--panel2); border-radius: var(--r); }
.winners .avatar { width: 40px; height: 40px; font-size: 16px; }
.winners b { display: block; font-size: 14px; }
.winners small { color: var(--muted); font-size: 12px; }
.winners em { display: block; font-style: normal; font-family: var(--head); color: var(--sand); font-size: 13px; }
.winners img { width: 54px; height: 54px; object-fit: contain; }
.uprof { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.uprof h3 { font-family: var(--head); text-transform: uppercase; font-size: 22px; }
.ustats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.ustats div { background: var(--panel2); border-radius: var(--r); padding: 10px 12px; }
.ustats small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.ustats b { font-family: var(--head); font-size: 18px; }
.ugrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.legal h4 { font-family: var(--head); text-transform: uppercase; margin: 12px 0 4px; font-size: 15px; }

/* ---------- cookie ---------- */
.cookie { position: fixed; right: 20px; bottom: 20px; z-index: 150; width: 340px; padding: 16px; background: #23201c; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 20px 50px rgba(0,0,0,.6); animation: pop .3s; }
.cookie b { font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; }
.cookie p { color: var(--muted); font-size: 13px; margin: 6px 0 12px; }
.cookie p a { color: var(--orange); }
.cookie div { display: flex; gap: 6px; }
.cookie .btn { flex: 1; }

/* ---------- футер ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 24px; display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 24px; align-items: start; color: var(--muted); font-size: 13px; background: rgba(18,17,15,.85); }
.footer__brand { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--text); margin-bottom: 8px; }
.footer__links { display: grid; gap: 4px; }
.footer__links b { color: var(--red); font-family: var(--head); text-transform: uppercase; font-weight: 500; letter-spacing: .04em; }
.footer__links a { text-transform: uppercase; font-size: 12px; color: var(--text); font-weight: 500; }
.footer__links a:hover { color: var(--orange); }
.footer__right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.lang { font-family: var(--head); color: var(--text); }

/* ---------- тосты ---------- */
.toasts { position: fixed; left: 50%; top: 156px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 300; pointer-events: none; }
.toast { min-width: 240px; max-width: 380px; padding: 12px 16px; background: var(--panel2); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--r); box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: 14px; animation: toastIn .3s ease; }
.toast.ok { border-left-color: var(--green-l); }
.toast.out { opacity: 0; transform: translateY(-10px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px); } }

/* ---------- адаптив ---------- */
@media (max-width: 1240px) {
  .stage { grid-template-columns: 1fr 1fr; }
  .wheel { grid-column: 1 / -1; order: -1; max-width: 400px; margin: 0 auto; width: 100%; }
  .nav__link { padding: 0 12px; }
  .raffles { grid-template-columns: 1fr 1fr; }
  .cargo { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .lists, .profile { grid-template-columns: 1fr; }
  .feed__best { display: none; }
}
@media (max-width: 900px) {
  .topbar { backdrop-filter: none; background: rgba(18,17,15,.98); }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; height: 58px; margin: 0; background: rgba(18,17,15,.97); border-top: 1px solid var(--line); z-index: 60; }
  .nav__link { flex: 1; justify-content: center; flex-direction: column; gap: 2px; font-size: 11px; padding: 0; }
  .nav__link.is-active::after { top: 0; bottom: auto; }
  body { padding-bottom: 58px; }
  .topbar__right { margin-left: auto; }
  .socials { display: none; }
  .raffles { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .footer__right { align-items: flex-start; }
  .cookie { left: 16px; right: 16px; width: auto; bottom: 74px; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 16px; gap: 10px; }
  .logo span { display: none; }
  .btn--steam small { display: none; }
  .wrap { padding: 20px 16px 40px; }
  .stage { grid-template-columns: 1fr; }
  .slot { min-height: 320px; }
  .ring { width: min(300px, 80vw); }
  .ring__pct { font-size: 36px; }
  .feed__stats { min-width: 0; padding: 0 12px; }
  .feed__stats span { display: none; }
  .feed__tabs { display: none; }
  .stake { grid-template-columns: 1fr auto; }
  .stake label { grid-column: 1 / -1; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .tools { width: 100%; }
  .tools input[type=search] { flex: 1; width: auto; }
  .cargo { padding: 18px; }
  .cargo__boxes { grid-template-columns: repeat(2, 1fr); }
  .cargo__title { font-size: 30px; }
  .topdrop__label { flex-basis: 90px; font-size: 16px; }
  .ugrid { grid-template-columns: repeat(3, 1fr); }
  .raffle__body { grid-template-columns: 1fr 110px; }
  .raffle__body img { width: 110px; height: 110px; }
}
