.home-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    aspect-ratio: 1024 / 575;
    min-height: 420px;
    overflow: hidden;
}

.home-backdrop::before {
    content: "";
    position: absolute;
    inset: -12px;
    background: url("../arkabanner.webp") center top / cover no-repeat;
    filter: blur(3px) brightness(0.55);
    animation: backdropIn 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.home-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(24, 25, 28, 0.35) 0%, rgba(24, 25, 28, 0.75) 80%),
        linear-gradient(180deg, rgba(30, 31, 35, 0.55) 0%, rgba(34, 36, 40, 0.7) 35%, rgba(40, 42, 46, 0.88) 60%, #2b2d31 85%);
}

.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px);
    padding: 0 24px 72px;
    text-align: center;
}

.hero-title {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, #ffffff 0%, #d4d6db 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: blur(0) drop-shadow(0 8px 30px rgba(0, 0, 0, 0.45));
    animation: heroTitleIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.hero-title-accent {
    font-weight: 300;
    background: linear-gradient(180deg, #c9ccd3 0%, #8e929b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-tagline {
    margin-top: 14px;
    font-size: clamp(14px, 1.6vw, 18px);
    font-weight: 400;
    letter-spacing: 0.01em;
    color: #c4c7cd;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

.hero-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 48px;
    padding: 0 28px;
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    transition:
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s,
        background 0.25s;
}

.hero-btn svg {
    width: 18px;
    height: 18px;
}

.hero-btn:hover {
    transform: translateY(-2px) scale(1.03);
}

.hero-btn:active {
    transform: scale(0.96);
    transition-duration: 0.12s;
}

.hero-btn-primary {
    color: #1e1f22;
    background: linear-gradient(180deg, #ffffff 0%, #dfe1e6 100%);
    box-shadow:
        inset 0 -1px 0 rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero-btn-primary:hover {
    box-shadow:
        inset 0 -1px 0 rgba(0, 0, 0, 0.08),
        0 12px 32px rgba(255, 255, 255, 0.12),
        0 10px 28px rgba(0, 0, 0, 0.4);
}

.hero-btn-glass {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.2),
        inset -1px -1px 0 rgba(255, 255, 255, 0.07),
        0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
}

.home-hero {
    position: relative;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #c4c7cd;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both, scrollBounce 2.2s ease-in-out 1.7s infinite;
    transition: color 0.2s, background 0.2s;
}

.hero-scroll:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.hero-scroll svg {
    width: 20px;
    height: 20px;
}

.news-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 160px 24px 100px;
    scroll-margin-top: -40px;
}

.section-head {
    margin-bottom: 32px;
    text-align: left;
}

.section-title {
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -1px;
}

.section-subtitle {
    margin-top: 8px;
    font-size: 15px;
    color: #a3a6ad;
}

.news-empty {
    text-align: left;
    font-size: 14px;
    color: #80848e;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
}

.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.06),
        0 14px 36px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    transition: transform 0.45s cubic-bezier(0.34, 1.36, 0.64, 1), box-shadow 0.3s, border-color 0.3s;
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.08),
        0 24px 50px rgba(0, 0, 0, 0.4);
}

.news-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}

.news-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card:hover .news-cover img {
    transform: scale(1.05);
}

.news-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(20, 21, 24, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.news-tag.is-inline {
    position: static;
}

.news-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 22px 22px;
}

.news-date {
    font-size: 12px;
    color: #80848e;
}

.news-title {
    margin-top: 6px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.3px;
}

.news-excerpt {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    font-size: 13.5px;
    line-height: 1.6;
    color: #a3a6ad;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.news-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #f2f3f5;
}

