/* ==========================================================================
   Game Expo 2026 — special event landing page
   Namespace: .ge-   |   Gamer / arcade-neon theme
   NOTE: backdrop-filter is intentionally avoided on repeated elements
         (cards, gallery shots) to prevent Chrome compositor flicker.
   ========================================================================== */

.ge-page {
  --ge-cyan:    #22d3ee;
  --ge-magenta: #ff3ea5;
  --ge-purple:  #8b5cf6;
  --ge-lime:    #a3e635;
  --ge-ink:     #050510;
  --ge-panel:   rgba(18, 18, 40, 0.72);
  --ge-panel-2: rgba(30, 24, 60, 0.55);
  --ge-line:    rgba(136, 124, 255, 0.28);
  --ge-text:    #eef0ff;
  --ge-muted:   #a8a6d8;

  position: relative;
  z-index: 1;
  color: var(--ge-text);
  font-family: var(--font-body);
}

/* The arcade page can be read in both light & dark site modes — it is always
   a dark, neon canvas, so we lock our own text colors regardless of theme. */
.ge-page p { color: var(--ge-text); }

/* --------------------------------------------------------------------------
   Full-viewport background (sits behind everything, incl. nav padding strip)
   -------------------------------------------------------------------------- */
.ge-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 700px at 50% -10%, #1a1340 0%, transparent 60%),
    linear-gradient(180deg, #0a0a18 0%, #07060f 55%, #050409 100%);
  overflow: hidden;
}
.ge-bg__grid {
  position: absolute;
  inset: -50% 0 0 0;
  background-image:
    linear-gradient(rgba(136, 124, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(136, 124, 255, 0.10) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(420px) rotateX(58deg);
  transform-origin: top center;
  opacity: 0.55;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 60%, transparent 92%);
  animation: ge-grid-scroll 9s linear infinite;
}
@keyframes ge-grid-scroll {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 48px, 48px 0; }
}
.ge-bg__glow {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 640px;
  max-height: 640px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.40;
  animation: ge-drift 18s ease-in-out infinite alternate;
}
.ge-bg__glow--1 { top: -8%;  left: -6%;  background: var(--ge-magenta); }
.ge-bg__glow--2 { top: 20%;  right: -10%; background: var(--ge-cyan); animation-delay: -6s; }
.ge-bg__glow--3 { bottom: -12%; left: 30%; background: var(--ge-purple); animation-delay: -11s; }
@keyframes ge-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4%, 6%, 0) scale(1.18); }
}
.ge-bg__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,0.18) 3px, rgba(0,0,0,0) 4px);
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .ge-bg__grid, .ge-bg__glow { animation: none; }
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.ge-hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1rem;
  text-align: center;
}
.ge-hero__inner { display: flex; flex-direction: column; align-items: center; }

.ge-hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 62, 165, 0.5);
  background: rgba(255, 62, 165, 0.12);
  color: #ffd2e9;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ge-hero__status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ge-magenta);
  box-shadow: 0 0 0 0 rgba(255, 62, 165, 0.6);
  animation: ge-pulse 1.8s ease-out infinite;
}
@keyframes ge-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 62, 165, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 62, 165, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 62, 165, 0); }
}

.ge-hero__logo {
  width: min(440px, 78%);
  height: auto;
  margin: 1.8rem 0 0.4rem;
  filter: drop-shadow(0 0 26px rgba(34, 211, 238, 0.45));
  animation: ge-float 6s ease-in-out infinite;
}
@keyframes ge-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.ge-hero__title {
  margin: 0.4rem 0 0;
  font-family: var(--font-display, var(--font-body));
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
}
.ge-hero__title span {
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  color: #fff;
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.55), 0 0 40px rgba(139, 92, 246, 0.35);
}
.ge-hero__title b {
  font-size: clamp(3.2rem, 12vw, 6.4rem);
  background: linear-gradient(92deg, var(--ge-cyan), var(--ge-magenta) 60%, var(--ge-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 22px rgba(255, 62, 165, 0.35));
}

.ge-hero__tagline {
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: var(--ge-cyan);
}

.ge-hero__lead {
  margin: 1.4rem auto 0;
  max-width: 640px;
}
.ge-hero__lead p {
  margin: 0 0 0.85rem;
  color: var(--ge-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* Quick facts */
.ge-facts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}
.ge-fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 9.5rem;
  padding: 0.95rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--ge-line);
  background: var(--ge-panel);
}
.ge-fact__icon  { font-size: 1.4rem; }
.ge-fact__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ge-muted);
  font-weight: 700;
}
.ge-fact__value { font-weight: 800; color: #fff; }

.ge-hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin: 2.4rem 0 0;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--ge-cyan);
  color: var(--ge-cyan);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(34, 211, 238, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.ge-hero__scroll:hover {
  color: var(--ge-cyan);
  transform: translateY(-2px);
  background: rgba(34, 211, 238, 0.16);
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.25);
}
.ge-hero__scroll svg { animation: ge-bounce 1.6s ease-in-out infinite; }
@keyframes ge-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* --------------------------------------------------------------------------
   STORY CHAPTERS
   -------------------------------------------------------------------------- */
