
/* 전역 강제 숨김 클래스 */
.is-hidden {
  display: none !important;
}

.awaji-map-svg.is-hidden,
#awajiMapSvg.is-hidden,
#osakaMapSvg.is-hidden {
  display: none !important;
}

/* ==========================================================================
   Design Tokens & Variables
   ========================================================================== */
:root {
  --brand-pink: #FF69B4;          /* Bright Pink */
  --brand-pink-hover: #FF1493;    /* Hot Pink */
  --brand-pink-glow: rgba(255, 105, 180, 0.45);
  --brand-pink-glow-strong: rgba(255, 20, 147, 0.6);
  --light-pink: #FFF0F5;          /* Lavender Blush */
  --pastel-pink-bg: #FFE5EE;      /* Soft Pink Background */
  --dark-magenta: #C71585;        /* Medium Violet Red */
  --yellow-accent: #FFD700;       /* Gold */
  --dark-text: #3D222A;           /* Warm dark text */
  --white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 105, 180, 0.25);
  --leopard-pattern: url('assets/leopard-pattern.svg');
  
  --font-title: 'Lilita One', 'Fredoka', sans-serif;
  --font-body: 'Fredoka', 'Quicksand', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   Global Reset & Base
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--pastel-pink-bg);
  background-image: var(--leopard-pattern);
  background-size: 150px;
  background-attachment: fixed;
  color: var(--dark-text);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}


/* Mascot Walking & Ribbon Animation */
.mascot-walking-wrapper {
  position: relative;
  display: inline-block;
  animation: hopping 1s infinite alternate !important;
  animation-iteration-count: infinite !important;
  opacity: 1 !important;
  visibility: visible !important;
}

@keyframes hopping {
  0% { transform: translateY(0); }
  100% { transform: translateY(-15px); }
}

/* Glowing Rainbow Path (small, behind mascot only) */
.glowing-rainbow-path {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 6px;
  border-radius: 10px;
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  background-size: 200% 100%;
  animation: glow-rainbow-path 8s ease-in-out infinite !important;
  animation-iteration-count: infinite !important;
  z-index: -1;
  filter: blur(2px);
  box-shadow: 0 0 8px rgba(255, 105, 180, 0.6), 0 0 15px rgba(147, 0, 211, 0.4);
  opacity: 1 !important;
  visibility: visible !important;
}

@keyframes glow-rainbow-path {
  0% { background-position: 0% 50%; }
  100% { background-position: -200% 50%; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--light-pink);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-pink);
  border-radius: 6px;
  border: 3px solid var(--light-pink);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-pink-hover);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Background Ornaments & Sparkles
   ========================================================================== */
#sparkle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

.sparkle-particle {
  position: absolute;
  pointer-events: none;
  font-size: 16px;
  animation: sparkleFloat 1.5s ease-out forwards;
  z-index: 1000;
}

.bg-ornament {
  position: absolute;
  pointer-events: none;
  font-size: 3rem;
  opacity: 0.15;
  user-select: none;
  z-index: 1;
}

.bow-1 { top: 12%; left: 5%; animation: float 6s ease-in-out infinite; }
.bow-2 { top: 60%; right: 4%; animation: float 8s ease-in-out infinite 1s; }
.tiger-1 { top: 40%; left: 3%; animation: float 7s ease-in-out infinite 0.5s; font-size: 4rem; }
.star-1 { top: 25%; right: 8%; animation: pulseGlow 3s ease-in-out infinite; }
.star-2 { top: 80%; left: 7%; animation: pulseGlow 4s ease-in-out infinite 1.5s; }

/* ==========================================================================
   Reusable UI Components & Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: 1.15rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 6px 15px rgba(255, 105, 180, 0.3);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--brand-pink);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--brand-pink-hover);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 22px var(--brand-pink-glow-strong);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--brand-pink);
  border: 3px solid var(--brand-pink);
}

.btn-secondary:hover {
  background-color: var(--light-pink);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 22px rgba(255, 105, 180, 0.2);
}

/* Icon Buttons for Navigation */
.btn-icon {
  background: var(--white);
  border: 2px solid var(--brand-pink);
  color: var(--brand-pink);
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 105, 180, 0.15);
  transition: var(--transition-smooth);
}

.btn-icon:hover {
  background: var(--brand-pink);
  color: var(--white);
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 6px 15px var(--brand-pink-glow);
}

/* ==========================================================================
   Navigation Bar (Header)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--brand-pink);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 20px rgba(255, 105, 180, 0.15);
  padding: 12px 0;
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--brand-pink);
  text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.nav-mascot-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--brand-pink);
  margin-right: 10px;
  background-color: var(--white);
  box-shadow: 0 4px 8px var(--brand-pink-glow);
  transition: var(--transition-smooth);
}

.nav-logo:hover .nav-mascot-img {
  transform: scale(1.15) rotate(15deg);
}

.logo-text {
  display: flex;
  align-items: center;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.us-badge {
  font-size: 0.75rem;
  background-color: var(--dark-magenta);
  color: var(--white);
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 6px;
  transform: rotate(-5deg);
  display: inline-block;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--dark-text);
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.nav-link::after {
  content: '🎀';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  transition: var(--transition-smooth);
  font-size: 0.8rem;
}

.nav-link:hover {
  color: var(--brand-pink);
}

.nav-link:hover::after {
  transform: translateX(-50%) scale(1.2);
  bottom: -10px;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--pastel-pink-bg);
  padding: 3px;
  border-radius: 30px;
  border: 2px solid var(--brand-pink);
  box-shadow: inset 0 2px 5px rgba(255, 105, 180, 0.1);
}

.lang-btn {
  font-family: var(--font-title);
  font-size: 0.75rem;
  padding: 4px 6px;
  border-radius: 20px;
  color: var(--brand-pink);
  text-decoration: none;
  transition: var(--transition-smooth);
  font-weight: bold;
  white-space: nowrap;
}

.lang-btn:hover {
  color: var(--brand-pink-hover);
  transform: scale(1.1);
}

.lang-btn.active {
  background: var(--brand-pink);
  color: var(--white);
  box-shadow: 0 3px 8px var(--brand-pink-glow);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 160px 0 80px 0;
  position: relative;
  background: radial-gradient(circle at 80% 20%, #FFF0F5 0%, #FFE5EE 100%);
  overflow: hidden;
}

.hero-bg-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--leopard-pattern);
  opacity: 0.04;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: stretch;
  gap: 28px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.hero-content {
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  min-width: 0;
  width: 100%;
  max-width: 680px;
  box-sizing: border-box;
}

.hero-glass-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 240, 246, 0.76) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 2px solid rgba(255, 105, 180, 0.38);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 18px 42px rgba(255, 105, 180, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 3.35rem;
  color: var(--brand-pink);
  line-height: 1.15;
  text-shadow: 3px 3px 0 var(--white), 6px 6px 20px var(--brand-pink-glow);
  margin-bottom: 4px;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-title span {
  display: inline-block;
}

.emoji-bounce {
  animation: bounce 2s ease infinite;
}

.emoji-pulse {
  animation: pulseGlow 1.5s infinite alternate;
}

.custom-hero-mascot {
  width: 68px;
  height: 68px;
  object-fit: contain;
  vertical-align: middle;
}

.hero-mascot-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  margin-bottom: 18px;
}

.hero-intro-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.hero-intro-text {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-subtitle {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--dark-magenta);
  margin-bottom: 12px;
  line-height: 1.38;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  max-width: 540px;
  box-sizing: border-box;
}

.hero-tagline {
  font-size: 1.12rem;
  color: var(--dark-text);
  margin-bottom: 0;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  max-width: 540px;
  box-sizing: border-box;
}

.hero-emblem-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0%, rgba(255, 228, 238, 0.88) 100%);
  border: 2.5px solid rgba(255, 105, 180, 0.45);
  border-radius: 24px;
  padding: 10px;
  box-shadow: 0 10px 26px rgba(255, 20, 147, 0.18), inset 0 0 12px rgba(255, 255, 255, 0.9);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-emblem-wrap:hover {
  transform: translateY(-4px) rotate(2deg) scale(1.03);
  box-shadow: 0 14px 32px rgba(255, 20, 147, 0.28);
}

.hero-tribute-logo {
  width: 142px;
  height: 142px;
  object-fit: contain;
  border-radius: 18px;
  display: block;
}

.hero-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0;
}

.hero-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(255, 105, 180, 0.48);
  color: #c2185b;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.12);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.hero-quick-pill:hover {
  background: linear-gradient(135deg, #ff69b4, #ff1493);
  color: #ffffff;
  border-color: #ff1493;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(255, 20, 147, 0.28);
}

.hero-disclaimer {
  font-size: 0.8rem;
  color: var(--dark-magenta);
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid rgba(255, 105, 180, 0.32);
  border-radius: 14px;
  padding: 10px 16px;
  margin-bottom: 4px;
  width: 100%;
  max-width: 100%;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}

/* Video Wrapper with Leopard print border */
.video-outer-container {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Hero Featured Video Slider: adaptive tight frame (no side empty space for 9:16 or 1:1) */
.hero-video-outer {
  width: 100%;
  max-width: 440px;
  min-width: 320px;
  flex-shrink: 0;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  transition: max-width 0.3s ease;
  box-sizing: border-box;
}

.hero-video-outer.is-vertical-video {
  width: 100%;
  max-width: 440px;
  min-width: 320px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.hero-video-outer.is-square-video {
  max-width: 470px;
}

.leopard-border-wrapper {
  background-image: var(--leopard-pattern);
  background-size: 120px 120px;
  padding: 16px;
  border-radius: 28px;
  border: 4px solid var(--white);
  box-shadow: 0 15px 35px var(--brand-pink-glow);
  transition: var(--transition-smooth);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.hero-video-outer .leopard-border-wrapper {
  padding: 10px;
  border-radius: 24px;
  background-size: 100px 100px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.leopard-border-wrapper:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 45px rgba(255, 105, 180, 0.6);
}

.video-inner-container {
  position: relative;
  width: 100%;
  height: 100%;
  flex-grow: 1;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid var(--white);
  background: #000;
}

.hero-video-outer .video-inner-container {
  position: relative;
  width: 100%;
  height: 100% !important;
  padding-bottom: 0 !important;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  border: 2.5px solid var(--white);
  background: #000;
  line-height: 0;
}

.hero-video-outer #main-hero-video {
  position: relative !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: 520px;
  border-radius: 13px;
  object-fit: contain;
  background: #000;
  margin: 0 auto;
}

.video-inner-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-caption {
  margin-top: 15px;
  text-align: center;
  background: var(--glass-bg);
  border: 2px solid var(--brand-pink);
  padding: 10px 15px;
  border-radius: 15px;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.video-caption .label {
  font-weight: 700;
  color: var(--brand-pink-hover);
}

/* Hero Caption Bar with integrated [ < ] Song Title [ > ] navigation buttons */
.hero-caption-bar {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--brand-pink);
  box-shadow: 0 4px 12px rgba(255, 105, 180, 0.15);
  width: 100%;
}

.hero-caption-text {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.hero-caption-text p {
  margin: 0;
}

.hero-caption-nav-btn {
  position: static !important;
  transform: none !important;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: #fff0f6;
  border: 2px solid var(--brand-pink);
  color: #FF1493;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 6px rgba(255, 105, 180, 0.2);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.hero-caption-nav-btn:hover {
  background: var(--brand-pink);
  color: var(--white);
  transform: scale(1.08) !important;
  box-shadow: 0 4px 10px rgba(255, 105, 180, 0.35);
}

.hero-caption-nav-btn:active {
  transform: scale(0.95) !important;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.6rem;
  color: var(--brand-pink);
  text-align: center;
  margin-bottom: 48px;
  text-shadow: 2px 2px 0 var(--white);
}

/* ==========================================================================
   Mascot Section
   ========================================================================== */
.mascot-section {
  padding: 80px 0;
  background-color: var(--light-pink);
}

.mascot-section .container {
  max-width: 1400px;
}

.mascot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
  max-width: 1400px;
  margin: 0 auto;
}

.mascot-img-container {
  display: flex;
  justify-content: center;
  position: relative;
}

.mascot-frame {
  position: relative;
  background: var(--white);
  border: 6px solid var(--brand-pink);
  border-radius: 36px;
  padding: 20px;
  box-shadow: 0 15px 35px var(--brand-pink-glow);
  max-width: 320px;
  width: 100%;
  margin: 20px 0;
}

.combined-hotpick-card {
  padding: 56px 48px;
  justify-content: space-between;
}

.hotpick-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hotpick-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.mascot-image {
  width: 100%;
  border-radius: 20px;
  display: block;
}

.mascot-shadow {
  content: '';
  position: absolute;
  bottom: -25px;
  left: 10%;
  width: 80%;
  height: 15px;
  background: rgba(0,0,0,0.08);
  border-radius: 50%;
  filter: blur(4px);
  animation: shadowPulse 4s ease-in-out infinite;
}

.mascot-info-card {
  display: flex;
  flex-direction: column;
}

.mascot-section-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  color: var(--brand-pink-hover);
  margin-bottom: 16px;
}

.mascot-desc {
  font-size: 1.15rem;
  margin-bottom: 24px;
  color: var(--dark-text);
}

.mascot-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.mascot-stat-item {
  display: flex;
  background: var(--white);
  border-radius: 15px;
  padding: 12px 20px;
  border-left: 6px solid var(--brand-pink);
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.detail-label {
  font-weight: 700;
  color: var(--dark-magenta);
  width: 160px;
  flex-shrink: 0;
}

.detail-val {
  color: var(--dark-text);
}

.mascot-bubble {
  position: relative;
  background: var(--brand-pink);
  color: var(--white);
  border-radius: 20px;
  padding: 16px 24px;
  font-family: var(--font-title);
  font-size: 1.25rem;
  margin-top: 15px;
  align-self: flex-start;
  box-shadow: 0 6px 15px rgba(255,105,180,0.25);
  animation: float 4s ease-in-out infinite 0.5s;
}

.mascot-bubble::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -15px;
  transform: translateY(-50%);
  border-width: 10px 15px 10px 0;
  border-style: solid;
  border-color: transparent var(--brand-pink) transparent transparent;
  display: block;
  width: 0;
}

.text-white {
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.15) !important;
}



