/* ════════════════════════════════════════════════════════════════════════════
   download.css — the /download page: a cinematic, "AAA game page" treatment for
   Zetbit Arena with an Early Access Beta countdown. Builds on the portal palette
   (variables are defined on .pt-page).
════════════════════════════════════════════════════════════════════════════ */

/* ══ CINEMATIC HERO ════════════════════════════════════════════════════════ */
.dlx-hero {
    position: relative;
    min-height: min(94vh, 980px);
    display: flex;
    align-items: flex-end;
    padding: 120px 0 70px;
    overflow: hidden;
    isolation: isolate;
}

.dlx-hero-bg {
    position: absolute;
    inset: -4%;
    z-index: -3;
    background-size: cover;
    background-position: center 35%;
    animation: dlx-kenburns 26s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes dlx-kenburns {
    from { transform: scale(1.06) translate3d(0, 0, 0); }
    to   { transform: scale(1.16) translate3d(-2%, -2%, 0); }
}

.dlx-hero-grad {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(120% 90% at 20% 110%, rgba(224, 135, 58, 0.22), transparent 55%),
        linear-gradient(180deg, rgba(10, 11, 14, 0.25) 0%, rgba(10, 11, 14, 0.55) 48%, rgba(10, 11, 14, 0.98) 100%),
        linear-gradient(90deg, rgba(10, 11, 14, 0.9) 0%, rgba(10, 11, 14, 0.25) 60%);
}

/* CRT scanlines */
.dlx-scanlines {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: repeating-linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0px, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0.16) 3px);
    mix-blend-mode: overlay;
    opacity: 0.5;
}

/* Floating embers */
.dlx-embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.dlx-embers span {
    position: absolute;
    bottom: -12px;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: var(--pt-accent-hi);
    box-shadow: 0 0 10px 2px rgba(244, 168, 91, 0.7);
    opacity: 0;
    animation: dlx-ember linear infinite;
}
@keyframes dlx-ember {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    10%  { opacity: 0.9; }
    80%  { opacity: 0.7; }
    100% { transform: translateY(-88vh) scale(0.3); opacity: 0; }
}
.dlx-embers span:nth-child(1) { left: 8%;  animation-duration: 9s;  animation-delay: 0s;   }
.dlx-embers span:nth-child(2) { left: 20%; animation-duration: 12s; animation-delay: 1.5s; width:3px;height:3px; }
.dlx-embers span:nth-child(3) { left: 33%; animation-duration: 10s; animation-delay: 3s;   }
.dlx-embers span:nth-child(4) { left: 46%; animation-duration: 14s; animation-delay: 0.8s; width:5px;height:5px; }
.dlx-embers span:nth-child(5) { left: 58%; animation-duration: 11s; animation-delay: 2.2s; }
.dlx-embers span:nth-child(6) { left: 70%; animation-duration: 13s; animation-delay: 4s;   width:3px;height:3px; }
.dlx-embers span:nth-child(7) { left: 82%; animation-duration: 9.5s;animation-delay: 1s;   }
.dlx-embers span:nth-child(8) { left: 92%; animation-duration: 15s; animation-delay: 2.8s; width:5px;height:5px; }

@media (prefers-reduced-motion: reduce) {
    .dlx-hero-bg, .dlx-embers span { animation: none; }
    .dlx-hero-bg { transform: scale(1.08); }
}

.dlx-hero-inner { position: relative; width: 100%; z-index: 1; }

/* Badge */
.dlx-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 15px 8px 13px;
    border: 1px solid rgba(244, 168, 91, 0.4);
    border-radius: 999px;
    background: rgba(224, 135, 58, 0.1);
    backdrop-filter: blur(8px);
    color: var(--pt-accent-hi);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.dlx-badge-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--pt-accent);
    box-shadow: 0 0 12px var(--pt-accent);
    animation: dlx-pulse 1.5s ease-in-out infinite;
}
@keyframes dlx-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.35; transform: scale(0.75); }
}

.dlx-title {
    font-family: OutfitBold, 'Century Gothic', sans-serif;
    font-size: clamp(3rem, 9vw, 7rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 18px;
    text-shadow: 0 8px 50px rgba(0, 0, 0, 0.7), 0 0 34px rgba(224, 135, 58, 0.35);
}

.dlx-sub {
    max-width: 600px;
    font-size: 1.16rem;
    line-height: 1.6;
    color: #dcd5ca;
    margin-bottom: 24px;
}

/* Spec chips */
.dlx-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.dlx-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--pt-line);
    color: var(--pt-text);
    font-size: 0.85rem;
    backdrop-filter: blur(6px);
}
.dlx-chip i { color: var(--pt-accent-hi); font-size: 1rem; }

/* ══ BETA COUNTDOWN CARD ═══════════════════════════════════════════════════ */
.dlx-beta {
    position: relative;
    max-width: 640px;
    margin-bottom: 28px;
    padding: 22px 24px;
    border-radius: 16px;
    background: rgba(13, 15, 20, 0.72);
    backdrop-filter: blur(14px);
    overflow: hidden;
}
/* Rotating glow border */
.dlx-beta::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: conic-gradient(from var(--a, 0deg),
        rgba(224, 135, 58, 0.1), var(--pt-accent) 20%, rgba(224, 135, 58, 0.1) 45%,
        rgba(57, 208, 255, 0.5) 70%, rgba(224, 135, 58, 0.1) 90%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: dlx-rotate 6s linear infinite;
}
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes dlx-rotate { to { --a: 360deg; } }