.ge-story {
  max-width: 1040px;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.ge-chapter {
  position: relative;
  padding: 1.6rem 1.4rem 1.7rem;
  border-radius: 22px;
  border: 1px solid var(--ge-line);
  background: var(--ge-panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.ge-chapter::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--ge-cyan), var(--ge-magenta));
}

.ge-chapter__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding-right: 3.5rem; /* clear the floating corner sticker */
}
.ge-chapter__num {
  flex: 0 0 auto;
  font-family: var(--font-display, var(--font-body));
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  background: linear-gradient(180deg, var(--ge-cyan), var(--ge-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}
.ge-chapter__level {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ge-lime);
  margin-bottom: 0.2rem;
}
.ge-chapter__title {
  margin: 0;
  font-size: clamp(1.3rem, 3.5vw, 1.75rem);
  font-weight: 800;
  color: #fff;
}

.ge-chapter__text { max-width: 720px; }
.ge-chapter__text p {
  margin: 0 0 0.8rem;
  color: var(--ge-muted);
  font-size: 1.01rem;
  line-height: 1.72;
}
.ge-chapter__text p:last-child { margin-bottom: 0; }

/* Inline emphasis inside chapter prose */
.ge-chapter__text strong { color: #fff; font-weight: 800; }
.ge-chapter__text mark {
  background: linear-gradient(120deg, rgba(255, 62, 165, 0.35), rgba(139, 92, 246, 0.35));
  color: #fff;
  padding: 0.05em 0.35em;
  border-radius: 6px;
  font-weight: 700;
}

/* Trailing "outro" paragraph after a gallery */
.ge-chapter__text--outro { margin-top: 1.4rem; }

/* Animated arcade sticker peeking from the top-right of each chapter */
.ge-chapter__sticker {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 3rem;
  height: 3rem;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
  animation: ge-sticker-bob 4s ease-in-out infinite;
}
@keyframes ge-sticker-bob {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-5px) rotate(4deg); }
}

/* High-score / trophy cards */
.ge-scores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  margin: 1.3rem 0 0.2rem;
}
.ge-score {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(163, 230, 53, 0.32);
  background: linear-gradient(160deg, rgba(163, 230, 53, 0.10), rgba(34, 211, 238, 0.06));
}
.ge-score__icon  { font-size: 1.6rem; }
.ge-score__title { font-weight: 800; color: #fff; font-size: 1.05rem; }
.ge-score__desc  { color: var(--ge-muted); font-size: 0.88rem; line-height: 1.45; }

/* --------------------------------------------------------------------------
   PHOTO GALLERIES (square thumbs → lightbox via .girafmodal-popup)
   -------------------------------------------------------------------------- */
.ge-gallery {
  margin: 1.4rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.7rem;
}
/* Slightly larger tiles when there are only a few shots */
.ge-gallery--count-3 { grid-template-columns: repeat(3, 1fr); }

/* "Big" galleries: show 3 larger tiles per row (used when there are 6 shots) */
.ge-gallery--big { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }

/* Solo trailing image — a single wide, cinematic shot */
.ge-gallery--solo { grid-template-columns: 1fr; }

/* Desktop: give the large photo dumps (Boss Fight = 7 shots, Level 6 = 6 shots)
   bigger tiles — 2 per row, and let an odd trailing shot become a big
   cinematic finale. Mobile keeps its own 2-up layout further down. */
@media (min-width: 561px) {
  .ge-gallery--count-6,
  .ge-gallery--count-7 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .ge-gallery--count-6 .ge-shot:last-child:nth-child(odd),
  .ge-gallery--count-7 .ge-shot:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    /* Show the finale in its true height on desktop (not cropped) */
    aspect-ratio: auto;
  }
  .ge-gallery--count-6 .ge-shot:last-child:nth-child(odd) img,
  .ge-gallery--count-7 .ge-shot:last-child:nth-child(odd) img {
    height: auto;
    object-fit: contain;
  }
}

