/* ============================================================
   Taiwan Pop — Main Stylesheet
   Taiwan × New York Cultural Exchange 2026
   Style: Direction C — Dark banner + clean white content
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Brand: Magenta as primary */
  --primary:       #f52281;
  --primary-light: #ff5ca8;
  --primary-dark:  #c4005e;
  /* Brand: Neon Green as accent */
  --accent:        #00ff00;
  --accent-light:  #66ff66;
  /* All-black base */
  --bg:            #000000;
  --bg-alt:        #0a0a0a;
  --bg-dark:       #000000;
  --bg-dark2:      #0d0d0d;
  --text:          #ffffff;
  --text-muted:    rgba(255,255,255,.6);
  --text-light:    rgba(255,255,255,.35);
  --border:        rgba(255,255,255,.1);
  --shadow-sm:     0 1px 4px rgba(0,0,0,.5);
  --shadow-md:     0 4px 16px rgba(0,0,0,.6);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.7);
  --radius:        12px;
  --radius-sm:     6px;
  --radius-lg:     20px;
  --transition:    0.3s ease;
  --nav-h:         68px;
  --font-sans:     'Montserrat', 'Noto Sans TC', sans-serif;
  --font-tc:       'Noto Sans TC', sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  overflow-x: hidden; /* prevent horizontal scroll from wide iframe */
}

body {
  font-family: var(--font-tc);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

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

.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--bg-dark);
  color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-dark .section-tag { color: var(--primary-light); }

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.section-dark .section-sub { color: rgba(255,255,255,.65); }

.section-more { text-align: center; margin-top: 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,34,129,.45);
}

.btn-ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.5);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.25);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(0,0,0,.92);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  transition: color var(--transition);
  flex-shrink: 0;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

/* "Pop" in magenta always */
.nav-logo span { color: var(--primary); }
#navbar.scrolled .nav-logo { color: #fff; }
#navbar.scrolled .nav-logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: .3px;
}

.nav-link:hover { color: #fff; background: rgba(255,255,255,.15); }

#navbar.scrolled .nav-link { color: rgba(255,255,255,.7); }
#navbar.scrolled .nav-link:hover { color: var(--primary); background: rgba(245,34,129,.1); }

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  border-radius: 50px;
  padding: 8px 20px;
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,34,129,.5);
}

#navbar.scrolled .nav-cta { color: #fff !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}
#navbar.scrolled .hamburger span { background: #fff; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   BANNER (YouTube Video Background)
   ============================================================ */
#banner {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video fills full banner */
.video-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Cover entire area, maintaining 16:9 */
  width: 100vw;
  height: 56.25vw;   /* 100vw × (9/16) */
  min-width: 177.78vh; /* 100vh × (16/9) */
  min-height: 100vh;
}

/* Dark gradient overlay — brand black */
.banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,.72) 0%,
      rgba(0,0,0,.50) 45%,
      rgba(0,0,0,.88) 100%
    );
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  max-width: 860px;
}

.banner-tag {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 16px;
  /* subtle neon glow */
  text-shadow: 0 0 12px rgba(245,34,129,.6);
}

.banner-title {
  margin-bottom: 24px;
  line-height: 1;
}

.banner-logo-img {
  width: clamp(280px, 50vw, 560px);
  height: auto;
  /* neon glow matching the logo's green/magenta */
  filter: drop-shadow(0 0 24px rgba(0,255,0,.5))
          drop-shadow(0 0 48px rgba(245,34,129,.35));
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(0,255,0,.45))
            drop-shadow(0 0 40px rgba(245,34,129,.30));
  }
  50% {
    filter: drop-shadow(0 0 32px rgba(0,255,0,.70))
            drop-shadow(0 0 60px rgba(245,34,129,.50));
  }
}

.banner-sub {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  color: rgba(255,255,255,.85);
  margin-bottom: 40px;
  letter-spacing: .5px;
}

.banner-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll down indicator */
.scroll-down {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.7);
  animation: bounce 2s ease-in-out infinite;
  transition: color var(--transition);
}
.scroll-down:hover { color: #fff; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   CURATORIAL CONCEPT
   ============================================================ */

/* ── Part 1: Hero split ── */
.concept-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 88vh;
}

.concept-hero-img {
  position: relative;
  overflow: hidden;
}

.concept-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.7) saturate(1.1);
  transition: transform 1s ease;
}

.concept-hero:hover .concept-hero-img img { transform: scale(1.03); }

/* fade right into black */
.concept-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 55%, #000 100%);
}

.concept-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 80px 52px;
  background: #000;
}

.concept-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #00ff00;
  text-shadow: 0 0 10px rgba(0,255,0,.5);
  margin-bottom: 24px;
  display: block;
}

.concept-title {
  font-family: var(--font-sans);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 10px;
  color: #fff;
}

.concept-title em {
  font-style: normal;
  color: var(--primary);
  text-shadow: 0 0 24px rgba(245,34,129,.4);
}

.concept-slogan {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 36px;
}

