/* ============ Simulation of Burning Cig — landing ============ */

@font-face {
  font-family: 'Press Start 2P';
  src: url('../fonts/ps2p-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}
@font-face {
  font-family: 'Press Start 2P';
  src: url('../fonts/ps2p-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  font-display: swap;
}

:root {
  --bg: #0c0a08;
  --bg2: #13100c;
  --panel: #1a1510;
  --line: #2c241a;
  --ember: #ff7a2f;
  --ember-hi: #ffb347;
  --ember-deep: #d94f10;
  --smoke: #9a938a;
  --text: #e8e2d8;
  --muted: #a89f92;
  --pixel: 'Press Start 2P', monospace;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 122, 47, .08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(217, 79, 16, .05), transparent);
}

img { image-rendering: pixelated; }
a { color: var(--ember-hi); }

/* ---------- floating embers ---------- */
.embers { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.embers span {
  position: absolute;
  bottom: -10px;
  width: 4px; height: 4px;
  background: var(--ember);
  box-shadow: 0 0 6px 2px rgba(255, 122, 47, .55);
  opacity: 0;
  animation: ember-rise linear infinite;
}
.embers span:nth-child(1)  { left: 6%;  animation-duration: 11s; animation-delay: 0s; }
.embers span:nth-child(2)  { left: 14%; animation-duration: 14s; animation-delay: 3s; width: 3px; height: 3px; }
.embers span:nth-child(3)  { left: 24%; animation-duration: 10s; animation-delay: 6s; }
.embers span:nth-child(4)  { left: 33%; animation-duration: 16s; animation-delay: 1s; width: 2px; height: 2px; }
.embers span:nth-child(5)  { left: 44%; animation-duration: 12s; animation-delay: 8s; }
.embers span:nth-child(6)  { left: 52%; animation-duration: 15s; animation-delay: 4s; width: 3px; height: 3px; }
.embers span:nth-child(7)  { left: 61%; animation-duration: 11s; animation-delay: 9s; }
.embers span:nth-child(8)  { left: 70%; animation-duration: 13s; animation-delay: 2s; width: 2px; height: 2px; }
.embers span:nth-child(9)  { left: 78%; animation-duration: 17s; animation-delay: 6s; }
.embers span:nth-child(10) { left: 86%; animation-duration: 12s; animation-delay: 0s; width: 3px; height: 3px; }
.embers span:nth-child(11) { left: 93%; animation-duration: 14s; animation-delay: 5s; }
.embers span:nth-child(12) { left: 39%; animation-duration: 18s; animation-delay: 10s; width: 2px; height: 2px; }

@keyframes ember-rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: .9; }
  60%  { opacity: .5; }
  100% { transform: translateY(-105vh) translateX(6vw); opacity: 0; }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 28px;
  background: rgba(12, 10, 8, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--pixel); font-size: 12px;
  color: var(--text); text-decoration: none;
  white-space: nowrap;
}
.nav-cig { height: 22px; width: auto; transform: rotate(-20deg); }
.nav-links { display: flex; gap: 20px; flex: 1; justify-content: center; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 15px;
  transition: color .15s;
}
.nav-links a:hover { color: var(--ember-hi); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 13px;
  text-decoration: none;
  padding: 14px 26px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s, box-shadow .2s, background .2s;
  image-rendering: pixelated;
}
.btn:active { transform: translateY(2px); }

.btn-play {
  background: linear-gradient(180deg, var(--ember-hi), var(--ember) 45%, var(--ember-deep));
  color: #1b0d02;
  box-shadow:
    0 0 0 2px #3a1c08,
    0 0 22px rgba(255, 122, 47, .45),
    inset 0 2px 0 rgba(255, 255, 255, .35);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
}
.btn-play:hover {
  box-shadow:
    0 0 0 2px #3a1c08,
    0 0 34px rgba(255, 140, 60, .75),
    inset 0 2px 0 rgba(255, 255, 255, .35);
  transform: translateY(-1px);
}
.btn-nav { padding: 10px 18px; font-size: 11px; }
.btn-big { padding: 18px 34px; font-size: 15px; }

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, .03);
}
.btn-ghost:hover { border-color: var(--ember); color: var(--ember-hi); }

.btn-tg {
  background: linear-gradient(180deg, #4fb7e8, #2a9ad6 45%, #1d7bb0);
  color: #06202f;
  box-shadow: 0 0 0 2px #0d3a52, 0 0 22px rgba(42, 154, 214, .4), inset 0 2px 0 rgba(255, 255, 255, .35);
}
.btn-tg:hover { box-shadow: 0 0 0 2px #0d3a52, 0 0 34px rgba(80, 180, 235, .7), inset 0 2px 0 rgba(255, 255, 255, .35); transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 2;
  padding: 90px 24px 70px;
  text-align: center;
}
.hero-inner { max-width: 860px; margin: 0 auto; }
.hero-cig { position: relative; display: inline-block; margin-bottom: 28px; }
.hero-cig img {
  width: 280px; max-width: 70vw; height: auto;
  position: relative; z-index: 2;
  animation: cig-bob 5s ease-in-out infinite;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .6));
}
.hero-glow {
  position: absolute; z-index: 1;
  right: 8%; top: 38%;
  width: 90px; height: 90px;
  background: radial-gradient(circle, rgba(255, 170, 60, .55), rgba(255, 100, 20, .25) 45%, transparent 70%);
  animation: glow-pulse 2.2s ease-in-out infinite;
}
@keyframes cig-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-10px) rotate(1deg); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.35); }
}

