/* ========================================
   CSS RESET & BASE
   ======================================== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:70px; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #FFF0F3;
  color: #4A2040;
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width:100%; height:auto; display:block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ========================================
   PIXEL ART HELPERS
   ======================================== */
.pixel-font {
  font-family: 'Press Start 2P', cursive;
  image-rendering: pixelated;
}
.section-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #D4607A;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}
.section-title .pixel-label {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.65rem;
  display: block;
  color: #F8B4C8;
  margin-bottom: 0.5rem;
  letter-spacing: 0.2em;
}
.section-title .jp-label {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-weight: 900;
}

/* Pixel border mixin */
.pixel-border {
  border: 3px solid #D4607A;
  box-shadow: 4px 4px 0 #F8B4C8, -2px -2px 0 #FFD1DC;
}

/* Pixel brick separator */
.brick-separator {
  width: 100%;
  height: 40px;
  background:
    linear-gradient(90deg, #E8A0B0 0%, #E8A0B0 48%, #D08090 48%, #D08090 52%, #E8A0B0 52%) 0 0 / 60px 20px,
    linear-gradient(90deg, #E8A0B0 0%, #E8A0B0 48%, #D08090 48%, #D08090 52%, #E8A0B0 52%) 30px 20px / 60px 20px;
  background-color: #D08090;
  image-rendering: pixelated;
}

/* ========================================
   HEADER NAVIGATION
   ======================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 209, 220, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid #F8B4C8;
  transition: box-shadow 0.3s;
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(212, 96, 122, 0.2);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.header-logo a {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.5rem;
  color: #D4607A;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header-logo .logo-icon {
  font-size: 1.2rem;
}
.header-logo .logo-text {
  display: flex;
  flex-direction: column;
}
.header-logo .logo-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  color: #4A2040;
}
.header-back {
  font-size: 0.7rem;
  color: #D4607A;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}
.header-back:hover { color: #FF6B9D; }

/* Mobile hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: #D4607A;
  margin: 4px 0;
  transition: 0.3s;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4A2040;
  transition: color 0.3s;
  white-space: nowrap;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #D4607A;
  transition: width 0.3s;
}
.nav-links a:hover { color: #D4607A; }
.nav-links a:hover::after { width: 100%; }

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    background: rgba(255, 209, 220, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    border-bottom: 3px solid #F8B4C8;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 0.9rem; }
  .header-back { display: none; }
  .header-back-mobile {
    display: block !important;
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px dashed #F8B4C8;
  }
}
.header-back-mobile { display: none; }

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  margin-top: 60px;
  position: relative;
  background: #F8C8D4;
  overflow: hidden;
}
.hero-banner {
  width: 100%;
  display: block;
}
.hero-info {
  text-align: center;
  padding: 2rem 1rem 3rem;
  background: linear-gradient(180deg, #F8C8D4 0%, #FFF0F3 100%);
  position: relative;
}
.hero-catchcopy {
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: #4A2040;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}
.hero-dates {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.hero-date-item {
  font-size: 0.9rem;
  font-weight: 600;
}
.hero-venue {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  animation: scrollBounce 2s infinite;
}
.scroll-indicator span {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.5rem;
  color: #D4607A;
}
.scroll-indicator .arrow {
  font-size: 1.2rem;
  color: #D4607A;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.5; }
}

/* ========================================
   SECTIONS COMMON
   ======================================== */
section {
  padding: 4rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}
.section-full {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.section-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ========================================
   ADVENTURE BOOK (冒険の書)
   ======================================== */
#adventure .adventure-text {
  text-align: center;
  font-size: 0.95rem;
  line-height: 2;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
#adventure .adventure-text p {
  margin-bottom: 0.5rem;
}
#adventure .adventure-text p:last-child {
  margin-bottom: 0;
}
#adventure .adventure-text strong {
  color: #D4607A;
  font-weight: 700;
}

.icon-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.icon-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  border: 3px solid #FFD1DC;
  transition: transform 0.3s, box-shadow 0.3s;
}
.icon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(212, 96, 122, 0.15);
}
.icon-card .emoji {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}
.icon-card .label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #D4607A;
}

