/* ═══════════════════════════════════════════════════
   ICARUS FLIGHT GAMES — style.css
   Paleta: rojo sangre, dorado antiguo, negro profundo
   ═══════════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ─── */
:root {
  --color-bg:          #06040a;
  --color-bg-mid:      #0d0b14;
  --color-bg-card:     #100e19;
  --color-red:         #8B0000;
  --color-red-light:   #a61010;
  --color-red-glow:    rgba(139,0,0,0.35);
  --color-red-text:    #e04545;
  --color-gold:        #C9A96E;
  --color-gold-light:  #e0c48a;
  --color-gold-dim:    rgba(201,169,110,0.12);
  --color-text:        #d4cfc8;
  --color-text-dim:    #9a9490;
  --color-border:      rgba(201,169,110,0.18);
  --color-border-red:  rgba(139,0,0,0.4);

  --font-title:    'Cinzel Decorative', 'Cinzel', serif;
  --font-heading:  'Cinzel', serif;
  --font-body:     'Crimson Text', Georgia, serif;

  --nav-h: 70px;
  --section-gap: 7rem;
  --radius: 2px;
  --transition: 0.3s ease;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--color-gold); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus-visible { color: var(--color-gold-light); }
a:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 3px; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }
svg { display: block; }

/* ─── CANVAS PARTICLES ─── */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ─── NAVIGATION ─── */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), backdrop-filter var(--transition);
}
.main-nav.scrolled {
  background: rgba(6,4,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-gold);
  text-decoration: none;
}
.nav-logo-icon { width: 32px; height: 32px; flex-shrink: 0; }
.nav-logo-img { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(201,169,110,0.4)); transition: filter var(--transition); }
.nav-logo:hover .nav-logo-img { filter: drop-shadow(0 0 10px rgba(201,169,110,0.7)); }
.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1;
  display: flex;
  flex-direction: column;
}
.nav-logo-sub {
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--color-text-dim);
  font-weight: 400;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links li a {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition);
}
.nav-links li a:hover,
.nav-links li a:focus-visible,
.nav-links li a[aria-current="page"] { color: var(--color-gold); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-red);
  color: #fff !important;
  padding: 0.45rem 1rem !important;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition) !important;
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--color-red-light) !important; }
.nav-cta .icon-steam { width: 14px; height: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-gold);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--color-red);
  color: #fff;
  box-shadow: 0 0 20px var(--color-red-glow);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--color-red-light);
  color: #fff;
  box-shadow: 0 0 35px var(--color-red-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--color-gold-dim);
  color: var(--color-gold-light);
}

.btn-steam-hero {
  background: #171a21;
  color: #c7d5e0;
  border: 1px solid rgba(199,213,224,0.2);
}
.btn-steam-hero:hover, .btn-steam-hero:focus-visible {
  background: #1b2838;
  color: #fff;
  border-color: rgba(199,213,224,0.5);
}

.btn-steam-sm {
  background: #171a21;
  color: #c7d5e0;
  font-size: 0.7rem;
  padding: 0.6rem 1.2rem;
}
.btn-steam-sm:hover { background: #1b2838; color: #fff; }

.btn-disabled {
  background: #1a1a1a;
  color: var(--color-text-dim);
  border: 1px solid #2a2a2a;
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-buy-cta {
  background: linear-gradient(135deg, var(--color-red), #5c0000);
  color: #fff;
  font-size: 1rem;
  padding: 1.1rem 3rem;
  box-shadow: 0 0 40px var(--color-red-glow);
  border: 1px solid rgba(139,0,0,0.6);
}
.btn-buy-cta svg { width: 22px; height: 22px; }
.btn-buy-cta:hover, .btn-buy-cta:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 50px rgba(139,0,0,0.55);
}

/* ─── SECTIONS ─── */
.section {
  position: relative;
  z-index: 1;
  padding: var(--section-gap) 0;
}
.section-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-inner--narrow { max-width: 900px; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-red-text);
  margin-bottom: 0.8rem;
}
.section-heading {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(201,169,110,0.2);
}
.section-subtext {
  margin-top: 1rem;
  color: var(--color-text-dim);
  font-style: italic;
  font-size: 1.1rem;
}
.heading-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto;
}
.heading-ornament span {
  display: block;
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-red));
}
.heading-ornament span:last-child { background: linear-gradient(270deg, transparent, var(--color-border-red)); }
.heading-ornament svg { width: 14px; height: 14px; }

