:root {
  --graphite: #17161a;
  --graphite-2: #221f24;
  --cold-gray: #9a969c;
  --burgundy: #4a0e1f;
  --deep-red: #8b0d2b;
  --red-accent: #c4103a;
  --blush: #e7c9cf;
  --text: #f3ecee;

  --card-bg: rgba(40, 27, 31, 0.12);
  --card-bg-hover: rgba(46, 27, 33, 0.18);

  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color: var(--text);
  background: radial-gradient(120% 90% at 50% 15%, var(--burgundy) 0%, var(--graphite) 55%, #0c0b0d 100%);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Background video ---------- */

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

/* ---------- Sound toggle ---------- */

.sound-toggle {
  position: fixed;
  top: max(1.25rem, env(safe-area-inset-top));
  right: max(1.25rem, env(safe-area-inset-right));
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--red-accent);
  background: var(--card-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 0 16px rgba(196, 16, 58, 0.5);
  animation: sound-toggle-glow 2.4s ease-in-out infinite;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease);
}

.sound-toggle svg {
  width: 20px;
  height: 20px;
}

/* Off (default): glows red to draw the eye. On: calms down to a plain glass button. */
.sound-toggle--playing {
  color: var(--text);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  animation: none;
}

@keyframes sound-toggle-glow {
  0%,
  100% {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 0 14px rgba(196, 16, 58, 0.4);
  }
  50% {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 0 26px rgba(196, 16, 58, 0.85);
  }
}

.sound-toggle:hover {
  transform: scale(1.08);
  background: var(--card-bg-hover);
}

.sound-toggle:not(.sound-toggle--playing):hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32), 0 0 32px rgba(196, 16, 58, 0.9);
}

.sound-toggle--playing:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32), 0 0 20px rgba(196, 16, 58, 0.18);
}

.sound-toggle:active {
  transform: scale(0.96);
}

.sound-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 16, 58, 0.45);
}

/* ---------- Layout ---------- */

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: max(6rem, calc(env(safe-area-inset-top) + 5.5rem)) max(1.5rem, env(safe-area-inset-right))
    max(2.5rem, calc(env(safe-area-inset-bottom) + 1.5rem)) max(1.5rem, env(safe-area-inset-left));
  text-align: center;
}

/* ---------- Brand ---------- */

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.links-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  width: 100%;
}

.brand__name {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  letter-spacing: 0.09em;
  color: var(--text);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 0 40px rgba(196, 16, 58, 0.25);
}

.brand__tagline {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blush);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* ---------- Link cards ---------- */

.links {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  width: 100%;
  max-width: 380px;
}

.link-card {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  background: var(--card-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.link-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 38%);
  opacity: 0.4;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.link-card__label {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.link-card:hover {
  transform: translateY(-3px) scale(1.015);
  background: var(--card-bg-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 34px rgba(196, 16, 58, 0.16);
}

.link-card:hover::after {
  opacity: 1;
}

.link-card:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3), 0 0 22px rgba(196, 16, 58, 0.22);
}

/* HOTTIE'S CONTENT is the featured link — it gets a distinct, more intense
   red highlight on hover instead of the neutral glow the other cards get. */
#link-hottie:hover {
  background: rgba(196, 16, 58, 0.24);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4), 0 0 44px rgba(196, 16, 58, 0.55);
}

#link-hottie:hover .link-card__label {
  color: #ffe3e9;
  text-shadow: 0 0 16px rgba(196, 16, 58, 0.8);
}

#link-hottie:active {
  background: rgba(196, 16, 58, 0.3);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35), 0 0 30px rgba(196, 16, 58, 0.6);
}

.link-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 16, 58, 0.45), 0 14px 34px rgba(0, 0, 0, 0.38);
}

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(10, 8, 9, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-overlay[hidden] {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  width: 100%;
  max-width: 340px;
  text-align: center;
  padding: 2.2rem 1.9rem 1.9rem;
  border-radius: 16px;
  background: rgba(28, 22, 25, 0.72);
  border: 1px solid rgba(196, 16, 58, 0.4);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.modal__badge {
  margin: 0 0 0.6rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 2.1rem;
  letter-spacing: 0.05em;
  color: var(--red-accent);
  text-shadow: 0 0 24px rgba(196, 16, 58, 0.4);
}

.modal__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.modal__text {
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
  color: var(--blush);
  line-height: 1.5;
}

.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.modal__btn {
  min-height: 48px;
  border-radius: 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.modal__btn--confirm {
  border: 1px solid var(--red-accent);
  background: linear-gradient(180deg, rgba(196, 16, 58, 0.9), rgba(139, 13, 43, 0.9));
  color: #fff;
}

.modal__btn--confirm:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(214, 24, 68, 0.95), rgba(155, 15, 48, 0.95));
}

.modal__btn--cancel {
  border: 1px solid rgba(198, 160, 168, 0.35);
  background: transparent;
  color: var(--cold-gray);
}

.modal__btn--cancel:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 160, 168, 0.6);
  color: var(--text);
}

.modal__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 16, 58, 0.45);
}

.modal__btn:active {
  transform: translateY(0) scale(0.98);
}

/* ---------- Responsive ---------- */

@media (max-width: 380px) {
  .links {
    max-width: 320px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .link-card,
  .link-card::after,
  .modal__btn,
  .sound-toggle {
    transition: none;
    animation: none;
  }
  .link-card:hover,
  .link-card:active {
    transform: none;
  }
  .modal__btn:hover,
  .modal__btn:active {
    transform: none;
  }
  .sound-toggle:hover,
  .sound-toggle:active {
    transform: none;
  }
}
