:root {
  --paper: #edf6ff;
  --paper-strong: #ffffff;
  --ink: #122033;
  --muted: #627086;
  --line: rgba(18, 32, 51, 0.12);
  --glass-line: rgba(255, 255, 255, 0.62);
  --glass-fill: rgba(255, 255, 255, 0.54);
  --shadow: 0 24px 60px rgba(25, 45, 75, 0.14);
  --blue: #1769ff;
  --yellow: #f7c948;
  --green: #63c55a;
  --coral: #ff6d4a;
  --cyan: #54c6eb;
  --violet: #8d5cf6;
  --pink: #ff4f7b;
  --radius: 8px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(246, 251, 255, 0.92), rgba(229, 243, 255, 0.84) 42%, rgba(250, 253, 255, 0.96)),
    linear-gradient(122deg, rgba(23, 105, 255, 0.18) 0 12%, transparent 12% 32%, rgba(255, 79, 123, 0.14) 32% 48%, transparent 48% 70%, rgba(99, 197, 90, 0.13) 70% 86%, transparent 86%),
    linear-gradient(34deg, transparent 0 20%, rgba(247, 201, 72, 0.12) 20% 35%, transparent 35% 62%, rgba(84, 198, 235, 0.14) 62% 78%, transparent 78%),
    repeating-linear-gradient(90deg, rgba(23, 105, 255, 0.06) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(18, 32, 51, 0.04) 0 1px, transparent 1px 46px),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.parallax-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 28%, rgba(23, 105, 255, 0.08) 56%, transparent),
    repeating-linear-gradient(135deg, rgba(23, 105, 255, 0.055) 0 1px, transparent 1px 20px),
    linear-gradient(90deg, rgba(141, 92, 246, 0.08), transparent 28%, rgba(84, 198, 235, 0.1) 62%, transparent);
}

.scene-wash,
.scene-grid,
.scene-ribbon,
.scene-lines,
.game-layer {
  position: absolute;
  inset: auto;
  will-change: transform;
}

.scene-wash {
  inset: 0;
  background:
    linear-gradient(118deg, transparent 0 9%, rgba(23, 105, 255, 0.18) 9% 12%, transparent 12% 34%, rgba(255, 109, 74, 0.13) 34% 38%, transparent 38% 63%, rgba(141, 92, 246, 0.11) 63% 67%, transparent 67%),
    linear-gradient(252deg, transparent 0 18%, rgba(84, 198, 235, 0.15) 18% 22%, transparent 22% 56%, rgba(247, 201, 72, 0.12) 56% 61%, transparent 61%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0 2px, transparent 2px 10px);
}

.scene-grid {
  left: -14%;
  right: -14%;
  top: -8%;
  bottom: -8%;
  height: auto;
  background-image:
    linear-gradient(rgba(23, 105, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 79, 123, 0.08) 1px, transparent 1px);
  background-size: 62px 62px;
  opacity: 0.72;
  transform: rotate(-6deg) scale(1.1);
}

.scene-ribbon {
  width: 72vw;
  min-width: 760px;
  height: 190px;
  opacity: 0.54;
  clip-path: polygon(0 28%, 100% 0, 100% 40%, 0 100%);
  backdrop-filter: blur(12px);
}

.scene-ribbon-a {
  top: 9%;
  right: -23%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 8px, transparent 8px 22px),
    linear-gradient(90deg, rgba(23, 105, 255, 0.28), rgba(84, 198, 235, 0.2));
}

.scene-ribbon-b {
  left: -30%;
  bottom: 10%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 8px, transparent 8px 22px),
    linear-gradient(90deg, rgba(247, 201, 72, 0.24), rgba(255, 79, 123, 0.18), rgba(99, 197, 90, 0.2));
}

.scene-lines {
  top: 0;
  right: 0;
  width: 34%;
  height: 100%;
  background: repeating-linear-gradient(
    135deg,
    rgba(18, 32, 51, 0.055) 0 1px,
    transparent 1px 24px
  );
  opacity: 0.9;
}

.game-layer {
  inset: -8% -6%;
}