/* ─── HERO INDEX ─── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg-layers {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139,0,0,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 100%, rgba(50,0,0,0.3) 0%, transparent 50%),
    var(--color-bg);
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 30%, rgba(0,0,0,0.7) 100%);
}
.hero-scanlines {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}
.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-red-text);
  margin-bottom: 1.5rem;
}
.hero-title-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  font-family: var(--font-title);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 1.5rem;
}
.hero-title-accent {
  font-size: clamp(1.8rem, 6vw, 4.5rem);
  color: var(--color-red);
  letter-spacing: 0.35em;
}

/* Glitch */
.glitch {
  position: relative;
  color: var(--color-gold);
  text-shadow: 0 0 20px rgba(201,169,110,0.3);
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.glitch::before {
  color: #ff0050;
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
  animation: glitch-1 3.5s infinite linear;
}
.glitch::after {
  color: #00e5ff;
  clip-path: polygon(0 60%, 100% 60%, 100% 75%, 0 75%);
  animation: glitch-2 4s infinite linear;
}
@keyframes glitch-1 {
  0%, 90%, 100% { transform: translate(0); opacity: 0; }
  92% { transform: translate(-3px, 1px); opacity: 0.7; }
  94% { transform: translate(2px, -1px); opacity: 0.5; }
  96% { transform: translate(-1px, 2px); opacity: 0.6; }
}
@keyframes glitch-2 {
  0%, 88%, 100% { transform: translate(0); opacity: 0; }
  90% { transform: translate(3px, -1px); opacity: 0.6; }
  93% { transform: translate(-2px, 1px); opacity: 0.4; }
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--color-text-dim);
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
}
.hero-tagline em { color: var(--color-text); font-style: italic; }
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-dim);
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-bar {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scroll-hint 2s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%, 100% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

/* ─── GAMES SECTION ─── */
.games-section { background: var(--color-bg-mid); }

.games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.game-card:hover {
  border-color: var(--color-border-red);
  box-shadow: 0 0 40px rgba(139,0,0,0.2);
}

.game-card-bg {
  position: absolute; inset: 0;
}
.game-card-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.game-card:hover .game-card-bg img { transform: scale(1.04); }
.game-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(6,4,10,0.97) 0%,
    rgba(6,4,10,0.6) 50%,
    rgba(6,4,10,0.2) 100%
  );
}

.coming-soon-bg {
  width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(139,0,0,0.15), transparent 60%),
    repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(201,169,110,0.03) 30px, rgba(201,169,110,0.03) 31px),
    var(--color-bg-card);
}

.game-card-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem;
}
.game-card-top { }
.game-card-bottom { }

.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
}
.badge-available {
  background: rgba(139,0,0,0.3);
  color: #ff6b6b;
  border: 1px solid rgba(139,0,0,0.5);
}
.badge-dev {
  background: rgba(201,169,110,0.1);
  color: var(--color-gold);
  border: 1px solid var(--color-border);
}

.game-card-platform {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  margin-bottom: 0.5rem;
}
.game-card-name {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(201,169,110,0.2);
}
.game-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-dim);
  margin-bottom: 1.5rem;
  max-width: 380px;
}
.game-card-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ─── ABOUT SECTION ─── */
.about-section { background: var(--color-bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 5rem;
  align-items: center;
}
.about-copy p {
  color: var(--color-text-dim);
  margin-bottom: 1.25rem;
}
.about-copy p:first-child { font-size: 1.2rem; color: var(--color-text); }

.about-quote-block {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-red);
  padding: 2.5rem 2rem 2rem;
  position: relative;
}
.quote-mark {
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 0;
  color: var(--color-red);
  opacity: 0.4;
  position: absolute;
  top: 1.5rem; left: 1.5rem;
}
blockquote {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.6;
  padding-top: 1.5rem;
  margin-bottom: 1rem;
}
cite {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  font-style: normal;
}

/* ─── CREATORS GRID ─── */
.creators-grid {
  display: grid;
  grid-template-columns: repeat(2, 260px);
  gap: 2.5rem;
  justify-content: center;
  margin-top: 4rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--color-border);
}
.creator-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.creator-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgba(201,169,110,0.1);
}
.creator-img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--color-bg);
}
.creator-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}
.creator-card:hover .creator-img-wrap img { transform: scale(1.04); }

