/* ============================================
   CaseTheWolf.com — Games Engine CSS v2
   All 5 World Adventure mini-games & quizzes
   ============================================ */

/* ---- SHARED GAME SHELL ---- */
.ge-shell {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
  font-family: var(--font-main, 'Nunito', sans-serif);
}

/* ---- HEADER ---- */
.ge-head {
  padding: 26px 28px 20px;
  color: white;
  text-align: center;
}
.ge-head-title {
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 5px;
  text-shadow: 1px 2px 6px rgba(0,0,0,0.25);
}
.ge-head-sub {
  font-size: 0.88rem;
  opacity: 0.88;
  font-family: var(--font-body, 'Quicksand', sans-serif);
}

/* ---- BODY & FOOTER ---- */
.ge-body {
  padding: 24px 26px 20px;
}
.ge-foot {
  padding: 12px 22px;
  background: #f7f8fa;
  border-top: 2px solid #eef0f3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ---- PROGRESS ROW ---- */
.ge-prog-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.ge-prog-lbl,
.ge-prog-score {
  font-size: 0.8rem;
  font-weight: 700;
  color: #999;
  white-space: nowrap;
}
.ge-prog-track {
  flex: 1;
  height: 9px;
  background: #e9eaec;
  border-radius: 10px;
  overflow: hidden;
}
.ge-prog-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.45s cubic-bezier(.4,0,.2,1);
}

/* ---- QUESTION ---- */
.ge-question {
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: #1a2744;
  line-height: 1.5;
  margin-bottom: 18px;
}

/* ---- ANSWER OPTIONS ---- */
.ge-opts {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}
.ge-opt {
  padding: 13px 16px;
  border-radius: 12px;
  border: 2.5px solid #e2e5ea;
  background: white;
  font-family: var(--font-body, 'Quicksand', sans-serif);
  font-size: 0.94rem;
  font-weight: 600;
  color: #1a2744;
  cursor: pointer;
  text-align: left;
  line-height: 1.45;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
}
.ge-opt:hover:not(:disabled) {
  border-color: #0288d1;
  background: #e8f5fd;
  transform: translateX(4px);
}
.ge-opt:disabled { cursor: default; }
.ge-opt.ge-correct {
  border-color: #2e7d32;
  background: #e8f5e9;
  color: #1b5e20;
  font-weight: 700;
}
.ge-opt.ge-correct::after {
  content: '  ✓';
  font-weight: 900;
}
.ge-opt.ge-wrong {
  border-color: #c62828;
  background: #ffebee;
  color: #b71c1c;
}
.ge-opt.ge-wrong::after {
  content: '  ✗';
  font-weight: 900;
}

/* ---- EXPLANATION BOX ---- */
.ge-exp {
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 0.9rem;
  font-family: var(--font-body, 'Quicksand', sans-serif);
  font-weight: 600;
  line-height: 1.6;
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.2s;
}
.ge-exp.ge-exp-correct,
.ge-exp.ge-exp-wrong {
  max-height: 200px;
  opacity: 1;
  padding: 13px 16px;
}
.ge-exp.ge-exp-correct {
  background: #e8f5e9;
  color: #1b5e20;
  border-left: 5px solid #43a047;
}
.ge-exp.ge-exp-wrong {
  background: #fff8e1;
  color: #e65100;
  border-left: 5px solid #ff8f00;
}

