* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #0f0f11;
  color: #e5e7eb;
  overflow-x: hidden;
  transition: background-color 1.2s ease, color 1.2s ease;
}

.custom-scrollbar {
  position: fixed;
  top: 0.5rem;
  right: 0.35rem;
  bottom: 0.5rem;
  z-index: 100;
  width: 0.55rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.custom-scrollbar.is-visible,
.custom-scrollbar:hover {
  opacity: 1;
}

.custom-scrollbar-track {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  touch-action: none;
  border: 1px solid rgba(184, 115, 51, 0.25);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.55);
}

.custom-scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 2.25rem;
  border: 1px solid rgba(255, 233, 157, 0.55);
  border-radius: 999px;
  background: linear-gradient(180deg, #f3e5ab, #d4af37 55%, #b87333);
  box-shadow: 0 0 0.8rem rgba(212, 175, 55, 0.35);
  pointer-events: auto;
  cursor: grab;
}

.custom-scrollbar-thumb:active {
  cursor: grabbing;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.012),
    rgba(255,255,255,0.012) 1px,
    transparent 1px,
    transparent 3px
  );
}

.font-cinzel {
  font-family: 'Cinzel', serif;
}

header {
  position: relative;
  gap: 1.5rem;
}

header::after {
  content: "";
  position: absolute;
  inset: auto 6% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.7), transparent);
}

footer {
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0 6% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.7), transparent);
}

.thursday-video {
  display: block;
  width: min(100%, 42rem);
  max-height: min(42vh, 24rem);
  margin: 0 auto;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 1rem;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.16);
  object-fit: contain;
}

.thursday-video-wrapper {
  position: relative;
  width: min(100%, 42rem);
  margin: 0 auto;
}

#felizjueves h1 {
  max-width: 90%;
  margin: 0 auto 1rem;
  font-size: clamp(1.65rem, 4.5vw, 3.5rem);
}

.thursday-video-wrapper .thursday-video {
  width: 100%;
}

.thursday-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.52);
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.thursday-video-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.thursday-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  padding: 0;
  font-family: 'Cinzel', serif;
  font-size: 0;
  letter-spacing: 0.08em;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.thursday-play-button:hover,
.thursday-play-button:focus-visible {
  transform: translate(-50%, -50%) !important;
}

.thursday-play-button::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 0.3rem;
  border-top: 0.8rem solid transparent;
  border-bottom: 0.8rem solid transparent;
  border-left: 1.15rem solid #090909;
}

.thursday-play-button.hidden {
  display: none;
}

.thursday-intro button:disabled {
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(71, 85, 105, 0.32);
  color: rgba(203, 213, 225, 0.48);
  box-shadow: none;
  opacity: 0.52;
  filter: grayscale(0.7);
}

#thursday-continue:disabled {
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: rgba(71, 85, 105, 0.32) !important;
  color: rgba(203, 213, 225, 0.48) !important;
  box-shadow: none !important;
  opacity: 0.52 !important;
  filter: grayscale(0.7) !important;
}

.audio-player {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.35rem 0.5rem 0.35rem 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 0 18px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.audio-player-label {
  flex: 0 0 auto;
  color: rgba(243, 229, 171, 0.8);
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.audio-player-hunger-games {
  border-color: rgba(255, 105, 35, 0.58);
  background: rgba(40, 13, 5, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 180, 70, 0.08), 0 0 22px rgba(255, 75, 15, 0.2);
}

.audio-player-hunger-games .audio-player-label {
  color: #ffbd70;
}

.audio-player-hunger-games .audio-controls {
  accent-color: #f26a2e;
  filter: sepia(0.8) saturate(2) hue-rotate(325deg) brightness(1.12);
}

.audio-player-hunger-games .audio-loop-button {
  border-color: rgba(255, 115, 45, 0.65);
  background: rgba(72, 24, 8, 0.75);
  color: #ffc27d;
}

.audio-player-hunger-games .audio-loop-button.is-active {
  border-color: rgba(255, 170, 70, 0.95);
  background: rgba(210, 65, 15, 0.3);
  color: #ffd49c;
}

.audio-controls {
  display: block;
  flex: 1 1 auto;
  width: auto;
  height: 2rem;
  min-width: 8rem;
  accent-color: #d4af37;
  color-scheme: dark;
  border-radius: 999px;
  filter: sepia(0.35) saturate(1.2);
}

.audio-controls::-webkit-media-controls-panel {
  background: linear-gradient(90deg, rgba(28, 23, 15, 0.96), rgba(13, 13, 15, 0.96));
}

.audio-controls::-webkit-media-controls-play-button,
.audio-controls::-webkit-media-controls-mute-button {
  filter: sepia(1) saturate(2.2) hue-rotate(355deg) brightness(1.15);
}

.audio-controls::-webkit-media-controls-timeline {
  accent-color: #d4af37;
}

.audio-controls::-webkit-media-controls-current-time-display,
.audio-controls::-webkit-media-controls-time-remaining-display {
  color: #f3e5ab;
}

.audio-loop-button {
  flex: 0 0 auto;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  background: rgba(24, 20, 14, 0.72);
  color: rgba(229, 231, 235, 0.78);
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.audio-loop-button:hover,
.audio-loop-button:focus-visible {
  border-color: rgba(212, 175, 55, 0.8);
  color: #f3e5ab;
  outline: none;
}

.audio-loop-button.is-active {
  border-color: rgba(212, 175, 55, 0.85);
  background: rgba(212, 175, 55, 0.18);
  color: #f3d27a;
}

#text-intro-title,
#text-history-title,
#text-q-title,
#text-yes-1,
#text-no-1,
#movie-title-display,
#text-new-sub,
#text-q-main {
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.08);
}

#movie-title-display {
  white-space: pre-line;
}

#dynamic-background {
  position: fixed;
  inset: 0;
  z-index: -5;
  overflow: hidden;
  background: #08090b;
  transition: background 1.3s ease;
}

#hunger-games-page #dynamic-background {
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(8, 3, 1, 0.78)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(8, 3, 1, 0.78));
}

#hunger-games-page .audio-player {
  display: none;
}

#hunger-games-page #background-overlay {
  background:
    linear-gradient(to bottom, rgba(255, 130, 30, 0.08), rgba(0, 0, 0, 0.82)),
    radial-gradient(circle at 50% 75%, rgba(255, 112, 20, 0.32), transparent 32%);
}

.hunger-games-intro {
  text-shadow: 0 0 24px rgba(255, 119, 24, 0.45);
  animation: hungerGamesReveal 1.2s ease both;
}

@keyframes hungerGamesReveal {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(18px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#history-media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 6s ease;
}

#history-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#history-media.visible {
  opacity: 0.72;
  transform: scale(1);
}

#background-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.75));
  transition: background 1.2s ease;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.9), inset 0 0 250px rgba(0, 0, 0, 0.5);
}

.film-grain {
  position: fixed;
  inset: -50%;
  z-index: 40;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.8'/%3E%3C/svg%3E");
  animation: grainMove 0.25s steps(2) infinite;
}

@keyframes grainMove {
  0% { transform: translate(0, 0); }
  25% { transform: translate(2%, -2%); }
  50% { transform: translate(-2%, 2%); }
  75% { transform: translate(2%, 2%); }
  100% { transform: translate(-2%, -2%); }
}

.ember {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 241, 168, 1) 0%, rgba(255, 151, 35, 0.95) 42%, transparent 75%);
  filter: drop-shadow(0 0 6px rgba(255, 139, 32, 0.8)) drop-shadow(0 0 12px rgba(255, 196, 63, 0.55));
  animation: floatUp linear infinite;
  display: none;
}

body[data-page="intro"] .ember,
body[data-page="invitation"] .ember,
body[data-page="hungerGames"] .ember,
body[data-page="accepted"] .ember,
body[data-page="thanks"] .ember {
  display: block;
}

