/* CARIBBEAN LUXE DESIGN SYSTEM */
:root {
    --bg-primary: #061013;
    --bg-secondary: #0E1F24;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-hover: rgba(255, 255, 255, 0.09);
    --glass-blur: 18px;
    --ocean-teal: #0EA5A4;
    --deep-lagoon: #075985;
    --sunset-gold: #D4AF37;
    --coral-accent: #F97316;
    --sand-white: #F8F3E7;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    
    --nav-height: 74px;
    --border-radius: 16px;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .editorial-title {
    font-family: 'Playfair Display', serif;
    color: var(--sand-white);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* BACKGROUNDS */
.bg-atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
}

.bg-img-fixed {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(6, 16, 19, 0.85) 0%, rgba(6, 16, 19, 0.95) 100%);
    z-index: -1;
}

/* UTILITIES */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
}

.text-gold { color: var(--sunset-gold); }
.full-width { width: 100%; text-align: center; }

/* BUTTONS */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--sunset-gold);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    background: #e6c24d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--ocean-teal);
    backdrop-filter: blur(var(--glass-blur));
}

.btn-secondary:hover {
    background: rgba(14, 165, 164, 0.1);
    transform: translateY(-2px);
}

/* HEADER WRAPPER & WARNING BANNER */
.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.top-warning-banner {
    background: #000;
    color: var(--sunset-gold);
    text-align: center;
    padding: 8px 15px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.4;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
}

/* TOP NAV */
.top-nav {
    position: relative;
    width: 100%;
    height: var(--nav-height);
    background: rgba(14, 31, 36, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    transition: var(--transition);
}

.top-nav.scrolled {
    background: rgba(6, 16, 19, 0.9);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--sand-white);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.crest-icon {
    width: 24px;
    height: 24px;
    stroke: var(--ocean-teal);
}

.crest-icon.large {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
}

.nav-center {
    display: flex;
    gap: 32px;
}

.nav-center a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-center a:hover, .nav-center a.active {
    color: var(--sand-white);
}

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ocean-teal);
    transition: var(--transition);
}

.nav-center a:hover::after, .nav-center a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--sand-white);
    transition: 0.3s;
}

/* MAIN DECK */
.main-deck {
    padding-top: calc(var(--nav-height) + 120px);
    padding-bottom: 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.deck-grid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 260px 1fr 300px;
    gap: 40px;
    align-items: start;
    width: 100%;
}

/* LEFT COL - STATUS CARDS */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 20px;
}

.status-card {
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--transition);
}

.status-card:hover {
    background: var(--surface-hover);
    transform: translateX(4px);
}

.status-card svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.card-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.card-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* CENTER COL - GAME DECK */
.center-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-frame-wrapper {
    background: var(--sand-white); /* Ancient stone base */
    padding: 14px;
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 50px rgba(14, 165, 164, 0.15); /* Shadow & turquoise reflection */
    width: 100%;
    max-width: 900px;
}

.game-frame-inner {
    background: #5c3a21; /* Polished teak wood */
    padding: 8px;
    border-radius: 20px;
    border: 2px solid var(--sunset-gold); /* Gold trim */
}

.game-iframe-container {
    background: var(--bg-primary);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    width: 100%;
    padding-top: 62.22%; 
    height: 520px; 
}

.game-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-controls {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

.btn-control {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-control:hover {
    color: var(--sunset-gold);
}

/* RIGHT COL - QUICK INFO */
.right-column {
    padding-top: 20px;
}

.quick-info {
    padding: 40px 30px;
}

.quick-info .editorial-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.quick-info .body-text {
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.button-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.legal-note {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* HORIZONTAL ISLAND STRIP */
.horizontal-strip {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.strip-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.strip-item {
    flex: 1;
    padding: 50px 30px;
    text-align: center;
}

.strip-item svg {
    width: 32px;
    height: 32px;
    margin-bottom: 20px;
}

.strip-item h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.strip-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.strip-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1), transparent);
}

/* WAVES COMMON */
.wave {
    padding: 120px 40px;
    position: relative;
}

.wave-container {
    max-width: 1400px;
    margin: 0 auto;
}

.editorial-title.lg {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

.body-text.lg {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* THE TREASURE HUNT HIGHLIGHT */
.highlight-box {
    background: rgba(14, 31, 36, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--sunset-gold);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.15), inset 0 0 20px rgba(212, 175, 55, 0.05);
    position: relative;
    transform: scale(1.02);
    z-index: 10;
}

.highlight-box .glowing-text {
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    font-size: 4rem;
}

.highlight-box .highlight-text {
    color: var(--sand-white);
    font-size: 1.25rem;
    line-height: 1.8;
    font-weight: 400;
}

/* WAVE 1 */
.grid-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.image-box {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.image-box::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--sunset-gold);
    z-index: 0;
    opacity: 0.3;
}

.content-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border-radius: 4px;
}

/* WAVE 2 */
.wave-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

.wave-bg-detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: -1;
}

