/* Magic Insider (app-store edition): the look (blue sky, white type, gold accents, outlined buttons), made for a phone in your hand.
   Layouts: phone portrait (tabs along the bottom), phone landscape (a rail down the side), and wide screens such as an
   unfolded iPhone Duo or a tablet (rail + list + a detail pane beside it). Dual-screen devices that report their fold
   put the list on one side and the details on the other. */
@font-face { font-family: "Montserrat"; src: url("/app/fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Pirata One"; src: url("/app/fonts/pirata-one.woff2") format("woff2"); font-display: swap; }

:root {
  --bg1: #0a3fb4; --bg2: #1466dc; --deep: #04206e; --panel: rgba(4, 28, 96, .72); --panel2: rgba(255, 255, 255, .09); --line: rgba(255, 255, 255, .22);
  --text: #fff; --muted: #cfe0ff; --accent: #ffe27a; --accent2: #cfe8ff; --good: #5df0a0; --warn: #ffc24a; --bad: #ff6b6b; --pink: #ff8fc7;
  --brand: "Pirata One", Georgia, serif; --font: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --top: calc(58px + env(safe-area-inset-top)); --tabh: calc(64px + env(safe-area-inset-bottom)); --r: 20px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--deep); color: var(--text); font-family: var(--font); }
body { overflow: hidden; text-shadow: 0 1px 3px rgba(0, 20, 80, .35); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- the sky behind everything ---------- */
#sky { position: fixed; inset: 0; background: linear-gradient(180deg, var(--bg1), var(--bg2) 60%, #3a8ae8); overflow: hidden; }
body.night #sky { background: linear-gradient(180deg, #050d33, #0c1d5c 55%, #1a2f7a); }
#scene { position: absolute; left: 0; right: 0; bottom: 0; height: 62vh; opacity: .95; transition: opacity .8s; }
#scene .sc { position: absolute; inset: 0; animation: scin .9s ease both; }
#scene .sc.out { animation: scout .7s ease both; }
#scene svg { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 100%; width: auto; min-width: 100%; }
body.reading #scene { opacity: .28; }
@keyframes scin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes scout { to { opacity: 0; } }
#twinkles { position: absolute; inset: 0; pointer-events: none; }
#twinkles i { position: absolute; background: #fff; opacity: 0; clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); animation: glint 5s ease-in-out infinite; }
#twinkles i:nth-child(3n) { background: #fff3b0; }
@keyframes glint { 0%, 62%, 100% { opacity: 0; transform: scale(.2) rotate(0); } 78% { opacity: 1; transform: scale(1) rotate(40deg); } 90% { opacity: .2; transform: scale(.5) rotate(70deg); } }
@media (prefers-reduced-motion: reduce) { #twinkles { display: none; } * { animation-duration: .01s !important; } }

/* ---------- frame ---------- */
#app { position: fixed; inset: 0; display: grid; grid-template-rows: var(--top) 1fr var(--tabh); grid-template-columns: 1fr; grid-template-areas: "top" "view" "tabs"; }
#top { grid-area: top; display: flex; align-items: center; gap: 10px; padding: env(safe-area-inset-top) 14px 0 calc(14px + env(safe-area-inset-left)); z-index: 5;
  transition: background .3s, backdrop-filter .3s; }
body.scrolled #top { background: rgba(6, 30, 110, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.brand img { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); border-radius: 9px; }
.brand span { font-family: var(--brand); font-size: 27px; letter-spacing: .5px; white-space: nowrap; text-shadow: 0 2px 8px rgba(0, 10, 60, .6); }
#topinfo { margin-left: auto; font-size: 13px; color: var(--muted); text-align: right; line-height: 1.25; white-space: nowrap; overflow: hidden; }
#topinfo b { color: #fff; font-size: 15px; font-weight: 600; }
.iconbtn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); flex: none; text-decoration: none; }
.iconbtn:active { background: rgba(255, 255, 255, .25); }
#view { grid-area: view; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 14px 28px; outline: none;
  padding-left: calc(14px + env(safe-area-inset-left)); padding-right: calc(14px + env(safe-area-inset-right)); scroll-behavior: smooth; }
#view > .page { max-width: 760px; margin: 0 auto; animation: pagein .35s ease both; }
@keyframes pagein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#pane { display: none; }

