body {
  font-family: Georgia, "Times New Roman", sans-serif;
  background: #000;
  color: #eee;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

.footer-section {
  margin-top: auto;
  width: 100%;
  position: static;
}

input::placeholder {
  color: #fd11b4;
  opacity: 1;
}

html, body {
  margin: 0;
  padding: 0;
}

.header img {
  display: block;
  width: 100%;
  height: auto;
}

.header {
  padding: 0; 
  margin: 0;
  font-size: 0;
  display: block;
  line-height: 0;
  text-align: center;
}

.header h1 {
  font-size: 40px;
}

.navbar {
  overflow: hidden;
  background: linear-gradient(to right, 
    #000000, 
    rgba(208,17,253,0.4), 
    rgba(253,17,180,0.3), 
    rgba(208,17,253,0.4),
    #000000
  );
  border-top: 1px solid rgba(208,17,253,0.4);
  border-bottom: 1px solid rgba(253,17,180,0.4);
}

.navbar a {
  float: left;
  display: block;
  color: #fff234;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(255,242,52,0.6);
  font-family: Impact, sans-serif;
  letter-spacing: 2px;
}

.navbar a:hover {
  background-color: rgba(253,17,180,0.3);
  color: #11FD5A;
}


.navbar a.right {
  float: right;
}

.yaaas-btn {
  background: #fff234;
  color: #D011FD;
  border: none;
  font-family: Impact;
  cursor: pointer;
  width: 250px;
  height: 45px;
  text-transform: uppercase;
  outline: 2px solid rgba(17,253,90);        /* purple outline at rest */
  font-size: 16px;
  letter-spacing: 1px;
  transition: background 0.2s, color 0.2s;
}

.yaaas-btn:hover {
  outline-color: rgba(253,17,180,0.9);             /* brightens on hover */
  background: rgba(253,17,180,0.3);
  color: #11FD5A;
}

@keyframes gradientSlide {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
/* Overlay */
/* Overlay */
/* The Main Star Screen */
/* Update the existing #intro-overlay */
/* Update the main overlay */

#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: #000;
  background-image: url("star-background.png");
  background-repeat: no-repeat, no-repeat;
   background-size: cover;
  background-position: center;
  will-change: background-size;  /* ← hints GPU to prep the layer */
  transform: translateZ(0);
}
 #intro-overlay.zoom-ready {
  animation: spaceZoom 8s cubic-bezier(.2,.6,.2,1) forwards;
}
/* Individual Flame Tendrils (Shared Styles) */


@keyframes flameFlicker {
  0%, 100% { opacity: 0.95; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.01); }
}

/* Canvas */
#starfield {
 display: none;
}



/* Caption Pulse */
@keyframes thrum {
  0%, 100% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

/* Background Shift */
@keyframes cosmicShift {
  0% {
    background: radial-gradient(circle at 30% 30%, #0a0f2c, #02010a 70%);
  }
  50% {
    background: radial-gradient(circle at 70% 60%, #120a2c, #02010a 70%);
  }
  100% {
    background: radial-gradient(circle at 30% 30%, #0a0f2c, #02010a 70%);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .cyber-text {
    animation: none;
  }
}
/* Add this to your styles.css */
/* Optimized Canvas Settings */

/* Specific Mouse Trail Layering */
#mouse-canvas{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2147483647;
}

/* New Animation that keeps the text centered while floating */
@keyframes gameFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, -60%); }
}
/* SECOND SCREEN OVERLAY */
#reminder-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 1);
  padding: 5vh 5vw;          /* breathing room on all sides */
  box-sizing: border-box;
  pointer-events: auto;
}

/* Smaller card */
.reminder-box {
  background: #fd3b96;
  padding: 1.5rem;
  width: min(90%, 640px);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(253, 17, 180, 0.6);
  text-align: center;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;  /* phones: spread top to bottom */
}

/* Header */
.reminder-box h2 {
  font-size: clamp(1.4rem, 6vw, 2.6rem);   /* was fixed 2.6rem */
  color: #fff234;
  font-family: Impact, sans-serif;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px #ffcb2d;
}

/* Numbered list — SAME FONT */
.reminder-list {
  list-style: none;
  counter-reset: cyber;
  padding: 0;
  margin: 0;
  text-align: left;
  flex: 1;                  /* fills remaining vertical space */
  display: flex;
  flex-direction: column;
  justify-content: center;  /* centers list items in their space */
}

.reminder-list li {
  counter-increment: cyber;
  margin-bottom: 0.8rem;
  font-size: clamp(0.75rem, 2.5vw, 0.95rem);  /* was fixed 0.95rem */
  color: #000000;
  position: relative;
  padding-left: 2rem;
}

/* Cyber numbers */
.reminder-list li::before {
  content: counter(cyber) ".";
  position: absolute;
  left: 0;
  color: #ffcb2d;
  font-weight: bold;
  text-shadow: 0 0 6px #fff234;
}

/* Button */
#start-game {
  margin: 0;                /* let flexbox handle all spacing */
  padding: 0.6rem 2rem;
  font-family: Impact, sans-serif;
  font-size: clamp(0.85rem, 3vw, 1.1rem);
  background: #000000;
  color: #11FD5A;
  border: 2px solid #fff234;
  cursor: pointer;
  text-shadow: 0 0 6px #ffcb2d;
}