.concept-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-bottom: 32px;
}

.concept-manifesto {
  font-size: 16px;
  line-height: 2;
  color: rgba(255,255,255,.7);
  font-weight: 300;
  max-width: 460px;
}

/* ── Part 2: Pillar rows ── */
.concept-pillars { background: #000; }

.pillar-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.pillar-row--reverse { direction: rtl; }
.pillar-row--reverse > * { direction: ltr; }

.pillar-img {
  position: relative;
  overflow: hidden;
}

.pillar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.6) saturate(1.1);
  transition: transform .8s ease, filter .8s ease;
}

.pillar-row:hover .pillar-img img {
  transform: scale(1.05);
  filter: brightness(.75) saturate(1.2);
}

.pillar-img-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  padding: 5px 14px;
  border-radius: 100px;
  color: rgba(255,255,255,.7);
}

.pillar-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 64px;
  position: relative;
  background: #000;
}

/* brand colour left border */
.pillar-text::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 3px;
}

.pillar-row--reverse .pillar-text::before { left: auto; right: 0; }

.pillar-text--magenta::before { background: var(--primary); box-shadow: 0 0 20px rgba(245,34,129,.4); }
.pillar-text--green::before   { background: var(--accent);  box-shadow: 0 0 20px rgba(0,255,0,.4); }
.pillar-text--blue::before    { background: #0080d6;         box-shadow: 0 0 20px rgba(0,128,214,.4); }

.pillar-num {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.pillar-text--magenta .pillar-num { color: var(--primary); }
.pillar-text--green   .pillar-num { color: var(--accent); }
.pillar-text--blue    .pillar-num { color: #0080d6; }

.pillar-text h3 {
  font-family: var(--font-sans);
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #fff;
}

.pillar-text p {
  font-size: 15px;
  line-height: 2;
  color: rgba(255,255,255,.6);
  font-weight: 300;
  max-width: 400px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .concept-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .concept-hero-img {
    height: 50vw;
    min-height: 280px;
  }
  .concept-hero-img::after {
    background: linear-gradient(to bottom, transparent 55%, #000 100%);
  }
  .concept-hero-text {
    padding: 48px 32px;
  }
  .concept-manifesto { max-width: 100%; }

  .pillar-row,
  .pillar-row--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    min-height: auto;
  }
  .pillar-img { height: 56vw; min-height: 240px; }
  .pillar-text { padding: 40px 32px; }
  .pillar-text p { max-width: 100%; }
  .pillar-row--reverse .pillar-text::before { left: 0; right: auto; }
}

/* ============================================================
   ARTICLES
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.article-card {
  background: #0d0d0d;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.article-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
}

.article-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.article-card:hover .article-img-wrap img { transform: scale(1.06); }

.article-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 50px;
}

.article-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-date {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: .5px;
}

.article-body h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.article-body h3 { color: #fff; }
.article-body h3 a:hover { color: var(--primary); }

.article-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 4px;
  flex: 1;
}

/* ============================================================
   EVENTS (6 Cards)
   ============================================================ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.event-card {
  background: var(--bg-dark2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.event-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245,34,129,.4);
  box-shadow: 0 12px 40px rgba(245,34,129,.15);
}

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

.event-num {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--primary-light);
  opacity: .8;
}

.event-icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 4px;
}

.event-card h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.event-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--primary-light);
  font-family: var(--font-sans);
  font-weight: 600;
}

.event-desc {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  flex: 1;
}

.event-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-light);
  margin-top: 8px;
  transition: color var(--transition), gap var(--transition);
  display: inline-block;
}

.event-link:hover { color: #fff; }

/* ============================================================
   CALENDAR
   ============================================================ */
.calendar-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.calendar-box {
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.cal-nav h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.cal-nav button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  line-height: 1;
}

.cal-nav button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.cal-weekdays span {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 0;
  letter-spacing: .5px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: default;
  transition: background var(--transition);
  gap: 2px;
}

.cal-day.other-month { color: var(--text-light); }

.cal-day.today {
  background: rgba(245,34,129,.15);
  color: var(--primary-light);
  font-weight: 800;
}

.cal-day.has-event {
  cursor: pointer;
  background: rgba(245,34,129,.08);
}

.cal-day.has-event:hover { background: rgba(245,34,129,.2); }

.cal-day.has-event .cal-dot-wrap {
  display: flex;
  gap: 3px;
  justify-content: center;
}

.cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}

.cal-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* Upcoming events panel */
.upcoming-box {
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.upcoming-box h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.upcoming-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.upcoming-date-badge {
  flex-shrink: 0;
  width: 48px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  box-shadow: 0 2px 8px rgba(245,34,129,.4);
}

.upcoming-date-badge .day {
  display: block;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.upcoming-date-badge .month {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  opacity: .85;
}

.upcoming-info h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.upcoming-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.upcoming-range {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.4px;
  margin-bottom: 3px;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
}

.footer-logo span { color: var(--primary); }

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
  color: rgba(255,255,255,.6);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.75);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--primary-light); }

.contact-list li {
  font-size: 14px;
  color: rgba(255,255,255,.6);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(0,0,0,.96);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(255,255,255,.08);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s ease, opacity .35s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link { color: rgba(255,255,255,.7) !important; text-align: center; }
  .nav-link:hover { color: var(--primary) !important; background: rgba(245,34,129,.1); }

  .nav-cta { text-align: center; }

  .section { padding: 60px 0; }

  .events-grid { grid-template-columns: 1fr; }

  .articles-grid { grid-template-columns: 1fr; }


  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand { grid-column: auto; }

  .banner-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {

  .cal-day { font-size: 12px; }
}

/* ============================================================
   EVENT MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(13,27,42,.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
  overflow: hidden;
  transform: translateY(20px) scale(.97);
  transition: transform .3s ease;
}

.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  background: var(--bg-dark);
  padding: 28px 28px 24px;
  position: relative;
}

.modal-num {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--primary-light);
  margin-bottom: 8px;
}

.modal-icon { font-size: 40px; line-height: 1; margin-bottom: 10px; }

.modal-title {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: none;
  color: rgba(255,255,255,.8);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,.25); }

.modal-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.modal-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--primary);
}

.modal-desc {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  line-height: 1.75;
}

.modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
  transition: color var(--transition);
}
.modal-cta:hover { color: var(--primary-dark); }

@media (max-width: 480px) {
  .modal-title { font-size: 20px; }
  .modal-header { padding: 24px 20px 20px; }
  .modal-body { padding: 20px; }
}

/* ============================================================
   DISCOVER: NYC MAP + QUIZ
   ============================================================ */

/* ── Map section ── */
#quiz { background: var(--bg-dark); }

.map-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 60px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.06);
}

