/* Premium single-app landing page — aligned with the game detail visual system */
.app-detail-page {
    --app-primary: #6d5dfc;
    --app-primary-dark: #5546e8;
    --app-accent: #20c997;
    --app-accent-dark: #159c74;
    --app-ink: #15182a;
    --app-muted: #667085;
    --app-line: #e7eaf1;
    --app-surface: #ffffff;
    --app-bg: #f5f7fb;
    --app-hero-a: #15172b;
    --app-hero-b: #28204d;
    --app-radius: 22px;
    --app-shadow: 0 18px 55px rgba(22, 28, 45, .09);
    background: var(--app-bg);
    color: var(--app-ink);
    padding-bottom: 76px;
}

.app-detail-page *,
.app-detail-page *::before,
.app-detail-page *::after { box-sizing: border-box; }

.app-detail-page .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.app-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.app-hero {
    position: relative;
    overflow: hidden;
    padding: 30px 0 36px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 12%, rgba(109,93,252,.46), transparent 34%),
        radial-gradient(circle at 84% 16%, rgba(32,201,151,.18), transparent 31%),
        linear-gradient(135deg, var(--app-hero-a), var(--app-hero-b));
}

.app-hero::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    left: -180px;
    bottom: -280px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 0 0 60px rgba(255,255,255,.018), 0 0 0 120px rgba(255,255,255,.012);
    pointer-events: none;
}

.app-breadcrumbs {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    font-size: 13px;
    color: rgba(255,255,255,.6);
}
.app-breadcrumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.app-breadcrumbs a:hover { color: #fff; }
.app-breadcrumbs > span[aria-hidden] { opacity: .38; }

.app-hero__panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 180px minmax(0,1fr) 260px;
    gap: 30px;
    align-items: center;
}

.app-hero__visual {
    width: 180px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 24px 65px rgba(0,0,0,.3);
}
.app-hero__image { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-hero__placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 64px; background: linear-gradient(135deg, #6d5dfc, #20c997); }

.app-hero__eyebrow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 13px; }
.app-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #fff;
    background: rgba(109,93,252,.28);
    border: 1px solid rgba(167,158,255,.28);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}
.app-chip--soft { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.72); }

