:root {
  --bg: #0d100c;
  --panel: #151a13;
  --panel-2: #1c2318;
  --line: #2f3a27;
  --text: #e6e3cc;
  --muted: #a6ad92;
  --accent: #b9cf5b;
  --rust: #c8862f;
  --warn: #e0b54a;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(13,16,12,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 58px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .04em; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-left: auto; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }

/* hero */
.hero { position: relative; min-height: 440px; display: flex; align-items: flex-end; background: #000 url("img/hero.jpg") center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(13,16,12,.95) 92%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 36px; }
.hero h1 { margin: 0; font-size: clamp(32px, 6vw, 58px); line-height: 1.05; letter-spacing: .03em; }
.hero p { max-width: 640px; color: #d3d6bd; font-size: 18px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 8px; background: var(--accent); color: #141a0c; font-weight: 700; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

section { padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 64px; }
.item { scroll-margin-top: 72px; }
h2 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 8px; }
.lead { color: var(--muted); max-width: 760px; margin: 0 0 24px; }

/* features + shots */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.shots { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 18px; }
.shots img { border-radius: var(--radius); border: 1px solid var(--line); }

/* shop */
.shop { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.item { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item header { display: flex; gap: 14px; align-items: center; padding: 16px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.item header img { width: 64px; height: 64px; object-fit: contain; image-rendering: auto; }
.item h3 { margin: 0; font-size: 19px; }
.item .price { margin-left: auto; font-size: 22px; font-weight: 800; color: var(--warn); white-space: nowrap; }
.item .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.item ul { margin: 0; padding-left: 18px; }
.item li { margin: 2px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.tag.one { border-color: #5b6b34; color: var(--accent); }
.note { font-size: 14px; color: var(--muted); }
.ingame { font-size: 13px; color: var(--muted); }

/* steps */
.steps { counter-reset: s; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); padding: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 16px 56px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #141a0c; font-weight: 800; display: grid; place-items: center; }

/* legal text */
.doc { max-width: 860px; }
.doc h1 { font-size: clamp(26px, 5vw, 36px); }
.doc h2 { font-size: 22px; margin-top: 28px; }
.doc p, .doc li { color: #d8d8c4; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; width: 38%; }

/* fields the owner must fill in */
.fill { background: rgba(224,181,74,.14); color: var(--warn); border: 1px dashed var(--warn); border-radius: 4px; padding: 0 5px; font-weight: 600; }
.draft { background: rgba(224,181,74,.1); border: 1px solid var(--warn); color: var(--warn); border-radius: var(--radius); padding: 12px 14px; margin: 18px 0; font-size: 14px; }

footer { padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; gap: 10px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer a { color: var(--muted); }

@media (max-width: 560px) {
  .top .wrap { flex-wrap: nowrap; }
  .brand span { display: none; }
  .nav { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .hero { min-height: 380px; }
  .hero p { font-size: 16px; }
  .item header img { width: 52px; height: 52px; }
  .item .price { font-size: 19px; }
  th { width: 45%; }
}
