/*
 * Seasonal bridge for the redesigned home page.
 * The active value comes from index.php's existing date-based theme selector.
 */
html[data-season]{
    --season-main:#e89525;
    --season-alt:#25aeb4;
    --season-warm:#f3c75b;
    --season-soft:rgba(232,149,37,.14);
    --season-soft-alt:rgba(37,174,180,.12);
    --season-deep:#07101f;
}

html[data-season="printemps"]{
    --season-main:#69b96b;
    --season-alt:#e96f9f;
    --season-warm:#f1c94f;
    --season-soft:rgba(105,185,107,.16);
    --season-soft-alt:rgba(233,111,159,.12);
    --season-deep:#10251f;
}

html[data-season="printemps"] .home-hero.home-hero-v5{
    background-image:url("../img/home-guild-classes-printemps-v1.png");
}

html[data-season="printemps"] .home-hero-v5 .home-vista-vignette{
    background:
        radial-gradient(circle at 75% 22%,rgba(235,255,178,.23),transparent 27%),
        radial-gradient(circle at 88% 70%,rgba(234,112,159,.12),transparent 29%);
}

html[data-season="ete"],
html[data-season="ete2"]{
    --season-main:#ee9827;
    --season-alt:#25aeb8;
    --season-warm:#f4c758;
    --season-soft:rgba(238,152,39,.16);
    --season-soft-alt:rgba(37,174,184,.13);
    --season-deep:#071b25;
}

html[data-season="automne"]{
    --season-main:#d86f25;
    --season-alt:#9c663f;
    --season-warm:#d7ad4d;
    --season-soft:rgba(216,111,37,.17);
    --season-soft-alt:rgba(126,85,49,.15);
    --season-deep:#24140f;
}

html[data-season="automne"] .home-hero.home-hero-v5{
    background-image:url("../img/home-guild-classes-automne-v1.png");
}

html[data-season="automne"] .home-hero-v5 .home-vista-vignette{
    background:
        radial-gradient(circle at 73% 22%,rgba(255,205,91,.25),transparent 27%),
        radial-gradient(circle at 88% 72%,rgba(190,70,23,.13),transparent 27%);
}

html[data-season="hiver"]{
    --season-main:#6dc9e2;
    --season-alt:#809be7;
    --season-warm:#d8f4ff;
    --season-soft:rgba(109,201,226,.16);
    --season-soft-alt:rgba(128,155,231,.15);
    --season-deep:#081728;
}

html[data-season="hiver"] .home-hero.home-hero-v5{
    background-image:url("../img/home-guild-classes-hiver-v1.png");
}

html[data-season="hiver"] .home-hero-v5 .home-vista-vignette{
    background:
        radial-gradient(circle at 74% 24%,rgba(210,247,255,.25),transparent 27%),
        radial-gradient(circle at 88% 72%,rgba(99,172,234,.15),transparent 29%);
}

html[data-season="saint_ballotin"]{
    --season-main:#ec6594;
    --season-alt:#d94f6d;
    --season-warm:#ffd0df;
    --season-soft:rgba(236,101,148,.17);
    --season-soft-alt:rgba(217,79,109,.13);
    --season-deep:#29101d;
}

html[data-season="saint_ballotin"] .home-hero.home-hero-v5{
    background-image:url("../img/home-guild-classes-saint-ballotin-v1.png");
}

html[data-season="saint_ballotin"] .home-hero-v5 .home-vista-vignette{
    background:
        radial-gradient(circle at 76% 21%,rgba(255,190,205,.25),transparent 27%),
        radial-gradient(circle at 88% 70%,rgba(223,70,119,.16),transparent 29%);
}

html[data-season="paques"]{
    --season-main:#8ac66e;
    --season-alt:#a986df;
    --season-warm:#ffd86e;
    --season-soft:rgba(138,198,110,.17);
    --season-soft-alt:rgba(169,134,223,.14);
    --season-deep:#192218;
}

html[data-season="paques"] .home-hero.home-hero-v5{
    background-image:url("../img/home-guild-classes-paques-v1.png");
}

html[data-season="paques"] .home-hero-v5 .home-vista-vignette{
    background:
        radial-gradient(circle at 75% 22%,rgba(255,220,119,.24),transparent 27%),
        radial-gradient(circle at 88% 70%,rgba(177,139,225,.15),transparent 29%);
}