.ps-symbol {
  position: absolute;
  display: block;
  opacity: 0.38;
  filter: drop-shadow(0 20px 30px rgba(23, 105, 255, 0.18));
  animation: float-piece var(--float-duration, 14s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

.ps-circle {
  width: 116px;
  height: 116px;
  border: 16px solid rgba(255, 79, 123, 0.34);
  border-radius: 50%;
}

.ps-square {
  width: 112px;
  height: 112px;
  border: 15px solid rgba(23, 105, 255, 0.34);
  border-radius: 10px;
}

.ps-cross {
  width: 116px;
  height: 116px;
}

.ps-cross::before,
.ps-cross::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 16px;
  height: 116px;
  border-radius: 999px;
  background: rgba(99, 197, 90, 0.36);
  transform-origin: center;
}

.ps-cross::before {
  transform: translateX(-50%) rotate(45deg);
}

.ps-cross::after {
  transform: translateX(-50%) rotate(-45deg);
}

.ps-triangle {
  width: 0;
  height: 0;
  border-left: 68px solid transparent;
  border-right: 68px solid transparent;
  border-bottom: 118px solid rgba(247, 201, 72, 0.34);
}

.ps-triangle::after {
  content: "";
  position: absolute;
  left: -42px;
  top: 34px;
  width: 0;
  height: 0;
  border-left: 42px solid transparent;
  border-right: 42px solid transparent;
  border-bottom: 73px solid rgba(248, 252, 255, 0.88);
}

.piece-a {
  left: 6%;
  top: 13%;
  --float-duration: 17s;
  --float-delay: -4s;
}

.piece-b {
  right: 13%;
  top: 10%;
  --float-duration: 14s;
  --float-delay: -1s;
}

.piece-c {
  right: 7%;
  top: 52%;
  --float-duration: 18s;
  --float-delay: -7s;
}

.piece-d {
  left: 10%;
  bottom: 12%;
  --float-duration: 20s;
  --float-delay: -10s;
}

@keyframes float-piece {
  0%,
  100% {
    translate: 0 0;
    rotate: -8deg;
  }

  35% {
    translate: 18px -26px;
    rotate: 6deg;
  }

  68% {
    translate: -14px 18px;
    rotate: 12deg;
  }
}

main {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
  align-items: center;
  gap: 48px;
  min-height: 100vh;
  padding: 54px 0 78px;
}

.stage-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-size: 4.15rem;
  line-height: 0.96;
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: 2.3rem;
  line-height: 1.05;
  font-weight: 900;
}

.next-panel {
  position: relative;
  min-height: 590px;
  padding: 32px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--blue)) 34%, var(--glass-line));
  border-radius: var(--radius);
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.48) 45%, rgba(255, 255, 255, 0.74)),
    linear-gradient(45deg, color-mix(in srgb, var(--accent, var(--blue)) 19%, transparent), transparent 42%),
    color-mix(in srgb, var(--accent, var(--blue)) 11%, var(--glass-fill));
  backdrop-filter: blur(26px) saturate(1.32);
  -webkit-backdrop-filter: blur(26px) saturate(1.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(255, 255, 255, 0.34),
    inset 0 0 0 1px color-mix(in srgb, var(--accent, var(--blue)) 9%, transparent),
    0 0 0 7px color-mix(in srgb, var(--accent, var(--blue)) 9%, transparent),
    0 32px 76px color-mix(in srgb, var(--accent, var(--blue)) 22%, rgba(25, 45, 75, 0.13)),
    0 10px 30px rgba(18, 32, 51, 0.08);
  overflow: hidden;
}

.next-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.64), transparent 18% 82%, rgba(255, 255, 255, 0.46)),
    linear-gradient(90deg, var(--accent, var(--blue)), color-mix(in srgb, var(--accent, var(--blue)) 56%, #ff4f7b));
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent, var(--blue)) 26%, transparent);
}

.next-panel::after {
  content: "";
  position: absolute;
  right: -64px;
  bottom: 12px;
  width: 285px;
  height: 285px;
  border: 42px solid color-mix(in srgb, var(--accent, var(--blue)) 25%, transparent);
  border-radius: 10px;
  transform: rotate(17deg);
  opacity: 0.62;
  filter: drop-shadow(0 28px 38px color-mix(in srgb, var(--accent, var(--blue)) 12%, transparent));
}

.panel-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 526px;
  flex-direction: column;
  isolation: isolate;
}

.panel-content::before {
  content: "";
  position: absolute;
  top: 88px;
  right: -18px;
  z-index: -1;
  width: min(42%, 320px);
  height: 168px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent, var(--blue)) 16%, transparent) 0 1px, transparent 1px 15px),
    linear-gradient(135deg, color-mix(in srgb, var(--accent, var(--blue)) 14%, transparent), transparent);
  transform: skewX(-12deg);
  opacity: 0.78;
}

.panel-skeleton {
  color: var(--muted);
  font-weight: 700;
}

