/* ════════════════════════════════════════════════
   TREASURE HUNT AMUSEMENT PARK — Classic & Colorful
   ════════════════════════════════════════════════ */

:root {
  --red:    #e63946;
  --yellow: #ffd700;
  --blue:   #3a86ff;
  --green:  #06d6a0;
  --purple: #8338ec;
  --orange: #fb5607;
  --cream:  #fffbf0;
  --bg:     #fff9ec;
  --text:   #1a1209;
  --muted:  #5a4a2a;
  --border: #e8d5a0;
  --card-bg: #ffffff;
  --shadow: rgba(80,50,10,0.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── HEADER ── */
.park-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--red);
  border-bottom: 4px solid var(--yellow);
  box-shadow: 0 4px 0 var(--orange);
}
.park-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.park-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.park-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.park-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.01em;
}
.park-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
}
.park-director {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.director-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.director-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.04em;
}

/* ── BANNER FLAGS ── */
.banner-flags {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  flex-shrink: 0;
}
.flag {
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 36px solid;
  margin: 0 2px;
  flex-shrink: 0;
}
.flag-red    { border-top-color: var(--red); }
.flag-yellow { border-top-color: var(--yellow); }
.flag-blue   { border-top-color: var(--blue); }

/* ── HERO ── */
.park-hero {
  background: linear-gradient(180deg, #1a0a3a 0%, #3a1060 40%, #7b2d8b 100%);
  padding: 0 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.park-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,215,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  padding: 3rem 2rem 2rem;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}
.park-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 4px 24px rgba(255,215,0,0.4), 3px 3px 0 var(--red);
  margin-bottom: 1rem;
}
.park-tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.hero-stat { text-align: center; }
.hnum {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}
.hlabel {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 3px;
}
.hero-dot { color: rgba(255,255,255,0.3); font-size: 1.5rem; }

/* ── RIDES SECTION ── */
.rides-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.section-sub {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ── RIDES GRID ── */
.rides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

/* ── RIDE CARD ── */
.ride-card {
  background: var(--card-bg);
  border-radius: 20px;
  border: 3px solid var(--border);
  box-shadow: 0 6px 0 var(--border), 0 8px 24px var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ride-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 0 var(--border), 0 16px 32px var(--shadow);
}
.ride-soon {
  opacity: 0.75;
}
.ride-soon:hover {
  transform: none;
  cursor: default;
  box-shadow: 0 6px 0 var(--border), 0 8px 24px var(--shadow);
}

/* Flagship gold border */
.ride-flagship {
  border-color: var(--yellow);
  box-shadow: 0 6px 0 #c9a600, 0 8px 32px rgba(255,215,0,0.2);
}
.ride-flagship:hover {
  box-shadow: 0 12px 0 #c9a600, 0 16px 40px rgba(255,215,0,0.3);
}

/* Ribbon badge */
.ride-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--yellow);
  color: #5a3a00;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  padding: 5px 0;
  z-index: 3;
}

/* Status badge */
.ride-status {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 4;
}
.open  { background: #d4f7e7; color: #0a6640; border: 1.5px solid #0a6640; }
.soon  { background: #fff3cd; color: #7a5000; border: 1.5px solid #c9a600; }

/* Ride image */
.ride-img-wrap {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #f0f8ff, #fff9ec);
  border-bottom: 3px solid var(--border);
  overflow: hidden;
}
.ride-flagship .ride-img-wrap {
  background: linear-gradient(135deg, #fff9d6, #fffbec);
  border-bottom-color: var(--yellow);
  padding-top: 28px; /* offset for ribbon */
}
.ride-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  display: block;
  padding: 12px;
  transition: transform 0.3s;
}
.ride-card:hover .ride-img {
  transform: scale(1.04);
}
.ride-img-soon {
  filter: grayscale(60%) opacity(0.6);
}
.construction-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #5a3a00;
  background: rgba(255,245,200,0.5);
  letter-spacing: 0.05em;
}

/* Ride info */
.ride-info {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.ride-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.ride-creator {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -4px;
}
.ride-desc {
  font-size: 0.85rem;
  color: #3a2a0a;
  line-height: 1.6;
  flex: 1;
}
.ride-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 20px;
  background: #fef3c7;
  color: #7a5000;
  border: 1.5px solid #f6d860;
}
.ride-prize-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffbeb;
  border: 1.5px solid var(--yellow);
  border-radius: 10px;
  padding: 8px 14px;
}
.prize-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.prize-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: #7a4f00;
}
.ride-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}
.enter-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 9px 20px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 0 #a01020;
  transition: transform 0.15s, box-shadow 0.15s;
}
.ride-card:hover .enter-btn {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #a01020;
}
.enter-ext {
  background: var(--blue);
  box-shadow: 0 4px 0 #1a56cc;
}
.ride-card:hover .enter-ext {
  box-shadow: 0 6px 0 #1a56cc;
}
.enter-locked {
  background: #ccc;
  color: #666;
  box-shadow: 0 4px 0 #999;
  cursor: default;
}
.ride-stats {
  font-size: 0.68rem;
  color: var(--muted);
}

/* ── ABOUT SECTION ── */
.about-section {
  background: #fff;
  border-top: 4px solid var(--border);
  border-bottom: 4px solid var(--border);
  padding: 3rem 1.5rem;
}
.about-tent {
  max-width: 1000px;
  margin: 0 auto;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
.about-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 1rem;
}
.about-text p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}
.director-card {
  background: var(--red);
  border-radius: 16px;
  padding: 24px;
  color: #fff;
  box-shadow: 0 6px 0 #a01020, 0 8px 24px var(--shadow);
}
.dc-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
}
.dc-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--yellow);
  margin-bottom: 10px;
}
.dc-desc {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

/* ── FOOTER ── */
.park-footer {
  background: #1a0a3a;
  padding: 12px 1.5rem 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer-flags {
  display: flex;
  gap: 2px;
}
.footer-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  max-width: 500px;
  line-height: 1.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .rides-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats { gap: 1rem; }
  .hnum { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .banner-flags .flag:nth-child(n+10) { display: none; }
  .park-title { font-size: 2.2rem; }
}

/* ── View Counter ── */
.view-counter-wrap {
  display: flex;
  justify-content: center;
  padding: 0.75rem 0;
}
.view-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.4);
}
.vc-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--yellow);
}
.vc-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
}

/* ── Logo Image ── */
.park-logo-img {
  height: 52px;
  width: auto;
  flex-shrink: 0;
  border-radius: 4px;
}
