/* === WRAPPER === */
.spot-game {
  max-width: 960px;
  margin: auto;
  padding: 0 16px;
}

.spot-game .tool-title,
.spot-game .meta {
  text-align: center;
}

/* === GAME SECTION === */
.spot-game .game-section {
  text-align: center;
  padding: 20px;
}

.spot-game #startBtn {
  margin: 14px 0 20px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid #111;
  background: #fff;
  font-weight: 600;
  transition: all 0.2s ease;
}

.spot-game #startBtn:hover {
  background: #111;
  color: #fff;
}

/* === TIMER === */
.timer-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.timer-btn {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.timer-btn:hover {
  background: #f3f4f6;
}

.timer-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* === GAME AREA === */
.spot-game #gameArea {
  position: relative;
  max-width: 720px;
  margin: auto;
  cursor: crosshair;
  touch-action: manipulation;
  
  aspect-ratio: 16 / 9; 
}

.spot-game #jungle {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.spot-game #tiger {
  position: absolute;
  width: 80px;
  opacity: 0;
  pointer-events: none;
}

/* === MOBILE LANDSCAPE FIX === */
@media (max-width: 768px) and (orientation: landscape) {
  .spot-game #gameArea {
    height: 65vh;
    max-width: 100%;
  }

  .spot-game #jungle {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* 🔥 key fix */
    border-radius: 16px;
  }

  .spot-game #tiger {
    width: 90px;
  }
}

/* === FEEDBACK === */
#feedback {
  margin-top: 12px;
  font-weight: 600;
  min-height: 24px;
  font-size: 15px;
}

#resultBox {
max-width: 720px;
  margin: auto;
  margin-bottom: 14px;
}

#shareBtn {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid #111;
  background: #fff;
  font-weight: 600;
  transition: all 0.2s ease;
}

#shareBtn:hover {
  background: #111;
  color: #fff;
}

/* === RESULT CARD === */
.result-card {
  text-align: center;
  width: 100%;

  /* 🔥 KEY FIX */
  padding: 0;              /* remove extra inner spacing */
  margin: 0;               /* no extra push */

  border-radius: 0;        /* remove card feel */
  background: transparent; /* remove double background */
  border: none;
  box-shadow: none;

  transition: all 0.2s ease;
}

/* === SCORE === */
.score-main {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 4px;
}

.score-sub {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}

/* === GRID === */
.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 14px;
}

/* 🔥 MOBILE FIX */
@media (max-width: 480px) {
  .result-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .result-grid div:last-child {
    grid-column: span 2;
  }

  .score-main {
    font-size: 36px;
  }

  .result-grid strong {
    font-size: 16px;
  }
}

/* === GRID CARDS === */
.result-grid div {
  background: linear-gradient(135deg, #ffffff, #f9fafb);
  padding: 14px;
  border-radius: 12px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;

  box-shadow:
    0 6px 14px rgba(0,0,0,0.05),
    inset 0 1px 0 rgba(255,255,255,0.6);

  transition: all 0.15s ease;
}

/* Hover only on devices that support it */
@media (hover: hover) {
  .result-grid div:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
  }
}

/* === TEXT === */
.result-grid strong {
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.result-grid span {
  font-size: 12px;
  color: #6b7280;
}

/* === COLOR CODING === */
.result-grid div:nth-child(2) strong { color: #16a34a; }
.result-grid div:nth-child(3) strong { color: #f59e0b; }
.result-grid div:nth-child(4) strong { color: #dc2626; }
.result-grid div:nth-child(5) strong { color: #2563eb; }

/* === INFO BOX === */
.info-box {
  max-width: 720px;
  margin: auto;
  padding: 20px;
  border-radius: 16px;

  background: linear-gradient(135deg, #ffffff, #f9fafb);

  box-shadow:
    0 6px 18px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

/* === LIST === */
.steps {
  list-style: none;
  padding: 0;
}

.steps li {
  margin-bottom: 10px;
  line-height: 1.5;
}

/* === SECTION SPACING === */
.white-section {
  margin-bottom: 24px;
}

/* === FOOTER SPACING === */
.white-section:last-of-type {
  margin-bottom: 48px;
}

@media (max-width: 480px) {
  .spot-game #gameArea {
    width: 100%;
    max-width: 100%;   /* 🔥 ensures no restriction from earlier 720px */
  }

  .spot-game #jungle {
    width: 100%;
    height: auto;
    min-height: 260px; /* 🔥 slightly safer than 280px */
    border-radius: 18px;
  }
}