.schedule-section{
  scroll-margin-block-start:12px;margin-block:0 var(--section-gap);
  --date-width:172px;--slot-inset:24px;--column-gap:16px;--entry-gap:24px;--content-gap:12px;
  --gacha-banner-height:96px;
  --row-leading:22px;--row-padding:8px;--row-height:calc(var(--row-leading) + 2 * var(--row-padding));
  --schedule-detail-bg:var(--cell);
}
.schedule-section,.schedule-campaign-card>.schedule-body{
  --schedule-map-name-bg:color-mix(in srgb,var(--heading-2),var(--schedule-detail-bg));
  --schedule-bands:linear-gradient(to bottom,var(--heading) 0 var(--row-height),
    var(--heading-2) var(--row-height) calc(2 * var(--row-height)),var(--schedule-detail-bg) calc(2 * var(--row-height)));
}
.schedule-heading{display:flex;align-items:center;gap:var(--column-gap);min-height:58px;padding:5px 20px;box-sizing:border-box;background:var(--heading);padding-inline-start:24px}
.schedule-body+:is(.schedule-heading,.schedule-campaign-card,.schedule-body){margin-block-start:var(--section-gap)}
#schedule-event>.catalog-card+.catalog-card{margin-block-start:calc(2 * var(--section-gap))}
.schedule-body{margin-bottom:0;font-size:14px}
.schedule-page .schedule-section{--entry-gap:32px}
.schedule-page .schedule-body{background-color:var(--schedule-detail-bg)}
:is(.schedule-heading,.schedule-campaign-heading) h2{margin:0;color:var(--text);font-weight:550;line-height:1.35}
.schedule-heading h2{font-size:21px}
.schedule-campaign-heading h2{font-size:inherit}
.schedule-heading>a{margin-inline-start:auto;font-size:13px;color:var(--text)}
.schedule-overall,.schedule-dates{color:#e0e0e0}
.schedule-end-date{margin-inline-start:1em}
.schedule-date-range{display:inline-block}
.schedule-overall{flex:0 0 var(--date-width);max-width:var(--date-width);line-height:1.65;font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}
.schedule-slot,.schedule-campaign-heading>div{display:grid;grid-template-columns:var(--date-width) minmax(0,1fr);column-gap:var(--column-gap);padding-inline:var(--slot-inset)}
.schedule-slot{--date-gutter:calc(var(--slot-inset) + var(--date-width) + var(--column-gap))}
/* Each period owns one trailing space, independent of the rows inside it. */
.schedule-page .schedule-slot::after{
  content:"";grid-column:1/-1;height:var(--entry-gap);
  margin-inline:calc(0px - var(--slot-inset));background:var(--schedule-detail-bg)
}
.schedule-more:not([open]){padding-block-end:var(--entry-gap)}
.schedule-dates{position:relative;z-index:1;align-self:start;white-space:nowrap;font-variant-numeric:tabular-nums;line-height:var(--row-height)}
.schedule-program{min-width:0;align-self:start}
.schedule-entries{display:flex;align-items:baseline;gap:0 22px;flex-wrap:wrap}
.schedule-short,.schedule-entry-name{font-weight:400;color:var(--text-white)}
.schedule-entry{flex:1 0 100%;min-width:0;line-height:1.55}
.schedule-entry-name{display:block}
.schedule-gacha-comment{margin-inline-start:8px}
/* Shared title and detail bands extend behind the date column. */
.schedule-entry>:is(.schedule-copy,.schedule-entry-name),.schedule-program>:is(.schedule-rule,.schedule-subject,.schedule-gift-summary,.schedule-gift-description){
  margin-inline:calc(0px - var(--date-gutter)) calc(0px - var(--slot-inset));
  box-sizing:border-box;min-height:var(--row-height);
  line-height:var(--row-leading);
  padding:var(--row-padding) var(--slot-inset) var(--row-padding) var(--date-gutter);
}
.schedule-entry>.schedule-entry-name,.schedule-program>.schedule-subject,.schedule-entry.schedule-draw>.schedule-copy{background:var(--heading)}
.schedule-entry>.schedule-copy,.schedule-program>.schedule-rule,.schedule-draw>.schedule-entry-name{background:var(--heading-2)}
.schedule-gacha-badges{display:inline-flex;align-items:center;gap:.5em;height:var(--row-leading);vertical-align:top}
.schedule-gacha-badges>img{display:block;height:calc(var(--row-height) - 4px);width:auto}
.schedule-gacha-badges>img:is([src$="/gacha_uber_guaranteed.png"],[src$="/gacha_five_draw_discount.png"]){height:calc(var(--row-height) - 10px)}
:where(.schedule-section:not(#schedule-sale)) .schedule-slot:not(:has(.schedule-draw)){
  background:var(--schedule-bands);
}
.schedule-short{max-width:100%;line-height:var(--row-leading);padding-block:var(--row-padding);overflow-wrap:anywhere}
.schedule-entry:not(.schedule-draw)+.schedule-entry,.schedule-entries:not(:has(.schedule-draw))+.schedule-rule{margin-block-start:var(--entry-gap)}
.schedule-mission-tabs{--mission-choices:5;grid-template-columns:repeat(var(--mission-choices),1fr)}
.schedule-mission-tabs>button{text-align:start}
.schedule-mission-tabs:has(>button:last-child[aria-pressed=true]){--choice:calc(var(--mission-choices) - 1)}
.schedule-mission-tabs::before{width:calc((100% - 6px)/var(--mission-choices))}
.schedule-mission-empty{margin:0;padding:var(--row-padding) var(--slot-inset)}
.schedule-mission-slot .schedule-entries{
  display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);grid-auto-rows:1fr;align-items:stretch;column-gap:var(--column-gap);
  margin-inline:calc(0px - var(--date-gutter)) calc(0px - var(--slot-inset));text-align:start
}
.schedule-mission-slot .schedule-entries+.schedule-rule{margin-block-start:0}
.schedule-mission-row{
  --mission-row-gap:12px;
  display:grid;grid-column:1/-1;grid-template-columns:subgrid;align-items:center;
  min-height:calc(50px + var(--mission-row-gap));padding-block:calc(1px + var(--mission-row-gap) / 2);
  padding-inline:var(--date-gutter) var(--slot-inset);
  font-size:13px;line-height:var(--list-line-height);background:var(--schedule-detail-bg)
}
.schedule-mission-row:nth-child(odd){background:var(--schedule-map-name-bg)}
.schedule-page .schedule-mission-slot:has(>.schedule-program>.schedule-entries:last-child>.schedule-mission-row:last-child:nth-child(odd))::after{background:var(--schedule-map-name-bg)}
.schedule-program a{color:var(--text)}
.schedule-entry-body,.schedule-entry-body>.schedule-prize-type{display:flex;flex-direction:column;align-items:flex-start;gap:var(--content-gap)}
.schedule-entry-body{padding-block-start:var(--content-gap)}
.schedule-entry-body:has(>.schedule-banner[hidden]:only-child),.schedule-entry-body:has(>.schedule-banner-link:only-child>.schedule-banner[hidden]){display:none}
.schedule-banner{display:block;width:344px;height:var(--gacha-banner-height);object-fit:contain}
.schedule-banner.schedule-sale-image{width:auto;height:auto;max-width:100%}
.schedule-sale-image[src*="/itemPack/itemPack_bnr_"]{zoom:.75}
.schedule-entry>.schedule-copy.schedule-shop-days{padding-inline-start:var(--slot-inset);color:#e0e0e0}
.schedule-gacha-promotions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--content-gap)}
.schedule-gacha-promotions img{display:block;zoom:.65}
.schedule-gacha-ticket{display:flex;flex-direction:column;align-items:center}
.schedule-gacha-media{display:flex;align-items:flex-start;gap:var(--content-gap)}
.schedule-gacha-banner-gifts{
  display:flex;flex-direction:column;align-items:flex-start;
  padding-block:calc(var(--gacha-banner-height) * .05);
  gap:calc(var(--gacha-banner-height) * .10);
}
.schedule-gacha-banner-gifts img{display:block;width:auto}
.schedule-gacha-banner-gifts>img{height:calc(var(--gacha-banner-height) * .45)}
/* Split one gift slot in proportion to the two original strips (28px and 31px). */
.schedule-gacha-banner-gifts>.schedule-gacha-ticket{display:grid;height:calc(var(--gacha-banner-height) * .35);grid-template-rows:minmax(0,28fr) minmax(0,31fr);justify-items:center}
.schedule-gacha-banner-gifts .schedule-gacha-ticket>img{height:100%}
.schedule-banner-link{display:block;width:fit-content}
.schedule-banner[hidden],.schedule-banner-link:has(>.schedule-banner[hidden]){display:none}
.schedule-sale-pack{display:flex;align-self:stretch;align-items:center;flex-wrap:wrap;gap:6px}
.schedule-sale-pack>span:has(+ :is(a,img,svg)){flex-basis:100%}
.schedule-prizes>a{display:block}
.schedule-banner-link:focus-visible,.schedule-prizes>a:focus-visible{outline:2px solid currentColor;outline-offset:1px}
.schedule-prizes{--icon-gap:6px;display:flex;flex-wrap:wrap;gap:var(--icon-gap);max-inline-size:calc(10 * var(--card-icon-width) + 9 * var(--icon-gap))}
.schedule-stamp-days{list-style:none;margin:0;padding:0;max-inline-size:min(100%,calc(10 * var(--card-icon-width) + 9 * var(--icon-gap)))}
.schedule-stamp-days>li{display:flex;flex-direction:column;align-items:start;gap:2px;width:min(100%,var(--card-icon-width))}
.schedule-stamp-days>li :is(a,img,svg){max-width:100%}
.schedule-stamp-days a:focus-visible{outline:2px solid currentColor;outline-offset:1px}
:is(.schedule-prizes,.schedule-sale-pack) :is(img,svg){display:block;width:var(--card-icon-width);height:var(--card-icon-height);object-fit:contain}
.schedule-subject,.schedule-rule{margin-block:0;color:var(--text)}
.schedule-subject{font-size:14px;font-weight:400}
.schedule-more>summary{line-height:var(--row-leading);padding:var(--row-padding) var(--slot-inset);background:var(--heading-2);color:var(--text-white);margin:0;font-weight:400;cursor:pointer}
.schedule-more>summary small{font-size:inherit;font-weight:400;margin-inline-start:8px}
.schedule-more>summary:focus-visible{outline:2px solid var(--text);outline-offset:-2px}
.workspace[data-schedule-home]>.catalog-note:only-child,.workspace>.main:only-child{grid-column:1/-1}

