
:root {
  --primary-color: #a36c40; /* warm brown reminiscent of Kentucky soil */
  --secondary-color: #33291f; /* dark brown for contrast */
  --accent-color: #f7e4c2; /* light tan for highlights */
  --text-color: #33291f;
  --bg-color: #fdf9f4;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Roboto', sans-serif;
  /* Fixed size for Feature.fm embed */
  --embed-w: 350px;
  --embed-h: 350px;
  --hero-bg: #0b0b0b; /* fallback background color for hero sections */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* Container utility */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(51, 41, 31, 0.9);
  z-index: 999;
  padding: 0.5rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 1px;
}

.nav a {
  color: #fff !important;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--primary-color) !important;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
}

/* Hero section */
.hero {
  position: relative;
  height: 100vh;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(51, 41, 31, 0.6), rgba(51, 41, 31, 0.6));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero .subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  background-color: var(--primary-color);
  color: #fff !important;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--secondary-color);
}

/* Full-bleed hero background */
.hero-bleed {
  position: relative;
  background-size: cover;
  background-position: center center;
  padding: 4rem 0 2rem;
  color: #fff;
}
.hero-bleed .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
  z-index: 0;
}

.centered-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-sign .welcome-sign {
  width: 380px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.hero-copy h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.hero-copy h1 em{
    opacity: 0.6;
    font-weight: 400;
    font-size: 0.5em;
    line-height: 1em;
    vertical-align: middle;
}

/* New full-width video section */
.fs-video {
  background: #071018;
  padding: 1rem 0 2rem;
}
.fs-video .video-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.fs-video video {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Songs section */
.songs-section {
  padding: 5rem 0 3rem;
}

.songs-section h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  text-align: center;
}

.songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.song-card {
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  position: relative; /* enable overlay badge positioning */
}

/* Generic overlay badge for song cards (e.g., Neural Net Remix) */
.song-card[data-badge]::after {
  content: attr(data-badge);
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(51, 41, 31, 0.92); /* var(--secondary-color) with opacity for readability */
  color: #fff;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 2;
}

.song-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.song-info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.song-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--secondary-color);
}

.song-info p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

/* Audio player styling */
audio {
  width: 100%;
  margin: 0.25rem 0 0.5rem;
  accent-color: var(--primary-color);
}

.platform-links {
  display: flex;
  gap: 0.75rem;
}

.platform-links a {
  font-size: 1.25rem;
  color: var(--primary-color);
  transition: color 0.3s, opacity 0.3s;
}

.platform-links a:hover {
  color: var(--secondary-color);
}

/* Disabled state for platform icons */
.platform-links a.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  position: relative; /* for tooltip positioning */
}

/* Tooltip for disabled icons (platform cards and hero) */
.platform-links a.disabled::after,
.hero .hero-platforms a.disabled::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translate(-50%, -4px);
  background: rgba(51, 41, 31, 0.95);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 2;
}

.platform-links a.disabled::before,
.hero .hero-platforms a.disabled::before {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: rgba(51, 41, 31, 0.95);
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 2;
}

.platform-links a.disabled:hover::after,
.platform-links a.disabled:hover::before,
.hero .hero-platforms a.disabled:hover::after,
.hero .hero-platforms a.disabled:hover::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Small note under platform icons */
.platform-note {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--secondary-color);
  opacity: 0.7;
}

/* Upcoming card styling */
.song-card.upcoming {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('images/songs/upcoming.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  position: relative;
}

.song-card.upcoming::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(51, 41, 31, 0.6);
  z-index: 0;
}

.song-card.upcoming .upcoming-inner {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.song-card.upcoming h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

/* About section */
.about-section {
  background-color: var(--secondary-color);
  color: #fefefe;
  padding: 4rem 0;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-section h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--accent-color);
}

