/* ═══════════════════════════════════════════════════
   games.css — Styles for games.html only
═══════════════════════════════════════════════════ */

/* ─── BACK BUTTON ─── */
.back-btn {
  position: fixed; top: 1.2rem; left: 1.2rem; z-index: 500;
  font-family: 'Josefin Sans', sans-serif;
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-light); text-decoration: none;
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  padding: .6rem 1.2rem; border-radius: 30px;
  border: 1px solid rgba(201,105,122,.15);
  transition: all .25s;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.back-btn:hover { background: var(--rose-pale); color: var(--rose-deep); }

/* ─── GAMES HERO ─── */
#games-hero {
  min-height: 40vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 100px 24px 60px;
  background:
    radial-gradient(ellipse 70% 60% at 20% 30%, rgba(232,160,160,.25), transparent),
    radial-gradient(ellipse 60% 70% at 80% 70%, rgba(201,105,122,.18), transparent),
    linear-gradient(160deg, #fdf0f2, #fdf8f2);
}

.games-hero-title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3.5rem,10vw,7rem);
  color: var(--dark); line-height: 1.1; margin-bottom: 1rem;
}
.games-hero-title span {
  background: linear-gradient(135deg, var(--rose-dark), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.games-hero-sub {
  font-size: 1.2rem; color: var(--text-light); font-style: italic; margin-bottom: 2rem;
}

.games-nav-pills {
  display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center;
}
.pill {
  font-family: 'Josefin Sans', sans-serif;
  font-size: .7rem; letter-spacing: .25em; text-transform: uppercase;
  text-decoration: none;
  padding: .6rem 1.4rem; border-radius: 30px;
  border: 1.5px solid rgba(201,105,122,.3);
  color: var(--text-light);
  transition: all .25s;
  background: transparent;
}
.pill:hover, .pill.active {
  background: var(--rose-deep); color: #fff; border-color: var(--rose-deep);
}

/* ─── GAME SECTION WRAPPER ─── */
.game-section {
  padding: 0;
  position: relative;
}
.dark-section-game { background: linear-gradient(160deg, #1a0812, #2a1020 50%, #150610); }

.game-inner {
  max-width: 760px; margin: 0 auto;
  padding: 90px 24px;
  position: relative; z-index: 1;
}

.game-desc {
  font-size: 1.1rem; color: var(--text-light); font-style: italic;
  margin-bottom: 3rem; line-height: 1.7;
}
.game-desc.light-desc { color: rgba(255,255,255,.4); }

/* ─── SHARED GAME ELEMENTS ─── */
.restart-btn {
  display: inline-block; margin-top: 2rem;
  background: linear-gradient(135deg, var(--rose-deep), var(--rose-dark));
  color: #fff; border: none; border-radius: 40px;
  padding: .85rem 2.4rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: .78rem; letter-spacing: .3em; text-transform: uppercase;
  cursor: none; transition: all .3s;
  box-shadow: 0 6px 24px rgba(201,105,122,.35);
}
.restart-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(201,105,122,.45); }

/* ═══════════════════════════════════════════════════
   GAME 1 — LOVE QUIZ
═══════════════════════════════════════════════════ */
.quiz-wrap { max-width: 580px; margin: 0 auto; }

.quiz-progress-bar {
  background: rgba(201,105,122,.15); border-radius: 30px;
  height: 6px; margin-bottom: 1.5rem; overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rose-deep), var(--gold));
  border-radius: 30px;
  transition: width .5s cubic-bezier(.16,1,.3,1);
  width: 0%;
}

.quiz-qnum {
  font-family: 'Josefin Sans', sans-serif;
  font-size: .65rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem; text-align: center;
}

.quiz-card {
  background: var(--white);
  border-radius: 24px; padding: 3rem 2.5rem;
  border: 1px solid rgba(201,105,122,.12);
  box-shadow: 0 8px 40px rgba(201,105,122,.1);
  text-align: center;
  animation: cardIn .4s cubic-bezier(.16,1,.3,1);
}
@keyframes cardIn { from {opacity:0; transform:translateY(20px) scale(.97)} to {opacity:1; transform:none} }

.quiz-q {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem,3vw,1.6rem);
  color: var(--dark); line-height: 1.55; margin-bottom: 2.5rem;
  font-style: italic;
}