.schedule-page :is(header.catalog-title,.catalog-title>.unit-list-heading){flex-wrap:wrap;row-gap:6px;padding-block:6px}
.catalog-tabs.schedule-tabs{display:flex;flex:0 1 auto;flex-wrap:wrap;height:auto;min-height:32px;max-width:100%;margin-inline-start:auto}
.schedule-tabs>button{min-height:24px}
.catalog-tabs.schedule-tabs::before{inset:auto;left:0;top:0;width:var(--tab-width);height:var(--tab-height);transform:translate(var(--tab-x),var(--tab-y));transition:transform .22s ease-out,width .22s ease-out}
@media(prefers-reduced-motion:reduce){.catalog-tabs.schedule-tabs::before{transition:none}}

/* One period per event; align each date with the corresponding title row. */
.schedule-single .schedule-single-title{line-height:var(--row-leading);padding-block:var(--row-padding);color:var(--text-white)}
.schedule-single .schedule-program>:nth-child(n+3){margin-block-start:8px}
.schedule-event-image{display:block;max-width:100%;height:auto}
.schedule-harvest-areas{display:flex;gap:var(--content-gap)}
.schedule-harvest-areas>*{flex:0 1 10em;min-width:0}
.schedule-harvest-areas>span{white-space:nowrap}
.schedule-harvest-images{padding-block-start:var(--content-gap)}
.schedule-harvest-images img{display:block;width:126px;max-width:100%;height:auto}