.action-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 36px 28px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 24px rgba(255, 105, 180, 0.12);
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-pink-hover), var(--yellow-accent));
  border-radius: 24px 24px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.action-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 105, 180, 0.3);
  border-color: var(--brand-pink);
}

.action-card:hover::before {
  opacity: 1;
}

.action-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pastel-pink-bg), #ffd6e8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 3px solid var(--brand-pink);
  box-shadow: 0 6px 16px rgba(255, 105, 180, 0.25);
  transition: var(--transition-smooth);
}

.action-card:hover .action-card-icon {
  transform: scale(1.12) rotate(5deg);
  box-shadow: 0 8px 24px rgba(255, 105, 180, 0.4);
  background: linear-gradient(135deg, #ffd6e8, var(--brand-pink));
}

.action-card-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--dark-magenta);
  letter-spacing: 0.02em;
}

.action-card-desc {
  font-size: 0.92rem;
  color: var(--dark-text);
  line-height: 1.55;
  flex-grow: 1;
}

.action-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-pink-hover));
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(255, 105, 180, 0.35);
  margin-top: auto;
}

.action-card-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(255, 20, 147, 0.5);
  background: linear-gradient(135deg, var(--brand-pink-hover), var(--dark-magenta));
}

.action-card-btn i {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.action-card-btn:hover i {
  transform: translateX(3px);
}

.action-card-email {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-pink-hover);
  background: var(--pastel-pink-bg);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px dashed var(--brand-pink);
  letter-spacing: 0.02em;
  user-select: all;
  cursor: text;
  transition: var(--transition-smooth);
}

.action-card-email:hover {
  background: var(--brand-pink);
  color: var(--white);
  border-style: solid;
}

/* ==========================================================================
   Discussion Board (Disqus) Section
   ========================================================================== */
.discussion-section {
  padding: 70px 0 80px;
  background: var(--light-pink);
}

.discussion-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--dark-text);
  margin-bottom: 36px;
  opacity: 0.85;
}

#disqus_thread {
  background: var(--glass-bg);
  border: 2px solid rgba(255, 105, 180, 0.2);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 8px 28px rgba(255, 105, 180, 0.08);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
  background-color: var(--dark-text);
  color: var(--white);
  padding: 40px 0;
  border-top: 4px solid var(--brand-pink);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--brand-pink);
  margin-bottom: 12px;
}

.footer-mascot-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--brand-pink);
  background: var(--white);
}

.footer-desc {
  font-size: 0.9rem;
  opacity: 0.7;
  max-width: 400px;
}

.footer-right {
  text-align: right;
}