.creator-info {
  padding: 1rem 0.85rem 1.25rem;
  text-align: center;
}
.creator-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}
.creator-role {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-red-text);
  margin-bottom: 0.9rem;
}
.creator-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.35rem 0.75rem;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.creator-instagram:hover {
  color: var(--color-gold-light);
  border-color: var(--color-gold);
  background: var(--color-gold-dim);
}
.ig-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .creators-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* ─── HERO CIRCUS ─── */
.hero-circus {
  min-height: 100dvh;
  justify-content: flex-end;
  align-items: flex-end;
  padding-bottom: 6rem;
  padding-top: var(--nav-h);
}
.circus-hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
}
.circus-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.circus-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(6,4,10,1) 0%,
    rgba(6,4,10,0.55) 40%,
    rgba(6,4,10,0.15) 75%,
    transparent 100%
  );
}
.circus-hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 100% at 50% 0%, transparent 40%, rgba(0,0,0,0.5) 100%);
}

/* Curtains */
.curtain {
  position: absolute; top: 0; bottom: 0;
  width: 8vw;
  z-index: 1;
  pointer-events: none;
}
.curtain-left {
  left: 0;
  background: linear-gradient(to right, rgba(60,0,0,0.5), transparent);
}
.curtain-right {
  right: 0;
  background: linear-gradient(to left, rgba(60,0,0,0.5), transparent);
}

.circus-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 3rem;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}
.circus-title {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: var(--font-title);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 1.25rem;
}
.circus-title-line1, .circus-title-line2 {
  font-size: clamp(3.5rem, 9vw, 8rem);
  color: var(--color-gold);
  text-shadow: 0 0 40px rgba(201,169,110,0.25), 0 4px 60px rgba(0,0,0,0.8);
}
.circus-title-of {
  font-size: clamp(1.2rem, 3vw, 2.5rem);
  color: var(--color-red);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 400;
}
.circus-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--color-text-dim);
  margin-bottom: 2.5rem;
}
.circus-tagline em { color: var(--color-text); }

/* ─── TRAILER SECTION ─── */
.trailer-section { background: var(--color-bg-mid); }

.trailer-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
  background: #000;
  aspect-ratio: 16/9;
  position: relative;
}
.trailer-facade {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
  cursor: pointer;
}
.trailer-facade img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}
.trailer-facade:hover img { opacity: 0.75; }
.trailer-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
}
.trailer-facade.hidden { display: none; }

.play-button {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
  transition: transform var(--transition);
}
.play-button:hover { transform: translate(-50%, -50%) scale(1.08); }
.play-icon svg { width: 90px; height: 90px; filter: drop-shadow(0 0 20px rgba(201,169,110,0.4)); }
.play-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.trailer-wrapper iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
}

.trailer-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--color-text-dim);
}
.trailer-note a { color: var(--color-gold); }
.trailer-note a:hover { color: var(--color-gold-light); }

/* ─── SYNOPSIS ─── */
.synopsis-section { background: var(--color-bg); }
.synopsis-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 5rem;
  align-items: start;
}
.synopsis-img-frame {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  border: 1px solid var(--color-border);
  box-shadow: 0 0 40px rgba(0,0,0,0.5), 0 0 80px rgba(139,0,0,0.1);
}
.synopsis-img-frame img { width: 100%; }

.synopsis-copy p { color: var(--color-text-dim); margin-bottom: 1.25rem; }
.synopsis-copy p:first-child { font-size: 1.1rem; color: var(--color-text); }
.synopsis-copy strong { color: var(--color-text); font-weight: 600; }

.features-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.2rem; }
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--color-border);
}
.features-list li:last-child { border-bottom: none; }
.feature-icon { color: var(--color-red); font-size: 0.7rem; margin-top: 0.45rem; flex-shrink: 0; }
.features-list strong { display: block; color: var(--color-text); font-size: 0.95rem; margin-bottom: 0.2rem; }
.features-list span { font-size: 0.9rem; color: var(--color-text-dim); }

/* ─── CHARACTERS ─── */
.characters-section { background: var(--color-bg-mid); }

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.char-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.char-card:hover, .char-card:focus-visible {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgba(201,169,110,0.1);
  outline: none;
}
.char-card--ghost .char-img-wrap img { filter: grayscale(0.4) brightness(0.8); }
.char-card--ghost:hover .char-img-wrap img { filter: none; }

.char-img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--color-bg);
  position: relative;
}
.char-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transition: transform 0.5s ease;
  padding: 0.5rem 0.5rem 0;
}
.char-card:hover .char-img-wrap img { transform: scale(1.04); }