/* Paint through the date column, even when only the date has a second line. */
#schedule-event .schedule-entry>:is(.schedule-copy,.schedule-entry-name){background:transparent}
#schedule-event .schedule-program>:is(.schedule-single-title,.schedule-entries):nth-child(-n+2){
  margin-inline:calc(0px - var(--date-gutter)) calc(0px - var(--slot-inset));
  padding-inline:var(--date-gutter) var(--slot-inset);
}
/* A wrapped title or subtitle owns its entire band. Map links can flow over several rows. */
#schedule-event .schedule-program>:first-child{--event-row:var(--heading);--event-next-row:var(--heading-2)}
#schedule-event .schedule-program>:nth-child(2){--event-row:var(--heading-2)}
#schedule-event .schedule-program>:is(.schedule-single-title,.schedule-subject,.schedule-rule),
#schedule-event .schedule-entries>.schedule-entry:first-child>:is(.schedule-copy,.schedule-entry-name):first-child{background:var(--event-row,transparent)}
#schedule-event .schedule-entries>.schedule-entry:first-child>:is(.schedule-copy,.schedule-entry-name):nth-child(2){background:var(--event-next-row,transparent)}
#schedule-event .schedule-program>.schedule-entries:first-child{background:var(--schedule-bands)}
#schedule-event .schedule-program>.schedule-entries:nth-child(2){
  background:linear-gradient(to bottom,var(--heading-2) var(--row-height),var(--schedule-detail-bg) var(--row-height));
}