@media (max-width: 768px) {
  .icon-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   QUEST LIST (クエスト一覧)
   ======================================== */
#quests {
  background: linear-gradient(180deg, #FFF0F3 0%, #FFE8EE 50%, #FFF0F3 100%);
  max-width: 100%;
  padding: 4rem 0;
}
.quest-note-box {
  background: linear-gradient(135deg, #fff8f0, #fff0f5);
  border: 3px solid #FFD700;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  line-height: 1.8;
  position: relative;
}
.quest-note-box::before {
  content: '💡';
  position: absolute;
  top: -12px; left: 16px;
  font-size: 1.4rem;
  background: #FFF0F3;
  padding: 0 0.3rem;
}
.quest-note-box p {
  margin: 0;
}
.quest-note-box strong { color: #D4607A; }

.quest-category {
  margin-bottom: 3rem;
}
.quest-category-title {
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: 900;
  color: #D4607A;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px dashed #FFD1DC;
}
.quest-category-sub {
  font-size: 0.85rem;
  color: #7A4060;
  margin-bottom: 1rem;
  font-style: italic;
}
.quest-category-note {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 1rem;
}

/* Region badges */
.region-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.region-badge {
  background: #fff;
  border: 2px solid #F8B4C8;
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4A2040;
  white-space: nowrap;
}

/* Quest tables */
.quest-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}
.quest-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(212, 96, 122, 0.08);
}
.quest-table thead th {
  background: #D4607A;
  color: #fff;
  padding: 0.8rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
}
.quest-table tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #FFE8EE;
  vertical-align: middle;
}
.quest-table tbody tr:last-child td {
  border-bottom: none;
}
.quest-table tbody tr:hover {
  background: #FFF8FA;
}
.quest-table tbody tr.bonus-row {
  background: linear-gradient(90deg, #FFF8E1, #FFF0F5);
  font-weight: 700;
}
.quest-table .coin-cell {
  white-space: nowrap;
  color: #B8860B;
  font-weight: 600;
}

.quest-max-coins {
  text-align: right;
  font-weight: 900;
  font-size: 1.1rem;
  color: #D4607A;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, transparent, #FFF0F5);
  border-radius: 8px;
}

/* Stamp rally grid */
.stamp-info {
  font-size: 0.85rem;
  color: #7A4060;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: #fff;
  border-radius: 8px;
  border-left: 4px solid #FFD700;
}

/* ========================================
   COINS & REWARDS (コインとリワード)
   ======================================== */
#coins {
  text-align: center;
}
.coin-hero {
  margin-bottom: 2.5rem;
}
.coin-hero .big-coin {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
  animation: coinSpin 3s ease infinite;
}
@keyframes coinSpin {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.coin-hero .coin-rate {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.7rem, 2vw, 1rem);
  color: #B8860B;
  margin-bottom: 0.8rem;
}
.coin-hero .coin-desc {
  font-size: 0.95rem;
  color: #4A2040;
}

/* Starter set */
.starter-box {
  background: linear-gradient(135deg, #fff, #FFF8E1);
  border: 3px solid #FFD700;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  display: inline-block;
  text-align: center;
}
.starter-box .price {
  font-size: 1.8rem;
  font-weight: 900;
  color: #D4607A;
}
.starter-box .price small {
  font-size: 0.9rem;
  font-weight: 600;
}
.starter-box .coins-given {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8rem;
  color: #B8860B;
  margin: 0.5rem 0;
}
.starter-box .includes {
  font-size: 0.8rem;
  color: #7A4060;
}

/* Coin flow */
.coin-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 16px;
  border: 2px solid #FFD1DC;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 80px;
}
.flow-step .flow-emoji {
  font-size: 1.5rem;
}
.flow-step .flow-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #4A2040;
}
.flow-arrow {
  font-size: 1.2rem;
  color: #D4607A;
  font-weight: 900;
}