.copyright {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.disclaimer {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.fade-in-section {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   CSS Keyframes
   ========================================================================== */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes floating-animation {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

.floating-animation {
  animation: floating-animation 4s ease-in-out infinite;
}

@keyframes shadowPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(0.85);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    text-shadow: 0 0 10px var(--brand-pink-glow);
  }
  100% {
    transform: scale(1.08);
    text-shadow: 0 0 20px var(--brand-pink-glow-strong), 0 0 30px var(--brand-pink);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px) rotate(-5deg);
  }
  60% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.bouncy:hover {
  animation: buttonWobble 0.6s ease-in-out infinite alternate;
}

@keyframes buttonWobble {
  0% {
    transform: scale(1.05) rotate(-2deg) translateY(-4px);
  }
  100% {
    transform: scale(1.05) rotate(2deg) translateY(-6px);
  }
}

@keyframes sparkleFloat {
  0% {
    transform: translate(0, 0) scale(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translate(0, 0) scale(1.2) rotate(15deg);
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0) rotate(180deg);
    opacity: 0;
  }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */


/* ==========================================================================
   Japanese Language (lang="ja") Typographic & Ratio Normalization
   Prevents unspaced CJK from expanding min-content width; locks 1.38:0.85 ratio
   ========================================================================== */
html[lang="ja"] .hero-title,
html[lang="ja"] .hero-subtitle,
html[lang="ja"] .hero-tagline,
html[lang="ja"] .hero-disclaimer,
html[lang="ja"] .hero-content p,
html[lang="ja"] .hero-content span,
html[data-lang="ja"] .hero-title,
html[data-lang="ja"] .hero-subtitle,
html[data-lang="ja"] .hero-tagline,
html[data-lang="ja"] .hero-disclaimer,
html[data-lang="ja"] .hero-content p,
html[data-lang="ja"] .hero-content span,
body[data-lang="ja"] .hero-title,
body[data-lang="ja"] .hero-subtitle,
body[data-lang="ja"] .hero-tagline,
body[data-lang="ja"] .hero-disclaimer,
body[data-lang="ja"] .hero-content p,
body[data-lang="ja"] .hero-content span,
:lang(ja) .hero-title,
:lang(ja) .hero-subtitle,
:lang(ja) .hero-tagline,
:lang(ja) .hero-disclaimer,
:lang(ja) .hero-content p,
:lang(ja) .hero-content span {
  word-break: break-word !important;
  line-break: strict !important;
  overflow-wrap: break-word !important;
}

/* Desktop & Tablet: Lock 1.15 : 0.85 2-column ratio on PC & Tablet (min-width: 769px) */
@media (min-width: 769px) {
  .hero-container,
  html[lang="ja"] .hero-container,
  html[data-lang="ja"] .hero-container,
  body[data-lang="ja"] .hero-container,
  :lang(ja) .hero-container {
    display: grid !important;
    grid-template-columns: 1.15fr 0.85fr !important;
    align-items: stretch !important;
    gap: 28px !important;
  }

  .hero-content,
  html[lang="ja"] .hero-content,
  html[data-lang="ja"] .hero-content,
  body[data-lang="ja"] .hero-content,
  :lang(ja) .hero-content {
    min-width: 0 !important;
    max-width: 680px !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 32px !important;
    box-sizing: border-box !important;
  }

  .hero-video-outer,
  html[lang="ja"] .hero-video-outer,
  html[data-lang="ja"] .hero-video-outer,
  body[data-lang="ja"] .hero-video-outer,
  :lang(ja) .hero-video-outer {
    min-width: 320px !important;
    max-width: 440px !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
}

/* Tablet & Smaller Screens */
@media (max-width: 992px) {
  .mascot-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .mascot-img-container {
    order: -1;
  }
  
  .mascot-bubble {
    align-self: center;
  }
  
  .mascot-bubble::after {
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    border-width: 10px 15px 10px 0;
  }



  
  .bg-ornament.bow-1, .bg-ornament.bow-2, .bg-ornament.tiger-1 {
    display: none; /* Hide background clutter on mobile */
  }
}

/* Mobile Screens */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  .navbar {
    width: 100% !important;
    max-width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    padding: 8px 0;
  }
  
  .nav-container {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 14px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .container,
  .footer-container {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    overflow-x: hidden !important;
  }

  /* Universal Mobile Vertical Stack for ALL languages (KO, EN, JA, ES, FR) */
  .hero-container,
  html[lang="ja"] .hero-container,
  html[data-lang="ja"] .hero-container,
  body[data-lang="ja"] .hero-container,
  :lang(ja) .hero-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    grid-template-columns: none !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 auto !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .hero-content,
  html[lang="ja"] .hero-content,
  html[data-lang="ja"] .hero-content,
  body[data-lang="ja"] .hero-content,
  :lang(ja) .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .hero-intro-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero-intro-text {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  .hero-emblem-wrap {
    width: auto !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .hero-tribute-logo {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  .hero-section {
    width: 100% !important;
    max-width: 100vw !important;
    padding: 110px 0 60px 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  
  .nav-menu {
    display: none; /* Keep simple mobile nav / hide text menus */
  }

  .nav-controls {
    gap: 6px;
  }
  
  .lang-btn {
    padding: 4px 6px;
    font-size: 0.7rem;
  }
  
  .btn-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
  
  .hero-glass-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 14px !important;
    border-radius: 20px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    gap: 14px;
  }

  .hero-title {
    font-size: clamp(1.45rem, 5vw, 2.1rem) !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    line-break: strict !important;
    max-width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .custom-hero-mascot {
    height: 52px !important;
    max-width: 100% !important;
    vertical-align: middle !important;
    margin-left: 6px !important;
  }
  
  .hero-subtitle {
    font-size: 1.15rem !important;
    margin-bottom: 8px !important;
    max-width: 100% !important;
    text-align: center !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    line-break: strict !important;
  }

  .hero-tagline {
    font-size: 0.92rem !important;
    max-width: 100% !important;
    text-align: center !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    line-break: strict !important;
  }

  .hero-disclaimer {
    font-size: 0.76rem !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    max-width: 100% !important;
    text-align: center !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    line-break: strict !important;
    box-sizing: border-box !important;
  }

  html[lang="ja"] .hero-title,
  html[lang="ja"] .hero-subtitle,
  html[lang="ja"] .hero-tagline,
  html[lang="ja"] .hero-disclaimer,
  html[data-lang="ja"] .hero-title,
  html[data-lang="ja"] .hero-subtitle,
  html[data-lang="ja"] .hero-tagline,
  html[data-lang="ja"] .hero-disclaimer {
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    line-break: strict !important;
  }

  .hero-emblem-wrap {
    padding: 6px;
    border-radius: 16px;
  }

  .hero-tribute-logo {
    width: 78px;
    height: 78px;
    border-radius: 12px;
  }

  .hero-quick-pills {
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .hero-quick-pill {
    padding: 6px 12px;
    font-size: 0.76rem !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .section-title {
    font-size: 2.1rem;
  }
  
  .mascot-frame {
    max-width: 250px;
  }
  
  .mascot-section-title {
    font-size: 2.1rem;
  }
  
  .detail-label {
    width: 120px;
  }
  
  .action-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .action-card {
    padding: 28px 20px 24px;
  }

  #disqus_thread {
    padding: 20px;
    border-radius: 18px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .footer-right {
    text-align: center;
  }

  .carousel-letter-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    scroll-snap-align: center !important;
  }

  .video-outer-container,
  .leopard-border-wrapper {
    height: auto !important;
  }

  .video-inner-container:not(.hero-video-outer .video-inner-container) {
    height: 0 !important;
    padding-bottom: 56.25% !important; /* Force 16:9 space for non-hero iframe containers */
  }

  .hero-video-outer,
  .hero-video-outer.is-vertical-video,
  .hero-video-outer.is-square-video,
  html[lang="ja"] .hero-video-outer,
  html[data-lang="ja"] .hero-video-outer,
  body[data-lang="ja"] .hero-video-outer,
  :lang(ja) .hero-video-outer {
    max-width: min(360px, 92vw) !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex: none !important;
  }

  .hero-video-outer .leopard-border-wrapper {
    padding: 6px;
    border-radius: 20px;
    border-width: 3px;
  }

  .hero-video-outer .video-inner-container {
    height: auto !important;
    padding-bottom: 0 !important;
    border-radius: 14px;
    border-width: 2px;
  }

  .hero-video-outer #main-hero-video {
    max-height: none;
    border-radius: 12px;
  }

  .hero-caption-bar {
    margin-top: 10px;
    padding: 7px 8px;
    gap: 6px;
    border-radius: 14px;
  }

  .hero-caption-text {
    font-size: 0.78rem;
    line-height: 1.32;
  }

  .hero-caption-nav-btn {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    font-size: 0.74rem;
    border-width: 1.5px;
  }

  #map-modal-submit, #map-modal-cancel {
    font-size: 14px !important;
    padding: 8px 12px !important;
    white-space: nowrap !important;
  }
}

/* Extra Small Screens (Smartphones) */
@media (max-width: 480px) {
  .logo-text {
    display: none;
  }
  .nav-mascot-img {
    margin-right: 0;
    width: 38px;
    height: 38px;
  }
  .lang-switcher {
    padding: 2px;
  }
  .lang-btn {
    padding: 4px 7px;
    font-size: 0.65rem;
  }
  .nav-controls {
    gap: 6px;
  }
  .btn-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   Hero Image Carousel
   ========================================================================== */
.fandom-gallery-video {
  height: 100%;
}
@media (max-width: 767px) {
  .fandom-gallery-video {
    aspect-ratio: 1 / 1;
  }
}

.carousel-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  cursor: pointer;
  border-radius: 14px;
}

.carousel-slide img:hover {
  transform: scale(1.03);
  filter: brightness(1.08) drop-shadow(0 4px 20px rgba(255,105,180,0.4));
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--brand-pink);
  color: var(--brand-pink);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: var(--brand-pink);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(255, 105, 180, 0.4);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }


/* Extra Small Screens (Smartphones) */
@media (max-width: 480px) {
  .logo-text {
    display: none;
  }
  .nav-mascot-img {
    margin-right: 0;
    width: 38px;
    height: 38px;
  }
  .lang-switcher {
    padding: 2px;
  }
  .lang-btn {
    padding: 4px 7px;
    font-size: 0.65rem;
  }
  .nav-controls {
    gap: 6px;
  }
  .btn-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}



/* ==========================================================================
   Fan Letters Page Styles
   ========================================================================== */

/* Fan Letter Form */
#fan-letter-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.form-group label {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: var(--text-color);
  font-size: 1.1rem;
}

.form-group label i {
  color: var(--primary-pink);
  margin-right: 5px;
}

.form-group input,
.form-group textarea {
  font-family: 'Quicksand', sans-serif;
  padding: 15px;
  border: 2px solid var(--border-color);
  border-radius: 15px;
  font-size: 1rem;
  background-color: var(--card-bg);
  color: var(--text-color);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-pink);
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
  transform: translateY(-2px);
}

/* Fan Letters Grid */
.fan-letters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Fan Letter Card (Postcard / Paw Print Theme) */
.fan-letter-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 25px;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 15px;
  overflow: hidden;
}

.fan-letter-card:hover {
  transform: translateY(-10px) rotate(-1deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-pink);
}

.fan-letter-card .paw-accent {
  position: absolute;
  top: -15px;
  right: -15px;
  font-size: 4rem;
  color: var(--primary-pink);
  opacity: 0.1;
  transform: rotate(20deg);
  pointer-events: none;
}

.letter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed var(--primary-pink);
  padding-bottom: 10px;
}

.sender-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--brand-pink);
}

.sender-country {
  font-size: 0.9rem;
  color: var(--text-light);
  background: rgba(255, 105, 180, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
}

.letter-body {
  flex-grow: 1;
}

.letter-body p {
  font-family: 'Quicksand', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  font-size: 1.05rem;
  margin: 0;
  white-space: pre-wrap;
}

.letter-footer {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 10px;
}

/* ==========================================================================
   Home Page Recent Letters Carousel
   ========================================================================== */
.horizontal-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 10px 40px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.horizontal-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 105, 180, 0.1);
  border-radius: 4px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
  background: var(--primary-pink);
  border-radius: 4px;
}

.carousel-letter-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

/* ==========================================================================
   Responsive Navigation
   ========================================================================== */
.hamburger-menu {
  display: none;
  font-size: 1.5rem;
  color: var(--brand-pink);
  cursor: pointer;
  margin-left: 15px;
  transition: var(--transition-smooth);
}

.hamburger-menu:hover {
  color: var(--brand-pink-hover);
  transform: scale(1.1);
}

@media (max-width: 900px) {
  .hamburger-menu {
    display: block !important;
  }

  .nav-menu {
    display: none !important; /* Hide by default on mobile instead of just opacity */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 15px;
    border-bottom: 3px solid var(--brand-pink);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.2);
    z-index: 1000;
  }

  .nav-menu.active {
    display: flex !important; /* Show when active */
    animation: slideDown 0.3s ease forwards;
  }

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

/* Mascot Hint Text Styling */
.mascot-hint-text {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-pink-hover);
  background-color: var(--light-pink);
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px dashed var(--brand-pink);
  margin: 0 auto 15px auto;
  width: fit-content;
  max-width: 90%;
  box-shadow: 0 4px 10px rgba(255, 105, 180, 0.2);
  animation: gentleBounce 2s infinite;
  position: relative;
  z-index: 20;
}

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Prevent long word overflow for translations (e.g. Spanish) */
h1, h2, h3, h4, p, span, .btn, .mascot-hint-text, .mascot-bubble, .card-content, .detail-val {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* ==========================================================================
   Schedule Timeline Section
   ========================================================================== */
.schedule-section {
  padding: 80px 0;
  background-color: var(--white);
  position: relative;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Vertical Line */
.timeline-container::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: rgba(255, 105, 180, 0.3); /* Light pink line */
  top: 0;
  bottom: 0;
  left: 20px; /* Left aligned for mobile ease */
  margin-left: -2px;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  background-color: inherit;
  width: 100%;
  padding-left: 60px; /* Space for the line and dot */
  margin-bottom: 30px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Dots (🐾/🎀) */
.timeline-dot {
  position: absolute;
  width: 40px;
  height: 40px;
  left: 0;
  background-color: var(--white);
  border: 3px solid var(--brand-pink);
  border-radius: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(255, 105, 180, 0.2);
}

.timeline-content {
  padding: 20px 25px;
  background-color: var(--white);
  position: relative;
  border-radius: 16px;
  border: 3px solid var(--brand-pink);
  box-shadow: 0 5px 15px rgba(255, 105, 180, 0.1);
  transition: var(--transition-smooth);
  overflow: hidden;
  z-index: 1;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--leopard-pattern);
  background-size: 100px 100px;
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 105, 180, 0.25);
  border-color: var(--brand-pink-hover);
}

.timeline-date {
  font-family: var(--font-title);
  color: var(--brand-pink);
  font-size: 1.1rem;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.timeline-title {
  font-family: var(--font-title);
  color: var(--dark-magenta);
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.timeline-location {
  font-weight: 600;
  color: var(--dark-text);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.timeline-location::before {
  content: '📍';
}

@media (min-width: 768px) {
  /* Central line for desktop */
  .timeline-container::after {
    left: 50%;
  }

  .timeline-item {
    width: 50%;
    padding-left: 0;
    padding-right: 40px;
  }

  .timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
    padding-right: 0;
  }

  .timeline-dot {
    left: 100%;
    margin-left: -20px;
  }

  .timeline-item:nth-child(even) .timeline-dot {
    left: 0;
    margin-left: -20px;
  }

  .timeline-content {
    text-align: right;
  }

  .timeline-item:nth-child(even) .timeline-content {
    text-align: left;
  }
}

/* ==========================================================================
   Goods Store Section (Compact 2-Row x 5-Col Mini Card Grid)
   ========================================================================== */
.goods-store-section {
  padding: 24px 0;
  background: var(--light-pink);
}

.goods-store-section .masaya-goods-store {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border-radius: 18px;
  padding: 18px 16px 14px;
  box-shadow: 0 8px 20px rgba(255, 105, 180, 0.14);
}

.goods-store-section .section-title {
  color: #DE3163;
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  margin-bottom: 4px;
}

.goods-store-section .section-subtitle {
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-text);
}

.goods-mini-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  gap: 8px;
  width: 100%;
}

.goods-disclaimer {
  font-size: 10.5px;
  color: #999999;
  text-align: center;
  margin-top: 10px;
  line-height: 1.35;
  padding: 0 8px;
}

.goods-card {
  background: #fffcfd;
  border-radius: 12px;
  border: 1.5px solid #ffd6e8;
  box-shadow: 0 2px 6px rgba(255, 105, 180, 0.08);
  padding: 6px 6px 7px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}