.map-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.map-scroll:active { cursor: grabbing; }
.map-scroll::-webkit-scrollbar { height: 4px; }
.map-scroll::-webkit-scrollbar-track { background: rgba(0,0,0,.3); }
.map-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }

.map-stage {
  position: relative;
  width: 1600px;
  height: 520px;
  flex-shrink: 0;
}

.map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  display: block;
}

/* ── Scroll hint badge ── */
.map-hint-badge {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8,12,16,.82);
  color: rgba(255,255,255,.85);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity .4s;
}
.map-hint-badge.show { opacity: 1; }
.map-hint-badge.fade { opacity: 0; }

/* ── Map footer ── */
.map-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(0,0,0,.4);
  border-top: 1px solid rgba(255,255,255,.06);
  flex-wrap: wrap;
}
.map-footer-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.map-footer-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  color: rgba(255,255,255,.35);
  transition: all .3s var(--transition);
}
.map-footer-dot.done-partial {
  background: #FB923C;
  border-color: #FB923C;
  color: white;
}
.map-footer-dot.done-perfect {
  background: #FFD700;
  border-color: #FFD700;
  color: #1a1200;
}
.map-footer-text {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  font-weight: 500;
  margin-left: auto;
}
.map-footer-text strong { color: var(--primary); }
.map-card-text {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  font-weight: 600;
}
.map-card-text strong { color: #FFD700; }

/* ── Map pins ── */
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.map-pin:focus-visible { outline: 2px solid white; border-radius: 50%; }

.pin-body {
  width: 42px; height: 42px;
  background: rgba(13,27,42,.92);
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; z-index: 2;
  box-shadow: 0 4px 20px rgba(0,0,0,.6);
  transition: transform .2s var(--transition), border-color .2s, background .3s;
  gap: 0;
}
.map-pin:hover .pin-body,
.map-pin:focus-visible .pin-body {
  transform: scale(1.18) translateY(-2px);
  border-color: rgba(255,255,255,.8);
}
.map-pin.done-partial .pin-body {
  background: #FB923C;
  border-color: #FB923C;
}
.map-pin.done-perfect .pin-body {
  background: #FFD700;
  border-color: #FFD700;
  box-shadow: 0 0 18px rgba(255,215,0,.55), 0 4px 20px rgba(0,0,0,.6);
}

.pin-emoji { font-size: 16px; line-height: 1; }
.pin-num {
  font-size: 8px; font-weight: 800;
  color: rgba(255,255,255,.55);
  line-height: 1;
}
.map-pin.done-partial .pin-num { color: rgba(255,255,255,.85); }
.map-pin.done-perfect .pin-num { color: rgba(20,14,0,.8); }

/* Pulsing ring */
.pin-ring {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(1);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--pc, var(--primary));
  opacity: .8;
  z-index: 1;
  animation: pinPulse 2.4s ease-out infinite;
  pointer-events: none;
}
.map-pin.done-partial .pin-ring,
.map-pin.done-perfect .pin-ring { display: none; }
@keyframes pinPulse {
  0%   { transform: translate(-50%,-50%) scale(1);   opacity: .7; }
  100% { transform: translate(-50%,-50%) scale(2.6); opacity: 0; }
}

