/* =========================================================
   BE KIND, REWIND — POSTER-INSPIRED THEME
   Purple poster, big yellow type, arcade vibes
========================================================= */

:root {
  --purple-bg: #3c2a9a;
  --purple-dark: #241366;
  --purple-panel: #4a35bf;

  --yellow-main: #ffd731;
  --yellow-deep: #f5b700;

  --orange-arcade: #ff7b22;
  --pink-pop: #ff3c98;

  --text-light: #ffffff;
  --text-muted: #f5e8ff;

  --radius: 16px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.7);

  --font-main: "Segoe UI", Helvetica, Arial, sans-serif;
  --font-pixel: "Press Start 2P", system-ui, monospace;
}

/* =============================
   GLOBAL
============================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text-light);
  background: #11081f;
  display: flex;
  min-height: 100vh;
}

/* subtle static grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.2) 0,
    rgba(255, 255, 255, 0.2) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: -1;
}

.page {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1.5rem;
}

/* =============================
   POSTER SHELL
============================= */

.poster-shell {
  width: 100%;
  max-width: 960px;
  background: var(--purple-bg);
  border: 10px solid #000000;
  box-shadow: var(--shadow);
  padding: 1.8rem 1.8rem 1.4rem;
  position: relative;
}

/* inner cyan guide */
.poster-shell::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid #00caff;
  opacity: 0.18;
  pointer-events: none;
}

/* =============================
   HEADER
============================= */

.poster-header {
  border-bottom: 4px solid #000;
  padding-bottom: 1.1rem;
  margin-bottom: 1.4rem;
}

.poster-title {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 2.4rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow-main);
}