.schedule-gift-summary,.schedule-gift-description{margin-block:0}
.schedule-gift .schedule-gift-summary{background:var(--heading-2)}
.schedule-gift-text{display:block}
.schedule-gift-text,.schedule-draw>.schedule-entry-name{white-space:nowrap;overflow-x:auto;scrollbar-width:none}
.schedule-nyan-day .schedule-gift-description{background:#8A3A00}
.schedule-nyan-day .schedule-entry-body:has(+.schedule-gift-description){padding-block-end:var(--content-gap)}

/* Keep the detail card's WB spacing outside the rounded event list. */
.schedule-campaign-card{background-color:var(--card);border-color:var(--page)}
.schedule-campaign-card>.schedule-body{
  --heading:var(--zebra-1-odd);
  --heading-2:color-mix(in srgb,var(--zebra-1-odd),var(--zebra-1-even));
  --schedule-detail-bg:color-mix(in srgb,var(--zebra-1-even),var(--zebra-2-even));
  margin:18px;border-radius:8px;overflow:hidden
}
.schedule-campaign-heading>div{align-items:center;min-height:var(--row-height);font-size:14px;line-height:var(--row-leading);background:var(--heading)}
.schedule-campaign-heading>div+div{background:var(--heading-2)}
.schedule-campaign-heading time{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--text-white)}

/* Keep the two date bands above the map icons and use the gacha interval below them. */
.schedule-map-media{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--content-gap);padding-block-start:var(--content-gap)}
.schedule-map-media .schedule-prizes{flex-wrap:nowrap;align-items:start}
.schedule-map-media .schedule-prizes:has(>:nth-child(11)){display:grid;grid-template-columns:repeat(10,minmax(0,1fr))}
.schedule-map-media .schedule-prizes>*{min-width:0;flex:0 1 var(--card-icon-width)}
.schedule-map-media .schedule-prizes img{max-width:100%;height:auto;aspect-ratio:300/114}
.schedule-single.schedule-map-slot .schedule-map-media{margin-block-start:0}
.schedule-map-slot:has(>.schedule-dates .schedule-end-date) .schedule-subject:first-child+.schedule-map-media{margin-block-start:var(--row-height)}
.schedule-slot:has(>.schedule-dates .schedule-end-date) .schedule-subject:first-child+.schedule-stage-times{margin-block-start:calc(var(--row-height) + var(--content-gap))}
.schedule-map-slot:has(>.schedule-dates .schedule-end-date) .schedule-entries:first-child:has(+:is(.schedule-map-media,.schedule-stage-times)){min-height:calc(2 * var(--row-height));align-content:start}

