* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #1A1423;
  font-family: "Google Sans Flex", sans-serif;
  color: #7A6C5D;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 20, 35, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #4A1E1E;
}

.navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.navbar-brand {
  font-family: "Eater", system-ui;
  color: #D97B29;
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: #7A6C5D;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #D97B29;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #D97B29;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 16px;
    background: #1A1423;
    border-bottom: 1px solid #4A1E1E;
    padding: 16px 20px 24px;
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

/* ---------- COUNTDOWN BANNER ---------- */
.countdown-banner {
  background: #4A1E1E;
  color: #FBEFE0;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 10px 20px;
  border-bottom: 1px solid #D97B29;
  border-top: 1px solid #D97B29;
}
 

/* ---------- HERO ---------- */
.hero {
  text-align: center;
  padding: 100px 20px 70px;
  background:
    radial-gradient(ellipse at center, rgba(74, 30, 30, 0.35) 0%, transparent 70%),
    #1A1423;
}

.hero h1 {
  font-family: "Eater", system-ui;
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 6.5rem);
  color: #D97B29;
  margin: 0 0 24px;
  letter-spacing: 2px;
  text-shadow: 0 0 18px rgba(217, 123, 41, 0.45), 0 0 40px rgba(74, 30, 30, 0.6);
}

.hero h1:hover {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    color: #D97B29;
    text-shadow: 0 0 18px rgba(217, 123, 41, 0.45), 0 0 40px rgba(74, 30, 30, 0.6);
  }
  50% {
    color: #FBEFE0;
    text-shadow: 0 0 28px rgba(251, 239, 224, 0.85), 0 0 60px rgba(217, 123, 41, 0.7);
  }
}

.hero p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #a89a89;
}

.hero h3 {
    color: #D97B29
}

/* ---------- CARDS ---------- */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 100px;
}

.card {
  display:block;
  text-decoration: none;
  color:inherit;
  background: #2A2233;
  border: 1px solid #4A1E1E;
  border-top: 4px solid #D97B29;
  border-radius: 8px;
  overflow: hidden;
  padding: 0 0 28px;
  flex: 1 1 280px;
  max-width: 320px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #3E4A3D; /* shows while image loads or if missing */
  margin-bottom: 20px;
}

.card h3 {
  color: #D97B29;
  font-size: 1.3rem;
  margin: 0 0 12px;
  padding: 0 28px;
  letter-spacing: 0.5px;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  padding: 0 28px;
  color: #7A6C5D;
}

/* ---------- HAUNTED HOUSES ---------- */
.houses {
  background: #241B2E;
  border-top: 1px solid #4A1E1E;
  border-bottom: 1px solid #4A1E1E;
}

.houses-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px 100px;
}

.houses-title {
  text-align: center;
  color: #D97B29;
  font-size: 2rem;
  letter-spacing: 1px;
  margin: 0 0 40px;
}

.houses-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.house-card {
  background: #2A2233;
  border: 1px solid #4A1E1E;
  border-radius: 8px;
  overflow: hidden;
  flex: 1 1 280px;
  max-width: 320px;
  min-width: 0; /* prevents flex items from overflowing their row */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.house-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.house-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1670 / 716;
  object-fit: cover;
  display: block;
  border-bottom: 4px solid #D97B29;
  background: #3E4A3D; /* shows while image loads or if missing */
}

.house-card__body {
  padding: 24px;
}

.house-card__body h3 {
  color: #D97B29;
  font-size: 1.25rem;
  margin: 0 0 6px;
  letter-spacing: 0.5px;
}

.house-card__subtitle {
  color: #a89a89;
  font-size: 0.85rem;
  font-style: italic;
  margin: 0 0 14px;
}

.house-card__body p:last-child {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  color: #7A6C5D;
}

/* ---------- SCARE ZONES ---------- */
.zones {
  background: #1A1423;
}

.zones-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px 100px;
}

.zones-title {
  text-align: center;
  color: #D97B29;
  font-size: 2rem;
  letter-spacing: 1px;
  margin: 0 0 40px;
}

.zones-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.zone-card {
  background: #2A2233;
  border: 1px solid #3E4A3D;
  border-top: 4px solid #3E4A3D;
  border-radius: 8px;
  padding: 28px 24px;
  flex: 0 1 calc((100% - 48px) / 3); /* exactly 3 per row */
  max-width: calc((100% - 48px) / 3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 900px) {
  .zone-card {
    flex: 0 1 calc((100% - 24px) / 2); /* 2 per row */
    max-width: calc((100% - 24px) / 2);
  }
}

@media (max-width: 560px) {
  .zone-card {
    flex: 1 1 100%; /* 1 per row */
    max-width: 100%;
  }
}

.zone-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.zone-card h3 {
  color: #D97B29;
  font-size: 1.15rem;
  margin: 0 0 12px;
  letter-spacing: 0.5px;
}

.zone-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  color: #7A6C5D;
}

/* ---------- PLACEHOLDER PAGE MAIN ---------- */
.page-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px 120px;
  min-height: 40vh;
}


/* ---------- POSTER GRID (Watchlist) ---------- */
.house-watchlist-block {
  margin-bottom: 64px;
}
 
.house-watchlist-block:last-child {
  margin-bottom: 0;
}
 
.house-watchlist-title {
  color: #D97B29;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #3E4A3D;
}
 
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
 