body[data-page="thanks"] .ember,
body[data-page="invitation"] .ember {
  background: radial-gradient(circle, #ffb3bd 0%, rgba(190, 24, 55, 0.95) 45%, transparent 78%);
  filter: drop-shadow(0 0 6px rgba(190, 24, 55, 0.85)) drop-shadow(0 0 12px rgba(128, 12, 35, 0.65));
}

body[data-page="thanks"] .ember:nth-child(2n),
body[data-page="invitation"] .ember:nth-child(2n) {
  background: radial-gradient(circle, #ff7b91 0%, rgba(163, 18, 48, 0.95) 55%, transparent 80%);
  filter: drop-shadow(0 0 7px rgba(163, 18, 48, 0.9));
}

body[data-page="thanks"] .ember:nth-child(3n),
body[data-page="invitation"] .ember:nth-child(3n) {
  background: radial-gradient(circle, #ffd0d6 0%, rgba(128, 12, 35, 0.95) 50%, transparent 75%);
}

body[data-page="accepted"] .ember {
  background: radial-gradient(circle, #ede9fe 0%, rgba(109, 40, 217, 0.95) 45%, transparent 78%);
  filter: drop-shadow(0 0 6px rgba(109, 40, 217, 0.85)) drop-shadow(0 0 12px rgba(76, 29, 149, 0.65));
}

body[data-page="accepted"] .ember:nth-child(2n) {
  background: radial-gradient(circle, #c4b5fd 0%, rgba(124, 58, 237, 0.95) 55%, transparent 80%);
  filter: drop-shadow(0 0 7px rgba(124, 58, 237, 0.9));
}

body[data-page="accepted"] .ember:nth-child(3n) {
  background: radial-gradient(circle, #ddd6fe 0%, rgba(91, 33, 182, 0.95) 50%, transparent 75%);
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) translateX(0) scale(0.2);
    opacity: 0;
  }
  20% { opacity: 0.8; }
  80% { opacity: 0.65; }
  100% {
    transform: translateY(-35vh) translateX(30px) scale(1.2);
    opacity: 0;
  }
}

.section-view {
  width: 100%;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hidden-section {
  display: none;
  opacity: 0;
  transform: translateY(25px);
  pointer-events: none;
}

.active-section {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: sectionEnter 0.8s ease forwards;
}

#intro-stage {
  height: 100%;
  min-height: max(20rem, calc(100vh - 10rem));
  padding: 1rem 0;
}

#intro-stage > .section-view {
  position: absolute;
  inset: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s ease;
}

#intro-stage > .hidden-section {
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: translateY(25px) scale(0.98);
  pointer-events: none;
}

#intro-stage > .active-section {
  visibility: visible;
}

#intro-stage > .intro-section-leaving {
  opacity: 0;
  transform: translateY(-25px) scale(1.02);
  pointer-events: none;
}

#felizjueves > div {
  width: 100%;
}

#felizjueves {
  gap: 1.25rem;
}

#section-hunger-games {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  min-height: min(34rem, calc(100vh - 12rem));
  padding: 2rem 1rem;
}

#section-hunger-games.hidden-section {
  display: none;
}

#section-hunger-games > p {
  margin: 0;
  line-height: 1.7;
}

#section-hunger-games > h1 {
  margin: 0;
  line-height: 1.1;
  text-align: center;
  font-size: clamp(2.5rem, 7vw, 5rem);
}

#section-hunger-games > .navigation-stack {
  margin-top: 0.75rem;
}

@keyframes sectionEnter {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.history-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: linear-gradient(180deg, rgba(22,18,16,0.7), rgba(10,10,12,0.92));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  transition: opacity 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.history-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
  z-index: 1;
}

.history-card.active {
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 0 25px rgba(212,175,55,0.16), inset 0 0 0 1px rgba(255,255,255,0.04);
}

.history-card.dimmed {
  opacity: 0.45;
}

#history-cards button {
  min-height: 130px;
}

#section-history,
#section-movie,
#section-invitation,
#section-response-yes,
#section-response-no {
  position: relative;
}

#invitation-actions {
  min-height: 120px;
}

#btn-no {
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(17, 15, 18, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  transition: transform 0.25s ease, opacity 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

#btn-no:hover {
  border-color: rgba(212, 175, 55, 0.8);
  background: rgba(30, 25, 20, 0.7);
}

.gold-button {
  background: linear-gradient(135deg, #f3d27a 0%, #d4af37 35%, #b8860b 100%);
  color: #090909;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25), inset 0 1px 0 rgba(255,255,255,0.35);
  border: 1px solid rgba(255, 233, 157, 0.35);
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.gold-button:hover {
  background: linear-gradient(135deg, #f7e7af 0%, #f3d27a 30%, #d4af37 100%);
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0 32px rgba(212, 175, 55, 0.5), inset 0 1px 0 rgba(255,255,255,0.5);
  filter: saturate(1.2);
}

@media (max-width: 640px) {
  header {
    flex-wrap: wrap;
    gap: 0.85rem;
  }

  .audio-player {
    order: 3;
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }

  .audio-controls {
    flex: 1 1 auto;
    width: auto;
  }

  #invitation-actions {
    flex-direction: row;
    gap: 0.75rem;
  }

  #invitation-actions a,
  #invitation-actions button {
    width: auto !important;
    min-width: 0;
    padding: 0.75rem 1.15rem;
    font-size: 0.68rem;
  }

  #invitation-actions #btn-no {
    padding-right: 0.9rem;
    padding-left: 0.9rem;
  }

  .vignette {
    box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.85);
  }

  #history-media.visible {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.back-button {
  position: static;
  margin: 1.25rem auto 0;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(10, 10, 12, 0.72);
  color: #f5d98d;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.15);
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.back-link {
  display: inline-flex;
  align-items: center;
  margin: 0 auto 1.5rem;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  color: rgba(243, 229, 171, 0.78);
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: #f3d27a;
  transform: translateX(-3px);
  outline: none;
}

.navigation-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.choice-form {
  max-width: 46rem;
  margin: 2rem auto 0;
  padding: 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(30, 25, 18, 0.74), rgba(10, 10, 12, 0.7));
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 233, 157, 0.08);
  text-align: center;
  backdrop-filter: blur(8px);
}

.choice-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-form fieldset + fieldset {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.22);
}

.choice-form legend {
  width: 100%;
  margin-bottom: 0.8rem;
  color: #f3e5ab;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.choice-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 12rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #d1d5db;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.choice-option:hover {
  border-color: rgba(212, 175, 55, 0.58);
  background: rgba(212, 175, 55, 0.1);
  color: #f3e5ab;
  transform: translateY(-1px);
}

.choice-option:has(input:checked) {
  border-color: rgba(243, 210, 122, 0.85);
  background: rgba(212, 175, 55, 0.18);
  color: #f3e5ab;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.12);
}

.days-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.choice-option input {
  accent-color: #d4af37;
}

.choice-form fieldset:first-child {
  display: block;
}

.district-switch {
  position: relative;
  display: flex;
  width: min(100%, 34rem);
  overflow: hidden;
  isolation: isolate;
  margin: 0 auto;
  padding: 0.35rem;
  gap: 0.35rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 999px;
  background: rgba(5, 5, 6, 0.72);
}

