:root {
  --bg-dark: #0f1115;
  --panel-bg: rgba(20, 23, 29, 0.88);
  --panel-border: rgba(255, 255, 255, 0.16);
  --text-main: #f1f3f5;
  --text-muted: #c2c8d2;
  --accent-pve: #d95b16;
  --accent-pve-hover: #f06a22;
  --accent-pvp: #38bdf8;
  --accent-active: var(--accent-pve);
}

body.theme-pvp { --accent-active: var(--accent-pvp); }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-dark);
  background-image:
    linear-gradient(180deg, rgba(15, 17, 21, 0.78) 0%, rgba(15, 17, 21, 0.92) 55%, rgba(15, 17, 21, 0.96) 100%),
    url('assets/page-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 56px;
}

@media (min-width: 900px) { body { padding-bottom: 0; } }
.mono { font-family: 'JetBrains Mono', monospace; }
h1, h2, h3 { font-family: 'Roboto Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.darkos-window {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.window-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--panel-border);
  font-size: 12px;
  color: var(--text-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.04em;
  border-radius: 3px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 17px; }
.btn-wishlist-fixed { width: 118px; min-width: 118px; max-width: 118px; text-align: center; white-space: nowrap; flex-shrink: 0; }

.btn-primary { background: var(--accent-pve); color: #fff; box-shadow: 0 0 20px rgba(217, 91, 22, 0.35); }
.btn-primary:hover { background: var(--accent-pve-hover); transform: translateY(-1px); }
.btn-secondary { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.16); }
.btn-outline { border: 1px solid var(--panel-border); color: var(--text-main); padding: 8px 16px; font-size: 13px; }
.btn-outline:hover { border-color: var(--accent-active); color: var(--accent-active); }

.darkos-header {
  position: fixed; top: 0; left: 0; right: 0; height: 56px;
  background: rgba(15, 17, 21, 0.94); border-bottom: 1px solid var(--panel-border);
  backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; z-index: 1000;
}

.brand-badge { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.desktop-nav { display: none; gap: 24px; }
@media (min-width: 900px) { .desktop-nav { display: flex; } }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; transition: 0.2s; }
.nav-link:hover, .nav-link.active { color: #fff; border-bottom-color: var(--accent-pve); }

.header-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--panel-border); border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.lang-option { background: transparent; border: none; color: var(--text-muted); width: 38px; padding: 5px 0; text-align: center; font-size: 12px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.lang-option:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.lang-option.active { background: var(--accent-pve); color: #fff; }

.hero-section { position: relative; min-height: 94vh; display: flex; align-items: center; padding-top: 84px; padding-bottom: 64px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(circle at 68% 42%, rgba(56, 189, 248, 0.22), transparent 45%), radial-gradient(circle at 58% 48%, rgba(217, 91, 22, 0.24), transparent 42%), url('assets/hero-mobile.jpg') center/cover no-repeat; z-index: -3; }
@media (min-width: 768px) { .hero-bg { background-image: radial-gradient(circle at 65% 45%, rgba(56, 189, 248, 0.2), transparent 45%), url('assets/hero-bg.jpg'); } }
.hero-grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 48px 48px; z-index: -2; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 17, 21, 0.92) 0%, rgba(15, 17, 21, 0.72) 58%, rgba(15, 17, 21, 0.45) 100%); z-index: -1; }
.hero-layout { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; width: 100%; }
@media (min-width: 960px) { .hero-layout { grid-template-columns: 1.25fr 0.85fr; } }

