/* Crazy Combi · Vuelve a Casa — FINAL landing
   Standalone CSS · no frameworks
   Theme: night (azul noche + dorado)
*/

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Bowlby+One&family=Bungee&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --cc-bg: #16243d;
  --cc-bg-2: #0E1A2B;
  --cc-deep: #0a1220;
  --cc-ink: #FFE9A8;
  --cc-ink-soft: #ffe9a8cc;
  --cc-accent: #FFD84A;
  --cc-red: #D91023;
  --cc-red-deep: #8A1A1F;
  --cc-cream: #FAF3E3;
  --cc-paper: #F5E9D4;
  --cc-brown: #3A2418;
  --cc-brown-light: #5A3A24;
  --cc-night-blue: #1c2c4a;
  --cc-shadow: #050a14;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--cc-deep);
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--cc-ink);
  overflow: hidden;
}

button { font-family: inherit; }

/* ───────────────── LAYOUT ───────────────── */

.cc-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--cc-deep);
  overflow: hidden;
}

.cc-stage--panel-only {
  grid-template-columns: minmax(0, 1fr);
}

/* ───────────────── LEFT — banner art ───────────────── */

.cc-banner {
  position: relative;
  overflow: hidden;
  background: #0a0405;
}

.cc-banner__img {
  position: absolute;
  top: -4%; left: -8%;
  width: 116%;
  height: 108%;
  object-fit: cover;
  object-position: center 18%;
  filter: contrast(1.06) saturate(1.05);
  animation: cc-rock 2.4s ease-in-out infinite;
  transform-origin: center bottom;
}

.cc-banner__bleed {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--cc-bg) 100%);
  pointer-events: none;
}

.cc-banner__darken {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  pointer-events: none;
}

.cc-banner__top-label {
  position: absolute;
  top: 32px; left: 32px;
  display: flex; align-items: center; gap: 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px; letter-spacing: 3px;
  color: var(--cc-cream);
  background: rgba(0,0,0,0.55);
  padding: 8px 12px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

.cc-banner__top-label .dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  animation: cc-blink 1s steps(1) infinite;
}

.cc-banner__sticker {
  position: absolute;
  top: 20%; right: -8px;
  transform: rotate(8deg);
  font-family: 'Bowlby One', sans-serif;
  background: var(--cc-accent);
  color: #1A0608;
  padding: 8px 16px;
  font-size: 14px;
  letter-spacing: 2px;
  border: 3px solid #1A0608;
  box-shadow: 0 6px 0 #1A0608;
}

.cc-banner__credit {
  position: absolute;
  bottom: 32px; left: 32px;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--cc-cream);
  opacity: 0.85;
}
.cc-banner__credit .line-1 { margin-bottom: 6px; opacity: 0.7; }
.cc-banner__credit .line-2 { color: var(--cc-accent); }

/* ───────────────── RIGHT — arcade panel ───────────────── */

.cc-panel {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 30%,
      var(--cc-bg-2) 0%,
      var(--cc-bg) 55%,
      var(--cc-deep) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 90px 48px;
  overflow: hidden;
  font-family: 'Press Start 2P', monospace;
  color: var(--cc-ink);
}

.cc-stage--panel-only .cc-panel {
  min-height: 100vh;
  min-height: 100dvh;
}

.cc-notice {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  max-width: 620px;
  text-align: center;
}

.cc-notice__eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--cc-accent);
}

.cc-notice__title {
  margin: 0;
  font-family: 'Bowlby One', sans-serif;
  font-size: 54px;
  line-height: 0.95;
  letter-spacing: 1px;
  color: var(--cc-cream);
  text-shadow: 4px 4px 0 #1A0E08;
}

.cc-notice__copy {
  margin: 0 auto;
  max-width: 520px;
  font-family: 'DM Sans', sans-serif;
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--cc-ink-soft);
}

.cc-notice__time {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  margin-top: 4px;
  padding: 12px 22px;
  background: var(--cc-accent);
  color: #1A0E08;
  border: 3px solid #1A0E08;
  border-radius: 4px;
  box-shadow: 0 5px 0 #1A0E08;
  font-size: 18px;
  letter-spacing: 2px;
}

