:root {
  --bg: #0c0c0f;
  --bg2: #121218;
  --card: #16161c;
  --line: #2c2c34;
  --text: #e8eaed;
  --muted: #9aa3ad;
  --cream: #e8e0d4;
  --red: #c8102e;
  --red2: #e31c3d;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --max: 1120px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--text); font-family: var(--sans); }
body { min-height: 100vh; }
img, video { max-width: 100%; display: block; }
a { color: var(--cream); }
button, [role="button"] { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

.site-head {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-top));
  background: rgba(12,12,15,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.wordmark {
  font-weight: 900; letter-spacing: .12em; text-transform: uppercase;
  font-size: 11px; text-decoration: none; color: #fff; line-height: 1.15;
}
.wordmark b { color: var(--red2); font-weight: 900; display: block; font-size: 13px; letter-spacing: .16em; }
.nav-links { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a.btn-mini {
  background: var(--red); color: #fff; padding: 8px 12px; border-radius: 8px; min-height: 36px;
  display: inline-flex; align-items: center;
}
.nav-links a.btn-ghost {
  border: 1px solid var(--line); padding: 7px 12px; border-radius: 8px; color: var(--text);
}
.langs { display: flex; gap: 6px; }
.langs button {
  background: transparent; border: 0; color: var(--muted); font-size: 11px; font-weight: 800;
  padding: 4px 2px;
}
.langs button.on { color: var(--cream); border-bottom: 1px solid var(--cream); }

.tabs-wrap {
  position: sticky; top: 52px; z-index: 30;
  background: rgba(12,12,15,.94);
  border-bottom: 1px solid var(--line);
}
.guide-tabs {
  display: flex; gap: 4px; overflow-x: auto; max-width: var(--max); margin: 0 auto;
  padding: 8px 12px; scrollbar-width: none;
}
.guide-tabs::-webkit-scrollbar { display: none; }
.guide-tabs a {
  flex: 0 0 auto; text-decoration: none; color: var(--muted);
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 8px 10px; border-radius: 999px; min-height: 36px; display: inline-flex; align-items: center;
}
.guide-tabs a.on, .guide-tabs a:hover { background: #1e1e26; color: var(--cream); }

.hero {
  position: relative; min-height: 88vh;
  display: grid; align-items: end;
  padding: 24px 16px 28px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,12,15,.28) 0%, rgba(12,12,15,.12) 36%, rgba(12,12,15,.75) 72%, #0c0c0f 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid; gap: 22px;
}
.kicker {
  color: var(--cream); font-size: 11px; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.02; font-weight: 600;
  max-width: 16ch;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}
.hero .sub {
  max-width: 38ch; font-size: 16px; line-height: 1.5; color: #d5d8de;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 18px; border-radius: 10px;
  font-weight: 800; font-size: 14px; text-decoration: none; border: 1px solid transparent;
}
.btn.red { background: linear-gradient(180deg, var(--red2), #8b0f22); color: #fff; border-color: #ff3a55; }
.btn.cream { background: var(--cream); color: #1a1208; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.sec-links { display: flex; gap: 16px; font-size: 13px; }
.sec-links a { color: var(--cream); }

.auth-card {
  background: rgba(16,16,22,.88);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.auth-card h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tabs button {
  flex: 1; min-height: 40px; border-radius: 8px; border: 1px solid var(--line);
  background: #121218; color: var(--muted); font-weight: 800; font-size: 11px;
}
.tabs button.on { color: #fff; border-color: var(--red); background: rgba(200,16,46,.16); }
.auth-card label {
  display: block; font-size: 10px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; margin: 8px 0 4px;
}
.auth-card input {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: #0e0e14; color: #fff; font-size: 14px; min-height: 44px;
}
.auth-card .btn { width: 100%; margin-top: 12px; }
.err { color: #ff8a96; font-size: 12px; min-height: 16px; margin-top: 8px; }
.ok { color: #7dcea0; font-size: 12px; margin-top: 6px; }
.hint { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.code-box {
  margin-top: 8px; padding: 8px; border-radius: 8px;
  border: 1px dashed var(--cream); color: var(--cream); font-size: 12px; font-weight: 700;
}

.guide { width: min(var(--max), calc(100% - 24px)); margin: 0 auto; padding: 28px 0 80px; }
.section {
  padding: 40px 0 32px;
  border-top: 1px solid var(--line);
  display: grid; gap: 24px;
  align-items: start;
}
.section h2 {
  font-family: var(--serif); font-size: clamp(26px, 4vw, 36px);
  font-weight: 600; line-height: 1.15; margin: 6px 0 12px;
}
.eyebrow {
  color: var(--cream); font-size: 11px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
.section p { font-size: 16px; line-height: 1.58; color: #d0d4da; margin: 0 0 12px; }

/* Balanced media container — fixed 16:9 box */
.media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0c;
  outline: 1px solid rgba(255,255,255,.1);
  outline-offset: -1px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.media img,
.media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.media.tt img, .media.tt video { object-position: 50% 35%; }

.explain { margin: 0 0 14px; }
.explain dt {
  color: var(--cream); font-size: 13px; font-weight: 800;
  margin: 12px 0 4px; letter-spacing: .02em;
}
.explain dd { color: #d0d4da; font-size: 15px; line-height: 1.55; margin: 0; }
.flags { display: grid; gap: 8px; margin: 12px 0 16px; }
.flags article {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.flags b { color: var(--cream); }
.week { display: grid; gap: 8px; margin-top: 8px; }
.week article {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.week b { color: var(--cream); display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.qs { display: grid; gap: 10px; }
.qs article {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px;
}
.qs .n { color: var(--red2); font-weight: 900; font-size: 12px; letter-spacing: .12em; }

/* Smaller in-game shots — one neat strip, not competing with main media */
.shots {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.shots img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0a0a0c;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
@media (min-width: 640px) {
  .shots.two { grid-template-columns: 1fr 1fr; }
}

.foot {
  padding: 28px 16px 40px; text-align: center;
  border-top: 1px solid var(--line);
}
.foot .wordmark { display: inline-block; margin-bottom: 12px; }
.legal { font-size: 11px; color: var(--muted); margin-top: 16px; line-height: 1.5; }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; align-items: end; }
  .section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
  }
  .section.flip .copy { order: 2; }
  .section.full { grid-template-columns: 1fr; }
  .section.full .media { max-width: 720px; margin: 0 auto; }
  .qs { grid-template-columns: 1fr 1fr 1fr; }
  .flags { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1280px) {
  .hero { min-height: 86vh; padding: 40px 28px 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .media video { display: none !important; }
  .media img { position: absolute; inset: 0; }
}

.media.grid img { object-fit: contain; background: #0a0a0c; }


/* T-90 beginners guide */
.guide-page { max-width: var(--max); margin: 0 auto; padding: 28px 16px 48px; }
.guide-page h1 { font-family: var(--serif); font-size: clamp(28px,4vw,44px); line-height:1.1; margin:8px 0 12px; }
.guide-page .sub { color: var(--muted); max-width: 52ch; margin-bottom: 20px; }
.guide-video-wrap { max-width: 1040px; }
.guide-video { width: 100%; border-radius: 14px; border: 1px solid var(--line); background: #000; box-shadow: var(--shadow); }
.nav-links a.on-page { color: var(--cream); }
.guide-topics { margin: 22px 0 8px; padding: 0; list-style: none; max-width: 52ch; }
.guide-topics li {
  position: relative; padding: 8px 0 8px 2.2em; color: #d0d4da; font-size: 15px; line-height: 1.45;
  border-bottom: 1px solid var(--line);
}
.guide-topics li:last-child { border-bottom: 0; }
.guide-topics li::before {
  content: attr(data-n); position: absolute; left: 0; top: 8px;
  color: var(--red2); font-weight: 900; font-size: 12px; letter-spacing: .06em;
}
.guide-outro {
  margin: 18px 0 8px; font-family: var(--serif); font-size: clamp(18px,2.5vw,22px);
  color: var(--cream); font-style: italic; max-width: 40ch;
}