.goods-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(255, 105, 180, 0.2);
  border-color: var(--brand-pink);
}

.goods-card img {
  width: 100%;
  height: 88px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background-color: var(--white);
  border-radius: 8px;
  border-bottom: 1px solid var(--light-pink);
}

.goods-title {
  font-family: var(--font-title);
  color: var(--dark-text);
  font-size: 0.72rem;
  line-height: 1.2;
  margin: 5px 2px 5px;
  text-align: center;
  min-height: 26px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}

.download-btn {
  background-color: var(--brand-pink);
  color: var(--white);
  font-size: 0.68rem;
  padding: 4px 11px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 0;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  line-height: 1.2;
  white-space: nowrap;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--leopard-pattern);
  background-size: 60px 60px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.25s ease;
}

.download-btn:hover {
  background-color: #DE3163;
  transform: scale(1.04);
  box-shadow: 0 3px 10px rgba(222, 49, 99, 0.35);
}

.download-btn:hover::before {
  opacity: 0.15;
}

/* Mobile & Tablet optimization: keep compact 2-row structure with smooth horizontal swipe */
@media (max-width: 768px) {
  .goods-store-section {
    padding: 16px 0;
  }
  .goods-store-section .masaya-goods-store {
    padding: 14px 10px 12px;
    border-radius: 14px;
  }
  .goods-store-section .section-subtitle {
    margin-bottom: 8px;
    font-size: 0.78rem;
  }
  .goods-mini-grid {
    display: grid;
    grid-template-columns: repeat(5, 106px);
    grid-template-rows: repeat(2, auto);
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 2px 2px 6px;
    scrollbar-width: thin;
    scrollbar-color: #ffb6d5 #fff0f6;
  }
  .goods-mini-grid::-webkit-scrollbar {
    height: 5px;
  }
  .goods-mini-grid::-webkit-scrollbar-track {
    background: #fff0f6;
    border-radius: 999px;
  }
  .goods-mini-grid::-webkit-scrollbar-thumb {
    background: #ff8ac4;
    border-radius: 999px;
  }
  .goods-card {
    scroll-snap-align: start;
    padding: 5px 5px 6px;
    border-radius: 10px;
  }
  .goods-card img {
    height: 68px;
  }
  .goods-title {
    font-size: 0.65rem;
    min-height: 24px;
    margin: 4px 1px 4px;
  }
  .download-btn {
    font-size: 0.62rem;
    padding: 3px 9px;
  }
  .goods-disclaimer {
    font-size: 9.5px;
    margin-top: 6px;
  }
}

/* ===== Schedule Calendar Styles ===== */
.schedule-calendars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cal-month-container {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 105, 180, 0.25);
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.1);
}

.cal-month-title {
  background: linear-gradient(135deg, #FF69B4, #FF1493);
  color: white;
  text-align: center;
  padding: 14px 10px;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 1px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 182, 193, 0.25);
  padding: 1px;
}

.cal-day-hdr {
  background: linear-gradient(180deg, #FFD1DC, #FFC0CB);
  color: #8B0A50;
  text-align: center;
  padding: 8px 2px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cal-day-hdr.cal-sun {
  color: #DC143C;
}

.cal-day-hdr.cal-sat {
  color: #4169E1;
}

.cal-cell {
  background: #fff;
  min-height: 85px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease;
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.cal-cell:hover {
  background: #FFF0F5;
}

.cal-cell.cal-empty {
  background: #FFF8FA;
  min-height: 85px;
}

.cal-cell.has-event {
  background: linear-gradient(180deg, #FFF0F5, #FFE8EF);
}

.cal-cell.has-event:hover {
  background: linear-gradient(180deg, #FFE4EC, #FFD6E0);
}

.cal-num {
  font-weight: 700;
  font-size: 0.82rem;
  color: #444;
  margin-bottom: 2px;
  line-height: 1;
}

.cal-cell.cal-sun .cal-num {
  color: #DC143C;
}

.cal-cell.cal-sat .cal-num {
  color: #4169E1;
}

.cal-event {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.1), rgba(255, 105, 180, 0.18));
  border-left: 2.5px solid #FF1493;
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 0.55rem;
  line-height: 1.35;
  color: #8B0A50;
  font-weight: 600;
  margin-top: 2px;
  cursor: pointer;
  display: block;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-event.cal-event-second {
  border-left-color: #FF69B4;
  background: linear-gradient(135deg, rgba(255, 105, 180, 0.08), rgba(255, 182, 193, 0.18));
  margin-top: 3px;
}

/* Schedule Bottom Month Navigation Bar */
.schedule-nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 20px auto 14px;
}

.schedule-nav-btn {
  background: linear-gradient(135deg, #ff4081, #ff1493);
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(255, 20, 147, 0.35);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.schedule-nav-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 6px 16px rgba(255, 20, 147, 0.5);
  background: linear-gradient(135deg, #ff1493, #e00070);
}

.schedule-nav-btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.95);
}

.schedule-nav-btn:disabled,
.schedule-nav-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none;
  filter: grayscale(40%);
}

.schedule-nav-month-pill {
  background: #ffffff;
  color: #8B0A50;
  border: 2.5px solid #FF69B4;
  border-radius: 25px;
  padding: 8px 22px;
  font-family: var(--font-title);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(255, 105, 180, 0.2);
  min-width: 185px;
  text-align: center;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* Schedule calendar mobile responsive */
@media (max-width: 900px) {
  .schedule-calendars {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .schedule-section {
    padding: 50px 0 60px;
  }

  .schedule-section .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .schedule-section .leopard-border-wrapper {
    padding: 8px !important;
    border-radius: 20px !important;
  }

  .schedule-card-body {
    padding: 12px 6px !important;
    border-radius: 14px !important;
  }

  .cal-month-container {
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(255, 105, 180, 0.12);
  }

  .cal-cell {
    min-height: 68px;
    padding: 3px 2px;
  }

  .cal-cell.cal-empty {
    min-height: 68px;
  }

  .cal-day-hdr {
    font-size: 0.68rem;
    padding: 6px 1px;
  }

  .cal-num {
    font-size: 0.76rem;
  }

  .cal-event {
    font-size: 0.52rem;
    padding: 2px 3px;
  }
}

@media (max-width: 480px) {
  .schedule-section {
    padding: 40px 0 50px;
  }

  .schedule-section .container {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .schedule-section .leopard-border-wrapper {
    padding: 6px !important;
    border-radius: 16px !important;
    border-width: 2.5px !important;
  }

  .schedule-card-body {
    padding: 10px 4px !important;
    border-radius: 12px !important;
    border-width: 2px !important;
  }

  .cal-month-container {
    border-radius: 10px;
  }

  .cal-cell {
    min-height: 58px;
    padding: 2px 1px;
  }

  .cal-cell.cal-empty {
    min-height: 58px;
  }

  .cal-event {
    font-size: 0.48rem;
    padding: 1px 2px;
    border-left-width: 2px;
  }

  .cal-num {
    font-size: 0.7rem;
    margin-bottom: 1px;
  }

  .cal-day-hdr {
    font-size: 0.58rem;
    padding: 5px 1px;
  }

  .cal-month-title {
    font-size: 0.95rem;
    padding: 9px 6px;
  }

  .schedule-nav-bar {
    gap: 12px;
    margin: 14px auto 10px;
  }

  .schedule-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .schedule-nav-month-pill {
    font-size: 0.92rem;
    padding: 6px 16px;
    min-width: 155px;
  }

  .schedule-disclaimer {
    font-size: 0.8rem !important;
    padding: 10px 12px !important;
    margin-top: 14px !important;
  }
}

/* Calendar Event Modal */
.cal-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(5px);
}
.cal-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.cal-modal-content {
  background-image: var(--leopard-pattern);
  background-color: #fff0f6;
  padding: 20px;
  border-radius: 20px;
  max-width: 400px;
  width: 90%;
  border: 4px solid var(--brand-pink);
  box-shadow: 0 10px 30px rgba(255, 105, 180, 0.4);
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cal-modal-overlay.active .cal-modal-content {
  transform: scale(1);
}
.cal-modal-inner {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(255, 105, 180, 0.2);
}
.cal-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FF1493;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.cal-modal-close:hover {
  transform: rotate(90deg) scale(1.1);
  background: #C71585;
}
.cal-modal-date {
  font-weight: bold;
  color: #FF1493;
  margin-bottom: 15px;
  font-size: 1.2rem;
  border-bottom: 2px dashed #FFB6C1;
  padding-bottom: 10px;
}
.cal-modal-text {
  color: #444;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
}

/* Fix for mobile visibility of image_22cd01.jpg */
@media (max-width: 768px) {
    img[src*='image_22cd01.jpg'],
    .image_22cd01-container {
        display: block !important;
        max-width: 100%;
        height: auto;
    }
}

/* DAM Marquee Banner */
.dam-marquee-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 0;
  z-index: 10000;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.5);
  display: none;
  border-bottom: 2px solid #ff1493;
}
.dam-marquee-banner.show {
  display: block;
}
.marquee-content {
  white-space: nowrap;
  animation: marquee-scroll 10s linear infinite;
  font-size: 1.5rem;
  font-weight: bold;
}
@keyframes marquee-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.glow-text {
  background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 105, 180, 0.6);
}

/* Rainbow Ripple */
.lang-btn {
  position: relative;
  overflow: hidden;
}
.rainbow-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,105,180,0.5) 40%, rgba(0,255,255,0.5) 60%, rgba(255,255,0,0.5) 80%, rgba(255,0,255,0) 100%);
  pointer-events: none;
}
@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
.goods-card .goods-edition { margin: -4px 0 12px; font-size: 0.9rem; font-weight: 600; color: var(--primary-pink); letter-spacing: 0.03em; }

/* ==========================================================================
   🗺️ 2D 아와지섬 월드맵 투어 (Awaji Island World Map Tour) - Mascot Section Right
   ========================================================================== */
.mascot-game-card.awaji-tour-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 520px;
  height: auto;
  background: #1FA2C4;
  border: 4px solid var(--vm-pink, #ff5c9e);
  border-radius: 34px;
  box-shadow: 0 14px 36px rgba(31, 162, 196, 0.28), 0 0 22px rgba(255, 92, 158, 0.15);
  overflow: hidden;
  isolation: isolate;
  font-family: 'Fredoka', 'Quicksand', 'Noto Sans KR', sans-serif;
  box-sizing: border-box;
}

/* 얇은 골드 이너 라인 (매거진 카드와의 일체감) */
.mascot-game-card.awaji-tour-card::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 28px;
  pointer-events: none;
  z-index: 100;
}

/* --------------------------------------------------------------------------
   1. 인트로 화면 (오버레이)
   -------------------------------------------------------------------------- */
.awaji-intro-screen {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.awaji-intro-screen.is-dismissed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.awaji-intro-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(15, 35, 60, 0.45) 0%, rgba(8, 20, 36, 0.88) 100%),
              url('assets/awaji-intro.png') center / cover no-repeat;
  filter: brightness(0.95);
}

.awaji-intro-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 420px;
  gap: 8px;
  margin: auto;
  padding: 8px 4px;
  box-sizing: border-box;
}

