:root {
    --play-border: rgba(181, 145, 255, 0.24);
    --play-border-strong: rgba(181, 145, 255, 0.54);
    --play-panel: rgba(17, 11, 27, 0.9);
    --play-panel-soft: rgba(24, 16, 38, 0.72);
    --play-text-muted: #b8afc8;
    --play-accent: #a774f4;
    --play-accent-light: #d7baff;
    --play-mint: #6eeba0;
}

.play-page {
    min-width: 320px;
    color: #f8f5ff;
    background:
        linear-gradient(180deg, #08030f 0%, #0d0617 44%, #08030f 100%);
}

.play-page main {
    overflow: hidden;
}

.play-hero {
    position: relative;
    min-height: 410px;
    display: flex;
    align-items: flex-end;
    padding: 138px 5vw 72px;
    border-bottom: 1px solid var(--play-border);
    isolation: isolate;
}

.play-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("/img/preloader-bg.webp");
    background-position: center 48%;
    background-size: cover;
}

.play-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(7, 2, 14, 0.96) 0%, rgba(7, 2, 14, 0.82) 44%, rgba(7, 2, 14, 0.28) 100%),
        linear-gradient(0deg, #0c0515 0%, transparent 54%);
}

.play-hero__inner,
.download-section,
.install-section,
.release-notes {
    width: min(1420px, 100%);
    margin-inline: auto;
}

.play-hero__inner {
    display: grid;
    justify-items: start;
    gap: 18px;
}

.play-kicker,
.section-kicker {
    display: inline-flex;
    color: var(--play-accent-light);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.play-hero h1 {
    margin: 0;
    max-width: 860px;
    font-family: "Sora", sans-serif;
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.play-hero p {
    max-width: 720px;
    margin: 0;
    color: #c9c1d7;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.7;
}

.release-state {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(247, 190, 79, 0.34);
    border-radius: 6px;
    color: #f4d290;
    background: rgba(54, 36, 15, 0.62);
    font-size: 0.84rem;
    font-weight: 700;
}

.release-state__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f5bd4f;
    box-shadow: 0 0 14px rgba(245, 189, 79, 0.72);
}

.download-section,
.install-section,
.release-notes {
    padding-inline: 5vw;
}

.download-section {
    padding-top: 76px;
    padding-bottom: 80px;
}

.download-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 30px;
}

.download-section h2,
.install-section h2,
.release-notes h2 {
    margin: 8px 0 0;
    font-family: "Sora", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.15;
    letter-spacing: 0;
}

.download-section__head > p {
    max-width: 510px;
    margin: 0;
    color: var(--play-text-muted);
    line-height: 1.55;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.platform-card {
    min-width: 0;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--play-border);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(42, 25, 66, 0.58), rgba(14, 9, 23, 0.94) 58%),
        var(--play-panel);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
    animation: platform-card-enter 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.platform-card:nth-child(2) { animation-delay: 80ms; }
.platform-card:nth-child(3) { animation-delay: 160ms; }

.platform-card:hover,
.platform-card.is-recommended {
    border-color: var(--play-border-strong);
    transform: translateY(-3px);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.32), 0 0 30px rgba(145, 83, 226, 0.12);
}

.platform-card.is-detected {
    border-color: rgba(110, 235, 160, 0.42);
}

.platform-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 82px;
    margin-bottom: 22px;
}

.platform-mark {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    display: block;
}

.platform-mark img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.34));
    transition: transform 240ms ease, filter 240ms ease;
    animation: platform-icon-float 5s ease-in-out infinite;
}

.platform-mark--windows img {
    filter: drop-shadow(0 8px 18px rgba(16, 128, 255, 0.22));
}

.platform-mark--apple img {
    animation-delay: -1.6s;
    filter: drop-shadow(0 8px 18px rgba(176, 74, 255, 0.24));
}

.platform-mark--intel img {
    animation-delay: -3.2s;
    filter: drop-shadow(0 8px 18px rgba(0, 220, 231, 0.2));
}

.platform-card:hover .platform-mark img {
    transform: translateY(-2px) scale(1.06);
    filter: drop-shadow(0 10px 24px rgba(166, 101, 255, 0.42));
}

.platform-label {
    color: #a89db8;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.platform-card h3 {
    margin: 0 0 10px;
    font-family: "Sora", sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0;
}

.platform-card > p {
    min-height: 74px;
    margin: 0;
    color: var(--play-text-muted);
    line-height: 1.55;
}

.platform-meta {
    margin: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.platform-meta div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
}

