/* ==========================================================================
   Spades & Realms — Theme matching original visual aesthetic (PC / Steam)
   ========================================================================== */

:root {
    --bg-dark: #07090e;
    --bg-surface: #0e1320;
    --bg-card: #121929;
    --bg-card-hover: #18233a;
    
    --pink-primary: #ff0077;
    --pink-bright: #ff2b95;
    --pink-glow: rgba(255, 0, 119, 0.45);
    
    --cyan-primary: #469ba9;
    --cyan-bright: #5cd0e4;
    --cyan-glow: rgba(70, 155, 169, 0.4);

    --green-realm: #5ae488;
    --green-glow: rgba(90, 228, 136, 0.35);

    --amber-realm: #f6aa45;
    --amber-glow: rgba(246, 170, 69, 0.35);

    --steam-blue: #1b2838;
    --steam-accent: #66c0f4;
    
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --border-subtle: rgba(70, 155, 169, 0.25);
    --border-highlight: rgba(255, 43, 149, 0.4);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Atmospheric Ambient Background & Nebula Orbs */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 20%, #151d32 0%, #080c14 60%, #030508 100%);
    background-attachment: fixed;
    z-index: -3;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: -2;
    opacity: 0.35;
}

.orb-pink {
    width: 550px;
    height: 550px;
    background: var(--pink-primary);
    top: 15%;
    right: 5%;
}

.orb-cyan {
    width: 600px;
    height: 600px;
    background: var(--cyan-primary);
    top: 35%;
    left: -5%;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(70, 155, 169, 0.15);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 0, 119, 0.35));
    transition: transform 0.3s ease;
}

.brand-logo:hover .nav-logo-img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.25s, text-shadow 0.25s;
}

.nav-link:hover {
    color: #fff;
    text-shadow: 0 0 12px var(--cyan-bright);
}

.steam-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: 1px solid #469ba9;
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 0 15px rgba(92, 208, 228, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.steam-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(92, 208, 228, 0.45);
    border-color: var(--cyan-bright);
}

.steam-nav-btn i {
    font-size: 1.5rem;
    color: var(--cyan-bright);
}

.steam-nav-btn .btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.1;
}

