:root {
  --bg: #fff8f0;
  --accent: #e8734a;
  --accent-dark: #c85a35;
  --text: #333333;
  --error: #c0392b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 24px;
}

.screen {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.hidden {
  display: none;
}

.screen.hidden {
  opacity: 0;
}

.title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.subtitle {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin: 0;
  color: var(--text);
}

.tagline {
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 400;
  margin: 0;
  color: var(--text);
}

.btn {
  font-size: 1.1rem;
  padding: 14px 36px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  background: var(--accent-dark);
}

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

.pin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.pin-input {
  font-size: 1.5rem;
  letter-spacing: 0.5rem;
  text-align: center;
  width: 140px;
  padding: 12px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}

.pin-input:focus {
  outline: none;
  border-color: var(--accent-dark);
}

.pin-error {
  color: var(--error);
  font-size: 0.95rem;
  margin: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 480px) {
  .gallery img {
    height: 160px;
  }
}

.audio-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, transform 0.1s ease;
}

.audio-toggle:hover {
  background: var(--accent-dark);
}

.audio-toggle:active {
  transform: scale(0.95);
}
