/* Chaos Ape Studios - Design System & Custom Styles */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800;900&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
    --bg-dark: #08090c;
    --bg-surface: #101219;
    --bg-surface-hover: #171a25;
    --primary-cyan: #00d2ff;
    --primary-pink: #ff007f;
    --primary-cyan-rgb: 0, 210, 255;
    --primary-pink-rgb: 255, 0, 127;
    --text-white: #f8fafc;
    --text-muted: #cbd5e1;
    --border-color: #1f2937;
    --border-glow-cyan: rgba(0, 210, 255, 0.2);
    --border-glow-pink: rgba(255, 0, 127, 0.2);
    
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Grotesk', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* Base Reset & Typography */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

.text-muted {
    color: var(--text-muted) !important;
}

a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-pink);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-cyan);
}

/* Navbar / Header Styling */
.header-glass {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(8, 9, 12, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    color: var(--text-white) !important;
}

.navbar-brand img {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.3));
    transition: var(--transition-smooth);
}

.navbar-brand:hover img {
    transform: rotate(5deg) scale(1.05);
    filter: drop-shadow(0 0 12px rgba(255, 0, 127, 0.5));
}

.nav-link {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted) !important;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-pink));
    transform: scaleX(0);
    transition: var(--transition-smooth);
    transform-origin: bottom center;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

/* Social Links Header */
.social-links-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.social-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-icon-btn.fb:hover {
    color: var(--primary-cyan);
    background-color: rgba(0, 210, 255, 0.05);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
    transform: translateY(-2px);
}

.social-icon-btn.ig:hover {
    color: var(--primary-pink);
    background-color: rgba(255, 0, 127, 0.05);
    border-color: var(--primary-pink);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.2);
    transform: translateY(-2px);
}

/* Mobile Toggle Hamburger */
.navbar-toggler {
    border: none !important;
    padding: 0.25rem;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon-custom {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-white);
    position: relative;
    transition: var(--transition-smooth);
}

.navbar-toggler-icon-custom::before, .navbar-toggler-icon-custom::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-white);
    left: 0;
    transition: var(--transition-smooth);
}

.navbar-toggler-icon-custom::before {
    top: -8px;
}

.navbar-toggler-icon-custom::after {
    bottom: -8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Main Layout Setup */
.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-body {
    flex: 1 0 auto;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.brand-logo {
    width: auto;
}

.brand-logo-header {
    height: 90px;
}

.brand-logo-footer {
    height: 36px;
}

/* Footer Styling */
.footer-custom {
    flex-shrink: 0;
    background-color: #0b0c10;
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    font-size: 0.95rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 32px;
}

.footer-heading {
    font-family: var(--font-headings);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-pink));
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-white);
    padding-left: 4px;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-credit {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

.footer-credit a {
    color: var(--primary-cyan);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
    text-transform: uppercase;
}

/* Utility Components: Buttons */
.btn-cyber {
    position: relative;
    font-family: var(--font-mono);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    border: none;
    z-index: 1;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.btn-cyber-primary {
    background: linear-gradient(135deg, var(--primary-cyan), #009bbd);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.25);
}

.btn-cyber-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.5);
    color: #000;
}

.btn-cyber-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-cyber-secondary:hover {
    border-color: var(--primary-pink);
    color: var(--text-white);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.2);
    transform: translateY(-2px);
}

.game-theme-cyan .btn-cyber-secondary:hover,
.game-theme-cyan .btn-cyber-secondary:focus-visible {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.22);
}

.game-theme-pink .btn-cyber-secondary:hover,
.game-theme-pink .btn-cyber-secondary:focus-visible {
    border-color: var(--primary-pink);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.2);
}

.btn-cyber-pink {
    background: linear-gradient(135deg, var(--primary-pink), #cc0066);
    color: var(--text-white);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.25);
}

.btn-cyber-pink:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.5);
    color: var(--text-white);
}