html[data-season="halloween"]{
    --season-main:#ef8526;
    --season-alt:#7a55b5;
    --season-warm:#d65335;
    --season-soft:rgba(239,133,38,.18);
    --season-soft-alt:rgba(122,85,181,.16);
    --season-deep:#180c20;
}

html[data-season="halloween"] .home-hero.home-hero-v5{
    background-image:url("../img/home-guild-classes-halloween-v1.png");
}

html[data-season="halloween"] .home-hero-v5 .home-vista-vignette{
    background:
        radial-gradient(circle at 83% 17%,rgba(255,142,53,.24),transparent 24%),
        radial-gradient(circle at 70% 62%,rgba(128,65,191,.2),transparent 30%);
}

html[data-season="noel"]{
    --season-main:#d94d4d;
    --season-alt:#2f8a62;
    --season-warm:#e7bc50;
    --season-soft:rgba(217,77,77,.16);
    --season-soft-alt:rgba(47,138,98,.14);
    --season-deep:#0d211c;
}

html[data-season="noel"] .home-hero.home-hero-v5{
    background-image:url("../img/home-guild-classes-noel-v1.png");
}

html[data-season="noel"] .home-hero-v5 .home-vista-vignette{
    background:
        radial-gradient(circle at 74% 25%,rgba(255,220,132,.23),transparent 26%),
        radial-gradient(circle at 88% 65%,rgba(213,65,65,.12),transparent 24%);
}

html[data-season="nouvel_an"]{
    --season-main:#e9bf4e;
    --season-alt:#49bfd5;
    --season-warm:#9a7de8;
    --season-soft:rgba(233,191,78,.17);
    --season-soft-alt:rgba(73,191,213,.14);
    --season-deep:#090e25;
}

html[data-season="nouvel_an"] .home-hero.home-hero-v5{
    background-image:url("../img/home-guild-classes-nouvel-an-v1.png");
}

html[data-season="nouvel_an"] .home-hero-v5 .home-vista-vignette{
    background:
        radial-gradient(circle at 76% 20%,rgba(255,214,101,.25),transparent 26%),
        radial-gradient(circle at 88% 67%,rgba(98,198,234,.16),transparent 29%);
}

html[data-season="nouvel_an"] .home-hero .home-newyear-countdown{
    position:absolute!important;
    z-index:7!important;
    right:max(24px,calc((100vw - 1180px)/2));
    bottom:126px;
    width:min(410px,32vw)!important;
    margin:0!important;
    padding:12px!important;
    border-radius:19px!important;
    overflow:hidden!important;
    backdrop-filter:blur(16px);
}

html[data-season="nouvel_an"] .home-hero .home-newyear-countdown::after{
    content:none!important;
    display:none!important;
}

html[data-season="nouvel_an"] .home-newyear-countdown .ny-kicker{
    min-height:23px;
    margin-bottom:6px;
    padding:0 9px;
    font-size:8px;
}

html[data-season="nouvel_an"] .home-newyear-countdown>strong{
    margin-bottom:8px;
    font-size:18px;
}

html[data-season="nouvel_an"] .home-newyear-countdown .ny-time{
    grid-template-columns:repeat(4,1fr);
    gap:6px;
}

html[data-season="nouvel_an"] .home-newyear-countdown .ny-time span{
    min-height:50px;
    border-radius:12px;
}

html[data-season="nouvel_an"] .home-newyear-countdown .ny-time b{
    font-size:23px;
}

html[data-season="nouvel_an"] .home-newyear-countdown .ny-time small{
    margin-top:3px;
    font-size:7px;
}

@media(max-width:900px){
    html[data-season="nouvel_an"] .home-hero .home-newyear-countdown{
        top:96px;
        right:18px;
        bottom:auto;
        width:min(390px,calc(100% - 36px))!important;
        padding:11px!important;
    }
}

@media(max-width:520px){
    html[data-season="nouvel_an"] .home-hero .home-newyear-countdown{
        top:86px;
        right:12px;
        width:calc(100% - 24px)!important;
        padding:9px!important;
    }

    html[data-season="nouvel_an"] .home-newyear-countdown>strong{font-size:15px}
    html[data-season="nouvel_an"] .home-newyear-countdown .ny-time span{min-height:42px}
    html[data-season="nouvel_an"] .home-newyear-countdown .ny-time b{font-size:19px}
}