/* Tooltip */
.pin-label {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(8,12,16,.94);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 8px 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  text-align: center;
  backdrop-filter: blur(10px);
  z-index: 30;
}
.map-pin:hover .pin-label,
.map-pin:focus-visible .pin-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.pin-label strong { display: block; font-size: 12px; color: white; font-weight: 700; }
.pin-label span   { display: block; font-size: 10px; color: rgba(255,255,255,.45); margin-top: 2px; }

/* ── Quiz Overlay (full-screen, slides up) ── */
.quiz-overlay {
  position: fixed; inset: 0;
  z-index: 3000;
  background: var(--bg-dark);
  transform: translateY(100%);
  transition: transform .55s cubic-bezier(0.16,1,.3,1);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.quiz-overlay.open { transform: translateY(0); }

.quiz-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  min-height: 100dvh;
}

/* Back button */
.quiz-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px;
  padding: 8px 18px;
  cursor: pointer;
  margin-bottom: 2rem;
  transition: color .2s, border-color .2s, background .2s;
  font-family: var(--font-sans);
}
.quiz-back:hover { color: white; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); }

/* Event header */
.quiz-ev-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 6px;
}
.quiz-ev-title {
  font-size: clamp(1.3rem,4vw,2rem);
  font-weight: 800; letter-spacing: -.02em;
  color: white; line-height: 1.15;
  margin-bottom: 1.6rem;
}

/* Score dots */
.quiz-dots {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.quiz-dot {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,.25);
  transition: all .3s;
}

/* Progress bar */
.quiz-prog-wrap { margin-bottom: 1.5rem; }
.quiz-prog-label {
  display: flex; justify-content: space-between;
  font-size: 11px; color: rgba(255,255,255,.4);
  font-weight: 600; margin-bottom: 6px;
}
.quiz-prog-bar-track {
  height: 3px; background: rgba(255,255,255,.1);
  border-radius: 2px; overflow: hidden;
}
.quiz-prog-fill {
  height: 100%; border-radius: 2px;
  transition: width .45s cubic-bezier(0.16,1,.3,1);
}

/* Question card (white on dark bg) */
.quiz-q-card {
  background: white; border-radius: 18px;
  padding: 2rem; margin-bottom: 1rem;
  animation: quizSlideUp .4s cubic-bezier(0.16,1,.3,1);
}
@keyframes quizSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.quiz-q-num {
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #8a9ab0; margin-bottom: 10px;
}
.quiz-q-text {
  font-family: var(--font-tc);
  font-size: 1.05rem; font-weight: 700;
  line-height: 1.65; color: #0f2420;
  margin-bottom: 1.2rem;
}