.ge-shot {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(136, 124, 255, 0.3);
  background: #100c22;
  transform: translateZ(0);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.ge-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease, filter 0.3s ease;
}
.ge-shot__zoom {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(5, 5, 16, 0.7);
  color: var(--ge-cyan);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.ge-shot:hover {
  transform: translateY(-4px);
  border-color: var(--ge-cyan);
  box-shadow: 0 12px 34px rgba(34, 211, 238, 0.35);
}
.ge-shot:hover img { transform: scale(1.07); }
.ge-shot:hover .ge-shot__zoom { opacity: 1; transform: translateY(0); }
.ge-shot:focus-visible {
  outline: 2px solid var(--ge-cyan);
  outline-offset: 2px;
}

/* Wide cinematic single shot (trailing image) */
.ge-shot--wide {
  aspect-ratio: 16 / 9;
  border-color: rgba(34, 211, 238, 0.45);
}

@media (max-width: 560px) {
  .ge-gallery,
  .ge-gallery--count-3,
  .ge-gallery--big { grid-template-columns: repeat(2, 1fr); }
  .ge-shot--wide { aspect-ratio: 16 / 10; }

  /* When a gallery ends on an odd image, let that last one go full-width
     (e.g. the 3rd shot in a 3-pack, or the 5th in Level 4's 5-pack) */
  .ge-gallery .ge-shot:last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* The standalone trailing shot stays full-width & cinematic */
  .ge-gallery--solo .ge-shot { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   SPOTIFY EMBED (Level 3 — new song)
   -------------------------------------------------------------------------- */
.ge-embed {
  margin: 1.5rem 0 0.2rem;
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(29, 185, 84, 0.4);
  background:
    radial-gradient(420px 160px at 12% 0%, rgba(29, 185, 84, 0.18), transparent 70%),
    var(--ge-panel-2);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}
.ge-embed__frame {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 0;
}
.ge-embed__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.88rem;
  color: #0b1020;
  background: #1DB954;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.ge-embed__link:hover {
  color: #0b1020;
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 8px 24px rgba(29, 185, 84, 0.4);
}

/* --------------------------------------------------------------------------
   OUTRO
   -------------------------------------------------------------------------- */
.ge-outro {
  max-width: 720px;
  margin: 3rem auto 4rem;
  padding: 0 1.25rem;
  text-align: center;
}
.ge-outro__card {
  position: relative;
  padding: 2.4rem 1.6rem;
  border-radius: 24px;
  border: 1px solid var(--ge-line);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(255, 62, 165, 0.16), transparent 70%),
    var(--ge-panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.ge-outro__emoji { font-size: 2.6rem; display: block; }
.ge-outro__title {
  margin: 0.4rem 0 1rem;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800;
  color: #fff;
}
.ge-outro__card p {
  margin: 0 auto 0.9rem;
  max-width: 560px;
  color: var(--ge-muted);
  line-height: 1.7;
}
.ge-outro__big {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ge-cyan) !important;
}
.ge-outro__back {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 800;
  color: var(--ge-ink);
  background: linear-gradient(92deg, var(--ge-cyan), var(--ge-magenta));
  box-shadow: 0 10px 30px rgba(255, 62, 165, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.ge-outro__back:hover {
  color: var(--ge-ink);
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 38px rgba(34, 211, 238, 0.4);
}

/* --------------------------------------------------------------------------
   Scroll-reveal animation
   -------------------------------------------------------------------------- */
.ge-anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.ge-anim--visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .ge-anim { opacity: 1; transform: none; transition: none; }
  .ge-hero__logo, .ge-hero__scroll svg { animation: none; }
}

/* --------------------------------------------------------------------------
   Small screens
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .ge-hero { padding-top: 1.5rem; }
  .ge-chapter { padding: 1.3rem 1.1rem 1.4rem; }
  .ge-chapter__num { font-size: 2rem; }

  /* Keep the 3 hero quick-facts side-by-side instead of stacking */
  .ge-facts { flex-wrap: nowrap; gap: 0.5rem; }
  .ge-fact { flex: 1 1 0; min-width: 0; padding: 0.7rem 0.5rem; }
  .ge-fact__icon  { font-size: 1.25rem; }
  .ge-fact__label { font-size: 0.58rem; letter-spacing: 0.06em; }
  .ge-fact__value { font-size: 0.82rem; }
}