#start-game:hover {
  background: #fd11b4;
  color: #000000;
}
/* Arrow */
#rules-arrow {
  margin: 0;                /* let flexbox handle all spacing */
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: #11FD5A;
  cursor: pointer;
  animation: arrowPulse 1.4s infinite;
  text-shadow: 0 0 10px #ffcb2d;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(6px); }
}

/* Smooth swap animation */
#rules-content:not([hidden]),
#start-game:not([hidden]) {
  animation: fadeInRight 0.6s ease forwards;
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.character-wrap {
  display: inline-block;
  will-change: transform, filter;
  isolation: isolate;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
              filter 0.4s ease;
  transform-origin: center center;
}

.character-wrap:hover::before {
  opacity: 1;
}
.character-wrap.selected::before {
  background: #11FD5A;
  opacity: 1;
}
.character-wrap.dimmed::before {
  filter: brightness(0.4);
}


/* Title */
.character-title {
  font-family: Impact, sans-serif;
  font-size: 3rem;
  margin-bottom: 2rem;
  color: #fd11b4;
  text-shadow:
    0 0 12px #D011FD,
    0 0 24px #fd3b96;
}

/* Grid */
.character-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: clamp(1rem, 3vw, 2rem);
  margin-top: 16px;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  flex-shrink: 0;
}



/* Characters */
.character {
  width: 250px;
  cursor: pointer;
  display: block;
  transition: filter 0.3s ease, transform 0.3s ease;
  filter: grayscale(30%) brightness(0.9);
}


.character:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
}

/* Confirm button */
#confirm-character {
  font-family: Impact, sans-serif;
  font-size: clamp(0.85rem, 3vw, 1.2rem);
  padding: 0.7rem 2.4rem;
  background: #000000;
  color: #11FD5A;
  border: 2px solid #fff234;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease, background 0.3s ease;
  max-width: 90vw;
  box-sizing: border-box;
  flex-shrink: 0;
  margin-top: clamp(0.5rem, 2vw, 1rem);
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
  position: relative;
  z-index: 20;
}



#confirm-character:enabled {
  opacity: 1;
}

#confirm-character:hover:enabled {
  background: #fd11b4;
  color: #000000;
}

@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}


/* Fade entire screen slightly after a character is chosen */
#character-overlay.selection-made {
  background: radial-gradient(circle, #000000 30%, #080008);
}

/* Slight global dim, selected character stays vivid */
#character-overlay.selection-made .character-grid {
  opacity: 0.85;
}

#character-overlay {
  position: fixed;
  inset: 0;
  z-index: 8500;
  background: #000;
  flex-direction: column;
  align-items: center;
  justify-content: center;     /* vertically centered on all screens */
  overflow-y: auto;
  padding: 60px 1rem 1rem;     /* top clears exit button */
  box-sizing: border-box;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

#character-overlay.visible{
  display: flex;
  opacity: 1;
  pointer-events: auto;
}


#character-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}
#character-caption {
  text-align: center;
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.9rem, 2.5vw, 1.5rem);
  letter-spacing: 0.12em;
  font-style: italic;
  color: #fff234;
  text-shadow:
    0 0 6px rgba(190, 140, 255, 0.5),
    0 0 14px rgba(130, 80, 220, 0.35);
  opacity: 0;
  transform: translateY(-55px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}


#character-caption.visible {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  pointer-events: none;
}
#game-screen {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 100svh;          /* fill full phone screen height */
  overflow-y: auto;
  overflow-x: hidden;
  display: flex !important;    /* override the block override */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-sizing: border-box;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}


#board, #card-container {
  position: relative;
  z-index: 1;
}


#game-screen[hidden] {
  display: none !important;
}
#board {
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}
#card-container {
  position: relative;
  z-index: 1;
}

#ladder-wrapper {
  overflow: visible !important;
  position: relative;
  display: inline-block;
  background-attachment: local;
  z-index: 2;
  max-width: 100vw;
  box-sizing: border-box;
}


#game-background {
  display: block;
  width: min(900px, 95vw);
  height: auto;
}
#player-star {
  position: absolute;
  z-index: 30;
  pointer-events: none;
  transform: translate(-50%, -85%) scale(0.66);
}
#player-star::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--char-color, #f5ff3a) 0%, transparent 65%);
  opacity: 0.45;
  animation: charPulse 2.2s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes charPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9);  opacity: 0.3; }
  50%       { transform: translate(-50%, -50%) scale(1.6);  opacity: 0.55; }
}
#player-character {
  width: auto;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 18px var(--char-color, #f5ff3a));
}
.begin-text{
  visibility: hidden;
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(3);   z-index: 9999;
  pointer-events: none;
  opacity: 0;

  font-family: Impact, sans-serif;
  font-size: clamp(2rem, 10vw, 4rem);
  color: #f5ff3a;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.06em;

  /* crisp, airy glow (not blurry fog) */
  text-shadow:
    0 0 3px rgba(245,255,58,0.95),
    0 0 10px rgba(245,255,58,0.35),
    0 0 22px rgba(245,255,58,0.18);

  animation: beginPulse 1.6s ease-in-out infinite;

  -webkit-mask-image: repeating-linear-gradient(
    to bottom,
    black 0px,
    black 4px,
    transparent 4px,
    transparent 8px
  );
  mask-image: repeating-linear-gradient(
    to bottom,
    black 0px,
    black 4px,
    transparent 4px,
    transparent 8px
  );
}