/* Quote overlay — aparece sobre la imagen sin afectar el layout */
.char-quote-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.93) 0%, rgba(0,0,0,0.65) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.char-card:hover .char-quote-overlay,
.char-card:focus-visible .char-quote-overlay { opacity: 1; }

.char-quote {
  font-size: 0.82rem;
  font-style: italic;
  color: #e8e4de;
  line-height: 1.45;
}

.char-info {
  padding: 0.85rem 0.75rem;
  background: var(--color-bg-card);
  text-align: center;
}
.char-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.char-role {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-red-text);
}

/* ─── SCREENSHOTS ─── */
.screenshots-section { background: var(--color-bg); }
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.screenshot-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  cursor: pointer;
  aspect-ratio: 16/9;
  background: var(--color-bg-card);
  border-radius: var(--radius);
}
.screenshot-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
}
.screenshot-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.8);
}
.screenshot-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  background: rgba(0,0,0,0.3);
}
.screenshot-item:hover .screenshot-overlay { opacity: 1; }
.screenshot-overlay svg { width: 36px; height: 36px; }

/* ─── BUY SECTION ─── */
.buy-section {
  position: relative;
  overflow: hidden;
  padding: 9rem 0;
}
.buy-bg {
  position: absolute; inset: 0;
}
.buy-bg img { width: 100%; height: 100%; object-fit: cover; }
.buy-overlay {
  position: absolute; inset: 0;
  background: rgba(6,4,10,0.82);
}
.buy-inner {
  position: relative;
  z-index: 1;
}
.buy-content { text-align: center; }
.buy-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-red-text);
  margin-bottom: 1rem;
}
.buy-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--color-gold);
  margin-bottom: 1rem;
  line-height: 1.15;
}
.buy-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-dim);
  font-style: italic;
  margin-bottom: 2.5rem;
}
.buy-platform {
  margin-top: 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

/* ─── LANGUAGE SWITCHER ─── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--color-text-dim);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.6rem;
  transition: background var(--transition), color var(--transition);
}
.lang-btn.active {
  background: var(--color-red);
  color: #fff;
}
.lang-btn:hover:not(.active) {
  background: var(--color-gold-dim);
  color: var(--color-gold);
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-logo-icon { width: 32px; height: 32px; }
.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--color-gold);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: center; }
.footer-links a {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}
.footer-links a:hover { color: var(--color-gold); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.92);
  cursor: pointer;
}
.lightbox-img-wrap {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85dvh;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85dvh;
  object-fit: contain;
  box-shadow: 0 0 80px rgba(0,0,0,0.8);
  border: 1px solid var(--color-border);
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  z-index: 2;
  background: rgba(139,0,0,0.8);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: var(--color-red-light); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 2;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--color-border);
  color: var(--color-gold);
  font-size: 2.5rem;
  line-height: 1;
  width: 48px; height: 64px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(139,0,0,0.6); }

/* ─── REVEAL ANIMATION ─── */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .games-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .synopsis-grid { grid-template-columns: 1fr; gap: 3rem; }
  .synopsis-img-frame { position: static; max-width: 300px; }
}

@media (max-width: 768px) {
  :root { --section-gap: 4.5rem; }

  .nav-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
  }
  .nav-logo { justify-self: start; }
  .lang-switcher {
    justify-self: center;
    margin-left: 0;
  }
  .nav-toggle { display: flex; }
  .nav-toggle { justify-self: end; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(6,4,10,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    gap: 0;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li a { padding: 0.85rem 1rem; display: block; border-bottom: 1px solid var(--color-border); }
  .nav-links li .nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .hero-title-main { font-size: clamp(2.5rem, 14vw, 5rem); }
  .circus-title-line1, .circus-title-line2 { font-size: clamp(2.8rem, 14vw, 5rem); }
  .characters-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .screenshots-grid { grid-template-columns: 1fr 1fr; }

  .curtain { width: 4vw; }
  .circus-hero-content { padding: 0 1.5rem; }

  .lightbox-prev { left: 0.25rem; }
  .lightbox-next { right: 0.25rem; }
}

@media (max-width: 480px) {
  .screenshots-grid { grid-template-columns: 1fr; }
  .characters-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-red); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-red-light); }

/* ─── SELECTION ─── */
::selection { background: rgba(139,0,0,0.5); color: #fff; }