.about-section p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.legal-disclaimer {
  margin-top: 0.5rem;
  font-size: 0.7em !important;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

/* Hero platforms section */
.hero .hero-platforms {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0 0 1rem;
}

.hero .hero-platforms a {
  font-size: 2rem;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
  position: relative;
}

.hero .hero-platforms a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.hero .hero-platforms a.disabled {
  cursor: not-allowed;
}

/* Optional: “Gagefield Music” variant styles for logo */
.logo.logo-music {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.logo .word-primary {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 1.8rem;
  letter-spacing: 1px;
}

.logo .word-secondary {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--accent-color);
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Media container for embeds with image fallback (fixed-size iframe centered) */
.song-card .song-media {
  position: relative;
  width: 100%;
  min-height: var(--embed-h);
  overflow: hidden;
  background: #000;
}

/* Blurred background image (always behind) */
.song-card .song-media img.blur-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  filter: blur(18px);
  transform: scale(1.1);
  z-index: 0;
}

/* Sharp fallback cover, visible only when iframe not loaded */
.song-card .song-media img.cover-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  z-index: 1;
}

/* Fixed-size iframe centered within media container */
.song-card .song-media iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--embed-w);
  height: var(--embed-h);
  transform: translate(-50%, -50%);
  border: 0;
  display: block;
  z-index: 2;
}

/* When iframe loads successfully, hide the sharp fallback, keep blur background */
.song-card .song-media.loaded img.cover-fallback {
  display: none;
}

/* If the iframe never loads (blocked), switch to fallback mode and hide iframe */
.song-card .song-media.fallback iframe {
  display: none;
}

/* FS25 page styles */
.fs-hero {
  padding: 8rem 0 0;
  background: linear-gradient(180deg, rgba(19,12,8,0.55), rgba(19,12,8,0.15));
  color: #fff;
}

.fs-testimonials {
  background: radial-gradient(1200px 400px at 50% -10%, rgba(163,108,64,0.12), transparent 60%),
              linear-gradient(180deg, rgba(19,12,8,0.08), rgba(19,12,8,0.03));
}
.fs-testimonials h2 {
  font-family: var(--font-heading);
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.fs-hero .fs-hero-inner {
  display: grid;
  grid-template-columns: 1fr 600px;
  gap: 2rem;
  align-items: center;
}




.fs-hero-media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 320px;
}

.fs-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fs-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.45));
}
.testimonial blockquote::before {
  content: "\201C";
  position: absolute;
  left: 12px;
  top: 8px;
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(163,108,64,0.65);
}

/* Testimonials nav and indicators */
.testimonial-prev, .testimonial-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.testimonial-prev { left: 6px; }
.testimonial-next { right: 6px; }
.testimonial-prev:hover, .testimonial-next:hover { background: rgba(0,0,0,0.55); }

.testimonial-indicators {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.testimonial-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(51,41,31,0.25);
  border: none;
}
.testimonial-indicators button.active { background: var(--primary-color); }

@media (prefers-reduced-motion: reduce) {
  .testimonial { transition: none; }
}

.fs-hero-overlay h1 { font-size: 2.5rem; margin: 0 0 0.5rem; }
.fs-hero-overlay .lead { font-size: 1.05rem; margin-bottom: 1rem; }

.fs-hero-summaries .hero-highlights { list-style: none; padding: 0; margin: 0; color: var(--accent-color); }
.fs-hero-summaries .hero-highlights li { margin-bottom: 0.6rem; }

/* Alternate section backgrounds and padding for readability (full-bleed backgrounds) */
main > section {
  padding: 3.25rem 0;
}

/* light alternating bands for major sections (full width) */
main > section:nth-of-type(odd) {
  /* background-color: rgba(250, 248, 246, 0.95); */
}
main > section:nth-of-type(odd) {
  background-color: rgba(231, 224, 218, 0.97);
}

/* Special treatment for download/credits/faq sections — allow an optional silhouetted PNG via a pseudo element */
#download, .fs-credits, .fs-faq {
  position: relative;
  padding: 4rem 0;
}

.fs-faq {
  background-image: url('images/gage/gage-license-plate-back.jpg');
  background-size:cover;
  background-position: center center;
}

#credits ul {
    margin: 10px 20px;
}

#faq details, details.release-notes {
  margin: 10px 20px;
}

#faq details summary span, details.release-notes summary span {
  cursor:pointer;
}

