
html[data-season-theme="season-1"]{--season-accent:#ff6b7d;--season-accent-rgb:255,107,125;--season-art:url(/assets/season-art/season-1-hub.webp?v=1)}
html[data-season-theme="season-2"]{--season-accent:#8fe3ff;--season-accent-rgb:143,227,255;--season-art:url(/assets/season-art/season-2-hub.webp?v=1)}
html[data-season-theme="season-3"]{--season-accent:#ffcf5a;--season-accent-rgb:255,207,90;--season-art:url(/assets/home-season-scenes.png)}
html[data-season-theme="season-4"]{--season-accent:#ff9cc8;--season-accent-rgb:255,156,200;--season-art:url(/season-4/visuals/evernight-isle.webp)}

html[data-season-theme]{
  --season-ink:5,16,36;
  --season-eyebrow:var(--season-accent);
  --season-heading:var(--season-accent);
  --season-pill-text:var(--season-accent);
  --season-pill-border:rgba(var(--season-accent-rgb),.6);
  --season-progress-from:rgba(var(--season-accent-rgb),.65);
  --season-progress-to:var(--season-accent);
}
html[data-season-theme] .s3-master-pill{background:rgba(var(--season-accent-rgb),.10)}
html[data-season-theme] article.home-screen{border-top-color:rgba(var(--season-accent-rgb),.7)}

html[data-season-theme] .home-screen>.page-header{
  position:relative;isolation:isolate;border-radius:16px;overflow:hidden;
  padding:22px 18px 20px;margin:-4px -4px 18px;
  background:
    linear-gradient(90deg,rgba(var(--season-ink),.97) 0%,rgba(var(--season-ink),.86) 48%,rgba(var(--season-ink),.42) 100%),
    var(--season-art) right center/cover no-repeat,#071934;
  border-bottom:2px solid rgba(var(--season-accent-rgb),.75);
}
@media (max-width:700px){
  html[data-season-theme] .home-screen>.page-header{
    background:
      linear-gradient(180deg,rgba(var(--season-ink),.40) 0%,rgba(var(--season-ink),.66) 34%,rgba(var(--season-ink),.90) 70%,rgba(var(--season-ink),.97) 100%),
      var(--season-art) center top/cover no-repeat,#071934;
  }
}
html[data-season-theme] .home-screen>.page-header :is(.page-no,h1,.subtitle){text-shadow:0 1px 3px rgba(0,0,0,.85),0 0 14px rgba(0,0,0,.55)}
@media print{html[data-season-theme] .home-screen>.page-header{background:none}}
html[data-season-theme="season-1"] .page .card.s1-quick{border-color:rgba(var(--season-accent-rgb),.5);background:linear-gradient(145deg,rgba(var(--season-accent-rgb),.12),rgba(4,18,41,.84))}
html[data-season-theme="season-1"] .page :is(.card.s1-quick,.s1-handbook-detail)>h2{color:var(--season-accent)}
html[data-season-theme="season-1"] .page .s1-handbook-detail>h3{color:#ffcbd2;color:color-mix(in srgb,var(--season-accent) 35%,#fff)}
html[data-season-theme] .page :is(th,td){overflow-wrap:normal}
@media (max-width:520px){html[data-season-theme] .page .timeline>.step{grid-template-columns:minmax(0,1fr);row-gap:4px}html[data-season-theme] .page .timeline>.step>strong{overflow-wrap:normal}}
@media (min-width:521px){html[data-season-theme] .page .timeline>.step{grid-template-columns:104px minmax(0,1fr)}}
html[data-season-theme] .page .timeline>.step>strong,html[data-season-theme="season-3"] .page :is(.s3-state-continue p,.s3-command-panel li){overflow-wrap:break-word}
html[data-season-theme] .topbar .nerfed-handbook-brand{min-width:44px;min-height:44px;justify-content:center}
html[data-season-theme] .page .page-favorite{width:44px;height:44px;min-width:44px;flex-basis:44px}

/* Season 3 uses the same golden palace scene as its homepage card. */
html[data-season-theme="season-3"] .home-screen>.page-header{background:#071934}
html[data-season-theme="season-3"] .home-screen>.page-header::before{content:"";position:absolute;left:0;right:0;top:-100%;height:200%;z-index:-2;pointer-events:none;background:var(--season-art) left center/200% auto no-repeat}
html[data-season-theme="season-3"] .home-screen>.page-header::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,rgba(var(--season-ink),.97) 0%,rgba(var(--season-ink),.86) 48%,rgba(var(--season-ink),.42) 100%)}
@media(max-width:700px){html[data-season-theme="season-3"] .home-screen>.page-header::after{background:linear-gradient(180deg,rgba(var(--season-ink),.40) 0%,rgba(var(--season-ink),.66) 34%,rgba(var(--season-ink),.90) 70%,rgba(var(--season-ink),.97) 100%)}}
@media print{html[data-season-theme="season-3"] .home-screen>.page-header{background:none}html[data-season-theme="season-3"] .home-screen>.page-header::before,html[data-season-theme="season-3"] .home-screen>.page-header::after{display:none}}
