:root {
  --bg: #0e0e11;
  --panel: #17171c;
  --panel-2: #1f1f26;
  --line: #2c2c35;
  --text: #f1efe9;
  --muted: #9a98a3;
  --accent: #c6ff3d;
  --gold: #c9a227;
  --red: #d7263d;
  --green: #1f9d55;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 Rubik, system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; }
h1, h2 { font-family: "Rubik Mono One", Rubik, sans-serif; font-weight: 400; letter-spacing: -.02em; }
h1 { font-size: clamp(28px, 5vw, 48px); }
h2 { font-size: clamp(20px, 3vw, 28px); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 32px 20px 64px; flex: 1; }

/* ---------- шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px;
  background: rgba(14, 14, 17, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: "Rubik Mono One", sans-serif; color: var(--text); font-size: 18px; letter-spacing: -.03em; }
.logo span { color: var(--accent); margin-left: 4px; }
.logo:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 999px; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; background: var(--panel); }
.nav a.active { color: var(--bg); background: var(--accent); }
.nav .wallet { color: var(--text); border: 1px solid var(--line); }
.nav .wallet b { color: var(--accent); }
.nav .btn { color: var(--bg); }
.nav-toggle, .nav-burger { display: none; }

@media (max-width: 1080px) {
  .nav-burger { display: block; font-size: 24px; cursor: pointer; padding: 4px 8px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
         padding: 12px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-toggle:checked ~ .nav { display: flex; }
}

/* ---------- кнопки и формы ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--bg); font: 700 15px Rubik, sans-serif;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-small { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }

input[type=text], input[type=password], input[type=number] {
  width: 100%; padding: 11px 14px; margin-top: 6px;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; font: 16px Rubik, sans-serif;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-error { color: #ff6b7d; font-size: 14px; margin: 6px 0 0; }

.messages { max-width: 1180px; margin: 16px auto 0; padding: 0 20px; width: 100%; }
.msg { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; background: var(--panel-2); border-left: 4px solid var(--accent); }
.msg-error { border-color: var(--red); }

/* ---------- общие блоки ---------- */
.hero { padding: 48px 0 56px; }
.kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; }
.hero h1 { font-size: clamp(34px, 7vw, 76px); max-width: 900px; }
.accent { color: var(--accent); }
.hero-sub { color: var(--muted); font-size: 19px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Главный экран с видео на фоне: на всю ширину, текст поверх затемнения */
.hero {
  position: relative; overflow: hidden; margin: 0;
  min-height: min(88vh, 820px); display: flex; align-items: flex-end;
  padding: 0; background: #000;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,17,.35) 0%, rgba(14,14,17,.55) 55%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 96px 20px 64px; }
.hero-inner h1, .hero-inner .hero-sub { text-shadow: 0 2px 16px rgba(0,0,0,.6); }
.hero .hero-sub { color: #d8d6de; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

section { margin-bottom: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.page-head { margin-bottom: 32px; }
.page-head p { color: var(--muted); max-width: 640px; }
.page-head .note { font-size: 13px; opacity: .75; margin-top: -4px; }
.subhead { margin-top: 48px; }
.empty { color: var(--muted); padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
.grid-6 { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

/* ---------- карточки игроков в стиле FUT ---------- */
.fut-card {
  position: relative; padding: 18px; border-radius: 18px;
  aspect-ratio: 3 / 4; /* при длинном описании карточка просто вытянется */
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, #e7c65a 0%, #b88a1c 55%, #6e4f0b 100%);
  color: #1c1406; overflow: hidden;
}
.fut-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, rgba(255,255,255,.35), transparent 45%); pointer-events: none; }
.fut-retired { background: linear-gradient(160deg, #cfd2d8, #8b8f99 60%, #4d5059); }
.fut-top, .fut-bottom { position: relative; z-index: 2; }
.fut-top { display: flex; justify-content: space-between; align-items: flex-start; }
.fut-rating { font: 400 38px/1 "Rubik Mono One", sans-serif; }
.fut-rating small { display: block; font: 700 14px Rubik, sans-serif; margin-top: 4px; }
.fut-number { font-weight: 700; opacity: .7; }
.fut-photo { width: 120px; height: 120px; margin: 0 auto; border-radius: 50%; background: rgba(0,0,0,.15); display: grid; place-items: center; }
.fut-photo span { font: 400 48px "Rubik Mono One", sans-serif; opacity: .5; }
.fut-name { text-align: center; font-size: 20px; text-transform: uppercase; margin: 0; }
.fut-realname { text-align: center; margin: 0; font-size: 13px; opacity: .75; }
.fut-stats { list-style: none; padding: 10px 0 0; margin: 10px 0 0; border-top: 1px solid rgba(0,0,0,.2);
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 8px; font-size: 13px; }
.fut-stats b { font-size: 16px; }
.fut-bio { font-size: 13px; margin: 10px 0 0; opacity: .85; }

/* Фото на всю карточку: затемнение сверху под рейтинг и снизу под статы, золотая рамка */
.fut-card.has-photo { color: #fff; background: #111; box-shadow: inset 0 0 0 3px #d4af37; }
.fut-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 0; }
.fut-card.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 45%, rgba(0,0,0,.75) 70%, rgba(0,0,0,.92) 100%);
}
.fut-card.has-photo::after { z-index: 1; background: radial-gradient(circle at 80% 0%, rgba(255,255,255,.18), transparent 40%); }
.has-photo .fut-rating, .has-photo .fut-name { text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.has-photo .fut-rating small, .has-photo .fut-stats b { color: #f0c94d; }
.has-photo .fut-number { opacity: .9; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.has-photo .fut-stats { border-top-color: rgba(240,201,77,.45); }
.fut-card.has-photo.fut-retired { box-shadow: inset 0 0 0 3px #aeb2bb; }
.fut-card.has-photo.fut-retired .fut-bg { filter: grayscale(.8); }

/* ---------- новости ---------- */
.news-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: border-color .15s; }
.news-card:hover { text-decoration: none; border-color: var(--accent); }
.news-cover { aspect-ratio: 16 / 9; background: var(--panel-2); display: grid; place-items: center; overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-cover span { font: 400 22px/1.1 "Rubik Mono One", sans-serif; color: var(--line); text-align: center; }
.news-body { padding: 16px 18px 20px; }
.news-body time, .article time { color: var(--accent); font-size: 13px; font-weight: 500; }
.news-body h3 { font-size: 19px; margin: 6px 0; }
.news-body p { color: var(--muted); margin: 0; font-size: 15px; }
.pager { display: flex; gap: 20px; justify-content: center; align-items: center; margin-top: 32px; color: var(--muted); }

.article { max-width: 760px; margin: 0 auto; }
.back { display: inline-block; margin-bottom: 20px; }
.article h1 { margin-top: 6px; }
.article-lead { font-size: 20px; color: var(--muted); }
.article-cover { width: 100%; border-radius: var(--radius); margin: 24px 0; }
.article-body { font-size: 18px; line-height: 1.7; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 32px; color: var(--muted); }
.tag { padding: 4px 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); }

/* ---------- рулетка ---------- */
.casino { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
@media (max-width: 900px) { .casino { grid-template-columns: 1fr; } }
.wheel-wrap { position: relative; max-width: 520px; width: 100%; margin: 0 auto; }
.wheel-wrap canvas { width: 100%; height: auto; border-radius: 50%; box-shadow: 0 0 0 8px #2a2111, 0 0 60px rgba(201, 162, 39, .25); }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid var(--accent);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.wheel-result { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: 18px; text-align: center;
  animation: pop .3s ease; }
.wheel-result.is-win { color: var(--accent); }
.wheel-result.is-lose { color: #ff6b7d; }
.num { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font: 400 26px "Rubik Mono One", sans-serif; color: #fff; border: 3px solid var(--gold); }
.num-red { background: var(--red); } .num-black { background: #16161a; } .num-green { background: var(--green); }
@keyframes pop { from { transform: translate(-50%, -50%) scale(.6); opacity: 0; } }

.bet-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.balance-line { margin-top: 0; font-size: 18px; }
.balance-line b { color: var(--accent); }
.field-label { display: block; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 18px 0 8px; }
.amount-row { display: flex; gap: 8px; align-items: center; }
.amount-row input { margin: 0; }
.chip { flex: none; width: 48px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: 700 15px Rubik, sans-serif; cursor: pointer; }
.bet-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bet { position: relative; cursor: pointer; }
.bet input[type=radio] { position: absolute; opacity: 0; }
.bet > span { display: block; padding: 12px; border-radius: 10px; border: 2px solid var(--line); background: var(--panel-2); text-align: center; font-weight: 700; }
.bet-red > span { background: var(--red); border-color: var(--red); }
.bet-black > span { background: #000; }
.bet input[type=radio]:checked + span { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.bet input[type=radio]:focus-visible + span { outline: 2px solid var(--text); }
.bet-number { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
.bet-number > span { flex: 1; }
.bet-number input[type=number] { width: 90px; margin: 0; }
.btn-spin { width: 100%; margin-top: 20px; padding: 16px; font-size: 18px; text-transform: uppercase; letter-spacing: .06em; }

.table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.table tr:last-child td { border-bottom: 0; }
.win { color: var(--accent); font-weight: 700; }
.lose { color: #ff6b7d; }

/* ---------- магазин и инвентарь ---------- */
.item-card, .inv-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; --rar: #8d8b96; border-top: 4px solid var(--rar); }
.rarity-rare { --rar: #3d8bff; } .rarity-epic { --rar: #a855f7; } .rarity-legendary { --rar: #f5a623; }
.item-pic { font-size: 56px; height: 96px; display: grid; place-items: center; }
.item-pic img { max-height: 96px; object-fit: contain; }
.rarity { color: var(--rar); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.item-card h3 { font-size: 18px; margin: 0; }
.item-card p { color: var(--muted); margin: 0; font-size: 14px; flex: 1; }
.item-foot { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0; }
.item-foot b { color: var(--accent); }
.item-foot small { color: var(--muted); }
.owned { color: var(--accent) !important; font-size: 13px !important; flex: 0 !important; }
.inv-item { align-items: center; text-align: center; padding: 14px; }
.inv-item .item-pic { height: 64px; font-size: 42px; }
.inv-item small { color: var(--muted); }

/* ---------- кабинет и вход ---------- */
.cabinet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.cabinet-actions { display: flex; gap: 8px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.stat span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.stat b { font: 400 32px "Rubik Mono One", sans-serif; color: var(--accent); }
.stat small { color: var(--muted); }
.stat-bonus form { margin-top: 6px; }

.auth-box { max-width: 400px; margin: 40px auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.auth-box label { display: block; margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.auth-box .helptext, .auth-box ul { display: none; }
.auth-box .btn { margin-top: 8px; }

.auth-box h1 { font-size: clamp(22px, 6vw, 32px); }
.auth-hint { color: var(--muted); font-size: 14px; margin-top: -4px; }
.auth-box label.agree { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 13px; line-height: 1.45; }
.agree input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }

.rules h2 { font-size: 20px; margin-top: 36px; }
.rules ul { padding-left: 20px; line-height: 1.65; }
.rules li { margin-bottom: 6px; }
.rules .note { color: var(--muted); font-size: 14px; margin-top: 36px; }

.danger-zone { margin-top: 56px; border: 1px solid #5a2630; border-radius: var(--radius); padding: 14px 18px; }
.danger-zone summary { cursor: pointer; color: #ff6b7d; font-weight: 500; }
.danger-zone p { color: var(--muted); font-size: 14px; }
.danger-zone label { display: block; color: var(--muted); font-size: 14px; margin-bottom: 12px; max-width: 360px; }
.btn-danger { background: var(--red); color: #fff; }

.footer a { color: var(--muted); text-decoration: underline; }
.footer { border-top: 1px solid var(--line); padding: 24px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.footer p { margin: 0 auto 8px; }
.footer .disclaimer { max-width: 720px; font-size: 13px; line-height: 1.5; opacity: .8; }

/* ---------- лента событий ---------- */
.feed { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feed-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
.feed-item:last-child { border-bottom: 0; }
.feed-item.rarity-rare { border-left-color: #3d8bff; }
.feed-item.rarity-epic { border-left-color: #a855f7; }
.feed-item.rarity-legendary { border-left-color: #f5a623; background: linear-gradient(90deg, rgba(245,166,35,.08), transparent 60%); }
.feed-icon { font-size: 20px; }
.feed-text { min-width: 0; overflow-wrap: anywhere; }
.feed-text b { color: var(--accent); }
.feed-item time { color: var(--muted); font-size: 13px; white-space: nowrap; }
@media (max-width: 520px) {
  .feed-item { grid-template-columns: auto 1fr; }
  .feed-item time { grid-column: 2; }
}

/* ---------- реакции и комментарии ---------- */
.reactions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.reactions form { margin: 0; }
.reaction { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 18px Rubik, sans-serif; cursor: pointer; }
.reaction:hover { text-decoration: none; border-color: var(--muted); }
.reaction b { font-size: 14px; }
.reaction.is-mine { border-color: var(--accent); background: rgba(198,255,61,.1); }

.comments { margin-top: 48px; }
.comments h2 { font-size: 22px; }
.comments .count { color: var(--muted); }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-head { display: flex; align-items: baseline; gap: 10px; }
.comment-head time { color: var(--muted); font-size: 13px; }
.comment p { margin: 6px 0 0; overflow-wrap: anywhere; }
.comment-delete { margin-left: auto; }
.comment-delete button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; }
.comment-delete button:hover { color: #ff6b7d; }
.comment-form { margin-top: 20px; }
.comment-form textarea { width: 100%; padding: 12px 14px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font: 16px Rubik, sans-serif; resize: vertical; }
.comment-form-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.comment-form-foot small, .muted { color: var(--muted); }

/* ---------- кейсы ---------- */
.case-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px; background: radial-gradient(circle at 50% 20%, #26262f, var(--panel) 70%); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: transform .15s, border-color .15s; }
.case-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--accent); }
.case-card h3 { margin: 6px 0 0; }
.case-card p { color: var(--muted); margin: 0; font-size: 14px; }
.case-price { color: var(--accent); margin-top: 6px; }
.case-pic { font-size: 72px; height: 110px; display: grid; place-items: center; }
.case-pic img { max-height: 110px; object-fit: contain; }
.case-head { display: flex; gap: 20px; align-items: center; }
.case-pic-big { font-size: 64px; height: 90px; flex: none; }

.opener { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.strip-window { position: relative; overflow: hidden; border-radius: 10px; background: #0a0a0d; padding: 12px 0; }
.strip-window::before, .strip-window::after { content: ""; position: absolute; top: 0; bottom: 0; width: 15%; z-index: 2; pointer-events: none; }
.strip-window::before { left: 0; background: linear-gradient(90deg, #0a0a0d, transparent); }
.strip-window::after { right: 0; background: linear-gradient(-90deg, #0a0a0d, transparent); }
.strip-marker { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--accent); z-index: 3; box-shadow: 0 0 12px var(--accent); }
.strip { display: flex; gap: 8px; will-change: transform; }
.strip-cell { flex: none; width: 128px; height: 128px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px;
  background: var(--panel-2); border-radius: 8px; border-bottom: 4px solid var(--rar); --rar: #8d8b96; text-align: center; }
.strip-cell span { font-size: 12px; line-height: 1.2; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.strip-pic { font-size: 44px; height: 56px; display: grid; place-items: center; }
.strip-pic img { max-height: 56px; max-width: 100%; object-fit: contain; }
.strip-cell.is-winner { outline: 2px solid var(--accent); box-shadow: 0 0 24px rgba(198,255,61,.35); }
.strip-cell.rarity-rare, .drop-card.rarity-rare { --rar: #3d8bff; }
.strip-cell.rarity-epic, .drop-card.rarity-epic { --rar: #a855f7; }
.strip-cell.rarity-legendary, .drop-card.rarity-legendary { --rar: #f5a623; }
@media (max-width: 520px) { .strip-cell { width: 96px; height: 104px; } .strip-pic { font-size: 34px; height: 44px; } }

.opener-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.opener-actions .balance-line { margin: 0; }
.opener-actions .btn-spin { width: auto; margin: 0; }
.drop-result { text-align: center; margin-top: 24px; animation: pop-in .35s ease; }
.drop-card { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 24px; border-radius: var(--radius);
  background: radial-gradient(circle, color-mix(in srgb, var(--rar) 25%, transparent), transparent 70%); --rar: #8d8b96; }
.drop-card .strip-cell { width: 160px; height: 160px; }
.drop-card .strip-pic { font-size: 64px; height: 80px; }
.drop-card .rarity { color: var(--rar); }
.chance { color: var(--accent) !important; font-weight: 700; }
@keyframes pop-in { from { transform: scale(.8); opacity: 0; } }

/* ---------- оформление: свечение фона, фон разделов, ховеры ---------- */
::selection { background: var(--accent); color: var(--bg); }
body {
  position: relative;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(198,255,61,.07), transparent 60%),
    radial-gradient(800px 600px at 100% 30%, rgba(201,162,39,.06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
.container, .messages, .footer { position: relative; z-index: 1; }

/* Фото раздела из админки: лежит под заголовком и растворяется в тёмном фоне */
.page-backdrop {
  position: absolute; top: 0; left: 0; right: 0; height: min(70vh, 560px); z-index: 0;
  background-size: cover; background-position: center 30%;
}
.page-backdrop::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, var(--bg) 100%),
    rgba(14,14,17, var(--dim, .55));
}
.has-backdrop .page-head { padding: clamp(56px, 12vh, 120px) 0 28px; margin-bottom: 40px; }
.has-backdrop .page-head h1 { font-size: clamp(34px, 6vw, 64px); text-shadow: 0 2px 18px rgba(0,0,0,.65); }
.has-backdrop .page-head p { color: #d8d6de; text-shadow: 0 1px 10px rgba(0,0,0,.7); }

.section-head h2, .subhead { position: relative; padding-left: 16px; }
.section-head h2::before, .subhead::before {
  content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 5px; border-radius: 3px; background: var(--accent);
}
.empty { background: rgba(23,23,28,.6); }

.fut-card { transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.fut-card.has-photo { box-shadow: inset 0 0 0 3px #d4af37, 0 10px 30px rgba(0,0,0,.35); }
.fut-card.has-photo.fut-retired { box-shadow: inset 0 0 0 3px #aeb2bb, 0 10px 30px rgba(0,0,0,.35); }
.fut-bg { transition: transform .5s ease; }
.news-card, .item-card { transition: transform .2s ease, border-color .15s, box-shadow .2s ease; }
.news-cover img { transition: transform .5s ease; }
@media (hover: hover) {
  .fut-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 22px 44px rgba(0,0,0,.55), 0 0 36px rgba(212,175,55,.22); }
  .fut-card.has-photo:hover { box-shadow: inset 0 0 0 3px #f0c94d, 0 22px 44px rgba(0,0,0,.55), 0 0 36px rgba(212,175,55,.28); }
  .fut-card.has-photo.fut-retired:hover { box-shadow: inset 0 0 0 3px #aeb2bb, 0 22px 44px rgba(0,0,0,.55); }
  .fut-card:hover .fut-bg { transform: scale(1.05); }
  .news-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.45); }
  .news-card:hover .news-cover img { transform: scale(1.05); }
  .item-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.45), 0 0 28px color-mix(in srgb, var(--rar) 22%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .fut-card, .fut-bg, .news-card, .news-cover img, .item-card { transition: none; }
  .fut-card:hover, .news-card:hover, .item-card:hover { transform: none; }
}