@keyframes beginPulse {
  0%, 100% {
    transform: scale(3);
  }
  50% {
    transform: scale(3.03);
  }
}



/* =============================
   CARD LAYER
============================= */


#card{
  width: min(520px, 85vw);
  aspect-ratio: 2 / 3;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
  pointer-events: auto;       /* allow clicking the card */
}

#card.flipped{
  transform: rotateY(180deg);
}
#card-layer {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  z-index: 20000;
  transition: opacity 0.35s ease;
  background: rgba(0,0,0,0.35);
}

/* front/back images fill */
#card-front, #card-back{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  backface-visibility: hidden;
}

/* basic flip */
.card{ transform-style: preserve-3d; transition: transform 0.6s ease; }
.card.flipped{ transform: rotateY(180deg); }
#card-back{ transform: rotateY(180deg); }
#card-layer.fade-out{
  opacity: 0;
}
#card-layer.card-fade-in {
  opacity: 0;
}
/* imgs should not steal clicks */
#card-front, #card-back { pointer-events: none; }

/* hotspot layer sits on top */
/* =============================
   HEART HOTSPOTS ONLY
   (hover glow + click fill)
============================= */

/* keep choice-layer exactly as you already had earlier (no rotate) */
#choice-layer{
  position: absolute;
  inset: 0;
  z-index: 9999;

  /* IMPORTANT: it must face the back side */
  transform: rotateY(180deg);
  backface-visibility: hidden;

  pointer-events: none; /* JS will set to auto */
}

/* invisible until hover */
/* =============================
   HEART HOTSPOTS — PALETTE GLOW
   (visual only, no behavior changes)
============================= */

/* =============================
   HEART HOTSPOTS — VISIBLE GLOW VERSION
   (same logic, just fixes opacity bug)
============================= */

/* =============================
   BIGGER COLORED HEART HOTSPOTS
   (visual only — safe)
============================= */

/* =============================
   FIXED HEART HOTSPOTS
============================= */

/* =============================
   HEART HOTSPOTS — REBUILT
============================= */

.choice-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.3s ease;
  outline: none;
  
  /* Standard transition for the glow */
  filter: drop-shadow(0 0 0px transparent);
}

/* 1. THE HEART SHAPE (Invisible to start) */
.choice-hotspot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--heart-color, #888); 
  
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M23.6 0c-2.7 0-5.1 1.3-6.6 3.3C15.5 1.3 13.1 0 10.4 0 6.3 0 3 3.3 3 7.4c0 9.2 14 20.3 14 20.3S31 16.6 31 7.4C31 3.3 27.7 0 23.6 0z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 29' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M23.6 0c-2.7 0-5.1 1.3-6.6 3.3C15.5 1.3 13.1 0 10.4 0 6.3 0 3 3.3 3 7.4c0 9.2 14 20.3 14 20.3S31 16.6 31 7.4C31 3.3 27.7 0 23.6 0z'/%3E%3C/svg%3E") center/contain no-repeat;

  /* CHANGE THIS: Set to 0 to hide them initially */
  opacity: 0; 
  transition: opacity 0.4s ease, transform 0.3s ease, background-color 0.3s ease;
}

/* 2. HOVER: Make them visible with the glow */
.choice-hotspot:hover::before {
  opacity: 1; /* Fades in on hover */
}

.choice-hotspot:hover {
  transform: translate(-50%, -50%) scale(1.15);
  filter: 
    drop-shadow(0 0 8px white)
    drop-shadow(0 0 15px var(--heart-color));
}

/* 3. CLICKED: Stay visible and pink */
.choice-hotspot.selected::before {
  background-color: #fd11b4 !important;
  opacity: 1; /* Keeps it visible after click */
}

