/* bricktanks.ru — the game's site: landing, shop prices and the legal pages. */
:root {
  --bg: #0f1216;
  --panel: #171b21;
  --panel-2: #1d232b;
  --line: #2a313b;
  --text: #e9edf2;
  --dim: #9aa3ad;
  --gold: #f2a33a;
  --gold-2: #f7c46a;
  --green: #7ee081;
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 'Manrope', -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
h1, h2, h3, .logo { font-family: 'Unbounded', 'Manrope', sans-serif; letter-spacing: 0.01em; line-height: 1.2; }
h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 8px; }
.dim { color: var(--dim); }
section { padding: 72px 0; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(15, 18, 22, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-weight: 800; font-size: 20px; color: var(--gold); background: linear-gradient(90deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--dim); }
.nav a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 15px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold)); color: #1a1206; border: 0; cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.07); }
.btn.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.btn.small { padding: 8px 16px; font-size: 14px; }

/* Hero */
.hero { position: relative; padding: 0; min-height: min(78vh, 720px); display: flex; align-items: flex-end; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('img/hero.webp') 50% 70% / cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 18, 22, 0.15) 0%, rgba(15, 18, 22, 0.55) 55%, var(--bg) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 140px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(36px, 7vw, 72px); margin: 0 0 12px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: clamp(16px, 2vw, 19px); max-width: 640px; margin: 0 0 28px; color: #d3d9e0; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.tag { display: inline-block; font-size: 13px; color: var(--green); border: 1px solid rgba(126, 224, 129, 0.35); padding: 4px 10px; border-radius: 99px; margin-bottom: 16px; }

