/* CampFiya — earthy, slightly spooky palette */
:root {
  --bg-deep: #0f120d;
  --bg-earth: #1a1812;
  --bg-card: #221f18;
  --bg-elevated: #2a261c;
  --text: #e8e0d0;
  --text-muted: #a89f8a;
  --red: #8b2635;
  --red-bright: #c43c4a;
  --gold: #c9a227;
  --gold-soft: #e8c547;
  --green: #2d5a3d;
  --green-mist: #3d7a52;
  --border: rgba(201, 162, 39, 0.22);
  --shadow: rgba(0, 0, 0, 0.55);
  --glow-red: rgba(196, 60, 74, 0.35);
  --glow-gold: rgba(201, 162, 39, 0.25);
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --radius: 6px;
  --transition: 0.25s ease;
  --ad-banner-width: 728px;
  --ad-banner-height: 112px;
  --ad-slot-gap: 8px;
  --ad-reserved-height: calc(var(--ad-banner-height) + var(--ad-slot-gap) + env(safe-area-inset-bottom, 0px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: var(--ad-reserved-height);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(45, 90, 61, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(139, 38, 53, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(201, 162, 39, 0.08), transparent),
    linear-gradient(180deg, var(--bg-earth) 0%, var(--bg-deep) 100%);
}

.fog-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(201, 162, 39, 0.02) 80px,
      rgba(201, 162, 39, 0.02) 81px
    );
  animation: fogDrift 28s linear infinite;
}

@keyframes fogDrift {
  from { background-position: 0 0; }
  to { background-position: 200px 0; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  background: rgba(15, 18, 13, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px var(--shadow);
}

.header-brand-row {
  display: flex;
  justify-content: center;
  padding-bottom: 0.25rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.header-brand-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 18, 13, 0.55) 0%, rgba(15, 18, 13, 0.88) 100%);
  pointer-events: none;
}

.header-brand-row .brand {
  position: relative;
  z-index: 1;
}

.header-inner,
.header-brand-row,
.header-nav-row {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}

.header-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0;
}

.brand {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-logo {
  max-width: min(840px, 96vw);
  max-height: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--glow-gold));
}

.brand-tagline {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.9;
  text-align: center;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  justify-content: center;
}

.radio-bar {
  border-top: 1px solid var(--border);
  background: rgba(26, 24, 18, 0.95);
}

.radio-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.radio-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.radio-station {
  flex: 1;
  min-width: 120px;
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radio-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.radio-btn {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--gold-soft);
  cursor: pointer;
  font-size: 0.75rem;
}

.radio-btn:hover {
  border-color: var(--gold);
}

.radio-vol {
  width: 72px;
  accent-color: var(--gold);
}

.radio-select {
  font-size: 0.78rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  max-width: 220px;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-soft);
  background: rgba(139, 38, 53, 0.2);
  box-shadow: inset 0 0 0 1px var(--border);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
}

/* Main */
#app {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.panel {
  animation: fadeIn 0.4s ease;
}

.panel[hidden] {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.block {
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--gold-soft);
  margin: 0 0 0.75rem;
  text-shadow: 0 0 20px var(--glow-gold);
}

.section-lead {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  max-width: 65ch;
}

.about-text {
  max-width: 70ch;
  font-size: 1.1rem;
}

/* Carousel */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px var(--shadow), inset 0 0 40px rgba(0, 0, 0, 0.3);
  background: var(--bg-card);
  aspect-ratio: 21 / 9;
}

.carousel--compact {
  aspect-ratio: 4 / 3;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(15, 18, 13, 0.75);
  border: 1px solid var(--border);
  color: var(--gold-soft);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background var(--transition), box-shadow var(--transition);
}

.carousel-btn:hover {
  background: rgba(139, 38, 53, 0.6);
  box-shadow: 0 0 12px var(--glow-red);
}

.carousel-btn--prev { left: 0.75rem; }
.carousel-btn--next { right: 0.75rem; }

.carousel-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(232, 224, 208, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.2);
  box-shadow: 0 0 8px var(--glow-gold);
}

/* News */
.news-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.news-chip {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.news-chip:hover,
.news-chip.active {
  color: var(--gold-soft);
  border-color: var(--green-mist);
  background: rgba(45, 90, 61, 0.25);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.news-card:hover {
  border-color: rgba(196, 60, 74, 0.4);
  box-shadow: 0 4px 20px var(--glow-red);
}

.news-card-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-mist);
  margin-bottom: 0.35rem;
}

.news-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--gold-soft);
}

.news-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Split blocks */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: center;
}

.split-block.reverse .split-media { order: 2; }
.split-block.reverse .split-copy { order: 1; }

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 6px 24px var(--shadow);
}

.story-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.video-wrap {
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.split-copy .btn + .btn {
  margin-left: 0.5rem;
}

.weather-controls {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  max-width: 520px;
}

.weather-controls label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.weather-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.weather-controls-row input {
  flex: 1;
  min-width: 160px;
  font-family: var(--font-body);
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
}

.weather-location-label {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--green-mist);
}