.awaji-intro-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  background: linear-gradient(90deg, #FF2E83, #FF80AB);
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 46, 131, 0.4);
  text-transform: uppercase;
}

.awaji-intro-title {
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  font-weight: 900;
  color: #FFFFFF;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.4);
  letter-spacing: -0.02em;
}

.awaji-intro-avatar-frame {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #FFD700, #FF5C9E, #FFFFFF);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.7), 0 6px 14px rgba(0, 0, 0, 0.35);
  animation: floatIntroAvatar 3s ease-in-out infinite;
}

.awaji-intro-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  display: block;
}

.avatar-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 215, 0, 0.75);
  animation: spinGlowRing 10s linear infinite;
  pointer-events: none;
}

.awaji-intro-dialogue {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 2px solid #FFD700;
  border-radius: 16px;
  padding: 10px 14px 8px;
  padding-top: 28px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.dialogue-speaker-tag {
  position: absolute;
  top: -14px;
  left: 16px;
  background: #FF2E83;
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.dialogue-body {
  margin: 0;
  font-size: clamp(0.76rem, 1.6vw, 0.85rem);
  line-height: 1.45;
  color: #1E293B;
  font-weight: 600;
  word-break: keep-all;
}

.dialogue-body strong {
  color: #E11D48;
}

/* 한눈에 잘 보이는 [▶ 탐험 시작] 버튼 */
.awaji-start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 250px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #FF2E83 0%, #FF60A8 50%, #FFB703 100%);
  color: #FFFFFF;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 900;
  border: 2.5px solid #FFFFFF;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 46, 131, 0.55), 0 0 14px rgba(255, 183, 3, 0.4);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  animation: pulseStartBtn 2s infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  margin-top: 2px;
}

.awaji-start-btn:hover,
.awaji-start-btn:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(255, 46, 131, 0.65), 0 0 20px rgba(255, 183, 3, 0.6);
}

.awaji-start-btn:active {
  transform: translateY(1px) scale(0.98);
}

.awaji-start-btn .btn-icon {
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   2. 메인 월드맵 상단 상태 바
   -------------------------------------------------------------------------- */
.awaji-tour-header {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  box-sizing: border-box !important;
  gap: 6px !important;
  padding: 8px 12px;
  background: linear-gradient(90deg, #17839E, #1FA2C4, #27B4D7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  z-index: 10;
  position: relative;
  flex-shrink: 0;
}

.awaji-tour-header * {
  box-sizing: border-box;
}

.tour-header-row {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  box-sizing: border-box !important;
}

/* 상단 헤더 내 모든 요소 텍스트 세로 깨짐(줄바꿈) 원천 금지 */
.tour-header-title,
.tour-title-text,
.tour-chapter-toggle,
.chapter-tab-btn,
.tour-spot-counter,
.tour-header-actions,
.tour-bgm-btn,
.tour-stop-game-btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.tour-header-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  min-width: 0;
}

.tour-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tour-spot-counter {
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
}

.tour-replay-intro-btn {
  background: #FF5C9E;
  border: 1.5px solid #FFFFFF;
  color: #FFFFFF;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tour-bgm-btn {
  background: rgba(255, 255, 255, 0.25);
  border: 1.5px solid #FFFFFF;
  color: #FFFFFF;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px !important;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tour-bgm-btn.is-muted {
  opacity: 0.65;
  background: rgba(0, 0, 0, 0.2);
  text-decoration: line-through;
}

.tour-replay-intro-btn:hover,
.tour-bgm-btn:hover {
  background: #FF2E83;
  transform: scale(1.05);
}

.tour-stop-game-btn {
  background: rgba(254, 226, 226, 0.95);
  border: 1.5px solid #F43F5E;
  color: #BE123C;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px !important;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tour-stop-game-btn:hover {
  background: #E11D48;
  color: #FFFFFF;
  border-color: #E11D48;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.4);
}

/* 챕터 전환 토글 버튼 */
.tour-chapter-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  gap: 3px;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.chapter-tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px !important;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  white-space: nowrap !important;
  word-break: keep-all !important;
  flex-shrink: 0 !important;
}

.chapter-tab-btn.active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.chapter-tab-btn.is-locked {
  opacity: 0.6;
  cursor: pointer;
}

.chapter-tab-btn.can-unlock {
  animation: glowChapterTab 1.5s infinite alternate;
}

@keyframes glowChapterTab {
  from { box-shadow: 0 0 4px #FFD700; }
  to { box-shadow: 0 0 14px #FF2E83, 0 0 8px #FFD700; }
}

/* ==========================================================================
   스마트폰(@media (max-width: 768px)) 전용 컴팩트 초슬림 2줄 헤더 레이아웃
   ========================================================================== */
@media (max-width: 768px) {
  .awaji-tour-header {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 8px 10px !important;
    gap: 6px !important;
  }

  .tour-header-row {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
  }

  /* 1번째 줄: 좌측 타이틀, 우측 [🌊 파도 ON] + [⏹️ 중지] */
  .tour-header-title {
    font-size: 11px !important;
    gap: 4px !important;
    min-width: 0;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .tour-header-actions {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .tour-bgm-btn {
    font-size: 11px !important;
    padding: 4px 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .tour-stop-game-btn {
    font-size: 11px !important;
    padding: 4px 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  /* 2번째 줄: 좌측 [🏝️ 아와지 | 🏙️ 오사카], 우측 [📍 1/8 | 💎 0 PTS] */
  .tour-chapter-toggle {
    display: inline-flex !important;
    align-items: center !important;
    padding: 2px !important;
    gap: 2px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .chapter-tab-btn {
    font-size: 11px !important;
    padding: 3.5px 7px !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    flex-shrink: 0 !important;
  }

  .tour-spot-counter {
    font-size: 11px !important;
    padding: 4px 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
}

@media (max-width: 380px) {
  .awaji-tour-header {
    padding: 6px 8px !important;
    gap: 5px !important;
  }

  .tour-header-title {
    font-size: 10px !important;
  }

  .tour-bgm-btn,
  .tour-stop-game-btn,
  .tour-spot-counter {
    font-size: 10px !important;
    padding: 3px 5px !important;
  }

  .chapter-tab-btn {
    font-size: 9.5px !important;
    padding: 2.5px 5px !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    flex-shrink: 0 !important;
  }
}

/* 지도 우측 상단 오사카 포털 버튼 */
.osaka-portal-btn {
  position: absolute;
  top: 10px;
  left: 14px;
  right: auto;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: linear-gradient(135deg, #FF2E83 0%, #7928CA 100%);
  color: #FFFFFF;
  border: 2px solid #FFD700;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 46, 131, 0.55), 0 0 12px rgba(255, 215, 0, 0.6);
  animation: portalBounce 2.2s infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.osaka-portal-btn.is-hidden,
.is-osaka-chapter .osaka-portal-btn {
  display: none !important;
}

.osaka-portal-btn:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 46, 131, 0.75), 0 0 18px rgba(255, 215, 0, 0.9);
}

.portal-badge {
  background: #FFD700;
  color: #0F172A;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
}

@keyframes portalBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px) scale(1.03); }
}

/* 완주 축하 인게임 모달 */
.awaji-clear-modal {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
}

.awaji-clear-modal.is-hidden {
  display: none !important;
}

.clear-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
}

.clear-modal-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(150deg, #FFFFFF 0%, #FFF5F8 100%);
  border: 3.5px solid #FFD700;
  border-radius: 24px;
  padding: 20px 18px;
  width: 100%;
  max-width: 380px;
  max-height: 94%;
  overflow-y: auto;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.4);
  text-align: center;
  animation: popCard 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.clear-trophy-anim {
  font-size: 3rem;
  animation: trophySpin 3s ease-in-out infinite;
  display: inline-block;
}

@keyframes trophySpin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-10deg) scale(1.1); }
  75% { transform: rotate(10deg) scale(1.1); }
}

.clear-modal-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: #FF2E83;
  margin: 6px 0 2px;
  letter-spacing: -0.02em;
}

.clear-modal-badge {
  display: inline-block;
  background: linear-gradient(90deg, #F59E0B, #E11D48);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.clear-modal-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #334155;
  margin: 0 0 14px;
  word-break: keep-all;
}

.clear-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.osaka-goto-btn {
  background: linear-gradient(135deg, #FF2E83 0%, #9333EA 100%);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
  padding: 10px 18px;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 46, 131, 0.45);
  transition: transform 0.2s ease;
  outline: none;
}

.osaka-goto-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.clear-close-btn {
  background: transparent;
  color: #64748B;
  border: none;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.clear-close-btn:hover {
  color: #FF2E83;
}

/* 오사카 맵 모드 시 보물 아이콘 유동적 움직임 (살짝 둥둥 떠다니는 애니메이션) */
.treasure-item-bubble.osaka-moving {
  animation: osakaBubbleFloat 3s ease-in-out infinite alternate;
  box-shadow: 0 6px 16px rgba(147, 51, 234, 0.45), 0 0 14px rgba(255, 215, 0, 0.6);
  border-color: #A855F7;
}

.treasure-item-bubble.osaka-moving:nth-child(2) {
  animation: osakaBubbleFloat2 3.4s ease-in-out infinite alternate 0.3s;
}
.treasure-item-bubble.osaka-moving:nth-child(3) {
  animation: osakaBubbleFloat 3.8s ease-in-out infinite alternate 0.7s;
}
.treasure-item-bubble.osaka-moving:nth-child(4) {
  animation: osakaBubbleFloat2 3.2s ease-in-out infinite alternate 1.1s;
}
.treasure-item-bubble.osaka-moving:nth-child(5) {
  animation: osakaBubbleFloat 4s ease-in-out infinite alternate 1.4s;
}

@keyframes osakaBubbleFloat {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-8px, -6px) rotate(-6deg); }
  66% { transform: translate(6px, 5px) rotate(5deg); }
  100% { transform: translate(-4px, 7px) rotate(-3deg); }
}

@keyframes osakaBubbleFloat2 {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(8px, 6px) rotate(6deg); }
  66% { transform: translate(-7px, -5px) rotate(-4deg); }
  100% { transform: translate(5px, -6px) rotate(4deg); }
}

/* 인벤토리 슬롯 클릭 바운스 효과 */
.inven-slot.slot-bounce {
  animation: slotClickBounce 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slotClickBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   2. 메인 월드맵 영역: 에메랄드 바다(#1FA2C4) & 아와지섬 지형 SVG & 핀
   -------------------------------------------------------------------------- */
.awaji-map-stage {
  position: relative;
  width: 100%;
  min-height: 380px;
  height: 420px;
  background: #1FA2C4;
  overflow: hidden;
  display: block;
}

.awaji-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

/* SVG 맵 내 랜드마크 & 투어 점선 경로 효과 */
.map-landmark {
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
  transition: transform 0.25s ease;
}

.tour-route-line {
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.85));
  stroke-dashoffset: 0;
  animation: dashRoute 24s linear infinite;
}

@keyframes dashRoute {
  to {
    stroke-dashoffset: -120;
  }
}

/* 14개 명소 핀 레이어 */
.awaji-pins-layer {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  z-index: 15;
}

.awaji-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 16;
  padding: 0;
  outline: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.awaji-pin:hover,
.awaji-pin:focus-visible {
  transform: translate(-50%, -50%) scale(1.15);
  z-index: 30;
}

