/* ============================================================================
   obb.css, Oogie Boogie Bash 2026 decision guide for Disney California Adventure.
   Brand-register hero (a harvest moon + bats over the Pixar Pier skyline)
   over a product-register tool (a sortable, filterable night picker). Built on
   v1.css tokens; Halloween accents (pumpkin orange, eerie green, deep purple
   night) are local to this page. OKLCH throughout. Mirrors mvmcp.css structure.
   ========================================================================== */

.obb {
  --ob-purple:      oklch(40% 0.120 300);   /* night purple */
  --ob-purple-deep: oklch(22% 0.080 300);
  --ob-orange:      oklch(72% 0.160 60);    /* pumpkin / harvest moon */
  --ob-orange-glow: oklch(74% 0.160 65 / 0.50);
  --ob-green:       oklch(72% 0.160 150);   /* eerie castle glow */
}

/* ----------------------------------------------------------------- the hero */
.ob-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 50% 12%, var(--ob-orange-glow), transparent 55%),
    linear-gradient(180deg,
      oklch(20% 0.070 300) 0%,
      oklch(24% 0.080 295) 46%,
      oklch(15% 0.050 290) 100%);
}
.ob-hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 1; pointer-events: none;
}
/* The eerie green glow at the castle base that gently breathes. */
.ob-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(70% 50% at 50% 86%, oklch(72% 0.16 150 / 0.45), transparent 70%);
  opacity: 0.55;
  animation: ob-breathe 9s ease-in-out infinite;
}
@keyframes ob-breathe {
  0%, 100% { opacity: 0.38; }
  50%      { opacity: 0.72; }
}

/* The skyline silhouette, pinned to the foot of the hero. */
.ob-skyline {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2;
  width: 100%; height: clamp(120px, 26vw, 240px);
  pointer-events: none;
  filter: drop-shadow(0 0 26px oklch(72% 0.16 60 / 0.40));
}
.ob-skyline svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ob-sky-fill { fill: oklch(13% 0.040 300); }
.ob-sky-window { fill: var(--ob-orange); opacity: 0.9; }
.ob-flag { fill: var(--ob-orange); }                  /* pumpkin pennants */
.ob-gate-glow { fill: var(--ob-green); opacity: 0.28; } /* eerie light through the gateway */
.ob-moon { fill: var(--ob-orange); filter: drop-shadow(0 0 22px oklch(74% 0.16 65 / 0.6)); }
.ob-moon-shade { fill: oklch(66% 0.150 55 / 0.35); }   /* offset shadow gives the moon dimension */
.ob-bat { fill: oklch(10% 0.02 300); opacity: 0.92; }

.ob-hero-in {
  position: relative; z-index: 3;
  padding-block: clamp(56px, 9vw, 104px) clamp(150px, 24vw, 230px);
  text-align: center;
}
.ob-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 800; font-size: 12.5px;
  letter-spacing: 0.10em; text-transform: uppercase; color: oklch(96% 0.02 80);
  background: oklch(100% 0 0 / 0.08); border: 1px solid oklch(100% 0 0 / 0.16);
  padding: 7px 14px; border-radius: var(--r-pill); backdrop-filter: blur(3px);
}
.ob-hero h1 {
  font-size: clamp(34px, 6vw, 68px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.02; margin: 18px auto 0; max-width: 16ch; text-wrap: balance;
  color: oklch(97% 0.02 80);
  text-shadow: 0 2px 30px oklch(15% 0.06 300 / 0.7);
}
.ob-hero .ob-standfirst {
  margin: 16px auto 0; max-width: 60ch; font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.55; color: oklch(92% 0.03 80);
}
.ob-hero-cta {
  margin-top: 26px; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.ob-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 15px; padding: 12px 20px; border-radius: var(--r-pill);
  border: 1px solid transparent; cursor: pointer;
}
.ob-btn-gold { background: var(--brand); color: var(--brand-ink); box-shadow: var(--halo); }
.ob-btn-gold:hover { background: var(--brand-press); text-decoration: none; }
.ob-btn-ghost { background: oklch(100% 0 0 / 0.06); color: oklch(97% 0.02 80); border-color: oklch(100% 0 0 / 0.22); }
.ob-btn-ghost:hover { background: oklch(100% 0 0 / 0.12); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .ob-hero::before { animation: none; opacity: 0.55; }
}

/* ----------------------------------------------------------- on-sale notice band */
.ob-note {
  display: flex; align-items: flex-start; gap: 12px;
  margin: clamp(20px, 4vw, 34px) 0 0;
  padding: 14px 18px; border-radius: var(--r);
  background: oklch(74% 0.16 65 / 0.10); border: 1px solid oklch(74% 0.16 65 / 0.32);
  color: var(--ink); font-size: 14.5px; line-height: 1.5;
}
.ob-note b { color: var(--brand); }
.ob-note .ob-note-ico { flex: none; font-size: 18px; line-height: 1.3; }

/* ----------------------------------------------------------- quick-pick grid */
.ob-picks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px;
  margin-top: 22px;
}
.ob-pick {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 4px;
}
.ob-pick-label {
  font-family: var(--display); font-weight: 800; font-size: 11.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.ob-pick-date { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.4vw, 26px); color: var(--ink); }