/* Compact variant used on the front-page hero */
.dlx-beta-compact { max-width: 560px; margin-top: 26px; }

.dlx-beta-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.dlx-beta-head i {
    font-size: 1.7rem;
    color: var(--pt-accent-hi);
    text-shadow: 0 0 16px var(--pt-glow);
}
.dlx-beta-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pt-accent-hi);
    font-weight: 700;
}
.dlx-beta-date {
    display: block;
    font-family: OutfitBold, 'Century Gothic', sans-serif;
    font-size: 1.4rem;
    color: #fff;
}

.dlx-countdown { display: flex; gap: 10px; }
.dlx-cd {
    flex: 1;
    position: relative;
    text-align: center;
    padding: 14px 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--pt-line);
    overflow: hidden;
}
.dlx-cd::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background: var(--pt-accent);
    box-shadow: 0 0 10px var(--pt-glow);
}
.dlx-cd span {
    display: block;
    font-family: 'Consolas', 'Courier New', OutfitBold, monospace;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 18px rgba(224, 135, 58, 0.3);
    font-variant-numeric: tabular-nums;
}
.dlx-cd small {
    display: block;
    margin-top: 6px;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pt-dim);
}
/* subtle tick on the seconds tile */
.dlx-cd-secs span { animation: dlx-tick 1s ease-in-out infinite; }
@keyframes dlx-tick {
    0%, 100% { color: #fff; }
    50% { color: var(--pt-accent-hi); }
}

.dlx-beta-live {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: OutfitBold, 'Century Gothic', sans-serif;
    font-size: 1.15rem;
    color: #7fe08a;
}
.dlx-beta-live i { color: #4ade80; font-size: 1.4rem; }

/* ══ CTA + version line ════════════════════════════════════════════════════ */
.dlx-cta { margin-bottom: 14px; }
.pt-btn-lg { padding: 17px 36px; font-size: 1.08rem; }
.pt-btn[aria-disabled="true"] {
    opacity: 0.85;
    cursor: default;
    pointer-events: none;
    filter: saturate(0.9);
}
.dlx-meta-line { color: var(--pt-muted); font-size: 0.9rem; margin: 6px 0 0; }
.dlx-meta-line code { color: var(--pt-dim); background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px; }
.dlx-meta-line a { color: var(--pt-accent-hi); text-decoration: none; }

/* ══ BETA FEATURE CARDS ════════════════════════════════════════════════════ */
.dlx-feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
    margin-top: 30px;
}
.dlx-feat {
    position: relative;
    padding: 26px 24px;
    border-radius: 16px;
    background: var(--pt-bg2);
    border: 1px solid var(--pt-line);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.dlx-feat:hover {
    transform: translateY(-4px);
    border-color: rgba(224, 135, 58, 0.5);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(224, 135, 58, 0.25);
}
.dlx-feat-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(224, 135, 58, 0.12);
    color: var(--pt-accent-hi);
    font-size: 1.5rem;
    margin-bottom: 16px;
    box-shadow: inset 0 0 0 1px rgba(224, 135, 58, 0.2);
}
.dlx-feat h3 {
    font-family: OutfitBold, 'Century Gothic', sans-serif;
    color: #fff;
    font-size: 1.2rem;
    margin: 0 0 8px;
}
.dlx-feat p { color: var(--pt-dim); line-height: 1.6; margin: 0; }

/* ══ SYSTEM REQUIREMENTS ═══════════════════════════════════════════════════ */
.dlx-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 30px;
}
.dlx-spec {
    border: 1px solid var(--pt-line);
    border-radius: 16px;
    background: var(--pt-bg);
    padding: 24px 26px;
}
.dlx-spec-tag {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--pt-accent-hi);
    margin-bottom: 14px;
}
.dlx-spec.is-rec { border-color: rgba(224, 135, 58, 0.4); box-shadow: 0 0 0 1px rgba(224,135,58,0.15); }
.dlx-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-top: 1px solid var(--pt-line);
    font-size: 0.92rem;
}
.dlx-spec-row:first-of-type { border-top: none; }
.dlx-spec-row dt { color: var(--pt-muted); }
.dlx-spec-row dd { color: var(--pt-text); margin: 0; text-align: right; font-weight: 600; }

/* ══ OTHER GAMES / APPS ════════════════════════════════════════════════════ */
.dlx-other {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 30px;
}
.dlx-card {
    display: flex;
    gap: 16px;
    align-items: center;
    background: var(--pt-bg2);
    border: 1px solid var(--pt-line);
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.dlx-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
    color: inherit;
}
.dlx-card > img { width: 58px; height: 58px; border-radius: 12px; flex-shrink: 0; }
.dlx-card-logo { padding: 10px; background: #1b1e25; }
.dlx-card h3 { font-family: OutfitBold, 'Century Gothic', sans-serif; color: #fff; font-size: 1.15rem; margin: 0 0 3px; }
.dlx-card p { color: var(--pt-dim); font-size: 0.9rem; margin: 0 0 6px; }

/* ══ RESPONSIVE ════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
    .dlx-specs { grid-template-columns: 1fr; }
    .dlx-cd span { font-size: 2rem; }
    .dlx-hero { min-height: auto; padding-top: 100px; }
}
@media (max-width: 480px) {
    .dlx-countdown { gap: 6px; }
    .dlx-cd { padding: 10px 2px 8px; }
    .dlx-cd small { font-size: 0.58rem; }
}