.choice-hotspot.selected {
  filter: 
    drop-shadow(0 0 10px white)
    drop-shadow(0 0 25px #fd11b4)
    drop-shadow(0 0 45px #fd3b96);
  animation: angelicBreath 2s infinite ease-in-out;
}

/* =============================
   LETTER COLORS (Using CSS Variables)
============================= */
.choice-hotspot[data-letter="a"] { --heart-color: #fd11b4; }
.choice-hotspot[data-letter="b"] { --heart-color: #11FD5A; }
.choice-hotspot[data-letter="c"] { --heart-color: #fff234; }
.choice-hotspot[data-letter="d"] { --heart-color: #D011FD; }
.choice-hotspot[data-letter="e"] { --heart-color: #fd11b4; }

@keyframes angelicBreath {
  0%, 100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.25); opacity: 0.8; }
}
/* =============================
   REFLECTION CARDS (END SCREEN)
============================= */

#journey-end-overlay{
  flex-direction: column;
  gap: 18px;
  padding: 22px;
}

.reflection-wrap{
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr; /* card | controls */
  gap: 32px;
  align-items: start;
}




@media (max-width: 860px){
  .reflection-wrap{
    grid-template-columns: 1fr;
  }
}


.reflection-toprow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
  position: relative;
  z-index: 5;
}

.reflection-title{
  font-family: Impact, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f5ff3a;
  text-shadow: 0 0 10px rgba(245,255,58,0.55);
  font-size: 1.05rem;
}

.reflection-tabs{
  display:flex;
  gap: 8px;
}

.reflection-tabbtn{
  border: 1px solid rgba(245,255,58,0.35);
  background: rgba(0,0,0,0.4);
  color: #f5ff3a;
  font-family: Impact, sans-serif;
  letter-spacing: 0.08em;
  padding: 8px 10px;
  border-radius: 10px;
  cursor:pointer;
}

.reflection-tabbtn.active{
  background: rgba(245,255,58,0.18);
  box-shadow: 0 0 16px rgba(245,255,58,0.18);
}

.reflection-controls{
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(245,255,58,0.18);
  border-radius: 14px;
  padding: 14px;
}

.reflection-controls h3{
  margin: 0 0 10px 0;
  font-family: Impact, sans-serif;
  color: #fff234;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.reflection-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items:center;
  margin: 10px 0;
}

.reflection-row label{
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
}

.reflection-row input[type="range"]{
  width: 180px;
}

.reflection-btn{
  border: 2px solid #fff234;
  background: #000;
  color: #11FD5A;
  font-family: Impact, sans-serif;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  border-radius: 12px;
  cursor:pointer;
}

.reflection-btn:hover{
  background: #fd11b4;
  color: #000;
}

.reflection-btn.secondary{
  border-color: rgba(255,255,255,0.25);
  color: #f5ff3a;
}

.reflection-btn.danger{
  border-color: rgba(255,80,80,0.5);
  color: #ff9a9a;
}




@keyframes reflectionFade{
  to { opacity: 1; }
}
#card { position: relative; }
#card-front, #card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  backface-visibility: hidden;
}

#card-back { opacity: 0; }
.card.flipped #card-front { opacity: 0; }
.card.flipped #card-back  { opacity: 1; }

.journey-impact {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}




.reflection-textlayer{
  position:absolute;
  inset: 0;
  cursor: crosshair;
  pointer-events: auto; /* ✅ MUST be auto */
   z-index: 2;
}


.reflection-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}



.reflection-cardstage {
  position: relative;

  /* responsive size */
  width: min(33vw, 420px);

  /* EXACT ratio of 1545 × 2000 */
  aspect-ratio: 1545 / 2000;

  margin: 0 auto;

  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(245,255,58,0.22);
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(245,255,58,0.12);

  overflow: hidden;
}

/* Reflection cards: force Georgia everywhere */
.reflection-wrap,
.reflection-wrap * {
  font-family: Georgia, "Times New Roman", serif;
}

/* Make canvases stack properly */


/* Ink & text layers should be clickable */
.reflection-inklayer,
.reflection-textlayer {
  pointer-events: auto;
}

/* Template layer should NOT catch clicks */
.reflection-templatelayer {
  pointer-events: none;
}



/* ===== SPIN RING THAT FOLLOWS CURSOR (only during loading) ===== */
#cursor-ring {
  position: fixed;
  left: 0;
  top: 0;

  width: 44px;                 /* ring size */
  height: 44px;
  margin-left: -22px;          /* half width */
  margin-top: -22px;           /* half height */

  pointer-events: none;
  z-index: 10000050;

  opacity: 0;
  transition: opacity 0.12s ease;
  will-change: transform, left, top, filter;

  /* ring drawn by CSS so we can glow it */
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);

  /* make it look like a "loading ring" (one bright arc) */
  border-top-color: #fff234;
  border-right-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  border-left-color: rgba(255, 255, 255, 0.08);

  /* soft base glow */
  filter: drop-shadow(0 0 8px rgba(253, 17, 180, 0.55))
          drop-shadow(0 0 16px rgba(255, 242, 52, 0.25));
}

/* show only in loading mode */
body.cursor-loading #cursor-ring {
  opacity: 1;
  animation: cursorSpin 0.75s linear infinite, cursorGlow 2.4s linear infinite;
}

/* spin animation */
@keyframes cursorSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* color + glow cycle */
@keyframes cursorGlow {
  0% {
    border-top-color: #fd11b4;
    filter: drop-shadow(0 0 8px rgba(253,17,180,.65))
            drop-shadow(0 0 18px rgba(253,17,180,.35));
  }
  16% {
    border-top-color: #FDD011;
    filter: drop-shadow(0 0 8px rgba(253,208,17,.65))
            drop-shadow(0 0 18px rgba(253,208,17,.35));
  }
  32% {
    border-top-color: #fff234;
    filter: drop-shadow(0 0 8px rgba(255,242,52,.65))
            drop-shadow(0 0 18px rgba(255,242,52,.35));
  }
  48% {
    border-top-color: #fd3b96;
    filter: drop-shadow(0 0 8px rgba(253,59,150,.65))
            drop-shadow(0 0 18px rgba(253,59,150,.35));
  }
  64% {
    border-top-color: #11FD5A;
    filter: drop-shadow(0 0 8px rgba(17,253,90,.65))
            drop-shadow(0 0 18px rgba(17,253,90,.35));
  }
  80% {
    border-top-color: #D011FD;
    filter: drop-shadow(0 0 8px rgba(208,17,253,.65))
            drop-shadow(0 0 18px rgba(208,17,253,.35));
  }
  100% {
    border-top-color: #fd11b4;
    filter: drop-shadow(0 0 8px rgba(253,17,180,.65))
            drop-shadow(0 0 18px rgba(253,17,180,.35));
  }
}