/* Options */
.quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt {
  width: 100%; text-align: left;
  padding: 13px 15px;
  border: 1.5px solid #dde8e5; border-radius: 12px;
  font-family: var(--font-tc); font-size: 14px;
  color: #0f2420; background: white; cursor: pointer;
  position: relative;
  transition: border-color .15s, background .15s, transform .12s;
}
.quiz-opt:hover:not(:disabled) { border-color: #1a8c7a; background: #e6f5f2; transform: translateX(3px); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt.correct { border-color: #1a8c7a !important; background: #e6f5f2 !important; color: #0d6b5c; font-weight: 700; }
.quiz-opt.wrong   { border-color: #e8472a !important; background: #fdeee9 !important; color: #b83018; }
.quiz-opt-mark {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  font-size: 14px; opacity: 0; transition: opacity .2s;
}
.quiz-opt.correct .quiz-opt-mark,
.quiz-opt.wrong   .quiz-opt-mark { opacity: 1; }

/* Fact box */
.quiz-fact {
  background: #e8f5ee; border: 1.5px solid #b2d8cc;
  border-radius: 12px; padding: 12px 15px;
  margin-top: 12px;
  font-family: var(--font-tc); font-size: 13px;
  line-height: 1.7; color: #0d6b5c;
  display: none;
  animation: quizSlideUp .35s cubic-bezier(0.16,1,.3,1);
}
.quiz-fact.show { display: block; }
.quiz-fact-lbl {
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #1a8c7a; margin-bottom: 5px;
}

/* Next button */
.quiz-next {
  width: 100%; padding: 14px; border-radius: 100px;
  border: none; color: white; cursor: pointer;
  font-family: var(--font-sans); font-size: 14px; font-weight: 700;
  margin-top: 10px; display: none;
  transition: opacity .2s, transform .2s;
}
.quiz-next.show { display: block; }
.quiz-next:hover { opacity: .88; transform: translateY(-1px); }

/* Result card */
.quiz-result {
  background: white; border-radius: 18px;
  padding: 2.5rem 2rem; text-align: center;
  animation: quizSlideUp .5s cubic-bezier(0.16,1,.3,1);
}
.quiz-result-emoji  { font-size: 3.2rem; margin-bottom: 10px; }
.quiz-result-score  { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 6px; }
.quiz-result-msg    { font-family: var(--font-tc); font-size: 14px; color: #5a7a74; line-height: 1.65; margin-bottom: 1.2rem; }
.quiz-result-unlock {
  font-family: var(--font-tc); font-size: 13px; font-weight: 700;
  padding: 10px 22px; border-radius: 100px;
  display: inline-block; margin-bottom: 1.5rem;
}
.quiz-result-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.quiz-result-btn {
  padding: 11px 24px; border-radius: 100px;
  font-size: 13px; font-weight: 700;
  cursor: pointer; border: none;
  font-family: var(--font-sans);
  transition: opacity .2s, transform .2s;
}
.quiz-result-btn:hover { opacity: .85; transform: translateY(-2px); }
.quiz-result-btn.sec { background: #f4f7f6; color: #0f2420; border: 1.5px solid #dde8e5; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .map-stage { width: 1100px; height: 420px; }
  .pin-body  { width: 36px; height: 36px; }
  .pin-ring  { width: 36px; height: 36px; }
  .pin-emoji { font-size: 14px; }
  .quiz-inner { padding: 1.5rem 1rem 4rem; }
  .quiz-q-card { padding: 1.5rem; }
}
@media (max-width: 480px) {
  .map-stage { width: 900px; height: 360px; }
}

/* ============================================================
   ALL DONE CELEBRATION OVERLAY
   ============================================================ */
.celebrate-overlay {
  position: fixed; inset: 0;
  z-index: 5000;
  background: linear-gradient(135deg, #080C10 0%, #0d1824 55%, #180822 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
  overflow: hidden;
}
.celebrate-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Floating particles */
.celebrate-particles {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.celebrate-particle {
  position: absolute;
  bottom: -60px;
  animation: particleFloat linear infinite;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  will-change: transform, opacity;
}
@keyframes particleFloat {
  0%   { transform: translateY(0) rotate(0deg);    opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(-115vh) rotate(720deg); opacity: 0; }
}

/* Central card */
.celebrate-card {
  position: relative; z-index: 2;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  max-width: 520px; width: 100%;
  text-align: center;
  backdrop-filter: blur(24px);
  box-shadow: 0 32px 80px rgba(0,0,0,.7);
  animation: celebrateCardIn .65s cubic-bezier(0.16,1,.3,1);
}
@keyframes celebrateCardIn {
  from { opacity: 0; transform: translateY(48px) scale(.88); }
  to   { opacity: 1; transform: none; }
}

.celebrate-trophy {
  font-size: 5.5rem;
  margin-bottom: 14px;
  display: block;
  animation: trophyBounce .8s cubic-bezier(0.16,1,.3,1) .15s both;
}
@keyframes trophyBounce {
  from { transform: scale(0) rotate(-15deg); opacity: 0; }
  60%  { transform: scale(1.12) rotate(4deg); }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

.celebrate-title {
  font-family: var(--font-sans);
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  font-weight: 900; color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
}
.celebrate-sub {
  font-family: var(--font-tc);
  font-size: 15px; color: rgba(255,255,255,.7);
  line-height: 1.75; margin-bottom: 22px;
}
.celebrate-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a1000;
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 800;
  letter-spacing: .06em;
  padding: 9px 26px; border-radius: 100px;
  margin-bottom: 22px;
  box-shadow: 0 4px 24px rgba(255,215,0,.45);
}
.celebrate-invite {
  font-family: var(--font-tc);
  font-size: 15px; color: rgba(255,255,255,.58);
  margin-bottom: 2rem;
}
.celebrate-actions {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap;
}
.celebrate-btn-primary {
  display: inline-block;
  padding: 13px 28px;
  background: var(--primary); color: white;
  border-radius: 100px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 700;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
  border: none; cursor: pointer;
}
.celebrate-btn-primary:hover { opacity: .88; transform: translateY(-2px); }
.celebrate-btn-sec {
  padding: 13px 28px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 100px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.celebrate-btn-sec:hover { background: rgba(255,255,255,.15); color: white; }

@media (max-width: 480px) {
  .celebrate-card { padding: 2.2rem 1.5rem; }
  .celebrate-trophy { font-size: 4rem; }
}

/* ============================================================
   LANGUAGE TOGGLE PILL  (ZH | EN)
   ============================================================ */

/* The pill itself */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,.1);
  border-radius: 100px;
  padding: 3px;
  flex-shrink: 0;
}

/* Transparent navbar state (banner area) */
#navbar:not(.scrolled) .lang-toggle {
  background: rgba(255,255,255,.15);
}

.lang-btn {
  padding: 4px 10px;
  border-radius: 100px;
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
  line-height: 1.4;
}

.lang-btn.active {
  background: rgba(255,255,255,.2);
  color: #fff;
  box-shadow: none;
}

/* Transparent navbar: lighter text */
#navbar:not(.scrolled) .lang-btn        { color: rgba(255,255,255,.65); }
#navbar:not(.scrolled) .lang-btn.active { background: rgba(255,255,255,.22); color: white; box-shadow: none; }

/* ── Desktop: nav-lang-item is a regular flex item in nav-links ── */
.nav-lang-item {
  display: flex;
  align-items: center;
  /* extra gap before the pill to visually separate from CTA */
  margin-left: 6px;
}

/* ── Mobile: inside hamburger dropdown ── */
@media (max-width: 768px) {
  .nav-lang-item {
    margin-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 4px;
    justify-content: center;
  }

  .nav-lang-item .lang-toggle          { background: rgba(255,255,255,.1) !important; }
  .nav-lang-item .lang-btn             { color: rgba(255,255,255,.6) !important; font-size: 12px; padding: 5px 14px; }
  .nav-lang-item .lang-btn.active      { background: rgba(255,255,255,.2) !important; color: #fff !important; box-shadow: none !important; }
}

/* ============================================================
   A-WE CHARACTER SYSTEM
   ============================================================ */

/* Character sprite */
.awe-char {
  position: absolute;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 20;
}
.awe-char img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
@keyframes awe-bob {
  0%, 100% { transform: translate(-50%, -100%) translateY(0); }
  50%       { transform: translate(-50%, -100%) translateY(-5px); }
}
.awe-char.moving img { animation: awe-bob 0.38s ease-in-out infinite; }

/* Dice button — floats over map bottom-center */
.dice-btn {
  position: absolute;
  bottom: 56px; /* sit above the footer bar */
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 9px 20px 9px 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,77,117,.5);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.dice-btn:hover:not(:disabled) { transform: translateX(-50%) translateY(-3px); box-shadow: 0 8px 24px rgba(255,77,117,.6); }
.dice-btn:disabled { opacity: .5; cursor: not-allowed; transform: translateX(-50%); }
.dice-icon { font-size: 20px; display: inline-block; }
@keyframes dice-roll {
  0%   { transform: rotate(0deg)   scale(1);    }
  25%  { transform: rotate(180deg) scale(1.3);  }
  50%  { transform: rotate(360deg) scale(1);    }
  75%  { transform: rotate(540deg) scale(1.3);  }
  100% { transform: rotate(720deg) scale(1);    }
}
.dice-btn.rolling .dice-icon { animation: dice-roll .5s ease-in-out; }

/* Knowledge card modal */
.card-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,27,42,.65);
  backdrop-filter: blur(6px);
}
.card-modal.hidden { display: none; }
.card-box {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  max-width: 380px;
  width: 92%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  animation: card-in .3s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes card-in {
  from { transform: scale(.8) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0);     opacity: 1; }
}
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
}
.card-header-icon { font-size: 28px; flex-shrink: 0; }
.card-header-title { font-size: 16px; font-weight: 800; line-height: 1.3; }
.card-header-sub   { font-size: 12px; opacity: .85; margin-top: 2px; }
.card-img-wrap { width: 100%; aspect-ratio: 2/1; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-fact {
  font-size: 15px;
  font-weight: 700;
  color: #0D1B2A;
  line-height: 1.65;
  padding: 18px 24px 14px;
  margin: 0;
}
.card-choices { display: flex; gap: 12px; justify-content: center; padding: 0 24px 20px; }
.card-btn {
  flex: 1;
  padding: 13px 8px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.card-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.card-true  { background: #008F7A; color: #fff; }
.card-false { background: #FF4D75; color: #fff; }
.cm-result {
  margin: 0 24px 20px;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
}
.cm-result.hidden  { display: none; }
.cm-result.correct { background: #e6f9f5; color: #008F7A; }
.cm-result.wrong   { background: #fff0f4; color: #FF4D75; }

/* Completion modal */
.awe-complete {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,27,42,.88);
  backdrop-filter: blur(10px);
}
.awe-complete.hidden { display: none; }
#aweCelebConfetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.awe-complete-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}
.awe-complete-content img {
  width: 180px;
  height: auto;
  animation: awe-pop .55s cubic-bezier(.34,1.56,.64,1) both;
  margin-bottom: 16px;
}
@keyframes awe-pop {
  from { transform: scale(.25) rotate(-15deg); opacity: 0; }
  to   { transform: scale(1)   rotate(0deg);   opacity: 1; }
}
.awe-complete-content h2 {
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
}
.awe-complete-content p {
  color: rgba(255,255,255,.7);
  font-size: 16px;
  margin-bottom: 28px;
}
.awe-complete-content button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.awe-complete-content button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,143,122,.45);
}

/* Confetti pieces */
@keyframes confetti-fall {
  0%   { transform: translateY(-20px) rotate(0deg);   opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
.confetti-piece {
  position: absolute;
  top: 0;
  border-radius: 3px;
  animation: confetti-fall linear forwards;
}

/* ============================================================
   Board Game — 文化大富翁
   ============================================================ */

/* Status bar */
/* ===== BOARD GAME — Status Bar ===== */
.bg-status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 12px 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.bg-player-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 8px 14px;
  flex: 1;
  min-width: 160px;
}
.bg-player-card--human { border-left: 3px solid var(--primary); }
.bg-player-card--cpu   { border-left: 3px solid var(--accent); }
.bg-pc-avatar { width: 36px; height: 36px; object-fit: contain; }
.bg-pc-info   { display: flex; flex-direction: column; flex: 1; }
.bg-pc-name   { font-size: 13px; font-weight: 700; color: #fff; }
.bg-pc-lap    { font-size: 11px; color: rgba(255,255,255,.5); }
.bg-pc-lap strong { color: var(--primary); }
.bg-pc-pos    { font-size: 12px; color: rgba(255,255,255,.4); font-weight: 600; }
.bg-status-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 120px;
}
.bg-turn-msg { font-size: 13px; font-weight: 700; color: #FFD700; text-align: center; }
.bg-dice-result-display {
  font-size: 14px; font-weight: 800; color: var(--accent); min-height: 20px; text-align: center;
}

/* ===== BOARD WRAP & SCALING ===== */
.bg-board-wrap {
  width: 100%;
  overflow: hidden;
  margin-bottom: 24px;
  /* height set by JS to match scaled board */
}
.bg-board {
  position: relative;
  width: 1080px;
  height: 760px;
  transform-origin: top left;
  background: #F5F0E8;
  border: 2px solid #555;
  border-radius: 4px;
  overflow: hidden;
}

/* ===== BOARD CELLS ===== */
.bg-cell {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(0,0,0,.25);
  overflow: hidden;
  user-select: none;
}
.bg-cell-icon  { font-size: 18px; line-height: 1; }
.bg-cell-label {
  font-size: 7px; font-weight: 700; color: rgba(255,255,255,.9);
  text-align: center; line-height: 1.2; margin-top: 2px; padding: 0 3px;
}
.bg-cell-num   { font-size: 6px; color: rgba(255,255,255,.35); margin-top: 1px; }

/* Corner cells */
.bg-cell--start        { background: #00897B; }
.bg-cell--corner-chance{ background: #E65100; }
.bg-cell--corner-fate  { background: #4A148C; }
.bg-cell--start .bg-cell-icon,
.bg-cell--corner-chance .bg-cell-icon,
.bg-cell--corner-fate .bg-cell-icon { font-size: 24px; }
.bg-cell--start .bg-cell-label,
.bg-cell--corner-chance .bg-cell-label,
.bg-cell--corner-fate .bg-cell-label { font-size: 9px; }

/* Special cells */
.bg-cell--chance { background: #F9A825; }
.bg-cell--fate   { background: #6A1B9A; }
.bg-cell--rest   { background: #2E7D32; }
.bg-cell--free   { background: #455A64; }

/* Activity zone cells */
.bg-cell--zone[data-zone="lin-hwai-min"] { background: #6D4C41; }
.bg-cell--zone[data-zone="nso-paiwan"]   { background: #1A237E; }
.bg-cell--zone[data-zone="bushwick"]     { background: #BF360C; }
.bg-cell--zone[data-zone="film"]         { background: #4A148C; }
.bg-cell--zone[data-zone="pride"]        { background: #AD1457; }
.bg-cell--zone[data-zone="horse"]        { background: #1B5E20; }
.bg-cell--zone[data-zone="summerstage"]  { background: #7B5E1C; }

/* Cell highlight when occupied */
.bg-cell.occupied { box-shadow: 0 0 0 2px #FFD700 inset; }

/* ===== CENTER AREA ===== */
.bg-center {
  position: absolute;
  left: 100px; top: 100px;
  width: 880px; height: 560px;
  background: #EDE8D8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  pointer-events: none;
}
.bg-center-title {
  font-family: 'Noto Sans TC', sans-serif;
  font-size: 20px; font-weight: 900; color: #888; letter-spacing: .05em;
}
.bg-center-sub { font-size: 11px; color: #aaa; }
.bg-card-piles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 60px;
  box-sizing: border-box;
}
.bg-pile {
  width: 90px; height: 126px;
  border-radius: 10px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  border: 2px dashed rgba(255,255,255,.5);
}
.bg-pile--chance { background: #F9A825; }
.bg-pile--fate   { background: #6A1B9A; }
.bg-pile-label {
  font-size: 16px; font-weight: 900; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.bg-pile-sub { font-size: 8px; color: rgba(255,255,255,.7); }
.bg-center-info {
  text-align: center;
  border: 1px dashed #ccc;
  border-radius: 8px;
  padding: 10px 20px;
  width: 70%;
}
.bg-center-info p { font-size: 10px; color: #999; margin: 2px 0; }

/* ===== PLAYER PIECES ===== */
.bg-piece {
  position: absolute;
  width: 52px; height: 52px;
  z-index: 10;
  pointer-events: none;
  /* transitions set step-by-step in JS */
}
.bg-piece-img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.7));
}
/* Slight offset so both pieces visible when on same space */
.bg-piece--human { margin-left: -14px; }
.bg-piece--cpu   { margin-left:  14px; }

/* Dice roll animation above piece head */
.bg-dice-anim {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px; height: 38px;
  background: #FFD700;
  color: #333;
  font-size: 20px; font-weight: 900;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.4);
  z-index: 20;
  animation: bg-dice-pop .08s ease-out;
}
.bg-dice-anim.hidden { display: none; }
@keyframes bg-dice-pop {
  0%   { transform: translateX(-50%) scale(.7); }
  100% { transform: translateX(-50%) scale(1); }
}

/* ===== CONTROLS ===== */
.bg-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}
.bg-dice-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 12px 28px;
  font-size: 16px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,77,117,.4);
  transition: transform .15s, box-shadow .15s;
}
.bg-dice-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,77,117,.55); }
.bg-dice-btn:disabled { opacity: .45; cursor: not-allowed; }
@keyframes bg-dice-spin {
  0%   { transform: rotate(0deg) scale(1); }
  40%  { transform: rotate(360deg) scale(1.3); }
  100% { transform: rotate(720deg) scale(1); }
}
.bg-dice-btn.rolling #bgDiceIcon { display: inline-block; animation: bg-dice-spin .5s ease-out; }

/* ===== MODALS (shared) ===== */
.bg-modal {
  position: fixed;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,27,42,.78);
  backdrop-filter: blur(8px);
}
.bg-modal.hidden { display: none; }

/* Question modal */
.bg-modal-box {
  background: #fff;
  border-radius: 24px;
  padding: 28px 28px 24px;
  max-width: 440px; width: 92%;
  text-align: center;
}
.bg-modal-zone {
  display: inline-block;
  font-size: 12px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  background: #f0f0f0; border-radius: 100px;
  padding: 4px 14px; margin-bottom: 14px; color: #555;
}
.bg-modal-q {
  font-size: 17px; font-weight: 700;
  color: #1a1a2e; line-height: 1.5; margin-bottom: 18px;
}
.bg-modal-opts { display: flex; flex-direction: column; gap: 10px; }
.bg-opt-btn {
  background: #f5f5f5;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: left;
  transition: background .15s, border-color .15s;
  color: #222;
}
.bg-opt-btn:hover:not(:disabled) { background: #eef7f5; border-color: var(--primary); }
.bg-opt-btn.correct { background: #d4f5ec; border-color: var(--primary); color: #006050; }
.bg-opt-btn.wrong   { background: #ffe5eb; border-color: var(--accent);  color: #b00030; }
.bg-modal-result {
  margin-top: 14px; padding: 12px 16px; border-radius: 12px;
  font-size: 13px; font-weight: 600; line-height: 1.5; text-align: left;
}
.bg-modal-result.correct { background: #d4f5ec; color: #005040; }
.bg-modal-result.wrong   { background: #fff0f3; color: #900030; }
.bg-modal-result.hidden  { display: none; }
.bg-modal-next {
  display: block; width: 100%; margin-top: 14px;
  background: var(--primary); color: #fff; border: none;
  border-radius: 12px; padding: 11px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.bg-modal-next:hover { background: #007060; }
.bg-modal-next.hidden { display: none; }

/* Chance / Fate card */
.bg-card-box {
  background: #fff; border-radius: 24px;
  overflow: hidden; max-width: 360px; width: 92%; text-align: center;
}
.bg-card-type {
  padding: 16px 20px 12px; font-size: 20px;
  font-weight: 900; letter-spacing: .04em; color: #fff;
}
.bg-card-box--chance .bg-card-type { background: #c8920a; }
.bg-card-box--fate   .bg-card-type { background: var(--accent); }
.bg-card-text {
  padding: 18px 24px 6px; font-size: 15px;
  font-weight: 700; color: #1a1a2e; line-height: 1.5;
}
.bg-card-effect { padding: 4px 24px 16px; font-size: 13px; color: #666; font-weight: 600; }

/* Win modal */
.bg-win-box {
  background: #fff; border-radius: 28px;
  padding: 36px 32px; max-width: 400px; width: 92%;
  text-align: center; position: relative; overflow: hidden;
}
.bg-win-confetti { position: absolute; inset: 0; pointer-events: none; }
.bg-win-img { width: 140px; height: auto; margin-bottom: 8px; display: block; margin-left: auto; margin-right: auto; }
.bg-win-img.hidden { display: none; }
.bg-win-icon  { font-size: 52px; margin-bottom: 8px; }
.bg-win-title { font-size: 24px; font-weight: 900; color: #1a1a2e; margin-bottom: 8px; }
.bg-win-sub   { font-size: 14px; color: #555; margin-bottom: 20px; line-height: 1.6; }

/* Confetti pieces */
.confetti-piece {
  position: absolute;
  top: -10px;
  border-radius: 2px;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  0%   { top: -10px; transform: rotate(0deg); opacity: 1; }
  100% { top: 110%; transform: rotate(720deg); opacity: 0; }
}

/* Responsive */
@media (max-width: 700px) {
  .bg-status-bar { padding: 10px 14px; gap: 8px; }
  .bg-player-card { padding: 6px 10px; min-width: 130px; }
  .bg-pc-avatar { width: 28px; height: 28px; }
}