#faq details p, details.release-notes p, details.release-notes ul {
  margin-left:20px;
  margin-bottom:20px;
  opacity:0.7;
}



/* Ensure the silhouette doesn't dominate on small screens */
@media (max-width: 900px) {
  #download::before, .fs-credits::before, .fs-faq::before { display: none; }
}

.alpha-notice {
  /* background: rgba(163, 108, 64, 0.1); */
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(150deg, #a36c40 20%, #70492a 50%);;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #fff;}

/* Download container special styling (dark background, centered content) */
#download .container {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 2rem;
  border-radius: 6px;
}

.download-options {
  display: flex;
  gap: 1.25rem;
  margin: 1rem 0 0.75rem;
  align-items: stretch;
}

.download-card {
  background: rgba(255,255,255,0.03);
  padding: 1rem;
  border-radius: 6px;
  flex: 1 1 0;
}

.download-card h3 { margin-bottom: 0.4rem; }
.download-card p { margin-bottom: 0.75rem; color: rgba(255,255,255,0.85); }
.download-card p.file-size { font-size: 0.85rem; opacity: 0.7; margin-bottom: 1rem; }

.btn-secondary {
  background-color: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.6rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { background-color: rgba(255,255,255,0.18); }

.download-note { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-top: 0.85rem; border: 1px solid var(--primary-color); padding: 10px; }

@media (max-width: 900px) {
  .download-options { flex-direction: column; }
}

/* Version badge (small pill used across hero, downloads, and other places) */
.version-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-left: 0.6rem;
  vertical-align: middle;
  border: 1px solid var(--primary-color);
}

.hero-copy h1 { display: flex; align-items: center; gap: 0.6rem; }

/* a slightly more pronounced badge for hero-sign if needed */
.hero-sign .version-badge { position: absolute; left: 50%; transform: translateX(-50%); top: -18px; background: rgba(255,255,255,0.16); color: #fff; }

/* Alternate carousel alignment inside feature articles */
.fs-features .feature {
  display: grid;
  grid-template-columns: 50% 1fr; /* larger visual area for images */
  gap: 2rem;
  align-items: stretch;
  padding: 2rem 0;
  align-content: center;
}

/* Odd: image on left (default), Even: image on right */
.fs-features .feature:nth-child(odd) .carousel { grid-column: 1 / 2; }
.fs-features .feature:nth-child(odd) h3,
.fs-features .feature:nth-child(odd) p { grid-column: 2 / 3; }
.fs-features .feature:nth-child(even) { grid-template-columns: 1fr 56%; }
.fs-features .feature:nth-child(even) .carousel { grid-column: 2 / 3; }
.fs-features .feature:nth-child(even) h3,
.fs-features .feature:nth-child(even) p { grid-column: 1 / 2; }

/* Tighten feature text spacing to avoid pushing the grid */
.fs-features .feature h3 { margin: 0 0 0.6rem; font-size: 1.25rem; }
.fs-features .feature p { margin: 0 0 1rem; opacity: 0.95; }

/* Responsive fallback: single column on small screens */
@media (max-width: 900px) {
  .fs-features .feature { grid-template-columns: 1fr; }
  .fs-features .feature .carousel, .fs-features .feature .feature h3, .fs-features .feature p { grid-column: auto; }
}

/* Carousel polish */
.carousel { align-items: center; }
.carousel { position: relative; height: 400px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02)); border-radius: 8px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.carousel-track { transition: transform 0.45s cubic-bezier(.2,.8,.2,1); display:flex; gap:16px; align-items:center; height:100%; padding: 1rem; }
.carousel-track img { height: 100%; width: auto; border-radius: 6px; object-fit: cover; display:block; }
.carousel-prev, .carousel-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.45); color: #fff; border: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items:center; justify-content:center; cursor: pointer; z-index: 5; }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-prev:hover, .carousel-next:hover { background: rgba(0,0,0,0.6); }
.carousel-indicators { position: absolute; left: 50%; transform: translateX(-50%); bottom: 22px; display:flex; gap:10px; }
.carousel-indicators button { width:12px; height:12px; border-radius:50%; background:rgba(255,255,255,0.55); border:none; }
.carousel-indicators button.active { background:var(--primary-color); box-shadow: 0 2px 6px rgba(0,0,0,0.42); }

