/* tankbreach.ru — the game's site: landing, the war map, ratings, tournaments, the shop, the cabinet and the legal pages.
   Look: gunmetal and fire. Headings in Russo One, text in Manrope; the accent is the muzzle-flash orange. */
:root {
  --bg: #07090c;
  --bg-2: #0b0f14;
  --panel: #10151c;
  --panel-2: #161d26;
  --panel-3: #1c2531;
  --line: #222b37;
  --line-2: #2f3a49;
  --text: #eef2f6;
  --soft: #c9d2dd;
  --dim: #8e9aab;
  --fire: #ff5a1f;
  --fire-2: #ff9a2e;
  --amber: #ffc94d;
  --gold: #ff9a2e;
  --gold-2: #ffc24d;
  --prem: #ffd25a;
  --green: #5ee88a;
  --red: #ff4b4b;
  --blue: #4aa8ff;
  --steel: #8193a8;
  --grad-fire: linear-gradient(180deg, #ffd25a 0%, #ff8a2a 55%, #ff4a17 100%);
  --grad-fire-h: linear-gradient(90deg, #ff4a17, #ff8a2a 45%, #ffc24d);
  --grad-steel: linear-gradient(180deg, #ffffff, #aab6c4);
  --radius: 14px;
  --wrap: 1200px;
  --head: 'Russo One', 'Manrope', sans-serif;
  --cut: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  --cut-s: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  color-scheme: dark;
}

* { 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;
  overflow-x: hidden;
}
/* Film grain over the whole page: makes the flat dark panels feel like metal. */
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 999; pointer-events: none; opacity: 0.05;
  background-image: 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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
h1, h2, h3, .logo, .h-font { font-family: var(--head); font-weight: 400; letter-spacing: 0.01em; line-height: 1.15; }
h2 { font-size: clamp(28px, 4vw, 46px); margin: 0 0 14px; text-transform: uppercase; }
h3 { font-size: 19px; margin: 0 0 8px; }
.dim { color: var(--dim); }
.soft { color: var(--soft); }
.small { font-size: 13px; }
.fire-t { background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
section { padding: 96px 0; position: relative; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 80px; }
::selection { background: rgba(255, 106, 31, 0.45); }

/* Section heading: a kicker line with a number, the title, a lead. */
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1 'Manrope', sans-serif; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fire-2); margin-bottom: 16px; }
.kicker::before { content: ''; width: 28px; height: 2px; background: var(--grad-fire-h); }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--soft); max-width: 720px; margin: 0; }
.sec-h { margin-bottom: 44px; }
.sec-h.center { text-align: center; }
.sec-h.center .lead { margin: 0 auto; }
.sec-h.center .kicker::after { content: ''; width: 28px; height: 2px; background: var(--grad-fire-h); transform: scaleX(-1); }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(7, 9, 12, 0.78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 138, 42, 0.55), transparent); opacity: 0.6; }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 68px; max-width: 1320px; }
.logo { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo img { display: block; flex: 0 0 auto; }
.logo-em { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(255, 106, 31, 0.35)); transition: transform 0.3s; }
.logo-wm { width: auto; height: 22px; }
.logo:hover { text-decoration: none; }
.logo:hover .logo-em { transform: rotate(-6deg) scale(1.06); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; font-size: 14px; }
.nav > a, .dd > button { color: var(--soft); padding: 8px 12px; border-radius: 8px; font: 600 14px/1.2 'Manrope', sans-serif; background: none; border: 0; cursor: pointer; position: relative; }
.nav > a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--grad-fire-h); transform: scaleX(0); transition: transform 0.25s; }
.nav > a:hover::after, .nav > a.on::after { transform: scaleX(1); }
.nav > a:hover, .dd > button:hover, .dd:focus-within > button, .nav > a.on { color: #fff; text-decoration: none; }
.nav .hot { color: var(--amber); }
.dd { position: relative; }
.dd > button::after { content: ''; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.dd-m { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; padding: 8px; margin-top: 6px; flex-direction: column; gap: 2px;
  background: rgba(16, 21, 28, 0.97); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6); z-index: 50; }
.dd-m::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.dd:hover .dd-m, .dd:focus-within .dd-m { display: flex; animation: drop 0.18s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.dd-m a { color: var(--text); padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.dd-m a:hover { background: var(--panel-3); text-decoration: none; color: var(--gold-2); }
.top-acc { display: inline-flex; align-items: center; gap: 8px; color: var(--soft); font-weight: 700; font-size: 14px; padding: 6px 10px 6px 6px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); white-space: nowrap; }
.top-acc:hover { text-decoration: none; border-color: var(--fire-2); color: #fff; }
.top-acc .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 400 12px var(--head); color: #1a0d04; background: var(--grad-fire); }
.top-acc .g { display: inline-flex; align-items: center; gap: 4px; color: var(--prem); }
.top-acc .g img { width: 16px; height: 16px; }
.top .btn.play { margin-left: 0; }
.top .btn-dl { padding: 9px 12px; }
.top .btn-dl::before { content: ''; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v10l3.5-3.5 1.4 1.4L12 16.8l-5.9-5.9 1.4-1.4L11 13zM4 19h16v2H4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v10l3.5-3.5 1.4 1.4L12 16.8l-5.9-5.9 1.4-1.4L11 13zM4 19h16v2H4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.burger { display: none; position: relative; }
.burger summary { list-style: none; cursor: pointer; font-size: 22px; line-height: 1; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line-2); }
.burger summary::-webkit-details-marker { display: none; }
.burger-m { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, 88vw); max-height: 80vh; overflow: auto; display: flex; flex-direction: column; padding: 10px;
  background: rgba(16, 21, 28, 0.98); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6); z-index: 50; }
.burger-m b { color: var(--fire-2); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin: 12px 8px 4px; }
.burger-m a { color: var(--text); padding: 9px 8px; border-radius: 8px; }
.burger-m a:hover { background: var(--panel-3); text-decoration: none; }
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .top-acc { margin-left: auto; }
  .top-acc .nm { display: none; }
}
@media (max-width: 560px) {
  .top .btn-dl { display: none; }
  .top .wrap { gap: 10px; }
  .logo-em { width: 34px; height: 34px; }
  .logo-wm { height: 18px; }
  .top .btn.small { padding: 8px 12px; }
}
@media (max-width: 400px) { .logo .logo-wm { display: none; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  --c1: #ffd25a; --c2: #ff7a22; --c3: #ff4a17;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden;
  padding: 14px 28px; font: 400 15px/1.2 var(--head); letter-spacing: 0.06em; text-transform: uppercase; color: #1d0c02; cursor: pointer; border: 0;
  background: linear-gradient(180deg, var(--c1), var(--c2) 60%, var(--c3)); clip-path: var(--cut-s);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
  transition: filter 0.2s, transform 0.2s;
}
.btn::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: skewX(-20deg); transition: left 0.55s; }
.btn:hover { text-decoration: none; filter: brightness(1.08) drop-shadow(0 0 18px rgba(255, 106, 31, 0.5)); }
.btn:hover::after { left: 130%; }
.btn:active { transform: translateY(1px); }
.btn.ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: rgba(255, 138, 42, 0.1); box-shadow: inset 0 0 0 1px var(--fire-2); filter: none; }
.btn.green { --c1: #9dffbf; --c2: #3ad374; --c3: #1fa457; color: #04210f; }
.btn.prem { --c1: #fff1a8; --c2: #ffcd45; --c3: #e89a14; color: #2a1800; }
.btn.small { padding: 9px 16px; font-size: 13px; }
.btn.big { padding: 18px 36px; font-size: 18px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: default; filter: none; }
.top .btn-dl { --c1: #9dffbf; --c2: #3ad374; --c3: #1fa457; color: #04210f; }
.play-cta { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; }
.play-cta span { font-size: 13px; color: var(--green); font-weight: 600; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); border: 1px solid rgba(94, 232, 138, 0.35); background: rgba(94, 232, 138, 0.06); padding: 6px 12px; border-radius: 99px; margin-bottom: 18px; }
.tag.fire { color: var(--amber); border-color: rgba(255, 154, 46, 0.45); background: rgba(255, 106, 31, 0.08); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(94, 232, 138, 0.6); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(94, 232, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 232, 138, 0); } }

/* ---------------------------------------------------------------- hero */
/* The text in the middle of the screen, not on its bottom edge: the buttons stay in view on a laptop. */
.hero { position: relative; padding: 0; min-height: min(100vh, 980px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: #000 url('img/hero.webp?v=20261022') 70% 40% / cover no-repeat; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 9, 12, 0.88) 0%, rgba(7, 9, 12, 0.55) 38%, rgba(7, 9, 12, 0) 70%),
    linear-gradient(180deg, rgba(7, 9, 12, 0.55) 0%, rgba(7, 9, 12, 0) 22%, rgba(7, 9, 12, 0) 60%, var(--bg) 100%); }
.hero canvas.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-top: 110px; padding-bottom: 110px; }
.hero h1 { font-size: clamp(44px, 8.4vw, 112px); line-height: 0.95; margin: 0 0 22px; text-transform: uppercase; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6); }
.hero h1 .l1 { display: block; background: var(--grad-steel); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 .l2 { display: block; background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 30px rgba(255, 90, 31, 0.35)); }
.hero p { font-size: clamp(17px, 1.8vw, 21px); max-width: 620px; margin: 0 0 34px; color: #dbe2ea; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.hero-sound { position: absolute; right: 20px; bottom: 24px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; font: 700 12px 'Manrope'; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 99px; padding: 9px 14px; cursor: pointer; backdrop-filter: blur(6px); }
.hero-sound:hover { border-color: var(--fire-2); }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 14px; }
.scroll-hint::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--fire-2); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* Live numbers under the hero. */
.stats-bar { position: relative; z-index: 2; margin-top: -1px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(16, 21, 28, 0.9), rgba(11, 15, 20, 0.9)); }
.stats-bar .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 24px 12px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 400 clamp(26px, 3vw, 38px)/1.1 var(--head); background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.stat.live b { background: linear-gradient(180deg, #b6ffd0, #3ad374); -webkit-background-clip: text; background-clip: text; }
@media (max-width: 760px) {
  .stats-bar .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:last-child { grid-column: 1 / -1; }
}

/* Marquee of short facts. */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: #0a0d11; padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-t { display: flex; gap: 48px; width: max-content; animation: tick 60s linear infinite; font: 400 15px var(--head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.ticker-t span { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.ticker-t span::after { content: ''; width: 8px; height: 8px; background: var(--fire); transform: rotate(45deg); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- cards, grids */
.grid { display: grid; gap: 18px; }
.grid.f4 { grid-template-columns: repeat(4, 1fr); }
.grid.f3 { grid-template-columns: repeat(3, 1fr); }
.grid.f2 { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
.card p { margin: 0; color: var(--dim); font-size: 15px; }
.card:hover { border-color: rgba(255, 138, 42, 0.5); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 138, 42, 0.15); }
.card .ico { font-size: 26px; margin-bottom: 12px; }
.noart-card { border-color: rgba(255, 90, 31, 0.5); background: linear-gradient(160deg, rgba(255, 90, 31, 0.14), var(--panel)); }
.noart-card h3 { color: #ff7b4a; }

/* Icon in a hex badge. */
.hex { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 16px; color: var(--fire-2);
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
  background: linear-gradient(160deg, rgba(255, 154, 46, 0.22), rgba(255, 74, 23, 0.06)); position: relative; }
.hex svg { width: 28px; height: 28px; }
.card:hover .hex { color: var(--amber); background: linear-gradient(160deg, rgba(255, 154, 46, 0.4), rgba(255, 74, 23, 0.12)); }

/* Big feature rows: picture or video on one side, text on the other. */
.feat { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; margin: 0 0 110px; }
.feat:last-child { margin-bottom: 0; }
.feat.rev { grid-template-columns: 1fr 1.25fr; }
.feat.rev .feat-media { order: 2; }
.feat-media { position: relative; border-radius: 6px; overflow: hidden; clip-path: var(--cut); background: #000; aspect-ratio: 16 / 9; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.feat-media img, .feat-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease-out; }
.feat:hover .feat-media img, .feat:hover .feat-media video { transform: scale(1.04); }
.feat-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); background: linear-gradient(180deg, transparent 65%, rgba(0, 0, 0, 0.35)); }
.feat-media .badge { position: absolute; left: 16px; bottom: 14px; z-index: 1; font: 700 11px 'Manrope'; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, 0.55); padding: 6px 10px; border-left: 3px solid var(--fire); }
.feat-num { font: 400 88px/0.8 var(--head); color: transparent; -webkit-text-stroke: 1px rgba(255, 154, 46, 0.35); margin-bottom: 10px; }
.feat h3 { font-size: clamp(24px, 2.8vw, 36px); text-transform: uppercase; margin-bottom: 14px; }
.feat p { color: var(--soft); font-size: 17px; margin: 0 0 18px; }
.feat .ticks { margin-top: 0; }
@media (max-width: 900px) {
  .feat, .feat.rev { grid-template-columns: 1fr; gap: 26px; margin-bottom: 72px; }
  .feat.rev .feat-media { order: 0; }
  .feat-num { font-size: 60px; }
}

/* Small feature tiles with icons. */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { position: relative; padding: 24px 22px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.25s, border-color 0.25s; }
.tile::before { content: ''; position: absolute; inset: 0; background: radial-gradient(260px 160px at var(--mx, 50%) var(--my, 0%), rgba(255, 138, 42, 0.16), transparent 70%); opacity: 0; transition: opacity 0.3s; }
.tile:hover { transform: translateY(-4px); border-color: rgba(255, 138, 42, 0.45); }
.tile:hover::before { opacity: 1; }
.tile h4 { position: relative; font: 400 17px/1.25 var(--head); margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.02em; }
.tile p { position: relative; margin: 0; color: var(--dim); font-size: 14.5px; }
.tile .hex { position: relative; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* Video showcase. */
.reel { position: relative; clip-path: var(--cut); overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line); }
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; }
.reel-play { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55)); border: 0; cursor: pointer; color: #fff; }
.reel-play i { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-fire); box-shadow: 0 0 0 12px rgba(255, 106, 31, 0.18), 0 0 60px rgba(255, 106, 31, 0.6); transition: transform 0.25s; }
.reel-play i::after { content: ''; margin-left: 8px; border: 18px solid transparent; border-left: 28px solid #1d0c02; border-right: 0; }
.reel-play:hover i { transform: scale(1.08); }
.reel-play span { position: absolute; bottom: 24px; font: 400 15px var(--head); letter-spacing: 0.12em; text-transform: uppercase; }

/* Nations. */
.nations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.nation { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; isolation: isolate; transition: transform 0.3s, border-color 0.3s; }
.nation img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.75; transition: transform 0.6s, opacity 0.3s; }
.nation::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(7, 9, 12, 0.95)); }
.nation:hover { transform: translateY(-6px); border-color: rgba(255, 138, 42, 0.55); }
.nation:hover img { transform: scale(1.06); opacity: 1; }
.nation h4 { font: 400 24px var(--head); margin: 0 0 4px; text-transform: uppercase; }
.nation p { margin: 0; font-size: 14px; color: var(--soft); }
.nation .cnt { position: absolute; top: 16px; right: 16px; font: 700 12px 'Manrope'; letter-spacing: 0.1em; color: var(--amber); background: rgba(0, 0, 0, 0.5); padding: 5px 9px; border-radius: 99px; }
@media (max-width: 1000px) { .nations { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .nations { grid-template-columns: 1fr; } .nation { min-height: 220px; } }

/* "No artillery" and other banners. */
.banner-sec { padding: 24px 0; }
.big-banner { position: relative; overflow: hidden; clip-path: var(--cut); padding: 54px 48px; background: linear-gradient(120deg, #2a0f06, #3d1708 45%, #140d0a); border: 1px solid rgba(255, 106, 31, 0.45); box-shadow: 0 20px 60px rgba(255, 90, 31, 0.12); }
.big-banner::before { content: ''; position: absolute; right: -60px; top: -60px; width: 340px; height: 340px; background: radial-gradient(circle, rgba(255, 106, 31, 0.35), transparent 65%); }
.big-banner-k { position: relative; font: 400 clamp(38px, 7vw, 84px)/0.95 var(--head); letter-spacing: 0.02em; color: #ff7b4a; text-transform: uppercase; margin-bottom: 18px; }
.big-banner p { position: relative; margin: 0; max-width: 760px; font-size: 18px; color: #f0dccf; }

/* ---------------------------------------------------------------- screenshot gallery */
.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); }
.gallery { margin-top: 28px; }
.g-main { position: relative; overflow: hidden; clip-path: var(--cut); background: #000; aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px var(--line); }
.g-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; animation: gfade 0.5s ease-out; }
@keyframes gfade { from { opacity: 0.3; transform: scale(1.02); } }
.g-prev, .g-next { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(7, 9, 12, 0.6); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); }
.g-prev { left: 16px; }
.g-next { right: 16px; }
.g-prev:hover, .g-next:hover { background: var(--fire); border-color: var(--fire); color: #1a0d04; }
.g-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 24px 18px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); color: #fff; font-weight: 700; font-size: 16px; 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: 140px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: #000; opacity: 0.5; transition: opacity 0.2s, border-color 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(--fire-2); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.94); display: none; align-items: center; justify-content: center; }
.lightbox.on { display: flex; }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 6px; }
.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: 100px; }
}