.quiz-btns {
  display: flex; gap: 1rem; justify-content: center;
}

.quiz-btn {
  flex: 1; max-width: 180px;
  padding: 1rem 1.5rem;
  border-radius: 16px; border: 2px solid transparent;
  font-family: 'Josefin Sans', sans-serif;
  font-size: .82rem; letter-spacing: .25em; text-transform: uppercase;
  cursor: none; transition: all .25s;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.qbtn-icon { font-size: 1.2rem; }

.yes-btn {
  background: rgba(134,199,130,.1);
  border-color: rgba(134,199,130,.4);
  color: #2d6e29;
}
.yes-btn:hover {
  background: #86c782;
  border-color: #86c782;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(134,199,130,.3);
}

.no-btn {
  background: rgba(201,105,122,.1);
  border-color: rgba(201,105,122,.3);
  color: var(--rose-dark);
}
.no-btn:hover {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,105,122,.3);
}

/* Quiz answer feedback flash */
.quiz-btn.correct {
  background: #86c782 !important; color: #fff !important;
  border-color: #86c782 !important;
  animation: btnFlash .5s ease;
}
.quiz-btn.wrong {
  background: var(--rose-deep) !important; color: #fff !important;
  border-color: var(--rose-deep) !important;
  animation: btnFlash .5s ease;
}
@keyframes btnFlash { 0%{transform:scale(1)} 30%{transform:scale(1.06)} 100%{transform:scale(1)} }

/* Quiz result */
.quiz-result {
  background: var(--white);
  border-radius: 24px; padding: 3.5rem 2.5rem;
  border: 1px solid rgba(201,105,122,.12);
  box-shadow: 0 8px 40px rgba(201,105,122,.1);
  text-align: center;
  animation: cardIn .5s cubic-bezier(.16,1,.3,1);
}
.qr-emoji { font-size: 4rem; margin-bottom: 1rem; animation: heartbeat 1.5s ease-in-out infinite; }
.qr-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: var(--dark); margin-bottom: .8rem;
}
.qr-msg { font-size: 1.1rem; color: var(--text-light); font-style: italic; line-height: 1.7; margin-bottom: 1rem; }
.qr-score {
  font-family: 'Josefin Sans', sans-serif;
  font-size: .7rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold);
}
.quiz-comment {
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--rose-deep);
  font-size: 1rem;
  min-height: 1.4em;
}


/* ═══════════════════════════════════════════════════
   GAME 2 — SCRATCH CARD
═══════════════════════════════════════════════════ */
.scratch-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }

.scratch-container {
  position: relative;
  width: 340px; height: 220px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(232,160,160,.15);
  cursor: none;
}

.scratch-reveal {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #2a1020, #1a0812);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}

.scratch-msg-inner {
  text-align: center; pointer-events: none;
}
.scratch-msg-inner .sm-emoji { font-size: 2.5rem; display: block; margin-bottom: .8rem; }
.scratch-msg-inner .sm-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: .6rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 1rem;
}
.scratch-msg-inner .sm-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-style: italic; line-height: 1.7;
  color: rgba(255,255,255,.85);
}
.scratch-msg-inner .sm-sig {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem; color: var(--gold-light);
  display: block; margin-top: .8rem;
}

#scratch-canvas {
  position: absolute; inset: 0; z-index: 2;
  cursor: none; border-radius: 20px;
}

.scratch-hint {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Josefin Sans', sans-serif;
  font-size: .7rem; letter-spacing: .4em; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  pointer-events: none;
  transition: opacity .5s;
}

.scratch-pct {
  font-family: 'Josefin Sans', sans-serif;
  font-size: .65rem; letter-spacing: .35em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
}

/* ═══════════════════════════════════════════════════
   GAME 3 — WOULD YOU RATHER
═══════════════════════════════════════════════════ */
.wyr-wrap { max-width: 620px; margin: 0 auto; }