/* Max coins summary */
.max-coins-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(212, 96, 122, 0.1);
  margin-bottom: 1rem;
}
.max-coins-table thead th {
  background: #D4607A;
  color: #fff;
  padding: 0.8rem;
  text-align: left;
  font-weight: 700;
}
.max-coins-table tbody td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid #FFE8EE;
}
.max-coins-table tbody tr:last-child {
  background: linear-gradient(90deg, #FFD700 0%, #FFF8E1 100%);
  font-weight: 900;
  font-size: 1rem;
}
.max-coins-table tbody tr:last-child td {
  border-bottom: none;
  color: #4A2040;
}
.coin-note {
  font-size: 0.8rem;
  color: #999;
  text-align: left;
  margin-top: 0.5rem;
}

/* ========================================
   ADVENTURER TYPES (冒険者タイプ)
   ======================================== */
#types .type-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.type-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid #FFD1DC;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.type-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(212, 96, 122, 0.2);
}
.type-card-header {
  padding: 1.5rem;
  text-align: center;
}
.type-card:nth-child(1) .type-card-header { background: linear-gradient(135deg, #E8F5E9, #FFF0F3); }
.type-card:nth-child(2) .type-card-header { background: linear-gradient(135deg, #FFF3E0, #FFF0F3); }
.type-card:nth-child(3) .type-card-header { background: linear-gradient(135deg, #FCE4EC, #FFF8E1); }

.type-card-header .type-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}
.type-card-header .type-name {
  font-size: 1.1rem;
  font-weight: 900;
  color: #D4607A;
}
.type-card-header .type-origin {
  font-size: 0.7rem;
  color: #7A4060;
  margin-top: 0.3rem;
  line-height: 1.5;
}
.type-card-body {
  padding: 1.2rem 1.5rem;
}
.type-card-body ul {
  list-style: none;
}
.type-card-body ul li {
  font-size: 0.85rem;
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
}
.type-card-body ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #D4607A;
}
.type-card-footer {
  padding: 1rem 1.5rem;
  background: #FFF8FA;
  text-align: center;
  border-top: 2px dashed #FFD1DC;
}
.type-card-footer .coin-range {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.65rem;
  color: #B8860B;
}

@media (max-width: 768px) {
  #types .type-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ========================================
   EVENT OVERVIEW (開催概要)
   ======================================== */
#overview {
  background: linear-gradient(180deg, #FFF0F3 0%, #FFE8EE 50%, #FFF0F3 100%);
  max-width: 100%;
  padding: 4rem 0;
}
.overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(212, 96, 122, 0.08);
  margin-bottom: 3rem;
}
.overview-table th {
  background: #D4607A;
  color: #fff;
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
  width: 120px;
  vertical-align: top;
}
.overview-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #FFE8EE;
}
.overview-table td a {
  color: #D4607A;
  text-decoration: underline;
}
.overview-table tr:last-child td {
  border-bottom: none;
}

/* 3 Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.step-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 3px solid #FFD1DC;
  position: relative;
}
.step-card .step-num {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7rem;
  color: #D4607A;
  display: block;
  margin-bottom: 0.5rem;
}
.step-card .step-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.8rem;
}
.step-card .step-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: #4A2040;
}
.step-card .step-content {
  display: flex;
  flex-direction: column;
}
.step-card .step-detail {
  font-size: 0.75rem;
  color: #7A4060;
  margin-top: 0.3rem;
}

/* App buttons */
.app-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: #D4607A;
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.3s, transform 0.2s;
  border: 3px solid transparent;
}
.app-btn:hover {
  background: #FF6B9D;
  transform: translateY(-2px);
}
.app-btn .btn-icon { font-size: 1.2rem; }

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto 2rem;
  }
}

/* ========================================
   FAQ (攻略の書)
   ======================================== */