.ob-pick-price { font-weight: 800; color: var(--brand); font-size: 18px; }
.ob-pick-note { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.ob-pick.is-value  { border-color: oklch(81% 0.16 152 / 0.45); }
.ob-pick.is-first  { border-color: oklch(73% 0.19 13 / 0.45); }
.ob-pick.is-value .ob-pick-label  { color: var(--heat-low); }
.ob-pick.is-first .ob-pick-label  { color: var(--heat-high); }

/* ----------------------------------------------------------------- controls */
.ob-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
  margin-top: 26px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--r); background: oklch(24% 0.05 300 / 0.6);
  position: sticky; top: 64px; z-index: 5; backdrop-filter: blur(8px);
}
.ob-ctl-group { display: flex; align-items: center; gap: 8px; }
.ob-ctl-group > .ob-ctl-cap {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3);
}
.ob-select {
  appearance: none; font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); padding: 9px 30px 9px 12px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 16px) center, calc(100% - 11px) center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.ob-select:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.ob-toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.ob-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ob-toggle .ob-track {
  width: 38px; height: 22px; border-radius: var(--r-pill); background: var(--surface-3);
  border: 1px solid var(--line-2); position: relative; transition: background .15s ease;
}
.ob-toggle .ob-track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--ink-2); transition: transform .15s ease, background .15s ease;
}
.ob-toggle input:checked + .ob-track { background: var(--brand); border-color: var(--brand); }
.ob-toggle input:checked + .ob-track::after { transform: translateX(16px); background: var(--brand-ink); }
.ob-toggle input:focus-visible + .ob-track { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.ob-count { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.ob-count b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------- table */
.ob-table-wrap { margin-top: 16px; }
.ob-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.ob-table thead th {
  text-align: left; font-family: var(--display); font-weight: 800; font-size: 12.5px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3);
  padding: 10px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.ob-table th.ob-sortable { cursor: pointer; user-select: none; }
.ob-table th.ob-sortable:hover { color: var(--ink); }
.ob-table th .ob-arrow { opacity: 0; margin-left: 5px; font-size: 10px; }
.ob-table th[aria-sort="ascending"] .ob-arrow { opacity: 1; }
.ob-table th[aria-sort="descending"] .ob-arrow { opacity: 1; }
.ob-table th[aria-sort] { color: var(--brand); }
.ob-table tbody td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ob-table tbody tr:hover td { background: oklch(30% 0.05 300 / 0.5); }
.ob-table tbody tr.is-hidden { display: none; }
.ob-table tbody tr.is-pick td { box-shadow: inset 3px 0 0 var(--brand); }

.ob-cell-date { display: flex; flex-direction: column; gap: 4px; }
.ob-cell-date .ob-d-main { font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--ink); }
.ob-cell-date .ob-d-main .ob-dow { color: var(--ink-3); font-weight: 700; }
.ob-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.ob-badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 2px 7px; border-radius: var(--r-pill); white-space: nowrap;
}
.ob-badge.b-open  { background: oklch(72% 0.16 60 / 0.18); color: var(--ob-orange); }
.ob-badge.b-final { background: oklch(72% 0.19 13 / 0.16); color: var(--heat-high); }
.ob-badge.b-value { background: oklch(81% 0.16 152 / 0.16); color: var(--heat-low); }
.ob-badge.b-disc  { background: var(--brand-tint); color: var(--brand); }