/* ===== LOVE GAME CURSORS (FORCE) ===== */
html, body {
  cursor: url("star-neutral.png") 24 24, auto !important;
}

a, button, .choice-hotspot, .character, #rules-arrow, #start-game, #confirm-character {
  cursor: url("star-hover.png") 24 24, pointer !important;
}

body.cursor-clicking,
body.cursor-clicking * {
  cursor: url("star-click.png") 24 24, pointer !important;
}

body.cursor-loading,
body.cursor-loading * {
  cursor: url("star-load-circle.png") 24 24, progress !important;
}

input, textarea, [contenteditable="true"] { cursor: text !important; }

/* FIX selection: gradients are not supported */
::selection {
  background-color: #fd3b96; /* pick ONE */
  color: #000;
}

::-moz-selection {
  background-color: #fd3b96;
  color: #000;
}


input,
textarea,
[contenteditable="true"] {
  caret-color: #D011FD;
}

/* =============================
   FLAME FRAME (reusable)
   Uses your existing SVG filters:
   #side-flames and #top-flames
============================= */

/* Make INTRO flames match REMINDERS flames exactly */
#intro-overlay.flame-frame::before {
  background:
    linear-gradient(to right, #ff0000, #ff8c00 2%, #ffff00 3%, transparent 6%),
    linear-gradient(to left,  #ff0000, #ff8c00 2%, #ffff00 3%, transparent 6%) !important;
}

#intro-overlay.flame-frame::after {
  background:
    linear-gradient(to bottom, #ff0000, #ff8c00 2%, #ffff00 3%, transparent 6%),
    linear-gradient(to top,    #ff0000, #ff8c00 2%, #ffff00 3%, transparent 6%) !important;
}

.flame-frame {
  position: relative;
  overflow: hidden; /* hides the solid base so only tendrils show */
  isolation: isolate; /* keeps pseudo-elements layered correctly */
}

/* shared tendril layer */
.flame-frame::before,
.flame-frame::after {
  content: "";
  position: absolute;
  inset: -2px; /* adjust thickness of flame border */
  pointer-events: none;
  z-index: 5; /* above box background */
  opacity: 0.95;
}

/* left/right flames */
.flame-frame::before {
  background:
    linear-gradient(to right, #ff0000, #ff8c00 4%, #ffff00 6%, transparent 12%),
    linear-gradient(to left,  #ff0000, #ff8c00 4%, #ffff00 6%, transparent 12%);
  animation: flameFlicker 0.12s infinite;
}

/* top/bottom flames */
.flame-frame::after {
  filter: url(#top-flames);
  background:
    linear-gradient(to bottom, #ff0000, #ff8c00 4%, #ffff00 6%, transparent 12%),
    linear-gradient(to top,    #ff0000, #ff8c00 4%, #ffff00 6%, transparent 12%);
  animation: flameFlicker 0.16s infinite;
}

/* keep your content above the flames */
.flame-frame > * {
  position: relative;
  z-index: 10;
}
/* ===== FIX: ensure flames are flames (not straight beams) ===== */
/* If the SVG filter isn't applied, you only see the raw gradients (straight beams). */
/* Force the filter IDs you already have in your HTML. */

.flame-frame::before { filter: url(#side-flames) !important; }
.flame-frame::after  { filter: url(#top-flames)  !important; }

/* Keep your reminder “perfect flames” thinner (your exact stops) */
.reminder-box.flame-frame::before{
  background:
    linear-gradient(to right, #ff0000, #ff8c00 2%, #ffff00 3%, transparent 6%),
    linear-gradient(to left,  #ff0000, #ff8c00 2%, #ffff00 3%, transparent 6%) !important;
}
.reminder-box.flame-frame::after{
  background:
    linear-gradient(to bottom, #ff0000, #ff8c00 2%, #ffff00 3%, transparent 6%),
    linear-gradient(to top,    #ff0000, #ff8c00 2%, #ffff00 3%, transparent 6%) !important;
}
/* =============================
   DARKLAND SIDE FLAMES
============================= */
#ladder-wrapper::before {
  display: none;
}

#star-border {
  position: absolute;
  top: -20px;                  /* reduced from -40px on mobile */
  left: -20px;                 /* reduced from -40px on mobile */
  width: calc(100% + 40px);    /* reduced from 80px on mobile */
  height: calc(100% + 40px);
  z-index: 999;
  pointer-events: none;
  border-radius: 20px;
  overflow: visible;
}

  @keyframes spaceZoom {
   0% {
    background-size: 100% 100%;
    background-position: center;
  }
  100% {
    background-size: 140% 140%;
    background-position: 54% 46%;
  }
}
#reminder-overlay {
  pointer-events: auto;
}

#reminder-overlay * {
  pointer-events: auto;
}
.swirl-title {
  width: min(1100px, 94vw);
  margin: 0 auto 16px;
  flex-shrink: 0;
  filter:
    drop-shadow(0 0 10px rgba(245,255,58,0.55))
    drop-shadow(0 0 28px rgba(245,255,58,0.25));
  transform-origin: 50% 60%;
  display: flex;
  justify-content: center;
}
/* the letters */
.swirl-text {
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 82px;   /* SVG units — scales automatically with svg width */
  letter-spacing: 10px;
  text-transform: uppercase;
  fill: #f5ff3a;
  paint-order: stroke;
  stroke: rgba(245,255,58,0.22);
  stroke-width: 6px;
}


/* animate the whole title in */
.swirl-title.play{
  animation: swirlIn 1.25s cubic-bezier(.18,1.35,.32,1) both;
}


/* optional tiny shimmer after it lands */
.swirl-title.settled{
  animation: neonThrum 2.2s ease-in-out infinite;
}

@keyframes swirlIn{
  0%{
    opacity: 0;
    transform: translateY(-18px) rotate(-10deg) scale(0.65);
    filter: blur(6px);
  }
  55%{
    opacity: 1;
    transform: translateY(0) rotate(7deg) scale(1.12);
    filter: blur(0);
  }
  75%{
    transform: rotate(-2deg) scale(0.98);
  }
  100%{
    opacity: 1;
    transform: rotate(0deg) scale(1);
    filter: blur(0);
  }
}

@keyframes waveSlide{
  0%   { startOffset: 35%; }
  100% { startOffset: 50%; }
}

@keyframes neonThrum{
  0%,100%{
    filter:
      drop-shadow(0 0 10px rgba(245,255,58,0.55))
      drop-shadow(0 0 28px rgba(245,255,58,0.25));
  }
  50%{
    filter:
      drop-shadow(0 0 14px rgba(245,255,58,0.75))
      drop-shadow(0 0 44px rgba(245,255,58,0.32));
  }
}

/* each word is its own “pop” */
.swirl-word{
  opacity: 0;
  transform-box: fill-box;      /* important for SVG transform */
  transform-origin: center;
}

/* only pop when you add .play (your JS already does that) */
.swirl-title.play .swirl-word{
  animation: wordPop 0.55s cubic-bezier(.18,1.35,.32,1) both;
}

/* stagger timing */
.swirl-title.play .w1{ animation-delay: 0.05s; }
.swirl-title.play .w2{ animation-delay: 0.18s; }
.swirl-title.play .w3{ animation-delay: 0.33s; }

@keyframes wordPop{
  0%   { opacity: 0; transform: translateY(-10px) scale(0.65); }
  60%  { opacity: 1; transform: translateY(0)     scale(1.15); }
  100% { opacity: 1; transform: translateY(0)     scale(1); }
}

/* when settled, keep them ON */
.swirl-title.settled .swirl-word{
  opacity: 1;
  transform: none;
}
.swirl-title svg {
  display: block;
  width: 100%;       /* fills .swirl-title on every screen */
  height: auto;      /* preserves the wave aspect ratio */
  overflow: visible;
}
.character img{
  position: relative;
  z-index: 1;           /* image sits behind caption */
  display: block;
}
.character .caption{
  position: absolute;
  left: 50%;
  top: -34px;                 /* ✅ higher: make more negative */
  transform: translateX(-50%);
  z-index: 5;                 /* ✅ above the image */
  pointer-events: none;       /* doesn’t block clicking character */

  /* keep your original caption vibe */
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  font-style: italic;
  color: #fff234;
  text-shadow:
    0 0 6px rgba(190, 140, 255, 0.5),
    0 0 14px rgba(130, 80, 220, 0.35);
}
#reminder-overlay[hidden] { 
  display: none !important; 
}
#character-overlay[hidden] { 
  display: none !important; 
}
#card-layer[hidden] { 
  display: none !important; 
}
#intro-overlay[hidden] { 
  display: none !important; 
}
/* ===== VISIBILITY SYSTEM (OVERRIDES EVERYTHING ABOVE) ===== */

/* ===== VISIBILITY SYSTEM ===== */
#intro-overlay[hidden],
#reminder-overlay[hidden],
#character-overlay[hidden],
#game-screen[hidden],
#card-layer[hidden] {
  display: none !important;
}

#reminder-overlay:not([hidden]) { display: flex; }
#character-overlay:not([hidden]) { display: flex; }
#game-screen:not([hidden]) {
  display: flex !important;    /* must be flex, not block */
}

#card-layer { display: none; }

#mouse-canvas {
  z-index: 2147483000 !important;
  pointer-events: none !important;
}
#cursor-ring { z-index: 2147483640 !important; }
#intro-overlay { z-index: 9999; }
#reminder-overlay { z-index: 9000; }
#character-overlay { z-index: 8500; }

/* =============================
   FIX SLIDER CURSOR
============================= */

/* Only show text cursor where actual typing happens */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
[contenteditable="true"] {
  cursor: text !important;
}

/* Make sure sliders are draggable */
input[type="range"] {
  cursor: ew-resize !important;
  pointer-events: auto !important;
}

/* Keep star cursor on sliders (no ↔︎) */
input[type="range"]{
  cursor: url("star-hover.png") 24 24, pointer !important;
}

/* While actively dragging (Chrome/Safari) */
input[type="range"]:active{
  cursor: url("star-click.png") 24 24, pointer !important;
}
input[type="range"]::-webkit-slider-thumb{
  cursor: url("star-hover.png") 24 24, pointer !important;
}
input[type="range"]::-webkit-slider-thumb:active{
  cursor: url("star-click.png") 24 24, pointer !important;
}
/* Bigger cyber text ONLY on journey screen */
/* Bigger cyber text ONLY on journey screen */
#journey-end-overlay .cyber-text {
  font-size: clamp(2.7rem, 10vw, 5.3rem) !important;  /* 1/3 smaller than clamp(4rem, 15vw, 8rem) */
  min-width: auto;
  animation: none;
} /* <-- THIS CLOSING BRACE WAS MISSING */

/* =============================
   REFLECTION BUTTON HOVER SYSTEM
============================= */

/* your reflection buttons are .reflection-btn */
#journey-end-overlay .reflection-btn:hover{
  background: linear-gradient(
    135deg,
    #fd11b4,
    #fd3b96,
    #D011FD,
    #11FD5A,
    #fff234
  ) !important;

  color: #000 !important;

  box-shadow:
    0 0 12px #fd11b4,
    0 0 22px #D011FD,
    0 0 35px #fff234 !important;

  transform: translateY(-3px) scale(1.04) !important;
}

#journey-end-overlay .reflection-btn:active{
  transform: scale(0.96) !important;
}

/* also cover any plain buttons in journey overlay */
#journey-end-overlay button:hover{
  background: #fd11b4 !important;
  color: #000 !important;
}
#card-counter {
  position: fixed;
  top: 18px;
  left: 22px;
  z-index: 99999999;
  font-family: Impact, sans-serif;
  letter-spacing: 2px;
  pointer-events: none;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0;
  transition: color 0.6s ease, text-shadow 0.6s ease;
  white-space: nowrap;
  font-size: 28px;
}
#card-counter.darkland {
  color: #000;
  text-shadow: 
    0 0 6px rgba(192,192,192,1), 
    0 0 12px rgba(192,192,192,0.9),
    0 0 25px rgba(192,192,192,0.8),
    0 0 50px rgba(192,192,192,0.5);
}