.pin-badge-wrap {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #FF5C9E;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
}

.pin-badge-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.pin-badge-idx {
  position: absolute;
  top: -6px;
  left: -6px;
  background: #FF2E83;
  color: #FFFFFF;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  line-height: 1.1;
}

.pin-label-pill {
  margin-top: 3px;
  background: rgba(15, 23, 42, 0.88);
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
}

.awaji-pin.active .pin-badge-wrap {
  border-color: #FFD700;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.9), 0 4px 12px rgba(0, 0, 0, 0.35);
  animation: pinBounce 2s infinite;
  background: #FFFDF5;
}

.awaji-pin.active .pin-label-pill {
  background: #FF2E83;
  border-color: #FFD700;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(255, 46, 131, 0.5);
}

.awaji-pin.is-cleared .pin-badge-wrap {
  border-color: #10B981;
  background: #ECFDF5;
}

.awaji-pin.is-cleared .pin-badge-idx {
  background: #10B981;
}

.awaji-pin.is-cleared .pin-label-pill {
  background: rgba(6, 95, 70, 0.88);
  border-color: #34D399;
}

/* 마사야 플레이어 워커 */
.awaji-map-player {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 25;
  transition: top 1.8s ease-in-out, left 1.8s ease-in-out;
}

.player-avatar-bubble {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid #FFD700;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.8), 0 4px 8px rgba(0, 0, 0, 0.3);
  animation: playerBob 2s ease-in-out infinite;
  background: #FFF;
}

.player-mini-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-shadow {
  width: 22px;
  height: 6px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  margin: 2px auto 0;
  filter: blur(1px);
}

/* --------------------------------------------------------------------------
   2. 명소 도착 시 보물을 터치해 찾는 씬 (#spot-scene)
   -------------------------------------------------------------------------- */
.spot-scene {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  box-sizing: border-box;
  background: rgba(10, 25, 45, 0.82);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.spot-scene.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spot-scene-card {
  background: linear-gradient(145deg, #FFFFFF, #FFF9FA);
  border: 3px solid #FF5C9E;
  border-radius: 22px;
  padding: 14px 16px;
  width: 100%;
  max-width: 360px;
  max-height: 94%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  animation: popCard 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.spot-scene-header {
  position: relative;
  padding-bottom: 6px;
  border-bottom: 1.5px solid #FBCFE8;
}

.spot-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  color: #FF2E83;
  background: #FFE4E6;
  padding: 2px 10px;
  border-radius: 999px;
}

.spot-scene-name {
  font-size: 1.12rem;
  font-weight: 900;
  color: #1E293B;
  margin: 3px 0 0;
}

.spot-close-x {
  position: absolute;
  top: 0;
  right: 0;
  background: #F1F5F9;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s ease;
}

.spot-close-x:hover {
  background: #FFE4E6;
  color: #FF2E83;
}

.spot-scene-interactive {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.spot-touch-guide {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FF2E83;
  margin: 0;
}

.spot-touch-guide.is-hidden {
  display: none !important;
}

/* 보물 5개 흩어져 나타나는 인터랙션 필드 */
.spot-treasure-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 110px;
  width: 100%;
  padding: 10px 8px;
  background: radial-gradient(circle, rgba(255, 235, 242, 0.7) 0%, rgba(255, 255, 255, 0.9) 100%);
  border: 2px dashed #FF80AB;
  border-radius: 18px;
  box-sizing: border-box;
}

.spot-treasure-field.is-hidden {
  display: none !important;
}

.treasure-item-bubble {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFFFFF, #FFF9EB);
  border: 2.5px solid #FFD700;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease, opacity 0.2s ease;
  animation: treasureFloat 2s ease-in-out infinite alternate;
}

.treasure-item-bubble:hover {
  transform: scale(1.18);
  box-shadow: 0 6px 18px rgba(255, 46, 131, 0.55), 0 0 16px rgba(255, 215, 0, 0.8);
  border-color: #FF2E83;
}

.treasure-item-bubble.is-collected {
  transform: scale(0) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@keyframes treasureFloat {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(5deg); }
  100% { transform: translateY(3px) rotate(-4deg); }
}

.spot-treasure-box {
  cursor: pointer;
  width: 88px;
  height: 88px;
  margin: 4px auto;
  border-radius: 20px;
  background: linear-gradient(135deg, #FFE4E6, #FFF1F2);
  border: 2.5px dashed #FF5C9E;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
  user-select: none;
}

.spot-treasure-box:hover {
  transform: scale(1.08);
  border-color: #FF2E83;
}

.spot-treasure-box.pulse-treasure:not(.is-opened) {
  animation: treasurePulse 1.8s infinite;
}

.spot-treasure-box.is-opened {
  background: #ECFDF5;
  border: 2.5px solid #10B981;
}

.treasure-icon-display {
  font-size: 2.4rem;
  line-height: 1;
}

.touch-sparkle-pill {
  position: absolute;
  bottom: -8px;
  background: #FFB703;
  color: #1E293B;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.spot-reward-box {
  background: #FFFDF5;
  border: 2.5px solid #FFD700;
  border-radius: 18px;
  padding: 12px 14px 14px;
  width: 100%;
  box-sizing: border-box;
  animation: popCard 0.25s ease;
  box-shadow: 0 8px 22px rgba(255, 215, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.spot-reward-box.is-hidden {
  display: none;
}

.reward-sparkle-fx {
  font-size: 0.72rem;
  font-weight: 900;
  color: #D97706;
  letter-spacing: 0.04em;
}

.reward-icon-circle {
  width: 46px;
  height: 46px;
  margin: 5px auto;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2.5px solid #FFD700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.6);
}

.reward-title {
  font-size: 0.94rem;
  font-weight: 900;
  color: #FF2E83;
  margin-top: 2px;
}

.reward-desc {
  font-size: 0.76rem;
  color: #475569;
  line-height: 1.4;
  margin: 3px 0 5px;
  word-break: keep-all;
}

.reward-stored-notice {
  font-size: 0.7rem;
  font-weight: 800;
  color: #059669;
  background: #ECFDF5;
  padding: 3px 8px;
  border-radius: 8px;
  width: fit-content;
}

.spot-confirm-btn {
  margin-top: 10px;
  background: linear-gradient(135deg, #FF2E83 0%, #FF60A8 50%, #FFB703 100%);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 900;
  padding: 9px 20px;
  border: 2px solid #FFFFFF;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(255, 46, 131, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 250px;
  outline: none;
}

.spot-confirm-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 46, 131, 0.6);
}

.spot-confirm-btn:active {
  transform: translateY(1px) scale(0.98);
}

.spot-confirm-btn.is-hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   3. 하단 도감 영역: 14종 아와지섬 특산물/티켓 아이콘 슬롯 UI
   -------------------------------------------------------------------------- */
.awaji-inventory-bar {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF5F8 100%);
  border-top: 3px solid #FF80AB;
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
}

.inventory-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.inventory-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inventory-bag-icon {
  font-size: 1.05rem;
}

.inventory-title-text {
  font-size: 0.85rem;
  font-weight: 800;
  color: #1E293B;
  letter-spacing: -0.01em;
}

.inventory-counter-badge {
  background: #FFE4E6;
  color: #E11D48;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #FDA4AF;
}

.inventory-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.inventory-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap !important;
  flex-shrink: 0;
}

.inventory-page-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.inven-tab-btn {
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  white-space: nowrap !important;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inven-tab-btn:hover {
  background: #FFE4E6;
  color: #FF2E83;
}

.inven-tab-btn.active {
  background: #FF2E83;
  border-color: #FF2E83;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(255, 46, 131, 0.35);
}

/* 아카시 해협 대교 버스 횡단 캡슐 버튼 (옐로우/오렌지 코랄 그라데이션) */
.inven-tab-btn.inven-bridge-bus-btn {
  background: linear-gradient(135deg, #FFB703 0%, #FB8500 50%, #FF3366 100%);
  border: 1.5px solid #FFFFFF;
  color: #FFFFFF;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(251, 133, 0, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  animation: pulseBridgeBusBtn 2.2s infinite ease-in-out;
  cursor: pointer;
}

.inven-tab-btn.inven-bridge-bus-btn:hover {
  background: linear-gradient(135deg, #FFC107 0%, #F97316 50%, #E11D48 100%);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.55);
}

@keyframes pulseBridgeBusBtn {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(251, 133, 0, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 3px 12px rgba(255, 51, 102, 0.6);
  }
}

.inventory-slots-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  width: 100%;
  box-sizing: border-box;
}

.inventory-slots-grid.is-hidden {
  display: none;
}

.inven-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1.5px solid #FBCFE8;
  border-radius: 10px;
  padding: 5px 2px;
  min-height: 54px;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(255, 92, 158, 0.08);
  cursor: pointer;
  box-sizing: border-box;
  min-width: 0;
}

.inven-slot:hover {
  transform: translateY(-2px);
  border-color: #FF2E83;
  box-shadow: 0 4px 10px rgba(255, 46, 131, 0.2);
}

.inven-slot .slot-idx {
  font-size: 0.58rem;
  font-weight: 800;
  color: #F43F5E;
  opacity: 0.75;
  line-height: 1;
}

.inven-slot .slot-icon-box {
  font-size: 1.15rem;
  line-height: 1.15;
  margin: 2px 0;
}

.inven-slot .slot-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 1px;
}

/* --------------------------------------------------------------------------
   애니메이션 Keyframes
   -------------------------------------------------------------------------- */
@keyframes floatIntroAvatar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes spinGlowRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulseStartBtn {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(255, 46, 131, 0.55), 0 0 16px rgba(255, 183, 3, 0.4); }
  50% { transform: scale(1.025); box-shadow: 0 10px 28px rgba(255, 46, 131, 0.75), 0 0 22px rgba(255, 183, 3, 0.65); }
}

@keyframes pinBounce {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -58%) scale(1.15); }
}

@keyframes playerBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes treasurePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes popCard {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   반응형 최적화 (모바일)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .mascot-game-card.awaji-tour-card {
    min-height: auto;
    height: auto;
  }
  .awaji-map-stage {
    min-height: 320px;
  }
}

@media (max-width: 600px) {
  .mascot-game-card.awaji-tour-card {
    min-height: auto;
    height: auto;
    border-radius: 24px;
  }
  .awaji-intro-content {
    gap: 6px;
    padding: 6px 4px;
  }
  .awaji-intro-avatar-frame {
    width: 64px;
    height: 64px;
  }
  .awaji-intro-dialogue {
    padding: 8px 10px 6px;
    padding-top: 28px !important;
  }
  .awaji-start-btn {
    padding: 8px 20px;
    font-size: 0.95rem;
    max-width: 220px;
  }
  .spot-scene-card {
    padding: 10px 12px;
    border-radius: 18px;
    max-height: 96%;
  }
  .spot-reward-box {
    padding: 8px 10px 10px;
  }
  .spot-confirm-btn {
    margin-top: 8px;
    padding: 8px 16px;
    font-size: 0.84rem;
  }
  .inventory-slots-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }
  .inven-slot {
    padding: 4px 1px;
    min-height: 50px;
  }
  .inven-slot .slot-icon-box {
    font-size: 1rem;
  }
  .inven-slot .slot-label {
    font-size: 0.55rem;
  }
}

