/* MAD HARD shop, look "C — Военный склад" (Andrey 2026-11-27): black and red, amber accents, Fira Sans Condensed */
@font-face { font-family: "FiraC"; src: url("fonts/FiraSansCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "FiraC"; src: url("fonts/FiraSansCondensed-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
:root {
  --bg: #0c0b0b; --panel: #151313; --panel2: #1d1a19; --line: #2c2725; --line2: #3d3532;
  --red: #c8321f; --red2: #e04a33; --amber: #e8a030; --amber2: #ffc35c; --cream: #ece4d4; --muted: #9a918a; --dim: #6b625c;
  --green: #6fbf5a; --head: "FiraC", "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--cream); font: 15px/1.5 "Fira Sans", "Segoe UI", Roboto, Arial, sans-serif;
  background: transparent;
}
/* Abstract background (tools/make-site-bg.py, 2026-11-29): fixed behind everything; the plain dark colour shows while it loads */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("bg_abstract.jpg") 70% 0 / cover no-repeat, var(--bg); }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber2); }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1520px; margin: 0 auto; padding: 0 16px; width: 100%; }
@media (min-width: 1280px) { .wrap { padding: 0 28px; } }
main { flex: 1; padding: 26px 0 56px; }
h1 { margin: 0 0 16px; font: 800 34px/1.05 var(--head); text-transform: uppercase; letter-spacing: .5px; }
h2 { margin: 34px 0 12px; font: 800 24px var(--head); text-transform: uppercase; letter-spacing: 1px; }
h2::before { content: "// "; color: var(--red2); }
.muted { color: var(--muted); }

