.home-discover-heading { max-width: 850px; margin: 2rem auto 0; text-align: center; }
.home-discover-heading h2 { margin: 0 0 .7rem; font-size: clamp(2.6rem, 4.6vw, 5rem); font-weight: 800; line-height: 1.05; }
.home-discover-heading h2 span { color: var(--az-accent); }
.home-discover-heading p { margin: 0; color: var(--az-muted); font-size: clamp(1rem, 1.2vw, 1.2rem); }

.home-showcase { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(2rem, 4vw, 6rem); width: 85vw; min-height: clamp(570px, 78vh, 840px); margin-left: calc(50% - 42.5vw); padding: clamp(3rem, 5vw, 6rem) clamp(12px, 2vw, 42px); }
.home-showcase + .home-showcase::before { position: absolute; top: 0; left: 50%; width: 80vw; height: 1px; background: linear-gradient(90deg, transparent, var(--az-border) 12%, var(--az-accent) 50%, var(--az-border) 88%, transparent); content: ''; transform: translateX(-50%); opacity: .8; }
.home-showcase-copy { position: relative; z-index: 2; width: 100%; max-width: 800px; }
.home-showcase-patches { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 5rem); }
.home-patches-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; min-width: 0; }
.home-patches-list { min-width: 0; }
.home-showcase-patches .home-showcase-copy { max-width: 650px; text-align: left; }
.home-showcase-patches .home-showcase-copy h3 { max-width: 650px; margin-inline: 0; }
.home-showcase-patches .home-showcase-copy > p { margin-inline: 0; }
.home-showcase-discord { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; width: 92vw; min-height: 0; margin-left: calc(50% - 46vw); padding: clamp(3rem, 4vw, 4.5rem) 0 0; overflow: clip; text-align: center; }
.home-showcase-discord .home-showcase-copy { max-width: 900px; }
.home-showcase-discord .home-showcase-copy h3 { max-width: 900px; margin-inline: auto; }
.home-showcase-discord .home-showcase-copy > p { max-width: 650px; margin: 0 auto; }
.home-discord-title-first { white-space: nowrap; }
.home-showcase-copy h3 { max-width: 800px; margin: 0 0 1.25rem; color: var(--az-text); font-size: clamp(2.6rem, 4.2vw, 5rem); font-weight: 800; line-height: 1.07; }
.home-showcase-copy > p { max-width: 580px; margin: 0 0 1.6rem; color: var(--az-muted); font-size: clamp(1rem, 1.15vw, 1.2rem); line-height: 1.8; }
.home-showcase-detail { display: flex; align-items: flex-start; gap: .7rem; max-width: 480px; margin: 0 0 1.6rem; color: var(--az-text); font-size: .9rem; font-weight: 600; }
.home-showcase-detail .bi { flex: none; color: var(--az-accent); font-size: 1.1rem; }
.home-vote-action { width: fit-content; max-width: 100%; }
.home-vote-action .home-feature-button { display: flex; width: max-content; max-width: 100%; margin-inline: auto; }
.home-feature-button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 52px; padding: .8rem 1.6rem; border-radius: 999px; box-shadow: 0 9px 25px rgba(29, 112, 238, .2); font-size: .95rem; }
.home-feature-button .bi:last-child { margin-left: .3rem; }
.home-showcase-art { position: relative; z-index: 1; display: grid; place-items: center; min-width: 0; }
.home-showcase-art img { position: relative; display: block; width: min(100%, 880px); height: auto !important; max-height: 72vh; object-fit: contain; animation: home-showcase-float 9s ease-in-out infinite; }
.home-showcase-patches .home-showcase-art { width: min(100%, 620px); }
.home-showcase-patches .home-showcase-art img { width: 100%; max-height: min(34vh, 300px); }
.home-showcase-art-patches img { animation-delay: -3s; }
.home-showcase-discord .home-showcase-art-discord { width: min(100%, 1500px); }
.home-showcase-discord .home-showcase-art-discord img { width: 100%; max-height: none; animation: none; }
@media (min-width: 992px) { .home-showcase-discord .home-showcase-art-discord { transform: translateX(clamp(40px, 5vw, 96px)); } }
@media (min-width: 1200px) {
    .home-showcase-discord::after { position: absolute; z-index: 1; inset: 0 auto 0 0; width: 58%; background: linear-gradient(90deg, var(--az-bg) 12%, transparent 100%); content: ''; pointer-events: none; }
    .home-showcase-discord .home-showcase-copy { position: absolute; top: clamp(7rem, 15%, 11rem); left: 9%; width: min(30%, 480px); text-align: left; }
    .home-showcase-discord .home-showcase-copy h3 { margin-inline: 0; font-size: clamp(2.6rem, 3.8vw, 4.5rem); }
    .home-showcase-discord .home-showcase-copy > p { margin: 0; }
}
.home-discord-button { display: inline-flex; align-items: center; gap: .8rem; min-height: 60px; margin-top: 1.5rem; padding: .45rem 1.35rem .45rem .45rem; border: 1px solid rgba(173, 191, 255, .65); border-radius: 999px; background: linear-gradient(115deg, #5865e8, #2c70dd); box-shadow: 0 12px 30px rgba(50, 96, 214, .32), inset 0 1px rgba(255, 255, 255, .22); color: #fff; font-size: .95rem; font-weight: 800; text-decoration: none; white-space: nowrap; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, filter .2s ease; }
.home-discord-button:hover { transform: translateY(-2px); border-color: #d6dcff; box-shadow: 0 16px 36px rgba(50, 96, 214, .42), 0 0 24px rgba(88, 101, 242, .2); color: #fff; filter: brightness(1.08); }
.home-discord-button-icon { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.25rem; }
.home-discord-button:focus-visible { outline: 3px solid #d6dcff; outline-offset: 4px; }
@keyframes home-showcase-float { 50% { transform: translateY(-10px); } }

.home-showcase-carousel { display: block; }
.home-carousel-stage { display: grid; }
.home-carousel-slide { grid-area: 1 / 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(2rem, 4vw, 6rem); min-height: clamp(440px, 60vh, 620px); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease, visibility .55s; }
.home-carousel-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.home-carousel-controls { display: flex; flex-direction: column; align-items: center; gap: .8rem; margin-top: .2rem; }
.home-carousel-progress { width: min(320px, 70vw); }
.home-carousel-progress-track { display: block; overflow: hidden; height: 6px; border-radius: 999px; background: var(--az-border); }
.home-carousel-progress-fill { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--az-accent), #7cc8ff); transform: scaleX(0); transform-origin: left center; transition: transform 0ms linear; }
.home-carousel-pager { display: flex; align-items: center; justify-content: center; gap: .7rem; }
.home-carousel-control { width: 28px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--az-border); cursor: pointer; transition: width .25s ease, background-color .25s ease; }
.home-carousel-control:hover { background: var(--az-muted); }
.home-carousel-control[aria-pressed="true"] { width: 56px; background: var(--az-accent); }
.home-carousel-control:focus-visible { outline: 2px solid var(--az-accent); outline-offset: 4px; }
.home-showcase-art-battle img { width: min(100%, 800px); }
.home-showcase-art-spawner img { width: min(100%, 760px); }
.home-news-stage { width: 100%; }
.home-news-slide { --news-accent: #4da6ff; --news-tint: rgba(54, 139, 236, .17); --news-border: rgba(77, 166, 255, .4); --news-card-bg: linear-gradient(145deg, rgba(48, 113, 191, .13), transparent 60%), var(--az-surface); --news-text: var(--az-text); --news-muted: var(--az-muted); display: flex; flex-direction: column; align-items: stretch; gap: .8rem; min-height: 550px; }
.home-news-slide-actualites { --news-accent: #77e3a5; --news-tint: rgba(74, 205, 142, .15); --news-border: rgba(119, 227, 165, .4); --news-card-bg: linear-gradient(145deg, #102b2c, #081923 75%); --news-text: #eefcf4; --news-muted: #b5cec1; }
body.azuria-site[data-bs-theme="light"] .home-news-slide-patch { --news-accent: #176ab6; --news-border: rgba(23, 106, 182, .42); --news-tint: rgba(23, 106, 182, .1); }
body.azuria-site[data-bs-theme="light"] .home-news-slide-actualites { --news-accent: #167b51; --news-border: rgba(22, 123, 81, .42); --news-tint: rgba(22, 123, 81, .1); }
body.azuria-site[data-bs-theme="light"] .home-news-slide-actualites .home-update-card { --news-accent: #77e3a5; --news-border: rgba(119, 227, 165, .4); --news-tint: rgba(74, 205, 142, .15); }
.home-news-slide-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; color: var(--news-accent); }
.home-news-type { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .8rem; border: 1px solid var(--news-border); border-radius: 999px; background: var(--news-tint); font-size: .76rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.home-news-type .bi { font-size: 1rem; }
.home-news-all { display: inline-flex; align-items: center; gap: .4rem; color: var(--news-accent); font-size: .85rem; font-weight: 800; text-decoration: none; }
.home-news-all:hover { color: var(--news-accent); text-decoration: underline; }
.home-news-grid { display: grid; grid-template-columns: 1fr; align-items: stretch; gap: .7rem; }
.home-update-card { min-width: 0; overflow: hidden; border: 1px solid var(--news-border); border-radius: 1rem; background: var(--news-card-bg); box-shadow: 0 14px 34px var(--az-card-shadow); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.home-update-card:hover, .home-update-card:focus-within { border-color: var(--news-accent); box-shadow: 0 20px 42px var(--az-card-shadow); transform: translateY(-4px); }
.home-update-card a { display: flex; min-height: 145px; color: var(--news-text); text-decoration: none; }
.home-update-media { position: relative; display: grid; flex: 0 0 47%; place-items: center; overflow: hidden; width: 47%; min-height: 145px; background: radial-gradient(circle at 50% 45%, var(--news-tint), transparent 68%), #0c1c30; }
.home-news-slide-actualites .home-update-media { background-color: #061920; }
.home-update-media-image { display: block; align-self: flex-start; min-height: 0; }
.home-showcase-news .home-update-media img { display: block; width: 100%; max-width: none; height: auto; aspect-ratio: auto 16 / 9; transition: filter .3s ease; }
.home-update-card:hover .home-update-media img { filter: brightness(1.06); }
.home-update-media .bi { color: var(--news-accent); font-size: 3.3rem; }
.home-update-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: .35rem; min-width: 0; padding: .7rem 1rem; }
.home-update-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; color: var(--news-muted); font-size: .72rem; font-weight: 700; }
.home-update-tag { display: inline-flex; padding: .2rem .55rem; border: 1px solid var(--news-border); border-radius: 999px; background: var(--news-tint); color: var(--news-accent); font-size: .68rem; font-weight: 800; }
.home-update-body strong { color: var(--news-text); font-family: 'Outfit', sans-serif; font-size: clamp(1.1rem, 1.25vw, 1.3rem); line-height: 1.2; overflow-wrap: anywhere; }
.home-update-excerpt { display: -webkit-box; overflow: hidden; color: var(--news-muted); font-size: .83rem; line-height: 1.45; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.home-update-link { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; margin-top: auto; padding-top: .35rem; border-top: 1px solid var(--news-border); color: var(--news-accent); font-size: .8rem; font-weight: 800; }
.home-update-link .bi { font-size: 1rem; }
.home-news-empty { display: grid; place-items: center; flex: 1; margin: 0; padding: 3rem 1rem; border: 1px dashed var(--news-border); border-radius: 1rem; color: var(--news-muted); text-align: center; }
.home-news-controls { gap: .75rem; margin-top: .8rem; }
.home-news-controls .home-carousel-progress { width: min(420px, 80vw); }
.home-showcase-news[data-active-theme="patchnotes"] .home-carousel-progress-fill { background: #4da6ff; }
.home-showcase-news[data-active-theme="actualites"] .home-carousel-progress-fill { background: #77e3a5; }
body.azuria-site[data-bs-theme="light"] .home-showcase-news[data-active-theme="actualites"] .home-carousel-progress-fill { background: #168658; }
.home-news-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.home-news-control { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border: 1px solid var(--az-border); border-radius: 999px; background: var(--az-surface); color: var(--az-muted); font-size: .82rem; font-weight: 800; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.home-news-control:hover { color: var(--az-text); }
.home-news-control[aria-pressed="true"] { border-color: #4da6ff; background: rgba(77, 166, 255, .13); color: #4da6ff; }
body.azuria-site[data-bs-theme="light"] .home-news-control[aria-pressed="true"] { border-color: #176ab6; color: #176ab6; }
.home-news-control[data-carousel-go="1"][aria-pressed="true"] { border-color: #77e3a5; background: rgba(119, 227, 165, .13); color: #378c60; }
body.azuria-site[data-bs-theme="light"] .home-news-control[data-carousel-go="1"][aria-pressed="true"] { border-color: #167b51; background: rgba(22, 123, 81, .1); color: #167b51; }
body.azuria-site[data-bs-theme="dark"] .home-news-control[data-carousel-go="1"][aria-pressed="true"] { color: #77e3a5; }
.home-news-control:focus-visible { outline: 2px solid var(--az-accent); outline-offset: 3px; }

@media (max-width: 1199.98px) {
    .home-showcase-patches { grid-template-columns: 1fr; gap: 2rem; }
    .home-patches-intro, .home-patches-list { width: min(100%, 900px); margin-inline: auto; }
}

@media (max-width: 991.98px) {
    .home-showcase { grid-template-columns: 1fr; gap: 1.5rem; min-height: 0; }
    .home-showcase-copy { max-width: 700px; margin-inline: auto; text-align: center; }
    .home-showcase-copy h3, .home-showcase-copy > p { margin-inline: auto; }
    .home-showcase-detail { justify-content: center; margin-inline: auto; text-align: center; }
    .home-vote-action { margin-inline: auto; }
    .home-carousel-slide { grid-template-columns: 1fr; min-height: 0; gap: 1.25rem; }
    .home-showcase-art img { width: min(100%, 500px); max-height: 370px; }
    .home-showcase-art-discord img { max-height: 370px; }
    .home-patches-intro { align-items: center; text-align: center; }
    .home-showcase-patches .home-showcase-copy, .home-showcase-patches .home-showcase-copy h3, .home-showcase-patches .home-showcase-copy > p { margin-inline: auto; text-align: center; }
    .home-showcase-patches .home-showcase-art { width: min(100%, 440px); }
    .home-news-slide { min-height: 0; }
}

@media (max-width: 767.98px) {
    .home-discover-heading { margin-bottom: 1rem; }
    .home-showcase { width: calc(100vw - 32px); gap: 1rem; margin-left: calc(50% - 50vw + 16px); padding: 3.5rem 0; }
    .home-showcase-discord { padding-bottom: 0; }
    .home-showcase-copy h3 { font-size: clamp(2.3rem, 7vw, 3.6rem); }
    .home-showcase-art img { width: min(100%, 420px); max-height: 310px; }
    .home-showcase-art-discord img { max-height: 310px; }
    .home-showcase-patches .home-showcase-art { width: min(85%, 350px); }
    .home-showcase-art-discord { width: min(85%, 390px); }
    .home-carousel-slide { gap: 1rem; }
    .home-carousel-controls { margin-top: 1rem; }
    .home-update-media { flex: 0 0 47%; width: 47%; height: auto; min-height: 155px; }
    .home-update-media-image { min-height: 0; }
    .home-update-body { gap: .45rem; padding: .85rem 1rem; }
    .home-update-body strong { font-size: 1.14rem; }
    .home-update-excerpt { -webkit-line-clamp: 1; }
    .home-news-slide-heading { padding-inline: .2rem; }
}

@media (max-width: 575.98px) {
    .home-update-card a { flex-direction: column; }
    .home-update-media { flex: none; width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
    .home-update-media-image { aspect-ratio: auto; }
}

@media (max-width: 480px) {
    .home-discover-heading h2 { font-size: clamp(2.1rem, 9vw, 2.7rem); }
    .home-showcase-copy h3 { font-size: clamp(2rem, 8.5vw, 2.7rem); }
    .home-showcase-copy > p { font-size: .95rem; line-height: 1.65; }
    .home-showcase-art img { width: min(100%, 330px); max-height: 245px; }
    .home-showcase-art-discord img { max-height: 245px; }
    .home-showcase-patches .home-showcase-art { width: min(85%, 300px); }
    .home-showcase-discord .home-showcase-art-discord { width: min(140vw, 620px); max-width: none; }
    .home-feature-button { width: min(100%, 270px); }
    .home-discord-button { gap: .6rem; min-height: 52px; max-width: calc(100% - .5rem); padding: .35rem 1rem .35rem .35rem; font-size: .85rem; }
    .home-discord-button-icon { width: 38px; height: 38px; font-size: 1.1rem; }
    .home-news-slide-heading { align-items: flex-start; }
    .home-update-excerpt { display: none; }
    .home-update-link { padding-top: .4rem; }
}

@media (prefers-reduced-motion: reduce) { .home-update-card, .home-update-media img, .home-news-control, .home-carousel-slide, .home-carousel-progress-fill, .home-carousel-control, .home-discord-button { transition: none !important; } .home-showcase-art img { animation: none !important; } }
