/* ================================
   Stage Page Styles - Lucky Cat Hunt
   ================================ */

/* Header */
header {
  padding: 12px 16px;
  background: var(--warm-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.nav-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: #444;
  padding: 10px 20px;
  border-radius: 25px;
  background: linear-gradient(135deg, #E8E8E8 0%, #C0C0C0 100%);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #F0F0F0 0%, #D0D0D0 100%);
}

.stage-info {
  text-align: center;
}

.stage-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  color: var(--gold-dark);
  letter-spacing: 0.1em;
}

.stage-title {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* Instruction text */
.instruction {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  padding: 14px 16px;
  text-align: center;
}

.instruction p {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0;
}

/* Main content */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Game image container - full width on mobile */
.game-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Found overlay */
.found-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.found-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.found-message {
  background: var(--warm-white);
  padding: 30px 40px;
  border-radius: 16px;
  text-align: center;
  animation: popIn 0.4s ease;
}

.found-icon {
  font-size: 50px;
  margin-bottom: 10px;
}

.found-text {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--charcoal);
  margin-bottom: 5px;
}

.found-subtext {
  font-size: 0.9rem;
  color: #888;
}

.found-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.next-btn-overlay {
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--charcoal);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
  transition: all 0.2s ease;
}

.next-btn-overlay:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

.share-btn-clear {
  padding: 12px 24px;
  background: linear-gradient(135deg, #E8E8E8 0%, #C0C0C0 100%);
  border: none;
  border-radius: 25px;
  color: #444;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.share-btn-clear:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #F0F0F0 0%, #D0D0D0 100%);
}

/* Miss indicator */
.miss-indicator {
  position: absolute;
  color: rgba(255, 255, 255, 0.9);
  font-size: 120px;
  font-weight: bold;
  pointer-events: none;
  transform: translate(-50%, -50%);
  text-shadow: 0 4px 8px rgba(0,0,0,0.5);
  animation: missAnim 1.6s ease forwards;
}

@keyframes missAnim {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -70%) scale(0.5);
  }
}

/* Game info panel */
.game-info {
  margin-top: 20px;
  padding: 0 16px 30px;
  text-align: center;
}

.find-text {
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 15px;
}

.find-text .japanese-text {
  font-size: 0.9rem;
  color: var(--gold-dark);
}

/* Hint button - prominent */
.hint-btn {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  border: none;
  color: var(--charcoal);
  padding: 14px 28px;
  border-radius: 25px;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.hint-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

/* Hint panel */
.hint-panel {
  display: none;
  background: var(--warm-white);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-top: 10px;
  animation: fadeInUp 0.4s ease;
}

.hint-panel.show {
  display: block;
}

.hint-cat-img {
  width: 100px;
  height: auto;
  margin: 15px 0;
}

.hint-label {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: var(--gold-dark);
  letter-spacing: 0.05em;
}

.hint-location {
  margin-bottom: 0;
}

.hint-location p {
  font-size: 0.9rem;
  color: #666;
  margin-top: 4px;
  font-style: italic;
}

.hint-blessing {
  margin-top: 0;
}

.hint-blessing p {
  font-size: 0.95rem;
  color: var(--charcoal);
  margin-top: 4px;
}

.hint-blessing .blessing-en {
  font-size: 0.8rem;
  color: #888;
}

/* Next stage button */
.next-btn {
  display: none;
  margin-top: 20px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--charcoal);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
  transition: all 0.3s ease;
}

.next-btn.show {
  display: inline-block;
  animation: fadeInUp 0.5s ease;
}

.next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

/* Responsive */
@media (min-width: 500px) {
  .game-info {
    padding: 0 24px 30px;
  }

  .stage-title {
    font-size: 1.15rem;
  }

  .hint-cat-img {
    width: 120px;
  }
}

/* Footer navigation */
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px 16px 30px;
  background: var(--warm-white);
}

/* ========================================
   TIP Button Styles - stage.cssの末尾に追記
   ======================================== */

/* Share と Tip を横並びにするコンテナ */
.found-buttons-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 10px;
}

/* ShareとTipボタンを同じ幅・高さに */
.found-buttons-row .share-btn-clear,
.found-buttons-row .tip-btn {
  width: 120px;
  height: 48px;
  text-align: center;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tip button - Silver (Shareと同じ) */
.tip-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 25px;
  background: linear-gradient(135deg, #E8E8E8 0%, #C0C0C0 100%);
  color: #444;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.tip-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* TIPボタンとメッセージをまとめるラッパー */
.tip-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Tip message text - TIPボタンの真下 */
.tip-message {
  font-size: 0.9rem;
  color: #555;
  margin: 8px 0 0 0;
  white-space: nowrap;
}

/* モーダルの幅を少し広げる */
.found-message {
  max-width: 340px;
  width: 90%;
  padding: 30px 28px;
}