.wide-glass-panel {
    background: rgba(14, 31, 36, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 80px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.wide-glass-panel .editorial-title {
    font-size: 3rem;
    margin-bottom: 24px;
}

.wide-glass-panel .body-text {
    margin: 0 auto;
}

/* WAVE 3 */
.uneven-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 60px;
}

.editorial-title.sm {
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.about-treasure-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.col-specs {
    padding: 40px;
}

.spec-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.spec-list li:last-child {
    border-bottom: none;
}

.spec-list strong {
    color: var(--text-primary);
    font-weight: 500;
}

.badge-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--ocean-teal);
}

.badge svg {
    width: 24px;
    height: 24px;
    color: var(--sunset-gold);
}

.badge-icon {
    font-weight: 700;
    color: var(--sunset-gold);
    font-size: 1.2rem;
}

/* SUPPORT & LEGAL BAY */
.support-legal-bay {
    position: relative;
    padding: 100px 40px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(6, 16, 19, 1) 0%, rgba(6, 16, 19, 0.9) 100%);
    z-index: -1;
}

.bay-container {
    max-width: 1400px;
    margin: 0 auto;
}

.grid-three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 80px;
}

.support-details {
    margin-bottom: 40px;
}

.support-details .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.support-details .value {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.faq-mini h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 8px;
    margin-top: 24px;
}

.faq-mini p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* CONTACT FORM */
.glass-form {
    background: var(--surface);
    backdrop-filter: blur(var(--glass-blur));
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.05);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 14px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--ocean-teal);
    background: rgba(0,0,0,0.5);
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
}

/* LEGAL COL */
.legal-links {
    margin-bottom: 40px;
}

.legal-links li {
    margin-bottom: 16px;
}

.legal-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.legal-links a:hover {
    color: var(--sunset-gold);
    padding-left: 5px;
}

.copyright p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .deck-grid {
        grid-template-columns: 1fr;
    }
    
    .center-column {
        order: -1; /* Game first on tablet */
    }

    .left-column {
        flex-direction: row;
    }

    .status-card {
        flex: 1;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .uneven-grid {
        grid-template-columns: 1fr 1fr;
    }
    .col-badges {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .nav-center {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid rgba(212,175,55,0.3);
    }

    .nav-center.active {
        display: flex;
    }

    .hamburger {
        display: flex;
        margin-left: 20px;
    }

    .strip-container {
        flex-direction: column;
    }

    .strip-divider {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    }

    .grid-half, .grid-three, .uneven-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .col-badges {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .left-column {
        flex-direction: column;
    }
    
    .game-iframe-container {
        height: 300px;
    }

    .wave {
        padding: 60px 20px;
    }

    .wide-glass-panel {
        padding: 40px 20px;
    }
    
    .editorial-title.lg {
        font-size: 2.5rem;
    }
    
    .nav-right .btn-primary {
        display: none; /* Hide top button on small mobile, rely on page content */
    }

    .highlight-box .glowing-text {
        font-size: 2.8rem;
    }

    .highlight-box .highlight-text {
        font-size: 1.1rem;
    }

    .main-deck {
        padding-top: calc(var(--nav-height) + 140px);
    }
}

/* LEGAL PAGES SPECIFIC STYLES */
.legal-header {
    padding: 180px 40px 60px;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(212,175,55,0.2);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 40px;
}

.legal-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--sunset-gold);
}

.legal-content p, .legal-content ul {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.legal-content ul {
    padding-left: 20px;
    list-style-type: disc;
}

.legal-box {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--ocean-teal);
    margin-top: 40px;
}