/* ═══════════════════════════════════════════
   home.css — Страница приветствия
   Эстетика: Тёмная Академия / Музейный Архив
   ═══════════════════════════════════════════ */

/* ── Переменные ──────────────────────────── */
:root {
  --bg-base:        #080604;
  --bg-surface:     #100d08;
  --gold-primary:   #c9a84c;
  --gold-dim:       #8b6914;
  --gold-glow:      rgba(201, 168, 76, 0.18);
  --parchment:      #e8d5a3;
  --parchment-dim:  #b8a07a;
  --ink:            #4a3728;
  --green-accent:   #4caf7d;

  --font-display:   'Cinzel Decorative', serif;
  --font-body:      'EB Garamond', serif;
}

/* ── Reset & Base ────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background-color: var(--bg-base);
  color: var(--parchment);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* Grain overlay — даёт ощущение состаренной бумаги */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* ── Phaser Background Canvas ────────────── */
#phaser-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

#phaser-bg canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ── Page Wrapper ────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 3rem 1rem;
}

/* ── Hero Column ─────────────────────────── */
.hero-col {
  animation: fadeInUp 0.9s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Ornaments ───────────────────────────── */
.ornament {
  font-size: 1.1rem;
  letter-spacing: 0.6em;
  color: var(--gold-primary);
  opacity: 0.55;
}
.ornament--top  { margin-bottom: 2rem; }
.ornament--bottom { margin-top: 2.5rem; }

/* ── Site Title ──────────────────────────── */
.site-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--gold-primary);
  text-shadow:
    0 0 40px rgba(201, 168, 76, 0.4),
    0 0 80px rgba(201, 168, 76, 0.15);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

/* ── Site Subtitle ───────────────────────── */
.site-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--parchment-dim);
  letter-spacing: 0.08em;
  margin-bottom: 1.8rem;
}

/* ── Golden Rule Divider ─────────────────── */
.golden-rule {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-dim) 30%,
    var(--gold-primary) 50%,
    var(--gold-dim) 70%,
    transparent 100%
  );
  margin: 0 auto 2rem;
  max-width: 380px;
  position: relative;
}
.golden-rule::before,
.golden-rule::after {
  content: '◆';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.45rem;
  color: var(--gold-primary);
}
.golden-rule::before { left: calc(30% - 6px); }
.golden-rule::after  { right: calc(30% - 6px); }

/* ── Site Description ────────────────────── */
.site-description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--parchment-dim);
  line-height: 1.85;
  max-width: 560px;
  margin: 0 auto 2.2rem;
}

/* ── Info Badge ──────────────────────────── */
.info-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  background: rgba(201, 168, 76, 0.07);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 3px;
  padding: 0.55rem 1.4rem;
  margin-bottom: 1.8rem;
}
.info-badge__number {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--gold-primary);
  line-height: 1;
}
.info-badge__label {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  color: var(--parchment-dim);
}

/* ── Category Chips ──────────────────────── */
.categories-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.8rem;
}
.category-chip {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  padding: 0.25rem 0.75rem;
  text-transform: uppercase;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.category-chip:hover {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  background: var(--gold-glow);
}

/* ── Start Button ────────────────────────── */
.btn-start {
  display: inline-block;
  text-decoration: none;
  position: relative;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold-primary), var(--gold-dim));
  border-radius: 3px;
  transition: box-shadow 0.3s;
}
.btn-start:hover {
  box-shadow: 0 0 28px rgba(201, 168, 76, 0.45), 0 0 60px rgba(201, 168, 76, 0.15);
}
.btn-start__inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  color: var(--gold-primary);
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.12em;
  padding: 0.9rem 2.8rem;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s;
}
.btn-start:hover .btn-start__inner {
  background: rgba(16, 13, 8, 0.6);
  color: var(--parchment);
}
.btn-start__icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Responsive tweaks ───────────────────── */
@media (max-width: 576px) {
  .info-badge { flex-direction: column; align-items: center; gap: 0.1rem; }
  .info-badge__number { font-size: 2.4rem; }
}