:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --ink: #1a1a2e;
  --muted: #5c6b8f;
  --accent: #b5158a;
  --accent-soft: #f0d0e7;
  --border: #e8e6e0;
  --shadow: 0 8px 30px rgba(26, 26, 46, 0.08);
  --radius: 16px;
}

body.theme-dark {
  --bg: #10131a;
  --surface: #1a1e27;
  --ink: #e8ebf2;
  --muted: #9aa5bd;
  --border: #2a2f3b;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-header {
  text-align: center;
  padding: 2rem 1rem 0.5rem;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hashtags {
  margin: 0.5rem 0 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}

.stage {
  margin: 0 0 1.25rem;
  text-align: center;
}

.responsive {
  width: 100%;
  height: auto;
  max-width: 1200px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
  display: block;
  margin: 0 auto;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.button {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.button:active { transform: scale(0.97); }

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.button-primary:hover { filter: brightness(1.08); }

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.button-secondary:hover { background: var(--accent-soft); }

.gallery {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery img {
  flex: 0 0 auto;
  width: 112px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 3px solid transparent;
  opacity: 0.85;
  transition: border-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
  scroll-snap-align: start;
}

.gallery img:hover { opacity: 1; transform: translateY(-2px); }

.gallery img.active {
  border-color: var(--accent);
  opacity: 1;
}

.site-footer {
  text-align: center;
  padding: 1.25rem 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 560px) {
  .controls { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .gallery img { width: 88px; height: 66px; }
}
