/* Páginas internas: Filas ao Vivo e Calendário de Lotação. Usa as cores e fontes do style.css. */
:root {
  --lv1: #2BAE74; --lv2: #8CC152; --lv3: #F2B53A; --lv4: #EE7B30; --lv5: #D6455D;
  --lv1-soft: #DCF3E8; --lv2-soft: #EAF5DB; --lv3-soft: #FDF0D3; --lv4-soft: #FCE3D2; --lv5-soft: #F9DDE2;
  --lv-ink: #1A1F4B;
}

/* Topo compacto */
.hero-sm { background: radial-gradient(1.5px 1.5px at 12% 30%, #fff9 50%, transparent 51%), radial-gradient(1px 1px at 28% 62%, #fff8 50%, transparent 51%), radial-gradient(1.5px 1.5px at 47% 22%, #fffa 50%, transparent 51%), radial-gradient(1px 1px at 66% 48%, #fff8 50%, transparent 51%), radial-gradient(2px 2px at 82% 26%, #F6C453cc 50%, transparent 51%), radial-gradient(1px 1px at 92% 58%, #fff8 50%, transparent 51%), linear-gradient(180deg, var(--night-a) 0%, var(--night-m) 60%, var(--night-b) 100%); }
.hero-sm .hero-in { padding-block: 22px 74px; }
.hero-sm .kicker { margin-top: 26px; }
.hero-sm h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); max-width: none; }
.hero-sm .lead { margin-top: 10px; font-size: 1.02rem; max-width: 62ch; }
.hero-sm .hills { height: 60px; }

.pg { padding-top: 8px; padding-bottom: 36px; display: grid; gap: 22px; }
.pg-block { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 22px; min-width: 0; }
.pg-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pg-head h2 { font-size: 1.3rem; }
.pg-loading, .pg-empty { padding: 18px 4px; color: var(--ink-2); }
.pg-error { padding: 14px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.pg-note { font-size: .9rem; color: var(--ink-2); }
.pg-note p { margin: 0 0 10px; max-width: 90ch; }
.qt-credit { margin: 12px 0 0; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.qt-credit a { color: var(--lagoon); }
.is-loading { opacity: .55; transition: opacity .2s; pointer-events: none; }
.warn-t { color: var(--warn); }
.linkish { border: 0; background: none; padding: 0; color: var(--lagoon); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.eyebrow { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

/* Cores de grupo e de lotação/fila */
.g-disney { --g: var(--c-disney); } .g-universal { --g: var(--c-universal); } .g-seaworld { --g: var(--c-seaworld); }
.c1, .w1 { --lv: var(--lv1); --lvs: var(--lv1-soft); } .c2, .w2 { --lv: var(--lv2); --lvs: var(--lv2-soft); }
.c3, .w3 { --lv: var(--lv3); --lvs: var(--lv3-soft); } .c4, .w4 { --lv: var(--lv4); --lvs: var(--lv4-soft); }
.c5, .w5 { --lv: var(--lv5); --lvs: var(--lv5-soft); } .c0, .w0 { --lv: var(--line); --lvs: var(--surface-2); }
.crowd { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 800; white-space: nowrap; background: var(--lvs); color: var(--lv-ink); box-shadow: inset 0 0 0 1.5px var(--lv); }
.crowd.big { font-size: .92rem; padding: 4px 12px; }

/* ===== Filas ao Vivo ===== */
.park-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pk { position: relative; display: grid; gap: 4px; text-align: left; padding: 12px 14px 12px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pk::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--g, var(--c-other)); }
.pk:hover { border-color: var(--g, var(--lagoon)); transform: translateY(-1px); }
.pk.on { border-color: var(--g, var(--lagoon)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g, var(--lagoon)) 22%, transparent); }
.pk-name { font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; line-height: 1.15; }
.pk-status { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; min-height: 22px; }
.st { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.st.on { color: var(--mint); } .st.off { color: var(--ink-2); }
.pk .crowd { font-size: .7rem; padding: 1px 7px; }
.pk-num { display: flex; align-items: baseline; gap: 6px; }
.pk-big { font-family: var(--f-display); font-size: 1.7rem; line-height: 1; color: var(--lv-ink); }
.pk-big.w1 { color: var(--lv1); } .pk-big.w2 { color: color-mix(in srgb, var(--lv2) 80%, var(--ink)); } .pk-big.w3 { color: color-mix(in srgb, var(--lv3) 75%, var(--ink)); } .pk-big.w4 { color: var(--lv4); } .pk-big.w5 { color: var(--lv5); }
.pk-big small { font-size: .9rem; }
.pk-sub, .pk-foot { font-size: .8rem; color: var(--ink-2); }

.live { border-top: 5px solid var(--g, var(--lagoon)); }
.live-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.live-head h2 { font-size: 1.6rem; margin-top: 2px; }
.live-meta { margin: 6px 0 0; font-size: .92rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.live-upd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--ink-2); }
.live-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 10px 14px; display: grid; gap: 2px; min-width: 0; }
.stat b { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; }
.stat b small { font-size: .85rem; color: var(--ink-2); }
.stat span { font-size: .8rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat.on b { color: var(--mint); } .stat.off b { color: var(--ink-2); }
.live-tops { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 10px; }
.live-tops:empty { display: none; }
.top-box { border-radius: 12px; padding: 12px 14px; border: 1.5px solid; }
.top-box.good { border-color: color-mix(in srgb, var(--lv1) 45%, transparent); background: color-mix(in srgb, var(--lv1-soft) 60%, var(--surface)); }
.top-box.bad { border-color: color-mix(in srgb, var(--lv4) 40%, transparent); background: color-mix(in srgb, var(--lv4-soft) 50%, var(--surface)); }
.top-box h3 { font-size: .98rem; margin-bottom: 6px; }
.top-box ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
.top-box li { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.top-box li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-box li b { flex: none; color: var(--lv-ink); }

.live-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 6px; }
.search-box { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); }
.search-box:focus-within { border-color: var(--lagoon); }
.search-box svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 9px 0; font: inherit; color: var(--ink); outline: none; }
.live-tools .seg { box-shadow: none; border: 1.5px solid var(--line); }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--lagoon); }