.wyr-progress-bar {
  background: rgba(201,105,122,.12); border-radius: 30px;
  height: 6px; margin-bottom: 1.5rem; overflow: hidden;
}
.wyr-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rose-deep), var(--gold));
  border-radius: 30px;
  transition: width .5s cubic-bezier(.16,1,.3,1);
  width: 0%;
}

.wyr-qnum {
  font-family: 'Josefin Sans', sans-serif;
  font-size: .65rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.5rem; text-align: center;
}

.wyr-card {
  background: var(--white);
  border-radius: 24px; padding: 2.5rem;
  border: 1px solid rgba(201,105,122,.12);
  box-shadow: 0 8px 40px rgba(201,105,122,.1);
  animation: cardIn .4s cubic-bezier(.16,1,.3,1);
}

.wyr-or {
  font-family: 'Josefin Sans', sans-serif;
  font-size: .7rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); text-align: center; margin-bottom: 1.5rem;
}

.wyr-options {
  display: flex; align-items: center; gap: 1rem;
}

.wyr-btn {
  flex: 1; padding: 1.5rem 1rem;
  border-radius: 18px; border: 2px solid rgba(201,105,122,.2);
  background: var(--rose-pale);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; color: var(--text);
  font-style: italic; line-height: 1.55;
  text-align: center; cursor: none;
  transition: all .3s cubic-bezier(.16,1,.3,1);
}
.wyr-btn:hover {
  background: linear-gradient(135deg, var(--rose-deep), var(--rose-dark));
  color: #fff; border-color: transparent;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 30px rgba(201,105,122,.3);
}
.wyr-btn.chosen {
  background: linear-gradient(135deg, var(--rose-deep), var(--rose-dark)) !important;
  color: #fff !important; border-color: transparent !important;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 30px rgba(201,105,122,.3);
}
.wyr-btn.not-chosen {
  opacity: .4; transform: scale(.97);
}

.wyr-vs {
  font-family: 'Josefin Sans', sans-serif;
  font-size: .7rem; letter-spacing: .25em;
  color: var(--gold); flex-shrink: 0;
}

/* WYR Result */
.wyr-result {
  animation: cardIn .5s cubic-bezier(.16,1,.3,1);
}
.wyr-result-inner {
  background: var(--white);
  border-radius: 24px; padding: 3rem 2.5rem;
  border: 1px solid rgba(201,105,122,.12);
  box-shadow: 0 8px 40px rgba(201,105,122,.1);
  text-align: center;
}
.wr-emoji { font-size: 3.5rem; margin-bottom: 1rem; }
.wr-title { font-family:'Playfair Display',serif; font-size:2rem; color:var(--dark); margin-bottom:.8rem; }
.wr-msg { font-size:1.1rem; color:var(--text-light); font-style:italic; margin-bottom:2rem; line-height:1.7; }

.wr-answers {
  text-align: left; max-height: 300px; overflow-y: auto;
  display: flex; flex-direction: column; gap: .8rem; margin-bottom: 1rem;
}
.wr-answer-item {
  background: var(--rose-pale); border-radius: 12px;
  padding: .8rem 1.2rem;
  font-size: .95rem; color: var(--text); font-style: italic;
  border-left: 3px solid var(--rose-deep);
}
.wr-answer-item strong { color: var(--rose-deep); font-style: normal; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; display: block; margin-bottom: .2rem; }

/* ─── BACK HOME ─── */
.back-home-wrap {
  background: linear-gradient(160deg, var(--blush), var(--cream));
  padding: 60px 24px;
  text-align: center;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  .scratch-container { width: 300px; height: 200px; }
  .wyr-options { flex-direction: column; }
  .wyr-vs { display: none; }
  .quiz-btns { flex-direction: column; align-items: center; }
  .quiz-btn { max-width: 100%; width: 100%; }
}
.quiz-comment {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 198, 102, 0.1);
  border-left: 3px solid #c9a96e;
  border-radius: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: #5a2838;
  font-style: italic;
  display: none;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}