.news-card.trend-up {
  border-color: rgba(61, 122, 82, 0.45);
}

.news-card.trend-down {
  border-color: rgba(196, 60, 74, 0.45);
}

.trend-up .trend-icon {
  color: var(--green-mist);
}

.trend-down .trend-icon {
  color: var(--red-bright);
}

.news-card-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.brevo-embed-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  width: 100%;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}

.brevo-embed-wrap iframe {
  display: block;
  width: 100%;
  max-width: 540px;
  min-height: 480px;
  height: 480px;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.stripe-buy-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  min-height: 48px;
}

.stripe-buy-wrap stripe-buy-button {
  display: block;
}

.subscribe-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 540px;
  margin: 0 auto;
}

.rastacamp-subscribe {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.campfiya-subscribe-offer {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  max-width: 540px;
}

.subscribe-tier-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-soft);
  margin: 0 0 0.5rem;
}

.subscribe-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.volume-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.volume-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: inherit;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.volume-card:hover,
.volume-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--glow-gold);
}

.volume-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.volume-card-body {
  padding: 1rem;
}

.volume-card-body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-soft);
}

.volume-lock-badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-top: 0.35rem;
}

.anthology-stories {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.story-pick-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
}

.story-pick-card img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
}

.story-pick-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.story-pick-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem 1rem;
  background: rgba(26, 24, 18, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.member-login-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}

.member-login-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.member-login-form input {
  min-width: 180px;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.full-story-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0.75rem 0 1rem;
  border: 1px solid var(--border);
}

.library-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.library-section--anthologies {
  border-bottom: none;
  padding-bottom: 0;
}

.library-section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-soft);
  margin: 0 0 0.35rem;
}

.library-section-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.chapter-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.chapter-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}

.chapter-pick h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--gold-soft);
}

.chapter-pick small {
  display: block;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.chapter-kicker {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.35rem;
}

.story-subheading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold-soft);
  margin: 1.5rem 0 0.75rem;
}

.article-card--locked {
  opacity: 0.88;
}

.article-card--locked .article-preview {
  position: relative;
  max-height: 5.5rem;
  overflow: hidden;
  margin: 0.75rem 0 1rem;
}

.article-card--locked .article-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg-card) 90%);
}

.article-locked-banner {
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(26, 24, 18, 0.5);
  margin-top: 1rem;
}

.anthology-back-row {
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .story-pick-card {
    grid-template-columns: 1fr;
  }

  .story-pick-card img {
    width: 100%;
    height: 160px;
  }
}

.news-more-btn {
  margin-top: 1rem;
}

.news-card--emergency {
  border-color: var(--red-bright);
  box-shadow: 0 0 16px var(--glow-red);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0.75rem 0 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--gold);
  transition: all var(--transition);
}

.contact-link:hover {
  background: rgba(139, 38, 53, 0.3);
  border-color: var(--red-bright);
}

.contact-link svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
}

.article-card--premium {
  border-color: rgba(201, 162, 39, 0.35);
}

.article-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-mist);
  margin-bottom: 0.5rem;
}

.article-card--premium .article-badge {
  color: var(--gold-soft);
}

.article-card h3 {
  font-family: var(--font-display);
  color: var(--gold-soft);
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.article-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.article-locked {
  color: var(--text-muted);
  font-style: italic;
}

.game-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.game-card-actions .btn {
  flex: 1;
  min-width: 100px;
  text-align: center;
}

.quick-links-block .project-links {
  margin-top: 0;
}

.project-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
  width: 100%;
}

.project-link-card {
  display: block;
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-decoration: none;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.project-link-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px var(--glow-gold);
}

.project-link-label {
  font-family: var(--font-display);
  color: var(--gold-soft);
  font-size: 0.9rem;
}

.project-link-card small {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.sample-card--wide {
  grid-column: 1 / -1;
  max-width: 720px;
}

.sample-card--wide .carousel {
  aspect-ratio: 16 / 9;
}

.sample-card--wide img,
.samples-grid--videos .sample-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}


.games-preview-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: center;
}

/* Buttons */
.btn {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, #6b1a28 100%);
  color: var(--text);
  border-color: var(--red-bright);
  box-shadow: 0 4px 16px var(--glow-red);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--red-bright) 0%, var(--red) 100%);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #9a7a18 100%);
  color: var(--bg-deep);
  border-color: var(--gold-soft);
  box-shadow: 0 4px 16px var(--glow-gold);
}

.btn-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--gold-soft);
  border-color: var(--gold);
}

/* Subscribe */
.news-card h3 a {
  color: var(--gold-soft);
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--red-bright);
  text-decoration: underline;
}

.affiliate-list--logo {
  display: flex;
  justify-content: center;
  grid-template-columns: unset;
  padding: 0 1.5rem;
}