/* ==========================================================================
   📖 MASAYA MAGAZINE — E-Magazine (mascot section, left card)
   ========================================================================== */
.masaya-mag-card {
  --vm-ink: #1c0d15;
  --vm-paper: #fffaf6;
  --vm-pink: #ff5c9e;
  --vm-pink-hot: #ff2e83;
  --vm-gold: #c9a14a;
  --vm-gold-light: #f3d58a;
  --vm-serif: 'Playfair Display', 'Noto Serif KR', 'Noto Serif JP', Georgia, serif;
  --vm-display: 'Cinzel', 'Playfair Display', 'Noto Serif KR', 'Noto Serif JP', serif;
  --vm-sans: 'Fredoka', 'Quicksand', 'Noto Sans KR', 'Noto Sans JP', 'Apple SD Gothic Neo', 'Hiragino Sans', 'Malgun Gothic', sans-serif;

  container-type: inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 620px;
  background: var(--vm-paper);
  border: 4px solid var(--vm-pink);
  border-radius: 34px;
  box-shadow: 0 14px 36px rgba(255, 92, 158, 0.25), 0 0 22px rgba(255, 92, 158, 0.15);
  overflow: hidden;
  isolation: isolate;
}

/* thin inner gold hairline for a luxe print feel */
.masaya-mag-card::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201, 161, 74, 0.45);
  border-radius: 28px;
  pointer-events: none;
  z-index: 5;
}

/* ---------- Top bar ---------- */
.vm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 14px 18px 10px;
  background: linear-gradient(90deg, #fff0f6, #fff8e7, #fff0f6);
  border-bottom: 1.5px solid #ffd1e3;
  position: relative;
  z-index: 6;
}

.vm-issue-badge {
  font-family: var(--vm-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--vm-pink-hot);
  background: #fff;
  border: 1.5px solid var(--vm-gold);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: 0 3px 10px rgba(201, 161, 74, 0.18);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vm-top-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vm-counter {
  font-family: var(--vm-serif);
  font-size: 0.95rem;
  color: var(--vm-ink);
  min-width: 46px;
  text-align: center;
  white-space: nowrap;
}

.vm-counter b {
  color: var(--vm-pink-hot);
  font-size: 1.15rem;
}

.vm-mini-btn {
  font-family: var(--vm-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--vm-pink-hot);
  background: #fff;
  border: 1.5px solid #ffc2da;
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.vm-mini-btn:hover:not(:disabled) {
  background: var(--vm-pink);
  border-color: var(--vm-pink);
  color: #fff;
  transform: translateY(-1px);
}

.vm-mini-btn:disabled,
.vm-big-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ---------- Stage & page-turn ---------- */
.vm-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  perspective: 2200px;
  overflow: hidden;
  outline: none;
  touch-action: pan-y;
  background: linear-gradient(90deg, rgba(28, 13, 21, 0.08), transparent 4%) var(--vm-paper);
}

.vm-stage:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(255, 92, 158, 0.45);
}

.vm-page {
  position: absolute;
  inset: 0;
  background: var(--vm-paper);
  transform-origin: left center;
  backface-visibility: hidden;
  transition: transform 0.75s cubic-bezier(0.645, 0.045, 0.355, 1),
              opacity 0.75s ease,
              visibility 0.75s;
  will-change: transform, opacity;
}

.vm-page.is-active {
  transform: none;
  opacity: 1;
  visibility: visible;
  z-index: 3;
  box-shadow: 0 0 0 transparent;
}

/* pages already read: turned away to the left like a book leaf */
.vm-page.is-past {
  transform: rotateY(-100deg);
  opacity: 0;
  visibility: hidden;
  z-index: 4;
  box-shadow: 30px 0 40px rgba(28, 13, 21, 0.25);
}

/* upcoming pages: waiting underneath */
.vm-page.is-future {
  transform: translateX(4%) scale(0.97);
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

/* ---------- Page 1 · Cover ---------- */
.vm-cover {
  overflow: hidden;
  background: #2a0f1d;
  color: #fff;
}

.vm-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.03);
  transition: transform 6s ease;
}

.vm-cover.is-active .vm-cover-img {
  transform: scale(1.08);
}

.vm-cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(28, 13, 21, 0.55) 0%, rgba(28, 13, 21, 0) 32%),
    linear-gradient(to top, rgba(28, 8, 20, 0.95) 0%, rgba(140, 22, 82, 0.6) 30%, rgba(255, 92, 158, 0.12) 52%, rgba(0, 0, 0, 0) 65%);
}

.vm-cover-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 22px 20px 0;
  text-align: center;
  z-index: 2;
}

.vm-cover-tag {
  display: inline-block;
  font-family: var(--vm-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--vm-gold-light);
  border-top: 1px solid rgba(243, 213, 138, 0.7);
  border-bottom: 1px solid rgba(243, 213, 138, 0.7);
  padding: 4px 10px;
}

.vm-masthead {
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.vm-mast-main {
  display: block;
  font-family: var(--vm-serif);
  font-weight: 900;
  font-size: 4rem;
  font-size: clamp(2.6rem, 17cqw, 6.4rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.vm-mast-sub {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-top: 0.45em;
  font-family: var(--vm-display);
  font-weight: 700;
  font-size: 1rem;
  font-size: clamp(0.85rem, 4cqw, 1.45rem);
  line-height: 1;
  letter-spacing: 0.3em;
  padding-left: 0.3em; /* balance trailing letter-spacing for true centering */
  color: #fff;
}

.vm-mast-sub::before,
.vm-mast-sub::after {
  content: '';
  width: 2.2em;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--vm-gold-light));
}

.vm-mast-sub::after {
  background: linear-gradient(90deg, var(--vm-gold-light), transparent);
}

.vm-cover-sub {
  margin: 8px 0 0;
  font-family: var(--vm-display);
  font-weight: 700;
  font-size: 0.82rem;
  font-size: clamp(0.7rem, 2.6cqw, 1rem);
  letter-spacing: 0.38em;
  background: linear-gradient(90deg, #ffd1e3, var(--vm-gold-light), #ffd1e3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vm-cover-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 22px 18px;
  z-index: 2;
}

.vm-headlines {
  list-style: none;
  margin: 0 0 14px;
  padding: 14px 0 0;
  border-top: 2px solid;
  border-image: linear-gradient(90deg, var(--vm-pink), var(--vm-gold-light), var(--vm-pink)) 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vm-headlines li {
  font-family: var(--vm-serif);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.vm-headlines li .vm-star {
  color: var(--vm-gold-light);
  margin-right: 2px;
}

.vm-cover-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--vm-display);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Pages 2–4 · Feature ---------- */
.vm-feature {
  display: flex;
  flex-direction: column;
}

.vm-photo {
  position: relative;
  display: block;
  flex: 0 0 auto;
  height: 220px;
  margin: 16px 16px 0;
  border-radius: 20px;
  overflow: hidden;
  background: #2a0f1d;
  border: 1.5px solid var(--vm-gold);
  box-shadow: 0 10px 24px rgba(28, 13, 21, 0.18);
  text-decoration: none;
  cursor: pointer;
}

.vm-photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.vm-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28, 13, 21, 0.35) 0%, transparent 35%, transparent 65%, rgba(28, 13, 21, 0.45) 100%);
  pointer-events: none;
}

.vm-photo:hover .vm-photo-img,
.vm-photo:focus-visible .vm-photo-img {
  transform: scale(1.05);
  filter: brightness(1.06);
}

.vm-photo-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  max-width: calc(100% - 70px);
  font-family: var(--vm-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  background: linear-gradient(135deg, var(--vm-pink-hot), #c9367d 60%, var(--vm-gold));
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(255, 46, 131, 0.4);
}

.vm-watch-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--vm-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(28, 13, 21, 0.72);
  border: 1px solid var(--vm-gold-light);
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s ease, transform 0.3s ease;
}

.vm-photo:hover .vm-watch-badge,
.vm-photo:focus-visible .vm-watch-badge {
  background: #ff0033;
  border-color: #ff0033;
  transform: translateY(-2px);
}

.vm-folio {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
  font-family: var(--vm-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.vm-article {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 24px 18px;
  scrollbar-width: thin;
  scrollbar-color: #ffb3d1 transparent;
}

.vm-title {
  margin: 0;
  font-family: var(--vm-serif);
  font-weight: 900;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--vm-ink);
}

.vm-subtitle {
  margin: 6px 0 0;
  font-family: var(--vm-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--vm-pink-hot);
}

.vm-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: var(--vm-gold);
  font-size: 0.8rem;
}

.vm-rule::before,
.vm-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--vm-gold), transparent);
}

.vm-body {
  margin: 0;
  font-family: var(--vm-sans);
  font-size: 0.93rem;
  line-height: 1.75;
  color: #4a2d38;
  text-align: justify;
  hyphens: none;
}

.vm-body::first-letter {
  float: left;
  font-family: var(--vm-serif);
  font-weight: 900;
  font-size: 2.9em;
  line-height: 0.85;
  margin: 4px 8px 0 0;
  color: var(--vm-pink-hot);
}

/* Secondary article link (e.g. MCM party info, M&R live video) */
.vm-sub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 7px 14px;
  font-family: var(--vm-sans);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--vm-pink-hot);
  text-decoration: none;
  background: linear-gradient(135deg, #fff0f6 0%, #fff8e7 100%);
  border: 1.5px solid #ffc2da;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.vm-sub-link:hover,
.vm-sub-link:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--vm-pink-hot), #ff85b3 70%, var(--vm-gold));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 46, 131, 0.3);
  outline: none;
}

/* ---------- Page 5 · November preview schedule ---------- */
.vm-schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vm-schedule li {
  font-family: var(--vm-sans);
  font-size: 0.86rem;
  line-height: 1.45;
  color: #4a2d38;
  background: #fff;
  border: 1.5px solid #ffd1e3;
  border-left: 4px solid var(--vm-pink);
  border-radius: 12px;
  padding: 8px 12px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.vm-schedule li:hover {
  transform: translateX(3px);
  border-left-color: var(--vm-gold);
}

.vm-schedule li strong {
  color: var(--vm-pink-hot);
  font-weight: 700;
}

/* ---------- Bottom nav ---------- */
.vm-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px 14px;
  background: linear-gradient(90deg, #fff0f6, #fff8e7, #fff0f6);
  border-top: 1.5px solid #ffd1e3;
  position: relative;
  z-index: 6;
}

.vm-big-btn {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: none;
  border-radius: 50%;
  font-size: 1.05rem;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--vm-pink-hot), #ff85b3 70%, var(--vm-gold-light));
  box-shadow: 0 6px 16px rgba(255, 46, 131, 0.35);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
}

.vm-big-btn:hover:not(:disabled) {
  transform: scale(1.1);
  box-shadow: 0 8px 22px rgba(255, 46, 131, 0.5);
}

.vm-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vm-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid var(--vm-gold);
  background: #fff;
  cursor: pointer;
  transition: all 0.35s ease;
}