.district-switch::before {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0.35rem;
  width: calc(50% - 0.525rem);
  border: 1px solid rgba(255, 233, 157, 0.38);
  border-radius: 999px;
  background: linear-gradient(135deg, #f3d27a, #d4af37 60%, #b8860b);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.22);
  content: "";
  opacity: 0;
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease, background-color 0.25s ease;
  pointer-events: none;
}

.district-switch:has(input:checked)::before {
  opacity: 1;
}

.district-switch:has(input[value="tacuarembo"]:checked)::before {
  transform: translateX(calc(100% + 0.35rem));
}

.district-switch-option {
  position: relative;
  flex: 1 1 0;
  z-index: 1;
  cursor: pointer;
}

.district-switch-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.district-switch-option span {
  display: block;
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #d1d5db;
  font-size: 0.82rem;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.district-switch-option:hover span {
  color: #f3e5ab;
}

.district-switch-option:has(input:checked) span {
  color: #090909;
  transform: scale(1.02);
}

.district-switch-option input:focus-visible + span {
  outline: 2px solid #f3e5ab;
  outline-offset: 3px;
}

.date-calendars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.date-calendar {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 1rem;
  background: rgba(5, 5, 6, 0.45);
}

.date-calendar-title {
  margin: 0 0 0.7rem;
  color: #f3e5ab;
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: capitalize;
}

.date-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.date-calendar-weekday,
.date-calendar-empty,
.date-calendar-day {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
}

.date-calendar-weekday {
  color: rgba(243, 229, 171, 0.68);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
}

.date-calendar-day {
  cursor: pointer;
}

.date-calendar-day input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.date-calendar-day span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #d1d5db;
  font-size: 0.75rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.date-calendar-day:hover span {
  border-color: rgba(212, 175, 55, 0.55);
  color: #f3e5ab;
}

.date-calendar-day:has(input:checked) span {
  border-color: rgba(255, 233, 157, 0.4);
  background: #d4af37;
  color: #090909;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.25);
}

.date-calendar-day input:focus-visible + span {
  outline: 2px solid #f3e5ab;
  outline-offset: 2px;
}

.date-calendar-day:has(input:disabled) {
  cursor: not-allowed;
}

.date-calendar-day:has(input:disabled) span {
  color: rgba(209, 213, 219, 0.25);
}

#submit-response-button {
  display: block;
  margin: 1.25rem auto 0;
}

@media (max-width: 640px) {
  .choice-form {
    padding: 1.1rem;
  }

  .choice-option {
    min-width: 10rem;
  }

  .date-calendars {
    grid-template-columns: minmax(0, 1fr);
  }
}

.premiere-badge {
  position: absolute;
  top: 0;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
}

.dodge-counter {
  display: block;
  margin-top: 0.35rem;
  color: rgba(229, 231, 235, 0.55);
  font-size: 0.65rem;
  font-style: normal;
  letter-spacing: 0.08em;
}

.dodge-completion-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.dodge-completion-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.dodge-completion-modal img,
.dodge-completion-modal video {
  width: min(28rem, 82vw);
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border: 2px solid rgba(212, 175, 55, 0.75);
  border-radius: 1rem;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.35);
}

.sad-rat {
  display: block;
  width: min(260px, 80vw);
  margin: 1.5rem auto 0;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 1rem;
  opacity: 0.9;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.55);
}

.back-button:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, 0.8);
  background: rgba(18, 14, 10, 0.8);
}

/* ==========================================================================
   Accepted Section - White Smoke & Crimson Aesthetic
   - Background: Dynamic White Smoke simulation (soft billowing clouds)
   - Elements outside red box: High-contrast colors tuned for white background
   - Box / Containers: Red tones (#800c23)
   - Switch: Muted purple selector, soft pink selected dates
   - Submit Button: Grass green
   - Audio Player: Black exterior, white interior, white loop button
   - Preserved: Golden check circle (luminous pearl core with rich gold ring)
   ========================================================================== */

/* Page Background when Accepted section is active - White Smoke Atmosphere */
body[data-page="accepted"] #dynamic-background {
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #f8fafc 35%, #e2e8f0 70%, #cbd5e1 100%) !important;
}

body[data-page="accepted"] #history-media {
  background-image: none !important;
}

body[data-page="accepted"] #history-media.visible {
  opacity: 1 !important;
}

body[data-page="accepted"] #background-overlay {
  background: transparent !important;
  display: none !important;
}

body[data-page="accepted"] .vignette {
  display: none !important;
}

body[data-page="accepted"] .film-grain {
  opacity: 0.02 !important;
}

body[data-page="accepted"] ::selection {
  background-color: #800c23;
  color: #ffffff;
}

/* Back navigation link in Accepted section (Clear on White Smoke) */
#section-response-yes .back-link,
body[data-page="accepted"] .back-link {
  color: #4a1d2e;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
}

#section-response-yes .back-link:hover,
#section-response-yes .back-link:focus-visible,
body[data-page="accepted"] .back-link:hover,
body[data-page="accepted"] .back-link:focus-visible {
  color: #800c23;
  text-shadow: 0 0 10px rgba(128, 12, 35, 0.35);
}

/* Preserved Golden Check Circle (Adapted for high definition on White Smoke) */
#section-response-yes > div:has(svg),
body[data-page="accepted"] #section-response-yes > div:has(svg) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(254, 248, 225, 0.95)) !important;
  border: 2.5px solid #b8860b !important;
  color: #8f6515 !important;
  box-shadow: 0 8px 25px rgba(184, 134, 11, 0.28), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

/* Headings & Text in Accepted section (Visible on White Smoke) */
#section-response-yes #text-yes-1,
body[data-page="accepted"] #text-yes-1 {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: initial;
  color: #15101a;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 2px 8px rgba(0, 0, 0, 0.1);
}

#section-response-yes #text-yes-2,
body[data-page="accepted"] #text-yes-2 {
  color: #800c23;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 2px 14px rgba(128, 12, 35, 0.25);
}

#section-response-yes #text-yes-3,
body[data-page="accepted"] #text-yes-3 {
  color: #4b3959;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
}

/* Red Box / Card in Accepted section (#800c23 tones) */
#section-response-yes .choice-form,
body[data-page="accepted"] .choice-form {
  border: 1px solid rgba(160, 20, 45, 0.45);
  background: linear-gradient(145deg, rgba(128, 12, 35, 0.94) 0%, rgba(95, 8, 26, 0.96) 55%, rgba(65, 5, 18, 0.95) 100%);
  box-shadow: 0 1.25rem 3.5rem rgba(40, 5, 12, 0.28), 0 0 35px rgba(128, 12, 35, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}

#section-response-yes .choice-form fieldset + fieldset,
body[data-page="accepted"] .choice-form fieldset + fieldset {
  border-top-color: rgba(220, 60, 85, 0.35);
}

#section-response-yes .choice-form legend,
body[data-page="accepted"] .choice-form legend {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: initial;
  color: #f3e5ab;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* Muted purple district switch */
body[data-page="accepted"] #section-response-yes .district-switch {
  overflow: hidden;
  border-color: rgba(103, 80, 142, 0.65);
  background: rgba(30, 25, 39, 0.9);
  box-shadow: none;
}

body[data-page="accepted"] #section-response-yes .district-switch::before {
  width: calc(50% - 0.525rem);
  border: 0 !important;
  background: #d6bd62 !important;
  box-shadow: none !important;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease, background-color 0.25s ease;
}

body[data-page="accepted"] #section-response-yes .district-switch:has(input[value="rivera"]:checked)::before {
  background: #d6bd62 !important;
}

body[data-page="accepted"] #section-response-yes .district-switch:has(input[value="tacuarembo"]:checked)::before {
  background: #e4ce7d !important;
}

body[data-page="accepted"] #section-response-yes .district-switch-option span {
  color: #f5eaed;
  text-shadow: none !important;
}

body[data-page="accepted"] #section-response-yes .district-switch-option:hover span {
  color: #f5eaed !important;
}

body[data-page="accepted"] #section-response-yes .district-switch-option:hover span,
body[data-page="accepted"] #section-response-yes .district-switch-option:has(input[value="rivera"]:checked) span,
body[data-page="accepted"] #section-response-yes .district-switch-option:has(input[value="tacuarembo"]:checked) span {
  text-shadow: none !important;
}

body[data-page="accepted"] #section-response-yes .district-switch-option:has(input[value="rivera"]:checked) span {
  color: #292313 !important;
  font-weight: 700 !important;
}

body[data-page="accepted"] #section-response-yes .district-switch-option:has(input[value="tacuarembo"]:checked) span {
  color: #292313 !important;
  font-weight: 700 !important;
}

body[data-page="accepted"] #section-response-yes .district-switch-option input:focus-visible + span {
  outline: 2px solid #d6bd62;
  outline-offset: -2px;
}

/* Date Calendars in Accepted section (Red tone cards) */
#section-response-yes .date-calendar,
body[data-page="accepted"] .date-calendar {
  border: 1px solid rgba(220, 60, 85, 0.4);
  background: linear-gradient(180deg, rgba(105, 10, 29, 0.85) 0%, rgba(70, 7, 20, 0.9) 100%);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(128, 12, 35, 0.25);
}