#faq {
  max-width: 800px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.faq-item {
  background: #fff;
  border-radius: 12px;
  border: 2px solid #FFD1DC;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: #F8B4C8; }
.faq-question {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  color: #4A2040;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: 'Noto Sans JP', sans-serif;
  transition: background 0.3s;
}
.faq-question:hover { background: #FFF8FA; }
.faq-question .q-badge {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.55rem;
  color: #D4607A;
  flex-shrink: 0;
  width: 28px;
}
.faq-question .q-text {
  flex: 1;
}
.faq-question .q-toggle {
  font-size: 1rem;
  color: #D4607A;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-question .q-toggle {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.faq-answer-inner {
  padding: 0 1.2rem 1.2rem 3.2rem;
  font-size: 0.85rem;
  line-height: 1.9;
  color: #5A3050;
}

/* ========================================
   FOOTER CTA
   ======================================== */
.footer-cta {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(180deg, #FFF0F3 0%, #F8C8D4 100%);
  position: relative;
  overflow: hidden;
}
.footer-cta::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background:
    linear-gradient(90deg, #E8A0B0 0%, #E8A0B0 48%, #D08090 48%, #D08090 52%, #E8A0B0 52%) 0 0 / 60px 20px,
    linear-gradient(90deg, #E8A0B0 0%, #E8A0B0 48%, #D08090 48%, #D08090 52%, #E8A0B0 52%) 30px 20px / 60px 20px;
  background-color: #D08090;
}
.cta-title {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(0.6rem, 2.5vw, 1rem);
  color: #D4607A;
  margin-bottom: 1.5rem;
  line-height: 2.5;
  text-shadow: 2px 2px 0 #FFD1DC;
}
.cta-sub {
  font-size: 1rem;
  color: #4A2040;
  margin-bottom: 2rem;
  line-height: 2;
}
.cta-hashtags {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-hashtags span {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.5rem;
  color: #D4607A;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 2px solid #FFD1DC;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: #4A2040;
  color: #FFD1DC;
  text-align: center;
  padding: 2.5rem 1rem;
}
.footer-logo {
  font-family: 'Press Start 2P', cursive;
  font-size: 0.5rem;
  color: #F8B4C8;
  margin-bottom: 0.3rem;
  line-height: 1.6;
}
.footer-logo a {
  color: #F8B4C8;
  transition: color 0.3s;
}
.footer-logo a:hover { color: #FFD1DC; }
.footer-copy {
  font-size: 0.7rem;
  color: #B8809A;
  margin-top: 1rem;
}

/* ========================================
   PIXEL CLOUD DECORATIONS
   ======================================== */
.pixel-cloud {
  position: absolute;
  opacity: 0.3;
  pointer-events: none;
}
.pixel-cloud::before {
  content: '☁';
  font-size: 3rem;
  color: #FFD1DC;
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
  section { padding: 2.5rem 0.8rem; }

  /* ── Hero ── */
  .hero-info { padding: 1.5rem 1rem 2.5rem; }
  .hero-catchcopy {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.8;
  }
  .hero-dates {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
  }
  .hero-date-item { font-size: 0.82rem; }
  .hero-venue { font-size: 0.85rem; margin-bottom: 1.5rem; }

  /* ── Section titles ── */
  .section-title { margin-bottom: 1.5rem; }
  .section-title .pixel-label { font-size: 0.5rem; letter-spacing: 0.15em; }

  /* ── Adventure text ── */
  #adventure .adventure-text {
    font-size: 0.88rem;
    text-align: left;
    line-height: 1.9;
    padding: 0 0.3rem;
  }
  #adventure .adventure-text br { display: none; }

  /* ── Quest section ── */
  #quests { padding: 2.5rem 0; }
  .section-inner { padding: 0 0.8rem; }

  .quest-note-box {
    font-size: 0.82rem;
    padding: 1rem 1rem 1rem 1.2rem;
    line-height: 1.7;
  }
  .quest-note-box br { display: none; }

  .quest-category-title {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  .quest-category-sub { font-size: 0.8rem; }
  .quest-category-note { font-size: 0.75rem; }

  /* Quest tables: card-style on mobile */
  .quest-table { font-size: 0.78rem; }
  .quest-table thead th {
    padding: 0.5rem 0.6rem;
    font-size: 0.7rem;
  }
  .quest-table tbody td {
    padding: 0.5rem 0.6rem;
    line-height: 1.5;
  }
  .quest-table .coin-cell {
    font-size: 0.72rem;
  }
  .quest-max-coins {
    font-size: 0.9rem;
    text-align: center;
  }

  /* Region badges: stack vertically */
  .region-badges {
    flex-direction: column;
    gap: 0.4rem;
  }
  .region-badge {
    white-space: normal;
    text-align: center;
    font-size: 0.72rem;
    padding: 0.4rem 0.6rem;
  }

  /* Stamp info */
  .stamp-info { font-size: 0.8rem; padding: 0.6rem; }

  /* ── Coins & Rewards ── */
  .coin-hero .coin-desc {
    font-size: 0.85rem;
    padding: 0 0.5rem;
    line-height: 1.8;
  }
  .starter-box {
    padding: 1.2rem;
    margin-bottom: 2rem;
    display: block;
  }
  .starter-box .price { font-size: 1.5rem; }
  .starter-box .coins-given { font-size: 0.65rem; }
  .starter-box .includes { font-size: 0.75rem; }

  /* Coin flow: vertical on mobile */
  .coin-flow {
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem;
    align-items: center;
  }
  .flow-step {
    flex-direction: row;
    gap: 0.6rem;
    min-width: auto;
    width: 100%;
    justify-content: center;
  }
  .flow-step .flow-emoji { font-size: 1.3rem; }
  .flow-step .flow-label { font-size: 0.75rem; }
  .flow-arrow {
    transform: rotate(90deg);
    font-size: 1rem;
    margin: 0;
  }

  /* Max coins table */
  .max-coins-table { font-size: 0.78rem; }
  .max-coins-table thead th { padding: 0.5rem 0.5rem; font-size: 0.72rem; }
  .max-coins-table tbody td { padding: 0.5rem 0.5rem; }
  .max-coins-table tbody tr:last-child { font-size: 0.88rem; }

  /* ── Overview ── */
  #overview { padding: 2.5rem 0; }
  .overview-table th {
    width: 80px;
    font-size: 0.72rem;
    padding: 0.5rem 0.5rem;
    white-space: normal;
  }
  .overview-table td {
    font-size: 0.78rem;
    padding: 0.5rem 0.5rem;
    line-height: 1.6;
  }

  /* Steps */
  .steps {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0 auto 1.5rem;
    gap: 1rem;
  }
  .step-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    text-align: left;
  }
  .step-card .step-num { font-size: 0.55rem; margin-bottom: 0; }
  .step-card .step-emoji { font-size: 2rem; margin-bottom: 0; flex-shrink: 0; }
  .step-card .step-text { font-size: 0.82rem; }
  .step-card .step-detail { font-size: 0.72rem; }

  /* App buttons */
  .app-buttons { flex-direction: column; align-items: center; gap: 0.8rem; }
  .app-btn {
    width: 80%;
    max-width: 280px;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.82rem;
  }

  /* ── FAQ ── */
  #faq { padding: 2.5rem 0.8rem; }
  .faq-question {
    padding: 0.8rem 1rem;
    gap: 0.5rem;
    font-size: 0.82rem;
    line-height: 1.5;
  }
  .faq-question .q-badge {
    font-size: 0.45rem;
    width: 24px;
  }
  .faq-answer-inner {
    padding: 0 1rem 1rem 2.4rem;
    font-size: 0.8rem;
    line-height: 1.8;
  }

  /* ── Footer CTA ── */
  .footer-cta { padding: 3rem 1rem; }
  .cta-title { line-height: 3; }
  .cta-sub {
    font-size: 0.9rem;
    line-height: 1.9;
  }
  .cta-hashtags { gap: 0.5rem; }
  .cta-hashtags span {
    font-size: 0.4rem;
    padding: 0.4rem 0.7rem;
  }

  /* ── Footer ── */
  .footer-logo { font-size: 0.4rem; }
  .footer-copy { font-size: 0.65rem; }
}

/* ========================================
   SCROLL TO TOP
   ======================================== */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: #D4607A;
  color: #fff;
  border: 3px solid #FFD1DC;
  border-radius: 8px;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-top:hover {
  transform: translateY(-3px);
  background: #FF6B9D;
}