/* the tab bar: Magic Window's button bar, folded down to fit a thumb */
#tabs { grid-area: tabs; display: flex; justify-content: space-around; align-items: flex-start; gap: 2px; padding: 6px 6px env(safe-area-inset-bottom); z-index: 6;
  border-top: 2px solid rgba(255, 255, 255, .7);
  background: radial-gradient(circle at 10px 10px, rgba(255, 255, 255, .09) 2.5px, transparent 3.5px) 0 0 / 34px 34px, linear-gradient(180deg, #1a5fe0, #0b3ba8); }
.tab { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 2px 4px; border-radius: 14px; text-decoration: none;
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: #fff; border: 2px solid transparent; }
.tab svg { width: 26px; height: 26px; }
.tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tab.on { color: #3fe894; border-color: #3fe894; background: rgba(255, 255, 255, .06); text-shadow: none; }
.tab:active { background: rgba(255, 255, 255, .2); }

/* ---------- building blocks ---------- */
h1, h2, h3 { margin: 0; font-weight: 300; }
.hello { padding: 18px 2px 4px; }
.hello small { display: block; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; opacity: .9; }
.hello h1 { font-size: 40px; line-height: 1.08; margin-top: 4px; }
.hello h1 em { font-style: normal; color: var(--accent); }
.hello p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.title { display: flex; align-items: baseline; gap: 12px; padding: 14px 2px 8px; }
.title h1 { font-size: 34px; line-height: 1.1; }
.title h1::before, .sec::before { content: ""; display: inline-block; width: .78em; height: .7em; margin-right: .3em; vertical-align: -.02em; background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 22"><path d="M12 0 L14.6 8.4 L24 11 L14.6 13.6 L12 22 L9.4 13.6 L0 11 L9.4 8.4Z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 22"><path d="M12 0 L14.6 8.4 L24 11 L14.6 13.6 L12 22 L9.4 13.6 L0 11 L9.4 8.4Z"/></svg>') center / contain no-repeat; }
.title .sub { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.sec { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin: 22px 2px 10px; }
.sec::before { width: 1.1em; height: 1em; margin-right: 4px; }
.sec a { margin-left: auto; font-size: 12px; letter-spacing: 1px; color: var(--accent); text-decoration: none; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 6px 22px rgba(0, 10, 50, .22); }
.card + .card { margin-top: 10px; }
.muted { color: var(--muted); } .accent { color: var(--accent); } .good { color: var(--good); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.small { font-size: 13px; } .tiny { font-size: 11px; letter-spacing: .5px; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, #000 92%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 14px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .05); font-size: 13px; font-weight: 700;
  letter-spacing: .3px; white-space: nowrap; cursor: pointer; text-transform: uppercase; }
.chip.on { background: #fff; color: #0c3fae; border-color: #fff; text-shadow: none; }
.chip:active { transform: scale(.96); }
.seg { display: flex; background: rgba(0, 20, 80, .45); border-radius: 14px; padding: 3px; gap: 3px; margin: 4px 0 10px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 6px; border-radius: 11px; font-size: 13px; font-weight: 700; cursor: pointer; }
.seg button.on { background: #fff; color: #0c3fae; text-shadow: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 16px; border: 2px solid #fff; background: rgba(255, 255, 255, .06);
  font-weight: 700; font-size: 14px; letter-spacing: .3px; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.btn.gold { background: linear-gradient(180deg, #ffe49a, #f3bd45); color: #2a1a00; border-color: transparent; text-shadow: none; }
.btn.small { padding: 7px 12px; font-size: 12px; border-radius: 12px; }
.btn:active { transform: scale(.97); }
.empty { text-align: center; padding: 34px 10px; color: var(--muted); }
.skel { height: 64px; border-radius: 16px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.14), rgba(255,255,255,.06)); background-size: 200% 100%; animation: sk 1.2s linear infinite; margin-bottom: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

/* wait pills, the same colours as the resort TV */
.pill { flex: none; min-width: 64px; text-align: center; padding: 6px 10px; border-radius: 12px; font-weight: 800; font-size: 20px; color: #071a3a; text-shadow: none; font-variant-numeric: tabular-nums; }
.pill small { font-size: 11px; font-weight: 700; margin-left: 2px; }
.pill.good { background: var(--good); } .pill.warn { background: var(--warn); } .pill.bad { background: var(--bad); color: #fff; }
.pill.off { background: rgba(255, 255, 255, .14); color: #e6eeff; font-size: 12px; font-weight: 700; padding: 8px; }
.pill.down { background: #ff5b6b; color: #fff; font-size: 12px; padding: 8px; }

/* ---------- Today ---------- */
.glance { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pk { position: relative; overflow: hidden; padding: 12px 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; display: block; min-height: 104px; }
.pk b { display: block; font-size: 16px; font-weight: 700; line-height: 1.2; }
.pk .st { font-size: 12px; margin-top: 3px; }
.pk .big { font-size: 26px; font-weight: 700; margin-top: 6px; }
.pk .big small { font-size: 12px; font-weight: 600; color: var(--muted); }
.pk .ico { position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; opacity: .55; }
.dots5 { display: inline-flex; gap: 3px; vertical-align: middle; } .dots5 i { width: 9px; height: 9px; border-radius: 3px; background: rgba(255, 255, 255, .2); }
.dots5 i.on { background: var(--good); } .dots5.l3 i.on { background: var(--warn); } .dots5.l4 i.on, .dots5.l5 i.on { background: var(--bad); }
.banner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px; background: linear-gradient(180deg, #ffe49a, #f3bd45); color: #2a1a00; text-shadow: none;
  text-decoration: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); margin-top: 12px; animation: pop .6s ease both .2s; }
.banner b { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; flex: none; }
.banner span { font-weight: 600; font-size: 15px; }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
.list > * + * { border-top: 1px solid rgba(255, 255, 255, .12); }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 2px; cursor: pointer; }
.li .nm { font-weight: 600; font-size: 16px; line-height: 1.25; }
.li .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.li .sub .good { color: var(--good); font-weight: 700; } .li .sub .bad { color: #ff9a9a; font-weight: 700; }
.li .star { color: var(--accent); }
.wx { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; }
.wx::-webkit-scrollbar { display: none; }
.wx div { flex: none; text-align: center; font-size: 12px; color: var(--muted); }
.wx div b { display: block; font-size: 22px; margin: 2px 0; } .wx div span { display: block; color: #fff; font-size: 15px; font-weight: 600; }
.fw { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; }
.fw b { flex: none; width: 82px; font-size: 20px; font-weight: 700; }
.detail-card { position: relative; overflow: hidden; border-radius: 22px; padding: 18px; background: linear-gradient(160deg, rgba(255, 228, 154, .22), rgba(4, 28, 96, .78) 46%), var(--panel);
  border: 1px solid rgba(255, 228, 154, .55); cursor: pointer; }
.detail-card .kick { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.detail-card h3 { font-size: 23px; font-weight: 600; margin: 6px 0 6px; line-height: 1.2; }
.detail-card p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #eaf2ff; }
.detail-card .where { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.detail-card::after { content: "✦"; position: absolute; right: 16px; top: 10px; font-size: 30px; color: var(--accent); opacity: .7; }
.count { display: flex; align-items: center; gap: 16px; }
.count .n { font-size: 54px; font-weight: 700; line-height: 1; color: var(--accent); }

/* ---------- Waits ---------- */
.parkhead { display: flex; align-items: flex-end; gap: 12px; padding: 10px 2px 6px; }
.parkhead h1 { font-size: 34px; line-height: 1.05; }
.parkhead .meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.status-open { color: var(--good); font-weight: 700; } .status-closed { color: #ffb3b3; font-weight: 700; }
.search { width: 100%; border: 2px solid rgba(255, 255, 255, .4); background: rgba(0, 20, 80, .4); color: #fff; border-radius: 14px; padding: 10px 14px; font: inherit; font-size: 15px; outline: none; }
.search::placeholder { color: rgba(220, 235, 255, .7); }
.search:focus { border-color: #fff; }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 3px 8px; border-radius: 8px; background: rgba(255, 255, 255, .12); text-transform: uppercase; }
.tag.ll { background: rgba(141, 197, 255, .25); } .tag.good { background: rgba(93, 240, 160, .2); color: var(--good); } .tag.gold { background: rgba(255, 226, 122, .2); color: var(--accent); }

/* ---------- sheets (phones) and the side pane (wide screens) ---------- */
#sheet { position: fixed; inset: 0; z-index: 40; }
.sheet-back { position: absolute; inset: 0; background: rgba(0, 6, 30, .55); animation: fade .25s both; }
.sheet-card { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; display: flex; flex-direction: column; border-radius: 26px 26px 0 0; border-top: 2px solid rgba(255, 255, 255, .7);
  background: linear-gradient(180deg, #0f4bc4, #082f8f 40%, #062577); box-shadow: 0 -10px 40px rgba(0, 0, 0, .4); animation: up .32s cubic-bezier(.2, .9, .3, 1) both;
  padding-bottom: env(safe-area-inset-bottom); }
.grip { width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .5); margin: 9px auto 0; flex: none; }
.sheet-x { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .08); cursor: pointer; font-size: 15px; }
.sheet-body { overflow-y: auto; padding: 12px 18px 24px; -webkit-overflow-scrolling: touch; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.dx h2 { font-size: 26px; font-weight: 600; line-height: 1.15; padding-right: 40px; }
.dx .where { color: var(--muted); font-size: 13px; margin-top: 4px; }
.dx .now { display: flex; align-items: center; gap: 16px; margin: 14px 0 6px; }
.dx .now .w { font-size: 64px; font-weight: 700; line-height: .9; font-variant-numeric: tabular-nums; }
.dx .now .w small { font-size: 18px; font-weight: 600; margin-left: 4px; }
.dx p { line-height: 1.55; font-size: 15px; color: #eaf2ff; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.tile { background: rgba(255, 255, 255, .08); border-radius: 14px; padding: 10px 12px; }
.tile small { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.tile b { display: block; font-size: 20px; margin-top: 2px; }
.tile span { font-size: 12px; color: var(--muted); }
canvas.chart { width: 100%; height: 170px; display: block; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- Map ---------- */
.mapwrap { position: fixed; left: 0; right: 0; top: var(--top); bottom: var(--tabh); z-index: 1; }
.mapwrap canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.mapbar { position: absolute; left: 10px; right: 10px; top: 8px; z-index: 2; }
.mapbar .chips { -webkit-mask: none; }
.mapbar .chip { background: rgba(6, 30, 110, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mapbar .chip.on { background: #fff; }
.maptools { position: absolute; right: 10px; bottom: 74px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.maptools button { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; background: rgba(6, 30, 110, .85); font-size: 20px; cursor: pointer; display: grid; place-items: center; }
.maptools button.on { background: #fff; color: #0c3fae; }
.mapkey { position: absolute; left: 10px; right: 70px; bottom: 10px; z-index: 2; padding: 8px 12px; border-radius: 14px; background: rgba(6, 30, 110, .85); font-size: 11px; }
.hm-scale { height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgb(46,204,113), rgb(140,214,80) 16%, rgb(255,216,74) 32%, rgb(255,158,60) 47%, rgb(255,84,72) 68%, rgb(176,16,44)); margin: 4px 0 2px; }
.hm-ticks { display: flex; justify-content: space-between; color: var(--muted); }
.mapnote { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }

/* ---------- Plan (crowd calendar) ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal .dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 1px; padding-bottom: 2px; }
.cal .d { aspect-ratio: 1 / 1.05; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; cursor: pointer;
  color: #071a3a; text-shadow: none; position: relative; border: 2px solid transparent; }
.cal .d small { font-size: 9px; font-weight: 700; letter-spacing: .3px; opacity: .8; }
.cal .d.l1 { background: #5df0a0; } .cal .d.l2 { background: #b6ef7a; } .cal .d.l3 { background: #ffd84a; } .cal .d.l4 { background: #ff9e3c; } .cal .d.l5 { background: #ff5448; color: #fff; }
.cal .d.today { border-color: #fff; box-shadow: 0 0 0 2px #0a3fb4 inset; }
.cal .d .p { position: absolute; top: 2px; right: 4px; font-size: 10px; }
.cal .mon { grid-column: 1 / -1; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin: 10px 0 2px; }
.lvkey { display: flex; gap: 6px; flex-wrap: wrap; font-size: 11px; margin-top: 10px; }
.lvkey span { padding: 3px 8px; border-radius: 8px; color: #071a3a; font-weight: 700; text-shadow: none; }

/* ---------- Don't Miss ---------- */
.ev { display: flex; gap: 12px; padding: 12px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; }
.ev + .ev { margin-top: 8px; }
.ev.now { box-shadow: inset 0 0 0 2px var(--accent); }
.ev .dt { flex: none; width: 56px; border-radius: 12px; background: rgba(255, 255, 255, .12); text-align: center; padding: 6px 0; line-height: 1.05; }
.ev .dt small { display: block; font-size: 10px; letter-spacing: 1px; } .ev .dt b { display: block; font-size: 24px; } .ev .dt.star b { font-size: 20px; padding: 6px 0; }
.ev .t { font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev .s { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev .k { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; font-weight: 700; }
.kchip { font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #3f7fe0; color: #fff; text-shadow: none; }
.k-day { background: #e85a9b; } .k-insider { background: #23a86b; } .k-ticketed { background: #8a5ce6; } .k-new { background: #e8a91f; color: #2a1a00; }

/* ---------- Hidden Details ---------- */
.dd-hero { border-radius: 24px; padding: 18px; background: linear-gradient(150deg, rgba(255, 143, 199, .25), rgba(4, 28, 96, .8) 50%), var(--panel); border: 1px solid rgba(255, 255, 255, .3); }
.dd-hero h1 { font-family: var(--brand); font-size: 44px; font-weight: 400; letter-spacing: .5px; }
.prog { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .15); overflow: hidden; margin-top: 10px; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, #ffe49a, #f3bd45); border-radius: 5px; transition: width .6s; }
.dd { display: flex; gap: 12px; padding: 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; }
.dd + .dd { margin-top: 8px; }
.dd .ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: rgba(255, 255, 255, .1); }
.dd .t { font-weight: 600; font-size: 16px; line-height: 1.25; }
.dd .s { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.dd.found { border-color: rgba(255, 226, 122, .6); }
.dd.found .ic { background: linear-gradient(180deg, #ffe49a, #f3bd45); }
.dd .dist { flex: none; font-size: 12px; font-weight: 700; color: var(--accent); align-self: center; }
.spot { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- More ---------- */
.menu a, .menu button { display: flex; align-items: center; gap: 12px; padding: 13px 2px; text-decoration: none; width: 100%; background: none; border: 0; text-align: left; cursor: pointer; font-size: 16px; }
.menu a + a, .menu a + button, .menu button + a, .menu button + button { border-top: 1px solid rgba(255, 255, 255, .12); }
.menu .mi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); font-size: 18px; flex: none; }
.menu .chev { margin-left: auto; opacity: .6; }
.field { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.field label { flex: 1; font-size: 15px; }
.field select, .field input { background: rgba(0, 20, 80, .5); color: #fff; border: 2px solid rgba(255, 255, 255, .4); border-radius: 12px; padding: 8px 10px; font: inherit; font-size: 14px; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff3b4f; box-shadow: 0 0 0 0 rgba(255, 59, 79, .7); animation: pulse 1.6s infinite; margin-right: 6px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 59, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 79, 0); } }
.foot { text-align: center; font-size: 11.5px; color: var(--muted); padding: 26px 10px 10px; line-height: 1.6; }

/* ---------- the monorail between parks ---------- */
#transit { position: fixed; inset: 0; z-index: 60; background: rgba(4, 6, 18, .88); animation: fade .2s both; pointer-events: none; }
#transit .stop { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font-family: var(--brand); font-size: 46px; }
#transit .stop small { display: block; font-family: var(--font); font-size: 13px; letter-spacing: 4px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
#transit .rail { position: absolute; left: 0; right: 0; top: 58%; height: 8px; background: var(--muted); opacity: .5; }
#transit .car { position: absolute; top: calc(58% - 46px); left: 0; width: 230px; height: 42px; border-radius: 22px 32px 8px 8px; background: linear-gradient(180deg, #fff 0 46%, var(--accent) 46% 60%, #e9e9ee 60%);
  animation: ride 1.05s cubic-bezier(.5, 0, .3, 1) both; }
#transit .car::after { content: ""; position: absolute; left: 18px; right: 34px; top: 7px; height: 11px; border-radius: 6px; background: #1b2340; }
@keyframes ride { from { transform: translateX(-260px); } to { transform: translateX(calc(100vw + 30px)); } }
#toast { position: fixed; left: 50%; bottom: calc(var(--tabh) + 14px); transform: translateX(-50%); z-index: 70; padding: 10px 18px; border-radius: 999px; background: #fff; color: #0c3fae;
  font-weight: 700; font-size: 14px; text-shadow: none; box-shadow: 0 8px 26px rgba(0, 0, 0, .35); animation: pop .3s both; max-width: 90vw; text-align: center; }

/* ================= phone on its side: the tabs become a rail ================= */
@media (orientation: landscape) and (max-height: 520px) {
  :root { --top: calc(48px + env(safe-area-inset-top)); --rail: calc(78px + env(safe-area-inset-left)); }
  #app { grid-template-columns: var(--rail) 1fr; grid-template-rows: var(--top) 1fr; grid-template-areas: "tabs top" "tabs view"; }
  #tabs { flex-direction: column; justify-content: center; padding: env(safe-area-inset-top) 6px env(safe-area-inset-bottom) calc(6px + env(safe-area-inset-left)); border-top: 0; border-right: 2px solid rgba(255, 255, 255, .7); gap: 2px; }
  .tab { flex: none; padding: 4px 2px; font-size: 9px; } .tab svg { width: 22px; height: 22px; }
  #top { padding-left: 14px; } .brand span { font-size: 23px; }
  #scene { height: 80vh; }
  .glance { grid-template-columns: repeat(3, 1fr); }
  .mapwrap { left: var(--rail); bottom: 0; }
  .sheet-card { left: auto; right: 0; top: 0; width: min(440px, 62vw); max-height: none; border-radius: 26px 0 0 26px; border-top: 0; border-left: 2px solid rgba(255, 255, 255, .7); animation: slidein .3s ease both; }
  .grip { display: none; }
  #toast { bottom: 18px; }
}
@keyframes slidein { from { transform: translateX(100%); } to { transform: none; } }

/* ================= wide screens: an unfolded iPhone Duo, a tablet, a desktop ================= */
@media (min-width: 760px) and (min-height: 521px) {
  :root { --rail: calc(96px + env(safe-area-inset-left)); --top: calc(62px + env(safe-area-inset-top)); }
  #app { grid-template-columns: var(--rail) minmax(0, 1fr); grid-template-rows: var(--top) 1fr; grid-template-areas: "tabs top" "tabs view"; }
  #tabs { flex-direction: column; justify-content: flex-start; padding: calc(16px + env(safe-area-inset-top)) 10px 16px calc(10px + env(safe-area-inset-left)); gap: 6px; border-top: 0;
    border-right: 2px solid rgba(255, 255, 255, .7); }
  .tab { flex: none; font-size: 10.5px; padding: 8px 4px; } .tab svg { width: 28px; height: 28px; }
  #view { padding: 6px 22px 30px; }
  .glance { grid-template-columns: repeat(3, 1fr); }
  .mapwrap { left: var(--rail); bottom: 0; }
  .hello h1 { font-size: 48px; }
  /* with something open, it sits in a pane beside the list instead of covering it */
  #app.split { grid-template-columns: var(--rail) minmax(0, 1fr) minmax(340px, 42%); grid-template-areas: "tabs top top" "tabs view pane"; }
  #app.split #pane { display: block; grid-area: pane; overflow-y: auto; border-left: 2px solid rgba(255, 255, 255, .35); background: linear-gradient(180deg, rgba(15, 75, 196, .9), rgba(6, 37, 119, .92));
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: 16px 20px 30px; animation: slidein .3s ease both; position: relative; }
  #app.split .mapwrap { right: 42%; }
  #pane .pane-x { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .08); cursor: pointer; }
}
@media (min-width: 1100px) { .glance { grid-template-columns: repeat(3, 1fr); } #view > .page { max-width: 820px; } }

/* a device that tells us where its fold is (dual screens, some foldables): list on one side, details on the other */
@media (horizontal-viewport-segments: 2) {
  #app.split { grid-template-columns: var(--rail) calc(env(viewport-segment-width 0 0) - var(--rail)) calc(env(viewport-segment-left 1 0) - env(viewport-segment-right 0 0)) 1fr;
    grid-template-areas: "tabs top . top2" "tabs view . pane"; }
  #app.split #pane { border-left: 0; }
}
@media (vertical-viewport-segments: 2) {
  #app.split { grid-template-columns: var(--rail) 1fr; grid-template-rows: var(--top) calc(env(viewport-segment-bottom 0 0) - var(--top)) calc(env(viewport-segment-top 0 1) - env(viewport-segment-bottom 0 0)) 1fr;
    grid-template-areas: "tabs top" "tabs view" "tabs ." "tabs pane"; }
}

/* ---------- refinements after the first look ---------- */
#view > .page.still { animation: none; }
.title { flex-wrap: wrap; row-gap: 2px; }
.title .sub { margin-left: auto; }
@media (max-width: 520px) { .title .sub { margin-left: 0; width: 100%; order: 2; } }
.tab { font-size: 9.5px; letter-spacing: 0; }
.pk b { padding-right: 28px; }
.glance > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.cal .d small { font-size: 8.5px; }
.tab span:last-child { font-size: 9px; letter-spacing: -.1px; }

/* ---------- after the design review ---------- */
.tab span:last-child { text-transform: none; font-size: 10.5px; font-weight: 700; letter-spacing: 0; }
.chip { min-height: 38px; display: inline-flex; align-items: center; }
.sheet-x, .iconbtn, .pane-x { min-width: 40px; min-height: 40px; }
.ev .dt { align-self: flex-start; }
.ev .s { -webkit-line-clamp: 1; }
.rings { display: flex; justify-content: space-between; gap: 4px; margin-top: 14px; }
.ring { display: flex; flex-direction: column; align-items: center; line-height: 1.1; font-size: 11px; }
.ring b { font-size: 11px; margin-top: 2px; } .ring small { color: var(--muted); font-size: 10px; }
.status-closed { color: #ffd7a8; }
#topinfo { max-width: 46vw; text-overflow: ellipsis; }
#topinfo br + * , #topinfo { overflow: hidden; }

/* ================= the phone rework: roomier, calmer, one thing per row ================= */
#app { grid-template-columns: minmax(0, 1fr); }            /* never wider than the phone */
/* ...on a phone. Tablets and landscape phones keep the side rail beside the page. */
@media (orientation: landscape) and (max-height: 520px) { #app { grid-template-columns: var(--rail) minmax(0, 1fr); } }
@media (min-width: 760px) and (min-height: 521px) { #app { grid-template-columns: var(--rail) minmax(0, 1fr); } }
.tab { font-size: 11px; } .tab span:last-child { font-size: 11px; }
.tab svg { width: 25px; height: 25px; }
.hello { padding-top: 12px; }
.hello h1 { font-size: 34px; }
.sec { margin: 24px 2px 10px; }

/* Today: one row per park */
.pk-row { text-decoration: none; padding: 12px 2px; }
.pk-row .ico { width: 34px; height: 34px; flex: none; border-radius: 11px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; opacity: .9; }
.pk-row .ico svg { width: 20px; height: 20px; }
.pk-row .sub { font-weight: 600; }
.pk-row.on { background: rgba(255, 255, 255, .07); border-radius: 12px; }
.parks-now .pill { min-width: 70px; }
.wide-btn { width: 100%; margin-top: 12px; text-transform: none; font-size: 15px; letter-spacing: 0; }

/* Waits: one park button, a view switch, then the list */
.wbar { padding: 8px 0 4px; }
.wtop { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 10px; }
.parkpick { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; color: #fff; text-align: left; }
.pp-name { font-size: 30px; font-weight: 300; line-height: 1.1; }
.pp-caret { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .16); flex: none; }
.pp-st { font-size: 13px; }
.seg.views { margin: 0 0 12px; }
.seg.views a { flex: 1; text-align: center; padding: 9px 6px; border-radius: 11px; font-size: 14px; font-weight: 700; text-decoration: none; }
.seg.views a.on { background: #fff; color: #0c3fae; text-shadow: none; }
.chips.kinds { -webkit-mask: none; padding-top: 0; }
.tools { display: flex; gap: 8px; align-items: center; margin: 2px 0 10px; }
.tool { border: 0; background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 700; cursor: pointer; min-height: 38px; }
.tool.on { background: #fff; color: #0c3fae; text-shadow: none; }
.tool.icon { margin-left: auto; width: 42px; display: grid; place-items: center; padding: 0; }
.search { margin-bottom: 10px; }
.li .nm { font-size: 16px; }
.li .sub { font-size: 13px; }

/* the overlay bar on the map and the bubbles */
.wbar.over { position: absolute; left: 0; right: 0; top: 0; z-index: 3; padding: 8px 12px 10px; background: linear-gradient(180deg, rgba(6, 30, 110, .94), rgba(6, 30, 110, .8) 75%, rgba(6, 30, 110, 0)); }
.wbar.over .wtop { flex-direction: row; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.wbar.over .pp-name { font-size: 22px; font-weight: 600; }
.wbar.over .pp-caret { width: 24px; height: 24px; }
.wbar.over .seg.views { margin: 0; }

/* Bubbles */
.bubwrap { background: radial-gradient(ellipse at 50% 45%, rgba(40, 90, 200, .35), rgba(4, 16, 60, .92) 80%); }
.bub-area { position: absolute; left: 0; right: 0; top: 150px; bottom: 40px; touch-action: none; overflow: hidden; }
.bub-kinds { position: absolute; left: 10px; right: 0; top: 100px; z-index: 3; -webkit-mask: none; }
.bub-kinds .chip { background: rgba(6, 30, 110, .85); min-height: 34px; padding: 5px 12px; font-size: 12px; text-transform: none; }
.bub-kinds .chip.on { background: #fff; }
.bub-key { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 12px; font-size: 12px; z-index: 3; }
.bub-key span { display: inline-flex; align-items: center; gap: 5px; }
.bub-key i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #cfe8ff; background: rgba(207, 232, 255, .3); }
.bub-key i.good { border-color: var(--good); background: rgba(93, 240, 160, .35); } .bub-key i.warn { border-color: var(--warn); background: rgba(255, 194, 74, .35); } .bub-key i.bad { border-color: var(--bad); background: rgba(255, 107, 107, .35); }
.bub { --c: #cfe8ff; position: absolute; left: 0; top: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  line-height: 1.05; overflow: hidden; user-select: none; -webkit-user-select: none; cursor: grab; will-change: transform;
  background: radial-gradient(circle, rgba(0, 10, 40, .25) 50%, color-mix(in srgb, var(--c) 50%, transparent) 100%);
  border: 2px solid color-mix(in srgb, var(--c) 85%, transparent); box-shadow: 0 0 calc(6px + var(--s, 0) * 16px) color-mix(in srgb, var(--c) 55%, transparent); }
.bub.good, .bub.warn, .bub.bad { color: #fff; }
.bub.good { --c: var(--good); } .bub.warn { --c: var(--warn); } .bub.bad { --c: var(--bad); } .bub.k-show { border-style: dashed; }
.bub .bn { font-size: 1em; font-weight: 700; max-width: 84%; max-height: 2.2em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bub b { font-size: 2.6em; font-weight: 800; line-height: .95; }
.bub small { font-size: .9em; font-weight: 700; opacity: .85; }
.bub small.down { color: var(--good); opacity: 1; } .bub small.up { color: #ff9a9a; opacity: 1; }
.bub.sm .bn { display: none; } .bub.sm b { font-size: 2.9em; } .bub.xs small { display: none; }
.bub.held { z-index: 4; cursor: grabbing; }

/* Don't Miss */
.ogs { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin: 0 -14px; padding-left: 14px; scrollbar-width: none; }
.ogs::-webkit-scrollbar { display: none; }
.og { flex: none; width: 74%; max-width: 300px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; }
.og .kchip { align-self: flex-start; }
.og .t { font-weight: 700; font-size: 17px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.og .s { font-size: 13px; color: var(--muted); }
.og .when { margin-top: auto; font-weight: 700; color: var(--accent); }
.og .when.ending { color: #ffb36b; }
.og.soon { border-style: dashed; }
.og .bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; } .og .bar i { display: block; height: 100%; background: var(--accent); }
.ev .t { font-size: 16px; }
.ev .k { flex-wrap: wrap; }
.k-scoop { background: #e5533d; }
.ev.ev-scoop, .og.og-scoop { border-color: rgba(229, 83, 61, .7); }
.li.story { text-decoration: none; align-items: flex-start; }
.li.story .nm { font-size: 15px; }

/* ================= the side menu (everything on Magic Window's menu bar) ================= */
#top { gap: 8px; }
.burger { border: 0; background: rgba(255, 255, 255, .12); cursor: pointer; }
.brand span { font-size: 25px; }
#drawer { position: fixed; inset: 0; z-index: 50; }
.dr-back { position: absolute; inset: 0; background: rgba(0, 6, 30, .55); animation: fade .2s both; }
.dr-card { position: absolute; left: 0; top: 0; bottom: 0; width: min(86vw, 360px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #1a5fe0, #0b3ba8 40%, #082f8f); border-right: 2px solid rgba(255, 255, 255, .7); box-shadow: 10px 0 40px rgba(0, 0, 0, .4);
  padding: calc(10px + env(safe-area-inset-top)) 12px calc(20px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left)); animation: drin .26s cubic-bezier(.2, .9, .3, 1) both; transition: transform .1s; }
@keyframes drin { from { transform: translateX(-100%); } to { transform: none; } }
.dr-head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 12px; border-bottom: 1px solid rgba(255, 255, 255, .25); margin-bottom: 6px; }
.dr-head span { font-family: var(--brand); font-size: 28px; flex: 1; }
.dr-head .iconbtn { cursor: pointer; font-size: 16px; }
.dr-list { display: flex; flex-direction: column; }
.dr-item { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 14px; text-decoration: none; min-height: 54px; }
.dr-item:active { background: rgba(255, 255, 255, .15); }
.dr-item.on { background: rgba(255, 255, 255, .14); box-shadow: inset 3px 0 0 #3fe894; }
.dr-item.on b { color: #3fe894; }
.dr-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; font-size: 20px; border-radius: 12px; background: rgba(255, 255, 255, .12); }
.dr-item b { display: block; font-size: 16px; font-weight: 700; }
.dr-item small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; line-height: 1.3; }
.dr-gap { height: 1px; background: rgba(255, 255, 255, .22); margin: 8px 4px; }
.card .dr-item { padding: 10px 2px; }

/* the new pages */
.hero-card { border-radius: 22px; padding: 18px; background: linear-gradient(160deg, rgba(255, 228, 154, .22), rgba(4, 28, 96, .82) 50%), var(--panel); border: 1px solid rgba(255, 228, 154, .55); }
.hero-card small { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.hero-card h2 { font-size: 26px; font-weight: 600; margin-top: 4px; }
.hero-card .btn { width: 100%; text-transform: none; font-size: 15px; letter-spacing: 0; }
.big-count { font-size: 40px; font-weight: 700; color: var(--accent); margin-top: 10px; line-height: 1.1; }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.cd div { background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 10px 4px; text-align: center; }
.cd b { display: block; font-size: 34px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cd span { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.fw.past { opacity: .5; }
.chev { margin-left: 4px; font-size: 22px; }

.seg a { flex: 1; border: 0; padding: 9px 6px; border-radius: 11px; font-size: 13px; font-weight: 700; text-align: center; text-decoration: none; }
.seg a.on { background: #fff; color: #0c3fae; text-shadow: none; }
.brand span { font-size: 22px; }
.brand img { width: 30px; height: 30px; }
#topinfo { max-width: 36vw; }

/* ================= Don't Miss: the legend is the filter ================= */
.k-new { background: #3f7fe0; color: #fff; }
.g-event { --g: #3f7fe0; } .g-ticketed { --g: #8a5ce6; } .g-day { --g: #e85a9b; } .g-insider { --g: #23a86b; } .g-scoop { --g: #e5533d; } .g-all { --g: #fff; }
.evlg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 4px 0 8px; }
.evlg .lg { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 8px; border-radius: 12px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; color: #fff; text-align: left;
  background: rgba(6, 30, 110, .7); border: 1.5px solid rgba(255, 255, 255, .2); }
.evlg .lg span { flex: 1; min-width: 0; line-height: 1.15; }
.evlg .lg i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 2px rgba(255, 255, 255, .45); }
.evlg .lg b { flex: none; font-size: 11px; background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 1px 7px; }
.evlg .lg.on { background: var(--g); border-color: #fff; } .evlg .lg.on i { box-shadow: 0 0 0 2px #fff; }
.evlg .g-all.on { color: #0a2470; } .evlg .g-all.on b { background: rgba(10, 36, 112, .14); }
.evsort { margin-bottom: 6px; }
.evsort button { flex: 1; }
.ev { border-left: 5px solid #3f7fe0; }
.ev.ev-ticketed { border-left-color: #8a5ce6; } .ev.ev-day { border-left-color: #e85a9b; } .ev.ev-insider { border-left-color: #23a86b; } .ev.ev-scoop { border-left-color: #e5533d; }
.og { border-top: 4px solid #3f7fe0; } .og.og-ticketed { border-top-color: #8a5ce6; } .og.og-day { border-top-color: #e85a9b; } .og.og-insider { border-top-color: #23a86b; } .og.og-scoop { border-top-color: #e5533d; }
.og.soon .kchip { background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1.5px #fff; }
.gsec { display: flex; align-items: center; gap: 8px; } .gsec i { width: 12px; height: 12px; border-radius: 50%; background: var(--g); }

/* ================= Construction ================= */
.cxg-land, .cx.k-land, .cxd.k-land { --g: #1fb5a8; --kc: #1fb5a8; }
.cxg-ride, .cx.k-ride, .cxd.k-ride { --g: #f08a24; --kc: #f08a24; }
.cxg-show, .cx.k-show, .cxd.k-show { --g: #8a5ce6; --kc: #8a5ce6; }
.cxg-refurb, .cx.k-refurb, .cxd.k-refurb { --g: #e85a9b; --kc: #e85a9b; }
.cxg-hotel, .cx.k-hotel, .cxd.k-hotel { --g: #3f7fe0; --kc: #3f7fe0; }
.cxg-all { --g: #fff; }
.cx { display: flex; flex-direction: column; gap: 7px; padding: 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); border-top: 5px solid var(--kc); cursor: pointer; }
.cx + .cx { margin-top: 10px; }
.cx .kchip, .cxd .kchip { background: var(--kc); }
.cx-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cx-park { flex: 1; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-warn { flex: none; font-size: 11px; font-weight: 800; color: #2a1a00; background: #ffc24a; border-radius: 999px; padding: 2px 8px; text-shadow: none; }
.cx-name { font-size: 18px; font-weight: 700; line-height: 1.25; }
.cx-prog { display: flex; align-items: center; gap: 10px; }
.cx-bar { flex: 1; height: 9px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.cx-bar i { display: block; height: 100%; border-radius: 99px; background: var(--kc); }
.cx-prog b { font-size: 16px; min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
.cx-row { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.cxs { display: flex; gap: 4px; } .cxs i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.cxs i.done { background: var(--kc); } .cxs i.now { background: #fff; box-shadow: 0 0 0 2px var(--kc); }
.cx-open { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; } .cx-open b { color: var(--accent); font-size: 15px; } .cx-open span { font-size: 12.5px; color: var(--muted); }
.cx.is-open .cx-open b { color: var(--good); }
.cx-news { border-top: 1px solid var(--line); padding-top: 7px; font-size: 13px; line-height: 1.3; }
.cx-news small { display: block; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: #9fd0ff; font-weight: 700; }
.cx-news span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cxdash { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 6px; }
.cxring { grid-row: span 2; aspect-ratio: 1; max-width: 150px; width: 100%; justify-self: center; align-self: center; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(closest-side, #0c3191 78%, transparent 79% 100%), conic-gradient(var(--kc) calc(var(--p) * 1%), rgba(255, 255, 255, .15) 0); }
.cxring b { font-size: 30px; line-height: 1; } .cxring small { font-size: 12px; color: var(--muted); }
.cxbox { background: rgba(255, 255, 255, .09); border-radius: 14px; padding: 9px 11px; min-width: 0; }
.cxbox small { display: block; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cxbox b { display: block; font-size: 15px; margin-top: 2px; line-height: 1.2; } .cxbox span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.cxbox .cxs { margin-top: 6px; }
.cxholds { background: rgba(255, 194, 74, .14); border: 1.5px solid rgba(255, 194, 74, .6); border-radius: 14px; padding: 10px 12px; font-size: 13.5px; line-height: 1.4; margin: 10px 0; }
.cxholds b { display: block; color: #ffc24a; margin-bottom: 3px; }
.cxms { border-left: 3px solid var(--kc); padding-left: 12px; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; }
.cxms div { display: flex; flex-direction: column; } .cxms b { color: var(--accent); font-size: 12px; }
.evlg.cxlg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.evlg .cxg-all.on { color: #0a2470; } .evlg .cxg-all.on b { background: rgba(10, 36, 112, .14); }
.cxbox .cxs { gap: 3px; } .cxbox .cxs i { width: 8px; height: 8px; }

/* Event Schedules */
.scg-concert, .sc.k-concert, .scli.k-concert { --g: #f08a24; --kc: #f08a24; }
.scg-narrator, .sc.k-narrator, .scli.k-narrator { --g: #d9a521; --kc: #d9a521; }
.scg-broadway, .sc.k-broadway, .scli.k-broadway { --g: #e85a9b; --kc: #e85a9b; }
.scg-show, .sc.k-show, .scli.k-show { --g: #8a5ce6; --kc: #8a5ce6; }
.scg-party, .sc.k-party, .scli.k-party { --g: #1fb5a8; --kc: #1fb5a8; }
.scg-all { --g: #fff; } .evlg .scg-all.on { color: #0a2470; } .evlg .scg-all.on b { background: rgba(10, 36, 112, .14); }
.sc.st-done { opacity: .62; }
.scst { flex: none; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 8px; background: rgba(255, 255, 255, .15); white-space: nowrap; }
.st-on .scst { background: #2fd27a; color: #06301a; text-shadow: none; }
.scfest { font-size: 12.5px; color: var(--muted); margin-top: -4px; }
.scspot { background: color-mix(in srgb, var(--kc) 26%, transparent); border-left: 4px solid var(--kc); border-radius: 12px; padding: 7px 11px; min-width: 0; }
.scspot small { display: block; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; opacity: .85; }
.scspot b { display: block; font-size: 17px; line-height: 1.25; } .scspot span { display: block; font-size: 12.5px; color: #ffe6a3; }
.scspot.quiet b { font-size: 15px; }
.scnew { font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .8px; background: #ffd23f; color: #3a2a00; border-radius: 5px; padding: 1px 5px; margin-left: 6px; vertical-align: 2px; text-shadow: none; }
.scafter { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.scafter div { display: flex; gap: 8px; align-items: baseline; } .scafter b { flex: none; width: 84px; color: var(--muted); font-weight: 600; font-size: 12px; }
.scfoot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; }
.scli { border-left: 4px solid var(--kc); cursor: pointer; } .scic { flex: none; font-size: 18px; }
.sec.sctoday { color: #2fd27a; }
.scdash { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 6px; } .scdash .wide { grid-column: span 2; }
.scmh { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--kc); padding: 10px 12px 4px; filter: brightness(1.3); }
.cxd.sc { --kc: #9aa7c7; } .cxd.sc.k-concert { --kc: #f08a24; } .cxd.sc.k-narrator { --kc: #d9a521; } .cxd.sc.k-broadway { --kc: #e85a9b; } .cxd.sc.k-show { --kc: #8a5ce6; } .cxd.sc.k-party { --kc: #1fb5a8; }
.sca > b { flex: none; width: 92px; font-size: 12.5px; color: #ffe6a3; font-weight: 600; }
.sca.past { opacity: .45; } .sca.now { background: rgba(47, 210, 122, .22); box-shadow: inset 4px 0 0 #2fd27a; }
.scnow { flex: none; font-size: 10.5px; font-weight: 800; background: #2fd27a; color: #06301a; border-radius: 999px; padding: 2px 8px; text-shadow: none; }
.scnights { display: flex; flex-wrap: wrap; gap: 5px; }
.scnights i { font-style: normal; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--kc) 30%, transparent); }
.scnights i.past { opacity: .4; } .scnights i.now { background: #2fd27a; color: #06301a; text-shadow: none; }

.scfacts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.scfacts span { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.scfacts span:last-child { background: color-mix(in srgb, var(--kc) 35%, transparent); }
.sca > b { width: 96px; } .sca.now { background: rgba(47, 210, 122, .22); box-shadow: inset 4px 0 0 #2fd27a; } .sca.now > b { color: #2fd27a; }

/* the last tab (Insider News) has the longest name: give it a little more room */
#tabs .tab:last-child, #tabs .tab:nth-child(3) { flex: 1.4; }
/* ...but not in the side rail of a tablet, where the tabs stack and must stay their own height */
@media (min-width: 760px) and (min-height: 521px) { #tabs .tab:last-child, #tabs .tab:nth-child(3) { flex: none; } }

/* Insider News: "Off the record" intel */
.g-intel { --g: #f5b400; } .evlg .g-intel.on { color: #1c1300; } .evlg .g-intel.on b { background: rgba(0, 0, 0, .16); }
.k-intel { background: #16120a; color: #ffd24d; box-shadow: inset 0 0 0 1.5px #f5b400; }
.ev.ev-intel { border-left-color: #f5b400; background: linear-gradient(90deg, rgba(20, 14, 0, .45), transparent 55%), var(--card, rgba(10, 30, 90, .55)); }
.ev.ev-intel .dt small:first-child::before { content: 'HEARD '; font-size: 8.5px; }
.sec.gsec.g-intel { color: #ffd970; }
.otrw { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, .7); margin: 12px 4px 6px; }
.otrmore { display: block; width: 100%; margin: 2px 0 10px; padding: 11px; border-radius: 14px; border: 1.5px solid #f5b400; background: rgba(245, 180, 0, .14);
  color: #ffd970; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.otrnote { border-left: 3px solid #f5b400; padding-left: 10px; }

/* Bubbles: the "Big bubbles: Short waits | Long waits" switch */
.bub-flip { display: flex; align-items: center; margin: 8px auto 2px; width: max-content; max-width: 100%; border-radius: 999px; background: rgba(0, 0, 0, .28); padding: 4px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.bub-flip span { font-size: 13px; font-weight: 700; padding: 0 10px 0 8px; opacity: .85; }
.bub-flip button { font: inherit; font-size: 14px; font-weight: 700; color: #fff; background: transparent; border: 0; border-radius: 999px; padding: 9px 14px; min-height: 40px; cursor: pointer; }
.bub-flip button.on { background: #ffd24a; color: #1a1200; }
.bub-flip { position: absolute; left: 50%; transform: translateX(-50%); bottom: 34px; z-index: 3; margin: 0; background: rgba(6, 30, 110, .9); white-space: nowrap; }