#section-response-yes .date-calendar-title,
body[data-page="accepted"] .date-calendar-title {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: initial;
  color: #f3e5ab;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

#section-response-yes .date-calendar-weekday,
body[data-page="accepted"] .date-calendar-weekday {
  color: #e5cb75;
}

#section-response-yes .date-calendar-day span,
body[data-page="accepted"] .date-calendar-day span {
  color: #ffffff;
}

#section-response-yes .date-calendar-day:hover span,
body[data-page="accepted"] .date-calendar-day:hover span {
  border-color: rgba(255, 245, 175, 0.8);
  color: #ffffff;
  background: rgba(193, 173, 84, 0.28);
}

/* Soft pink selected date */
#section-response-yes .date-calendar-day:has(input:checked) span,
body[data-page="accepted"] .date-calendar-day:has(input:checked) span {
  border-color: rgba(255, 245, 175, 0.85);
  background: linear-gradient(135deg, #f2e28a 0%, #c1ad54 65%, #998329 100%);
  color: #090909;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(193, 173, 84, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

#section-response-yes .date-calendar-day input:focus-visible + span,
body[data-page="accepted"] .date-calendar-day input:focus-visible + span {
  outline: 2px solid #f3e5ab;
  outline-offset: 2px;
}

#section-response-yes .date-calendar-day:has(input:disabled) span,
body[data-page="accepted"] .date-calendar-day:has(input:disabled) span {
  color: rgba(255, 255, 255, 0.22);
}

/* Submit Button in Accepted section: Grass green */
#section-response-yes #submit-response-button,
body[data-page="accepted"] #submit-response-button {
  background: #800c23 !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 8px 25px rgba(128, 12, 35, 0.45), 0 3px 10px rgba(0, 0, 0, 0.25) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
  font-weight: 700 !important;
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease, background 0.3s ease !important;
}

#section-response-yes #submit-response-button:hover,
body[data-page="accepted"] #submit-response-button:hover {
  background: #9b1432 !important;
  transform: translateY(-2px) scale(1.03) !important;
  box-shadow: 0 12px 32px rgba(128, 12, 35, 0.65), 0 5px 14px rgba(0, 0, 0, 0.3) !important;
  filter: brightness(1.1) !important;
}

/* Audio player in Accepted & Invitation: Black exterior, white interior, white loop button */
body[data-page="accepted"] .audio-player,
body[data-page="invitation"] .audio-player {
  border-color: #27272a !important;
  background: #09090b !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}

body[data-page="accepted"] .audio-player-label,
body[data-page="invitation"] .audio-player-label {
  color: #ffffff !important;
  font-weight: 700 !important;
}

body[data-page="accepted"] .audio-controls,
body[data-page="invitation"] .audio-controls {
  color-scheme: light !important;
  accent-color: #800c23 !important;
  filter: none !important;
  background: #ffffff !important;
  border-radius: 999px !important;
}

body[data-page="accepted"] .audio-controls::-webkit-media-controls-panel,
body[data-page="invitation"] .audio-controls::-webkit-media-controls-panel {
  background: #ffffff !important;
}

body[data-page="accepted"] .audio-controls::-webkit-media-controls-play-button,
body[data-page="accepted"] .audio-controls::-webkit-media-controls-mute-button,
body[data-page="invitation"] .audio-controls::-webkit-media-controls-play-button,
body[data-page="invitation"] .audio-controls::-webkit-media-controls-mute-button {
  filter: none !important;
}

body[data-page="accepted"] .audio-controls::-webkit-media-controls-current-time-display,
body[data-page="accepted"] .audio-controls::-webkit-media-controls-time-remaining-display,
body[data-page="invitation"] .audio-controls::-webkit-media-controls-current-time-display,
body[data-page="invitation"] .audio-controls::-webkit-media-controls-time-remaining-display {
  color: #090909 !important;
}

body[data-page="accepted"] .audio-loop-button,
body[data-page="invitation"] .audio-loop-button {
  border-color: #ffffff !important;
  background: #ffffff !important;
  color: #090909 !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) !important;
}

body[data-page="accepted"] .audio-loop-button:hover,
body[data-page="accepted"] .audio-loop-button:focus-visible,
body[data-page="invitation"] .audio-loop-button:hover,
body[data-page="invitation"] .audio-loop-button:focus-visible {
  border-color: #ffffff !important;
  background: #f1f5f9 !important;
  color: #090909 !important;
}

body[data-page="accepted"] .audio-loop-button.is-active,
body[data-page="invitation"] .audio-loop-button.is-active {
  border-color: #ffffff !important;
  background: #ffffff !important;
  color: #090909 !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8) !important;
}

/* ==========================================================================
   Intro Section - Dark Background, White Text & Gold Accents
   ========================================================================== */

body[data-page="intro"] {
  background-color: #08090b !important;
  color: #f9fafb !important;
}

body[data-page="intro"] #dynamic-background {
  background: #08090b !important;
}

body[data-page="intro"] #history-media {
  display: none !important;
}

body[data-page="intro"] #background-overlay {
  display: block !important;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.75)) !important;
}

body[data-page="intro"] .film-grain {
  opacity: 0.035 !important;
}

body[data-page="intro"] ::selection {
  background-color: #d4af37;
  color: #111111;
}

body[data-page="intro"] {
  accent-color: #d4af37;
}

.response-submit-status {
  min-height: 1.25rem;
  margin: 0.75rem auto 0;
  color: #f3e5ab;
  font-size: 0.875rem;
}

body[data-page="accepted"] #accepted-submit-status {
  color: #800c23;
  font-weight: 700;
}

body[data-page="rejected"] #rejected-submit-status {
  color: #bae6fd;
}

.response-submit-status:empty {
  display: none;
}

body[data-page="intro"] #text-intro-title {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7) !important;
}

body[data-page="intro"] #text-intro-subtitle {
  color: #d1d5db !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8) !important;
}

body[data-page="intro"] #thursday-title {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7) !important;
}

body[data-page="intro"] #shared-footer {
  color: #9ca3af !important;
}

body[data-page="intro"] #intro-view-button {
  border: 1px solid rgba(255, 233, 157, 0.55) !important;
  color: #090909 !important;
  background: linear-gradient(135deg, #f3d27a 0%, #d4af37 35%, #b8860b 100%) !important;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  font-weight: 600 !important;
}

body[data-page="intro"] #intro-view-button:hover {
  background: linear-gradient(135deg, #f7e7af 0%, #f3d27a 30%, #d4af37 100%) !important;
  color: #090909 !important;
  border-color: rgba(255, 233, 157, 0.75) !important;
  box-shadow: 0 0 32px rgba(212, 175, 55, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-2px) scale(1.02) !important;
}

body[data-page="intro"] #intro-view-button svg {
  color: currentColor !important;
}

/* Red scrollbar in Accepted */
body[data-page="accepted"] .custom-scrollbar-track {
  border-color: rgba(128, 12, 35, 0.25) !important;
  background: rgba(0, 0, 0, 0.08) !important;
}

body[data-page="accepted"] .custom-scrollbar-thumb {
  background: #800c23 !important;
  border: 1px solid #a81c38 !important;
  box-shadow: 0 0 10px rgba(128, 12, 35, 0.45) !important;
}

body[data-page="intro"] header::after,
body[data-page="intro"] footer::before {
  height: 2px !important;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.85), transparent) !important;
}

body[data-page="history"] #text-history-title {
  font-size: 2.25rem !important;
}

body[data-page="history"] #text-history-intro {
  font-size: 1rem !important;
}

body[data-page="history"] #current-history-title-text {
  font-size: 1.5rem !important;
}

body[data-page="history"] #history-ending-button {
  font-size: 0.875rem !important;
}

body[data-page="history"] #app-stage {
  width: min(100%, 48rem) !important;
  font-size: 16px !important;
  zoom: 1 !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body[data-page="history"] #section-history {
  font-size: 16px !important;
  transform: none !important;
  animation: none !important;
}

body[data-page="history"] #section-history > .space-y-3 > span {
  font-size: 0.75rem !important;
}