.system-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--accent-pvp); background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.35); padding: 5px 12px; border-radius: 3px; margin-bottom: 18px; }
.pulse-dot { width: 7px; height: 7px; background: var(--accent-pvp); border-radius: 50%; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }
.hero-logo { max-width: 460px; width: 100%; height: auto; margin-bottom: 16px; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.85)); }
.fallback-logo h1 { font-size: clamp(44px, 7vw, 72px); line-height: 1; color: #f1f3f5; }
.fallback-logo .sub-bar { display: inline-block; background: var(--accent-pve); color: #111; font-family: 'Roboto Condensed', sans-serif; font-weight: 700; padding: 3px 18px; letter-spacing: 0.18em; margin: 8px 0 18px; }
.hero-desc { font-size: 17px; color: #e2e6ec; margin-bottom: 26px; max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); max-width: 620px; }
@media (max-width: 640px) { .hero-metrics { grid-template-columns: 1fr; } }
.metric-item { display: flex; flex-direction: column; background: rgba(255, 255, 255, 0.03); border-left: 2px solid var(--accent-pve); padding: 6px 10px; }
.metric-val { font-family: 'Roboto Condensed', sans-serif; font-size: 17px; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 3px; }
.metric-lbl { font-size: 12px; color: var(--text-muted); line-height: 1.35; }

/* РАДАР И ТЕЛЕМЕТРИЯ (С ОТСТУПАМИ И ЦВЕТАМИ) */
.hero-terminal { width: 100%; }
.status-online { color: #22c55e; font-weight: 700; }
.terminal-body { padding: 20px; }

.radar-box {
  position: relative; height: 170px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, rgba(10, 12, 16, 0.96) 75%);
  border: 1px solid rgba(56, 189, 248, 0.3); border-radius: 3px;
  margin-bottom: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.radar-circle { position: absolute; border: 1px dashed rgba(56, 189, 248, 0.25); border-radius: 50%; }
.radar-circle.c1 { width: 86px; height: 86px; }
.radar-circle.c2 { width: 148px; height: 148px; }
.radar-sweep { position: absolute; width: 148px; height: 148px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(56, 189, 248, 0.38), transparent 65deg); animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.radar-blip {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  opacity: 0; transform: scale(0.5); transition: opacity 0.6s ease, transform 0.6s ease;
}
.radar-blip.active { opacity: 1; transform: scale(1); }
.radar-blip.cyan { background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }
.radar-blip.orange { background: #f97316; box-shadow: 0 0 10px #f97316; }
.radar-blip.amber { background: #f59e0b; box-shadow: 0 0 10px #f59e0b; }

.radar-label { position: absolute; bottom: 8px; left: 10px; font-size: 11px; color: #38bdf8; }

.terminal-rows { display: grid; gap: 10px; font-size: 12px; margin-bottom: 20px; padding: 0 4px; }
.t-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.t-key { color: var(--text-muted); }
.t-val { font-weight: 700; transition: color 0.3s ease; }
.val-rifts { color: #38bdf8; text-shadow: 0 0 8px rgba(56, 189, 248, 0.4); }
.val-alpha { color: #f97316; }
.highlight-cyan { color: #22c55e; }
.highlight-warn { color: #f59e0b; }
.highlight-danger { color: #ef4444; }

.terminal-cta-bright {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 13px 14px; background: rgba(56, 189, 248, 0.18); border: 1px solid var(--accent-pvp);
  color: #ffffff; text-decoration: none; font-size: 13px; font-weight: 700; border-radius: 3px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.28); transition: all 0.2s ease;
}
.terminal-cta-bright:hover { background: var(--accent-pvp); color: #0b0e13; box-shadow: 0 0 28px rgba(56, 189, 248, 0.55); }
.cta-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }

.scroll-hint { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; color: var(--text-muted); text-decoration: none; font-size: 11px; letter-spacing: 0.08em; }
.scroll-hint:hover { color: #fff; }

/* ПЕРЕКЛЮЧАТЕЛЬ ДВУХ МИРОВ С КАРТИНКАМИ */
.section-block { padding: 72px 0; }
.section-header { margin-bottom: 32px; }
.flex-between { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.section-kicker { color: var(--accent-active); font-size: 13px; display: block; margin-bottom: 6px; }
.section-header h2 { font-size: clamp(28px, 4vw, 38px); }

.world-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.world-tab { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--panel-border); color: var(--text-muted); padding: 12px 20px; font-size: 14px; font-weight: 700; cursor: pointer; border-radius: 3px; transition: 0.2s; }
.world-tab.active[data-world="pve"] { background: rgba(217, 91, 22, 0.25); border-color: var(--accent-pve); color: #fff; }
.world-tab.active[data-world="pvp"] { background: rgba(56, 189, 248, 0.25); border-color: var(--accent-pvp); color: #fff; }

.world-display { position: relative; overflow: hidden; padding: 36px; min-height: 330px; display: flex; align-items: center; border-color: var(--accent-active); transition: border-color 0.35s ease, box-shadow 0.35s ease; }
body.theme-pvp .world-display { box-shadow: 0 0 32px rgba(56, 189, 248, 0.22); }

.world-bg-layer { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.03); transition: opacity 0.55s ease, transform 0.7s ease; z-index: 0; }
.world-bg-layer.active { opacity: 1; transform: scale(1); }
.world-bg-layer.bg-pve { background-image: linear-gradient(90deg, rgba(15, 17, 21, 0.92) 32%, rgba(217, 91, 22, 0.14) 100%), url('assets/world-pve.jpg'); }
.world-bg-layer.bg-pvp { background-image: linear-gradient(90deg, rgba(11, 15, 24, 0.92) 32%, rgba(56, 189, 248, 0.22) 100%), url('assets/world-pvp.jpg'); }

.world-rift-flash { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(56, 189, 248, 0.45), transparent 70%); opacity: 0; pointer-events: none; z-index: 1; }
.world-rift-flash.flash-active { animation: riftPulse 0.45s ease-out; }
@keyframes riftPulse { 0% { opacity: 0.9; } 100% { opacity: 0; } }

.world-info { position: relative; z-index: 2; max-width: 620px; }
.world-badge { font-size: 12px; color: var(--accent-active); margin-bottom: 10px; font-weight: 700; }
.world-info h3 { font-size: 28px; margin-bottom: 12px; }
.world-info p { color: #e2e6ec; margin-bottom: 18px; }
.world-specs { font-size: 13px; color: #f1f3f5; display: grid; gap: 8px; }

/* ЦВЕТНЫЕ ШАПКИ КАРТОЧЕК УТП */
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.usp-card h3 { padding: 18px 18px 8px; font-size: 21px; color: #fff; }
.usp-card p { padding: 0 18px 20px; font-size: 14px; color: var(--text-muted); }

.bar-safe { background: rgba(34, 197, 94, 0.12); border-bottom-color: rgba(34, 197, 94, 0.35); color: #4ade80; }
.bar-cyan { background: rgba(56, 189, 248, 0.12); border-bottom-color: rgba(56, 189, 248, 0.35); color: #38bdf8; }
.bar-warn { background: rgba(245, 158, 11, 0.12); border-bottom-color: rgba(245, 158, 11, 0.35); color: #fbbf24; }
.bar-orange { background: rgba(217, 91, 22, 0.14); border-bottom-color: rgba(217, 91, 22, 0.4); color: #fb923c; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.news-card { padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.news-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.news-meta .tag { color: var(--accent-pvp); font-weight: 700; }
.news-card h3 { font-size: 20px; margin-bottom: 10px; line-height: 1.3; }
.news-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }
.read-more { color: var(--accent-pve); text-decoration: none; font-size: 13px; font-weight: 700; }

.darkos-footer { background: rgba(10, 12, 15, 0.96); border-top: 1px solid var(--panel-border); padding-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 32px; }
.studio-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.footer-note { font-size: 13px; color: var(--text-muted); max-width: 480px; }
.footer-links { display: flex; gap: 20px; align-items: center; }
.footer-links a { color: var(--text-main); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--accent-pve); }
.system-tray { background: rgba(255, 255, 255, 0.03); border-top: 1px solid var(--panel-border); padding: 6px 20px; display: flex; justify-content: flex-end; gap: 20px; font-size: 11px; color: var(--text-muted); }

.mobile-taskbar { position: fixed; bottom: 0; left: 0; right: 0; height: 56px; background: rgba(15, 17, 21, 0.96); border-top: 1px solid var(--panel-border); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; z-index: 1001; }
@media (min-width: 900px) { .mobile-taskbar { display: none; } }
.apps-trigger { background: rgba(255, 255, 255, 0.1); border: 1px solid var(--panel-border); color: #fff; padding: 8px 14px; border-radius: 3px; font-weight: 700; cursor: pointer; }
.apps-drawer { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(8px); z-index: 2000; display: none; align-items: flex-end; padding: 16px; }
.apps-drawer.open { display: flex; }
.apps-window { width: 100%; background: #16191f; border: 1px solid var(--panel-border); border-radius: 6px; overflow: hidden; margin-bottom: 48px; }
.close-btn { background: none; border: none; color: #fff; cursor: pointer; font-size: 14px; }
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; }
.app-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--panel-border); border-radius: 4px; color: var(--text-main); text-decoration: none; font-size: 12px; text-align: center; }
.app-tile.active { border-color: var(--accent-pve); color: #fff; }
.app-icon { font-size: 20px; color: var(--accent-pvp); }
/* ШИРОКОФОРМАТНЫЙ ВИДЕОПЛЕЕР 16:9 НА ГЛАВНОЙ */
.trailer-window {
  overflow: hidden;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65);
}

.trailer-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 460px;
  background: #07090d url('assets/hero-bg.jpg') center/cover no-repeat;
  overflow: hidden;
}

@media (max-width: 768px) {
  .trailer-frame-wrap { min-height: 210px; }
}

.trailer-frame-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.trailer-footer-bar {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}