.land { font-size: 1rem; margin: 18px 0 4px; padding-bottom: 4px; border-bottom: 1.5px solid var(--line); color: var(--ink-2); }
.rides { list-style: none; margin: 0; padding: 0; }
.ride { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(80px, 1fr) auto; align-items: center; gap: 14px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.ride:last-child { border-bottom: 0; }
.ride-name { min-width: 0; display: grid; }
.ride-name b { font-weight: 700; overflow-wrap: anywhere; }
.ride-name small { font-size: .78rem; color: var(--ink-2); }
.ride-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.ride-bar span { display: block; height: 100%; border-radius: 99px; background: var(--lv); transition: width .3s; }
.ride-wait { display: flex; align-items: center; gap: 8px; justify-content: flex-end; min-width: 92px; }
.wchip { display: inline-flex; align-items: baseline; justify-content: center; min-width: 70px; padding: 4px 10px; border-radius: 10px; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; background: var(--lvs); color: var(--lv-ink); box-shadow: inset 0 0 0 1.5px var(--lv); }
.wchip small { font-size: .72rem; margin-left: 2px; }
.wchip.closed { font-family: var(--f-body); font-size: .8rem; font-weight: 700; color: var(--ink-2); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.wchip.open0 { font-family: var(--f-body); font-size: .8rem; font-weight: 700; color: var(--mint); background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--mint) 50%, transparent); }
.ride.is-closed .ride-name b { color: var(--ink-2); font-weight: 600; }
.trend { min-width: 36px; text-align: right; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.trend.up { color: var(--lv5); } .trend.down { color: var(--mint); }

/* ===== Calendário de Lotação ===== */
.cal-controls { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 18px; }
.cal-controls .seg { box-shadow: none; border: 1.5px solid var(--line); flex-wrap: wrap; }
.park-chips { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 1 / -1; grid-row: 2; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .88rem var(--f-body); cursor: pointer; }
.chip:hover { border-color: var(--g, var(--lagoon)); }
.chip[aria-selected="true"] { background: var(--g, var(--lagoon)); border-color: var(--g, var(--lagoon)); color: #fff; }
.chip-cmp svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.chip-cmp[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.month-nav { grid-column: 3; grid-row: 1; display: flex; align-items: center; gap: 8px; }
.month-nav h2 { font-size: 1.2rem; min-width: 11ch; text-align: center; }
.mn-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.mn-btn:hover:not(:disabled) { border-color: var(--lagoon); color: var(--lagoon); }
.mn-btn:disabled { opacity: .35; cursor: default; }
.mn-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 22px; align-items: start; }
.cal-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.cal-title h3 { font-size: 1.15rem; }
.cal-warn { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: .88rem; font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal-wd { text-align: center; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); padding-bottom: 2px; }
.day { position: relative; display: grid; align-content: start; gap: 1px; min-height: 76px; padding: 6px 7px; border: 0; border-radius: 10px; background: var(--lvs); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--lv) 55%, transparent); color: var(--lv-ink); font: inherit; text-align: left; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.day:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 2px var(--lv); }
.day.fc { background-image: repeating-linear-gradient(135deg, transparent 0 7px, rgba(255, 255, 255, .28) 7px 9px); }
.day.past { opacity: .55; }
.day.today { box-shadow: inset 0 0 0 2.5px var(--ink); }
.day.sel { box-shadow: 0 0 0 3px var(--lagoon), inset 0 0 0 1.5px var(--lv); transform: none; }
.d-top { display: flex; justify-content: space-between; align-items: center; gap: 2px; }
.d-num { font-weight: 800; font-size: .9rem; }
.d-ic { font-size: .72rem; line-height: 1; letter-spacing: -1px; white-space: nowrap; overflow: hidden; }
.d-pct { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; line-height: 1.1; }
.d-pct i { font-style: normal; font-size: .8rem; margin-left: 1px; opacity: .7; }
.d-pct.none { color: var(--ink-2); }
.d-lbl { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.d-hrs { font-family: var(--f-mono); font-size: .66rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day::after { content: ""; position: absolute; left: 7px; right: 7px; bottom: 5px; height: 3px; border-radius: 3px; background: var(--lv); opacity: .9; }

.day-detail { margin-top: 14px; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.dd-hint { margin: 0; }
.dd-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dd-head h3 { font-size: 1.12rem; }
.dd-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 10px; }
.dd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.dd-list li { display: grid; gap: 1px; }
.dd-list span { color: var(--ink-2); }
.dd-cmp h4 { margin: 0 0 6px; font: 800 .78rem var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.dd-cmp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.dd-cmp li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .9rem; }
.dd-cmp li.me { font-weight: 800; }
.best { font-size: .7rem; font-weight: 800; color: var(--mint); text-transform: uppercase; letter-spacing: .04em; margin-left: 4px; }

.cal-side { display: grid; gap: 14px; }
.side-box { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; }
.side-box h3 { font-size: 1rem; margin-bottom: 8px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-list button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.side-list button:hover { background: var(--surface-2); }
.side-list button > span:first-child { display: grid; font-size: .88rem; min-width: 0; }
.side-list small { color: var(--ink-2); font-size: .76rem; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: .86rem; }
.legend li { display: grid; grid-template-columns: 16px auto 1fr; gap: 8px; align-items: center; }
.legend .muted { text-align: right; font-size: .8rem; }
.sw { width: 16px; height: 16px; border-radius: 5px; background: var(--lvs); box-shadow: inset 0 0 0 2px var(--lv); }
.cal-key { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.cal-key .ico { margin-right: 3px; }

.cmp-table { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.cmp-table th, .cmp-table td { padding: 5px 6px; border-radius: 7px; font-size: .86rem; }
.cmp-table thead th { font-family: var(--f-display); font-weight: 600; text-align: center; color: #fff; background: var(--g, var(--ink)); font-size: .86rem; line-height: 1.15; }
.cmp-table thead th:first-child { width: 72px; background: transparent; color: var(--ink-2); }
.cmp-table tbody th { text-align: left; font-weight: 600; white-space: nowrap; }
.cmp-table tbody th span { color: var(--ink-2); font-size: .78rem; }
.cmp-table tr.we th b { color: var(--rose); }
.cmp-table td { text-align: center; background: var(--lvs); color: var(--lv-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lv) 45%, transparent); white-space: nowrap; }
.cmp-table td .cv { font-weight: 700; }
.cmp-table td .ci { font-size: .7rem; margin-left: 3px; }
.cmp-table td.best { box-shadow: inset 0 0 0 2px var(--lv1); }
.cmp-table td.best .cv { font-weight: 900; }
.cmp-table tr.past td, .cmp-table tr.past th { opacity: .5; }
.cmp-table tr.today th { color: var(--lagoon); }
.cmp-table tr.today td { box-shadow: inset 0 0 0 2px var(--ink); }
.th-short { display: none; }

/* ===== Telas menores ===== */
@media (max-width: 960px) {
  .cal-layout { grid-template-columns: 1fr; }
  .cal-side { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 860px) {
  .park-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-controls { grid-template-columns: 1fr; }
  .month-nav { grid-column: 1; grid-row: auto; justify-content: space-between; }
  .park-chips { grid-row: auto; }
}
@media (max-width: 720px) {
  .live-tops { grid-template-columns: minmax(0, 1fr); }
  .dd-body { grid-template-columns: 1fr; }
  .d-hrs { display: none; }
  .day { min-height: 62px; }
  .th-full { display: none; } .th-short { display: inline; }
  .cmp-table td .ci { display: none; }
}
@media (max-width: 560px) {
  .hero-sm .hero-in { padding-block: 14px 56px; }
  .hero-sm h1 { font-size: 1.8rem; }
  .hero-sm .lead { font-size: .95rem; }
  .pg-block { padding: 16px 14px; }
  .pk { padding: 10px 10px 10px 13px; }
  .pk-name { font-size: .92rem; }
  .pk-big { font-size: 1.45rem; }
  .pk-foot { font-size: .74rem; }
  .live-head h2 { font-size: 1.35rem; }
  .ride { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .ride-bar { grid-column: 1 / -1; grid-row: 2; height: 5px; }
  .ride-wait { min-width: 0; }
  .wchip { min-width: 62px; font-size: .98rem; }
  .live-tools .seg { width: 100%; }
  .live-tools .seg button { flex: 1; padding: 7px 6px; }
  .cal-controls .seg { width: 100%; }
  .cal-controls .seg button { flex: 1; padding: 7px 6px; font-size: .84rem; }
  .cal-grid { gap: 3px; }
  .cal-wd { font-size: .64rem; letter-spacing: 0; }
  .day { min-height: 56px; padding: 4px 4px 8px; border-radius: 8px; }
  .d-num { font-size: .78rem; }
  .d-ic { display: none; }
  .d-pct { font-size: .95rem; }
  .d-lbl { font-size: .54rem; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .day::after { left: 4px; right: 4px; bottom: 3px; }
  .cmp-table { border-spacing: 2px; }
  .cmp-table th, .cmp-table td { padding: 5px 2px; font-size: .78rem; }
  .cmp-table thead th { font-size: .72rem; }
  .cmp-table thead th:first-child { width: 50px; }
  .cmp-table tbody th span { display: block; }
}

/* v15: dias calculados por nós a partir das filas ao vivo (sem o calendário do Queue-Times) */
.day.own { box-shadow: inset 0 0 0 1.5px var(--lv); border: 0; background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--lv) 35%, transparent) 1px, transparent 1.5px); background-size: 6px 6px; }
.cal-warn.soft { background: var(--surface-2); color: var(--ink-2); }
.legend-note { margin: 10px 0 0; font-size: .78rem; color: var(--ink-2); line-height: 1.45; }

/* v16: cartões "Todos os parques agora" com fundo temático. Desenho do parque (filas.js, ART) no canto,
   em transparência, sobre um degradê da cor do grupo. Com foto em assets/img/parques/fundo/<slug>.jpg,
   a foto ocupa o cartão sob um véu claro (escuro no modo escuro) para o texto continuar legível. */
.pk { isolation: isolate; background: linear-gradient(135deg, var(--surface) 35%, color-mix(in srgb, var(--g, var(--c-other)) 13%, var(--surface)) 100%); }
.pk > :not(.pk-art) { position: relative; z-index: 1; }
.pk-art { position: absolute; z-index: 0; right: -8px; bottom: -10px; width: 112px; height: 112px; fill: var(--g, var(--c-other)); opacity: .16; pointer-events: none; transition: opacity .2s, transform .3s; }
.pk-art .cut { fill: var(--surface); }
.pk-art .cut-s { fill: none; stroke: var(--surface); stroke-width: 2.2; stroke-linecap: round; }
.pk-art .ring { fill: none; stroke: var(--g, var(--c-other)); stroke-width: 5; }
.pk:hover .pk-art { opacity: .24; transform: scale(1.04) rotate(-2deg); }
.pk.on .pk-art { opacity: .26; }
.pk.has-photo { background: linear-gradient(100deg, color-mix(in srgb, var(--surface) 94%, transparent) 30%, color-mix(in srgb, var(--surface) 72%, transparent) 100%), var(--photo) center / cover no-repeat, var(--surface); }
.pk.has-photo .pk-art { display: none; }
.pk .crowd { background: color-mix(in srgb, var(--lvs) 88%, transparent); }
@media (max-width: 560px) { .pk-art { width: 84px; height: 84px; right: -6px; bottom: -8px; } }
@media (prefers-reduced-motion: reduce) { .pk:hover .pk-art { transform: none; } }

/* Página inicial (v22) */
.hero-home { background: radial-gradient(1.5px 1.5px at 12% 30%, #fff9 50%, transparent 51%), radial-gradient(1px 1px at 28% 62%, #fff8 50%, transparent 51%), radial-gradient(1.5px 1.5px at 47% 22%, #fffa 50%, transparent 51%), radial-gradient(1px 1px at 66% 48%, #fff8 50%, transparent 51%), radial-gradient(2px 2px at 82% 26%, #F6C453cc 50%, transparent 51%), radial-gradient(1px 1px at 92% 58%, #fff8 50%, transparent 51%), radial-gradient(1.5px 1.5px at 38% 12%, #fff9 50%, transparent 51%), radial-gradient(1px 1px at 58% 70%, #fff7 50%, transparent 51%), linear-gradient(180deg, var(--night-a) 0%, var(--night-m) 55%, var(--night-b) 100%); }
.hero-home .hero-in { padding-bottom: 40px; }
.home { gap: 30px; }
.home-h2 { font-size: 1.45rem; margin-bottom: 14px; }
.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool { --tc: var(--lagoon); position: relative; display: grid; align-content: start; gap: 8px; padding: 18px 18px 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); border-top: 4px solid var(--tc); transition: transform .15s, box-shadow .15s; }
.tool.tn-comparador { --tc: var(--sunset); } .tool.tn-filas { --tc: var(--mint); } .tool.tn-lotacao { --tc: var(--c-universal); } .tool.tn-alertas { --tc: var(--rose); }
.tool.soon { --tc: var(--line); background: var(--surface-2); box-shadow: none; }
.tool:not(.soon):hover { transform: translateY(-2px); }
.tool:focus-within { outline: 3px solid var(--sun); outline-offset: 2px; }
.tool-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--tc) 16%, transparent); color: var(--ink); }
.tool.soon .tool-ico { background: var(--surface); color: var(--ink-2); }
.tool-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tool-ico .live-dot { fill: var(--mint); stroke: none; }
.tool-badge { position: absolute; top: 18px; right: 16px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.tool h3 { font-size: 1.15rem; font-weight: 600; }
.tool h3 a { color: inherit; text-decoration: none; }
.tool h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tool h3 a:focus { outline: none; }
.tool p { margin: 0; color: var(--ink-2); font-size: .93rem; }
.tool-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--lagoon); font-weight: 800; font-size: .92rem; }
.tool-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.tool:hover .tool-go svg { transform: translateX(3px); }
.home-more { color: var(--lagoon); font-weight: 700; }
.hl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hl-list a { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 86px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border-left: 4px solid var(--g, var(--c-other)); color: var(--ink); text-decoration: none; transition: background .15s; }
.hl-list a:hover { background: var(--lagoon-soft); }
.hl-name { font-family: var(--f-display); font-weight: 600; line-height: 1.2; }
.hl-name small { display: block; font-family: var(--f-body); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.hl-val { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; min-height: 1.5em; color: var(--ink-2); }
.hl-val b { font-family: var(--f-mono); font-size: 1.15rem; color: var(--ink); }
.hl-val small { font-size: .8rem; }
.is-closed .hl-val { opacity: .8; }
.faq details { border-bottom: 1px dashed var(--line); padding: 4px 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-display); font-size: 1.4rem; color: var(--lagoon); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq h3 { font-size: 1.05rem; font-weight: 600; }
.faq p { margin: 0 0 12px; max-width: 80ch; color: var(--ink-2); }
.faq a { color: var(--lagoon); font-weight: 700; }
@media (max-width: 900px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .tools { grid-template-columns: minmax(0, 1fr); }
  .hl-list a { min-height: 78px; padding: 10px 12px; }
}

/* v22: espaço reservado enquanto os dados chegam, para a página não "pular" (CLS, métrica do Google) */
.page-filas .pg, .page-lotacao .pg { min-height: 100vh; align-content: start; }
.park-grid:has(> .pg-loading) { min-height: 260px; }
#groupTabs:empty { min-height: 48px; }
#parkChips:empty { min-height: 33px; }
.cal-layout:has(.pg-loading) { min-height: 480px; }
@media (max-width: 860px) { .park-grid:has(> .pg-loading) { min-height: 510px; } #parkChips:empty { min-height: 72px; } }
@media (max-width: 560px) { #groupTabs:empty { min-height: 64px; } #parkChips:empty { min-height: 111px; } #ovNote { flex-basis: 100%; min-height: 1.5em; } }
.tool.tn-atracoes { --tc: var(--c-seaworld); } .tool.tn-restaurantes { --tc: var(--warn); }

/* v25: topo novo da página inicial, com a cena de Orlando desenhada (inc/home-cena.php) */
.hh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: end; gap: 10px 20px; }
.hh-text { padding-bottom: 64px; }
.hero-home .kicker { margin-top: 30px; }
.hero-home h1 { max-width: 15ch; font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.hero-home .lead { max-width: 46ch; }
.hh-quick { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 470px; }
.hh-quick a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: var(--night-ink); font-weight: 800; font-size: .95rem; line-height: 1.2; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.hh-quick a:hover { background: rgba(255, 255, 255, .14); border-color: var(--sun); transform: translateY(-1px); }
.hh-quick svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--sun); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hh-quick .live-dot { fill: var(--mint); stroke: none; }
.hh-quick .hq-comparador { background: var(--sunset); border-color: var(--sunset); color: var(--sunset-ink); box-shadow: 0 6px 18px rgba(242, 181, 58, .35); }
.hh-quick .hq-comparador svg { stroke: var(--sunset-ink); }
.hh-quick .hq-comparador:hover { background: var(--sun); }
.hh-scene { display: block; width: calc(100% + 30px); height: auto; aspect-ratio: 640 / 340; margin: 0 -30px -40px 0; position: relative; z-index: 0; }
.hh-scene .castle-lights { fill: var(--sun); filter: drop-shadow(0 0 4px rgba(246, 196, 83, .9)); animation: glow 3.5s ease-in-out infinite alternate; }
.hh-fw g[stroke] { stroke-width: 2.4; stroke-linecap: round; }
.hh-fw { transform-box: fill-box; transform-origin: center; animation: hhBurst 3.2s ease-out infinite; }
.hh-fw2 { animation-delay: 1.1s; } .hh-fw3 { animation-delay: 2.2s; }
@keyframes hhBurst { 0% { opacity: 0; scale: .3; } 18% { opacity: 1; scale: 1; } 60% { opacity: .9; } 100% { opacity: 0; scale: 1.15; } }
.hh-float { animation: hhFloat 5s ease-in-out infinite alternate; }
.hh-rocket { animation-duration: 3.4s; }
@keyframes hhFloat { to { translate: 0 -8px; } }
.hh-orca { animation: hhFloat 2.6s ease-in-out infinite alternate; }
@media (max-width: 900px) {
  .hh-grid { grid-template-columns: minmax(0, 1fr); }
  .hh-text { padding-bottom: 0; }
  .hero-home h1 { max-width: 16ch; }
  .hh-scene { width: 100%; max-width: 560px; margin: 4px auto -34px; }
}
@media (max-width: 560px) {
  .hero-home .kicker { margin-top: 22px; }
  .hh-quick { gap: 8px; }
  .hh-quick a { padding: 9px 10px; gap: 8px; font-size: .86rem; }
  .hh-quick svg { width: 20px; height: 20px; }
  .hh-scene { margin-bottom: -24px; }
}

/* v28: parque fechado (2 h depois do encerramento até a próxima abertura) fica esmaecido */
.pk.is-shut { background: var(--surface); border-style: dashed; }
.pk.is-shut > :not(.pk-art) { opacity: .6; }
.pk.is-shut .pk-art { opacity: .07; filter: grayscale(1); }
.pk.is-shut::before { background: color-mix(in srgb, var(--g, var(--c-other)) 35%, var(--line)); }
.pk.is-shut:hover > :not(.pk-art), .pk.is-shut.on > :not(.pk-art) { opacity: .85; }
.pk.is-shut.has-photo { background: linear-gradient(100deg, color-mix(in srgb, var(--surface) 96%, transparent) 30%, color-mix(in srgb, var(--surface) 86%, transparent) 100%), var(--photo) center / cover no-repeat, var(--surface); filter: grayscale(.9); }
.st.shut { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.st.shut svg, .shut-note svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.live.is-shut .live-stats, .live.is-shut .ride-list { opacity: .6; }
.shut-note { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1.5px dashed var(--line); background: color-mix(in srgb, var(--night-m, #1F2575) 6%, var(--surface)); color: var(--ink); }
.shut-note svg { flex: none; width: 26px; height: 26px; margin-top: 1px; color: var(--night-b, #4A2F8C); }
.shut-note p { margin: 0; font-size: .95rem; }
.hl-list .is-shut a { opacity: .6; border-style: dashed; }
