:root {
  --bg: #f3f6ff;
  --text: #1a1a1a;
  --card: #ffffff;
  --accent: #2f5eff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 20px;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.site-header {
  text-align: center;
  margin-bottom: 18px;
}

.pages-container {
  max-width: 900px;
  margin: 0 auto;
}

.page {
  display: none;
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page.active {
  display: block;
}

.page h2 {
  margin-top: 0;
  color: var(--accent);
}

.map-wrap {
  margin-top: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #dfe5ff;
}

.map-wrap iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

.controls {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  background: #dbe4ff;
  color: #1735a3;
}

button:hover {
  filter: brightness(0.95);
}

body.red-mode {
  background: #770000;
  color: #ffe3e3;
}

body.red-mode .page {
  background: #a10000;
}

body.red-mode .page h2 {
  color: #ffd9d9;
}

body.red-mode button {
  background: #ffb0b0;
  color: #6a0000;
}

body.chaos-mode .chaos-item {
  position: absolute;
  z-index: 1000;
  transition: transform 0.8s ease;
}