.steam-nav-btn .platform {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.steam-nav-btn .action {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
}

/* Hero Section */
.hero-section {
    padding-top: 130px;
    padding-bottom: 60px;
    position: relative;
    max-width: 1380px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero-text-block {
    max-width: 860px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 780px;
}

.hero-description strong {
    color: var(--pink-bright);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.steam-glow-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: linear-gradient(90deg, #e60067 0%, #a61578 45%, #186088 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 0.85rem 1.8rem;
    border-radius: 40px;
    box-shadow: 0 0 25px rgba(230, 0, 103, 0.5), 0 0 40px rgba(70, 155, 169, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.25s, box-shadow 0.25s;
    overflow: hidden;
}

.steam-glow-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 35px rgba(255, 0, 119, 0.7), 0 0 60px rgba(92, 208, 228, 0.5);
}

.steam-icon-circle {
    width: 36px;
    height: 36px;
    background: #ffffff;
    color: #0e1320;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.trailer-pill-btn {
    background: rgba(18, 25, 41, 0.8);
    border: 1px solid var(--cyan-primary);
    color: var(--cyan-bright);
    padding: 0.85rem 1.8rem;
    border-radius: 40px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.25s ease;
}

.trailer-pill-btn:hover {
    background: var(--cyan-primary);
    color: #fff;
    box-shadow: 0 0 20px var(--cyan-glow);
}

/* Media Showcase Grid */
.media-showcase-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1rem;
}

.media-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(70, 155, 169, 0.3);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.media-card:hover {
    transform: translateY(-6px);
    border-color: var(--pink-bright);
    box-shadow: 0 10px 25px rgba(255, 0, 119, 0.25);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.trailer-thumb {
    background: radial-gradient(circle at center, #1b263b 0%, #0b0e17 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-logo {
    width: 70%;
    opacity: 0.9;
    filter: drop-shadow(0 0 15px rgba(255, 0, 119, 0.45));
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 0, 119, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    padding-left: 4px;
    box-shadow: 0 0 25px var(--pink-glow);
    transition: transform 0.2s ease, background 0.2s ease;
}

.trailer-card:hover .play-btn-circle {
    transform: scale(1.15);
    background: var(--pink-bright);
}

.media-badge {
    position: relative;
    z-index: 2;
    background: rgba(14, 19, 32, 0.9);
    padding: 0.5rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-caption {
    position: relative;
    z-index: 2;
    background: rgba(14, 19, 32, 0.85);
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Card Mockup Visuals */
.screen-bg-1 {
    background: linear-gradient(135deg, #18091a 0%, #0c121e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-deck-ui {
    display: flex;
    gap: 6px;
}

.mock-card {
    width: 32px;
    height: 48px;
    background: #240f26;
    border: 1px solid var(--pink-bright);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink-bright);
    font-size: 0.9rem;
    box-shadow: 0 0 8px rgba(255, 0, 119, 0.3);
}

.mock-card.active {
    transform: translateY(-8px);
    background: var(--pink-primary);
    color: #fff;
}

.screen-bg-2 {
    background: linear-gradient(135deg, #071720 0%, #0d1e28 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-grid-ui {
    display: grid;
    grid-template-columns: repeat(2, 28px);
    grid-template-rows: repeat(2, 28px);
    gap: 4px;
}

.grid-cell {
    border: 1px dashed var(--cyan-primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.active-tile {
    background: rgba(92, 208, 228, 0.3);
    color: var(--cyan-bright);
}

.enemy-tile {
    background: rgba(255, 0, 119, 0.3);
    color: var(--pink-bright);
}

.screen-bg-3 {
    background: linear-gradient(135deg, #12101e 0%, #1a162b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.mock-dialogue-box {
    text-align: center;
}

.avatar-circle {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.dialogue-text {
    font-size: 0.68rem;
    color: #cbd5e1;
    font-style: italic;
}

/* Los Reinos Section */
.realms-section {
    max-width: 1380px;
    margin: 40px auto 60px;
    padding: 0 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.realms-deck-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.realm-pill-card {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    min-height: 320px;
}

.realm-pill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
}

.realm-green {
    border-color: rgba(90, 228, 136, 0.45);
}

.realm-green:hover {
    border-color: var(--green-realm);
    box-shadow: 0 0 28px var(--green-glow);
}

.realm-green .realm-tag-sub {
    color: var(--green-realm);
}

.realm-amber {
    border-color: rgba(246, 170, 69, 0.45);
}

.realm-amber:hover {
    border-color: var(--amber-realm);
    box-shadow: 0 0 28px var(--amber-glow);
}

.realm-amber .realm-tag-sub {
    color: var(--amber-realm);
}

.realm-art-wrapper {
    height: 150px;
    background: radial-gradient(circle at center, rgba(20, 30, 45, 0.6) 0%, rgba(5, 8, 14, 0.9) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    overflow: hidden;
}

.realm-art-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
    transition: transform 0.3s ease;
}

.realm-pill-card:hover .realm-art-img {
    transform: scale(1.08);
}

.realm-tag-sub {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.realm-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0.3rem 0;
    color: #fff;
    line-height: 1.25;
}

.realm-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hub Card */
.hub-card {
    border-color: rgba(255, 0, 119, 0.3);
}

.hub-header-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1.2rem;
    text-align: center;
}

.hub-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.hub-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    text-align: center;
    color: #e2e8f0;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.hub-item:hover {
    background: rgba(255, 0, 119, 0.15);
    border-color: var(--pink-bright);
}

.hub-icon.pink {
    font-size: 1.2rem;
    color: var(--pink-bright);
}

/* Locked Card */
.locked-card {
    border-color: rgba(70, 155, 169, 0.3);
    background: rgba(14, 19, 32, 0.6);
}

.crescent-lock-wrapper {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crescent-moon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: -15px 0 0 3px var(--cyan-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    left: 8px;
}

.lock-icon {
    font-size: 1.6rem;
    color: var(--cyan-bright);
    filter: drop-shadow(0 0 8px var(--cyan-glow));
    margin-left: -15px;
}

.locked-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--cyan-bright);
    margin-bottom: 0.3rem;
}

.locked-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.text-center {
    text-align: center;
}

/* Lore Quote Section */
.lore-section {
    max-width: 900px;
    margin: 40px auto 80px;
    padding: 0 2rem;
}

.lore-quote-box {
    background: linear-gradient(180deg, rgba(24, 15, 30, 0.7) 0%, rgba(10, 15, 25, 0.9) 100%);
    border: 1px solid rgba(255, 0, 119, 0.3);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.quote-symbol {
    font-size: 2.5rem;
    color: var(--pink-bright);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px var(--pink-glow);
}

.lore-quote-box blockquote {
    font-size: 1.15rem;
    font-style: italic;
    color: #f1f5f9;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.lore-quote-box cite {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cyan-bright);
    letter-spacing: 0.5px;
}

/* System Requirements Table */
.specs-section {
    max-width: 1100px;
    margin: 60px auto 100px;
    padding: 0 2rem;
}

.specs-table-box {
    background: var(--bg-surface);
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

th {
    background: #141b2d;
    color: var(--cyan-bright);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 1px;
}

td {
    font-size: 0.95rem;
    color: var(--text-muted);
}

td strong {
    color: #f8fafc;
}

.deck-certified {
    text-align: center;
    color: var(--cyan-bright) !important;
    font-weight: 600;
    background: rgba(70, 155, 169, 0.08);
}

.deck-certified i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Modal Video Trailer */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 5, 10, 0.9);
    backdrop-filter: blur(8px);
}

.modal-window {
    position: relative;
    width: 90%;
    max-width: 960px;
    background: #000;
    border-radius: 14px;
    border: 2px solid var(--pink-bright);
    box-shadow: 0 0 50px rgba(255, 0, 119, 0.4);
    z-index: 10;
    overflow: hidden;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 20;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--pink-bright);
}

.iframe-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
.footer {
    background: #04060a;
    border-top: 1px solid rgba(70, 155, 169, 0.15);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-logo {
    height: 65px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(255, 0, 119, 0.35));
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: color 0.2s, transform 0.2s;
}

.footer-socials a:hover {
    color: var(--pink-bright);
    transform: translateY(-2px);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .media-showcase-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .realms-deck-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .media-showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .realms-deck-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .steam-glow-btn {
        width: 100%;
        justify-content: center;
    }
}