/* checker stripes */
.cc-checker {
  position: absolute;
  left: 0; right: 0;
  height: 24px;
  background-image:
    linear-gradient(45deg, #1a1a1a 25%, transparent 25%),
    linear-gradient(-45deg, #1a1a1a 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1a1a1a 75%),
    linear-gradient(-45deg, transparent 75%, #1a1a1a 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-color: #fff;
  z-index: 5;
}
.cc-checker--top { top: 0; }
.cc-checker--bottom { bottom: 0; }

/* HUD */
.cc-hud {
  position: absolute;
  top: 40px; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 32px;
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.85;
  z-index: 3;
}
.cc-hud .blink-dot {
  color: var(--cc-accent);
  animation: cc-blink 1s steps(1) infinite;
}
.cc-hud .credit-num { color: var(--cc-accent); }

/* skyline silhouette */
.cc-skyline {
  position: absolute;
  left: 0; right: 0; bottom: 20%;
  width: 100%; height: 14%;
  fill: var(--cc-ink);
  opacity: 0.16;
  z-index: 1;
}

/* "presents" line */
.cc-presents {
  font-size: 11px;
  letter-spacing: 4px;
  opacity: 0.85;
  margin-bottom: -4px;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* logo */
.cc-logo {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,0.4));
  animation: cc-rock 2.4s ease-in-out infinite;
  transform-origin: center bottom;
}
.cc-logo img {
  display: block;
  width: 420px;
  max-width: 90%;
}

/* VUELVE A CASA wooden plaque */
.cc-plaque {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.cc-plaque__star {
  color: var(--cc-accent);
  font-size: 18px;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.4));
}
.cc-plaque__body {
  background: linear-gradient(180deg, #5A3A24 0%, #3A2418 50%, #2A1810 100%);
  color: var(--cc-paper);
  padding: 12px 32px;
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  letter-spacing: 3px;
  border-radius: 6px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.15),
    inset 0 -3px 0 rgba(0,0,0,0.4),
    0 4px 0 rgba(0,0,0,0.4);
  border: 2px solid #1A0E08;
}
.cc-plaque__dot { color: var(--cc-accent); }

/* tagline */
.cc-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  letter-spacing: 0.4px;
  font-weight: 500;
  opacity: 0.95;
  text-align: center;
  max-width: 460px;
  position: relative;
  z-index: 2;
  margin: 0;
  text-wrap: pretty;
}

/* INGRESAR button — arcade style */
.cc-button {
  font-family: 'Bowlby One', sans-serif;
  font-size: 30px;
  letter-spacing: 4px;
  padding: 18px 64px;
  background: var(--cc-red);
  color: var(--cc-cream);
  border: 4px solid #1A0E08;
  border-radius: 4px;
  cursor: pointer;
  box-shadow:
    0 8px 0 #1A0E08,
    0 0 0 6px rgba(0,0,0,0.15);
  text-shadow: 2px 2px 0 #1A0E08;
  transition: background 120ms, color 120ms, transform 60ms, box-shadow 60ms;
  position: relative;
  z-index: 2;
  animation: cc-pulse 2s ease-in-out infinite;
}
.cc-button:hover {
  background: var(--cc-cream);
  color: var(--cc-red-deep);
  text-shadow: none;
  animation: none;
}
.cc-button:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 #1A0E08;
  animation: none;
}

/* PRESS START blink line */
.cc-press {
  font-size: 11px;
  letter-spacing: 3px;
  margin-top: 2px;
  position: relative;
  z-index: 2;
  animation: cc-blink 1s steps(1) infinite;
}

/* MADE IN PERU badge */
.cc-peru {
  position: absolute;
  bottom: 36px; right: 24px;
  transform: rotate(-4deg);
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  letter-spacing: 1.5px;
  background: var(--cc-cream);
  color: #1A0E08;
  padding: 8px 12px;
  border: 3px solid #1A0E08;
  border-radius: 4px;
  box-shadow: 0 4px 0 #1A0E08;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
}
.cc-peru__stripe {
  width: 8px; height: 12px;
  display: inline-block;
}
.cc-peru__stripe--red { background: var(--cc-red); }
.cc-peru__stripe--white {
  background: var(--cc-cream);
  border: 1px solid #1A0E08;
}

