:root {
  --festival-wave: url("./20261112_edofes3-stage-seigaiha.webp");
  --festival-town: url("./20261110_festival-night.webp");
}

.hero {
  min-height: clamp(675px, 54vw, 890px);
  padding-block: clamp(138px, 13vw, 192px) 112px;
}
.hero-art { z-index: -4; object-position: center 56%; }
.hero::after {
  z-index: -3;
  background: radial-gradient(ellipse 36% 46% at 50% 48%, #090a16c7, #090a1670 64%, transparent),
    linear-gradient(0deg, #190b15cf, transparent 26%);
}
.hero-fireworks { z-index: -2; }
.hero-canopy {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  width: 100%;
  height: clamp(190px, 30vw, 475px);
  object-fit: fill;
  pointer-events: none;
  mask-image: linear-gradient(#000 7%, transparent 33%), linear-gradient(90deg, #000 3%, transparent 24%, transparent 76%, #000 97%), linear-gradient(#000 73%, transparent 100%);
  mask-composite: add, intersect;
}
.masthead { background: linear-gradient(#070810a6, transparent); }
.masthead-inner { border-color: #f8ca8a78; }
.hero h1 { filter: drop-shadow(0 5px 1px #612c13) drop-shadow(0 8px 17px #070910) drop-shadow(0 0 24px #b650272e); }
.hero-kicker, .hero-time, .lead { text-shadow: 0 2px 4px #08050c, 0 0 14px #08050c; }
.hero-time { background: transparent; }
.hero .button.primary { background: linear-gradient(150deg, #fff0b5, #f0c274 59%, #c38343); }
.hero .button.primary:hover { background: #ffe1a3; }
.hero .button { border-color: #ffd598; }
.festival-ribbon {
  position: relative;
  background: linear-gradient(90deg, #2f0c13a8, #420f13ba 28%, #420f13ba 72%, #2f0c13a8), var(--festival-wave) center 42% / 100% auto, #4e161a;
  border-color: #ecb466;
  box-shadow: 0 2px 18px #1a080c;
  z-index: 1;
}
.ribbon-inner { min-height: 58px; }
.ribbon-inner span { color: #ffe3ad; text-shadow: 0 2px 4px #21060a; }

.festival-program {
  position: relative;
  isolation: isolate;
  padding-block: clamp(122px, 10.7vw, 176px) clamp(86px, 8vw, 125px);
  background: #0e1023;
  border: 0;
}
.program-scenery {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}
.program-scene {
  position: sticky;
  top: 0;
  height: min(100%, max(760px, 100svh));
  overflow: hidden;
}
.program-scene > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.program-town {
  object-fit: cover;
  object-position: center 66%;
  filter: saturate(1.1);
}
.program-nightfall {
  background: linear-gradient(180deg, #0b0c1d2e, #0b0c1d18 30%, #120c16a1),
    radial-gradient(ellipse 40% 52% at 50% 32%, #0b1022c7, #0b102267 76%, transparent);
}
.program-frame {
  object-fit: fill;
  mask-image: linear-gradient(#000 3%, transparent 19%, transparent 83%, #000 98%),
    linear-gradient(90deg, #000 1%, #000d 7%, transparent 26%, transparent 74%, #000d 93%, #000 99%);
  mask-composite: add;
}
.program-fireworks { pointer-events: none; }
.program-wrap { width: min(1050px, calc(100% - 16rem)); }
.program-intro {
  text-shadow: 0 2px 4px #080812, 0 0 10px #080812, 0 0 30px #080812;
}
.program-intro .eyebrow { color: #ffda9e; }
.program-intro .eyebrow::before,.program-intro .eyebrow::after {
  background: linear-gradient(90deg, transparent, #e5b36f);
}
.program-intro .eyebrow::after { transform: scaleX(-1); }
.program-intro h2 { color: #ffe6b2; font-size: clamp(2.15rem, 5.25vw, 4.55rem); letter-spacing: .025em; }
.program-intro > p:last-child { color: #fff0da; margin: .9rem 0 1.35rem; }
.night-nav { max-width: 825px; }
.night-nav a {
  min-height: 79px;
  border: 1px solid #e3af6b;
  border-top-color: #ffe0a1;
  box-shadow: inset 0 0 0 3px #210a15, 0 4px 12px #100810a1;
  background: linear-gradient(115deg, #551d23ee, #2b1422e8), var(--festival-wave) center 46% / auto 200%;
  color: #ffe9c3;
}
.night-nav a > span { color: #f6d496; font-size: .79rem; }
.night-nav a[aria-selected="true"] {
  color: #361618;
  background: linear-gradient(152deg,#ffedbd 5%,#efc67f 57%,#d89a55 98%);
  border-color: #fff0bd;
  box-shadow: inset 0 0 0 3px #91563092, inset 0 0 0 4px #ffe2a7, 0 2px 22px #ffaf5a52;
}
.night-nav a[aria-selected="true"] > span { color: #59271e; }
.night-nav a:hover:not([aria-selected="true"]) { background: #682b31ed; }
.program-utilities {
  max-width: 1050px;
  min-height: 42px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .6rem;
}
.program-utilities .timezone {
  margin: 0;
  color: #fff0d4;
  text-shadow: 0 2px 4px #0b0811, 0 0 7px #0b0811;
}
.program-motion {
  position: static;
  border-color: transparent;
  background: #160e1bc4;
  min-height: 36px;
  padding: .25rem .5rem;
}
.night {
  padding: clamp(.82rem, 2.35vw, 1.7rem);
  background: linear-gradient(145deg, #270f1bde, #151225ec 64%, #2a1320e8);
  border: 1px solid #edbf7d;
  box-shadow: inset 0 0 0 4px #180911a8, inset 0 0 0 5px #ac734c72, 0 0 2.35rem #110612bc;
}
.night-head { margin: 0 0 .8rem; padding: .12rem .05rem .68rem; border-bottom: 1px solid #d99f597e; }
.night-label { color: #ffdd9d; border-color: #e9aa70b5; background: #572222; }
.night-head h3 { color: #ffe4ae; }
.night-poster-link { color: #ffe7bd; }
.night-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(175px, 29%);
  align-items: start;
  gap: clamp(.75rem, 2vw, 1.3rem);
}
.night-list { min-width: 0; }
.night-print {
  margin: 0;
  padding: .33rem;
  border: 1px solid #c79156;
  box-shadow: 0 7px 20px #0c050eae;
  background: #491e25;
}
.night-print a { display: block; }
.night-print img { display: block; width: 100%; height: auto; }
.talk-slot {
  background: linear-gradient(94deg, #762733e8, #3f1928e6);
  border-color: #cf925cbf;
  box-shadow: inset 0 0 0 2px #321521a8;
}
.talk-slot:hover { background: linear-gradient(94deg,#8a363d,#532130); }
.cast-slot {
  border-color: #b48c5d92;
  border-top-color: #e2b374c7;
  background: linear-gradient(110deg,#42292fd9,#1a1a30e0 64%);
}
.cast-slot:hover { background: #59303bee; border-color: #ffda94; }
.relay-head { margin-top: .72rem; color: #ffe0a9; }
.slot-grid { margin-bottom: .78rem; }
.slot-art { border-color: #e0af6fbb; }

.stage {
  background: url("./20261110_festival-stage.webp") center top / max(100%, 950px) auto no-repeat,
    var(--festival-town) center bottom / auto max(70%, 800px) no-repeat, #130f20;
}
.stage::after {
  background: linear-gradient(180deg, transparent 1%, #160d1a1f 34%, #100b19d9 57%, #100b1985);
}
.showcase { padding-top: clamp(7rem, 11vw, 12rem); }
.stage .section-heading { text-shadow: 0 3px 9px #080810, 0 0 20px #080810; }
.stage .section-heading > p:last-child { color: #fff1dc; }
.roster li { background: linear-gradient(135deg,#4f242ee8,#201623e8 69%); border-top-color: #e3ad6d; }
.game-section {
  background: linear-gradient(90deg,#190d18dd,#170e19e8 48%,#1c101bd6),
    url("./20261110_edofes3-castle-town.webp") center 53% / cover;
  border-color: #e0a66d;
}
footer {
  background: linear-gradient(90deg,#221019a6,#291119ea 23%,#291119ea 77%,#221019a6), var(--festival-wave) center / cover;
}

@media (max-width: 1120px) {
  .program-wrap { width: calc(100% - 12rem); }
  .night-layout { grid-template-columns: minmax(0,1fr) minmax(155px, 27%); }
  .night-list .slot-grid { gap: .38rem; }
  .night-list .cast-slot { min-height: 65px; grid-template-columns: 2.7rem minmax(0, 1fr) auto; gap: .53rem; padding: .37rem .45rem; }
}
@media (max-width: 880px) {
  .program-wrap { width: calc(100% - 7.5rem); }
  .night-layout { display: block; }
  .night-print { display: none; }
}
@media (max-width: 770px) {
  .hero {
    min-height: max(650px, 89svh);
    padding-block: 128px 96px;
  }
  .hero-art { object-position: 66% center; }
  .hero-canopy {
    height: clamp(160px, 45vw, 265px);
    mask-image: linear-gradient(#000 8%, transparent 34%), linear-gradient(90deg,#000 3%,transparent 29%,transparent 71%,#000 97%), linear-gradient(#000 75%, transparent 100%);
  }
  .hero::after {
    background: radial-gradient(ellipse 74% 42% at 50% 48%, #0a0b1bd1, #0a0b1b69 69%,transparent),
      linear-gradient(0deg, #170b17ba, transparent 34%);
  }
  .festival-program { padding-block: clamp(96px, 25vw, 140px) 94px; }
  .program-wrap { width: calc(100% - clamp(2.5rem, 11vw, 5.5rem)); }
  .program-scene { height: min(100%, max(720px, 100svh)); }
  .program-town { object-position: 64% center; }
  .program-frame {
    mask-image: linear-gradient(#000 2%, transparent 18%, transparent 88%, #000 98%),
      linear-gradient(90deg,#000 2%,transparent 18%,transparent 82%,#000 98%);
  }
  .program-intro h2 { font-size: clamp(1.75rem, 7.4vw, 3.25rem); }
  .program-intro > p:last-child { font-size: .88rem; margin: .75rem auto 1.1rem; }
  .night-nav a { min-height: 65px; }
  .showcase { padding-top: clamp(5.5rem, 15vw, 8rem); }
}
@media (max-width: 580px) {
  .hero { min-height: clamp(610px, 82svh, 750px); }
  .hero-canopy {
    height: 178px;
    mask-image: linear-gradient(#000 12%, transparent 42%), linear-gradient(90deg,#000 1%,transparent 25%,transparent 75%,#000 99%), linear-gradient(#000 77%, transparent 100%);
  }
  .masthead-inner { min-height: 74px; }
  .program-wrap { width: calc(100% - 2.5rem); }
  .program-utilities { min-height: 40px; }
  .night { padding: .65rem; }
  .night-head { margin-bottom: .65rem; padding-bottom: .55rem; }
  .night-list .cast-slot { min-height: 55px; }
  .night-nav a > span { font-size: .72rem; }
  .ribbon-inner { min-height: 53px; }
}
@media (max-width: 360px) {
  .program-wrap { width: calc(100% - 1.75rem); }
  .night-head h3 { font-size: 1.53rem; }
  .slot-info { gap: .45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .program-fireworks { display: none; }
}