.btn-apk {
    background: linear-gradient(90deg, #f05a28, #e80a89);
    color: var(--text-white) !important;
    font-family: var(--font-headings);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(232, 10, 137, 0.35);
    transition: var(--transition-smooth);
    display: inline-block;
    text-decoration: none;
}

.btn-apk:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(232, 10, 137, 0.65);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Google Play Install Button */
.btn-google-play {
    background: transparent;
    border: 0;
    border-radius: 0;
    display: inline-flex;
    flex: 0 0 auto;
    padding: 0;
    text-decoration: none;
    width: fit-content;
}

.btn-google-play:hover {
    background: transparent;
    border: 0;
}

.btn-google-play-badge {
    display: block;
    max-width: 100%;
    width: 220px;
    height: auto;
}

.detail-platform-attribution {
    color: rgba(255, 255, 255, 0.58);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    line-height: 1.5;
    margin-top: 0.85rem;
}

/* Hero Logo Image Styling */
.hero-image-wrapper {
    display: inline-block;
    position: relative;
    padding: 1rem;
    transition: var(--transition-smooth);
}

.hero-section {
    min-height: 85vh;
    background: radial-gradient(circle at 50% 30%, rgba(var(--primary-cyan-rgb), 0.08) 0%, rgba(0, 0, 0, 0) 70%);
}

.hero-logo-img {
    max-width: 480px;
    filter: drop-shadow(0 0 25px rgba(0, 210, 255, 0.3));
    transition: var(--transition-smooth);
}

.hero-logo-img:hover {
    transform: scale(1.04) translateY(-8px);
    filter: drop-shadow(0 0 35px rgba(0, 210, 255, 0.6)) !important;
}

.hero-copy,
.section-intro {
    max-width: 650px;
}

.hero-copy {
    font-size: 1.25rem;
}

/* Card Styling */
.cyber-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    height: 100%;
    position: relative;
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-pink));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
    z-index: 2;
}

.cyber-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(var(--primary-cyan-rgb), 0.05);
}

.cyber-card:hover::before {
    transform: scaleX(1);
}

.cyber-card-img {
    aspect-ratio: 1024 / 500;
    overflow: hidden;
    position: relative;
}

.cyber-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.cyber-card:hover .cyber-card-img img {
    transform: scale(1.06);
}

.cyber-card-body {
    padding: 1.5rem;
}

.cyber-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.game-card-subtitle {
    color: var(--text-white);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.7rem;
    opacity: 0.82;
    text-transform: uppercase;
}

.cyber-card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

/* Section Header Styling */
.section-header {
    margin-bottom: 3.5rem;
}

.games-page-header {
    margin-bottom: 2.4rem;
}

.games-page-header .section-title {
    margin-bottom: 0.45rem;
}

.games-page-header .section-intro {
    margin-top: 0.75rem !important;
    max-width: 42rem;
}

.section-subtitle {
    font-family: var(--font-mono);
    color: var(--primary-cyan);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
}

.section-divider {
    border-top: 1px solid var(--border-color);
}

.section-tinted {
    background: rgba(255, 255, 255, 0.01);
}

.section-tinted-soft {
    background: rgba(255, 255, 255, 0.005);
}

.section-heading-strong {
    font-weight: 800;
}

.section-heading-medium {
    font-weight: 700;
}

.featured-poster-frame {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    aspect-ratio: 1024 / 500;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
}

.featured-poster {
    object-fit: cover;
    height: 100%;
}

.feature-tag {
    background-color: rgba(240, 90, 40, 0.1);
    color: #f7b24b;
    border: 1px solid rgba(255, 204, 0, 0.5);
}

.icon-bullet {
    color: var(--primary-pink);
    font-size: 1.1rem;
    line-height: 1;
}