.ob-price b { font-size: 17px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.ob-price .ob-tier { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 700; }

.ob-crowd {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px;
}
.ob-crowd .ob-dot { width: 8px; height: 8px; border-radius: 50%; }
.ob-crowd.heat-low  { color: var(--heat-low); }
.ob-crowd.heat-low  .ob-dot { background: var(--heat-low); }
.ob-crowd.heat-med  { color: var(--heat-med); }
.ob-crowd.heat-med  .ob-dot { background: var(--heat-med); }
.ob-crowd.heat-high { color: var(--heat-high); }
.ob-crowd.heat-high .ob-dot { background: var(--heat-high); }

.ob-demand { font-weight: 700; font-size: 13.5px; }
.ob-demand.dem-first { color: var(--heat-high); }
.ob-demand.dem-early { color: var(--amber); }
.ob-demand.dem-books { color: var(--ink-2); }
.ob-demand.dem-open  { color: var(--heat-low); }

.ob-empty { text-align: center; color: var(--ink-3); padding: 30px 0; font-size: 15px; }
.ob-empty.is-hidden { display: none; }

/* ------------------------------------------- prose sections (inclusions etc.) */
.ob-prose { max-width: 760px; }
.ob-prose h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.025em; }
.ob-prose h3 { font-size: 18px; font-weight: 800; margin-top: 22px; }
.ob-prose p { color: var(--ink-2); font-size: 16px; line-height: 1.62; margin-top: 12px; }
.ob-prose ul { margin: 12px 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.ob-incl li {
  display: flex; gap: 11px; align-items: flex-start; color: var(--ink-2);
  font-size: 15.5px; line-height: 1.5;
}
.ob-incl li::before { content: "✦"; color: var(--ob-orange); font-size: 14px; line-height: 1.5; flex: none; }

.ob-steps { counter-reset: ob-step; display: grid; gap: 12px; margin-top: 14px; }
.ob-step {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px;
}
.ob-step::before {
  counter-increment: ob-step; content: counter(ob-step);
  font-family: var(--display); font-weight: 800; font-size: 15px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand);
}
.ob-step h3 { margin: 0; font-size: 16px; }
.ob-step p { margin-top: 4px; font-size: 14.5px; }

/* --------------------------------------------------------------------- FAQ */
.ob-faq { max-width: 760px; display: grid; gap: 10px; margin-top: 16px; }
.ob-faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 16px;
}
.ob-faq summary {
  cursor: pointer; list-style: none; padding: 13px 0; font-family: var(--display);
  font-weight: 800; font-size: 16px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.ob-faq summary::-webkit-details-marker { display: none; }
.ob-faq summary::after { content: "+"; color: var(--brand); font-size: 22px; font-weight: 700; flex: none; }
.ob-faq details[open] summary::after { content: "–"; }
.ob-faq details p { color: var(--ink-2); font-size: 15px; line-height: 1.6; padding: 0 0 14px; margin: 0; }

/* ------------------------------------------------------ responsive (mobile) */
@media (max-width: 680px) {
  .ob-controls { top: 56px; }
  .ob-count { width: 100%; margin-left: 0; }

  /* Collapse the table into stacked cards; keep it a real <table> for a11y/SEO. */
  .ob-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ob-table, .ob-table tbody, .ob-table tr, .ob-table td { display: block; width: 100%; }
  .ob-table tbody tr {
    border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px;
    padding: 6px 14px; background: var(--surface);
  }
  .ob-table tbody tr:hover td { background: transparent; }
  .ob-table tbody td { border-bottom: 1px solid var(--line); padding: 10px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
  .ob-table tbody td:last-child { border-bottom: none; }
  .ob-table tbody td::before {
    content: attr(data-label); font-size: 12px; font-weight: 700; letter-spacing: 0.03em;
    text-transform: uppercase; color: var(--ink-3); flex: none;
  }
  .ob-table tbody tr.is-pick td { box-shadow: none; }
  .ob-table tbody tr.is-pick { box-shadow: inset 3px 0 0 var(--brand); }
  .ob-cell-date { align-items: flex-end; }
}

/* --- Oogie Boogie additions: Pixar Pal-A-Round wheel + D23 badge --- */
.ob-wheel { fill: none; stroke: oklch(13% 0.040 300); stroke-width: 3; stroke-linecap: round; }
.ob-gondola { fill: oklch(13% 0.040 300); }
.ob-badge.b-d23 { background: oklch(55% 0.16 300 / 0.20); color: oklch(82% 0.11 300); }

.ob-coaster { fill: none; stroke: oklch(13% 0.040 300); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