.app-hero__content h1 { margin: 0 0 12px; color: #fff; font-size: clamp(28px, 4vw, 46px); line-height: 1.35; letter-spacing: -.4px; }
.app-hero__summary { max-width: 690px; margin: 0; color: rgba(255,255,255,.76); font-size: 15px; line-height: 2; }
.app-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.app-download-button,
.app-secondary-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 20px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.app-download-button { background: linear-gradient(135deg, var(--app-accent), #1aae83); color: #071d16; box-shadow: 0 14px 34px rgba(32,201,151,.24); }
.app-download-button:hover { color: #071d16; transform: translateY(-2px); box-shadow: 0 18px 42px rgba(32,201,151,.32); }
.app-secondary-button { color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); }
.app-secondary-button:hover { color: #fff; background: rgba(255,255,255,.11); transform: translateY(-2px); }

.app-download-card {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255,255,255,.085);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
}
.app-download-card__label { display: block; color: rgba(255,255,255,.56); font-size: 11px; font-weight: 800; margin-bottom: 4px; }
.app-download-card > strong { display: block; color: #fff; font-size: 17px; line-height: 1.6; margin-bottom: 16px; }
.app-download-card__meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 14px; }
.app-download-card__meta span { min-width: 0; padding: 9px 10px; border-radius: 11px; background: rgba(255,255,255,.065); color: #fff; font-size: 12px; font-weight: 900; overflow-wrap: anywhere; }
.app-download-card__meta small { display: block; margin-bottom: 2px; color: rgba(255,255,255,.48); font-size: 10px; font-weight: 600; }
.app-download-card > a { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 11px; color: #071d16; background: var(--app-accent); text-decoration: none; font-size: 12px; font-weight: 900; }
.app-download-card__unavailable { display: block; color: rgba(255,255,255,.56); font-size: 12px; line-height: 1.8; }

.app-quick-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 10px;
    margin: 26px 0 0;
}
.app-quick-stats > div { min-width: 0; padding: 13px 15px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); }
.app-quick-stats dt { color: rgba(255,255,255,.5); font-size: 10px; margin-bottom: 5px; }
.app-quick-stats dd { margin: 0; color: #fff; font-size: 12px; font-weight: 900; overflow-wrap: anywhere; }
.app-quick-stats dd > span { color: #ffd45a; }
.app-quick-stats dd small { display: block; margin-top: 3px; color: rgba(255,255,255,.48); font-size: 9px; font-weight: 600; }

.app-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 28px; align-items: start; padding-top: 34px; }
.app-main-column { min-width: 0; }
.app-sidebar { position: sticky; top: 100px; display: grid; gap: 18px; }

.app-content-card,
.app-spec-card,
.app-tags-card,
.app-toc,
.app-mobile-toc { background: #fff; border: 1px solid var(--app-line); box-shadow: 0 8px 30px rgba(19,25,45,.05); }

.app-content-card { border-radius: var(--app-radius); overflow: hidden; }
.app-content-card__header { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 25px 28px; border-bottom: 1px solid var(--app-line); background: linear-gradient(180deg,#fff,#fbfcff); }
.app-section-kicker { display: block; color: var(--app-primary); font-size: 12px; font-weight: 900; margin-bottom: 5px; }
.app-content-card__header p { margin: 0; color: var(--app-muted); font-size: 13px; }
.app-content-card__header time { flex: 0 0 auto; color: var(--app-muted); font-size: 11px; }

.app-article-content { padding: 30px 32px 36px; font-size: 16px; line-height: 2.05; overflow-wrap: anywhere; }
.app-article-content > :first-child { margin-top: 0; }
.app-article-content > :last-child { margin-bottom: 0; }
.app-article-content p { margin: 0 0 18px; color: #34394c; }
.app-article-content h2,
.app-article-content h3,
.app-article-content h4 { color: var(--app-ink); scroll-margin-top: 110px; }
.app-article-content h2 { position: relative; margin: 38px 0 18px; padding: 14px 18px 14px 14px; border-radius: 14px; border: 1px solid #eceafd; background: #f7f7ff; font-size: 23px; line-height: 1.6; }
.app-article-content h2::before { content: ""; position: absolute; top: 16px; right: 0; bottom: 16px; width: 4px; border-radius: 5px; background: var(--app-primary); }
.app-article-content h3 { margin: 28px 0 14px; font-size: 19px; line-height: 1.7; }
.app-article-content h4 { margin: 22px 0 12px; font-size: 17px; }
.app-article-content ul,
.app-article-content ol { margin: 12px 0 22px; padding-right: 24px; }
.app-article-content li { margin: 8px 0; color: #34394c; }
.app-article-content li::marker { color: var(--app-primary); font-weight: 900; }
.app-article-content a { color: var(--app-primary-dark); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.app-article-content blockquote { margin: 24px 0; padding: 18px 20px; border-radius: 14px; border-right: 4px solid var(--app-primary); background: #f7f7ff; color: #43485c; }
.app-article-content img { max-width: 100%; height: auto; border-radius: 16px; }
.app-article-content table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; margin: 22px 0; }
.app-article-content th,
.app-article-content td { padding: 12px 14px; border: 1px solid var(--app-line); text-align: right; white-space: nowrap; }
.app-article-content th { background: #f8f9fc; }

.app-spec-card { margin-top: 18px; padding: 24px 26px; border-radius: 20px; }
.app-spec-card__heading { margin-bottom: 17px; }
.app-spec-card__heading h2 { margin: 0; color: var(--app-ink); font-size: 20px; }
.app-spec-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0; }
.app-spec-grid > div { min-width: 0; padding: 14px; border: 1px solid var(--app-line); border-radius: 13px; background: #fafbfe; }
.app-spec-grid dt { color: var(--app-muted); font-size: 10px; margin-bottom: 5px; }
.app-spec-grid dd { margin: 0; color: var(--app-ink); font-size: 13px; font-weight: 900; overflow-wrap: anywhere; }

.app-safety-note { display: flex; align-items: flex-start; gap: 15px; margin-top: 18px; padding: 19px 21px; border: 1px solid #dceee8; background: #f4fbf8; border-radius: 18px; }
.app-safety-note__icon { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #dff6ed; color: #087a58; font-weight: 900; }
.app-safety-note strong { display: block; margin-bottom: 4px; color: #145a48; }
.app-safety-note p { margin: 0; color: #436a60; font-size: 13px; line-height: 1.9; }

.app-tags-card { margin-top: 18px; padding: 22px; border-radius: 18px; }
.app-tags-card h2 { margin: 0 0 14px; color: var(--app-ink); font-size: 16px; }
.app-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.app-tags a { padding: 7px 12px; border-radius: 999px; background: #f5f4ff; color: var(--app-primary-dark); border: 1px solid #e7e4ff; text-decoration: none; font-size: 12px; font-weight: 800; }

.app-toc { border-radius: 18px; padding: 20px; }
.app-toc__title { display: block; margin-bottom: 13px; font-size: 14px; font-weight: 900; }
.app-toc ol,
.app-mobile-toc ol { list-style: none; display: grid; gap: 4px; margin: 0; padding: 0; }
.app-toc li a,
.app-mobile-toc li a { display: block; padding: 8px 10px; border-radius: 9px; color: #4c5267; text-decoration: none; font-size: 13px; line-height: 1.65; }
.app-toc li a:hover,
.app-mobile-toc li a:hover { color: var(--app-primary-dark); background: #f4f3ff; }
.app-toc li.is-sub a,
.app-mobile-toc li.is-sub a { padding-right: 22px; color: #73798c; font-size: 12px; }

.app-sidebar-cta { padding: 22px; border-radius: 18px; color: #fff; background: linear-gradient(150deg,#16192e,#292052); box-shadow: 0 18px 45px rgba(22,24,48,.14); }
.app-sidebar-cta > span { color: #9f95ff; font-size: 11px; font-weight: 800; }
.app-sidebar-cta strong { display: block; margin: 7px 0; font-size: 16px; line-height: 1.7; }
.app-sidebar-cta p { margin: 0 0 16px; color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.8; }
.app-sidebar-cta a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 11px; color: #071d16; background: var(--app-accent); text-decoration: none; font-size: 13px; font-weight: 900; }

.app-related { margin-top: 32px; }
.app-related__heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.app-related__heading h2 { margin: 0; color: var(--app-ink); font-size: 23px; }
.app-related__heading > a { color: var(--app-primary-dark); font-size: 13px; font-weight: 800; text-decoration: none; }
.app-related__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.app-related-card { min-width: 0; display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 17px; background: #fff; border: 1px solid var(--app-line); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.app-related-card:hover { transform: translateY(-2px); border-color: #d9d5ff; box-shadow: var(--app-shadow); }
.app-related-card__media { flex: 0 0 78px; width: 78px; height: 78px; overflow: hidden; border-radius: 15px; background: #f2f3f7; }
.app-related-card__media img { width: 100%; height: 100%; object-fit: cover; }
.app-related-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 28px; }
.app-related-card__body { min-width: 0; }
.app-related-card__body > strong { display: block; margin-bottom: 9px; color: var(--app-ink); font-size: 14px; line-height: 1.65; }
.app-related-card__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.app-related-card__meta em { padding: 4px 8px; border-radius: 999px; color: #675400; background: #fff7d7; font-size: 10px; font-style: normal; font-weight: 800; }

.app-mobile-toc { display: none; margin-bottom: 16px; padding: 15px 17px; border-radius: 16px; }
.app-mobile-toc summary { cursor: pointer; font-weight: 900; }
.app-mobile-toc[open] summary { margin-bottom: 12px; }
.app-mobile-action { display: none; }

@media (max-width: 1040px) {
    .app-hero__panel { grid-template-columns: 150px minmax(0,1fr); }
    .app-hero__visual { width: 150px; }
    .app-download-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 14px; }
    .app-download-card__label { grid-column: 1; }
    .app-download-card > strong { grid-column: 1; margin: -10px 0 0; }
    .app-download-card__meta { grid-row: 1 / span 2; grid-column: 2; min-width: 180px; margin: 0; }
    .app-download-card > a,
    .app-download-card__unavailable { grid-row: 1 / span 2; grid-column: 3; min-width: 150px; }
    .app-layout { grid-template-columns: minmax(0,1fr) 250px; gap: 20px; }
    .app-quick-stats { grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); }
}

@media (max-width: 820px) {
    .app-shell { width: min(100% - 28px, 760px); }
    .app-hero { padding-top: 20px; padding-bottom: 30px; }
    .app-hero__panel { grid-template-columns: 100px minmax(0,1fr); gap: 18px; }
    .app-hero__visual { width: 100px; border-radius: 22px; }
    .app-hero__content h1 { font-size: 28px; }
    .app-hero__summary { font-size: 14px; line-height: 1.9; }
    .app-download-card { grid-template-columns: 1fr; gap: 10px; }
    .app-download-card__label,
    .app-download-card > strong,
    .app-download-card__meta,
    .app-download-card > a,
    .app-download-card__unavailable { grid-column: auto; grid-row: auto; margin: 0; min-width: 0; }
    .app-download-card__meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .app-layout { grid-template-columns: 1fr; padding-top: 22px; }
    .app-sidebar { display: none; }
    .app-mobile-toc { display: block; }
    .app-spec-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .app-mobile-action { position: fixed; z-index: 999; right: 12px; left: 12px; bottom: 12px; display: block; padding: 6px; border-radius: 16px; background: rgba(20,22,40,.91); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 14px 36px rgba(12,14,30,.3); }
    .app-mobile-action a { min-height: 48px; display: flex; align-items: center; justify-content: center; padding: 9px 14px; border-radius: 11px; background: var(--app-accent); color: #071d16; text-decoration: none; text-align: center; font-size: 13px; font-weight: 900; }
}

@media (max-width: 560px) {
    .app-shell { width: calc(100% - 22px); }
    .app-breadcrumbs { margin-bottom: 18px; font-size: 11px; }
    .app-hero__panel { grid-template-columns: 78px minmax(0,1fr); gap: 13px; align-items: start; }
    .app-hero__visual { width: 78px; border-radius: 17px; }
    .app-hero__eyebrow { margin-bottom: 7px; }
    .app-chip { min-height: 26px; padding: 4px 8px; font-size: 10px; }
    .app-chip--soft { display: none; }
    .app-hero__content h1 { margin-bottom: 7px; font-size: 21px; line-height: 1.55; }
    .app-hero__summary { display: none; }
    .app-hero__actions { grid-column: 1 / -1; width: calc(100vw - 22px); margin-right: calc(-78px - 13px); margin-top: 15px; }
    .app-download-button,
    .app-secondary-button { flex: 1 1 150px; min-height: 44px; padding: 9px 12px; font-size: 12px; }
    .app-download-card { grid-column: 1 / -1; padding: 15px; border-radius: 17px; }
    .app-download-card__meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .app-quick-stats { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 16px; }
    .app-quick-stats > div { padding: 11px; }
    .app-content-card__header { align-items: start; padding: 20px; }
    .app-content-card__header time { display: none; }
    .app-article-content { padding: 22px 19px 27px; font-size: 15px; line-height: 2; }
    .app-article-content h2 { margin-top: 30px; padding: 12px 14px; font-size: 19px; }
    .app-article-content h3 { font-size: 17px; }
    .app-spec-card { padding: 20px 18px; }
    .app-spec-grid { grid-template-columns: 1fr 1fr; }
    .app-related__grid { grid-template-columns: 1fr; }
    .app-related__heading { align-items: center; }
    .app-related__heading h2 { font-size: 20px; }
    .app-safety-note { gap: 12px; padding: 16px; }
    .app-safety-note__icon { flex-basis: 40px; width: 40px; height: 40px; }
}

@media (max-width: 390px) {
    .app-spec-grid { grid-template-columns: 1fr; }
    .app-quick-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .app-detail-page * { scroll-behavior: auto !important; transition: none !important; }
}
