/* ============================================================
   POSTAL 2 REDUX — Game Page Styles (Flat2VR game-page template)
   ============================================================ */

:root {
  --pr-black:   #0d0402;
  --pr-red:     #c8111b;
  --pr-red-hot: #e8222b;
  --pr-red-dim: #6e0b10;
  --pr-cream:   #f1e7d6;
  --pr-text:    rgba(255, 255, 255, 0.88);
}

@font-face {
  font-family: 'Smash';
  src: url('../assets/fonts/smash.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

.postal-page {
  background-color: var(--pr-black);
  color: var(--pr-text);
}

.pr-headline {
  font-family: 'Smash', 'AnotherDanger', 'Quatro', system-ui, sans-serif;
  font-weight: 400;
  color: var(--pr-red);
  letter-spacing: 0.01em;
}

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

/* ---- Shared button ---- */
.pr-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 15px 30px;
  background: var(--pr-red);
  color: #fff;
  font-family: 'Quatro', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: transform 0.25s ease, filter 0.25s ease, background 0.2s;
}

.pr-btn:hover {
  background: var(--pr-red-hot);
  transform: translateY(-4px) scale(1.04);
  filter: drop-shadow(0 6px 14px rgba(200, 17, 27, 0.4));
}

.pr-btn:focus-visible {
  outline: 2px solid var(--pr-cream);
  outline-offset: 3px;
}

.pr-btn i { font-size: 0.8em; }
.pr-btn .fa-discord { font-size: 1.15rem; }

/* ---- HERO ---- */
.pr-hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  height: 100vh;
  max-height: 980px;
  background: var(--pr-black);
}

.pr-hero-bg {
  position: absolute;
  inset: 0;
}

.pr-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.pr-hero-thanks .pr-hero-bg {
  background: url('../assets/postal/hero-keyart.webp') center / cover no-repeat;
}

.pr-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(13,4,2,0.55) 0%,
    rgba(13,4,2,0.25) 30%,
    rgba(13,4,2,0.45) 62%,
    rgba(13,4,2,0.9) 88%,
    rgba(13,4,2,1) 100%);
}

.pr-hero-content {
  position: absolute;
  inset: 0;
  top: var(--nav-h);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
  text-align: center;
}

.pr-hero-logo-wrap { margin: 0; }

.pr-hero-logo {
  width: min(560px, 86vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 28px rgba(0,0,0,0.75));
}

.pr-hero-status {
  font-family: 'Smash', 'AnotherDanger', system-ui, sans-serif;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  letter-spacing: 0.08em;
  color: var(--pr-cream);
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.pr-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 30px;
  justify-content: center;
  align-items: center;
}

.pr-hero-buy {
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.pr-hero-buy:hover {
  transform: translateY(-6px) scale(1.06);
  filter: drop-shadow(0 6px 14px rgba(200,17,27,0.45)) brightness(1.08);
}

.pr-hero-buy:focus-visible {
  outline: 2px solid var(--pr-cream);
  outline-offset: 4px;
}

.pr-hero-buy img {
  height: 56px;
  width: auto;
}

.pr-hero-thanks .pr-hero-status {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 400;
  color: var(--pr-red);
}

.pr-thanks-copy {
  max-width: 520px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--pr-cream);
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* ---- A WEEK IN PARADISE ---- */
.pr-intro {
  position: relative;
  overflow: hidden;
  background: var(--pr-black);
  margin-top: -20px;
  padding-top: 96px;
}

.pr-intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.pr-intro-title { margin: 0; }

.pr-intro-title img {
  width: min(620px, 92%);
  height: auto;
  margin: 0 auto;
}

.pr-intro-stage {
  position: relative;
  margin-top: -3vw;
}

.pr-intro-art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 62%, transparent 96%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 62%, transparent 96%);
}

.pr-intro-text {
  position: absolute;
  z-index: 2;
  top: 24%;
  left: 0;
  right: 0;
}

.pr-intro-desc {
  max-width: min(440px, 34vw);
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.95), 0 0 18px rgba(0,0,0,0.85);
}

.pr-intro-desc strong { color: var(--pr-cream); }

/* ---- TRAILER ---- */
.pr-trailer { background: var(--pr-black); }

.pr-trailer-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--pr-black);
}

.pr-trailer-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.pr-trailer-mute {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(13,4,2,0.7);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.pr-trailer-mute:hover {
  background: var(--pr-red);
  transform: scale(1.08);
}

.pr-trailer-mute:focus-visible {
  outline: 2px solid var(--pr-cream);
  outline-offset: 3px;
}

/* ---- FEATURES ---- */
.pr-features {
  background: var(--pr-black);
  padding: 72px 0 24px;
}

.pr-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 64px;
  row-gap: 48px;
}

.pr-feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.pr-feature-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pr-red);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 0 0 4px rgba(200,17,27,0.18);
}

.pr-feature-title {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.pr-feature p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- GALLERY ---- */
.pr-gallery {
  background: var(--pr-black);
  padding: 64px 0 80px;
}

.pr-gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}

.pr-gallery-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,0.08);
}

.pr-gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.pr-gallery-slide.active { opacity: 1; }

.pr-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.pr-gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s;
}

.pr-gallery-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pr-gallery-thumb:hover { opacity: 0.85; }

.pr-gallery-thumb.active {
  opacity: 1;
  border-color: var(--pr-red);
}

.pr-gallery-thumb:focus-visible {
  outline: 2px solid var(--pr-cream);
  outline-offset: 2px;
}

.pr-gallery-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.pr-gallery-text p {
  font-size: 1.02rem;
  line-height: 1.7;
}

.pr-gallery-text { transition: opacity 0.2s ease; }
.pr-gallery-text.is-fading { opacity: 0; }