/* Lightbox */
.lightbox-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.8); display:none; align-items:center; justify-content:center; z-index:10000; }
.lightbox-overlay img { max-width:90%; max-height:90%; border-radius:6px; box-shadow:0 6px 30px rgba(0,0,0,0.6); }
.lightbox-overlay.visible { display:flex; }

/* Responsive video embed (16:9) */
.video-embed { position: relative; padding-top: 56.25%; background:#000; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.18); margin: 0.75rem 0 1rem; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Lightbox controls (prev/next) */
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10010;
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-close { position: absolute; top: 18px; right: 18px; background: rgba(0,0,0,0.45); color:#fff; border: none; width: 44px; height:44px; border-radius:6px; font-size:1.25rem; z-index:10010; }
.lightbox-caption { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.9); font-size:0.95rem; z-index:10010; max-width: 90%; text-align:center; }

/* Download CTA */
.fs-download .btn-primary { padding: 0.6rem 1rem; font-size:1rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  text-decoration: none;
  display: inline-block; }
  .fs-download .btn-primary:hover { background-color: #bb8458; }
#combined-cancel { color:black !important; padding: 0.9rem 1.2rem; font-size:1rem; border:1px solid black;cursor:pointer; }

@media (max-width: 900px) {
  .fs-hero .fs-hero-inner { grid-template-columns: 1fr; }
  .fs-hero-summaries { order: -1; }
  .centered-hero { grid-template-columns: 1fr; text-align: center; }
  .hero-sign { order: -1; }
  .fs-video video { height: 260px; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav a {
    margin-left: 1rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero .subtitle {
    font-size: 1rem;
  }
  .songs-section {
    padding-top: 4rem;
  }
}

@media (max-width: 600px) {
  .fs-features .feature { grid-template-columns: 1fr; }
  .fs-features .feature .carousel, .fs-features .feature .feature h3, .fs-features .feature p { grid-column: auto; }
  .carousel { height: 260px; }
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(51, 41, 31, 0.95);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    width: 200px;
    transform: translateY(-400px);
    transition: transform 0.3s ease;
  }
  .nav.open {
    transform: translateY(0);
  }
  .nav a {
    margin: 0.5rem 0;
  }
  .menu-toggle {
    display: block;
  }
}

/* Additional responsive tweaks for tablet and mobile to avoid horizontal scrolling
   and to scale media elements (song covers, embeds, carousels) more gracefully. */

@media (max-width: 900px) {
  /* Allow smaller song cards on tablets; prevent forced overflow from large min widths */
  .songs-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  /* Reduce tall cover images to a more suitable tablet height */
  .song-card img { height: 220px; }
  /* Slightly reduce carousel height on tablets */
  .carousel { height: 320px; }
  /* Make embedded players a bit smaller so they fit comfortably */
  :root { --embed-w: 300px; --embed-h: 300px; }

  /* Show hamburger control on tablet and enable stacked nav behavior */
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(51,41,31,0.95);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    width: 220px;
    transform: translateY(-400px);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  .nav.open { transform: translateY(0); }
  .nav a { margin: 0.5rem 0; }
}

/* Tablet: mirror mobile hero behavior so copy sits above sign and title breaks into lines */
@media (max-width: 900px) {
  .fs-hero .fs-hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 52vh;
    gap: 0.75rem;
  }
  .fs-hero .hero-copy { order: 1; text-align: center; z-index: 4; }
  .fs-hero .hero-sign { order: 2; margin: 0 auto; }
  .fs-hero .hero-copy h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    white-space: normal;
  }
  .fs-hero .hero-copy h1 em,
  .fs-hero .hero-copy h1 .version-badge {
    display: block;
    margin-left: 0;
  }
  .fs-hero .hero-copy h1 .version-badge { margin-top: 0.25rem; }
}

@media (max-width: 600px) {
  /* Mobile: compact song cards and embeds */
  .songs-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .song-card img { height: 160px; }
  .carousel { height: 240px; }
  :root { --embed-w: 240px; --embed-h: 240px; }
  /* Slightly smaller hero heading on narrow phones */
  .hero h1 { font-size: 1.8rem; }
  .fs-video video { height: 220px; }
}

/* On small screens, place hero copy above the sign and pin the sign to the bottom of the hero */
@media (max-width: 480px) {
  .fs-hero { padding: 7rem 0 0; }
  .fs-hero .fs-hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* push the sign toward the bottom */
    align-items: center;
    min-height: 48vh; /* provide vertical space so sign can sit at bottom */
    gap: 1rem;
  }

  /* ensure hero copy is visible and centered above the sign */
  .fs-hero .hero-copy {
    position: static !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    text-align: center;
    z-index: 4;
  }

.fs-hero .hero-copy h1 em {
  display:none;
}


  /* place the sign at the bottom of the hero area */
  .fs-hero .hero-sign { order: 2; display: block; margin: 0 auto; }
  .fs-hero .hero-copy { order: 1; }
  .hero-sign .welcome-sign { width: 260px; max-width: 60vw; display: block; }
}