html[data-season="royal"]{
    --season-main:#d9ad45;
    --season-alt:#7454ad;
    --season-warm:#f0d98c;
    --season-soft:rgba(217,173,69,.16);
    --season-soft-alt:rgba(116,84,173,.14);
    --season-deep:#160f28;
}

html[data-season="prestige"]{
    --season-main:#d6b267;
    --season-alt:#7d8797;
    --season-warm:#f1dfae;
    --season-soft:rgba(214,178,103,.16);
    --season-soft-alt:rgba(125,135,151,.13);
    --season-deep:#11151b;
}

html[data-season="astral"]{
    --season-main:#7e83e8;
    --season-alt:#42bfd0;
    --season-warm:#e3c5ff;
    --season-soft:rgba(126,131,232,.17);
    --season-soft-alt:rgba(66,191,208,.14);
    --season-deep:#090d26;
}

html[data-season="guilde"]{
    --season-main:#674fd0;
    --season-alt:#3bb5bd;
    --season-warm:#f0bd4e;
    --season-soft:rgba(103,79,208,.16);
    --season-soft-alt:rgba(59,181,189,.13);
    --season-deep:#0d1023;
}

/* Shared application across all redesigned sections. */
html[data-season] .home-v2 .home-overline,
html[data-season] .home-v2 .home-card-index,
html[data-season] .home-v2 .home-journey .home-overline,
html[data-season] .home-v2 .home-footer-callout p,
html[data-season] .home-v2 .home-footer-nav>div>span{
    color:var(--season-alt);
}

html[data-season] .home-v2 .home-btn-primary,
html[data-season] .home-v2 .home-btn-light,
html[data-season] .home-v2 .home-ecurie-button{
    background:linear-gradient(135deg,var(--season-warm),var(--season-main));
    box-shadow:0 18px 46px color-mix(in srgb,var(--season-main) 31%,transparent),inset 0 1px rgba(255,255,255,.48);
}

html[data-season] .home-v2 .home-live-dot{
    background:var(--season-alt);
    box-shadow:0 0 0 5px color-mix(in srgb,var(--season-alt) 17%,transparent),0 0 20px color-mix(in srgb,var(--season-alt) 50%,transparent);
}