.subtle-top-border {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.platform-meta {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.platform-icon {
    color: #ffcc00;
}

.card-icon {
    color: var(--text-white);
    font-size: 2rem;
}

.card-icon-cyan {
    color: var(--primary-cyan);
}

.card-icon-pink {
    color: var(--primary-pink);
}

.news-meta {
    font-size: 0.85rem;
}

.news-link {
    font-weight: 600;
}

.elevated-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.data-badge {
    background-color: rgba(8, 9, 12, 0.85);
    border: 1px solid currentColor;
    bottom: 12px;
    right: 12px;
    z-index: 10;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.75rem;
}

.game-card-body {
    min-height: 320px;
}

.article-card-body {
    min-height: 240px;
}

.article-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.article-card-copy {
    font-size: 0.9rem;
    line-height: 1.5;
}

.article-card-footer {
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.compact-meta-label {
    font-size: 0.85rem;
}

.compact-list {
    font-size: 0.9rem;
}

.games-platform-filter {
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    display: inline-flex;
    gap: 0.7rem;
    min-height: 46px;
    padding: 0.45rem 0.8rem 0.45rem 1rem;
}

.games-platform-filter-label {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

.games-platform-select {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--text-white);
    cursor: pointer;
    font-family: var(--font-headings);
    font-size: 0.9rem;
    outline: none;
    padding-right: 0.2rem;
}

.games-platform-select option {
    background: var(--bg-surface);
    color: var(--text-white);
}

.platform-pill {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    font-size: 0.7rem;
}

.detail-header {
    margin-bottom: 2.5rem;
}

.detail-hero-row {
    margin-bottom: 0.5rem;
}

.detail-title {
    margin-bottom: 1rem;
}

.detail-excerpt {
    max-width: 760px;
}

.detail-backlink {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.detail-status-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    top: auto;
    left: auto;
}

.detail-status-badge,
.detail-inline-status {
    --status-color: var(--text-muted);
    --status-border: rgba(255, 255, 255, 0.12);
    --status-bg: rgba(255, 255, 255, 0.05);
    background: var(--status-bg);
    border-color: var(--status-border);
    color: var(--status-color);
}

.status-testing {
    --status-color: #ffd166;
    --status-border: rgba(255, 209, 102, 0.42);
    --status-bg: rgba(255, 209, 102, 0.12);
}

.status-live {
    --status-color: #55e6a5;
    --status-border: rgba(85, 230, 165, 0.42);
    --status-bg: rgba(85, 230, 165, 0.12);
}

.status-development {
    --status-color: #7ce8ff;
    --status-border: rgba(124, 232, 255, 0.42);
    --status-bg: rgba(124, 232, 255, 0.12);
}

.status-archived {
    --status-color: #a8b1bf;
    --status-border: rgba(168, 177, 191, 0.35);
    --status-bg: rgba(168, 177, 191, 0.1);
}

.status-default {
    --status-color: var(--text-muted);
    --status-border: rgba(255, 255, 255, 0.14);
    --status-bg: rgba(255, 255, 255, 0.05);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.detail-content-grid {
    margin-top: 0;
}

.detail-side-panel {
    padding: 1.5rem;
}

.detail-tagline {
    color: var(--primary-pink);
    font-family: var(--font-headings);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.detail-support-copy {
    color: var(--text-white);
    font-size: 1.05rem;
    max-width: 720px;
}

.detail-hero-cta {
    align-items: flex-start;
    display: flex;
}

.detail-hero-play-button {
    min-width: 220px;
}

.detail-stats-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.detail-stat-chip {
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    display: inline-flex;
    gap: 0.55rem;
    min-height: 2.5rem;
    padding: 0.5rem 0.8rem;
}

.detail-stat-glyph {
    align-items: center;
    background: linear-gradient(135deg, rgba(var(--primary-cyan-rgb), 0.2), rgba(var(--primary-pink-rgb), 0.2));
    border: 1px solid rgba(var(--primary-cyan-rgb), 0.24);
    border-radius: 999px;
    color: var(--primary-cyan);
    display: inline-flex;
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0.08em;
    min-width: 3.6rem;
    padding: 0.32rem 0.42rem;
    text-transform: uppercase;
}

.detail-stat-text {
    color: var(--text-white);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
}

.detail-personality-line {
    color: rgba(203, 213, 225, 0.78);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-top: 0.95rem;
    max-width: 44rem;
}

.detail-hero-media {
    position: relative;
}

.detail-hero-artwork {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.detail-hero-artwork .featured-poster {
    max-height: none;
}

.detail-hero-art-image {
    aspect-ratio: 1024 / 500;
}

.detail-info-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0)),
        var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.detail-info-header {
    margin-bottom: 1.25rem;
}

.detail-info-header h2,
.detail-screenshot-panel h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.detail-facts-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 1.5rem;
}

.detail-facts-grid-compact {
    margin-bottom: 0.9rem;
}

.detail-fact-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    min-height: 86px;
    padding: 1rem 1rem 0.9rem;
}

.detail-fact-label {
    color: var(--primary-cyan);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.detail-fact-value {
    color: var(--text-white);
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.45;
}

.detail-description-panel {
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.35rem;
}

.detail-description-panel p {
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.65;
    max-width: 42rem;
    margin: 0;
}

.detail-screenshot-panel {
    padding: 1.5rem;
    overflow: visible;
}

.detail-panel-subtitle {
    margin-bottom: 0.35rem;
}

.detail-screenshot-hint {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-screenshot-rail {
    cursor: grab;
    display: grid;
    gap: 1rem;
    grid-auto-columns: minmax(220px, 240px);
    grid-auto-flow: column;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-top: 0.25rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.detail-screenshot-rail.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.detail-screenshot-rail.is-dragging .detail-screenshot-image {
    pointer-events: none;
}

.detail-screenshot-card {
    scroll-snap-align: start;
}

.detail-media-card {
    position: relative;
}

.detail-media-surface-trigger {
    background: transparent;
    border: 0;
    cursor: zoom-in;
    inset: 0 0 64px 0;
    padding: 0;
    position: absolute;
    z-index: 1;
}

.detail-media-expand-button {
    align-items: center;
    background: rgba(7, 10, 16, 0.88);
    border: 1px solid rgba(var(--primary-cyan-rgb), 0.28);
    border-radius: 999px;
    color: var(--text-white);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    padding: 0.45rem 0.75rem;
    position: absolute;
    text-transform: uppercase;
    z-index: 2;
}

.detail-media-expand-button {
    right: 0.85rem;
    top: 0.85rem;
}

.detail-media-expand-button:hover,
.detail-media-expand-button:focus-visible {
    border-color: rgba(var(--primary-cyan-rgb), 0.5);
    box-shadow: 0 0 0 1px rgba(var(--primary-cyan-rgb), 0.18), 0 10px 24px rgba(0, 0, 0, 0.35);
    outline: none;
}

.detail-screenshot-trigger {
    background: transparent;
    border: 0;
    display: block;
    padding: 0;
    width: 100%;
}

.detail-screenshot-image {
    aspect-ratio: 9 / 16;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    display: block;
    height: auto;
    width: 100%;
    object-fit: cover;
}

.detail-media-video {
    background:
        linear-gradient(180deg, rgba(var(--primary-cyan-rgb), 0.06), rgba(var(--primary-pink-rgb), 0.08)),
        rgba(255, 255, 255, 0.03);
}

.detail-screenshot-trigger:hover .detail-screenshot-image,
.detail-screenshot-trigger:focus-visible .detail-screenshot-image {
    border-color: rgba(var(--primary-cyan-rgb), 0.5);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(var(--primary-cyan-rgb), 0.3);
    transform: translateY(-2px);
}

.detail-screenshot-trigger:focus-visible {
    outline: none;
}

.detail-lightbox[hidden] {
    display: none !important;
}

.detail-lightbox {
    inset: 0;
    position: fixed;
    z-index: 1100;
}

.detail-lightbox-backdrop {
    background: rgba(4, 6, 10, 0.88);
    inset: 0;
    position: absolute;
}

.detail-lightbox-dialog {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.detail-lightbox-image {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
    max-height: calc(100vh - 4rem);
    max-width: min(92vw, 560px);
    object-fit: contain;
    width: auto;
}

.detail-lightbox-video {
    background: #05070c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
    max-height: calc(100vh - 4rem);
    max-width: min(92vw, 960px);
    width: min(92vw, 960px);
}

.detail-lightbox-close {
    align-items: center;
    background: rgba(8, 9, 12, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: var(--text-white);
    cursor: pointer;
    display: inline-flex;
    font-size: 2rem;
    height: 48px;
    justify-content: center;
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 48px;
}

.detail-release-notes-button {
    width: 100%;
}

.detail-hero-cta {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.detail-hero-cta > a {
    flex: 1 1 15rem;
    min-height: 64px;
}

.detail-hero-cta > a.btn-google-play {
    flex: 0 0 auto;
    min-height: 0;
}

.detail-hero-release-notes-button {
    align-items: center;
    display: inline-flex;
    flex: 0 1 auto;
    min-height: 71px;
    padding-bottom: 0.9rem;
    padding-top: 0.9rem;
    width: auto;
}

.detail-hero-play-button {
    min-height: 64px;
}

.detail-hero-play-button.btn-google-play {
    min-width: 0;
}

.detail-hero-cta > a.detail-hero-release-notes-button {
    flex: 0 1 auto;
    min-height: 71px;
}

.detail-release-notes-button-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
}

.detail-release-notes-button-title {
    display: block;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.detail-release-notes-button-subtitle {
    color: var(--text-muted);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    margin-top: 0.28rem;
    text-transform: uppercase;
}

.detail-inline-status {
    border: 1px solid var(--status-border);
    border-radius: 999px;
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.32rem 0.62rem;
    text-transform: uppercase;
}

.release-notes-page {
    overflow: hidden;
    padding-bottom: 5rem;
    padding-top: 4rem;
    position: relative;
}

.release-notes-page::before,
.release-notes-page::after {
    content: none;
}

.release-notes-page-shell {
    margin: 0 auto;
    max-width: 980px;
    position: relative;
    z-index: 1;
}

.release-notes-page-backlink {
    display: inline-flex;
    margin-bottom: 1.25rem;
}

.release-notes-page-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.6rem;
    padding-bottom: 1.25rem;
}

.release-notes-page-title {
    margin-top: 0.25rem;
}

.release-notes-page-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    padding: 0;
}

.release-notes-page-embed-wrap {
    border: 0;
    border-radius: 0;
    height: auto;
    overflow: visible;
}

.release-notes-page-embed {
    background: transparent;
    height: auto;
    min-height: 16rem;
    overflow: visible;
    padding-right: 0;
}

.release-notes-page-content {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.detail-release-notes-modal[hidden] {
    display: none !important;
}

.detail-release-notes-modal {
    inset: 0;
    position: fixed;
    z-index: 1100;
}

.detail-release-notes-backdrop {
    background: rgba(4, 6, 10, 0.88);
    inset: 0;
    position: absolute;
}

.detail-release-notes-dialog {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
    inset: 2rem;
    margin: auto;
    max-height: calc(100vh - 4rem);
    max-width: min(92vw, 920px);
    overflow: hidden;
    padding: 1.5rem 1.5rem 1.25rem;
    position: absolute;
}

.detail-release-notes-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    padding-right: 3.5rem;
}

.detail-release-notes-game-intro {
    margin-top: 0.9rem;
    max-width: 42rem;
}

.detail-release-notes-game-title {
    color: var(--primary-cyan);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0 0 0.55rem;
    text-transform: uppercase;
}

.detail-release-notes-game-summary {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

.detail-release-notes-version {
    background: rgba(var(--primary-cyan-rgb), 0.12);
    border: 1px solid rgba(var(--primary-cyan-rgb), 0.3);
    border-radius: 999px;
    color: var(--primary-cyan);
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    margin-top: 0.9rem;
    padding: 0.35rem 0.7rem;
    text-transform: uppercase;
}

.detail-release-notes-content {
    max-height: calc(100vh - 12rem);
    overflow-y: auto;
    padding-right: 0.35rem;
}

.detail-release-notes-embed-wrap {
    height: calc(100vh - 12rem);
    overflow: hidden;
}

.detail-release-notes-embed {
    background: transparent;
    display: block;
    height: 100%;
    overflow: auto;
    padding-right: 0.35rem;
    width: 100%;
}

.detail-release-notes-loading {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    font-size: 0.95rem;
    height: 100%;
    justify-content: center;
    min-height: 18rem;
    padding: 2rem;
    text-align: center;
}

.detail-release-notes-content h1 {
    display: none;
}

.detail-release-notes-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    margin-top: 1.7rem;
}

.detail-release-notes-content h3 {
    font-size: 1.08rem;
    margin-bottom: 0.6rem;
    margin-top: 1.2rem;
}

.detail-release-notes-content p,
.detail-release-notes-content li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.detail-release-notes-content strong {
    color: var(--text-white);
    font-weight: 600;
}

.detail-release-notes-content hr {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 1.4rem 0;
    opacity: 1;
}

.detail-release-notes-content code {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: var(--primary-cyan);
    font-family: var(--font-mono);
    font-size: 0.88em;
    padding: 0.12rem 0.32rem;
}

@media (max-width: 767.98px) {
    .release-notes-page {
        padding-bottom: 3.5rem;
        padding-top: 2.75rem;
    }

    .detail-hero-cta {
        align-items: stretch;
    }

    .detail-hero-cta > a {
        flex-basis: 100%;
    }

    .detail-stats-strip {
        display: grid;
        grid-template-columns: 1fr;
    }

    .detail-stat-chip {
        width: 100%;
    }

    .release-notes-page-panel {
        padding: 0;
    }

    .detail-release-notes-game-title {
        font-size: 1.6rem;
    }

    .detail-release-notes-game-summary {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .release-notes-structured-panel {
        border-radius: 22px;
        padding: 1rem;
    }

    .release-notes-accordion .accordion-button {
        grid-template-columns: 1fr;
        padding: 1.1rem 1rem;
    }

    .release-notes-version-meta {
        align-items: flex-start;
        gap: 0.55rem;
        padding-right: 0;
    }

    .release-notes-version-teaser {
        max-width: none;
    }

    .release-notes-accordion .accordion-body {
        padding: 1rem;
    }

    .release-notes-section-header,
    .release-notes-section-body {
        padding-left: 0.95rem;
        padding-right: 0.95rem;
    }

    .release-notes-stage-grid,
    .release-notes-skin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .release-notes-feature-block {
        padding: 1rem;
    }
}

.release-notes-page-panel .detail-release-notes-embed-wrap {
    border: 0;
    border-radius: 0;
    height: auto;
    overflow: visible;
}

.release-notes-page-panel .detail-release-notes-embed {
    background: transparent;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-right: 0;
}

.release-notes-page-panel .detail-release-notes-content {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.release-notes-structured-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: hidden;
    padding: 0;
}

.release-notes-overview {
    background: transparent;
    margin-bottom: 1.25rem;
    padding: 0 0 1rem;
}

.release-notes-overview-prose p:last-child {
    margin-bottom: 0;
}

.release-notes-accordion {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

.release-notes-version-card {
    background: linear-gradient(180deg, rgba(16, 21, 30, 0.96), rgba(11, 15, 22, 0.96)) !important;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-top-color: transparent;
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px rgba(0, 0, 0, 0.22);
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
}

.release-notes-version-card::before {
    background: linear-gradient(
        90deg,
        rgba(var(--release-accent-rgb), 0) 0%,
        rgba(var(--release-accent-rgb), 0.82) 7%,
        rgba(var(--release-accent-secondary-rgb), 0.82) 93%,
        rgba(var(--release-accent-secondary-rgb), 0) 100%
    );
    border-radius: 24px 24px 0 0;
    content: "";
    height: 1px;
    left: 0.85rem;
    position: absolute;
    right: 0.85rem;
    top: 0;
    z-index: 1;
}

.release-notes-version-card:last-child {
    margin-bottom: 0;
}

.release-notes-accordion .release-notes-version-card:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.release-notes-version-card-latest {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 38px rgba(0, 0, 0, 0.26);
}

.release-notes-accordion .accordion-button {
    align-items: start;
    background: transparent;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "headline meta"
        "teaser teaser";
    padding: 2.35rem 1rem 1rem 1.35rem;
    position: relative;
}

.release-notes-accordion .accordion-button:not(.collapsed) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.release-notes-accordion .accordion-button::after {
    left: 50%;
    margin-left: 0;
    position: absolute;
    top: 0.95rem;
    transform: translateX(-50%);
}

.release-notes-accordion .accordion-button:not(.collapsed)::after {
    transform: translateX(-50%) rotate(-180deg);
}

.release-notes-accordion .accordion-body {
    background: transparent;
    padding: 1.2rem 1.35rem 1.4rem;
}

.release-notes-version-headline {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    grid-area: headline;
    min-width: 0;
}

.release-notes-version-headline .detail-release-notes-version {
    align-self: flex-start;
    margin-top: 0;
}

.release-notes-version-title {
    color: var(--text-white);
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.release-notes-version-teaser {
    color: rgba(224, 229, 241, 0.78);
    display: -webkit-box;
    font-size: 0.94rem;
    grid-area: teaser;
    line-height: 1.55;
    margin-top: -0.15rem;
    max-width: none;
    overflow: hidden;
    text-wrap: pretty;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.release-notes-version-meta {
    align-items: flex-end;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    grid-area: meta;
    padding-right: 0.35rem;
    transform: translateY(-0.32rem);
}

.release-notes-status-pill {
    background: rgba(116, 219, 123, 0.08);
    border: 1px solid rgba(116, 219, 123, 0.18);
    border-radius: 999px;
    color: #9fe3a6;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.42rem 0.72rem;
    text-align: center;
}

.release-notes-date-label {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.release-notes-version-summary {
    margin-bottom: 1rem;
}

.release-notes-version-summary > *:last-child {
    margin-bottom: 0;
}

.release-notes-section-grid {
    display: grid;
    gap: 1.35rem;
}

.release-notes-section-card {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.3rem;
}

.release-notes-section-header {
    align-items: center;
    display: flex;
    margin-bottom: 0.7rem;
    padding: 0;
}

.release-notes-section-accent {
    display: none;
}

.release-notes-section-title {
    color: var(--primary-cyan);
    font-family: var(--font-display);
    font-size: 1.32rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
}

.release-notes-section-body {
    padding: 0;
}

.release-notes-section-body > *:last-child {
    margin-bottom: 0;
}

.release-notes-section-body ul,
.release-notes-version-summary ul {
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.release-notes-section-body li + li,
.release-notes-version-summary li + li {
    margin-top: 0.65rem;
}

.release-notes-section-body li,
.release-notes-version-summary li {
    padding-left: 1.4rem;
    position: relative;
}

.release-notes-section-body li::before,
.release-notes-version-summary li::before {
    color: var(--primary-pink);
    content: "✦";
    font-size: 0.72rem;
    left: 0;
    line-height: 1;
    position: absolute;
    top: 0.45rem;
}

.release-notes-feature-block {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    margin-top: 1rem;
    padding: 1.2rem;
}

.release-notes-feature-label {
    color: #8e96b4;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.release-notes-stage-grid,
.release-notes-skin-grid {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.release-notes-stage-card,
.release-notes-skin-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    min-width: 0;
    padding: 0.8rem;
}

.release-notes-stage-swatch {
    border-radius: 8px;
    height: 2.5rem;
    margin-bottom: 0.7rem;
    width: 100%;
}

.release-notes-stage-swatch--dawn {
    background: linear-gradient(90deg, #ffb18e, #9fe7f0);
}

.release-notes-stage-swatch--day {
    background: linear-gradient(90deg, #39b8ff, #d9f3ff);
}

.release-notes-stage-swatch--goldenhour {
    background: linear-gradient(90deg, #ffb13c, #f35f1c);
}

.release-notes-stage-swatch--sunset {
    background: linear-gradient(90deg, #5b56df, #ff498f);
}

.release-notes-stage-swatch--nightl1 {
    background: linear-gradient(90deg, #2d3fb6, #040611);
}

.release-notes-stage-swatch--nightl2 {
    background: linear-gradient(90deg, #6126d7, #2e004f);
}

.release-notes-stage-swatch--nightl3 {
    background: linear-gradient(90deg, #0c7466, #060a26);
}

.release-notes-stage-swatch--nightl4,
.release-notes-stage-swatch--cosmic-legend {
    background: linear-gradient(90deg, #120312, #3b004f);
}

.release-notes-stage-name,
.release-notes-skin-name {
    color: var(--text-white);
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.35rem;
}

.release-notes-stage-meta {
    color: var(--primary-cyan);
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
}

.release-notes-stage-description,
.release-notes-skin-description {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.45;
    margin: 0;
}

.release-notes-skin-topline {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    margin-bottom: 0.55rem;
}

.release-notes-skin-rarity {
    border: 1px solid currentColor;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.28rem 0.5rem;
    text-transform: uppercase;
}

.release-notes-skin-card--uncommon .release-notes-skin-rarity {
    color: #7be8a8;
}

.release-notes-skin-card--rare .release-notes-skin-rarity {
    color: #66c7ff;
}

.release-notes-skin-card--epic .release-notes-skin-rarity {
    color: #d78bff;
}

.release-notes-skin-card--legendary .release-notes-skin-rarity {
    color: #ffce67;
}

.release-notes-skin-card--secret .release-notes-skin-rarity {
    color: #ff7fb7;
}

.lightbox-open {
    overflow: hidden;
}

.detail-feature-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.45;
}

.detail-feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    margin-top: 0;
    padding: 0.95rem 1rem 1rem;
}

.detail-feature-columns {
    column-gap: 1.4rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.55rem;
}

.detail-feature-columns .detail-feature-column {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.detail-feature-columns .detail-feature-column li {
    align-items: flex-start;
    display: flex;
    gap: 0.45rem;
    list-style: none;
    line-height: 1.45;
    margin: 0;
}

.detail-feature-columns .detail-feature-column li::marker {
    content: "";
}

.detail-feature-bullet {
    color: var(--primary-pink);
    flex: 0 0 auto;
    line-height: 1.45;
    margin-top: 0.02rem;
}

.detail-feature-list li + li {
    margin-top: 0.28rem;
}

.detail-prose p,
.detail-prose li {
    color: var(--text-muted);
}

.detail-prose h2,
.detail-prose h3 {
    margin-top: 1.8rem;
    margin-bottom: 0.9rem;
}

.detail-prose p + p,
.detail-prose ul + p,
.detail-prose p + ul {
    margin-top: 1rem;
}

.detail-prose ul,
.detail-prose ol {
    padding-left: 1.25rem;
}

.news-related-actions {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.surface-panel.detail-prose {
    padding: 1.5rem;
}

@media (max-width: 767px) {
    .surface-panel.detail-prose {
        padding: 1.1rem;
    }
}

@media (max-width: 768px) {
    .detail-release-notes-dialog {
        inset: 1rem;
        max-height: calc(100vh - 2rem);
        padding: 1.15rem 1rem 1rem;
    }

    .detail-release-notes-content {
        max-height: calc(100vh - 10.5rem);
    }

    .detail-release-notes-frame-wrap {
        height: calc(100vh - 10.5rem);
    }
}

.legal-page .detail-prose {
    max-width: 900px;
}

/* Form Styling */
.form-cyber-group {
    margin-bottom: 1.5rem;
}

.form-cyber-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.form-cyber-input {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    color: var(--text-white) !important;
    padding: 0.75rem 1rem !important;
    transition: var(--transition-smooth) !important;
}

.form-cyber-input:focus {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--primary-cyan) !important;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.25) !important;
    outline: none !important;
}

.surface-panel {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.surface-panel.release-notes-page-panel,
.surface-panel.release-notes-structured-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.brand-mark-panel {
    background: linear-gradient(135deg, rgba(var(--primary-cyan-rgb), 0.05), rgba(var(--primary-pink-rgb), 0.05));
}

.story-logo {
    max-height: 280px;
    filter: drop-shadow(0 0 15px rgba(255, 0, 127, 0.3));
}

.compact-copy {
    font-size: 0.9rem;
}

.status-alert {
    background-color: rgba(0, 210, 255, 0.1);
    color: var(--primary-cyan);
    border: 1px solid var(--primary-cyan) !important;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.status-alert-error {
    background-color: rgba(255, 0, 127, 0.1);
    color: #ff8cbc;
    border: 1px solid rgba(255, 0, 127, 0.6) !important;
}

.validation-copy {
    color: var(--primary-pink) !important;
}

.contact-detail-icon {
    color: var(--primary-cyan);
}

.turnstile-shell {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(var(--primary-cyan-rgb), 0.08), rgba(var(--primary-pink-rgb), 0.08)),
        rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.turnstile-shell .cf-turnstile {
    display: flex;
    justify-content: center;
}

.turnstile-copy {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    letter-spacing: 0.03em;
}

/* Timeline Components */
.story-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.story-timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-cyan), var(--primary-pink));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

@media (max-width: 767px) {
    .story-timeline::after {
        left: 31px;
    }
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
}

.timeline-item-left {
    left: 0;
}

.timeline-item-right {
    left: 50%;
}

@media (max-width: 767px) {
    .timeline-item-right {
        left: 0;
    }
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    border: 3px solid var(--primary-cyan);
    position: absolute;
    right: -8px;
    top: 25px;
    z-index: 10;
    transition: var(--transition-smooth);
    box-shadow: 0 0 10px var(--primary-cyan);
}

.timeline-item-right .timeline-dot {
    left: -8px;
    border-color: var(--primary-pink);
    box-shadow: 0 0 10px var(--primary-pink);
}

@media (max-width: 767px) {
    .timeline-dot {
        left: 23px !important;
        right: auto !important;
    }
}

.timeline-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-card {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.timeline-item-left:hover .timeline-dot {
    transform: scale(1.3);
    background-color: var(--primary-cyan);
}

.timeline-item-right:hover .timeline-dot {
    transform: scale(1.3);
    background-color: var(--primary-pink);
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-cyan);
    margin-bottom: 0.25rem;
}

.timeline-item-right .timeline-year {
    color: var(--primary-pink);
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.team-avatar {
    width: 100px;
    height: 100px;
}

.team-avatar-cyan {
    border: 2px solid var(--primary-cyan);
    background: rgba(0, 210, 255, 0.1);
}

.team-avatar-pink {
    border: 2px solid var(--primary-pink);
    background: rgba(255, 0, 127, 0.1);
}

.team-avatar-glyph {
    line-height: 100px;
}

.team-role {
    font-size: 0.85rem;
}

.team-role-cyan {
    color: var(--primary-cyan);
}

.team-role-pink {
    color: var(--primary-pink);
}

/* Accordion Custom Styling */
.accordion-cyber {
    --bs-accordion-bg: var(--bg-surface);
    --bs-accordion-color: var(--text-white);
    --bs-accordion-border-color: var(--border-color);
    --bs-accordion-btn-color: var(--text-white);
    --bs-accordion-btn-bg: var(--bg-surface);
    --bs-accordion-active-color: var(--primary-cyan);
    --bs-accordion-active-bg: rgba(0, 210, 255, 0.05);
    --bs-accordion-btn-focus-box-shadow: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.release-notes-accordion.accordion-cyber {
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
    background-color: transparent !important;
}

.accordion-cyber:not(.release-notes-accordion) .accordion-item:last-child {
    border-bottom: none;
}

.accordion-button {
    font-family: var(--font-headings);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border: none !important;
}

.accordion-button:not(.collapsed) {
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-body {
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Glow animation utility class */
.cyber-glow-border {
    position: relative;
    transition: var(--transition-smooth);
}

.cyber-glow-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-pink));
    z-index: -1;
    border-radius: inherit;
    opacity: 0.35;
    transition: var(--transition-smooth);
}

.cyber-glow-border:hover::after {
    opacity: 0.95;
    filter: blur(6px);
}

@media (max-width: 767px) {
    .brand-logo-header {
        height: 72px;
    }

    .hero-section {
        min-height: auto;
    }

    .section-title {
        font-size: 2rem;
    }

    .detail-side-panel {
        padding: 1.2rem;
    }

    .detail-tagline {
        font-size: 1.05rem;
    }

    .detail-support-copy {
        font-size: 0.98rem;
    }

    .detail-description-panel p {
        font-size: 1rem;
    }

    .detail-facts-grid {
        grid-template-columns: 1fr;
    }

    .detail-feature-columns {
        column-gap: 1rem;
    }
}

@media (max-width: 460px) {
    .detail-feature-columns {
        grid-template-columns: 1fr;
    }
}