/* Reserve the second date band before the first stage name. */
.schedule-lil-maps{margin:0;padding:0;list-style:none}
.schedule-subject+:is(.schedule-cyclone-pairs,.schedule-lil-maps){padding-block-start:var(--row-height)}
.schedule-cyclone-maps,.schedule-lil-maps>li{
  display:flex;flex-wrap:wrap;align-items:baseline;margin:0 calc(0px - var(--slot-inset)) 0 calc(0px - var(--date-gutter));
  padding:var(--row-padding) var(--slot-inset) var(--row-padding) var(--date-gutter);
  font:inherit;line-height:var(--row-leading);background:var(--schedule-map-name-bg)
}
.schedule-lil-maps>li:nth-child(odd){background:var(--zebra-1-even)}
.schedule-lil-maps>li:nth-child(even){background:var(--schedule-detail-bg)}
.schedule-cyclone-pair+.schedule-cyclone-pair{margin-block-start:var(--entry-gap)}
/* Let the date text set the label edge; the remaining space keeps every chapter aligned with the other events. */
.schedule-slot:has(.schedule-treasure-sections){
  grid-template-columns:max-content 1fr calc(100% - var(--date-width) - var(--column-gap));column-gap:0
}
.schedule-slot:has(.schedule-treasure-sections)>.schedule-dates{grid-area:1/1;text-align:end}
.schedule-program:has(>.schedule-treasure-sections){grid-area:1/1/2/-1;display:grid;grid-template-columns:subgrid}
.schedule-program:has(>.schedule-treasure-sections)>.schedule-subject{grid-column:1/-1;margin-inline-start:calc(0px - var(--slot-inset))}
.schedule-treasure-sections,.schedule-treasure-sections>section,.schedule-treasure-rule{display:grid;grid-template-columns:subgrid;grid-column:1/-1}
.schedule-treasure-sections{padding-block-start:var(--row-height)}
.schedule-treasure-rule{
  margin-inline-start:calc(0px - var(--slot-inset));padding-inline-start:var(--slot-inset);background:var(--zebra-1-even)
}
.schedule-treasure-rule::before{content:"";grid-area:1/2}
.schedule-treasure-rule>span{text-align:end}
.schedule-treasure-line{grid-column:3;display:flex;flex-wrap:wrap;column-gap:.5em;line-height:var(--row-leading);padding-block:var(--row-padding)}
.schedule-treasure-line>span{white-space:nowrap}
.schedule-stage-times{display:flex;flex-wrap:wrap;gap:4px 1em;margin-block-start:var(--content-gap);line-height:var(--row-leading)}

.schedule-regular-month{display:flex;align-items:center;gap:24px;margin:0;padding:12px var(--slot-inset);color:var(--text);background:var(--cell)}
.schedule-regular-table{width:100%;table-layout:fixed;border-collapse:collapse;text-align:left;font-size:inherit}
.schedule-regular-table caption{background:var(--heading);text-align:left;padding:10px var(--slot-inset);color:var(--text-white);font-size:16px}
.schedule-regular-table th,.schedule-regular-table td{padding:8px var(--slot-inset);line-height:1.55;text-align:left;vertical-align:middle}
.schedule-regular-table th{font-weight:400;background:var(--heading);border-bottom:1px solid var(--line)}
.schedule-regular-table th:first-child{width:21%}
.schedule-regular-table th:nth-child(2){width:29%}
.schedule-regular-table td{padding-block-end:var(--entry-gap);background:var(--schedule-detail-bg);font-variant-numeric:tabular-nums}
.schedule-regular-names{display:flex;flex-wrap:wrap;gap:4px 12px}
.schedule-regular-names a{color:var(--text)}

/* Catalog cards use the same sale bands, spacing and artwork sizes as the schedule. */
.sale-sort{display:flex;align-items:center;gap:10px;padding:var(--row-padding) var(--slot-inset);background:var(--heading-2);font-size:13px}
.sale-sort button[aria-pressed=true]{color:var(--text-cyan-light)}
.sale-sort button[data-direction=ascending]::after{content:' ▲' / ''}
.sale-sort button[data-direction=descending]::after{content:' ▼' / ''}
[data-sale-cards]>.schedule-slot{margin-block-start:0;scroll-margin-top:var(--section-gap)}
[data-sale-cards]>.schedule-slot[hidden]{display:none}
[data-sale-cards]>.schedule-slot:not([hidden]) ~ .schedule-slot:not([hidden]){margin-block-start:var(--entry-gap)}
[data-sale-cards]{padding-block-end:var(--entry-gap)}