.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--blue)) 18%, rgba(255, 255, 255, 0.72));
  background: color-mix(in srgb, var(--accent, var(--blue)) 13%, rgba(255, 255, 255, 0.74));
  color: color-mix(in srgb, var(--accent, var(--blue)) 78%, #0f1b2b);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.spotlight-pill {
  border-color: color-mix(in srgb, var(--accent, var(--blue)) 48%, rgba(255, 255, 255, 0.5));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent, var(--blue)) 30%, var(--ink)), var(--ink));
  color: #fff;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--accent, var(--blue)) 18%, rgba(18, 32, 51, 0.12));
}

.panel-date {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
  text-align: right;
}

.panel-title {
  margin: 0;
  max-width: 760px;
  font-size: 3.05rem;
  line-height: 1.03;
  font-weight: 950;
  text-shadow: 0 16px 34px color-mix(in srgb, var(--accent, var(--blue)) 14%, transparent);
}

.panel-subtitle {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.panel-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 20px;
}

.card-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-height: 36px;
  margin-top: auto;
}

.rating-widget {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  min-height: 36px;
  padding: 5px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--blue)) 12%, var(--glass-line));
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.rating-value {
  min-width: 44px;
  margin-left: 3px;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.star-button {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: rgba(98, 112, 134, 0.42);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
}

.star-button:hover,
.star-button:focus-visible,
.star-button.is-active {
  color: #f3b51f;
  outline: none;
}

.star-button:hover {
  background: rgba(247, 201, 72, 0.12);
}

.reminder-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--blue)) 12%, var(--glass-line));
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.reminder-button:hover,
.reminder-button:focus-visible,
.reminder-button.is-active {
  border-color: color-mix(in srgb, var(--accent, var(--blue)) 38%, var(--line));
  background: color-mix(in srgb, var(--accent, var(--blue)) 12%, white);
  outline: none;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.next-panel .countdown {
  gap: 12px;
  margin-top: auto;
  padding-top: 30px;
}

.time-unit {
  min-width: 0;
  padding: 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  text-align: center;
}

.next-panel .time-unit {
  position: relative;
  padding: 18px 12px;
  border-color: color-mix(in srgb, var(--accent, var(--blue)) 18%, rgba(255, 255, 255, 0.72));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.46)),
    color-mix(in srgb, var(--accent, var(--blue)) 7%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 14px 28px rgba(18, 32, 51, 0.07);
}

.next-panel .time-unit::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 6px 6px 0 0;
  background: color-mix(in srgb, var(--accent, var(--blue)) 74%, white);
}

.time-unit strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.next-panel .time-unit strong {
  font-size: 2.38rem;
}

.time-unit span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.events-band {
  padding: 20px 0 84px;
}

.timeline-band {
  padding: 0 0 52px;
}

.timeline-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 2px 18px;
  scrollbar-color: rgba(23, 105, 255, 0.42) transparent;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "index date"
    "index title";
  column-gap: 10px;
  row-gap: 2px;
  flex: 0 0 218px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.34)),
    color-mix(in srgb, var(--accent) 7%, rgba(255, 255, 255, 0.48));
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 12px 30px rgba(25, 45, 75, 0.07);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  overflow: hidden;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.timeline-item::before {
  display: none;
}

.timeline-item:hover,
.timeline-item:focus-visible,
.timeline-item.is-next {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  background: color-mix(in srgb, var(--accent) 9%, white);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent),
    0 12px 30px rgba(25, 45, 75, 0.1);
  outline: none;
}

.timeline-index {
  grid-area: index;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 16%, white);
  color: color-mix(in srgb, var(--accent) 74%, #122033);
  font-size: 0.78rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.timeline-date {
  grid-area: date;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.timeline-item strong {
  grid-area: title;
  font-size: 0.92rem;
  line-height: 1.14;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
}

.event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 690px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 10%, var(--glass-line));
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.36) 55%, rgba(255, 255, 255, 0.58)),
    color-mix(in srgb, var(--accent) 5%, rgba(255, 255, 255, 0.48));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 42px rgba(25, 45, 75, 0.08);
  backdrop-filter: blur(20px) saturate(1.22);
  -webkit-backdrop-filter: blur(20px) saturate(1.22);
  overflow: hidden;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--accent);
}

.event-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.event-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 18%, white);
  color: color-mix(in srgb, var(--accent) 78%, #122033);
  font-variant-numeric: tabular-nums;
  font-weight: 950;
}