.hero-kicker {
  font-family: var(--pixel); font-size: 12px;
  color: var(--ember); letter-spacing: 2px;
  margin-bottom: 18px; text-transform: lowercase;
}
.hero h1 {
  font-family: var(--pixel);
  font-size: clamp(26px, 5.4vw, 52px);
  line-height: 1.35;
  margin-bottom: 24px;
  text-shadow:
    0 0 24px rgba(255, 122, 47, .35),
    3px 3px 0 #3a1c08;
}
.hero-sub {
  color: var(--muted);
  max-width: 640px; margin: 0 auto 34px;
  font-size: 18px;
}
.hero-cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 14px; color: var(--smoke); opacity: .8; }

/* ---------- event #1 ---------- */
.event {
  position: relative; z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px 70px;
}
.event-box {
  position: relative;
  text-align: center;
  padding: 52px 36px 44px;
  background:
    radial-gradient(ellipse 100% 130% at 50% -30%, rgba(255, 179, 71, .16), transparent 60%),
    var(--panel);
  border: 2px solid var(--ember-deep);
  box-shadow:
    0 0 0 1px #3a1c08,
    0 0 34px rgba(255, 122, 47, .22),
    inset 0 0 60px rgba(255, 122, 47, .05);
  animation: event-glow 2.6s ease-in-out infinite;
}
@keyframes event-glow {
  0%, 100% { box-shadow: 0 0 0 1px #3a1c08, 0 0 26px rgba(255, 122, 47, .18), inset 0 0 60px rgba(255, 122, 47, .05); }
  50%      { box-shadow: 0 0 0 1px #3a1c08, 0 0 46px rgba(255, 140, 60, .38), inset 0 0 60px rgba(255, 122, 47, .09); }
}
.event-badge {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--pixel); font-size: 12px;
  white-space: nowrap;
  padding: 8px 20px;
  color: #1b0d02;
  background: linear-gradient(180deg, var(--ember-hi), var(--ember) 55%, var(--ember-deep));
  box-shadow: 0 0 0 2px #3a1c08, 0 0 18px rgba(255, 140, 60, .5);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
}
.event-box h2 {
  font-family: var(--pixel);
  font-size: clamp(17px, 3vw, 26px);
  line-height: 1.5;
  margin-bottom: 18px;
  color: var(--ember-hi);
  text-shadow: 0 0 22px rgba(255, 122, 47, .4), 3px 3px 0 #3a1c08;
}
.event-desc {
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto 32px;
  font-size: 17px;
}
.event-desc b { color: var(--text); }
.event-timer {
  display: flex; justify-content: center; align-items: stretch;
  gap: 10px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.et-cell {
  min-width: 88px;
  padding: 16px 14px 12px;
  background: #16110c;
  border: 1px solid #4a3520;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .04), 0 4px 14px rgba(0, 0, 0, .4);
}
.et-cell b {
  display: block;
  font-family: var(--pixel);
  font-size: clamp(22px, 4vw, 34px);
  color: var(--ember-hi);
  text-shadow: 0 0 16px rgba(255, 122, 47, .45), 2px 2px 0 #3a1c08;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.et-cell span {
  font-size: 12px; color: var(--smoke);
  text-transform: uppercase; letter-spacing: 1.5px;
}
.et-sep {
  align-self: center;
  font-family: var(--pixel); font-size: 24px;
  color: var(--ember-deep);
  animation: sep-blink 1s steps(1) infinite;
}
@keyframes sep-blink { 50% { opacity: .25; } }
.et-done {
  font-family: var(--pixel); font-size: 14px;
  line-height: 1.8;
  color: var(--ember-hi);
  padding: 10px 0;
}
.event-note { font-size: 14.5px; color: var(--smoke); }

/* ---------- stats strip ---------- */
.strip {
  position: relative; z-index: 2;
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 26px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}
.strip-item {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 22px;
}
.strip-item b {
  font-family: var(--pixel); font-size: 22px; color: var(--ember-hi);
  text-shadow: 2px 2px 0 #3a1c08;
}
.strip-item span { color: var(--muted); font-size: 15px; }

/* ---------- sections ---------- */
.section {
  position: relative; z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 84px 24px 20px;
}
.section h2 {
  font-family: var(--pixel);
  font-size: clamp(17px, 2.6vw, 24px);
  line-height: 1.5;
  margin-bottom: 18px;
}
.h-mark { color: var(--ember); margin-right: 8px; }
.section-lead { color: var(--muted); max-width: 760px; margin-bottom: 40px; font-size: 18px; }

/* ---------- feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 26px 24px;
  transition: transform .15s, border-color .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #4a3520;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 18px rgba(255, 122, 47, .07);
}
.card-ico {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: #241c12;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.card-ico img { max-width: 40px; max-height: 40px; width: auto; height: auto; }
.card h3 { font-family: var(--pixel); font-size: 13px; margin-bottom: 12px; color: var(--ember-hi); }
.card p { color: var(--muted); font-size: 15.5px; }

/* ---------- factions ---------- */
.factions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.faction {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ember-deep);
  padding: 24px 22px;
  transition: transform .15s, box-shadow .2s;
}
.faction:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.f-lohi   { border-top-color: #c96a1e; }
.f-dragon { border-top-color: #c92e2e; }
.f-mouse  { border-top-color: #8a8a99; }
.f-ivan   { border-top-color: #3f9e4d; }
.faction-units {
  display: flex; align-items: flex-end; gap: 12px;
  height: 84px; margin-bottom: 16px;
}
.faction-units img { height: 52px; width: auto; }
.faction-units img.fb { height: 78px; margin-left: auto; }
.faction h3 { font-family: var(--pixel); font-size: 13px; margin-bottom: 6px; }
.faction-tag { font-size: 12.5px; color: var(--ember); margin-bottom: 12px; letter-spacing: .4px; }
.faction p:last-child { color: var(--muted); font-size: 15px; }

/* ---------- screenshots ---------- */
.shots { display: grid; gap: 26px; }
.shot {
  position: relative;
  border: 1px solid var(--line);
  background: #000;
  overflow: hidden;
}
.shot img {
  display: block; width: 100%; height: auto;
  image-rendering: auto;
  transition: transform .35s ease;
}
.shot:hover img { transform: scale(1.02); }
.shot::after {
  /* лёгкие CRT-полосы */
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .10) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 18px 12px;
  background: linear-gradient(transparent, rgba(5, 3, 2, .88));
  font-size: 14px; color: var(--text);
}

/* ---------- leaderboard ---------- */
.board-wrap {
  border: 1px solid var(--line);
  background: var(--panel);
  overflow-x: auto;
}
.board { width: 100%; border-collapse: collapse; min-width: 640px; }
.board th {
  font-family: var(--pixel); font-size: 10px;
  text-align: left; color: var(--smoke);
  padding: 16px 18px;
  border-bottom: 2px solid var(--line);
  background: #16110c;
  white-space: nowrap;
}
.board td { padding: 14px 18px; border-bottom: 1px solid #221b12; font-size: 16px; }
.board tr:last-child td { border-bottom: none; }
.board .num { text-align: right; }
.board .rank { width: 56px; font-family: var(--pixel); font-size: 13px; color: var(--muted); }
.board .pname { font-weight: 600; }
.board .pts { font-family: var(--pixel); font-size: 13px; color: var(--ember-hi); }
.board .status { white-space: nowrap; font-size: 14.5px; color: var(--muted); }
.board tr.top-1 { background: linear-gradient(90deg, rgba(255, 180, 60, .10), transparent 65%); }
.board tr.top-2 { background: linear-gradient(90deg, rgba(200, 200, 210, .07), transparent 65%); }
.board tr.top-3 { background: linear-gradient(90deg, rgba(200, 120, 60, .08), transparent 65%); }
.board-empty { text-align: center; color: var(--muted); padding: 40px !important; }
.board-cta { margin-top: 16px; color: var(--muted); font-size: 15px; }

/* ---------- join ---------- */
.join { padding-bottom: 90px; }
.join-box {
  border: 1px solid #4a3520;
  background:
    radial-gradient(ellipse 90% 120% at 50% -20%, rgba(255, 122, 47, .13), transparent),
    var(--panel);
  padding: 56px 40px;
  text-align: center;
  box-shadow: 0 0 40px rgba(255, 122, 47, .07);
}
.join-box h2 {
  font-family: var(--pixel);
  font-size: clamp(15px, 2.4vw, 21px);
  line-height: 1.6;
  margin-bottom: 22px;
  text-shadow: 2px 2px 0 #3a1c08;
}
.join-box p { color: var(--muted); max-width: 720px; margin: 0 auto 34px; font-size: 17px; }
.join-cta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg2);
  text-align: center;
  padding: 44px 24px 52px;
  color: var(--muted);
  position: relative; z-index: 2;
}
.footer-cig { height: 30px; width: auto; margin-bottom: 14px; opacity: .9; }
.footer p { font-size: 15px; }
.footer-sub { margin-top: 6px; font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .nav { padding: 10px 16px; gap: 12px; }
  .nav-links { display: none; }
  .nav-brand { flex: 1; }
  .hero { padding-top: 60px; }
  .strip-item { padding: 6px 12px; }
  .join-box { padding: 40px 22px; }
  .event-box { padding: 44px 18px 36px; }
  .et-cell { min-width: 64px; padding: 12px 8px 10px; }
  .et-sep { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .embers span, .hero-cig img, .hero-glow { animation: none; }
  .event-box, .et-sep { animation: none; }
}