body[data-page="history"] #text-history-label {
  color: var(--history-accent, #ffffff) !important;
  text-shadow: 0 0 12px var(--history-accent, #ffffff);
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

body[data-page="history"] #section-history > .shared-back {
  color: var(--history-accent, #ffffff) !important;
  transition: color 0.35s ease, transform 0.2s ease;
}

body[data-page="history"] #section-history > .shared-back:hover,
body[data-page="history"] #section-history > .shared-back:focus-visible {
  color: var(--history-accent, #ffffff) !important;
}

body[data-page="history"] header::after,
body[data-page="history"] footer::before {
  background: linear-gradient(90deg, transparent, var(--history-accent, #ffffff), transparent) !important;
  transition: background 0.35s ease;
}

body[data-page="history"] .custom-scrollbar-track {
  border-color: color-mix(in srgb, var(--history-accent, #ffffff) 35%, transparent);
  transition: border-color 0.35s ease;
}

body[data-page="history"] .custom-scrollbar-thumb {
  border-color: color-mix(in srgb, var(--history-accent, #ffffff) 65%, #ffffff);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--history-accent, #ffffff) 72%, #ffffff),
    var(--history-accent, #ffffff) 55%,
    color-mix(in srgb, var(--history-accent, #ffffff) 72%, #000000)
  );
  box-shadow: 0 0 0.8rem color-mix(in srgb, var(--history-accent, #ffffff) 55%, transparent);
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

body[data-page="history"] #history-ending-button {
  border-color: var(--history-accent, #ffffff);
  background: var(--history-accent, #ffffff);
  color: #08090b;
  box-shadow: 0 0 20px color-mix(in srgb, var(--history-accent, #ffffff) 35%, transparent);
  transition: color 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

body[data-page="history"].history-theme-selected #history-ending-button {
  color: #ffffff;
}

body[data-page="history"] #history-ending-button:hover,
body[data-page="history"] #history-ending-button:focus-visible {
  background: var(--history-accent, #ffffff);
  box-shadow: 0 0 30px color-mix(in srgb, var(--history-accent, #ffffff) 55%, transparent);
}

body[data-page="history"] #embers-container .ember,
body[data-page="history"] #cursor-ember-layer .cursor-ember {
  background: radial-gradient(circle, #ffffff 0%, var(--history-accent, #ffffff) 48%, transparent 78%);
  filter: drop-shadow(0 0 6px var(--history-accent, #ffffff)) drop-shadow(0 0 12px var(--history-accent, #ffffff));
  transition: background 0.35s ease, filter 0.35s ease;
}

body[data-page="history"] #section-history .history-card {
  min-height: 150px !important;
}

body[data-page="history"] #current-history-title {
  min-height: 50px !important;
}

html:has(body[data-page="intro"]),
html:has(body[data-page="hungerGames"]) {
  height: 100%;
  overflow: hidden;
}

body[data-page="intro"],
body[data-page="hungerGames"] {
  height: 100vh;
  height: 100dvh;
  min-height: 0 !important;
  overflow: hidden;
}

body[data-page="intro"] header,
body[data-page="hungerGames"] header {
  flex: 0 0 auto;
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  padding: 1.5rem 1rem;
}

body[data-page="intro"] .audio-player,
body[data-page="hungerGames"] .audio-player {
  flex: 0 1 32rem;
  justify-content: center;
}

body[data-page="intro"] main,
body[data-page="hungerGames"] main {
  flex: 1 1 0;
  min-height: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

body[data-page="intro"] #app-stage,
body[data-page="hungerGames"] #app-stage {
  height: 100%;
  max-height: 100%;
  padding-top: clamp(0.35rem, 2vh, 1.5rem) !important;
  padding-bottom: clamp(0.35rem, 2vh, 1.5rem) !important;
}

body[data-page="intro"] #section-intro.active-section {
  height: 100%;
}

body[data-page="intro"] #intro-stage {
  height: 100%;
  min-height: 0;
  padding: 0;
}

body[data-page="intro"] #main-intro,
body[data-page="intro"] #felizjueves {
  gap: clamp(0.65rem, 2.5vh, 1.5rem);
}

body[data-page="intro"] #main-intro > *,
body[data-page="intro"] #felizjueves > * {
  margin-top: 0;
  margin-bottom: 0;
}

body[data-page="intro"] #text-intro-title {
  font-size: clamp(1.5rem, 6vh, 3.75rem) !important;
  line-height: 1.1;
}

body[data-page="intro"] #text-intro-subtitle {
  font-size: clamp(0.9rem, 2.4vh, 1.25rem) !important;
  line-height: 1.4;
}

body[data-page="intro"] #intro-view-button {
  padding: clamp(0.65rem, 1.7vh, 1rem) clamp(1.25rem, 4vw, 2rem);
}

body[data-page="intro"] #felizjueves h1 {
  font-size: clamp(1.35rem, 5vh, 3.5rem);
}

body[data-page="intro"] .thursday-video {
  max-height: min(38vh, 24rem);
}

body[data-page="hungerGames"] #section-hunger-games.active-section {
  display: flex;
  min-height: 0;
  height: 100%;
  gap: clamp(0.5rem, 2.4vh, 1.5rem);
  padding: clamp(0.5rem, 2vh, 1.5rem) 0.5rem;
}

body[data-page="hungerGames"] #section-hunger-games > .shared-back {
  margin-bottom: 0;
}

body[data-page="hungerGames"] #section-hunger-games > p {
  line-height: 1.4;
}

body[data-page="hungerGames"] #hunger-games-intro {
  font-size: clamp(0.7rem, 2.2vh, 1.125rem) !important;
}

body[data-page="hungerGames"] #hunger-games-heading {
  font-size: clamp(1.75rem, 8vh, 4.5rem) !important;
  line-height: 1;
}

body[data-page="hungerGames"] #hunger-games-description {
  font-size: clamp(0.8rem, 2vh, 1rem) !important;
}

body[data-page="hungerGames"] #hunger-games-continue {
  padding: clamp(0.65rem, 1.7vh, 1rem) clamp(1.25rem, 4vw, 2rem);
}

body[data-page="intro"] footer,
body[data-page="hungerGames"] footer {
  flex: 0 0 auto;
  width: 100%;
  padding: 1.5rem 1rem;
  text-align: center;
}

@media (max-height: 500px) {
  body[data-page="hungerGames"] #section-hunger-games.active-section {
    gap: 0.35rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }
}

body[data-page="accepted"] #section-response-yes .date-calendar-day:has(input:checked) span {
  border-color: #e4ce7d !important;
  background: #d6bd62 !important;
  color: #292313 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body[data-page="intro"] header,
body[data-page="history"] header,
body[data-page="movie"] header,
body[data-page="invitation"] header,
body[data-page="rejected"] header,
body[data-page="accepted"] header {
  width: 100%;
  max-width: 100%;
  margin-right: 0;
  margin-left: 0;
  padding: 1.5rem 1rem;
}

body[data-page="intro"] footer,
body[data-page="history"] footer,
body[data-page="movie"] footer,
body[data-page="invitation"] footer,
body[data-page="rejected"] footer,
body[data-page="accepted"] footer {
  width: 100%;
  padding: 1.5rem 1rem;
  text-align: center;
}

body[data-page="intro"] header::after,
body[data-page="history"] header::after,
body[data-page="movie"] header::after,
body[data-page="invitation"] header::after,
body[data-page="rejected"] header::after,
body[data-page="accepted"] header::after,
body[data-page="intro"] footer::before,
body[data-page="history"] footer::before,
body[data-page="movie"] footer::before,
body[data-page="invitation"] footer::before,
body[data-page="rejected"] footer::before,
body[data-page="accepted"] footer::before {
  height: 2px;
}

body[data-page="intro"] header .audio-player:not([hidden]),
body[data-page="history"] header .audio-player:not([hidden]),
body[data-page="movie"] header .audio-player:not([hidden]),
body[data-page="invitation"] header .audio-player:not([hidden]),
body[data-page="rejected"] header .audio-player:not([hidden]),
body[data-page="accepted"] header .audio-player:not([hidden]) {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(32rem, calc(100vw - 3rem));
  margin: 0;
  transform: translate(-50%, -50%);
}

body[data-page="intro"] header .audio-controls,
body[data-page="history"] header .audio-controls,
body[data-page="movie"] header .audio-controls,
body[data-page="invitation"] header .audio-controls,
body[data-page="rejected"] header .audio-controls,
body[data-page="accepted"] header .audio-controls {
  min-width: 0;
}

body[data-page="accepted"] #section-response-yes .district-switch::before {
  background: #745ab3 !important;
}

body[data-page="accepted"] #section-response-yes .district-switch:has(input[value="rivera"]:checked)::before,
body[data-page="accepted"] #section-response-yes .district-switch:has(input[value="tacuarembo"]:checked)::before {
  background: #745ab3 !important;
}