.event-label {
  width: fit-content;
  max-width: 100%;
  align-self: start;
  padding: 7px 9px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: color-mix(in srgb, var(--accent) 72%, #122033);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.panel-content > .event-label {
  margin-top: 0;
  margin-bottom: 10px;
}

.event-card h3 {
  min-height: 3.45rem;
  margin: 0;
  font-size: 1.52rem;
  line-height: 1.08;
}

.event-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.watch-list {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  min-height: 40px;
  margin-top: 0;
  overflow: visible;
}

.watch-list.panel-watch {
  margin-top: 10px;
}

.watch-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--blue)) 24%, rgba(18, 32, 51, 0.12));
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.logo-watch-link {
  padding-left: 6px;
}

.watch-logo {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 5px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(12, 18, 32, 0.16);
}

.watch-link {
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.watch-link:hover,
.watch-link:focus-visible {
  border-color: color-mix(in srgb, var(--accent, var(--blue)) 54%, rgba(18, 32, 51, 0.12));
  background: color-mix(in srgb, var(--accent, var(--blue)) 14%, white);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent, var(--blue)) 15%, transparent);
  color: var(--ink);
  outline: none;
}

.muted-chip {
  color: var(--muted);
}

.event-card .countdown {
  align-self: end;
  width: 100%;
  margin-top: 0;
  padding-top: 12px;
}

.event-card .time-unit {
  padding: 12px 7px;
}

.event-card .time-unit strong {
  font-size: 1.42rem;
}

.event-details {
  display: grid;
  gap: 12px;
  min-height: 104px;
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.info-row strong {
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.schedule-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding: 76px 0 82px;
  border-top: 1px solid var(--line);
}

.schedule-copy {
  grid-column: 1 / -1;
  max-width: 760px;
}

.schedule-copy p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.schedule-table-wrap {
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(25, 45, 75, 0.07);
}

.schedule-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.schedule-table th:last-child,
.schedule-table td:last-child {
  border-right: 0;
}

.schedule-table tr:last-child td {
  border-bottom: 0;
}

.schedule-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(247, 251, 255, 0.9);
}

.event-name-cell {
  min-width: 250px;
  color: var(--ink);
  font-weight: 900;
  box-shadow: inset 6px 0 0 var(--accent);
}

.event-name-cell span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 24px;
  margin-right: 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 17%, white);
  color: color-mix(in srgb, var(--accent) 78%, #122033);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.city-time {
  display: grid;
  gap: 3px;
  min-width: 112px;
  font-variant-numeric: tabular-nums;
}

.city-time span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.city-time strong {
  font-size: 1rem;
}