.hero-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: none;
  padding: 0.9rem 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  z-index: 5;
}

.fs-hero .fs-hero-cta { margin-top: 2rem; }

/* Hero slideshow slides (crossfade) */
.hero-slideshow {
  position: absolute; /* sit behind content as a background */
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  overflow: hidden;
  background-color: var(--hero-bg, #0b0b0b);
}

.hero-slideshow .hero-slide {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 400ms ease-in-out;
  will-change: opacity;
}

.hero-slideshow .hero-slide.visible {
  opacity: 1;
}

/* Ensure slideshow is stacked behind overlay/content */
.hero-slideshow { z-index: 0; }
.hero-slideshow .hero-slide { z-index: 0; }

/* NOTE: CSS keyframe animation removed. JS controls crossfade via .visible class */

/* Ensure overlay and content remain above slides */
.hero-bleed .hero-overlay { z-index: 2; position: absolute; height:100% }
.fs-hero-inner { z-index: 3; position: relative; }

/* Two-column layout for long required-mod lists; collapses to one column on small screens */
.required-mods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 2rem;
  list-style: none;
  padding-left: 0;
  line-break: anywhere;
}
.required-mods li {
  position: relative;
  padding-left: 1.25rem;
  margin: 0.25rem 0;
}
.required-mods li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color, #b36b00);
  font-size: 1rem;
  line-height: 1;
}
.required-mods .new-highlight {
    border: 1px solid var(--primary-color);
    border-radius: 4px;
}

/* Special callout for breaking mod updates */
.required-mods li.breaking {
  border: 2px solid #b36b00; /* amber */
  background: rgba(179, 107, 0, 0.08);
  border-radius: 6px;
  padding: 0.35rem 0.5rem 0.5rem 1.25rem;
}
.required-mods li .mod-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  border-radius: 999px;
  color: rgb(179, 107, 0);
  background: rgba(179, 107, 0,0.18);
  border: 1px solid rgba(179, 107, 0,0.35);
}
.required-mods li .mod-note {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: #b36b00;
}

