/* LIvVE Software & Downloads v325 */
.downloads-shell { margin-top: 24px; }
.downloads-page-heading { align-items: center; }
.downloads-layout { grid-template-columns: 245px minmax(0, 1fr); }
.downloads-rail { position: sticky; top: 16px; }
.downloads-section-links { display: block; }
.downloads-section-links .game-info-nav-item small { display: block; }
.downloads-main { display: grid; gap: 16px; }
.downloads-kicker {
    color: var(--pink-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .15em;
}
.download-overview-card {
    display: grid;
    grid-template-columns: minmax(330px, .95fr) minmax(320px, 1.05fr);
    gap: 14px;
    align-items: stretch;
    padding: 14px;
    border: 1px solid #d7d7d2;
    border-radius: 10px;
    background: #fff;
}
.download-release-panel { display: grid; gap: 10px; min-width: 0; }
.download-release-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.download-release-choice {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 2px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.download-release-choice.is-beta { background: transparent; border: 0; }
.download-release-choice .downloads-primary-button { width: 100%; margin-top: 8px; }
.download-overview-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(86px, auto);
    align-items: stretch;
    margin: 0;
}
.download-overview-facts article {
    min-height: 86px;
    height: 100%;
    box-sizing: border-box;
}
.download-overview-facts article.is-beta { background: #fff8ec; border-color: #ead8aa; }
.download-hero-carousel {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    margin: 0;
}
.download-hero-carousel .featured-carousel-stage {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    aspect-ratio: auto;
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #000;
    padding: 0;
    margin: 0;
    line-height: 0;
}
.download-hero-image {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: block;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    object-fit: fill !important;
    object-position: 50% 50% !important;
    transform: none !important;
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0;
    background: #000;
}
.download-hero-carousel .featured-carousel-dots { padding-top: 8px; }
.downloads-primary-button,
.downloads-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.downloads-primary-button {
    border: 1px solid var(--pink);
    background: var(--pink);
    color: var(--theme-accent-text, #fff);
    box-shadow: 0 8px 18px rgba(0,0,0,.13);
}
.downloads-primary-button:hover,
.downloads-primary-button:focus-visible { background: var(--pink-dark); border-color: var(--pink-dark); outline: none; }
.downloads-primary-button.is-disabled {
    border-color: #c9c9c9;
    background: #e6e6e6;
    color: #8a8a8a;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
    opacity: .78;
}
.downloads-primary-button.is-disabled:hover,
.downloads-primary-button.is-disabled:focus-visible { border-color: #c9c9c9; background: #e6e6e6; color: #8a8a8a; }

.downloads-ebt-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}
.downloads-ebt-card > img {
    display: block;
    width: 120px;
    max-width: 100%;
    height: 120px;
    object-fit: contain;
}
.downloads-ebt-card h2 { margin: 2px 0 6px; color: #333300; font-size: 19px; }
.downloads-ebt-card p { margin: 0; color: #626267; font-size: 12px; line-height: 1.55; }
.downloads-ebt-button { margin-top: 12px; box-shadow: none; }
.downloads-beta-button { border-color: #333300; background: #333300; color: #fff; }
.downloads-beta-button:hover,
.downloads-beta-button:focus-visible { border-color: #161600; background: #161600; }
.downloads-secondary-button { border: 1px solid #c9a34a; background: #fff8df; color: #5b4700; }
.downloads-secondary-button:hover,
.downloads-secondary-button:focus-visible { border-color: #9e7c2d; background: #fff0b9; outline: none; }
.downloads-notice {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 15px 16px;
    border: 1px solid #e4c66a;
    border-radius: 10px;
    background: #fff9df;
}
.downloads-notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #333300;
    color: #fff;
    font-size: 27px;
    font-weight: 900;
}
.downloads-svg-icon { display: block; width: 20px; height: 20px; }
.downloads-notice-icon .downloads-svg-icon { width: 25px; height: 25px; }
.downloads-notice h2 { margin: 3px 0 5px; color: #333300; font-size: 18px; }
.downloads-notice p { margin: 0; color: #55513c; font-size: 12px; line-height: 1.55; }
.downloads-beta-content { min-width: 0; }
.downloads-beta-content .beta-guidance-grid { margin-top: 13px; }
.downloads-beta-content .beta-guidance-grid article { background: rgba(255,255,255,.56); border-color: #e7d38c; }
.downloads-section {
    padding: 17px;
    border: 1px solid #d7d7d2;
    border-radius: 10px;
    background: #fff;
}
.downloads-section-heading { margin-bottom: 13px; padding-bottom: 11px; border-bottom: 1px solid #ececec; }
.downloads-section-heading h2 { margin: 3px 0 4px; color: #333300; font-size: 20px; line-height: 1.15; }
.downloads-section-heading p { margin: 0; color: #66666b; font-size: 12px; line-height: 1.5; }
.downloads-copy { margin: 13px 0 0; color: #55555a; font-size: 12px; line-height: 1.6; }

/* Compact open/close panels. Download, beta warning and development log remain permanently open. */
.downloads-collapsible { padding: 0; overflow: hidden; }
.downloads-collapsible > summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 17px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.downloads-collapsible > summary::-webkit-details-marker { display: none; }
.downloads-collapsible > summary:hover,
.downloads-collapsible > summary:focus-visible { background: var(--theme-accent-soft, #fafafa); outline: none; }
.downloads-summary-heading { display: block; min-width: 0; }
.downloads-summary-title { display: block; margin-top: 3px; color: #333300; font-size: 18px; font-weight: 900; line-height: 1.15; }
.downloads-summary-description { display: block; margin-top: 4px; color: #6b6b70; font-size: 11px; line-height: 1.4; }
.downloads-summary-toggle {
    position: relative;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border: 1px solid #d8d8dc;
    border-radius: 50%;
    background: #fff;
}
.downloads-summary-toggle::before,
.downloads-summary-toggle::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 2px;
    border-radius: 2px;
    background: var(--pink-dark);
    transform: translate(-50%, -50%);
}
.downloads-summary-toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .16s ease; }
.downloads-collapsible[open] .downloads-summary-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.downloads-collapsible[open] > summary { border-bottom: 1px solid #ececec; }
.downloads-collapsible-content { padding: 16px 17px 17px; }

.software-fact-grid,
.beta-guidance-grid,
.theme-download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.software-fact-grid article,
.beta-guidance-grid article,
.theme-card {
    padding: 13px;
    border: 1px solid #dedee1;
    border-radius: 8px;
    background: var(--theme-accent-soft, #fafafa);
}
.software-fact-grid span { display: block; color: var(--pink-dark); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.software-fact-grid strong { display: block; margin-top: 3px; color: #333300; font-size: 17px; }
.software-fact-grid small { display: block; margin-top: 4px; color: #6b6b70; font-size: 10px; line-height: 1.35; }
.beta-guidance-grid h3 { margin: 0 0 5px; color: #333300; font-size: 13px; }
.beta-guidance-grid p { margin: 0; color: #626267; font-size: 11px; line-height: 1.52; }
.downloads-support-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.downloads-support-links a { padding: 7px 10px; border: 1px solid #d8d8dc; border-radius: 7px; color: var(--pink-dark); font-size: 11px; font-weight: 800; text-decoration: none; }
.downloads-support-links a:hover,
.downloads-support-links a:focus-visible { border-color: var(--pink); background: var(--theme-accent-soft, #fafafa); outline: none; }

.downloads-development-section { padding-bottom: 14px; }
.development-log-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.development-log-live {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid #b9d6b9;
    border-radius: 999px;
    background: #eff8ef;
    color: #2e6c36;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em;
}
.development-log-scroll {
    max-height: 360px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 5px;
    scrollbar-gutter: stable;
}
.development-log-scroll:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.development-log { display: grid; gap: 0; }
.development-log-entry {
    display: grid;
    grid-template-columns: 34px 124px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 4px 12px 0;
    border-bottom: 1px solid #ececec;
}
.development-log-entry:first-child { padding-top: 1px; }
.development-log-entry:last-child { padding-bottom: 2px; border-bottom: 0; }
.development-log-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-top: 1px;
    border: 1px solid #d7d7dc;
    border-radius: 50%;
    background: #f8f8f8;
    color: #555;
}
.development-log-marker .downloads-svg-icon { width: 17px; height: 17px; }
.development-log-entry.is-critical .development-log-marker { border-color: #d8a4a4; background: #fff0f0; color: #a32626; }
.development-log-entry.is-interface .development-log-marker { border-color: #b8c8e5; background: #f1f5ff; color: #355a96; }
.development-log-entry.is-new-item .development-log-marker { border-color: #acd3b3; background: #f0faf2; color: #2d7139; }
.development-log-date time { display: block; color: var(--pink-dark); font-size: 10px; font-weight: 900; }
.development-log-date span { display: block; margin-top: 4px; color: #77777d; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.development-log-copy strong { display: block; color: #333300; font-size: 12px; }
.development-log-copy p { margin: 4px 0 0; color: #626267; font-size: 11px; line-height: 1.5; }
.development-log-empty { margin: 0; padding: 14px 4px; color: #6b6b70; font-size: 11px; }
.theme-status { display: inline-block; margin-bottom: 5px; color: var(--pink-dark); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.theme-card h3 { margin: 0 0 5px; color: #333300; font-size: 14px; }
.theme-card p { margin: 0; color: #626267; font-size: 11px; line-height: 1.5; }
.theme-action { display: block; margin-top: 10px; color: #76767a; font-size: 10px; font-weight: 800; }
.theme-card.is-coming { opacity: .84; }
.awards-panel { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; align-items: center; }
.awards-icon { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 12px; background: #f8f8f0; color: var(--pink-dark); }
.awards-icon .downloads-svg-icon { width: 28px; height: 28px; }
.awards-panel h3 { margin: 0 0 5px; color: #333300; font-size: 14px; }
.awards-panel p { margin: 0; color: #626267; font-size: 11px; line-height: 1.55; }

body.downloads-modal-open { overflow: hidden; }
.downloads-beta-modal[hidden] { display: none; }
.downloads-beta-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; }
.downloads-beta-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.68); }
.downloads-beta-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    overflow: hidden;
    border: 1px solid #b9b9b2;
    border-radius: 7px;
    background: #f7f7f3;
    box-shadow: 0 22px 64px rgba(0,0,0,.42);
}
.downloads-beta-modal-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 68px;
    padding: 11px 12px 11px 14px;
    border-bottom: 1px solid #d4d4ce;
    background: linear-gradient(#ffffff, #eeeeea);
}
.downloads-beta-modal-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}
.downloads-beta-modal-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #262600;
    border-radius: 5px;
    background: #333300;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.13);
}
.downloads-beta-modal-icon .downloads-svg-icon { width: 22px; height: 22px; }
.downloads-beta-modal-dialog h2 { margin: 2px 0 0; color: #333300; font-size: 19px; line-height: 1.2; }
.downloads-beta-modal-close {
    appearance: none;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    padding: 0;
    border: 1px solid #b9b9b2;
    border-radius: 4px;
    background: linear-gradient(#fff, #e7e7e2);
    color: #55555a;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
    cursor: pointer;
}
.downloads-beta-modal-close svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
}
.downloads-beta-modal-close:hover { border-color: #a03030; background: #b33b3b; color: #fff; }
.downloads-beta-modal-close:focus-visible { border-color: var(--pink); outline: 2px solid color-mix(in srgb, var(--pink) 35%, transparent); outline-offset: 2px; }
.downloads-beta-modal-body {
    padding: 18px 18px 17px;
    background: #fff;
}
.downloads-beta-modal-body p {
    margin: 0;
    padding: 14px 15px;
    border: 1px solid #c9c9c2;
    background: #fafaf7;
    color: #3f3f44;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.downloads-beta-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 18px 15px;
    border-top: 1px solid #e1e1dc;
    background: #f4f4ef;
}
.downloads-beta-modal-actions .downloads-primary-button,
.downloads-beta-modal-actions .downloads-secondary-button { width: 100%; min-height: 40px; }
.downloads-beta-cancel { appearance: none; cursor: pointer; font-family: inherit; }

@media (max-width: 900px) {
    .download-overview-card { grid-template-columns: 1fr; }
    .download-hero-carousel { width: 100%; height: auto; }
    .download-hero-carousel .featured-carousel-stage {
        flex: none;
        min-height: 0;
        aspect-ratio: 458 / 272;
    }
}
@media (max-width: 820px) {
    .downloads-layout { grid-template-columns: 1fr; }
    .downloads-ebt-card { grid-template-columns: 1fr; }
    .downloads-ebt-card > img { justify-self: start; }
    .downloads-rail { position: static; order: 2; }
}
@media (max-width: 620px) {
    .downloads-shell { padding: 18px 14px; }
    .downloads-page-heading { align-items: flex-start; }
    .download-release-buttons,
    .downloads-beta-modal-actions { grid-template-columns: 1fr; }
    .software-fact-grid,
    .beta-guidance-grid,
    .theme-download-grid { grid-template-columns: 1fr; }
    .development-log-heading { display: block; }
    .development-log-live { margin-top: 8px; }
    .development-log-entry { grid-template-columns: 32px minmax(0, 1fr); gap: 9px; }
    .development-log-date { grid-column: 2; }
    .development-log-copy { grid-column: 2; }
    .development-log-marker { grid-row: 1 / span 2; }
    .downloads-notice { grid-template-columns: 40px minmax(0, 1fr); }
    .downloads-notice-icon { width: 40px; height: 40px; font-size: 22px; }
    .downloads-summary-description { display: none; }
}