html[data-season] .home-v2 .home-manifesto{
    background:
        radial-gradient(circle at 8% 15%,var(--season-soft),transparent 29%),
        radial-gradient(circle at 88% 72%,var(--season-soft-alt),transparent 31%),
        linear-gradient(180deg,#f4efe5 0%,#faf7ef 56%,var(--body-bg) 100%);
}

html[data-theme="dark"][data-season] .home-v2 .home-manifesto{
    background:
        radial-gradient(circle at 8% 15%,var(--season-soft),transparent 29%),
        radial-gradient(circle at 88% 72%,var(--season-soft-alt),transparent 31%),
        linear-gradient(180deg,#09121d 0%,#0d1922 56%,var(--body-bg) 100%);
}

html[data-season] .home-v2 .home-manifesto-feature{
    box-shadow:0 38px 85px rgba(11,24,39,.18),0 0 0 1px color-mix(in srgb,var(--season-main) 20%,transparent);
}

html[data-season] .home-v2 .home-value-card,
html[data-season] .home-v2 .home-bento-card{
    border-color:color-mix(in srgb,var(--season-main) 20%,var(--home-line));
}

html[data-season] .home-v2 .home-bento-number,
html[data-season] .home-v2 .home-text-link,
html[data-season] .home-v2 .home-card-stamp,
html[data-season] .home-v2 .home-quest-heading h2 span,
html[data-season] .home-v2 .home-steps li>span{
    color:var(--season-warm);
}

html[data-season] .home-v2 .home-progress-lines i:first-child{
    background:linear-gradient(90deg,var(--season-main),var(--season-alt));
}

html[data-season] .home-v2 .home-journey{
    background:
        radial-gradient(circle at 82% 35%,var(--season-soft-alt),transparent 25%),
        radial-gradient(circle at 16% 82%,var(--season-soft),transparent 28%),
        var(--season-deep);
}

html[data-season] .home-v2 .home-quest-reward{
    border-color:color-mix(in srgb,var(--season-warm) 52%,transparent);
    background:
        radial-gradient(circle at 50% 35%,color-mix(in srgb,var(--season-warm) 30%,transparent),transparent 27%),
        linear-gradient(155deg,var(--season-main),color-mix(in srgb,var(--season-main) 42%,#15100b));
}

html[data-season] .home-v2 .home-recruitment,
html[data-season] .home-v2 .home-ecurie{
    background:
        radial-gradient(circle at 12% 18%,var(--season-soft-alt),transparent 31%),
        radial-gradient(circle at 87% 84%,var(--season-soft),transparent 30%),
        linear-gradient(180deg,var(--season-deep),#040913);
}

html[data-season] .home-v2 .home-recruitment-card,
html[data-season] .home-v2 .home-ecurie-slide{
    border-color:color-mix(in srgb,var(--season-warm) 31%,transparent);
}

html[data-season] .home-v2 .home-reward-emblem::before,
html[data-season] .home-v2 .home-footer-emblem::before{
    border-color:color-mix(in srgb,var(--season-alt) 38%,transparent);
}

html[data-season] .home-v2 .home-reward-emblem::after,
html[data-season] .home-v2 .home-footer-emblem::after{
    border-color:color-mix(in srgb,var(--season-warm) 42%,transparent);
}

html[data-season] .footer.home-footer-v3{
    background:
        radial-gradient(circle at 12% 8%,var(--season-soft-alt),transparent 25%),
        radial-gradient(circle at 82% 22%,var(--season-soft),transparent 28%),
        #030813;
}

html[data-season] .home-footer-cta a:not(.is-secondary){
    background:linear-gradient(135deg,var(--season-warm),var(--season-main));
    box-shadow:0 16px 38px color-mix(in srgb,var(--season-main) 25%,transparent);
}

html[data-season] .glow-1{background:var(--season-soft)}
html[data-season] .glow-2{background:var(--season-soft-alt)}
html[data-season] .glow-3{background:color-mix(in srgb,var(--season-warm) 13%,transparent)}

/* Intro tint: the scene stays Dofus-like while matching the active period. */
html[data-season] .home-intro-ring-one{border-color:color-mix(in srgb,var(--season-warm) 54%,transparent)}
html[data-season] .home-intro-ring-two{border-color:color-mix(in srgb,var(--season-alt) 48%,transparent)}
html[data-season] .home-intro-progress span{background:linear-gradient(90deg,var(--season-alt),#fff,var(--season-warm))}

html[data-season="halloween"] .home-intro-scene{filter:saturate(.9) hue-rotate(13deg)}
html[data-season="hiver"] .home-intro-scene{filter:saturate(.8) hue-rotate(165deg)}
html[data-season="noel"] .home-intro-scene{filter:saturate(.9) hue-rotate(325deg)}
html[data-season="saint_ballotin"] .home-intro-scene{filter:saturate(.86) hue-rotate(315deg)}

/* The last chapters stay bright in light mode while retaining the season. */
html[data-theme="light"][data-season] .home-v2 .home-journey{
    background:
        radial-gradient(circle at 82% 30%,var(--season-soft-alt),transparent 27%),
        radial-gradient(circle at 14% 86%,var(--season-soft),transparent 29%),
        linear-gradient(145deg,#fbf5e7,#eef7ef);
    color:#173b38;
}

html[data-theme="light"][data-season] .home-v2 .home-recruitment{
    background:
        radial-gradient(circle at 88% 18%,var(--season-soft-alt),transparent 27%),
        linear-gradient(180deg,#f1f8f0,#faf1dc);
}

html[data-theme="light"][data-season] .home-v2 .home-ecurie{
    background:
        radial-gradient(circle at 12% 22%,var(--season-soft),transparent 28%),
        linear-gradient(180deg,#faf1dd,#eef7ef);
}

html[data-theme="light"][data-season] .footer.home-footer-v3{
    background:
        radial-gradient(circle at 12% 8%,var(--season-soft-alt),transparent 25%),
        radial-gradient(circle at 84% 20%,var(--season-soft),transparent 29%),
        linear-gradient(145deg,#faf3df,#eaf5eb);
    color:#153b38;
}

@media(prefers-reduced-motion:reduce){
    html[data-season] .falling-leaves,
    html[data-season] .falling-snow,
    html[data-season] .halloween-bats,
    html[data-season] .newyear-event,
    html[data-season] .paques-chocolats,
    html[data-season] .paques-lapins{
        display:none!important;
    }
}
