/* ==========================================================================
   Star Letter — Shared components
   Button system used across the acts.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85em;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid rgba(255, 217, 160, 0.42);
  border-radius: 2px;
  background: rgba(8, 10, 24, 0.12);
  color: #ffe7c5;
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.45s ease,
    color 0.35s ease,
    transform 0.3s ease;
}

.btn-ghost::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 217, 160, 0.12);
  pointer-events: none;
  transition: border-color 0.35s ease;
}

.btn-ghost:hover {
  background: rgba(255, 217, 160, 0.075);
  border-color: rgba(255, 217, 160, 0.78);
  box-shadow: 0 0 34px rgba(255, 217, 160, 0.13);
}

.btn-ghost:hover::after { border-color: rgba(255, 217, 160, 0.24); }
.btn-ghost:active { transform: translateY(1px); }

.btn-ghost .arrow {
  display: inline-block;
  font-size: 14px;
  transition: transform 0.35s var(--ease-out);
}

.btn-ghost:hover .arrow { transform: translateX(4px); }

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 54px;
  min-width: 168px;
  padding: 0 30px;
  border: 1px solid rgba(255, 226, 182, 0.9);
  border-radius: 3px;
  background: linear-gradient(135deg, #ffc0d2 0%, #ff8fb8 44%, #ffb489 100%);
  color: #33101f;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  cursor: pointer;
  transform: scale(var(--yes-grow, 1));
  transform-origin: center;
  filter: drop-shadow(0 0 var(--yes-glow, 16px) rgba(255, 143, 184, 0.26));
  box-shadow:
    0 8px 30px rgba(255, 111, 159, 0.28),
    0 0 42px rgba(255, 143, 184, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition:
    transform 0.5s var(--ease-out),
    filter 0.5s ease,
    box-shadow 0.5s ease;
  animation: btnBreathe 3.8s ease-in-out infinite;
  overflow: hidden;
}

.btn-primary > span { position: relative; z-index: 1; }

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(80, 22, 40, 0.16);
  border-radius: 1px;
  pointer-events: none;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -80%;
  width: 55%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: rotate(20deg);
  transition: left 0.8s var(--ease-out);
  pointer-events: none;
}

.btn-primary:hover::after { left: 130%; }

.btn-primary:hover {
  box-shadow:
    0 10px 40px rgba(255, 111, 159, 0.36),
    0 0 64px rgba(255, 143, 184, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.btn-primary:active { filter: brightness(0.97) drop-shadow(0 0 18px rgba(255, 143, 184, 0.3)); }

.btn-primary .heart-sym {
  font-size: 1.15em;
  font-weight: 400;
  transform: translateY(-1px);
}

.btn-secondary {
  width: 100%;
  height: 100%;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 247, 240, 0.84);
  font-family: var(--font-serif);
  font-size: 13.5px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition:
    transform 0.42s var(--ease-out),
    opacity 0.55s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
  will-change: transform;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff7f0;
}

.btn-secondary:active { background: rgba(255, 255, 255, 0.15); }

.btn-dawn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: 46px;
  padding: 10px 24px;
  border: 1px solid rgba(74, 47, 42, 0.38);
  border-radius: 2px;
  background: rgba(255, 246, 236, 0.3);
  color: #3d2027;
  font-family: var(--font-serif);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
}

.btn-dawn:hover {
  background: rgba(255, 246, 236, 0.6);
  border-color: rgba(74, 47, 42, 0.6);
}

.btn-dawn:active { transform: translateY(1px); }
.btn-dawn .sym { font-size: 12px; opacity: 0.75; }

.btn-ghost:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.music-toggle:focus-visible {
  outline: 2px solid rgba(255, 230, 190, 0.95);
  outline-offset: 4px;
}

.btn-dawn:focus-visible {
  outline: 2px solid rgba(66, 31, 39, 0.8);
  outline-offset: 4px;
}