.vm-dot.is-active {
  width: 30px;
  border-color: var(--vm-pink);
  background: linear-gradient(90deg, var(--vm-pink-hot), var(--vm-gold-light));
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .masaya-mag-card {
    height: 720px;
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .masaya-mag-card {
    height: 720px;
    border-radius: 28px;
  }
  .masaya-mag-card::after { border-radius: 22px; }
  .vm-topbar { justify-content: center; padding: 12px 14px 8px; }
  .vm-title { font-size: 1.35rem; }
  .vm-photo { height: 200px; margin: 12px 12px 0; }
  .vm-article { padding: 14px 18px 16px; }
  .vm-headlines li { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .masaya-mag-card { height: 680px; }
  .vm-issue-badge { font-size: 0.68rem; padding: 5px 10px; }
  .vm-mini-btn { font-size: 0.7rem; padding: 4px 9px; }
  .vm-counter { font-size: 0.85rem; min-width: 38px; }
  .vm-photo { height: 180px; }
  .vm-title { font-size: 1.2rem; }
  .vm-subtitle { font-size: 0.86rem; }
  .vm-body { font-size: 0.87rem; line-height: 1.65; }
  .vm-headlines li { font-size: 0.86rem; }
  .vm-cover-meta { font-size: 0.54rem; letter-spacing: 0.12em; }
  .vm-schedule li { font-size: 0.8rem; padding: 7px 10px; }
  .vm-watch-badge { font-size: 0.68rem; padding: 4px 10px; }
  .vm-big-btn { width: 42px; height: 42px; }
  .vm-dots { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .vm-page, .vm-cover-img, .vm-photo-img { transition: none; animation: none; }
}

/* ==========================================================================
   Instagram Feed — 삭제/만료된 라이브 게시물 & 빈 미디어 포스트 완전 숨김
   (ig-live-filter.js 가 해당 포스트 블록에 클래스/속성을 부여)
   ========================================================================== */
.pt-ig-hidden-post,
[data-pt-ig-hidden] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* ==========================================================================
   Chapter 2: 오사카 대교 횡단 컷신 & 오사카 월드맵 스타일
   ========================================================================== */

/* 1. 버스 타고 아카시 해협 대교 건너기 3.5초 컷신 모달 */
.bridge-cutscene-modal {
  position: absolute;
  inset: 0;
  z-index: 80;
  background: #0284C7;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

.bridge-cutscene-modal.is-hidden {
  display: none !important;
}

.bridge-cutscene-sky {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #38BDF8 0%, #7DD3FC 45%, #BAE6FD 70%, #E0F2FE 100%);
  overflow: hidden;
}

/* 상단 오버레이 헤더 & Skip 버튼 */
.cutscene-top-bar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 95;
  pointer-events: auto;
}

.cutscene-info-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.88);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid #FF80AB;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

.cutscene-info-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF2E83;
  box-shadow: 0 0 8px #FF2E83;
  animation: pulseDot 1s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.cutscene-skip-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #FF2E83;
  color: #FF2E83;
  font-weight: 900;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  outline: none;
}

.cutscene-skip-btn:hover {
  background: #FF2E83;
  color: #FFFFFF;
  transform: scale(1.05);
}

/* 구름 */
.cutscene-cloud {
  position: absolute;
  font-size: 2.2rem;
  opacity: 0.85;
  pointer-events: none;
}

.cloud-1 {
  top: 15%;
  left: -10%;
  animation: floatCloud 12s linear infinite;
}

.cloud-2 {
  top: 28%;
  left: -20%;
  animation: floatCloud 16s linear infinite 3s;
}

@keyframes floatCloud {
  from { transform: translateX(0); }
  to { transform: translateX(650px); }
}

/* 아카시 해협 대교 거대 주탑 & 케이블 */
.cutscene-bridge-structure {
  position: absolute;
  top: 10%;
  left: 0;
  right: 0;
  height: 60%;
  pointer-events: none;
}

.bridge-tower {
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 85%;
  background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 100%);
  border: 1.5px solid #94A3B8;
  border-bottom: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.tower-left { left: 28%; }
.tower-right { left: 72%; }

.bridge-tower::before {
  content: '';
  position: absolute;
  top: 35%;
  left: -8px;
  right: -8px;
  height: 4px;
  background: #CBD5E1;
  border: 1px solid #94A3B8;
}

.bridge-main-cable {
  position: absolute;
  top: 15%;
  left: 0;
  right: 0;
  height: 60%;
  border-bottom: 3.5px solid #FFFFFF;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.bridge-hangers {
  position: absolute;
  top: 25%;
  left: 10%;
  right: 10%;
  height: 75%;
  background: repeating-linear-gradient(90deg, #FFFFFF 0px, #FFFFFF 1.5px, transparent 1.5px, transparent 24px);
  opacity: 0.55;
}

/* 대교 도로 상판 */
.cutscene-road {
  position: absolute;
  bottom: 22%;
  left: 0;
  right: 0;
  height: 28px;
  background: #334155;
  border-top: 3.5px solid #94A3B8;
  border-bottom: 4px solid #1E293B;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
  z-index: 85;
}

.road-lanes {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(90deg, #FDE047 0px, #FDE047 18px, transparent 18px, transparent 36px);
  opacity: 0.85;
  margin-top: 10px;
  height: 3px;
  animation: roadScroll 0.5s linear infinite;
}

@keyframes roadScroll {
  from { background-position-x: 0; }
  to { background-position-x: -36px; }
}

/* 푸른 바다 & 파도 물결 */
.cutscene-sea {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 22%;
  background: linear-gradient(180deg, #0284C7 0%, #0369A1 60%, #075985 100%);
  overflow: hidden;
  z-index: 84;
}

.sea-wave-line {
  position: absolute;
  width: 200%;
  height: 16px;
  border-radius: 50%;
  border-top: 3px solid #7DD3FC;
  opacity: 0.6;
}

.wave-back {
  top: 6px;
  animation: waveMove 3s ease-in-out infinite alternate;
}

.wave-front {
  top: 16px;
  border-top-color: #BAE6FD;
  animation: waveMove 2.2s ease-in-out infinite alternate-reverse;
}

@keyframes waveMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50px); }
}

/* 핑크색 투어 버스 (아와지 ➔ 오사카 고속버스) */
.cutscene-bus-vehicle {
  position: absolute;
  bottom: calc(22% + 5px);
  left: -140px;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  animation: busCrossBridge 3.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes busCrossBridge {
  0% {
    left: -140px;
    transform: translateY(0);
  }
  15% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(1px);
  }
  75% {
    transform: translateY(-2px);
  }
  90% {
    transform: translateY(0);
  }
  100% {
    left: 105%;
    transform: translateY(0);
  }
}

.bus-body-wrap {
  width: 124px;
  height: 52px;
  background: linear-gradient(135deg, #FF5C9E 0%, #FF2E83 100%);
  border-radius: 12px 14px 4px 4px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 4px;
  box-sizing: border-box;
}

.bus-sign-bar {
  font-size: 0.52rem;
  font-weight: 900;
  color: #FEF08A;
  background: rgba(15, 23, 42, 0.85);
  padding: 1px 4px;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.bus-windows-grid {
  display: flex;
  gap: 4px;
  align-items: center;
}

.bus-win {
  width: 22px;
  height: 20px;
  background: #E0F2FE;
  border: 1.5px solid #FFFFFF;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  overflow: hidden;
}

.bus-win.win-masaya {
  background: #FFE4E6;
  border-color: #FFD700;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.75);
}

.bus-avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bus-wheels-pair {
  position: absolute;
  bottom: -9px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
}

.bus-wheel {
  width: 18px;
  height: 18px;
  background: #1E293B;
  border: 2.5px solid #94A3B8;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: wheelSpin 0.25s linear infinite;
}

.bus-wheel::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: #CBD5E1;
  border-radius: 50%;
}

@keyframes wheelSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.bus-smoke-fx {
  font-size: 1.1rem;
  margin-right: -4px;
  animation: smokePuff 0.6s ease-out infinite;
  opacity: 0.85;
}

@keyframes smokePuff {
  0% { transform: scale(0.6) translateY(0); opacity: 0.9; }
  100% { transform: scale(1.3) translateY(-10px) translateX(-14px); opacity: 0; }
}

/* 2. 오사카 보물 살랑살랑 유동 애니메이션 */
.treasure-item-bubble.osaka-moving {
  animation: osakaTreasureFloat 2.6s ease-in-out infinite alternate !important;
}

@keyframes osakaTreasureFloat {
  0% {
    transform: translateY(0) translateX(0) scale(1) rotate(0deg);
  }
  33% {
    transform: translateY(-8px) translateX(6px) scale(1.08) rotate(6deg);
  }
  66% {
    transform: translateY(6px) translateX(-5px) scale(0.95) rotate(-5deg);
  }
  100% {
    transform: translateY(-4px) translateX(4px) scale(1.05) rotate(4deg);
  }
}

/* 3. 오사카 6칸 인벤토리 그리드 */
.osaka-inventory-grid {
  grid-template-columns: repeat(6, 1fr) !important;
}

@media (max-width: 600px) {
  .osaka-inventory-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px;
  }
}

/* 4. 오사카 ➔ 아와지섬 귀환 버스 역방향 애니메이션 */
.cutscene-bus-vehicle.reverse-direction {
  animation: busCrossBridgeReverse 3.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards !important;
}

.cutscene-bus-vehicle.reverse-direction .bus-body-wrap {
  transform: scaleX(-1);
}

.cutscene-bus-vehicle.reverse-direction .bus-sign-bar,
.cutscene-bus-vehicle.reverse-direction .bus-win {
  transform: scaleX(-1); /* 글자 및 아바타 사진 정방향 유지 */
}

@keyframes busCrossBridgeReverse {
  0% {
    left: 105%;
    transform: translateY(0);
  }
  15% {
    transform: translateY(-2px);
  }
  50% {
    transform: translateY(1px);
  }
  75% {
    transform: translateY(-2px);
  }
  90% {
    transform: translateY(0);
  }
  100% {
    left: -140px;
    transform: translateY(0);
  }
}

/* 5. 모바일 인벤토리 헤더 반응형 2줄 레이아웃 */
@media (max-width: 768px) {
  .inventory-bar-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 0 2px;
  }

  .inventory-title-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .inventory-page-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
  }

  .inven-tab-btn {
    font-size: 0.64rem !important;
    padding: 3.5px 5px !important;
    white-space: nowrap !important;
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .inven-tab-btn {
    font-size: 0.58rem !important;
    padding: 3px 3px !important;
  }
}

/* ========================================================
   Masaya Virtual Live Concert Hall Showcase Styling
   ======================================================== */
@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.virtual-concert-section {
  position: relative;
  overflow: visible;
}

#concertHallFrame {
  width: 100%;
  height: 760px;
  border: none;
  display: block;
}

@media (max-width: 992px) {
  #concertHallFrame {
    height: 680px;
  }
}

@media (max-width: 768px) {
  #concertHallFrame {
    height: 600px;
  }
  .concert-gate-header {
    flex-direction: column;
    align-items: stretch !important;
  }
  .concert-lang-gates {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  #concertHallFrame {
    height: 520px;
  }
}


/* Embedded Concert Hall Mobile 82dvh Zero-Scroll */
@media (max-width: 768px) {
  #concertHallFrame,
  .concert-iframe-wrapper iframe {
    height: 82dvh !important;
    max-height: 82dvh !important;
  }
}