/* ---- NEWSLETTER ---- */
.pr-newsletter {
  position: relative;
  background: #1a0d08 url('../assets/postal/bg-paradise-sign.webp') right center / cover no-repeat;
  padding: 80px 0 96px;
  overflow: hidden;
}

.pr-newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,4,2,0.94) 0%, rgba(13,4,2,0.82) 38%, rgba(13,4,2,0.2) 70%, rgba(13,4,2,0) 100%),
              linear-gradient(to bottom, var(--pr-black) 0%, rgba(13,4,2,0) 22%, rgba(13,4,2,0) 78%, var(--pr-black) 100%);
}

.pr-newsletter-inner {
  position: relative;
  z-index: 1;
}

.pr-newsletter-banner {
  margin: 0 0 48px;
  text-align: center;
}

.pr-newsletter-banner img {
  width: min(640px, 100%);
  height: auto;
  margin: 0 auto;
}

.pr-newsletter-text { max-width: 540px; }

.pr-newsletter-heading {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.1;
  color: var(--pr-cream);
  margin-bottom: 16px;
}

.pr-newsletter-text > p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.pr-newsletter-form {
  display: flex;
  gap: 14px;
}

.pr-newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 18px;
  background: rgba(13,4,2,0.6);
  border: 1.5px solid var(--pr-red);
  border-radius: 6px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pr-newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }

.pr-newsletter-form input[type="email"]:focus {
  border-color: var(--pr-red-hot);
  box-shadow: 0 0 0 3px rgba(200,17,27,0.3);
}

.pr-newsletter-form input[aria-invalid="true"] { border-color: #ef4444; }

.pr-newsletter-submit {
  height: 50px;
  padding: 0 26px;
  border: none;
  border-radius: 6px;
  background: var(--pr-red);
  color: #fff;
  font-family: 'Quatro', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease, background 0.2s;
}

.pr-newsletter-submit:hover {
  background: var(--pr-red-hot);
  transform: translateY(-4px) scale(1.04);
  filter: drop-shadow(0 6px 14px rgba(200,17,27,0.4));
}

.pr-newsletter-submit:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.pr-form-status {
  min-height: 1.5em;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.pr-form-status.is-error { color: #ff7a6e; }
.pr-form-status.is-ok { color: #7fe08a; }

.pr-consent {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

.pr-consent a { text-decoration: underline; }

/* ---- COMMUNITY ---- */
.pr-community {
  position: relative;
  background: #1a0606 url('../assets/postal/bg-community.webp') right top / cover no-repeat;
  padding: 56px 0;
  overflow: hidden;
}

.pr-community::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(110,11,16,0.92) 0%, rgba(80,8,12,0.78) 40%, rgba(40,4,6,0.15) 75%, rgba(13,4,2,0) 100%);
}

.pr-community-inner {
  position: relative;
  z-index: 1;
}

.pr-community-text { max-width: 640px; }

.pr-community-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
  color: var(--pr-cream);
  margin-bottom: 14px;
}

.pr-community-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.pr-community .pr-btn {
  margin-top: 16px;
  background: var(--pr-black);
}
.pr-community .pr-btn:hover { background: #000; }

.pr-community-social {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.pr-community-social-label {
  font-family: 'Quatro', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.pr-community-social-icons {
  display: flex;
  gap: 20px;
}

.pr-community-social-icons a {
  color: #fff;
  font-size: 1.4rem;
  transition: transform 0.2s, color 0.2s;
}

.pr-community-social-icons a:hover {
  transform: translateY(-3px);
  color: var(--pr-cream);
}

/* ---- HEADER / FOOTER / MODAL OVERRIDES ---- */
.postal-page .site-header,
.postal-page .site-header.scrolled {
  background: var(--pr-black);
}

.postal-page .btn-merch {
  background: var(--pr-red);
  color: #fff;
}

.postal-page .btn-merch:hover { background: var(--pr-red-hot); }

.postal-page .signup-modal-icon { color: var(--pr-red); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .pr-intro-stage {
    display: flex;
    flex-direction: column;
    margin-top: 24px;
  }

  .pr-intro-text {
    position: static;
    order: -1;
    text-align: center;
  }

  .pr-intro-desc {
    max-width: 640px;
    margin: 0 auto 16px;
  }

  .pr-intro-art { margin-top: -6vw; }
}

@media (max-width: 860px) {
  .pr-hero {
    height: auto;
    min-height: 620px;
  }

  .pr-hero-buy img { height: 46px; }

  .pr-features-grid,
  .pr-gallery-grid {
    grid-template-columns: 1fr;
  }

  .pr-intro { padding-top: 56px; }

  .pr-intro-art {
    width: 170%;
    max-width: none;
    margin-left: -70%;
    margin-top: -8vw;
  }

  .pr-features-grid { row-gap: 36px; }

  .pr-gallery-text {
    order: -1;
    text-align: center;
  }

  .pr-gallery-thumbs { grid-template-columns: repeat(3, 1fr); }

  .pr-newsletter { background-position: 70% center; }

  .pr-newsletter::before {
    background: rgba(13,4,2,0.82);
  }

  .pr-newsletter-text {
    margin: 0 auto;
    text-align: center;
  }

  .pr-community::before {
    background: linear-gradient(to bottom, rgba(110,11,16,0.92), rgba(60,6,9,0.88));
  }

  .pr-community-text {
    margin: 0 auto;
    text-align: center;
  }

  .pr-community-social {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .pr-hero-buy img { height: 40px; }

  .pr-newsletter-form { flex-direction: column; }

  .pr-trailer-mute {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pr-gallery-slide,
  .pr-gallery-text,
  .pr-btn,
  .pr-hero-buy,
  .pr-newsletter-submit {
    transition: none;
  }
}