body[data-page="accepted"] #section-response-yes .district-switch-option:has(input:checked) span {
  color: #ffffff !important;
}

body[data-page="accepted"] #section-response-yes .district-switch-option:has(input[value="rivera"]:checked) span,
body[data-page="accepted"] #section-response-yes .district-switch-option:has(input[value="tacuarembo"]:checked) span {
  color: #ffffff !important;
}

body[data-page="accepted"] #section-response-yes .district-switch-option input:focus-visible + span {
  outline-color: #a78bd4 !important;
}

body[data-page="accepted"] #section-response-yes .date-calendar-day:has(input:checked) span {
  border-color: #ffd1dc !important;
  background: #e87998 !important;
  color: #35111d !important;
  box-shadow: 0 0 12px rgba(232, 121, 152, 0.45) !important;
}

body[data-page="accepted"] .date-calendar-day:hover span {
  border-color: rgba(255, 190, 207, 0.8) !important;
  background: rgba(232, 121, 152, 0.28) !important;
}

body[data-page="accepted"] .date-calendar-day input:focus-visible + span {
  outline-color: #ffb3c5 !important;
}

body[data-page="accepted"] #section-response-yes #submit-response-button {
  background: #4f772d !important;
  border-color: rgba(215, 239, 191, 0.65) !important;
  box-shadow: 0 8px 25px rgba(55, 93, 34, 0.4), 0 3px 10px rgba(0, 0, 0, 0.25) !important;
}

body[data-page="accepted"] #section-response-yes #submit-response-button:hover {
  background: #5d8c3d !important;
  box-shadow: 0 12px 32px rgba(55, 93, 34, 0.55), 0 5px 14px rgba(0, 0, 0, 0.3) !important;
}

body[data-page="movie"] header::after,
body[data-page="movie"] footer::before,
body[data-page="invitation"] header::after,
body[data-page="invitation"] footer::before {
  background: linear-gradient(90deg, transparent, #800c23, transparent) !important;
}

body[data-page="movie"] #shared-footer,
body[data-page="invitation"] #shared-footer {
  color: #5b2635 !important;
}

body[data-page="movie"] .custom-scrollbar-track,
body[data-page="invitation"] .custom-scrollbar-track {
  border-color: rgba(128, 12, 35, 0.25) !important;
  background: rgba(0, 0, 0, 0.08) !important;
}

body[data-page="movie"] .custom-scrollbar-thumb,
body[data-page="invitation"] .custom-scrollbar-thumb {
  background: #800c23 !important;
  border-color: #a81c38 !important;
  box-shadow: 0 0 10px rgba(128, 12, 35, 0.45) !important;
}

body[data-page="movie"] #section-movie .text-gold {
  color: #a31230 !important;
}

body[data-page="movie"] #text-new-pre,
body[data-page="movie"] #text-new-sub,
body[data-page="movie"] #movie-title-display,
body[data-page="movie"] #movie-description {
  background: linear-gradient(90deg, #f3d27a 0%, #d4af37 42%, #a78bd4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

body[data-page="movie"] #section-movie .back-link {
  color: #f3d27a !important;
}

body[data-page="movie"] #section-movie .back-link:hover,
body[data-page="movie"] #section-movie .back-link:focus-visible {
  color: #ffec9d !important;
}

body[data-page="movie"] #section-movie .premiere-badge {
  background: #745ab3 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(83, 55, 143, 0.5) !important;
}

body[data-page="movie"] #section-movie .gold-button {
  border-color: rgba(220, 239, 190, 0.65) !important;
  background: linear-gradient(135deg, #729b47 0%, #4f772d 65%, #3b5f24 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(79, 119, 45, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

body[data-page="movie"] #section-movie .gold-button:hover {
  background: linear-gradient(135deg, #8db95b 0%, #67943b 55%, #4f772d 100%) !important;
  box-shadow: 0 0 30px rgba(79, 119, 45, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

body[data-page="movie"] #section-movie .border-gold\/30 {
  border-color: rgba(128, 12, 35, 0.42) !important;
}

body[data-page="movie"] #section-movie .bg-gold\/10 {
  background-color: rgba(128, 12, 35, 0.1) !important;
}

body[data-page="movie"] #section-movie .border-gold\/30,
body[data-page="movie"] #section-movie .border-gold\/30 svg {
  color: #f3d27a !important;
}

body[data-page="movie"] #section-movie .w-16.h-16.border-gold\/30 {
  border-color: #f3d27a !important;
  box-shadow: 0 0 18px rgba(243, 210, 122, 0.18) !important;
}

body[data-page="movie"] #section-movie #movie-date-display {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body[data-page="movie"] #section-movie > .bg-gradient-to-b {
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(128, 12, 35, 0.14) !important;
}

body[data-page="invitation"] {
  background-color: #f8fafc !important;
  color: #15101a !important;
}

body[data-page="invitation"] #dynamic-background {
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #f8fafc 35%, #e2e8f0 70%, #cbd5e1 100%) !important;
}

body[data-page="invitation"] #history-media {
  background-image: none !important;
}

body[data-page="invitation"] #history-media.visible {
  opacity: 1 !important;
}

body[data-page="invitation"] #background-overlay,
body[data-page="invitation"] .vignette {
  display: none !important;
}

body[data-page="invitation"] .film-grain {
  opacity: 0.02 !important;
}

body[data-page="invitation"] #section-invitation .text-gold {
  color: #fff1f4 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 2px 12px rgba(0, 0, 0, 0.25) !important;
}

body[data-page="invitation"] #text-q-title {
  color: #ffffff !important;
}

body[data-page="invitation"] #text-q-sub {
  color: #ffe4e9 !important;
}

body[data-page="invitation"] #no-humor-msg {
  color: #111111 !important;
}

body[data-page="invitation"] #no-dodge-counter {
  color: #111111 !important;
}

body[data-page="invitation"] #section-invitation .back-link {
  color: #ffffff !important;
  font-weight: 600;
}

body[data-page="invitation"] #section-invitation .back-link:hover,
body[data-page="invitation"] #section-invitation .back-link:focus-visible {
  color: #ffdce3 !important;
}

body[data-page="invitation"] #section-invitation > .space-y-3 {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgba(255, 190, 202, 0.5);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(128, 12, 35, 0.96), rgba(75, 7, 23, 0.97));
  box-shadow: 0 1.25rem 3.5rem rgba(40, 5, 12, 0.28), 0 0 30px rgba(128, 12, 35, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body[data-page="invitation"] #section-invitation .gold-button {
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: #800c23 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 25px rgba(128, 12, 35, 0.35), 0 3px 10px rgba(0, 0, 0, 0.12) !important;
}

body[data-page="invitation"] #section-invitation .gold-button:hover {
  background: #9b1432 !important;
  box-shadow: 0 12px 32px rgba(128, 12, 35, 0.5), 0 5px 14px rgba(0, 0, 0, 0.18) !important;
}

body[data-page="invitation"] #section-invitation #btn-no {
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: #800c23 !important;
  color: #ffffff !important;
}

body[data-page="invitation"] #section-invitation #btn-no:hover {
  border-color: #ffffff !important;
  background: #9b1432 !important;
}

body[data-page="invitation"] main {
  z-index: 11;
}

body[data-page="invitation"] footer {
  pointer-events: auto;
}