/* Warning variant for alpha notice blocks */
.alpha-notice.mod-warning {
  background: linear-gradient(150deg, #a36c40 20%, #70492a 50%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

@media (max-width: 900px) {
  .required-mods { grid-template-columns: 1fr; }
}

/* Mod tracker visuals: checkbox, downloaded (struck) state, and reset action */
.required-mods .mod-checkbox {
  margin-right: 0.6rem;
  transform: translateY(0.05rem);
  width: 1rem;
  height: 1rem;
}
.required-mods li.downloaded {
  opacity: 0.6;
  text-decoration: line-through;
  transition: opacity 180ms ease, color 180ms ease;
}
.required-mods-actions { margin-bottom: 0.6rem; display:flex; justify-content:flex-end; }
.required-mods-reset {
  background: none;
  border: 0;
  color: var(--primary-color);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.15rem 0.35rem;
}

/* Make the actions row visually distinct with a subtle border and padding */
.required-mods-actions {
  border: 1px solid rgba(51,41,31,0.1);
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  margin:20px 0;
  gap: 0.5rem;
  align-items: center;
  background: rgba(255,255,255,0.1);
}
.required-mods-actions p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(51,41,31,0.85);
  flex: 1 1 auto;
}
.required-mods-actions .required-mods-reset {
  flex: 0 0 auto;
}

a, a:link, a:visited, a:active {
  color: var(--primary-color);
}
a:hover {
  color: var(--secondary-color);
}

/* Confirmation modal for combined download */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 2000; }
.modal-overlay.visible { display: flex; }
.modal { background: #fff; color: var(--text-color); max-width: 720px; width: calc(100% - 48px); padding: 1.25rem; border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.modal h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.modal p { margin: 0 0 1rem; line-height: 1.4; }
.modal-actions { display:flex; gap: 0.75rem; justify-content: flex-end; align-items: center; }
.modal-actions .btn { margin: 0; }
.modal .modal-opt { display:flex; align-items:center; gap:0.5rem; font-size:0.9rem; color: rgba(0,0,0,0.7); }

/* Carousel: one-per-page layout with blurred background fill */
.carousel { position: relative; overflow: hidden; }
.carousel .carousel-track { display: flex; height: 100%; gap: 0 !important; will-change: transform; }
.carousel .carousel-slide { position: relative; flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.carousel .carousel-slide .slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(18px); transform: scale(1.1); z-index: 0; }
.carousel .carousel-slide img.carousel-img { position: relative; z-index: 1; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

/* Keep existing nav/indicators on top */
.carousel-prev, .carousel-next, .carousel-indicators { z-index: 5; }

/* Carousel: enforce zero padding and gap for exact paging */
.carousel .carousel-track {
  padding: 0 !important;
  gap: 0 !important;
  align-items: center;
}

/* Testimonials / Community Feedback (final styles) */
.fs-testimonials {
  background: radial-gradient(1200px 400px at 50% -10%, rgba(163,108,64,0.12), transparent 60%),
              linear-gradient(180deg, rgba(19,12,8,0.08), rgba(19,12,8,0.03));
}
.fs-testimonials h2 {
  font-family: var(--font-heading);
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.testimonial {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition: opacity 420ms ease, transform 420ms ease;
}

.testimonials { position: relative; min-height: 180px; padding: 10px 0 26px; }
.testimonial {
  position: absolute; inset: 0; display:flex; align-items:center; justify-content:center;
  padding: 18px 22px; opacity: 0; transform: translateY(8px) scale(0.985);
  transition: opacity 420ms ease, transform 420ms ease;
}
.testimonial.visible { opacity: 1; transform: translateY(0) scale(1); }
.testimonial blockquote {
  position: relative; max-width: 820px; width: 100%;
  font-size: 1.2rem; line-height: 1.7; color: var(--secondary-color);
  quotes: "\201C" "\201D" "\2018" "\2019";
  padding: 1.25rem 1.25rem 1rem 3.25rem; border-radius: 10px;
  background: rgba(255,255,255,0.85); border: 1px solid rgba(51,41,31,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06); backdrop-filter: blur(2px);
}
.testimonial figcaption { margin-top: 0.5rem; font-size: 0.95rem; color: rgba(51,41,31,0.75); }
.testimonial blockquote::before {
  content: "\201C"; position: absolute; left: 12px; top: 8px;
  font-size: 2.4rem; line-height: 1; color: rgba(163,108,64,0.65);
}
.testimonial-prev, .testimonial-next { position:absolute; top:50%; transform:translateY(-50%);
  background: rgba(0,0,0,0.4); color:#fff; border:none; width:42px; height:42px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:2; }
.testimonial-prev { left:6px; } .testimonial-next { right:6px; }
.testimonial-prev:hover, .testimonial-next:hover { background: rgba(0,0,0,0.55); }
.testimonial-indicators { position:absolute; left:50%; bottom:2px; transform:translateX(-50%); display:flex; gap:8px; }
.testimonial-indicators button { width:8px; height:8px; border-radius:50%; background: rgba(51,41,31,0.25); border:none; }
.testimonial-indicators button.active { background: var(--primary-color); }
@media (prefers-reduced-motion: reduce) { .testimonial { transition: none; } }

/* Community Join (Server + Discord) */
.fs-join { padding: 3rem 0; background: #fff; }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: stretch; }
.join-card { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 10px 30px rgba(0,0,0,0.06); background: #fff; }
.join-card .join-content { position: relative; z-index: 2; padding: 1.4rem 1.25rem 1.25rem; }
.join-card h3 { font-family: var(--font-heading); font-size: 1.8rem; line-height: 1.2; margin: 0 0 0.35rem; color: var(--secondary-color); }
.join-card h3 span { display:block; font-size: 1.2rem; font-weight: 400; opacity: 0.85; }
.join-card .muted.small { font-size: 0.85rem; opacity: 0.7; margin-top: 0.35rem; }
.join-card .join-points { margin: 0.4rem 0 0.6rem 1rem; opacity: 0.9; }
.join-card .join-points li { margin: 0.15rem 0; }

.join-server .join-bg { position: absolute; inset:0; background: linear-gradient(180deg, rgba(255,255,255,0.36), rgba(255,255,255,0.82)), url('images/gage/multiplayer-back.jpg'); background-size: cover; background-position: center; filter: grayscale(0.4) blur(1px); z-index: 1; }

.join-discord { display:flex; flex-direction: column; justify-content: center;
background: linear-gradient(209deg, rgb(163 108 64 / 40%), rgb(163 108 64 / 5%) 50%);
}
.join-discord .btn {    margin: 1rem 0;
    display: inline-block; }
.join-discord .feedback { margin-top: 1rem; border-top: 1px dashed rgba(0,0,0,0.12); padding-top: 0.8rem; }
.join-discord .email-link { word-break: break-word; }


.join-discord::after {
  content: "\f392";
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
  position: absolute;
  right: 8px;
  top: -6px;
  font-size: clamp(140px, 22vw, 260px);
  line-height: 1;
  color: #a36c40;
  opacity: 0.06;
  pointer-events: none;
}

@media (max-width: 900px) { .join-grid { grid-template-columns: 1fr; } }

.fs-milestone {
  position: relative;
  z-index: 5;
  /* padding: 3rem 0 2.5rem; */
  margin: 0;
  background: #fff;
  box-shadow: inset 0 0 25px rgba(0,0,0,0.18);
}
.milestone-card {
  position: relative;
  overflow: hidden;
  /* background: #fff; */
  color: var(--secondary-color);
  border-radius: 10px;
  /* border: 1px solid rgba(0,0,0,0.06); */
  /* box-shadow: 0 18px 50px rgba(0,0,0,0.08); */
}
.milestone-inner { text-align: center; padding: 2rem 1rem 1.5rem; position: relative; z-index: 1; width: 100%; max-width: none; margin: 0; }
.milestone-inner .tag { display:inline-block; background: rgba(163,108,64,0.12); color: var(--secondary-color); padding: 4px 10px; border-radius:999px; font-weight:700; letter-spacing:0.6px; margin-bottom: 0.35rem; }
.milestone-inner h2 { font-family: var(--font-heading); font-size: clamp(2rem, 5.5vw, 3.4rem); margin: 0.15rem 0 0.4rem; }
.milestone-inner .count { background: linear-gradient(90deg, #a36c40, #bb8458); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 2px 14px rgba(163,108,64,0.25); }
.milestone-sub { opacity: 0.9; margin-bottom: 0.5rem; }
.milestone-actions { display:flex; gap:0.5rem; justify-content:center; }
.milestone-card .confetti { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:0; }

/* Full-width milestone override */
.fs-milestone .container { width: 100%; max-width: none; padding-left: 0; padding-right: 0; }
.milestone-card { border-radius: 0; }

/* Curved halo above Map Features */
.fs-features { position: relative; }
.fs-features::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -40px;
  width: min(980px, 92%);
  height: 95px;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(0,0,0,0.18), rgba(0,0,0,0.12) 45%, rgba(0,0,0,0) 70%);
  filter: blur(12px);
  opacity: 0.22;
}