#card-counter.murkland {
  color: #848482;
  text-shadow: 
    0 0 6px rgba(255,242,52,1),
    0 0 12px rgba(255,242,52,0.9),
    0 0 25px rgba(255,242,52,0.8),
    0 0 50px rgba(255,242,52,0.5);
}
#card-counter.loveland {
  color: #fff234;
  text-shadow: 
    0 0 6px rgba(255,255,255,1),
    0 0 12px rgba(255,255,255,0.9),
    0 0 25px rgba(255,255,255,0.8),
    0 0 50px rgba(255,255,255,0.5);
}
#card-counter.ecstasy {
  color: #fd11b4;
  text-shadow: 
    0 0 6px rgba(255,255,255,1),
    0 0 12px rgba(255,255,255,0.9),
    0 0 25px rgba(255,255,255,0.8),
    0 0 50px rgba(255,255,255,0.5);
  animation: ecstasyPulse 3.6s ease-in-out infinite;
}
@keyframes ecstasyPulse {
  0%   { 
    color: #fd11b4;
    text-shadow: 0 0 10px rgba(253,17,180,0.8), 0 0 28px rgba(253,17,180,0.4);
    transform: scale(1);
  }
  16% { 
    color: #FDD011;
    text-shadow: 0 0 18px rgba(253,208,17,1), 0 0 50px rgba(253,208,17,0.6);
    transform: scale(1.18);
  }
  33% { 
    color: #fff234;
    text-shadow: 0 0 10px rgba(255,242,52,0.8), 0 0 28px rgba(255,242,52,0.4);
    transform: scale(1);
  }
  50% { 
    color: #fd3b96;
    text-shadow: 0 0 18px rgba(253,59,150,1), 0 0 50px rgba(253,59,150,0.6);
    transform: scale(1.18);
  }
  66% { 
    color: #11FD5A;
    text-shadow: 0 0 10px rgba(17,253,90,0.8), 0 0 28px rgba(17,253,90,0.4);
    transform: scale(1);
  }
  83% { 
    color: #D011FD;
    text-shadow: 0 0 18px rgba(208,17,253,1), 0 0 50px rgba(208,17,253,0.6);
    transform: scale(1.18);
  }
  100% { 
    color: #fd11b4;
    text-shadow: 0 0 10px rgba(253,17,180,0.8), 0 0 28px rgba(253,17,180,0.4);
    transform: scale(1);
  }
}
.lovegame-btn-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 80px auto 0;
}