body[data-page="movie"] header::after,
body[data-page="movie"] footer::before {
  background: linear-gradient(90deg, transparent, #d4af37, transparent) !important;
}

body[data-page="movie"] #shared-footer {
  color: #d4af37 !important;
}

body[data-page="movie"] #section-movie #text-new-pre,
body[data-page="movie"] #section-movie #text-new-sub {
  background: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body[data-page="movie"] #movie-title-display,
body[data-page="movie"] #movie-description {
  background-image: linear-gradient(90deg, #f3d27a 0%, #f3d27a 30%, #9ca3af 35%, #9ca3af 65%, #6d28d9 70%, #6d28d9 100%);
}

body[data-page="movie"] #section-movie .movie-logo-frame {
  overflow: hidden;
}

body[data-page="movie"] #section-movie .movie-logo {
  width: 88%;
  height: 88%;
  border-radius: 50%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

body[data-page="movie"] #section-movie .premiere-badge {
  background: #6d28d9 !important;
  box-shadow: 0 4px 14px rgba(109, 40, 217, 0.4) !important;
}

body[data-page="movie"] #section-movie > .bg-gradient-to-b {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)) !important;
}

body[data-page="movie"] #section-movie #movie-date-display {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
}

body[data-page="movie"] #section-movie #movie-continue {
  border-color: rgba(255, 255, 255, 0.55) !important;
  background: #9b1432 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(155, 20, 50, 0.36) !important;
}

body[data-page="movie"] #section-movie #movie-continue:hover {
  background: #b51d3c !important;
  box-shadow: 0 10px 28px rgba(155, 20, 50, 0.48) !important;
}

body[data-page="invitation"] header .audio-player:not([hidden]) {
  position: relative;
  top: auto;
  left: auto;
  width: min(32rem, calc(100vw - 3rem));
  margin: 0.75rem auto 0;
  transform: none;
}

body[data-page="invitation"] #section-invitation .back-link {
  color: #d4af37 !important;
}

body[data-page="invitation"] #section-invitation .back-link:hover,
body[data-page="invitation"] #section-invitation .back-link:focus-visible {
  color: #f3e5ab !important;
}

body[data-page="invitation"] #section-invitation > .space-y-3 {
  background: linear-gradient(120deg, #c1ad54 0%, #745ab3 100%);
}

body[data-page="invitation"] #section-invitation #invitation-accept-prompt {
  margin-top: 1rem !important;
  color: #745ab3 !important;
  text-shadow: none !important;
}

body[data-page="invitation"] #no-humor-msg,
body[data-page="invitation"] #no-dodge-counter {
  font-size: 0.875rem !important;
  line-height: 1.5;
}

body[data-page="invitation"] #no-dodge-counter {
  letter-spacing: 0.04em;
}

body[data-page="invitation"] main {
  z-index: 9;
}

@media (max-height: 700px) {
  body[data-page="invitation"] header {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  body[data-page="invitation"] #app-stage {
    padding-top: 0;
    padding-bottom: 0;
  }

  body[data-page="invitation"] #section-invitation > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.75rem !important;
  }

  body[data-page="invitation"] #section-invitation #invitation-actions {
    min-height: 0;
    padding-top: 0.5rem;
  }
}

body[data-page="movie"] #section-movie > .bg-gradient-to-b {
  background: linear-gradient(180deg, rgba(24, 24, 28, 0.95), rgba(9, 9, 10, 0.95)) !important;
}

body[data-page="movie"] #section-movie #movie-date-display {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body[data-page="invitation"] #section-invitation > .space-y-3 {
  background: linear-gradient(145deg, rgba(155, 20, 50, 0.96), rgba(96, 10, 30, 0.97));
}

body[data-page="invitation"] #section-invitation #invitation-yes-button {
  border-color: rgba(222, 209, 255, 0.72) !important;
  background: #6d28d9 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 25px rgba(109, 40, 217, 0.35), 0 3px 10px rgba(0, 0, 0, 0.12) !important;
}

body[data-page="invitation"] #section-invitation #invitation-yes-button:hover {
  background: #7c3aed !important;
  box-shadow: 0 12px 32px rgba(109, 40, 217, 0.5), 0 5px 14px rgba(0, 0, 0, 0.18) !important;
}

body[data-page="invitation"] #section-invitation #btn-no {
  border-color: rgba(255, 243, 176, 0.8) !important;
  background: #d4af37 !important;
  color: #211b08 !important;
}

body[data-page="invitation"] #section-invitation #btn-no:hover {
  border-color: #fff1a8 !important;
  background: #e5c34b !important;
}

body[data-page="invitation"] #section-invitation .back-link {
  color: #111111 !important;
}

body[data-page="invitation"] #section-invitation .back-link:hover,
body[data-page="invitation"] #section-invitation .back-link:focus-visible {
  color: #3f3f46 !important;
}

body[data-page="invitation"] #section-invitation #invitation-accept-prompt {
  color: #800c23 !important;
  font-weight: 700 !important;
}

body[data-page="accepted"] #section-response-yes .district-switch::before,
body[data-page="accepted"] #section-response-yes .district-switch:has(input[value="rivera"]:checked)::before,
body[data-page="accepted"] #section-response-yes .district-switch:has(input[value="tacuarembo"]:checked)::before {
  background: #6d28d9 !important;
}

body[data-page="accepted"] #section-response-yes .date-calendar-day:has(input:checked) span {
  border-color: #c85d98 !important;
  background: #8c255d !important;
  color: #350b1c !important;
  box-shadow: 0 0 14px rgba(140, 37, 93, 0.58) !important;
}

body[data-page="accepted"] #section-response-yes #submit-response-button {
  border-color: rgba(255, 233, 157, 0.8) !important;
  background: #d4af37 !important;
  color: #211b08 !important;
  text-shadow: none !important;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35), 0 3px 10px rgba(0, 0, 0, 0.25) !important;
}

body[data-page="accepted"] #section-response-yes #submit-response-button:hover {
  background: #e5c34b !important;
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.5), 0 5px 14px rgba(0, 0, 0, 0.3) !important;
}

.accepted-movie-poster {
  display: block;
  width: clamp(6rem, 12vw, 8rem);
  max-height: 11rem;
  margin: 0 auto 1.25rem;
  border-radius: 0.45rem;
  object-fit: contain;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.4);
}

body[data-page="movie"] #movie-title-display,
body[data-page="movie"] #movie-description {
  background-image: linear-gradient(90deg, #f3d27a 0%, #f3d27a 30%, #9b1432 36%, #9b1432 63%, #6d28d9 70%, #6d28d9 100%);
}

body[data-page="movie"] #section-movie .movie-logo {
  filter: invert(1);
  mix-blend-mode: screen;
}

body[data-page="invitation"] #section-invitation #btn-no {
  color: #000000 !important;
}

body[data-page="accepted"] #section-response-yes .date-calendar-day:has(input:checked) span {
  border-color: #e4ce7d !important;
  background: #c1ad54 !important;
  color: #292313 !important;
  box-shadow: 0 0 12px rgba(193, 173, 84, 0.45) !important;
}

body[data-page="accepted"] #section-response-yes #submit-response-button {
  margin-top: 2rem !important;
}

body[data-page="accepted"] #section-response-yes .accepted-movie-poster {
  width: clamp(10rem, 19vw, 12rem);
  max-height: 15rem;
  margin-bottom: 2.5rem;
}

body[data-page="accepted"] #section-response-yes #location-legend {
  margin-bottom: 2.5rem;
}

body[data-page="accepted"] #section-response-yes fieldset + fieldset {
  margin-top: 2.5rem;
}

body[data-page="accepted"] #section-response-yes #submit-response-button {
  margin-top: 3rem !important;
}

body[data-page="movie"] #movie-title-display,
body[data-page="movie"] #movie-description {
  background-image: linear-gradient(90deg, #9b1432 0%, #9b1432 30%, #f3d27a 36%, #f3d27a 63%, #6d28d9 70%, #6d28d9 100%);
}

body[data-page="accepted"] #section-response-yes .accepted-movie-poster {
  margin-bottom: 3.5rem;
}