.poster-subtitle {
  margin: 0.6rem 0 0;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* =============================
   LAYOUTS
============================= */

.poster-body {
  margin-top: 0.8rem;
}

/* Gate layout */
.gate-layout {
  display: grid;
  gap: 1.8rem;
}

@media (min-width: 768px) {
  .gate-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

.rsvp-layout {
  display: grid;
  gap: 1.8rem;
  align-items: stretch;   /* ← FORCE both columns same height */
}
@media (min-width: 860px) {
  .rsvp-layout {
    grid-template-columns: 0.7fr 1.5fr;
  }
}


/* =============================
   GATE COPY (LEFT BOX)
============================= */

.gate-copy {
  background: var(--purple-panel);
  border: 4px solid #000;
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  position: relative;
}

.gate-text {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
}

/* =============================
   PASSWORD PANEL
============================= */

.password-panel {
  background: var(--yellow-main);
  border: 4px solid #000;
  border-radius: 10px;
  padding: 1.4rem 1.5rem 1.3rem;
  color: #1b123b;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
}

.panel-heading {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}

.password-label {
  display: block;
  margin-bottom: 0.45rem;
}

.password-input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 0;
  border: 3px solid #000;
  background: #ffe99c;
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  outline: none;
}

.password-input:focus {
  outline: 2px solid var(--orange-arcade);
  outline-offset: 1px;
}

.password-button {
  margin-top: 0.9rem;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 3px solid #000;
  border-radius: 0;
  background: var(--orange-arcade);
  color: #000;
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.password-button:hover {
  filter: brightness(1.05);
}

.password-error {
  margin: 0.7rem 0 0;
  color: #b00020;
  min-height: 1.2em;
}

/* =============================
   WRONG PASSWORD POPUP
============================= */

.wrong-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;               /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.wrong-popup.visible {
  display: flex;               /* show when .visible is added */
}

.wrong-popup-inner {
  background: var(--yellow-main);
  border: 4px solid #000;
  border-radius: 12px;
  padding: 1.5rem 1.8rem 1.4rem;
  max-width: 320px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}

.wrong-popup-image {
  max-width: 100%;
  height: auto;
  border: 3px solid #000;
  background: #000;
  margin-bottom: 0.8rem;
}

.wrong-popup-text {
  margin: 0.3rem 0 0;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1b123b;
}

.wrong-popup-close {
  position: absolute;
  top: 0.3rem;
  right: 0.4rem;
  border: 2px solid #000;
  background: #ff3c98;
  color: #000;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
  cursor: pointer;
}


/* =============================
   RSVP INFO PANEL
============================= */

.rsvp-info-panel {
  background: var(--purple-panel);
  border: 4px solid #000;
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
}

.section-heading {
  margin: 0 0 0.9rem;
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}

.rsvp-details {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.rsvp-details li {
  margin-bottom: 0.5rem;
}

.rsvp-details .label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.rsvp-copy {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.rsvp-copy.small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =============================
   ARCADE MACHINE
============================= */

.arcade {
  margin-top: 1.4rem;
  background: var(--orange-arcade);
  border-radius: 10px;
  border: 4px solid #000;
  padding: 0.7rem 0.8rem 0.9rem;
  position: relative;
}

/* little “marquee” on top */
.arcade-top {
  background: #ffb024;
  border: 3px solid #000;
  border-radius: 6px 6px 2px 2px;
  padding: 0.25rem 0.4rem;
  text-align: center;
}

.arcade-marquee {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
}

/* Screen */
.arcade-screen {
  margin-top: 0.5rem;
  background: #1a0f3a;
  border: 3px solid #000;
  border-radius: 6px;
  padding: 0.4rem;
}

.arcade-screen canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid #000;
  background: #120827;

  /* NEW: let us handle swipes instead of the browser scrolling */
  touch-action: none;
}

.arcade-instructions {
  margin-top: 0.35rem;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
}

/* Controls */
.arcade-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 0.55rem;
}

/* Joystick */
.arcade-stick {
  width: 40px;
  height: 28px;
  background: #d64f1c;
  border: 3px solid #000;
  border-radius: 4px;
  position: relative;
}

.arcade-stick-knob {
  position: absolute;
  left: 50%;
  top: -16px;
  width: 12px;
  height: 16px;
  background: #d64f1c;
  border: 3px solid #000;
  border-radius: 999px;
  transform: translateX(-50%);
}

/* Buttons */
.arcade-buttons {
  display: flex;
  gap: 0.35rem;
}

.arcade-buttons span {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 3px solid #000;
  background: #ff3c98;
}


/* =============================
   RSVP FORM PANEL (GOOGLE FORM)
============================= */


.rsvp-form-panel {
  background: var(--yellow-main);
  border: 4px solid #000;
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  color: #1b123b;
  font-family: var(--font-pixel);
  font-size: 0.7rem;

  /* panel fills the grid row and scrolls if content is taller */
  height: 100%;
  max-height: 900px;      /* tweak this number if you want taller/shorter */
  overflow-y: auto;
}


.google-form-slot {
  /* top margin stays, left/right bleed out through negative margin */
  margin: 1rem -1.5rem 0;
  border: 3px solid #000;
  background: #ffe99c;
  padding: 0;                /* no inner padding so iframe hits the border */
}

.google-form-slot iframe {
  display: block;
  width: 100%;
  height: 2200px;            /* or whatever fits your form */
  border: none;
  box-sizing: border-box;
}




/* =========================================================
   RETRO SCROLLBAR FOR RSVP FORM PANEL
========================================================= */

/* Chrome, Edge, Safari */
.rsvp-form-panel::-webkit-scrollbar {
  width: 18px;
}

.rsvp-form-panel::-webkit-scrollbar-track {
  background: var(--yellow-main);          /* bright yellow track */
  border-left: 3px solid #000;             /* pixel border */
  border-right: 3px solid #000;
}

.rsvp-form-panel::-webkit-scrollbar-thumb {
  background: var(--purple-dark);          /* deep retro purple */
  border: 4px solid #000;                  /* fat pixel border */
  border-radius: 0;                         /* no rounding, blocky */
}

.rsvp-form-panel::-webkit-scrollbar-thumb:hover {
  background: var(--pink-pop);             /* pink highlight */
  border: 4px solid #000;
}

/* Firefox */
.rsvp-form-panel {
  scrollbar-width: auto;
  scrollbar-color: var(--purple-dark) var(--yellow-main);
}



/* =============================
   FOOTER
============================= */

.poster-footer {
  border-top: 4px solid #000;
  margin-top: 1.4rem;
  padding-top: 0.7rem;
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


