:root {
  color-scheme: light;
  --bg-color: #ffffff;
  --text-main: #000000;
  --text-secondary: #444444;
  --text-dim: #777777;
  --font-serif: 'Times New Roman', Times, 'Baskerville', 'Georgia', serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important; /* Строгие прямые углы */
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
}

/* Верхняя черная плашка */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 50px;
  background-color: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 28px;
  z-index: 100;
  border-bottom: 1px solid #1c1c1c;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.top-left-cluster {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-brand {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  user-select: none;
}

.top-brand:hover {
  opacity: 0.75;
}

/* Кнопка VoltenMC (без капса, строгий кейс) */
.top-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #777777;
  padding: 5px 16px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.top-btn:hover {
  border-color: #ffffff;
  background-color: #1a1a1a;
  transform: translateY(-1px);
}

.top-btn.active {
  border-color: #ffffff;
  background-color: #222222;
}

/* 4 слоя глубины с мягким чистым отображением */
#canvas-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#layer-1 {
  filter: blur(0px);
  opacity: 0.85;
}

#layer-2 {
  filter: blur(1.5px);
  opacity: 0.70;
}

#layer-3 {
  filter: blur(3.5px);
  opacity: 0.55;
}

#layer-4 {
  filter: blur(6.5px);
  opacity: 0.45;
}

/* ================== СТРАНИЦА /HOME ================== */
.viewport-stage {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100dvh;
}

.center-stage {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 92vw;
  user-select: none;
}

.logo-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 6px;
}

.brand-logo {
  width: 580px;
  max-width: 86vw;
  max-height: 52vh;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.05));
}

.brand-logo:hover {
  transform: scale(1.025);
}

.hero-phrase {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #000000;
  margin: 4px 0 0 0;
  padding: 0;
  line-height: 1.15;
  text-align: center;
  width: 100%;
}

/* ================== СТРАНИЦА /VoltenMC ================== */
.volten-stage {
  position: relative;
  z-index: 1;
  width: 100vw;
  min-height: 100dvh;
  padding-top: 86px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.volten-header {
  text-align: center;
  margin-bottom: 28px;
}

/* Заголовок VoltenMC (без капса) */
.volten-title {
  font-family: var(--font-serif);
  font-size: 4.4rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #000000;
  margin-bottom: 8px;
  line-height: 1.1;
}

.volten-loader {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: #444444;
  background-color: #f3f3f3;
  border: 1px solid #d4d4d4;
  display: inline-block;
  padding: 6px 18px;
}

/* Плашка скачивания */
.modpack-card {
  width: 100%;
  max-width: 620px;
  background: #ffffff;
  border: 1px solid #000000;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin-bottom: 16px;
  user-select: none;
}

.btn-download-modpack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  padding: 16px 24px;
  border: 1px solid #000000;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-download-modpack:hover {
  background-color: #1f1f1f;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-download-modpack:active {
  transform: translateY(0);
}

.download-meta {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #444444;
  text-align: center;
  font-weight: 600;
}

/* Поле с IP сервера */
.server-ip-plate {
  width: 100%;
  max-width: 620px;
  background: #ffffff;
  border: 1px solid #222222;
  display: flex;
  align-items: stretch;
  padding: 4px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.ip-label {
  display: flex;
  align-items: center;
  background-color: #f0f0f0;
  border-right: 1px solid #d4d4d4;
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #333333;
}

.ip-value {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: 0.04em;
}

.btn-copy-ip {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  padding: 10px 22px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-ip:hover {
  background-color: #262626;
}

/* Плашка со списком модов (Mods: строго слева) */
.mods-card {
  width: 100%;
  max-width: 620px;
  background: #ffffff;
  border: 1px solid #222222;
  padding: 20px 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.mods-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #000000;
  margin-bottom: 12px;
  text-align: left; /* Строго слева! */
}

.mods-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mods-list li {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #222222;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mods-list li::before {
  content: "-";
  font-family: var(--font-mono);
  color: #444444;
  font-weight: 700;
}

@media (max-width: 680px) {
  .volten-title {
    font-size: 2.8rem;
  }
  .modpack-card, .server-ip-plate, .mods-card {
    max-width: 92vw;
  }
  .server-ip-plate {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }
  .ip-label {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 4px 0;
  }
}