/* header */
.hazard { height: 10px; background: repeating-linear-gradient(-45deg, var(--amber) 0 14px, #111 14px 28px); }
header { border-bottom: 1px solid var(--line); background: rgba(12, 11, 11, 0.92); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
.bar { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { font: italic 800 28px/1 var(--head); color: var(--cream); letter-spacing: .5px; white-space: nowrap; }
.brand:hover { color: var(--cream); }
.brand span { color: var(--red2); }
.brand small { display: block; margin-top: 3px; font: 700 11px var(--head); letter-spacing: 4px; color: var(--amber); font-style: normal; }
.avatar { display: block; flex: none; line-height: 0; margin: 0 -6px; }
/* the horned helmet on black: "lighten" melts its black square into the dark header */
.avatar img { width: 56px; height: 56px; mix-blend-mode: lighten; transition: filter .15s; }
.avatar:hover img { filter: brightness(1.15) drop-shadow(0 0 8px rgba(232, 160, 48, 0.45)); }
.menu { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.menu a { padding: 8px 13px; color: var(--muted); font: 700 15px var(--head); letter-spacing: 1.5px; text-transform: uppercase; }
.menu a:hover { color: var(--cream); }
.menu a.on { color: var(--cream); background: var(--panel2); box-shadow: inset 0 -3px 0 var(--red); }
.who { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.who .sid { font: 700 13px var(--head); letter-spacing: 1px; }

/* buttons: the red slanted one is the main action, the amber price tag sits next to it */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; padding: 11px 20px; background: var(--red); color: #fff;
  font: 800 15px var(--head); letter-spacing: 2px; text-transform: uppercase; transform: skewX(-10deg); white-space: nowrap; }
.btn > span { display: inline-block; transform: skewX(10deg); }
.btn:hover { background: var(--red2); color: #fff; }
.btn.small { padding: 8px 14px; font-size: 13px; letter-spacing: 1.5px; }
.btn.amber, .btn.gold { background: var(--amber); color: #170e04; }
.btn.amber:hover, .btn.gold:hover { background: var(--amber2); color: #170e04; }
.btn.green { background: #3f8f49; }
.btn.green:hover { background: #4ca657; }
.btn.red { background: #7d2418; }
.btn.red:hover { background: var(--red); }
.btn.ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--amber); color: var(--cream); }
.tag { display: inline-block; padding: 7px 16px 7px 24px; background: var(--amber); color: #170e04; font: 800 22px/1.1 var(--head); white-space: nowrap;
  clip-path: polygon(13px 0, 100% 0, 100% 100%, 13px 100%, 0 50%); }
.old { color: var(--dim); text-decoration: line-through; font: 700 15px var(--head); }
.badge { display: inline-block; padding: 3px 8px; font: 800 12px/1.3 var(--head); letter-spacing: 1.5px; text-transform: uppercase; }
.badge.hit { background: var(--amber); color: #170e04; }
.badge.new { background: var(--cream); color: #170e04; }
.badge.sale { background: var(--red); color: #fff; }

/* item picture with amber corner brackets */
.pic { position: relative; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, rgba(200, 50, 31, 0.28), transparent 65%), #110f0f; }
.pic::before, .pic::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--amber); pointer-events: none; }
.pic::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.pic::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.pic img { max-width: 80%; max-height: 80%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.7)); }

/* "Выбор недели" */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; border: 1px solid var(--line2); background: var(--panel); margin-bottom: 8px; }
.feature .art { position: relative; min-height: 340px; display: grid; place-items: center;
  background: linear-gradient(90deg, transparent 45%, var(--panel) 100%), url("night.jpg") 35% center / cover; }
.feature .art img { max-width: 62%; max-height: 260px; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.85)); }
.stamp { position: absolute; top: 18px; left: 18px; padding: 6px 12px; border: 2px solid var(--amber); color: var(--amber); background: rgba(12, 11, 11, 0.65);
  font: 800 14px var(--head); letter-spacing: 3px; transform: rotate(-4deg); }
.feature .txt { padding: 30px 30px 30px 10px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.label { font: 700 13px var(--head); letter-spacing: 4px; color: var(--red2); text-transform: uppercase; }
.feature h1 { margin: 6px 0 10px; font-size: clamp(36px, 5vw, 56px); line-height: 1; }
.feature p { margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.chips span { padding: 4px 10px; background: var(--panel2); border: 1px solid var(--line2); font: 700 14px var(--head); letter-spacing: .3px; }
.deal { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* a set with a vehicle: it appears in front of the player */
.car-note { margin: 8px 0 0; padding: 7px 10px 7px 12px; border-left: 3px solid var(--amber); background: rgba(232, 160, 48, 0.08); color: var(--amber2); font-size: 13px; line-height: 1.4; }
.feature .car-note { margin: -8px 0 18px; font-size: 14px; }
.sheet .car-note { margin: -8px 0 18px; }

/* Discord and Lolka invitations */
.invites { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.invite { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line2); color: var(--cream); transition: border-color .15s, background .15s; }
.invite:hover { color: var(--cream); background: var(--panel2); }
.invite.discord:hover { border-color: #5865f2; }
.invite.lolka:hover { border-color: #ff4fa3; }
.invite .ico { width: 42px; height: 42px; flex: none; }
.invite.discord .ico { color: #7983f5; }
.invite .t { flex: 1; min-width: 0; }
.invite b { display: block; font: 800 19px/1.15 var(--head); text-transform: uppercase; letter-spacing: .5px; }
.invite small { display: block; color: var(--muted); font-size: 13px; }
.invite .go { padding: 8px 14px; background: var(--red); color: #fff; font: 800 13px var(--head); letter-spacing: 1.5px; text-transform: uppercase; transform: skewX(-10deg); white-space: nowrap; }
.invite:hover .go { background: var(--red2); }

/* catalog head + category filter */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 40px 0 18px; }
.head h2 { margin: 0; font-size: 34px; }
.filters { display: flex; flex-wrap: wrap; border: 1px solid var(--line2); }
.filters a { padding: 9px 16px; background: var(--panel); color: var(--muted); border-right: 1px solid var(--line2); font: 700 14px var(--head); letter-spacing: 1.5px; text-transform: uppercase; }
.filters a:last-child { border-right: 0; }
.filters a:hover { color: var(--cream); background: var(--panel2); }
.filters a.on { background: var(--red); color: #fff; }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line2); transition: border-color .15s, transform .15s; }
.card::before { content: ""; position: absolute; inset: -1px -1px auto -1px; height: 4px; background: var(--red); }
.card:hover { border-color: var(--amber); transform: translateY(-3px); }
.card .pic { height: 190px; margin: 14px; cursor: pointer; }
.num { position: absolute; top: 14px; right: 14px; font: 700 12px var(--head); letter-spacing: 2px; color: var(--dim); }
.badges { position: absolute; top: 24px; left: 24px; z-index: 1; display: flex; gap: 6px; }
.card .body { padding: 0 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 4px; font: 800 21px/1.15 var(--head); text-transform: uppercase; cursor: pointer; }
.card .desc { margin: 0; color: var(--muted); font-size: 13px; }
.card .more { align-self: flex-start; margin-top: 6px; padding: 0; background: none; border: 0; color: var(--amber); font: 700 13px var(--head); letter-spacing: 1px; text-transform: uppercase; }
.card .deal { margin-top: auto; padding-top: 14px; gap: 10px; }
.card .tag { font-size: 20px; padding: 6px 14px 6px 22px; }
.card .deal form, .card .deal > .btn { margin-left: auto; }
.card .deal .btn { padding: 10px 16px; font-size: 14px; }
.empty { padding: 40px; text-align: center; border: 1px dashed var(--line2); color: var(--muted); }

/* how to get it */
.steps { margin: 50px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line2); }
.steps div { padding: 22px; border-right: 1px solid var(--line2); background: var(--panel); }
.steps div:last-child { border-right: 0; }
.steps b { font: 800 48px/1 var(--head); color: transparent; -webkit-text-stroke: 1.5px var(--red2); }
.steps h4 { margin: 8px 0 4px; font: 800 19px var(--head); text-transform: uppercase; letter-spacing: 1px; }
.steps p { margin: 0; color: var(--muted); }

/* product window */
dialog.sheet { width: min(780px, calc(100% - 32px)); max-height: 90vh; padding: 0; color: var(--cream); background: var(--panel); border: 1px solid var(--line2); border-top: 4px solid var(--red); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); }
.sheet .in { display: grid; grid-template-columns: 280px 1fr; }
.sheet .pic { min-height: 280px; margin: 18px; }
.sheet .txt { padding: 22px 24px 24px 4px; }
.sheet h2 { margin: 8px 0; font-size: 32px; line-height: 1; }
.sheet h2::before { content: none; }
.sheet p { color: var(--muted); margin: 0 0 14px; }
.sheet ol { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: n; }
.sheet li { counter-increment: n; padding: 7px 0; border-bottom: 1px dashed var(--line2); }
.sheet li::before { content: counter(n, decimal-leading-zero) "  "; color: var(--red2); font: 700 13px var(--head); }
.sheet .x { position: absolute; top: 6px; right: 10px; background: none; border: 0; color: var(--muted); font-size: 30px; line-height: 1; }
.sheet .x:hover { color: var(--cream); }

/* service blocks, tables, forms (orders, login, admin) */
.flash { background: var(--panel2); border-left: 4px solid var(--amber); padding: 10px 14px; margin-bottom: 16px; }
.dev { background: rgba(58, 42, 16, 0.92); border: 1px solid #6b4d16; color: #f0c674; padding: 8px 12px; margin-bottom: 16px; font-size: 13px; }
.box { position: relative; background: var(--panel); border: 1px solid var(--line2); padding: 20px; margin-bottom: 16px; }
.box > p:first-child { margin-top: 0; }
.box ol { margin: 0; padding-left: 22px; }
.box ol li { margin: 6px 0; }
.narrow { max-width: 640px; }
table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line2); }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font: 700 13px var(--head); letter-spacing: 1.5px; text-transform: uppercase; background: var(--panel2); }
tr:hover td { background: rgba(255, 255, 255, 0.015); }
.status-new { color: var(--amber); }
.status-paid { color: var(--amber2); font-weight: 600; }
.status-delivered { color: var(--green); }
.status-cancelled { color: var(--red2); }
label { display: block; margin: 14px 0 5px; color: var(--muted); font-size: 13px; }
input[type=text], input[type=number], textarea, select { width: 100%; background: #110f0f; border: 1px solid var(--line2); color: var(--cream); padding: 9px 11px; font: inherit; border-radius: 0; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--amber); }
input[type=checkbox] { accent-color: var(--red); width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
textarea { min-height: 110px; font-family: Consolas, monospace; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
form.inline { display: inline; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line2); border-top: 3px solid var(--red); padding: 10px 14px; min-width: 160px; }
.stat b { display: block; font: 800 26px var(--head); }
.links { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; font: 700 14px var(--head); letter-spacing: 1px; text-transform: uppercase; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.thumb { background: var(--panel); border: 1px solid var(--line2); padding: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; word-break: break-all; }
.thumb .pic { aspect-ratio: 1; }
.thumb.missing { border-color: rgba(232, 160, 48, 0.55); }
.pic.small { aspect-ratio: 1; max-width: 220px; margin-top: 10px; }
.photo-del { margin-top: 8px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.linkbtn.danger:hover { color: var(--red2); }
code { background: var(--panel2); padding: 1px 5px; }
.order-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.order-head h1 { margin: 0; }

footer { border-top: 1px solid var(--line); padding: 22px 0 34px; color: var(--dim); font-size: 13px; background: rgba(12, 11, 11, 0.9); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 26px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--cream); }

@media (max-width: 900px) {
  .bar { flex-wrap: wrap; gap: 10px 16px; padding: 10px 16px; min-height: 0; }
  .menu { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .menu a { padding: 6px 10px; font-size: 13px; flex: none; }
  .who { margin-left: auto; }
  .who .sid { display: none; }
  header { position: static; }
  .feature { grid-template-columns: 1fr; }
  .feature .art { min-height: 220px; background: linear-gradient(180deg, transparent 45%, var(--panel) 100%), url("night.jpg") 35% center / cover; }
  .feature .txt { padding: 6px 20px 24px; }
  .steps { grid-template-columns: 1fr; }
  .steps div { border-right: 0; border-bottom: 1px solid var(--line2); }
  .steps div:last-child { border-bottom: 0; }
  .sheet .in { grid-template-columns: 1fr; }
  .sheet .pic { min-height: 200px; }
  .sheet .txt { padding: 0 20px 22px; }
  .two { grid-template-columns: 1fr; }
  .invites { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  h1 { font-size: 28px; }
  .brand { font-size: 24px; }
  .avatar img { width: 46px; height: 46px; }
  .btn { padding: 10px 14px; font-size: 13px; letter-spacing: 1px; }
  .filters { width: 100%; }
  .filters a { flex: 1 1 33%; padding: 8px 6px; font-size: 13px; text-align: center; border-bottom: 1px solid var(--line2); }
  .head h2 { font-size: 28px; }
  .table-wrap { overflow-x: auto; }
  th:nth-child(n+5), td:nth-child(n+5) { display: none; }
}

/* payment form and legal pages (2026-11-28) */
.pay-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line2); }
.pay-form input[type=email] { max-width: 340px; display: block; }
.pay-form .agree { display: block; margin: 14px 0; color: var(--cream); font-size: 14px; }
.pay-form .btn { margin-top: 4px; }
input[type=email] { width: 100%; background: #110f0f; border: 1px solid var(--line2); color: var(--cream); padding: 9px 11px; font: inherit; border-radius: 0; }
.doc { max-width: 860px; }
.doc h2 { font-size: 20px; margin: 26px 0 8px; }
.doc p, .doc li { color: #d8d0c2; line-height: 1.6; }
.doc .req { background: var(--panel); border: 1px solid var(--line2); padding: 14px 18px; }
.doc .req div { margin: 3px 0; }

/* looped item videos instead of photos (vehicles, 2026-11-28) */
.pic.has-clip { overflow: hidden; background: #0b0a0a; }
.pic.has-clip::before, .pic.has-clip::after { z-index: 1; }
.pic video.clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature .art.has-clip { overflow: hidden; }
.feature .art.has-clip video.clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature .art.has-clip .stamp { z-index: 2; }
.sheet .in:has(.pic.has-clip) { grid-template-columns: 1fr; }
.sheet .pic.has-clip { min-height: 0; aspect-ratio: 16 / 9; margin: 18px 18px 0; width: calc(100% - 36px); height: auto; }
.sheet .in:has(.pic.has-clip) .txt { padding: 18px 24px 24px; }

/* admin: item search in the product form (2026-11-29) */
.item-search-list { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; max-height: 300px; overflow-y: auto; }
.item-hit { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; background: var(--panel2); border: 1px solid var(--line2); color: var(--cream); text-align: left; font: inherit; }
.item-hit:hover { border-color: var(--amber); }
.item-hit.added { border-color: var(--green); }
.item-hit.added::after { content: "✓ добавлено"; color: var(--green); font-size: 12px; white-space: nowrap; }
.item-hit code { color: var(--muted); }
input[type=search] { width: 100%; background: #110f0f; border: 1px solid var(--line2); color: var(--cream); padding: 9px 11px; font: inherit; border-radius: 0; }
/* A finished picture with its own background (not a studio cut-out): edge to edge, like the car videos */
.pic.has-art { overflow: hidden; background: #0b0a0a; }
.pic.has-art::before, .pic.has-art::after { z-index: 1; }
.pic.has-art img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; filter: none; }
.sheet .pic.has-art { min-height: 0; aspect-ratio: 1; }
.feature .art.has-art { overflow: hidden; }
/* In the wide "Выбор недели" block a finished picture stays a whole square on our own background, not stretched across */
.feature .art.has-art img { width: auto; height: 78%; max-width: 70%; max-height: 300px; aspect-ratio: 1; object-fit: contain;
  border: 1px solid var(--line2); filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.85)); }
.feature .art.has-art .stamp { z-index: 2; }
/* Category tabs over the admin product list */
.admin-tabs { margin: 0 0 12px; flex-wrap: wrap; }
.admin-tabs a .muted { margin-left: 4px; font-weight: 400; }
/* Steam nickname and avatar in the header instead of the bare SteamID */
.who .me { display: inline-flex; align-items: center; gap: 8px; max-width: 220px; }
.who .me img { width: 32px; height: 32px; flex: none; border: 1px solid var(--line2); }
.who .me .nick { font: 700 14px var(--head); letter-spacing: 1px; color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .who .me .nick { display: none; } }
/* Roulette (2026-11-29): spins balance, the reel, three prize tiers */
.filters a.roulette-tab { color: var(--amber2); }
.filters a.roulette-tab.on { color: #fff; }
.tag small { font-size: 12px; font-weight: 600; opacity: 0.8; }
.buy-qty { display: flex; align-items: center; gap: 6px; }
.buy-qty input[type=number] { width: 64px; padding: 8px 6px; text-align: center; }
.roulette { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.spin-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 20px; background: var(--panel); border: 1px solid var(--line2); }
.spin-bar .balance { display: flex; align-items: baseline; gap: 10px; }
.spin-bar .balance b { font: 800 34px var(--head); color: var(--amber2); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.reel { position: relative; height: 170px; overflow: hidden; background: #0b0a0a; border: 1px solid var(--line2); }
.reel .track { display: flex; gap: 12px; padding: 15px 0; will-change: transform; }
.reel .slot { flex: none; width: 120px; height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 8px; background: var(--panel2); border-bottom: 4px solid var(--dim); text-align: center; font-size: 12px; line-height: 1.2; }
.reel .slot img { width: 84px; height: 84px; object-fit: contain; }
.reel .pointer { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--amber2); box-shadow: 0 0 12px var(--amber2); }
.spin-result[hidden] { display: none; }
.spin-result { padding: 14px 18px; border: 1px solid var(--line2); background: var(--panel); display: flex; flex-direction: column; gap: 4px; }
.spin-result b { font: 800 20px var(--head); }
.spin-result.error { border-color: var(--red); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tier { background: var(--panel); border: 1px solid var(--line2); border-top: 4px solid #8a817a; padding: 14px; }
.tier-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.tier-head h3 { margin: 0; font-size: 18px; }
.tier-head .chance { font: 800 26px var(--head); }
.prizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.prize { display: flex; flex-direction: column; gap: 4px; font-size: 12px; text-align: center; }
.prize .pic { aspect-ratio: 1; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }
/* Roulette group colour comes from the admin (--tc on the group, slot and result) */
.reel .slot { border-bottom-color: var(--tc, #8a817a); }
.tier { border-top-color: var(--tc, #8a817a); }
.tier .chance { color: var(--tc, var(--cream)); }
.spin-result { border-color: var(--tc, var(--line2)); box-shadow: 0 0 22px color-mix(in srgb, var(--tc, transparent) 30%, transparent); }
.spin-result.error { border-color: var(--red); box-shadow: none; }
.tiers-edit input[type=text] { min-width: 200px; }
.tiers-edit input[type=number] { width: 90px; }
.tiers-edit .swatch { display: inline-block; width: 14px; height: 14px; margin-left: 6px; vertical-align: middle; border: 1px solid var(--line2); }
/* Gift spins (2026-11-29): a tag on products that give roulette spins, the big-payment bonus strip */
.gift-note { margin: 4px 0 8px; color: var(--amber2); font-size: 13px; font-weight: 600; }
.gift-note a { color: inherit; text-decoration: underline; }
.bonus-strip { margin: 0 0 14px; padding: 10px 16px; background: var(--panel); border: 1px solid var(--line2); border-left: 4px solid var(--amber); color: var(--cream); font-weight: 600; }
.bonus-strip a { color: var(--amber2); }
.roulette-how { padding: 12px 18px; }
/* Cart (2026-11-29) */
.cart-btn { padding-left: 12px; padding-right: 12px; }
.cart-n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; background: var(--red); color: #fff; border-radius: 9px; font-size: 12px; line-height: 18px; text-align: center; }
.cart-total { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.cart-total .sum-line { font: 800 24px var(--head); }
/* A card with a quantity field: field, buy and cart buttons share one line that fits the card (2026-11-29) */
.card .deal .buy-qty:has(input[name=qty]) { flex: 1 1 100%; margin-left: 0; gap: 6px; min-width: 0; }
.card .deal .buy-qty:has(input[name=qty]) .btn:not(.cart-btn) { flex: 1 1 auto; min-width: 0; padding: 10px 8px; font-size: 13px; letter-spacing: 1px; white-space: nowrap; }
.card .deal .buy-qty .cart-btn { flex: none; padding: 10px; }
.card .deal .buy-qty input[name=qty] { width: 52px; flex: none; }
footer .disclaimer { flex-basis: 100%; margin: 6px 0 0; font-size: 12px; color: var(--dim); line-height: 1.45; }

/* admin product list: small picture before the name, delete next to edit */
#products .admin-title { display: flex; align-items: center; gap: 10px; }
#products .mini { width: 44px; height: 44px; flex: none; object-fit: contain; background: var(--panel); border: 1px solid var(--line2); }
#products .row-actions { white-space: nowrap; }
#products .row-actions form { display: inline; margin-left: 10px; }
#products .admin-title > a { display: block; flex: none; line-height: 0; }
#products .admin-title > a:hover .mini { border-color: var(--red2); }
/* the card opened by a link from the admin product list */
.card.found { outline: 2px solid var(--red2); outline-offset: 3px; }
#products .mini.clip { object-fit: cover; }

/* admin statistics: period choice, refresh, reset, money by day */
.period { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.period .filters { margin: 0; }
.period-range { display: flex; align-items: center; gap: 8px; margin: 0; }
.period-range label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.period-range input[type=date] { width: auto; padding: 6px 8px; color-scheme: dark; }
.period-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.period-tools form { margin: 0; }
.stat.money { border-top-color: var(--gold, #ffc35c); }
.by-day { margin: -4px 0 18px; }
.by-day summary { cursor: pointer; color: var(--muted); margin-bottom: 8px; }
.by-day table { max-width: 720px; }
.by-day .bar-cell { width: 40%; }
.by-day .day-bar { display: block; height: 10px; min-height: 0; background: linear-gradient(90deg, var(--red), var(--gold, #ffc35c)); }
.small-head { font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; }

/* promotions (2026-12-01) */
.promo-note { display: inline-block; margin: 4px 0 6px; padding: 3px 8px; font-size: 12px; font-weight: 700; color: #1a1206; background: linear-gradient(90deg, #ffc35c, #ff8a3d); }
.promo-price { color: #ffc35c; font-weight: 700; white-space: nowrap; }
.promos .promo-state { font-weight: 700; }
.promos .promo-live .promo-state { color: #5fd16a; }
.promos .promo-soon .promo-state { color: #ffc35c; }
.promos .promo-over td, .promos .promo-off td { opacity: .6; }
.promos .row-actions form { display: inline; margin-left: 10px; }
.promo-form { max-width: 900px; }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 16px; }
.promo-form input[type=datetime-local] { color-scheme: dark; }
.promo-scope { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 6px 0 12px; }
.promo-form .pill { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.scope-box { border: 1px solid var(--line2); padding: 10px 12px; margin-bottom: 12px; max-height: 460px; overflow: auto; }
.scope-box .checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 16px; }
.scope-box .checks label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; }
.scope-box fieldset { border: 0; border-top: 1px solid var(--line2); padding: 8px 0; margin: 0; }
.scope-box legend { font-weight: 700; padding: 0 6px 0 0; }
.scope-box #promo-filter { max-width: 320px; margin-bottom: 6px; }
#products .row-actions .promo-link { margin-left: 10px; color: #ffc35c; }

/* several roulettes (2026-12-01) */
.wheels { margin-top: 16px; }
.wheel-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.wheel-card:hover { border-color: var(--red2); }
.wheel-card .pic { aspect-ratio: 1; }
.wheel-card .pic img { width: 100%; height: 100%; object-fit: contain; }
.wheel-card .body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.wheel-card .body .btn { margin-top: auto; align-self: flex-start; }
.wheel-card.soon { opacity: .7; }
.back-wheels { margin: 0 0 10px; }
.wheels-edit td { vertical-align: top; }
.wheel-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.wheel-row input[type=text] { width: auto; flex: 1 1 180px; }

/* categories order (2026-12-01) */
.cats-edit td { vertical-align: middle; }
.cats-edit .move form { display: flex; align-items: center; gap: 6px; margin: 0; }
.cats-edit .place { min-width: 22px; font-weight: 700; color: var(--muted); }
.cats-edit .arrow { width: 34px; height: 34px; font-size: 18px; line-height: 1; cursor: pointer; background: var(--panel); color: inherit; border: 1px solid var(--line2); }
.cats-edit .arrow:hover:not(:disabled) { border-color: var(--red2); color: #ffc35c; }
.cats-edit .arrow:disabled { opacity: .3; cursor: default; }
.cat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.cat-row input[type=text] { width: auto; flex: 1 1 220px; max-width: 360px; }

/* colour variants (2026-12-01) */
.colours { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; margin: 0 0 8px; }
.colour { margin: 0; line-height: 1.2; text-transform: none; letter-spacing: 0; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 4px; border: 1px solid var(--line2); background: rgba(0,0,0,.25); font-size: 12px; cursor: pointer; }
.colour input { position: absolute; opacity: 0; pointer-events: none; }
.colour i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: conic-gradient(#b3312c, #e0b52b, #3d6b35, #2f5fa8, #b3312c); flex: none; }
.colour:has(input:checked) { border-color: #ffc35c; box-shadow: 0 0 0 1px #ffc35c inset; }
.colour:has(input:focus-visible) { outline: 2px solid #ffc35c; }
.buy-qty.with-colours { flex-wrap: wrap; }
.color-hints { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 4px; }
.chip-add { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; background: var(--panel); color: inherit; border: 1px solid var(--line2); cursor: pointer; font: inherit; font-size: 12px; }
.chip-add:hover { border-color: #ffc35c; }
.chip-add i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.chip-add small { color: var(--muted); }
.chip-add.all { color: #ffc35c; }