#lovegame-flame-canvas {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

#lovegame-restart-btn {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: #11FD5A;
  border: 4px solid #D011FD;
  cursor: pointer;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
  box-shadow:
    0 0 18px rgba(17,253,90,0.5),
    0 0 40px rgba(17,253,90,0.2),
    inset 0 0 30px rgba(0,0,0,0.25);
  outline: none;
  padding: 0;
  /* reset text styles from old button */
  font-size: unset;
  letter-spacing: unset;
  color: unset;
  text-shadow: none;
}

#lovegame-restart-btn:hover {
  background: #fff234;
  border-color: #fd11b4;
  box-shadow:
    0 0 28px rgba(255,242,52,0.7),
    0 0 60px rgba(255,242,52,0.3),
    inset 0 0 30px rgba(0,0,0,0.15);
  transform: scale(1.06);
}

#lovegame-restart-btn img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(17,253,90,0.7));
  transition: filter 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

#lovegame-restart-btn:hover img {
  filter:
    drop-shadow(0 0 16px rgba(255,242,52,0.95))
    drop-shadow(0 0 35px rgba(208,17,253,0.55));
  transform: scale(1.1) translateY(-4px);
}

.cyber-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;

  font-family: 'Impact', sans-serif;
  font-size: clamp(2.2rem, 9vw, 4rem);  /* stays big on all screens */
  color: #f5ff3a;
  text-transform: uppercase;

  display: flex;
  flex-direction: column;   /* always stacked — no wrapping issues */
  align-items: center;
  justify-content: center;
  text-align: center;

  width: max-content;
  max-width: 95vw;
  padding-bottom: 1.4em;
  box-sizing: border-box;

  -webkit-mask-image: repeating-linear-gradient(
    to bottom,
    black 0px, black 4px,
    transparent 4px, transparent 8px
  );
  mask-image: repeating-linear-gradient(
    to bottom,
    black 0px, black 4px,
    transparent 4px, transparent 8px
  );
}