.platform-meta dt,
.platform-meta dd {
    margin: 0;
    font-size: 0.82rem;
}

.platform-meta dt { color: #968ba6; }
.platform-meta dd { color: #f3ecff; font-weight: 700; }

.download-action {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding: 10px 14px;
    border: 1px solid rgba(196, 151, 255, 0.54);
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(135deg, #8e55d9, #6f38c4);
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(94, 44, 167, 0.28);
    transition: filter 180ms ease, transform 180ms ease;
    position: relative;
    overflow: hidden;
}

.download-action::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.2) 48%, transparent 72%);
    transform: translateX(-120%);
    transition: transform 520ms ease;
    pointer-events: none;
}

.download-action:hover {
    color: #fff;
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.download-action:hover::after {
    transform: translateX(120%);
}

@keyframes platform-card-enter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes platform-icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.download-action svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.platform-card__note {
    min-height: 38px;
    margin-top: 12px;
    color: #8f849e;
    font-size: 0.74rem;
    line-height: 1.45;
}

.install-section {
    width: 100%;
    max-width: none;
    padding-top: 70px;
    padding-bottom: 76px;
    border-top: 1px solid var(--play-border);
    border-bottom: 1px solid var(--play-border);
    background: rgba(16, 9, 25, 0.78);
}

.install-section__intro,
.install-columns {
    width: min(1420px, 100%);
    margin-inline: auto;
}

.install-section__intro p {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--play-text-muted);
    line-height: 1.6;
}

.install-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px;
    margin-top: 36px;
}

.install-guide {
    padding-top: 24px;
    border-top: 1px solid var(--play-border-strong);
}

.install-guide__heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.install-guide__heading > span {
    color: var(--play-accent);
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
}

.install-guide h3 {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0;
}

.install-guide ol {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    padding-left: 22px;
    color: #c8bfd6;
    line-height: 1.55;
}

.release-notes {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 48px;
    padding-top: 76px;
    padding-bottom: 90px;
}

.release-notes__copy p {
    margin: 16px 0 22px;
    color: var(--play-text-muted);
    line-height: 1.65;
}

.stable-link {
    color: var(--play-accent-light);
    font-weight: 700;
    text-underline-offset: 4px;
}

.checksum-panel {
    align-self: start;
    border: 1px solid var(--play-border);
    border-radius: 8px;
    background: var(--play-panel-soft);
}

.checksum-panel summary {
    padding: 20px 22px;
    cursor: pointer;
    font-weight: 800;
}

.checksum-list {
    display: grid;
    gap: 18px;
    padding: 0 22px 22px;
}

.checksum-list > div {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.checksum-list strong {
    color: #c9bfd8;
    font-size: 0.78rem;
}

.checksum-list code {
    overflow-wrap: anywhere;
    color: #9cebbb;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    line-height: 1.55;
}

@media (max-width: 1080px) {
    .platform-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .platform-card:first-child {
        grid-column: 1 / -1;
        min-height: 360px;
    }
}

@media (max-width: 760px) {
    .play-hero {
        min-height: 460px;
        padding: 118px 22px 54px;
    }

    .play-hero::after {
        background:
            linear-gradient(90deg, rgba(7, 2, 14, 0.94), rgba(7, 2, 14, 0.72)),
            linear-gradient(0deg, #0c0515 0%, transparent 54%);
    }

    .download-section,
    .install-section,
    .release-notes {
        padding-inline: 22px;
    }

    .download-section {
        padding-top: 54px;
        padding-bottom: 58px;
    }

    .download-section__head {
        display: grid;
        gap: 16px;
    }

    .platform-grid,
    .install-columns,
    .release-notes {
        grid-template-columns: 1fr;
    }

    .platform-card:first-child {
        grid-column: auto;
    }

    .platform-card {
        min-height: 390px;
        padding: 22px;
    }

    .install-section {
        padding-top: 54px;
        padding-bottom: 56px;
    }

    .install-columns {
        gap: 28px;
    }

    .release-notes {
        gap: 32px;
        padding-top: 58px;
        padding-bottom: 68px;
    }
}

@media (max-width: 430px) {
    .play-hero h1 {
        font-size: 2.65rem;
    }

    .platform-card > p {
        min-height: 0;
    }

    .download-action {
        font-size: 0.88rem;
    }

    .platform-card__top {
        min-height: 72px;
    }

    .platform-mark {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .platform-card,
    .download-action,
    .platform-mark img,
    .download-action::after {
        animation: none;
        transition: none;
    }
}