.news-more svg {
    width: 15px;
    height: 15px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.news-card:hover .news-more svg {
    transform: translateX(4px);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.news-card[data-reveal].is-visible:hover {
    transform: translateY(-6px);
    transition-delay: 0ms;
}

.article-main {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13.5px;
    font-weight: 600;
    color: #a3a6ad;
    transition: color 0.2s;
}

.article-back:hover {
    color: #ffffff;
}

.article-back svg {
    width: 16px;
    height: 16px;
}

.article-card {
    animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.article-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.article-inner {
    padding-top: 28px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #80848e;
}

.article-title {
    margin-top: 12px;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.article-content {
    margin-top: 18px;
    font-size: 15.5px;
    line-height: 1.75;
    color: #d5d7dc;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@media (max-width: 560px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .article-inner {
        padding-top: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

.play-dialog {
    max-width: 440px;
}

.play-card {
    position: relative;
    padding: 30px 26px 26px;
    overflow: hidden;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 32px;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow:
        inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.28),
        inset -1px -1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 30px rgba(255, 255, 255, 0.04),
        0 30px 80px rgba(0, 0, 0, 0.5);
}

.play-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(120% 60% at 15% 0%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 55%),
        radial-gradient(80% 50% at 100% 100%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

.play-card > * {
    position: relative;
}

.play-card .auth-close {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.play-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 22px;
    text-align: center;
}

.play-logo {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 16px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18),
        0 10px 24px rgba(0, 0, 0, 0.35);
}

.play-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.8px;
}

.play-title span {
    font-weight: 300;
    color: #b5b8bf;
}

.play-subtitle {
    margin-top: 6px;
    font-size: 13.5px;
    color: #c4c7cd;
}

.play-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.play-option {
    padding: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.1);
}

.play-option.is-disabled {
    background: rgba(0, 0, 0, 0.12);
    border-style: dashed;
    box-shadow: none;
}

.play-option.is-disabled .play-edition {
    color: #a3a6ad;
}

.play-option-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.play-edition {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 16px;
    font-weight: 700;
}

.play-edition svg {
    width: 19px;
    height: 19px;
}

.play-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 600;
    border: 1px solid;
    border-radius: 999px;
}

.play-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-on {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
}

.status-on::before {
    box-shadow: 0 0 8px currentColor;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-off {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
}

.status-soon {
    color: #fcd34d;
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.25);
}

.play-note {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #a3a6ad;
}

.play-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.play-field {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
}

.play-field-label {
    font-size: 12px;
    font-weight: 600;
    color: #80848e;
}

.play-field-value {
    overflow: hidden;
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.play-copy {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #c4c7cd;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.play-copy:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.play-copy:active {
    transform: scale(0.9);
}

.play-copy svg {
    grid-area: 1 / 1;
    width: 16px;
    height: 16px;
    transition: opacity 0.2s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.play-copy .icon-check {
    opacity: 0;
    transform: scale(0.5);
}

.play-copy.copied {
    color: #86efac;
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.3);
}

.play-copy.copied .icon-copy {
    opacity: 0;
    transform: scale(0.5);
}

.play-copy.copied .icon-check {
    opacity: 1;
    transform: none;
}

.play-launch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 46px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #1e1f22;
    background: linear-gradient(180deg, #ffffff 0%, #dfe1e6 100%);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}

.play-launch svg {
    width: 16px;
    height: 16px;
}

.play-launch:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

.play-launch:active {
    transform: scale(0.97);
    transition-duration: 0.12s;
}

.auth-modal.open .play-option {
    animation: heroIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-modal.open .play-option:nth-child(1) { animation-delay: 0.12s; }
.auth-modal.open .play-option:nth-child(2) { animation-delay: 0.2s; }

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes heroTitleIn {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(6px) drop-shadow(0 8px 30px rgba(0, 0, 0, 0.45));
    }
    to {
        opacity: 1;
        transform: none;
        filter: blur(0) drop-shadow(0 8px 30px rgba(0, 0, 0, 0.45));
    }
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(18px);
        filter: blur(6px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: blur(0);
    }
}

@keyframes backdropIn {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
