:root {
    --ink: #FBFAF7;
    --ink-soft: rgba(251,250,247,0.72);
    --ink-faint: rgba(251,250,247,0.46);
    --glass: rgba(255,255,255,0.09);
    --glass-border: rgba(255,255,255,0.15);
    --glass-strong: rgba(255,255,255,0.17);
  }
  * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  html, body {
    margin: 0; padding: 0;
    background: #0B1418;
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    overflow-x: clip;
    scrollbar-color: rgba(255,255,255,0.22) transparent;
  }
  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 999px; }
  ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.28); }
  @media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; }
    .bg-layer, .stat-tile, .scrubber-fill, .scrubber-thumb { transition-duration: 0.01ms !important; }
  }

  .bg-layer {
    position: fixed; inset: 0; z-index: -3;
    transition: opacity 0.8s ease;
  }
  .bg-layer.a { opacity: 1; }
  .bg-layer.b { opacity: 0; }
  .grain {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  .shell { max-width: 480px; margin: 0 auto; padding: 0 20px 80px; min-height: 100vh; position: relative; }

  .brand-bar { padding: 20px 2px 0; }
  .brand-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 11px;
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink-faint); text-decoration: none; transition: color 0.2s ease;
  }
  .brand-link:hover, .brand-link:active { color: var(--ink-soft); }

  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 2px 8px;
    font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px;
    color: var(--ink-soft);
  }
  .topbar .place { display: flex; align-items: center; gap: 6px; }
  .topbar .place svg { width: 15px; height: 15px; opacity: 0.7; }
  .topbar .date { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.04em; }

  /* Entrance choreography */
  .reveal { opacity: 0; transform: translateY(14px); animation: revealUp 0.7s cubic-bezier(0.16,1,0.3,1) forwards; }
  .r1 { animation-delay: 0.05s; }
  .r2 { animation-delay: 0.15s; }
  .r3 { animation-delay: 0.25s; }
  .r4 { animation-delay: 0.35s; }
  .r5 { animation-delay: 0.45s; }
  @keyframes revealUp { to { opacity: 1; transform: translateY(0); } }

  /* Hero */
  .hero { padding: 44px 2px 8px; text-align: center; position: relative; }

  /* Month panels: all 12 exist fully rendered in the raw HTML at all
     times (that's the point, for crawlability). JS only toggles which
     one is visible via the .active class; it never generates content.
     Two coordinated sets share the same data-idx: hero panels (in the
     hero section) and stats panels (further down, near the chart) -
     both toggle together whenever the active month changes. */
  .month-panel { display: none; }
  .hero-panel.active { display: block; animation: panelFadeIn 0.35s ease; }
  .stats-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; animation: panelFadeIn 0.35s ease; }
  @keyframes panelFadeIn { from { opacity: 0; } to { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) {
    .hero-panel.active, .stats-panel.active { animation: none; }
  }

  .hero-glow {
    position: absolute; top: -20px; left: 50%; width: 280px; height: 280px;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--glow-color, #E8B85C) 0%, transparent 68%);
    filter: blur(40px);
    opacity: 0.35;
    z-index: -1;
    animation: heroBreathe 5s ease-in-out infinite;
    transition: background 0.8s ease;
    pointer-events: none;
  }
  @keyframes heroBreathe {
    0%, 100% { opacity: 0.28; transform: translateX(-50%) scale(0.96); }
    50% { opacity: 0.42; transform: translateX(-50%) scale(1.04); }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-glow { animation: none; opacity: 0.35; }
  }
  .hero-temp-row { display: flex; align-items: center; justify-content: center; gap: 18px; }
  .hero-temp {
    font-family: 'Manrope', sans-serif; font-weight: 800;
    font-size: 88px; line-height: 1; letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 4px 30px rgba(0,0,0,0.2);
    display: inline-block;
  }
  .hero-temp.pop { animation: tempPop 0.5s cubic-bezier(0.34,1.56,0.64,1); }
  @keyframes tempPop { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 100% { transform: scale(1); } }
  .hero-temp .unit { font-size: 34px; font-weight: 700; opacity: 0.5; vertical-align: 14px; }

  /* Score ring */
  .star-rating-wrap { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .star-rating { display: flex; gap: 2px; }
  .star {
    font-size: 26px; color: rgba(255,255,255,0.18); line-height: 1;
    transition: color 0.4s ease, transform 0.4s cubic-bezier(0.34,1.56,0.64,1), text-shadow 0.4s ease;
  }
  .star.filled { color: var(--star-color, #E8B85C); text-shadow: 0 0 10px var(--star-color, #E8B85C); }
  .star.pop { animation: starPop 0.5s cubic-bezier(0.34,1.56,0.64,1); }
  @keyframes starPop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
  .star-rating-sub {
    font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 600;
    color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em;
  }

  .hero-range {
    font-family: 'IBM Plex Mono', monospace; font-size: 14px; color: var(--ink-soft);
    margin: 10px 0 4px;
  }
  .hero-mood {
    font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 20px;
    margin-bottom: 4px;
  }
  .hero-sub {
    font-size: 14px; color: var(--ink-soft); max-width: 320px; margin: 0 auto;
    line-height: 1.5;
  }

  /* Pack tags */
  .event-badge {
    display: flex; gap: 10px; align-items: flex-start; text-align: left;
    margin-top: 16px; padding: 12px 16px; border-radius: 14px;
    background: rgba(232, 184, 92, 0.12); border: 1px solid rgba(232, 184, 92, 0.35);
  }
  .event-badge-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
  .event-badge-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 13px; color: #E8B85C; margin-bottom: 3px; }
  .event-badge-body { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }

  .pack-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
  .pack-tag {
    font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
    background: var(--glass); border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    display: flex; align-items: center; gap: 5px;
    transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1);
  }
  .pack-tag:active { transform: scale(0.94); }

  /* Scrubber */
  .scrubber-wrap { padding: 28px 2px 6px; }
  .scrubber-label {
    display: flex; justify-content: space-between; font-size: 11px;
    color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em;
    font-weight: 600; margin-bottom: 10px;
  }
  .scrubber { position: relative; height: 44px; display: flex; align-items: center; }
  .scrubber-track {
    position: relative; width: 100%; height: 6px; border-radius: 999px;
    background: var(--glass); border: 1px solid var(--glass-border);
    cursor: pointer;
  }
  .scrubber-fill {
    position: absolute; top: 0; left: 0; height: 100%; border-radius: 999px;
    background: rgba(255,255,255,0.55);
  }
  .scrubber-thumb {
    position: absolute; top: 50%; width: 26px; height: 26px; border-radius: 50%;
    background: var(--ink); box-shadow: 0 3px 10px rgba(0,0,0,0.35), 0 0 0 5px rgba(255,255,255,0.14);
    transform: translate(-50%, -50%);
    cursor: grab; touch-action: none;
  }
  .scrubber-thumb.pulse::before {
    content: ''; position: absolute; inset: -8px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.5);
    animation: pulseRing 1.8s ease-out infinite;
  }
  @keyframes pulseRing { 0% { transform: scale(0.7); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }
  .scrubber-thumb:active { cursor: grabbing; }

  /* Rain-intensity bar chart strip */
  .chart-strip {
    display: flex; align-items: flex-end; gap: 6px; height: 108px;
    padding: 16px 2px 0; margin-top: 26px;
  }
  .chart-bar-col {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    height: 100%; cursor: pointer; gap: 6px; position: relative;
    transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1);
  }
  .chart-bar-col:active { transform: scale(0.92); }
  .chart-bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; position: relative; }
  .chart-bar {
    width: 100%; border-radius: 6px 6px 3px 3px;
    background: var(--glass-border);
    transition: background 0.3s ease, box-shadow 0.3s ease;
    min-height: 4px;
  }
  .chart-bar-col.active .chart-bar { background: var(--ink) !important; box-shadow: 0 0 16px rgba(255,255,255,0.35) !important; }
  .chart-bar-label {
    font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--ink-faint);
    transition: color 0.3s ease;
  }
  .chart-bar-col.active .chart-bar-label, .chart-bar-col.top3 .chart-bar-label { color: var(--ink); font-weight: 600; }

  .top3-badge {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    font-size: 11px; line-height: 1;
    animation: sparkle 2.2s ease-in-out infinite;
  }
  .top3-badge:nth-child(1) { animation-delay: 0s; }
  @keyframes sparkle {
    0%, 100% { opacity: 0.65; transform: translateX(-50%) scale(0.9); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
  }

  /* Stat tiles */
  /* Stats grid layout now lives on .stats-panel.active directly (see above) */
  .stat-tile {
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: 18px; padding: 16px 18px;
    backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), inset 0 -1px 0 rgba(0,0,0,0.12);
    transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1), background 0.2s ease;
  }
  .stat-tile:active { transform: scale(0.965); background: var(--glass-strong); }
  .stat-tile-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--ink-faint); margin-bottom: 10px;
  }
  .stat-tile-label svg { width: 13px; height: 13px; }
  .stat-tile-value { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -0.01em; }
  .stat-tile-value .small { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
  .stat-tile-detail { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }

  /* Callout */
  .callout {
    margin-top: 4px; margin-bottom: 18px; padding: 20px 22px; border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05));
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
    display: flex; gap: 14px; align-items: flex-start;
    transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1);
  }
  .callout:active { transform: scale(0.98); }
  .callout-icon { font-size: 26px; flex-shrink: 0; margin-top: 2px; }
  .callout-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 15px; margin-bottom: 4px; }
  .callout-body { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

  .section-label {
    font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint);
    padding: 0 2px; margin: 26px 0 10px;
  }

  /* Info */
  .info-section { margin-top: 28px; }
  .info-heading { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 17px; margin-bottom: 12px; padding: 0 2px; }
  .info-card { padding: 15px 4px; border-bottom: 1px solid var(--glass-border); display: flex; gap: 12px; align-items: flex-start; }
  .info-card:last-child { border-bottom: none; }
  .info-card-icon { font-size: 19px; flex-shrink: 0; margin-top: 1px; }
  .info-card-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14px; margin-bottom: 3px; }
  .info-card-body { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

  .attraction-item { padding: 14px 4px; border-bottom: 1px solid var(--glass-border); display: flex; gap: 14px; align-items: flex-start; }
  .attraction-item:last-child { border-bottom: none; }
  .attraction-rank {
    flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
    background: var(--glass); border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 12px; color: var(--ink-soft);
    margin-top: 1px;
  }
  .attraction-title { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14px; margin-bottom: 3px; }
  .attraction-body { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

  .scroll-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
  .scroll-reveal.in-view { opacity: 1; transform: translateY(0); }

  .score-note {
    margin-top: 10px; font-size: 11px; color: var(--ink-faint); text-align: center;
    padding: 0 24px; line-height: 1.5;
  }

  footer {
    margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--glass-border);
    font-size: 11px; color: var(--ink-faint); text-align: center; line-height: 1.6;
  }