.affiliate-logo-link {
  display: inline-block;
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: box-shadow var(--transition), transform var(--transition);
  max-width: 100%;
}

.affiliate-logo-link:hover {
  box-shadow: 0 8px 28px var(--glow-gold);
  transform: translateY(-2px);
}

.affiliate-logo {
  max-width: min(140px, 40vw);
  height: auto;
  display: block;
  margin: 0 auto;
}

.subscribe-block {
  background-image: linear-gradient(145deg, rgba(34, 31, 24, 0.92) 0%, rgba(45, 90, 61, 0.55) 100%),
    url("/assets/images/plains-campfire.jpg");
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.2);
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 480px;
}

.subscribe-form input,
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  flex: 1;
  min-width: 200px;
}

.subscribe-form input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--glow-gold);
}

.form-feedback {
  margin-top: 0.75rem;
  min-height: 1.5em;
  font-size: 0.95rem;
}

.form-feedback.success { color: var(--green-mist); }
.form-feedback.error { color: var(--red-bright); }

/* Affiliates */
.affiliate-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.affiliate-card {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.affiliate-card a {
  font-family: var(--font-display);
  color: var(--gold-soft);
  text-decoration: none;
  font-size: 0.9rem;
}

.affiliate-card a:hover {
  color: var(--red-bright);
}

.affiliate-card small {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 0 1rem;
  border-top: 1px solid var(--border);
}

.main-site-link {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-soft);
  text-decoration: none;
  letter-spacing: 0.06em;
}

.main-site-link:hover {
  color: var(--red-bright);
  text-shadow: 0 0 12px var(--glow-red);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.25rem 0;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--gold);
  transition: all var(--transition);
}

.social-links a:hover {
  background: rgba(45, 90, 61, 0.4);
  border-color: var(--green-mist);
  transform: translateY(-2px);
}

.social-links svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.footer-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Tab panels */
.tab-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.tab-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--gold-soft);
  margin: 0 0 0.5rem;
}

.tab-description {
  color: var(--text-muted);
  max-width: 65ch;
  margin: 0;
}

.samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.sample-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.sample-card:hover {
  box-shadow: 0 8px 28px var(--shadow);
}

.sample-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.sample-card-body {
  padding: 1.1rem;
}

.sample-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.5rem;
  color: var(--gold-soft);
}

.sample-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.samples-grid--videos .sample-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.full-story {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 70ch;
}

.full-story h2 {
  font-family: var(--font-display);
  color: var(--gold-soft);
  margin-top: 0;
}

.story-body {
  white-space: pre-wrap;
  color: var(--text-muted);
}

.story-body p {
  margin-bottom: 1rem;
}

/* Games grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.game-card img,
.game-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.game-card-body {
  padding: 1.1rem;
}

.game-card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  color: var(--gold-soft);
}

.game-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.game-card .btn {
  width: 100%;
  text-align: center;
}

/* Contact */
.contact-form {
  max-width: 520px;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.form-row textarea {
  width: 100%;
  resize: vertical;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .header-nav-row {
    justify-content: space-between;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 0.5rem;
  }

  .main-nav.open {
    display: flex;
  }

  .radio-bar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .radio-select {
    max-width: 100%;
  }

  .split-block,
  .split-block.reverse,
  .games-preview-block {
    grid-template-columns: 1fr;
  }

  .split-block.reverse .split-media,
  .split-block.reverse .split-copy {
    order: unset;
  }

  .carousel {
    aspect-ratio: 16 / 10;
  }
}

.header-auth {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.35rem 1rem 0.75rem;
}

.header-member-label {
  font-size: 0.85rem;
  color: var(--gold-soft);
}

.header-admin-link {
  text-decoration: none;
}

.signin-dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  padding: 0;
  max-width: min(22rem, 92vw);
}

.signin-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.signin-dialog-inner {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.signin-dialog-inner h2 {
  margin: 0;
  font-family: var(--font-display);
}

.signin-dialog-lead,
.signin-dialog-hint {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.signin-dialog-inner label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.signin-dialog-inner input {
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
}

.signin-dialog-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.ad-banner-slot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  width: 100%;
  min-height: var(--ad-banner-height);
  height: var(--ad-banner-height);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #000;
  border-top: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-banner-frame {
  width: 100%;
  max-width: var(--ad-banner-width);
  height: var(--ad-banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-banner-hit {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-banner-hit--linked {
  cursor: pointer;
}

.ad-banner-img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-coming-soon-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--ad-reserved-height) + 12px);
  transform: translateX(-50%);
  z-index: 201;
  padding: 10px 18px;
  background: rgba(20, 20, 20, 0.96);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  color: var(--text);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.ad-coming-soon-toast--visible {
  opacity: 1;
}

.success-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.success-wrap {
  max-width: 28rem;
  text-align: center;
}

.success-password {
  font-family: monospace;
  background: var(--bg-card);
  padding: 0.75rem;
  border-radius: var(--radius);
  word-break: break-all;
}