#loading-dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 1.4em;
  line-height: 1.4em;
  text-align: center;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

#exit-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 99999999;
  width: clamp(32px, 6vw, 48px);
  height: clamp(32px, 6vw, 48px);
}

@media (max-width: 600px) {
  .cyber-text {
    flex-direction: column;
  }
}

@media (min-width: 768px) {
  .reminder-box {
    width: min(90%, 853px);
    padding: 2.7rem 3.3rem;
    justify-content: center;       /* tablets/desktops: cluster in middle */
    gap: 1.2rem;                   /* consistent spacing between children */
  }

  .reminder-list {
    flex: unset;                   /* don't stretch the list on desktop */
    justify-content: unset;
  }
}
@media (max-width: 768px) {
  .character {
    width: clamp(80px, 25vw, 180px);
  }

  .character-grid {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .character {
    width: clamp(75px, 28vw, 100px);
  }

  .character-grid {
    gap: 0.5rem;
    margin-top: 8px;
  }

  #character-caption {
    margin-bottom: 8px;
  }
}

@media (max-width: 390px) {
  #character-overlay {
    padding-top: 50px;
  }

  .character {
    width: clamp(68px, 26vw, 90px);
  }

  .character-grid {
    gap: 0.4rem;
  }

  #confirm-character {
    font-size: 0.8rem;
    padding: 0.5rem 1.2rem;
  }

  #exit-btn {
    width: 30px;
    height: 30px;
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 480px) {
  #star-border {
    top: -8px;
    left: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
  }

  #board {
    padding: 8px 0;
  }

  #player-character {
    width: clamp(50px, 9vw, 90px);
  }
}
#journey-end-overlay,
#journey-end-overlay * {
  -webkit-user-select: none;
  user-select: none;
}

#journey-end-overlay .reflection-cardstage,
#journey-end-overlay canvas {
  touch-action: none !important;
  overscroll-behavior: none;
}
@media (max-width: 900px) {
  /* Stack the bird + text side-by-side div vertically */
  .about-flex {
    flex-direction: column !important;
    align-items: center !important;
    gap: 24px !important;
    padding: 20px !important;
  }

  .about-bird {
    width: 90vw !important;
    max-width: 500px !important;
    order: 3 !important;
  }

  .about-text {
    order: 4 !important;
    max-width: 100% !important;
  }
}
@media (max-width: 900px) {
  .home-bird-left,
  .home-bird-right {
    width: 80vw !important;
    max-width: 400px !important;
    height: auto !important;
    margin-top: 0 !important;
    transform: none !important;
  }

  .home-bird-left {
    transform: scaleX(-1) !important;
    order: 1 !important;
  }

  #lovegame-flame-canvas {
    width: min(180px, 45vw) !important;
    height: min(180px, 45vw) !important;
  }

  .home-bird-right {
    order: 3 !important;
  }

  /* Center wrap for the button */
  .lovegame-btn-wrap > div[style] {
    order: 2 !important;
    top: 0 !important;
    width: min(180px, 45vw) !important;
    height: min(180px, 45vw) !important;
  }

  #lovegame-restart-btn {
    width: 100% !important;
    height: 100% !important;
  }

  #lovegame-restart-btn img {
    width: 70% !important;
    height: 70% !important;
  }
}
/* Tablet-only layout: birds + text side-by-side, centered, no overflow */
@media (min-width: 768px) and (max-width: 900px) {
  .about-birds-block {
    flex-direction: row;
    align-items: center;
    gap: clamp(30px, 6vw, 55px);
    text-align: left;
  }

  .about-birds-block img {
    width: clamp(320px, 42vw, 420px);
    height: auto;
    max-width: none;
    max-height: none;
    flex-shrink: 0;
  }

  .about-birds-block h2 {
    text-align: left;
    max-width: 520px;
  }

  /* Keep birds within viewport: constrain image's effective max size */
  .about-birds-block img {
    max-inline-size: min(100%, 600px);
  }
}

/* Ensure phones stay stacked and desktop keeps row (if you still want it) */
@media (max-width: 767px) {
  .about-birds-block {
    flex-direction: column;
  }
}