/* Features */
.grid { display: grid; gap: 16px; }
.grid.f3 { grid-template-columns: repeat(3, 1fr); }
.grid.f2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--dim); font-size: 15px; }
.card .ico { font-size: 26px; margin-bottom: 10px; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.shots a { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.shots img { aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.25s; }
.shots a:hover img { transform: scale(1.03); }

/* Screenshot gallery */
.gallery { margin-top: 28px; }
.g-main { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.g-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.g-prev, .g-next { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(10, 12, 16, 0.6); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); }
.g-prev { left: 14px; }
.g-next { right: 14px; }
.g-prev:hover, .g-next:hover { background: rgba(242, 163, 58, 0.85); color: #1a1206; }
.g-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); color: #fff; font-weight: 600; font-size: 15px; pointer-events: none; }
.g-strip { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: thin; }
.g-strip button { flex: 0 0 auto; width: 132px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: #000; opacity: 0.6; transition: opacity 0.2s; }
.g-strip button img { width: 100%; height: 100%; object-fit: cover; }
.g-strip button.on, .g-strip button:hover { opacity: 1; border-color: var(--gold); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.92); display: none; align-items: center; justify-content: center; }
.lightbox.on { display: flex; }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; border-radius: 50%; width: 52px; height: 52px; font-size: 30px; cursor: pointer; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #e9edf2; font-weight: 600; padding: 0 70px; }
@media (max-width: 720px) {
  .g-prev, .g-next { width: 38px; height: 38px; font-size: 22px; }
  .g-strip button { width: 96px; }
}

/* Shop */
.shop { background: linear-gradient(180deg, var(--bg), #12161b); }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 24px 0; }
.price { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.price.best { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(242, 163, 58, 0.35), 0 10px 30px rgba(242, 163, 58, 0.08); }
.price .what { font-weight: 700; font-size: 17px; }
.price .rub { font-family: 'Unbounded', sans-serif; font-size: 26px; color: var(--gold-2); margin-top: auto; }
.price .note { color: var(--dim); font-size: 13px; }
.steps { counter-reset: s; display: grid; gap: 10px; padding: 0; list-style: none; }
.steps li { counter-increment: s; padding-left: 40px; position: relative; color: #d3d9e0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--gold-2); }

/* Download */
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 24px; }
.dl .card { display: flex; flex-direction: column; gap: 12px; }
.dl .card .btn { align-self: flex-start; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--dim); }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
footer h4 { color: var(--text); margin: 0 0 8px; font-size: 14px; }
footer p { margin: 0 0 4px; }

/* Legal pages */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 860px; }
.doc h1 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 8px; }
.doc h2 { font-size: 20px; margin: 32px 0 10px; }
.doc p, .doc li { color: #d3d9e0; }
.doc ol, .doc ul { padding-left: 22px; }
.doc .meta { color: var(--dim); margin-bottom: 24px; }
.req { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.req p { margin: 2px 0; }

/* Updates page */
.release { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-top: 18px; }
.release.latest { border-color: rgba(242, 163, 58, 0.45); }
.release-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.release-v { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 22px; color: var(--gold-2); }
.release-h .tag { margin: 0; }
.release-d { color: var(--dim); font-size: 14px; margin-left: auto; }
.release h2 { font-size: 19px; margin: 10px 0 8px; }
.release ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* Features and roadmap page */
.page-hero { padding: 72px 0 24px; background: radial-gradient(900px 360px at 20% 0%, rgba(242, 163, 58, 0.14), transparent 70%); }
.page-hero h1 { font-size: clamp(30px, 5vw, 52px); margin: 0 0 14px; }
.page-hero h1 span, .finale h2 span { color: var(--gold); }
.page-hero p { max-width: 680px; color: #d3d9e0; font-size: 18px; margin: 0; }
.banner-sec { padding: 24px 0; }
.big-banner { border-radius: 18px; padding: 40px 36px; background: linear-gradient(120deg, #2a1209, #3a1a0b 45%, #1a1310); border: 1px solid rgba(242, 163, 58, 0.45); box-shadow: 0 20px 60px rgba(242, 100, 40, 0.12); }
.big-banner-k { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: clamp(34px, 6vw, 64px); line-height: 1; letter-spacing: 0.02em; color: #ff7b4a; text-transform: uppercase; margin-bottom: 16px; }
.big-banner p { margin: 0; max-width: 760px; font-size: 18px; color: #f0dccf; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.split img { border-radius: 14px; border: 1px solid var(--line); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: #d3d9e0; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 700; }
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.road-col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.road-h { display: inline-block; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 12px; border-radius: 99px; margin-bottom: 14px; }
.road-h.now { background: rgba(126, 224, 129, 0.14); color: var(--green); }
.road-h.next { background: rgba(242, 163, 58, 0.16); color: var(--gold-2); }
.road-h.later { background: rgba(124, 160, 255, 0.14); color: #9db8ff; }
.road ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.road li { color: var(--dim); font-size: 15px; padding-left: 16px; position: relative; }
.road li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.road li b { color: var(--text); font-weight: 600; }
.finale { text-align: center; padding: 88px 0; background: radial-gradient(700px 300px at 50% 100%, rgba(242, 163, 58, 0.16), transparent 70%); }
.finale h2 { font-size: clamp(28px, 4.6vw, 48px); margin-bottom: 28px; }
.finale .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.noart-card { border-color: rgba(255, 123, 74, 0.5); background: linear-gradient(160deg, rgba(255, 123, 74, 0.12), var(--panel)); }
.noart-card h3 { color: #ff7b4a; }

@media (max-width: 900px) {
  .split, .road { grid-template-columns: 1fr; }
  .grid.f3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid.f3, .grid.f2, .shots { grid-template-columns: 1fr; }
  .nav { display: none; }
  .top .wrap { gap: 12px; }
  .top .btn { margin-left: auto; }
  section { padding: 52px 0; }
}

/* Account page (account.html) */
.small { font-size: 13px; }
[hidden] { display: none !important; }
/* Honeypot: people never see it, bots fill it in. */
.acc-card .acc-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.acc-card section { padding: 0; }
.acc-main { padding: 56px 0 80px; background: radial-gradient(800px 420px at 85% 0%, rgba(242, 163, 58, 0.1), transparent 70%); }
.acc-layout { display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: 48px; align-items: start; }
.acc-side h1 { font-size: clamp(30px, 4.6vw, 48px); margin: 0 0 14px; }
.acc-side h1 span { color: var(--gold); }
.acc-perks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.acc-perks li { position: relative; padding-left: 32px; color: #d3d9e0; }
.acc-perks li::before { content: '✓'; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #10261a; background: var(--green); }
.acc-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.acc-card h2 { font-size: 22px; margin: 0 0 6px; }
.acc-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin: 0 0 8px; }
.acc-card form { display: grid; gap: 14px; margin-top: 4px; }
.acc-card label { display: grid; gap: 6px; font-size: 14px; color: var(--dim); }
.acc-card label small { font-size: 12px; }
.acc-card input {
  font: inherit; color: var(--text); background: #0f1216; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; outline: none; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.acc-card input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 163, 58, 0.18); }
.acc-card .acc-code { font-family: 'Unbounded', sans-serif; font-size: 26px; letter-spacing: 0.45em; text-align: center; color: var(--gold-2); }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: default; }
.acc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #0f1216; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; }
.acc-tabs button { font: inherit; font-weight: 700; color: var(--dim); background: none; border: 0; border-radius: 9px; padding: 9px; cursor: pointer; }
.acc-tabs button.on { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.acc-oauth { display: grid; gap: 8px; }
.acc-provider { gap: 10px; }
.acc-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; color: var(--dim); font-size: 13px; }
.acc-or::before, .acc-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.acc-mark { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 7px; font-size: 11px; font-weight: 800; color: #fff; background: #555; vertical-align: middle; }
.acc-mark-vk { background: #2a7cf6; }
.acc-mark-yandex { background: #fc3f1d; }
.acc-mark-google { background: #fff; color: #3c4043; }
.acc-mark-apple { background: #000; border: 1px solid #444; }
.acc-mark-apple::before { content: ''; width: 9px; height: 11px; border-radius: 50% 50% 45% 45%; background: #fff; }
.acc-error { margin: 0; min-height: 0; color: #ff8c8c; font-size: 14px; }
.acc-error:empty { display: none; }
.acc-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin: 4px 0 0; font-size: 14px; }
.acc-center { text-align: center; margin: 10px 0 18px; }
.acc-who { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.acc-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 20px; color: #1a1206; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }
.acc-name { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 20px; }
.acc-play { font-size: 17px; padding: 15px 24px; }
.acc-block { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.acc-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 7px 0; font-size: 14px; }
.ok { color: var(--green); }
@media (max-width: 860px) {
  .acc-layout { grid-template-columns: 1fr; gap: 28px; }
  .acc-card { order: -1; }
  .acc-side h1 { font-size: 28px; }
  .acc-main { padding: 32px 0 56px; }
  .acc-card { padding: 20px 16px; }
}
