:root {
  color-scheme: dark;
  --bg: #120d1c;
  --surface: #1d152b;
  --surface-2: #281d3b;
  --text: #f8f3e8;
  --muted: #ada6bb;
  --quiet: #746b83;
  --line: rgba(248, 243, 232, .13);
  --lime: #d8f36a;
  --coral: #ff715b;
  --purple: #b7a5ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { min-width: 320px; margin: 0; background: radial-gradient(circle at 80% -5%, rgba(183,165,255,.16), transparent 30rem), var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, select { font: inherit; }
button:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
a { color: inherit; }
.site-header { display: flex; align-items: center; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 11px 0; border-bottom: 1px solid var(--line); }
.brand { display: block; text-decoration: none; }
.brand-logo { display: block; width: 86px; height: auto; max-height: 28px; object-fit: contain; object-position: left center; }
.header-nav { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 12px; }
.header-nav a { text-decoration: none; }
.header-nav a:hover { color: var(--text); }
.header-nav span { color: var(--lime); }
.page-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.intro { padding: 48px 0 44px; }
.eyebrow { margin: 0; color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .16em; line-height: 1.2; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 2px; margin: 0 8px 3px 0; background: var(--coral); }
h1, h2, p { margin-top: 0; }
h1 { max-width: 780px; margin: 17px 0 22px; font-size: clamp(44px, 7vw, 84px); line-height: .94; letter-spacing: -.075em; }
h1 em { color: var(--lime); font-style: normal; }
.intro-copy { max-width: 510px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.live-strip { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: center; padding: 18px 20px; border: 1px solid rgba(255,113,91,.4); background: linear-gradient(90deg, rgba(255,113,91,.14), rgba(29,21,43,.76)); box-shadow: var(--shadow); }
.live-heading { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--coral); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.live-heading time { margin: 0; overflow: hidden; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: 0; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.live-heading strong { margin-left: auto; white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(255,113,91,.15); }
.live-events { display: flex; gap: 10px; min-width: 0; overflow-x: auto; }
.live-card { min-width: 235px; padding-left: 12px; border: 0; border-left: 2px solid var(--coral); background: transparent; color: var(--text); cursor: pointer; text-align: left; }
.live-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.live-card span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.live-empty { margin: 0; color: var(--muted); font-size: 12px; }
.program { padding: 78px 0 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin: 10px 0 0; font-size: 31px; letter-spacing: -.05em; }
.section-tools { display: flex; align-items: center; gap: 18px; }
.language-toggle { padding: 8px 10px; border: 1px solid var(--line); background: transparent; color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .08em; cursor: pointer; }
.language-toggle:hover { border-color: var(--lime); background: var(--lime); color: var(--bg); }
.preview-note { margin: 0; color: var(--quiet); font-size: 11px; line-height: 1.5; text-align: right; }
.preview-note strong { color: var(--muted); font-weight: 500; }
.day-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; margin: 0 -1px; padding: 5px 0 0; border-bottom: 1px solid var(--line); background: rgba(18,13,28,.93); backdrop-filter: blur(14px); }
.day-tabs button { position: relative; flex: 0 0 140px; padding: 15px 15px 13px; border: 0; background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.day-tabs button:hover { color: var(--text); }
.day-tabs button[aria-selected="true"] { color: var(--text); }
.day-tabs button[aria-selected="true"]::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--lime); }
.day-tabs small { display: block; margin-bottom: 5px; color: var(--quiet); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.day-tabs button[aria-selected="true"] small { color: var(--lime); }
.day-tabs strong { font-size: 16px; }
.controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.mode-filters { display: flex; gap: 7px; }
.filter-button { min-height: 34px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.filter-button:hover, .filter-button.is-active { border-color: var(--lime); background: var(--lime); color: var(--bg); }
.select-filters { display: flex; align-items: center; gap: 10px; }
.venue-select-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.venue-select-label select { min-height: 34px; padding: 7px 30px 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--text); font-size: 11px; }
.schedule-shell { border: 1px solid var(--line); background: rgba(29,21,43,.75); box-shadow: var(--shadow); }
.schedule-scroll { overflow-x: auto; padding-left: 14px; }
.schedule-desktop { min-width: 1120px; }
.timeline-header, .venue-row { display: grid; grid-template-columns: 175px 1fr; }
.timeline-label, .venue-label { border-right: 1px solid var(--line); }
.timeline-label { padding: 17px 14px; color: var(--quiet); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hours { display: grid; grid-template-columns: repeat(11, 1fr); min-height: 49px; border-bottom: 1px solid var(--line); }
.hours span { padding: 17px 0 0 8px; border-right: 1px solid rgba(248,243,232,.07); color: var(--quiet); font-size: 10px; font-variant-numeric: tabular-nums; }
.venue-row { min-height: 108px; }
.venue-label { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.venue-label strong { font-size: 12px; }
.venue-label span { color: var(--quiet); font-size: 10px; }
.lane { position: relative; min-height: 108px; border-bottom: 1px solid var(--line); background-image: linear-gradient(90deg, transparent calc(9.09% - 1px), rgba(248,243,232,.07) calc(9.09% - 1px), rgba(248,243,232,.07) 9.09%, transparent 9.09%); background-size: 9.09% 100%; }
.event-card { position: absolute; top: 11px; bottom: 11px; min-width: 92px; padding: 11px 10px; overflow: hidden; border: 1px solid rgba(183,165,255,.5); border-left: 3px solid var(--purple); background: var(--surface-2); color: var(--text); cursor: pointer; text-align: left; transition: transform .15s ease, opacity .15s ease, border-color .15s ease; }
.event-card:hover { z-index: 3; transform: translateY(-2px); border-color: var(--text); }
.event-card.is-favorite { border-color: var(--lime); border-left-color: var(--lime); background: #333b2b; }
.event-card.is-live { border-color: var(--coral); border-left-color: var(--coral); }
.event-card.is-dimmed { opacity: .13; pointer-events: none; }
.event-card .event-time, .mobile-event .event-time { display: block; color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.event-card .event-title { display: -webkit-box; margin-top: 7px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 12px; font-weight: 800; line-height: 1.18; }
.event-card .event-type { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.event-category { display: flex; align-items: center; gap: 4px; margin-top: 7px; overflow: hidden; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.category-icon { flex: 0 0 auto; width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.category-talk .event-category { color: var(--purple); }
.category-workshop .event-category { color: var(--lime); }
.category-quiz .event-category { color: var(--coral); }
.category-tournament .event-category { color: #ffc55a; }
.category-cosplay .event-category { color: #f6a6e4; }
.category-signings .event-category { color: #71dce4; }
.category-freeplay .event-category { color: #9bd4ff; }
.category-performance .event-category { color: #d5b5ff; }
.category-social .event-category { color: #ffc55a; }
.favorite-star { position: absolute; top: 7px; right: 8px; color: var(--lime); font-size: 14px; }
.now-line { position: absolute; z-index: 2; top: 0; bottom: 0; width: 2px; background: var(--coral); box-shadow: 0 0 12px rgba(255,113,91,.8); pointer-events: none; }
.now-line::before { content: attr(data-time); position: absolute; top: -21px; left: -15px; width: 32px; padding: 3px 0; background: var(--coral); color: var(--bg); font-size: 8px; font-weight: 900; text-align: center; }
.mobile-schedule { display: none; }
.empty-state { padding: 70px 24px; border: 1px solid var(--line); background: rgba(29,21,43,.75); text-align: center; }
.empty-state h3 { margin: 0 0 9px; font-size: 24px; letter-spacing: -.04em; }
.empty-state p { max-width: 380px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.5; }
.session-modal { width: min(620px, calc(100% - 32px)); margin: auto; padding: 0; border: 1px solid rgba(216,243,106,.45); background: var(--surface); color: var(--text); box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.session-modal::backdrop { background: rgba(7, 4, 12, .76); backdrop-filter: blur(5px); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px 0; }
.modal-close { width: 34px; height: 34px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 25px; line-height: 1; cursor: pointer; }
.modal-close:hover { border-color: var(--text); color: var(--text); }
.modal-content { padding: 20px 24px 26px; }
.modal-content h2 { max-width: 560px; margin: 0 0 8px; font-size: 30px; letter-spacing: -.05em; }
.selected-meta { color: var(--muted); font-size: 12px; }
.modal-content > p { max-width: 560px; margin: 20px 0 0; color: #d6d0dc; font-size: 14px; line-height: 1.6; white-space: pre-line; }
.modal-footer { display: flex; justify-content: flex-end; gap: 14px; padding: 16px 24px; border-top: 1px solid var(--line); }
.save-button { padding: 10px 12px; border: 1px solid var(--lime); background: var(--lime); color: var(--bg); font-size: 11px; font-weight: 800; cursor: pointer; }
.save-button:hover { border-color: var(--text); background: var(--text); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0 32px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 11px; }
.site-footer b { color: var(--muted); }

@media (max-width: 700px) {
  .site-header, .page-shell, .site-footer { width: min(100% - 24px, 560px); }
  .site-header { padding: 11px 0; }
  .header-nav { gap: 11px; font-size: 11px; }
  .intro { padding: 49px 0 42px; }
  h1 { font-size: clamp(42px, 14vw, 66px); }
  .intro-copy { max-width: 430px; font-size: 15px; }
  .live-strip { display: block; padding: 15px; }
  .live-heading { gap: 7px; }
  .live-heading time { min-width: 0; }
  .live-events { margin-top: 15px; padding-bottom: 2px; }
  .live-card { min-width: 215px; }
  .program { padding-top: 53px; }
  .section-heading { align-items: flex-start; }
  .section-tools { align-items: flex-end; flex-direction: column-reverse; gap: 10px; }
  .preview-note { display: none; }
  .day-tabs { top: 0; margin: 0 -12px; padding: 0 12px; }
  .day-tabs button { flex: 1 1 0; padding: 14px 9px 12px; }
  .day-tabs strong { font-size: 15px; }
  .controls { align-items: stretch; flex-direction: column; gap: 12px; padding: 14px 0; }
  .mode-filters { display: grid; grid-template-columns: repeat(3, 1fr); }
  .filter-button { width: 100%; padding: 8px 4px; }
  .select-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .venue-select-label { align-items: stretch; flex-direction: column; gap: 6px; }
  .venue-select-label select { width: 100%; }
  .schedule-shell { border: 0; background: transparent; box-shadow: none; }
  .schedule-scroll, .schedule-desktop { display: none; }
  .mobile-schedule { display: block; }
  .mobile-scroll-note { margin: 0 0 9px; color: var(--quiet); font-size: 10px; }
  .mobile-stage-scroll { display: flex; gap: 12px; overflow-x: auto; margin: 0 -12px 0 0; padding: 0 24px 18px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--purple) transparent; }
  .mobile-stage-column { flex: 0 0 min(82vw, 360px); scroll-snap-align: start; }
  .mobile-group-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 9px; color: var(--muted); }
  .mobile-group-heading strong { color: var(--text); font-size: 14px; }
  .mobile-group-heading span { color: var(--quiet); font-size: 10px; }
  .mobile-event { position: relative; display: grid; grid-template-columns: 74px 1fr 31px; gap: 11px; width: 100%; min-height: 81px; margin: 7px 0; padding: 14px 12px; border: 1px solid var(--line); border-left: 3px solid var(--purple); background: var(--surface); color: var(--text); cursor: pointer; text-align: left; }
  .mobile-event:hover { border-color: var(--text); }
  .mobile-event.is-favorite { border-color: var(--lime); border-left-color: var(--lime); background: #333b2b; }
  .mobile-event.is-live { border-color: var(--coral); border-left-color: var(--coral); }
  .mobile-event.is-dimmed { display: none; }
  .mobile-event .event-time { padding-top: 2px; }
  .mobile-event .event-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 13px; font-weight: 800; line-height: 1.2; }
  .mobile-event .event-info { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.3; }
  .mobile-event .event-category { margin-top: 6px; font-size: 9px; }
  .mobile-event .favorite-star { position: static; align-self: start; justify-self: end; }
  .mobile-event .live-label { display: block; margin-top: 5px; color: var(--coral); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
  .session-modal { width: min(100% - 24px, 560px); }
  .modal-header, .modal-content { padding-inline: 19px; }
  .modal-content h2 { font-size: 24px; }
  .modal-footer { padding: 15px 19px; }
  .site-footer { flex-direction: column; gap: 7px; }
}

@media (max-width: 390px) {
  .header-nav a:nth-child(2) { display: none; }
  .brand-logo { width: 78px; max-height: 25px; }
  .live-card { min-width: 195px; }
  .mobile-event { grid-template-columns: 63px 1fr 26px; gap: 8px; padding-inline: 10px; }
}