.poster-card {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: #3E4A3D;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
 
.poster-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}
 
.poster-card__img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
}
 
.poster-card__title {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 10px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: #FBEFE0;
  font-size: 0.8rem;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
 
.poster-card:hover .poster-card__title,
.poster-card:focus-visible .poster-card__title {
  opacity: 1;
  transform: translateY(0);
}


/* ---------- RANKING PAGE ---------- */
.rank-category-title {
  text-align: center;
  color: #D97B29;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  margin: 0 0 24px;
}
 
.progress-bar {
  max-width: 500px;
  height: 6px;
  margin: 0 auto 40px;
  background: #2A2233;
  border-radius: 3px;
  overflow: hidden;
}
 
.progress-fill {
  height: 100%;
  width: 0%;
  background: #D97B29;
  transition: width 0.2s ease;
}
 
.compare-section {
  margin-bottom: 60px;
}
 
.compare-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}
 
.compare-vs {
  font-family: "Eater", system-ui;
  color: #D97B29;
  font-size: 1.4rem;
  flex: 0 0 auto;
}
 
.compare-option {
  flex: 1 1 260px;
  max-width: 300px;
  background: #2A2233;
  border: 1px solid #4A1E1E;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  color: #FBEFE0;
  font-family: "Google Sans Flex", sans-serif;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
 
.compare-option:hover {
  transform: translateY(-5px);
  border-color: #D97B29;
}
 
.compare-option__img {
  width: 100%;
  aspect-ratio: 1670 / 716;
  object-fit: cover;
  display: block;
  background: #3E4A3D;
}
 
.compare-option span {
  display: block;
  padding: 16px 14px;
  font-size: 1rem;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .compare-pair {
    flex-direction: column;
    gap: 16px;
  }

  
  .compare-option {
    max-width: 100%;
    width: 100%;
  }

  .compare-vs {
    font-size: 1.1rem;
  }
}

/* Live Ranking Results */
.live-toggle {
  text-align: center;
  max-width: 500px;
  margin: 0 auto 32px;
}
 
.live-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #a89a89;
  cursor: pointer;
}
 
.live-toggle-label input {
  accent-color: #D97B29;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
 
.live-rankings {
  max-width: 380px;
  margin: 32px auto 0;
  background: #241B2E;
  border: 1px solid #3E4A3D;
  border-radius: 8px;
  padding: 20px;
}
 
.live-rankings-title {
  color: #D97B29;
  font-size: 1rem;
  margin: 0 0 4px;
  text-align: center;
}
 
.live-rankings-subtitle {
  color: #a89a89;
  font-weight: normal;
  font-size: 0.85rem;
}
 
.live-rankings-hint {
  text-align: center;
  font-size: 0.75rem;
  color: #7A6C5D;
  margin: 0 0 14px;
}
 
.live-rankings-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
 
.live-rankings-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  font-size: 0.85rem;
  border-bottom: 1px solid #3E4A3D;
}
 
.live-rankings-list li:last-child {
  border-bottom: none;
}
 
.live-rank-num {
  color: #D97B29;
  width: 22px;
  flex: 0 0 auto;
}
 
.live-rank-name {
  flex: 1 1 auto;
  color: #FBEFE0;
}
 
.live-rank-arrow {
  width: 16px;
  text-align: center;
  flex: 0 0 auto;
  color: #7A6C5D;
}
 
.live-rank-arrow.rising {
  color: #8FBF8F;
}
 
.live-rank-arrow.falling {
  color: #c97a7a;
}


.rank-results {
  margin-bottom: 60px;
}
 
.rank-results-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto 32px;
}
 
.rank-results-grid > div {
  flex: 1 1 320px;
  max-width: 380px;
}
 
.rank-results-subtitle {
  text-align: center;
  color: #D97B29;
  font-size: 1.05rem;
  margin: 0 0 16px;
}
 
.ranking-panel {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
}
 
.rank-result {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  text-align: left;
}
 
.rank-result li {
  background: #2A2233;
  border: 1px solid #3E4A3D;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 10px;
  color: #D97B29;
  font-size: 1.05rem;
}
 
.reset-btn,
.action-btn {
  background: none;
  border: 1px solid #D97B29;
  color: #D97B29;
  border-radius: 6px;
  padding: 10px 20px;
  font-family: "Google Sans Flex", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
 
.reset-btn:hover,
.action-btn:hover {
  background: #D97B29;
  color: #1A1423;
}
 
.share-section {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
 
.share-block {
  margin-bottom: 48px;
}
 
.share-block-title {
  color: #D97B29;
  font-size: 1.05rem;
  margin: 0 0 16px;
}
 
.share-text {
  background: #2A2233;
  border: 1px solid #3E4A3D;
  border-radius: 6px;
  padding: 20px;
  max-width: 380px;
  margin: 0 auto 16px;
  text-align: left;
  color: #FBEFE0;
  font-family: "Google Sans Flex", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
}
 
.share-canvas {
  display: block;
  margin: 0 auto 16px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}


/* ---------- FOOTER ---------- */
footer {
  display: block;
  width: 100%;
  clear: both;
  border-top: 1px solid #3E4A3D;
  padding: 30px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #5c5347;
  letter-spacing: 0.5px;
}

.disclaimer {
  max-width: 600px;
  margin: 14px auto 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #4a453e;
}