/* CRT scanlines on the right panel */
.cc-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0,0,0,0.18) 2px,
    rgba(0,0,0,0.18) 3px
  );
  mix-blend-mode: multiply;
  z-index: 6;
}

/* ───────────────── ANIMATIONS ───────────────── */

@keyframes cc-rock {
  0%, 100% { transform: rotate(-1.2deg) translateY(0); }
  50%      { transform: rotate(1.2deg) translateY(-4px); }
}

@keyframes cc-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 0 #1A0E08, 0 0 0 0 rgba(217,16,35,0.5);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 8px 0 #1A0E08, 0 0 0 16px rgba(217,16,35,0);
  }
}

@keyframes cc-blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cc-banner__img,
  .cc-logo,
  .cc-button,
  .cc-press,
  .cc-banner__top-label .dot,
  .cc-hud .blink-dot {
    animation: none !important;
  }
}

/* ───────────────── RESPONSIVE ─────────────────
   On narrow screens, hide the left banner and show
   ONLY the right panel full-bleed.
*/

@media (max-width: 880px) {
  .cc-stage {
    grid-template-columns: 1fr;
  }
  .cc-banner {
    display: none;
  }
  .cc-panel {
    padding: 80px 28px;
    gap: 20px;
  }
  .cc-logo img {
    width: 360px;
  }
  .cc-plaque__body {
    font-size: 14px;
    letter-spacing: 2.5px;
    padding: 10px 22px;
  }
  .cc-tagline {
    font-size: 15px;
    max-width: 360px;
  }
  .cc-button {
    font-size: 26px;
    padding: 16px 48px;
    letter-spacing: 3px;
  }
  .cc-notice__title {
    font-size: 46px;
  }
  .cc-notice__copy {
    font-size: 17px;
  }
  .cc-peru {
    bottom: 36px;
    right: 16px;
    transform: rotate(-4deg) scale(0.9);
  }
}

@media (max-width: 480px) {
  .cc-panel {
    padding: 70px 20px 90px;
    gap: 18px;
  }
  .cc-presents { font-size: 9px; letter-spacing: 3px; }
  .cc-logo img { width: 280px; }
  .cc-plaque {
    gap: 8px;
  }
  .cc-plaque__body {
    font-size: 12px;
    letter-spacing: 2px;
    padding: 9px 16px;
  }
  .cc-plaque__star { font-size: 14px; }
  .cc-tagline { font-size: 14px; max-width: 300px; }
  .cc-button {
    font-size: 22px;
    padding: 14px 36px;
    letter-spacing: 2.5px;
  }
  .cc-notice {
    gap: 12px;
  }
  .cc-notice__eyebrow {
    font-size: 9px;
    letter-spacing: 3px;
  }
  .cc-notice__title {
    font-size: 38px;
  }
  .cc-notice__copy {
    font-size: 15px;
    max-width: 310px;
  }
  .cc-notice__time {
    font-size: 14px;
    letter-spacing: 1.5px;
    padding: 10px 16px;
  }
  .cc-press { font-size: 9px; letter-spacing: 2.5px; }
  .cc-hud { font-size: 8px; padding: 0 18px; }
  .cc-peru {
    bottom: 32px;
    right: 12px;
    transform: rotate(-4deg) scale(0.8);
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .cc-stage {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
  }

  .cc-banner,
  .cc-panel {
    min-height: 620px;
  }

  .cc-panel {
    justify-content: flex-start;
    gap: 14px;
    padding: 66px 24px 96px;
    overflow: visible;
  }

  .cc-hud {
    top: 34px;
    font-size: 8px;
    padding: 0 22px;
  }

  .cc-presents {
    font-size: 9px;
    letter-spacing: 3px;
  }

  .cc-logo img {
    width: 260px;
  }

  .cc-plaque__body {
    font-size: 12px;
    letter-spacing: 2px;
    padding: 9px 18px;
  }

  .cc-plaque__star {
    font-size: 14px;
  }

  .cc-tagline {
    font-size: 14px;
  }

  .cc-button {
    font-size: 22px;
    letter-spacing: 3px;
    padding: 14px 44px;
  }

  .cc-press {
    font-size: 9px;
    letter-spacing: 2.5px;
  }

  .cc-peru {
    bottom: 34px;
    right: 16px;
    transform: rotate(-4deg) scale(0.82);
  }
}