/* ---- FOOTER ELEMENTS ---- */
.ge-xp-badge {
  background: #ffcc02;
  color: #1a2744;
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.8rem;
  white-space: nowrap;
}
.ge-quit {
  background: transparent;
  border: 2px solid #dde0e7;
  color: #aaa;
  padding: 5px 14px;
  border-radius: 20px;
  font-family: var(--font-main, 'Nunito', sans-serif);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.ge-quit:hover { background: #f0f1f4; color: #666; }

/* ---- RESULT SCREEN ---- */
.ge-result {
  border-radius: 20px;
  padding: 52px 32px 44px;
  text-align: center;
  color: white;
  box-shadow: 0 12px 48px rgba(0,0,0,0.3);
  animation: ge-fadein 0.4s ease;
}
.ge-result-medal {
  font-size: 5rem;
  margin-bottom: 14px;
  display: block;
  animation: ge-bounce 0.7s cubic-bezier(.4,0,.2,1);
}
.ge-result-title {
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-size: 1.65rem;
  font-weight: 900;
  margin-bottom: 10px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}
.ge-result-score {
  font-size: 1.1rem;
  opacity: 0.9;
  font-weight: 600;
  margin-bottom: 6px;
}
.ge-result-xp {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.3);
  padding: 7px 22px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1.05rem;
  margin: 12px 0 28px;
}
.ge-result-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.ge-btn {
  padding: 12px 26px;
  border-radius: 30px;
  border: none;
  font-family: var(--font-main, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: 0.93rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ge-btn:hover { transform: translateY(-3px); }
.ge-btn-light {
  background: white;
  color: #1a2744;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.ge-btn-gold {
  background: linear-gradient(135deg, #ffcc02, #f9a825);
  color: #1a2744;
  box-shadow: 0 4px 14px rgba(249,168,37,0.4);
}

@keyframes ge-fadein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ge-bounce {
  0%   { transform: scale(0.4) rotate(-15deg); opacity: 0; }
  60%  { transform: scale(1.15) rotate(4deg); opacity: 1; }
  80%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* ============================================
   KINDNESS TOWN GAME
   ============================================ */
.ge-hud {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.ge-hearts { font-size: 1.25rem; letter-spacing: 3px; }
.ge-scene-badge {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 3px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
}
.ge-scene-icon {
  font-size: 3.5rem;
  text-align: center;
  display: block;
  margin-bottom: 12px;
  animation: ge-fadein 0.3s ease;
}
.ge-scene-text {
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2744;
  background: #f7f8fa;
  padding: 14px 18px;
  border-radius: 12px;
  border-left: 5px solid #FF6D00;
  line-height: 1.55;
  margin-bottom: 16px;
}
.ge-kopts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 14px;
}
.ge-kopt {
  padding: 13px 14px;
  border-radius: 12px;
  border: 2.5px solid #e2e5ea;
  background: white;
  font-family: var(--font-body, 'Quicksand', sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a2744;
  cursor: pointer;
  text-align: left;
  line-height: 1.45;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
}
.ge-kopt:hover:not(:disabled) {
  border-color: #FF6D00;
  background: #fff3e0;
  transform: translateY(-2px);
}
.ge-kopt:disabled { cursor: default; }
.ge-kopt-yes {
  border-color: #2e7d32 !important;
  background: #e8f5e9 !important;
  color: #1b5e20 !important;
  font-weight: 700 !important;
}
.ge-kopt-yes::after { content: '  💛'; }
.ge-kopt-no {
  border-color: #c62828 !important;
  background: #ffebee !important;
  color: #b71c1c !important;
}
.ge-kopt-no::after { content: '  ✗'; }
@media (max-width: 560px) {
  .ge-kopts { grid-template-columns: 1fr; }
}

/* ============================================
   CHARTER MOUNTAIN CLIMB
   ============================================ */
.ge-climb-layout {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 22px;
  padding: 22px 24px 18px;
  align-items: stretch;
}
.ge-mountain-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ge-peak-label { font-size: 1.8rem; }
.ge-base-label { font-size: 1.4rem; }
.ge-mountain-track {
  flex: 1;
  width: 28px;
  background: linear-gradient(to top, #8d6e63, #5d4037);
  border-radius: 14px;
  position: relative;
  overflow: visible;
  box-shadow: 2px 0 10px rgba(0,0,0,0.18);
  min-height: 200px;
}
.ge-mountain-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, #e53935, #ef9a9a);
  border-radius: 14px;
  transition: height 0.65s cubic-bezier(.4,0,.2,1);
  min-height: 5px;
}
.ge-mountain-wolf {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.45rem;
  transition: bottom 0.65s cubic-bezier(.4,0,.2,1);
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.ge-question-col {
  display: flex;
  flex-direction: column;
}
@media (max-width: 540px) {
  .ge-climb-layout {
    grid-template-columns: 60px 1fr;
    gap: 14px;
    padding: 16px 16px 12px;
  }
  .ge-mountain-track { min-height: 160px; }
}

/* ============================================
   WORLD MAP MODAL EXPANSION
   ============================================ */
.area-modal-content.game-active {
  max-width: 780px !important;
  padding: 0 !important;
  background: transparent !important;
  overflow: hidden;
}
.area-modal-content.game-active .modal-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1100;
  background: white;
  width: 38px;
  height: 38px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* ---- AREA INTRO CARD ---- */
.area-intro {
  text-align: center;
  padding: 38px 28px;
  animation: ge-fadein 0.35s ease;
}
.area-intro-icon {
  font-size: 5rem;
  display: block;
  margin-bottom: 14px;
  animation: ge-bounce 0.6s ease;
}
.area-intro-title {
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-size: 2rem;
  font-weight: 900;
  color: #1a2744;
  margin-bottom: 10px;
}
.area-intro-desc {
  color: #555;
  font-family: var(--font-body, 'Quicksand', sans-serif);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 400px;
  margin: 0 auto 14px;
}
.area-intro-reward {
  display: inline-block;
  background: #fff8e1;
  color: #e65100;
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.88rem;
  border: 2px solid #ffe082;
  margin-bottom: 26px;
}
.area-intro-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