body[data-page="accepted"] #section-response-yes #location-legend {
  margin-bottom: 1rem;
}

body[data-page="accepted"] #section-response-yes fieldset + fieldset {
  margin-top: 3.5rem;
  padding-top: 1rem;
}

body[data-page="accepted"] #section-response-yes #days-legend {
  margin-bottom: 0;
}

body[data-page="rejected"] #section-response-no #submit-rejected-response-button {
  display: block;
  margin: 2rem auto 0;
  border: 2px solid rgba(226, 232, 240, 0.72);
  background: #6b7280;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(55, 65, 81, 0.35), 0 3px 10px rgba(0, 0, 0, 0.22);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

body[data-page="rejected"] #section-response-no #submit-rejected-response-button:hover,
body[data-page="rejected"] #section-response-no #submit-rejected-response-button:focus-visible {
  border-color: #bae6fd;
  background: #7dd3fc;
  color: #172554;
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.38), 0 4px 12px rgba(0, 0, 0, 0.25);
}

body[data-page="intro"] header,
body[data-page="history"] header,
body[data-page="movie"] header,
body[data-page="invitation"] header,
body[data-page="rejected"] header,
body[data-page="accepted"] header {
  padding: 1.75rem 1rem;
}

body[data-page="intro"] footer,
body[data-page="history"] footer,
body[data-page="movie"] footer,
body[data-page="invitation"] footer,
body[data-page="rejected"] footer,
body[data-page="accepted"] footer {
  padding: 1.75rem 1rem;
}

body[data-page="intro"] header .audio-player:not([hidden]),
body[data-page="history"] header .audio-player:not([hidden]),
body[data-page="movie"] header .audio-player:not([hidden]),
body[data-page="invitation"] header .audio-player:not([hidden]),
body[data-page="rejected"] header .audio-player:not([hidden]),
body[data-page="accepted"] header .audio-player:not([hidden]) {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(44rem, calc(100vw - 2rem));
  margin: 0;
  transform: translate(-50%, calc(-50% - 0.25rem));
}

body[data-page="hungerGames"] header,
body[data-page="hungerGames"] footer {
  display: none !important;
}

body[data-page="hungerGames"] header::after,
body[data-page="hungerGames"] footer::before {
  display: none !important;
}

body[data-page="accepted"] header::after,
body[data-page="accepted"] footer::before {
  background: linear-gradient(90deg, transparent, #800c23, transparent) !important;
}

body[data-page="accepted"] #shared-footer {
  color: #800c23 !important;
}

body[data-page="thanks"] .vignette {
  display: none !important;
}

body[data-page="thanks"] .film-grain {
  opacity: 0.02 !important;
}

body[data-page="thanks"] ::selection {
  background-color: #800c23;
  color: #ffffff;
}

body[data-page="thanks"] header,
body[data-page="thanks"] footer {
  padding: 1.75rem 1rem;
}

body[data-page="thanks"] header::after,
body[data-page="thanks"] footer::before {
  height: 2px !important;
  background: linear-gradient(90deg, transparent, #800c23, transparent) !important;
}

body[data-page="thanks"] #shared-footer {
  color: #800c23 !important;
}

body[data-page="thanks"] .custom-scrollbar-track {
  border-color: rgba(128, 12, 35, 0.25) !important;
  background: rgba(0, 0, 0, 0.08) !important;
}

body[data-page="thanks"] .custom-scrollbar-thumb {
  background: #800c23 !important;
  border: 1px solid #a81c38 !important;
  box-shadow: 0 0 10px rgba(128, 12, 35, 0.45) !important;
}

body[data-page="thanks"] .back-link {
  color: #4a1d2e;
  font-weight: 600;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9);
}

body[data-page="thanks"] .back-link:hover,
body[data-page="thanks"] .back-link:focus-visible {
  color: #800c23;
  text-shadow: 0 0 10px rgba(128, 12, 35, 0.35);
}

#section-thanks .thanks-title {
  color: #15101a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 2px 8px rgba(0, 0, 0, 0.1);
}

#section-thanks .thanks-message {
  color: #4b5563;
  line-height: 1.7;
}

#section-thanks .thanks-curiosities-button {
  border: 1px solid rgba(222, 209, 255, 0.72);
  background: #6d28d9;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(109, 40, 217, 0.35), 0 3px 10px rgba(0, 0, 0, 0.12);
}

#section-thanks .thanks-curiosities-button:hover,
#section-thanks .thanks-curiosities-button:focus-visible {
  background: #7c3aed;
  box-shadow: 0 12px 32px rgba(109, 40, 217, 0.5), 0 5px 14px rgba(0, 0, 0, 0.18);
}

#section-thanks .thanks-closing {
  color: #800c23;
}

html:has(body[data-page="jueves"]) {
  height: 100%;
  overflow: hidden;
}

body[data-page="jueves"] {
  height: 100vh;
  height: 100dvh;
  min-height: 0 !important;
  overflow: hidden;
  background: #a31b24 !important;
  color: #ffffff;
  transition: none;
}

body[data-page="jueves"] #dynamic-background {
  background: #a31b24 !important;
  transition: none;
}

body[data-page="jueves"] #background-overlay,
body[data-page="jueves"] #embers-container,
body[data-page="jueves"] .vignette,
body[data-page="jueves"] .film-grain {
  display: none !important;
}

body[data-page="jueves"] header,
body[data-page="jueves"] footer {
  flex: 0 0 auto;
  padding: 1.5rem 1rem;
  color: #ffffff;
}

body[data-page="jueves"] #shared-footer {
  color: #ffffff !important;
}

body[data-page="jueves"] header::after,
body[data-page="jueves"] footer::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}

body[data-page="jueves"] main {
  flex: 1 1 0;
  min-height: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

body[data-page="jueves"] #app-stage {
  height: 100%;
  max-height: 100%;
  padding-top: clamp(0.35rem, 2vh, 1.5rem) !important;
  padding-bottom: clamp(0.35rem, 2vh, 1.5rem) !important;
}

body[data-page="jueves"] #section-jueves.active-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

body[data-page="jueves"] #felizjueves {
  width: 100%;
  gap: clamp(0.65rem, 2.5vh, 1.5rem);
}

body[data-page="jueves"] #felizjueves h1 {
  font-size: clamp(1.35rem, 5vh, 3.5rem);
}

body[data-page="jueves"] .thursday-video {
  max-height: min(38vh, 24rem);
  border-color: #ffffff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.28);
}

body[data-page="jueves"] .thursday-play-button {
  border-color: #f77a42;
  background: #f77a42;
}

body[data-page="jueves"] .thursday-play-button::before {
  border-left-color: #ffffff;
}

body[data-page="jueves"] #cursor-ember-layer .cursor-ember {
  background: radial-gradient(circle, #ffffff 0%, rgba(226, 232, 240, 0.95) 42%, transparent 75%);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 12px rgba(226, 232, 240, 0.55));
}

body[data-page="accepted"] #cursor-ember-layer .cursor-ember {
  background: radial-gradient(circle, #ede9fe 0%, rgba(109, 40, 217, 0.95) 42%, transparent 75%);
  filter: drop-shadow(0 0 6px rgba(109, 40, 217, 0.85)) drop-shadow(0 0 12px rgba(76, 29, 149, 0.65));
}

body[data-page="invitation"] #cursor-ember-layer .cursor-ember,
body[data-page="thanks"] #cursor-ember-layer .cursor-ember {
  background: radial-gradient(circle, #ffb3bd 0%, rgba(190, 24, 55, 0.95) 45%, transparent 78%);
  filter: drop-shadow(0 0 6px rgba(190, 24, 55, 0.85)) drop-shadow(0 0 12px rgba(128, 12, 35, 0.65));
}

body[data-page="jueves"] .audio-player {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(82, 5, 17, 0.5);
}

body[data-page="jueves"] .audio-player-label {
  color: #ffffff;
}

body[data-page="jueves"] #felizjueves.intro-section-leaving {
  opacity: 0;
  transform: translateY(-25px) scale(1.02);
  pointer-events: none;
}