.footer {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.toast-region {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  gap: 8px;
  width: min(320px, calc(100% - 32px));
  pointer-events: none;
}

.toast {
  padding: 11px 13px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 16px 38px rgba(18, 32, 51, 0.18);
  font-size: 0.86rem;
  font-weight: 850;
}

body.is-telegram {
  min-height: var(--tg-viewport-stable-height, 100vh);
  padding-bottom: max(0px, env(safe-area-inset-bottom));
  background-color: var(--tg-theme-bg-color, var(--paper));
}

body.is-telegram main,
body.is-telegram .footer {
  width: min(var(--max-width), calc(100% - 20px));
}

body.is-telegram .stage {
  min-height: auto;
  padding-top: 24px;
}

body.is-telegram .footer {
  padding-bottom: max(26px, env(safe-area-inset-bottom));
}

@media (max-width: 980px) {
  .stage {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 34px;
  }

  .next-panel {
    min-height: 420px;
  }

  .panel-content {
    min-height: 390px;
  }

  .event-grid,
  .schedule-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  main,
  .footer {
    width: min(100% - 18px, var(--max-width));
  }

  .parallax-scene {
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.26), transparent 32%, rgba(23, 105, 255, 0.08) 58%, transparent),
      repeating-linear-gradient(135deg, rgba(23, 105, 255, 0.05) 0 1px, transparent 1px 18px),
      linear-gradient(90deg, rgba(141, 92, 246, 0.08), transparent 36%, rgba(84, 198, 235, 0.1) 70%, transparent);
  }

  .ps-symbol {
    opacity: 0.3;
    scale: 0.74;
  }

  h1 {
    font-size: 2.15rem;
    line-height: 1;
  }

  h2 {
    font-size: 1.55rem;
  }

  .eyebrow {
    margin-bottom: 9px;
    font-size: 0.68rem;
  }

  .stage {
    gap: 18px;
    padding-top: 20px;
    padding-bottom: 34px;
  }

  .next-panel {
    min-height: 0;
    padding: 16px;
  }

  .next-panel::before {
    height: 6px;
  }

  .next-panel::after {
    right: -58px;
    bottom: 32px;
    width: 180px;
    height: 180px;
    border-width: 26px;
  }

  .panel-content {
    min-height: 0;
  }

  .panel-content::before {
    top: 88px;
    right: -38px;
    width: 190px;
    height: 122px;
    opacity: 0.52;
  }

  .status-line {
    gap: 10px;
    margin-bottom: 18px;
  }

  .status-pill {
    min-height: 28px;
    padding: 6px 8px;
    font-size: 0.68rem;
  }

  .panel-date {
    font-size: 0.78rem;
  }

  .panel-title {
    font-size: 1.72rem;
  }

  .panel-subtitle {
    max-width: none;
    margin-top: 12px;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .watch-list {
    min-height: 0;
    gap: 6px;
  }

  .watch-list.panel-watch {
    margin-top: 12px;
  }

  .watch-chip {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  .panel-actions,
  .card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
  }

  .rating-widget {
    width: 100%;
    min-height: 34px;
    padding: 4px;
  }

  .star-button {
    width: 20px;
    height: 20px;
    font-size: 0.92rem;
  }

  .rating-value {
    min-width: 62px;
    font-size: 0.68rem;
    line-height: 1.05;
  }

  .reminder-button {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 0.7rem;
  }

  .countdown,
  .event-card .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 14px;
    padding-top: 0;
  }

  .next-panel .countdown {
    gap: 6px;
    margin-top: 18px;
    padding-top: 0;
  }

  .time-unit,
  .event-card .time-unit {
    padding: 9px 4px;
  }

  .next-panel .time-unit {
    padding: 10px 5px;
  }

  .time-unit strong,
  .event-card .time-unit strong {
    font-size: 1.4rem;
  }

  .next-panel .time-unit strong {
    font-size: 1.46rem;
  }

  .time-unit span {
    margin-top: 5px;
    font-size: 0.6rem;
  }

  .event-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .event-card {
    min-height: 0;
    gap: 11px;
    padding: 16px;
  }

  .event-topline {
    font-size: 0.74rem;
  }

  .event-index {
    width: 30px;
    height: 26px;
  }

  .event-label {
    padding: 6px 8px;
    font-size: 0.68rem;
  }

  .event-card h3 {
    font-size: 1.25rem;
    line-height: 1.1;
  }

  .event-description {
    font-size: 0.88rem;
    line-height: 1.42;
  }

  .timeline-band {
    padding-bottom: 30px;
  }

  .timeline-track {
    gap: 8px;
    margin-inline: -9px;
    padding: 8px 9px 16px;
  }

  .timeline-item {
    flex-basis: 172px;
    min-height: 70px;
    padding: 10px;
  }

  .timeline-index {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .timeline-date {
    font-size: 0.68rem;
  }

  .timeline-item strong {
    font-size: 0.82rem;
  }

  .event-card h3,
  .event-description {
    min-height: 0;
  }

  .info-row {
    display: grid;
    gap: 4px;
    font-size: 0.82rem;
  }

  .info-row strong {
    text-align: left;
  }

  .section-heading {
    display: block;
    margin-bottom: 14px;
  }

  .events-band {
    padding: 8px 0 46px;
  }

  .schedule-band {
    padding: 46px 0 56px;
  }

  .schedule-copy p:last-child {
    font-size: 0.9rem;
  }

  .schedule-table {
    min-width: 660px;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 11px 10px;
  }

  .event-details {
    gap: 9px;
    min-height: 0;
    padding-top: 12px;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2rem;
  }

  .panel-title {
    font-size: 1.58rem;
  }

  .status-line {
    align-items: flex-start;
  }

  .status-pill {
    max-width: 58%;
  }

  .panel-date {
    max-width: 42%;
  }

  .star-button {
    width: 18px;
  }

  .rating-value {
    min-width: 58px;
  }

  .reminder-button {
    padding-inline: 7px;
  }

  .time-unit strong,
  .event-card .time-unit strong {
    font-size: 1.28rem;
  }

  .next-panel .time-unit strong {
    font-size: 1.28rem;
  }

  .time-unit span {
    font-size: 0.56rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scene-wash,
  .scene-grid,
  .scene-ribbon,
  .scene-lines,
  .game-layer {
    transform: none !important;
  }

  .ps-symbol {
    animation: none !important;
  }
}