/* ---------------------------------------------------------------- shop (landing block and /shop) */
.shop { background: radial-gradient(900px 400px at 50% 0%, rgba(255, 196, 77, 0.08), transparent 70%), linear-gradient(180deg, var(--bg), #0c0f13); }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 26px 0; }
.price { position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; overflow: hidden; }
.price:hover { transform: translateY(-5px); border-color: rgba(255, 196, 77, 0.6); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 196, 77, 0.08); }
.price.best { border-color: rgba(255, 196, 77, 0.7); box-shadow: 0 0 0 1px rgba(255, 196, 77, 0.3), 0 16px 50px rgba(255, 170, 40, 0.12); background: linear-gradient(180deg, #2a2112, var(--panel) 70%); }
.price .pic { width: 120px; height: 120px; margin: -4px auto 4px; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.6)); transition: transform 0.4s; }
.price:hover .pic { transform: scale(1.08) rotate(-3deg); }
.price .what { font: 400 18px/1.25 var(--head); text-transform: uppercase; }
.price .rub { font: 400 30px var(--head); color: var(--prem); margin-top: auto; }
.price .rub small { font-size: 15px; color: var(--dim); }
.price .rub s { font-size: 18px; color: var(--dim); margin-right: 4px; }
.price .note { color: var(--dim); font-size: 13.5px; }
.price .btn { margin-top: 10px; }
.ribbon { position: absolute; top: 14px; right: -34px; transform: rotate(45deg); width: 140px; text-align: center; font: 700 11px 'Manrope'; letter-spacing: 0.1em; text-transform: uppercase; color: #2a1800; background: linear-gradient(90deg, #ffe58a, #ffb52e); padding: 4px 0; }
.steps { counter-reset: s; display: grid; gap: 12px; padding: 0; list-style: none; }
.steps li { counter-increment: s; padding-left: 44px; position: relative; color: var(--soft); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); background: var(--grad-fire); display: grid; place-items: center; font: 400 14px var(--head); color: #1d0c02; }

/* Premium tank cards. */
.ptanks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ptank { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(255, 196, 77, 0.28); background: radial-gradient(400px 200px at 50% 30%, rgba(255, 196, 77, 0.1), transparent 70%), linear-gradient(180deg, #19160f, var(--panel)); padding: 18px; display: flex; flex-direction: column; transition: transform 0.25s, border-color 0.25s; }
.ptank:hover { transform: translateY(-5px); border-color: rgba(255, 196, 77, 0.7); }
.ptank .pic { aspect-ratio: 16 / 10; margin: -6px -6px 8px; display: grid; place-items: center; }
.ptank .pic img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.6)); transition: transform 0.5s; }
.ptank:hover .pic img { transform: scale(1.06) translateY(-4px); }
.ptank .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.ptank h4 { font: 800 22px/1.2 'Manrope', sans-serif; margin: 6px 0 10px; color: var(--prem); }
.ptank .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.gold-amt { display: inline-flex; align-items: center; gap: 6px; font: 400 20px var(--head); color: var(--prem); }
.gold-amt img { width: 22px; height: 22px; }
.cls { display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 6px; border-radius: 4px; font: 800 11px 'Manrope'; color: #0b0f14; background: var(--steel); }
.cls-LT { background: #66d17a; } .cls-MT { background: #ffc24d; } .cls-HT { background: #ff7a4a; } .cls-TD { background: #6fb6ff; }
.tier { font: 400 13px var(--head); color: var(--amber); }
.flag { width: 22px; height: 14px; border-radius: 2px; display: inline-block; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15); }
.flag-union { background: #c8102e; }
.flag-stahl { background: linear-gradient(180deg, #5b5f63 0 33%, #9aa0a4 33% 66%, #2e3236 66%); }
.flag-liberty { background: linear-gradient(180deg, #3c5ba5 0 45%, #fff 45% 55%, #b22234 55%); }
.flag-albion { background: radial-gradient(circle, #c8102e 0 22%, transparent 23%), linear-gradient(90deg, transparent 42%, #fff 42% 58%, transparent 58%), linear-gradient(180deg, transparent 38%, #fff 38% 62%, transparent 62%), #012169; }

/* ---------------------------------------------------------------- download */
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 26px; }
.dl .card { display: flex; flex-direction: column; gap: 12px; }
.dl .card .btn { align-self: flex-start; }
.dl .card .dl-ver { margin-top: auto; font-size: 14px; color: var(--dim); }
.dl .card .dl-ver span { color: var(--text); font-weight: 600; }
.dl .os { width: 44px; height: 44px; color: var(--fire-2); }
/* The download page (/download): the visitor's system comes first, marked (site/download.js). */
.dl-page { padding: 40px 0 24px; }
.dl-page .dl { margin-top: 0; }
.dl .card h2 { font-size: 26px; margin: 0; }
.dl .dl-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.dl .card.rec { border-color: rgba(94, 232, 138, 0.55); box-shadow: 0 0 0 1px rgba(94, 232, 138, 0.2), 0 18px 50px rgba(0, 0, 0, 0.45); }
.dl .card.rec::before { content: 'Для вашей системы'; position: absolute; top: -11px; left: 20px; padding: 3px 10px; border-radius: 99px;
  font: 700 11px/1.4 'Manrope', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: #04210f; background: var(--green); }
.dl-detect { margin: 0 0 26px; color: var(--soft); font-size: 16px; }
.dl-note { margin: 22px 0 0; color: var(--dim); max-width: 860px; }
.dl-sec { padding: 56px 0; }
.dl-sec h2 { margin-bottom: 24px; }
.dl-req ul, .dl-steps ol { margin: 12px 0 0; padding-left: 20px; color: var(--soft); display: grid; gap: 8px; font-size: 15px; }
.dl-req h3, .dl-steps h3 { margin: 0; font-size: 20px; }
.dl-steps { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .dl-steps { grid-template-columns: 1fr; } .dl-page { padding-top: 24px; } .dl-sec { padding: 40px 0; } }

/* ---------------------------------------------------------------- footer */
footer { position: relative; border-top: 1px solid var(--line); padding: 56px 0 64px; font-size: 14px; color: var(--dim); background: linear-gradient(180deg, #0a0d11, #060709); }
footer::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 138, 42, 0.6), transparent); }
footer .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
footer h4 { color: var(--text); margin: 0 0 10px; font: 400 14px var(--head); text-transform: uppercase; letter-spacing: 0.06em; }
footer p { margin: 0 0 5px; }
footer a { color: var(--soft); }
footer a:hover { color: var(--gold-2); }
footer .logo { margin-bottom: 12px; }
@media (max-width: 900px) { footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- inner pages */
.page-hero { position: relative; padding: 88px 0 36px; overflow: hidden; background: radial-gradient(900px 380px at 15% 0%, rgba(255, 106, 31, 0.16), transparent 70%); }
.page-hero.img::before { content: ''; position: absolute; inset: 0; background: var(--hero-img) center / cover no-repeat; opacity: 0.32; z-index: -1; mask-image: linear-gradient(180deg, #000 30%, transparent); }
.page-hero { isolation: isolate; }
/* Sparks over the background, out of the flow (in the flow the canvas pushed the text 600 px down). */
.page-hero canvas.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.page-hero h1 { font-size: clamp(36px, 6vw, 72px); margin: 0 0 16px; text-transform: uppercase; line-height: 1; }
.page-hero h1 span, .finale h2 span { background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-hero p { max-width: 720px; color: var(--soft); font-size: 18px; margin: 0; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: 6px; clip-path: var(--cut); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: var(--soft); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2.5px solid var(--fire-2); border-bottom: 2.5px solid var(--fire-2); transform: rotate(-45deg); }
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.road-col { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.road-h { display: inline-block; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; padding: 5px 12px; border-radius: 99px; margin-bottom: 14px; }
.road-h.now { background: rgba(94, 232, 138, 0.14); color: var(--green); }
.road-h.next { background: rgba(255, 154, 46, 0.16); color: var(--gold-2); }
.road-h.later { background: rgba(74, 168, 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; transform: rotate(45deg); background: var(--line-2); }
.road li b { color: var(--text); font-weight: 600; }
.road li.done { opacity: 0.6; }
.road li.done s { text-decoration-thickness: 1.5px; text-decoration-color: rgba(94, 232, 138, 0.7); }
.road li.done::before { content: '✓'; width: auto; height: auto; background: none; transform: none; top: 0; left: -2px; color: var(--green); font-size: 13px; font-weight: 700; }
.finale { position: relative; text-align: center; padding: 120px 0; overflow: hidden; isolation: isolate; background: radial-gradient(800px 340px at 50% 100%, rgba(255, 106, 31, 0.22), transparent 70%); }
.finale.img::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--hero-img) center / cover no-repeat; opacity: 0.25; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); }
.finale h2 { font-size: clamp(32px, 5.6vw, 68px); margin-bottom: 30px; }
.finale .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 900px) {
  .split, .road { grid-template-columns: 1fr; }
  .grid.f3, .grid.f4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid.f3, .grid.f2, .grid.f4, .shots { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .big-banner { padding: 34px 22px; }
}

/* Legal pages */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 860px; }
.doc h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 8px; text-transform: uppercase; }
.doc h2 { font-size: 21px; margin: 34px 0 10px; text-transform: none; }
.doc p, .doc li { color: var(--soft); }
.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 { position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-top: 18px; }
.release.latest { border-color: rgba(255, 138, 42, 0.55); box-shadow: 0 0 40px rgba(255, 106, 31, 0.08); }
.release-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.release-v { font: 400 24px var(--head); background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.release-h .tag { margin: 0; }
.release-d { color: var(--dim); font-size: 14px; margin-left: auto; }
.release h2 { font-size: 20px; margin: 10px 0 8px; text-transform: none; }
.release ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--soft); }

/* ---------------------------------------------------------------- tables, tabs, forms (rating, tournaments, cabinet) */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.tabs button, .filters button { font: 700 14px 'Manrope'; color: var(--dim); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 99px; padding: 9px 16px; cursor: pointer; transition: all 0.2s; }
.tabs button:hover, .filters button:hover { color: #fff; border-color: var(--line-2); }
.tabs button.on, .filters button.on { color: #1d0c02; background: var(--grad-fire); border-color: transparent; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font: 700 11px 'Manrope'; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table tr { transition: background 0.15s; }
.table tbody tr:hover { background: rgba(255, 138, 42, 0.06); }
.table tbody tr.me { background: rgba(94, 232, 138, 0.08); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .place { width: 64px; font: 400 18px var(--head); color: var(--dim); }
.table tr:nth-child(1) .place { color: #ffd25a; } .table tr:nth-child(2) .place { color: #d4dde8; } .table tr:nth-child(3) .place { color: #e0915a; }
.table .pl { color: var(--text); font-weight: 700; cursor: pointer; }
.table .pl:hover { color: var(--gold-2); text-decoration: none; }
.ctag { display: inline-block; font: 700 11px 'Manrope'; letter-spacing: 0.04em; color: var(--amber); background: rgba(255, 154, 46, 0.1); border: 1px solid rgba(255, 154, 46, 0.3); padding: 1px 6px; border-radius: 5px; margin-left: 6px; vertical-align: 2px; }
.panel { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel.flat { padding: 6px 4px; overflow-x: auto; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: end; margin-bottom: 28px; }
.pod { text-align: center; padding: 26px 16px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); cursor: pointer; transition: transform 0.25s; }
.pod:hover { transform: translateY(-5px); }
.pod .medal { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font: 400 26px var(--head); color: #1d0c02; }
.pod.p1 { padding-top: 40px; border-color: rgba(255, 210, 90, 0.6); background: radial-gradient(300px 160px at 50% 0%, rgba(255, 210, 90, 0.18), transparent 70%), linear-gradient(180deg, var(--panel-2), var(--panel)); }
.pod.p1 .medal { background: linear-gradient(180deg, #fff1a8, #ffc23a); box-shadow: 0 0 30px rgba(255, 210, 90, 0.5); width: 76px; height: 76px; }
.pod.p2 .medal { background: linear-gradient(180deg, #ffffff, #a9b6c6); }
.pod.p3 .medal { background: linear-gradient(180deg, #ffd0a8, #c7783e); }
.pod .nm { font: 400 20px var(--head); }
.pod .v { font: 400 28px var(--head); background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@media (max-width: 640px) { .podium { grid-template-columns: 1fr; } .pod.p1 { order: -1; } }

.form { display: grid; gap: 14px; }
.form label, .acc-card label { display: grid; gap: 6px; font-size: 14px; color: var(--dim); }
.form label small, .acc-card label small { font-size: 12px; }
.form input, .form select, .form textarea, .acc-card input, .acc-card select {
  font: inherit; color: var(--text); background: #0a0d11; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px; outline: none; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form input:focus, .form select:focus, .form textarea:focus, .acc-card input:focus { border-color: var(--fire-2); box-shadow: 0 0 0 3px rgba(255, 138, 42, 0.18); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }
.err { margin: 0; color: #ff8c8c; font-size: 14px; }
.err:empty { display: none; }

/* Modal (player card, tournament, payments). */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(3, 4, 6, 0.78); backdrop-filter: blur(6px); animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } }
.modal-box { position: relative; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: 16px; padding: 28px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7); animation: pop 0.25s ease-out; }
@keyframes pop { from { transform: translateY(12px) scale(0.98); opacity: 0; } }
.modal-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); color: #fff; font-size: 22px; cursor: pointer; }
.modal-x:hover { border-color: var(--fire-2); }
@media (max-width: 560px) { .modal-box { padding: 20px 16px; } }

/* Player card, cabinet statistics. */
.pcard-h { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.avatar { width: 64px; height: 64px; flex: 0 0 auto; display: grid; place-items: center; font: 400 26px var(--head); color: #1d0c02; background: var(--grad-fire); clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.pcard-h h2 { margin: 0; font-size: 30px; text-transform: none; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 22px; }
.kpi { padding: 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.kpi b { display: block; font: 400 24px/1.2 var(--head); color: var(--text); }
.kpi span { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.kpi.fire b { background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kpi.prem { border-color: rgba(255, 210, 90, 0.35); background: radial-gradient(200px 80px at 0 0, rgba(255, 210, 90, 0.12), transparent 70%); }
.kpi.prem b { color: var(--prem); }
.kpi .ic { float: right; width: 34px; height: 34px; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--grad-fire-h); border-radius: 3px; }
.empty { text-align: center; color: var(--dim); padding: 36px 16px; }
.loading { position: relative; min-height: 120px; }
.loading::after { content: ''; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--fire-2); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast. */
.flash { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 13px 20px; border-radius: 10px; background: var(--panel-3); border: 1px solid var(--line-2); z-index: 120; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); animation: pop 0.25s; }
.flash.good { border-color: var(--green); } .flash.bad { border-color: #ff6b6b; }

/* ---------------------------------------------------------------- war map */
.war-layout { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.war-map { position: relative; clip-path: var(--cut); background: radial-gradient(circle at 50% 40%, #0f1a26, #070b10 75%); border: 1px solid var(--line); overflow: hidden; touch-action: none; }
.war-map svg { display: block; width: 100%; height: auto; cursor: grab; user-select: none; }
.war-map svg:active { cursor: grabbing; }
.war-map .sea-grid { stroke: rgba(90, 160, 208, 0.07); }
.war-map .land { fill: #1a2028; }
.war-map .prov { stroke: rgba(7, 9, 12, 0.85); stroke-width: 1; transition: filter 0.15s; cursor: pointer; }
.war-map .prov:hover { filter: brightness(1.45); }
.war-map .prov.free { fill: #222a34; }
.war-map .coast { fill: none; stroke: rgba(130, 190, 230, 0.35); stroke-width: 1.4; pointer-events: none; }
.war-map .coast-glow { fill: none; stroke: rgba(74, 168, 255, 0.12); stroke-width: 8; pointer-events: none; }
.war-map .decor { fill: #121820; }
.war-map .lake { fill: #0b121b; stroke: rgba(130, 190, 230, 0.3); stroke-width: 0.8; pointer-events: none; }
.war-map .sel { fill: none; stroke: #fff; stroke-width: 2.5; pointer-events: none; }
.war-map .atk { fill: none; stroke: #ff4b4b; stroke-width: 2.5; stroke-dasharray: 6 4; pointer-events: none; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.war-map .city { fill: #fff; stroke: rgba(0, 0, 0, 0.6); stroke-width: 0.8; pointer-events: none; }
.war-map .lbl { font: 600 11px 'Manrope'; fill: rgba(255, 255, 255, 0.82); paint-order: stroke; stroke: rgba(0, 0, 0, 0.8); stroke-width: 3px; pointer-events: none; }
.war-map .lbl.cap { font-size: 13px; font-weight: 800; }
.war-map .ctl { position: absolute; right: 12px; top: 12px; display: grid; gap: 6px; }
.war-map .ctl button { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(7, 9, 12, 0.75); color: #fff; font-size: 20px; cursor: pointer; }
.war-map .ctl button:hover { border-color: var(--fire-2); }
.war-tip { position: absolute; z-index: 3; pointer-events: none; padding: 10px 12px; border-radius: 10px; background: rgba(7, 9, 12, 0.92); border: 1px solid var(--line-2); font-size: 13px; min-width: 170px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.war-tip b { display: block; font: 400 15px var(--head); }
.war-side .panel + .panel { margin-top: 14px; }
.clan-row { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.clan-row:hover { background: rgba(255, 255, 255, 0.03); text-decoration: none; }
.clan-row.on { background: rgba(255, 138, 42, 0.1); }
.clan-row span { color: var(--text); }
.clan-row:last-child { border-bottom: 0; }
.clan-row i { width: 14px; height: 14px; border-radius: 4px; }
.clan-row small { color: var(--dim); }
.atk-row { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.atk-row:last-child { border-bottom: 0; }
@media (max-width: 1000px) { .war-layout { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- tournaments */
.cups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.cup { position: relative; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); cursor: pointer; transition: transform 0.25s, border-color 0.25s; overflow: hidden; }
.cup::before { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; background: radial-gradient(circle, rgba(255, 196, 77, 0.14), transparent 65%); }
.cup:hover { transform: translateY(-4px); border-color: rgba(255, 138, 42, 0.55); }
.cup h4 { font: 400 20px/1.2 var(--head); margin: 8px 0 8px; }
.cup .when { font-weight: 700; color: var(--amber); }
.cup .facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--soft); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); padding: 4px 9px; border-radius: 99px; }
.st { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor; }
.st-registration { color: var(--green); } .st-running { color: var(--fire-2); } .st-complete { color: var(--steel); } .st-canceled { color: #ff6b6b; }
.st-pending { color: var(--gold); } .st-open { color: #56d4ff; } .st-planned { color: #c48bff; } .st-done { color: var(--green); } .st-rejected { color: #ff6b6b; }
.bracket { display: flex; gap: 26px; overflow-x: auto; padding: 8px 2px 14px; }
.round { display: flex; flex-direction: column; justify-content: space-around; gap: 14px; min-width: 210px; }
.round h5 { margin: 0 0 4px; font: 700 11px 'Manrope'; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.match { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #0b0f14; }
.match div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; font-size: 14px; }
.match div + div { border-top: 1px solid var(--line); }
.match .win { color: var(--green); font-weight: 700; }
.teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.team { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.team h5 { margin: 0 0 8px; font: 400 16px var(--head); }
.team ul { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--soft); display: grid; gap: 3px; }

/* ---------------------------------------------------------------- account page (account.html) */
.acc-card .acc-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.acc-card section { padding: 0; }
.acc-main { padding: 64px 0 90px; background: radial-gradient(800px 420px at 85% 0%, rgba(255, 106, 31, 0.12), transparent 70%); }
.acc-layout { display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: 48px; align-items: start; }
.acc-side h1 { font-size: clamp(32px, 4.6vw, 56px); margin: 0 0 14px; text-transform: uppercase; }
.acc-side h1 span { background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.acc-perks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.acc-perks li { position: relative; padding-left: 34px; color: var(--soft); }
.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: #1d0c02; background: var(--grad-fire); }
.acc-card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-2); border-radius: 18px; padding: 28px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.acc-card h2 { font-size: 22px; margin: 0 0 6px; text-transform: none; }
.acc-card h3 { font: 700 12px 'Manrope'; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); margin: 0 0 8px; }
.acc-card form { display: grid; gap: 14px; margin-top: 4px; }
.acc-card .acc-code { font: 400 28px var(--head); letter-spacing: 0.45em; text-align: center; color: var(--gold-2); }
.acc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #0a0d11; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; }
.acc-tabs button { font: 700 15px 'Manrope'; color: var(--dim); background: none; border: 0; border-radius: 9px; padding: 10px; cursor: pointer; }
.acc-tabs button.on { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.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: 54px; height: 54px; display: grid; place-items: center; font: 400 22px var(--head); color: #1d0c02; background: var(--grad-fire); clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.acc-name { font: 400 22px var(--head); }
.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); }
/* Signed in: the cabinet takes the whole width. */
.acc-main.wide .acc-layout { grid-template-columns: 1fr; }
.acc-main.wide .acc-side { display: none; }
.cab > div:first-child { position: sticky; top: 90px; }
@media (max-width: 960px) { .cab > div:first-child { position: static; } }
.cab { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; }
.cab-tanks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.cab-tank { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); font-size: 14px; }
.cab-tank.prem { border-color: rgba(255, 210, 90, 0.35); }
.cab-tank b { font-weight: 700; }
.cab-tank small { display: block; color: var(--dim); font-size: 12px; }
@media (max-width: 960px) { .cab { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .acc-layout { grid-template-columns: 1fr; gap: 28px; }
  .acc-card { order: -1; }
  .acc-side h1 { font-size: 30px; }
  .acc-main { padding: 32px 0 56px; }
  .acc-card { padding: 20px 16px; }
}

/* ---------------------------------------------------------------- ideas */
.listen { padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(255, 154, 46, 0.14), rgba(94, 232, 138, 0.06)); border: 1px solid var(--line-2); margin: 16px 0; }
.listen p { margin: 0 0 10px; }
.idea-form { display: grid; gap: 10px; margin: 16px 0; }
.idea-form input, .idea-form textarea, .idea textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #0a0d11; color: var(--text); font: inherit; }
.idea-form .btn { justify-self: start; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 10px; }
.idea { display: flex; gap: 14px; padding: 16px 18px; margin: 10px 0; border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); }
.idea-votes { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 44px; }
.idea-votes b { font-size: 18px; } .idea-votes b.pos { color: var(--green); } .idea-votes b.neg { color: #ff6b6b; }
.vote { width: 36px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-3); color: var(--dim); cursor: pointer; }
.vote:disabled { opacity: 0.4; cursor: default; }
.vote.up.on { color: var(--green); border-color: var(--green); } .vote.down.on { color: #ff6b6b; border-color: #ff6b6b; }
.idea-body { flex: 1; min-width: 0; }
.idea-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.idea-h h3 { margin: 0; font-size: 17px; }
.idea-body p { margin: 8px 0; overflow-wrap: anywhere; }
.idea-meta { color: var(--dim); font-size: 13px; }
.idea-reply { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--fire-2); background: var(--panel-3); border-radius: 0 8px 8px 0; }
.idea-mini { padding: 6px 0; }
.admin-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.admin-row .ghost { opacity: 0.6; } .admin-row .danger { color: #ff6b6b; }
.flags { width: 100%; border-collapse: collapse; font-size: 14px; }
.flags th, .flags td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.kind-bug { color: #ff9a4a; } .kind-balance { color: #c48bff; } .kind-idea { color: var(--dim); }
.idea-form select { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #0a0d11; color: var(--text); font: inherit; justify-self: start; }

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; transition: border-color 0.2s; }
.faq details[open] { border-color: rgba(255, 138, 42, 0.45); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--fire-2); font: 400 20px/1 var(--head); }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0 0 18px; color: var(--soft); }

/* ---------------------------------------------------------------- scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(.2, .7, .2, 1), transform 0.8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-t, .live-dot, .scroll-hint::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- shop page */
.shop-hero canvas.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.shop-bal { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 26px; padding: 14px 18px; border-radius: 14px; background: rgba(7, 9, 12, 0.7); border: 1px solid rgba(255, 210, 90, 0.3); width: fit-content; max-width: 100%; backdrop-filter: blur(6px); }
.shop-bal span { display: inline-flex; align-items: center; gap: 8px; }
.shop-bal img { width: 26px; height: 26px; }
.shop-bal b { color: var(--prem); }

/* ---------------------------------------------------------------- fixes: buttons, form controls, video loading */
/* Buttons in a row keep their own height (the play button's "no sign-up" line must not stretch its neighbour). */
.finale .cta, .hero .cta { align-items: flex-start; }
/* One height for every control (Safari draws selects and date fields its own way otherwise). */
.form input, .form select, .acc-card input, .acc-card select { height: 48px; line-height: normal; -webkit-appearance: none; appearance: none; }
.form textarea { min-height: 84px; resize: vertical; }
.form select, .acc-card select {
  padding-right: 40px; cursor: pointer;
  background: #0a0d11 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23ff9a2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 15px center / 12px 8px no-repeat;
}
.form select:disabled { opacity: 0.4; cursor: default; }
.form input[type='datetime-local'] { display: flex; align-items: center; color-scheme: dark; }
.form input::-webkit-date-and-time-value { text-align: left; }
/* Labels of different lengths: the controls in a row line up at the bottom. */
.form .row2 { align-items: end; }
.form .lbl-t { display: flex; align-items: baseline; gap: 8px; }
.form .lbl-t small { color: var(--dim); opacity: 0.8; }
/* Videos fade in over their poster once they really play (no black box while loading). */
video[data-auto], video[data-hero] { opacity: 0; transition: opacity 0.6s ease; }
video[data-auto].on, video[data-hero].on { opacity: 1; }
.feat-media[data-poster] { background: #000 var(--poster) center / cover no-repeat; }
/* Safari draws a video black inside a clip-path box that also transforms: the video boxes get plain
   rounded corners and the video does not scale on hover. */
.feat-media, .reel { clip-path: none; border-radius: 12px; }
.feat-media video, .reel video { transition: none; transform: none !important; }
/* Content hides for the scroll-in effect only once site.js runs (no script: everything visible). */
html:not(.rv) .reveal { opacity: 1; transform: none; }
/* Smooth scrolling only for clicks on the page: a jump to an anchor on load must land at once. */
html { scroll-behavior: auto; }
html.smooth { scroll-behavior: smooth; }

/* ---------------------------------------------------------------- blog (pages from scripts/blog.ts) */
.blog-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.blog-cats a { color: var(--soft); font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); }
.blog-cats a:hover { text-decoration: none; border-color: var(--fire-2); color: #fff; }
.blog { padding: 24px 0 40px; }
.blog-sec { padding: 40px 0; }
.blog-sec .sec-h { margin-bottom: 28px; }
.post-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; color: var(--text); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
.post-card:hover { text-decoration: none; border-color: rgba(255, 138, 42, 0.5); transform: translateY(-3px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.post-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-3); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-b { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.post-card-c { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fire-2); }
.post-card b { font: 400 19px/1.25 var(--head); }
.post-card-d { color: var(--dim); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-m { margin-top: auto; padding-top: 6px; color: var(--dim); font-size: 13px; }
@media (max-width: 960px) { .post-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-cards { grid-template-columns: 1fr; } }

.post { padding: 28px 0 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--dim); margin-bottom: 26px; }
.crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--soft); }
.post-h { max-width: 900px; }
.post-h h1 { font-size: clamp(30px, 4.6vw, 54px); margin: 0 0 14px; line-height: 1.08; }
.post-meta { color: var(--dim); margin: 0 0 26px; font-size: 14px; }
.post-cover { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 9; background: var(--panel-3); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-grid { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 56px; }
.post-toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; font-size: 14px; }
.post-toc b { display: block; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fire-2); margin-bottom: 10px; }
.post-toc ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--line-2); display: grid; gap: 9px; }
.post-toc a { color: var(--dim); line-height: 1.35; display: block; }
.post-toc a:hover { color: #fff; text-decoration: none; }
.post-body { font-size: 17px; line-height: 1.75; color: var(--soft); }
.post-body > p:first-child { font-size: 19px; color: var(--text); }
.post-body h2 { font-size: clamp(24px, 3vw, 32px); text-transform: none; color: var(--text); margin: 48px 0 14px; }
.post-body h3 { font-size: 20px; color: var(--text); margin: 30px 0 10px; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 24px; display: grid; gap: 8px; }
.post-body li::marker { color: var(--fire-2); }
.post-body strong { color: var(--text); }
.post-body code { font-size: 0.9em; background: var(--panel-3); padding: 2px 6px; border-radius: 6px; }
.post-body figure { margin: 30px 0; }
.post-body figure img { border-radius: 12px; border: 1px solid var(--line); width: 100%; height: auto; }
.post-body figcaption { color: var(--dim); font-size: 14px; margin-top: 10px; }
.post-body blockquote { margin: 26px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--fire); color: var(--text); font-style: italic; }
.post-table { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); border-radius: 12px; }
.post-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.post-table th, .post-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-table th { background: var(--panel-2); color: var(--text); font-weight: 700; white-space: nowrap; }
.post-table tr:last-child td { border-bottom: 0; }
.post-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }
.post-note { margin: 28px 0; padding: 18px 22px; border-radius: 12px; background: rgba(74, 168, 255, 0.07); border: 1px solid rgba(74, 168, 255, 0.3); color: var(--text); }
.post-note p:last-child, .post-game p:last-of-type { margin-bottom: 0; }
.post-game { margin: 34px 0; padding: 24px 26px; clip-path: var(--cut); background: linear-gradient(120deg, #2a0f06, #331507 50%, #140d0a); border: 1px solid rgba(255, 106, 31, 0.45); color: #f0dccf; }
.post-game-k { font: 400 13px var(--head); letter-spacing: 0.12em; text-transform: uppercase; color: #ff7b4a; margin-bottom: 10px; }
.post-game .btn { margin-top: 16px; }
.post-tanks { margin-top: 44px; }
.post-tanks-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 12px; }
.post-tank { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--steel); }
.post-tank b { font: 400 18px var(--head); color: var(--text); }
.post-tank span { font-size: 13px; color: var(--dim); line-height: 1.4; }
.post-tank.n-union { border-left-color: #d9473a; }
.post-tank.n-stahl { border-left-color: #9aa3ad; }
.post-tank.n-liberty { border-left-color: #4aa8ff; }
.post-tank.n-albion { border-left-color: #5ee88a; }
.post-final { margin: 64px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 36px 40px; clip-path: var(--cut); background: linear-gradient(120deg, #2a0f06, #3d1708 45%, #140d0a); border: 1px solid rgba(255, 106, 31, 0.45); }
.post-final h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.post-final p { margin: 0; color: #f0dccf; max-width: 640px; }
.post-final-b { display: flex; flex-direction: column; gap: 10px; }
.post-more { padding: 64px 0 0; }
.post-more h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 22px; }
@media (max-width: 1000px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .post-toc { position: static; max-height: none; margin-bottom: 30px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
  .post-final { grid-template-columns: 1fr; padding: 28px 24px; }
}
@media (max-width: 620px) {
  .post-cover { aspect-ratio: 16 / 9; margin-bottom: 28px; }
  .post-body { font-size: 16px; }
  .post-body > p:first-child { font-size: 17px; }
  .post-game { padding: 20px; }
}

/* A partner's gift (?promo=CODE, site.js) */
.promo-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 110; width: min(760px, calc(100% - 32px)); display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; border-radius: 14px; background: linear-gradient(180deg, var(--panel-3), var(--panel-2)); border: 1px solid rgba(255, 205, 69, 0.45); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 170, 40, 0.12); animation: pop 0.3s; }
.promo-gift { font-size: 30px; line-height: 1; filter: drop-shadow(0 3px 10px rgba(255, 196, 80, 0.5)); }
.promo-t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.promo-t b { color: #ffcd45; }
.promo-t span { color: var(--soft); font-size: 14px; }
.promo-bar .btn { flex: none; }
.promo-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--dim); font-size: 20px; cursor: pointer; }
.promo-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
@media (max-width: 620px) {
  .promo-bar { flex-wrap: wrap; bottom: 10px; }
  .promo-t { flex-basis: calc(100% - 90px); }
  .promo-bar .btn { width: 100%; order: 3; }
}

/* ---- gifts (shop) and promo codes (account) */
.gift-link { background: none; border: 0; color: var(--dim); font: 600 13px var(--body, inherit); cursor: pointer; padding: 6px 0 0; text-align: center; width: 100%; }
.gift-link:hover { color: var(--prem); }
.promo-box { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 6px; }
.promo-box input { flex: 1 1 180px; text-transform: uppercase; letter-spacing: 0.06em; }
.promo-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.promo-list li { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.promo-list code { font: 700 15px/1 ui-monospace, Menlo, monospace; letter-spacing: 0.06em; color: var(--prem); }

/* ---- streamers page: the form takes the site's .form controls (one height, dark fields, the select's own arrow) */
.page-hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.streamer-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 24px 0; }
.streamer-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; max-width: 860px; padding: 30px; }
.streamer-form .wide { grid-column: 1 / -1; }
.streamer-form label { gap: 8px; color: var(--soft); font-weight: 600; }
.streamer-form .check { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; color: var(--dim); }
.streamer-form .check input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; padding: 0; accent-color: var(--fire-2); -webkit-appearance: auto; appearance: auto; }
.streamer-form input[type='number'] { -moz-appearance: textfield; }
.streamer-form input[type='number']::-webkit-inner-spin-button, .streamer-form input[type='number']::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.streamer-form .err:empty { display: none; }
.streamer-form .err { margin-bottom: 12px; }
@media (max-width: 640px) { .streamer-form { grid-template-columns: 1fr; padding: 20px; gap: 18px; } }

/* ---- moderation: streamers and promo codes */
.code-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 14px; align-items: end; margin: 14px 0; }
.code-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--dim); }
.code-form input, .code-form select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: inherit; }
.code-form .check { flex-direction: row; align-items: center; gap: 8px; }
.made { white-space: pre-wrap; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: 14px/1.5 ui-monospace, Menlo, monospace; }
.cp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cp-table td, .cp-table th { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.cp-table .off { opacity: 0.45; }

/* The press page (/press): the press kit, facts, logos and screenshots to download. */
[data-page="press"] section[id] { scroll-margin-top: 120px; }
.press-hero-in { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.press-hero-logo { width: 340px; max-width: 100%; height: auto; filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.6)); }
.press-kit-note { margin-top: 14px !important; font-size: 13px !important; }
.press-nav { position: sticky; top: 68px; z-index: 30; background: rgba(7, 9, 12, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.press-nav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.press-nav a { padding: 12px 12px; color: var(--soft); font-weight: 600; font-size: 14px; white-space: nowrap; }
.press-nav a:hover { color: var(--fire-2); text-decoration: none; }
.press-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.press-dl { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; margin: 0; border-top: 1px solid var(--line); }
.press-dl dt, .press-dl dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.press-dl dt { color: var(--dim); padding-right: 14px; }
.press-dl dd { color: var(--text); }
.press-short h3 { margin: 18px 0 6px; }
.press-short h3:first-of-type { margin-top: 4px; }
.press-short p { color: var(--soft); margin: 0 0 10px; font-size: 15px; }
.press-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.press-video { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.press-video video { width: 100%; height: 100%; display: block; }
.press-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.press-shots a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); color: var(--soft); transition: border-color 0.2s, transform 0.2s; }
.press-shots a:hover { border-color: var(--fire-2); transform: translateY(-2px); text-decoration: none; }
.press-shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.press-shots span { display: block; padding: 9px 12px 11px; font-size: 13px; line-height: 1.4; }
.press-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.press-logo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.press-logo .pl-img { height: 150px; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at 50% 40%, #1c2531, #07090c); }
.press-logo.light .pl-img { background: #f3f4f6; }
.press-logo .pl-img img { display: block; max-width: 100%; max-height: 106px; width: auto; height: auto; }
.press-logo .pl-img:not(.tall) img { width: 100%; }
.press-logo .pl-img.tall img { height: 106px; }
.press-logo figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; }
.press-logo figcaption span { display: flex; gap: 10px; }
.press-rules { margin-top: 24px; }
.press-nations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.press-nations figure { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.press-nations figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; font: 400 17px var(--head); background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); }
.press-tanks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.press-tanks img { width: 100%; height: auto; background: radial-gradient(circle at 50% 60%, #1c2531, transparent 70%); border-radius: 10px; }
.press-colors { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.press-colors div { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.press-colors i { display: block; height: 70px; background: var(--c); }
.press-colors b, .press-colors span { display: block; padding: 0 12px; }
.press-colors b { padding-top: 10px; font-size: 14px; }
.press-colors span { padding-bottom: 10px; color: var(--dim); font: 13px ui-monospace, Menlo, monospace; }
.press-contact { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; }
.press-contact h2 { font-size: clamp(22px, 3vw, 32px); }
.press-contact p { margin: 0; }
@media (max-width: 900px) {
  .press-hero-in, .press-facts { grid-template-columns: 1fr; }
  .press-hero-logo { width: 240px; order: -1; }
  .press-feats { grid-template-columns: 1fr 1fr; }
  .press-nations, .press-tanks { grid-template-columns: 1fr 1fr; }
  .press-colors { grid-template-columns: repeat(3, 1fr); }
  .press-contact { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .press-feats { grid-template-columns: 1fr; }
  .press-dl { grid-template-columns: 1fr; }
  .press-dl dt { padding-bottom: 0; border-bottom: 0; }
  .press-contact .btn { width: 100%; text-align: center; }
}

/* Back to the top: on every page once it is scrolled down a screen (site.js). */
.totop { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; border: 0; padding: 0;
  color: #1d0c02; background: linear-gradient(180deg, #ffd25a, #ff7a22 60%, #ff4a17); clip-path: var(--cut-s);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 0.25s, transform 0.25s, filter 0.2s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { filter: brightness(1.08) drop-shadow(0 0 14px rgba(255, 106, 31, 0.55)); }
.totop:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.totop svg { width: 22px; height: 22px; }
/* Above the gift strip and the notices at the bottom, not under them. */
body:has(.promo-bar) .totop { bottom: 96px; }
@media (max-width: 560px) { .totop { right: 14px; bottom: 14px; width: 44px; height: 44px; } body:has(.promo-bar) .totop { bottom: 128px; } }
@media (prefers-reduced-motion: reduce) { .totop { transition: none; } }
