@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600;700&family=Lora:wght@400;500;600&display=swap');

:root {
    --ocean-deep: #0c1929;
    --ocean-mid: #1a3a5c;
    --teal-glow: #20b2aa;
    --aqua-light: #40e0d0;
    --pearl: #f0f8ff;
    --foam: #e0f7fa;
    --sand: #c9b896;
    --coral: #ff7f50;
}

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

body {
    font-family: 'Lora', Georgia, serif;
    background: linear-gradient(180deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
    color: var(--pearl);
    min-height: 100vh;
    line-height: 1.85;
}

.wave-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 2rem;
    z-index: 1000;
    background: rgba(12, 25, 41, 0.9);
    backdrop-filter: blur(8px);
}

.wave-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wave-logo {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--aqua-light);
    text-decoration: none;
    letter-spacing: 3px;
}

.wave-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--teal-glow);
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
}

.wave-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--aqua-light);
    margin: 5px 0;
    border-radius: 2px;
}

.wave-nav {
    display: flex;
    gap: 2rem;
}

.wave-nav a {
    color: var(--pearl);
    text-decoration: none;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s;
}

.wave-nav a:hover {
    background: rgba(32, 178, 170, 0.2);
    color: var(--aqua-light);
}

.content-flow {
    padding-top: 80px;
}

.ocean-banner {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.ocean-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(64, 224, 208, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(32, 178, 170, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.ocean-banner h1 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 700;
    color: var(--pearl);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.ocean-banner .intro {
    font-size: 1.2rem;
    color: var(--foam);
    max-width: 700px;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.tide-cards {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.tide-card {
    background: rgba(26, 58, 92, 0.7);
    border-radius: 12px;
    padding: 2rem;
    width: 300px;
    text-align: center;
    border: 1px solid rgba(64, 224, 208, 0.2);
    backdrop-filter: blur(5px);
}

.tide-card .wave-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tide-card h3 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.1rem;
    color: var(--aqua-light);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.tide-card p {
    color: var(--foam);
    font-size: 0.95rem;
}

.game-cove {
    padding: 5rem 2rem;
    background: rgba(12, 25, 41, 0.5);
}

.cove-container {
    max-width: 1100px;
    margin: 0 auto;
}

.cove-container h2 {
    font-family: 'Josefin Sans', sans-serif;
    text-align: center;
    font-size: 2rem;
    color: var(--aqua-light);
    margin-bottom: 2rem;
    font-weight: 600;
}

.game-screen {
    width: 100%;
    height: 580px;
    border-radius: 12px;
    border: 2px solid rgba(64, 224, 208, 0.3);
    background: #000;
}

.feature-waves {
    padding: 5rem 2rem;
}

.waves-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.wave-feature {
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.6) 0%, rgba(12, 25, 41, 0.8) 100%);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    border-top: 3px solid var(--teal-glow);
}

.wave-feature .symbol {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.wave-feature h3 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.15rem;
    color: var(--aqua-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.wave-feature p {
    color: var(--foam);
    font-size: 0.95rem;
}

.prose-page {
    padding: 5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.prose-page h1 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2.5rem;
    color: var(--aqua-light);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    padding-top: 1rem;
}

.prose-page h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.4rem;
    color: var(--pearl);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(64, 224, 208, 0.3);
    font-weight: 600;
}

.prose-page p {
    color: var(--foam);
    margin-bottom: 1.25rem;
}

.prose-page ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose-page li {
    color: var(--foam);
    padding: 0.5rem 0;
    position: relative;
}

.prose-page li::before {
    content: '~';
    position: absolute;
    left: -1.25rem;
    color: var(--teal-glow);
    font-weight: bold;
}

.shore-footer {
    background: var(--ocean-deep);
    padding: 4rem 2rem;
    border-top: 1px solid rgba(64, 224, 208, 0.2);
}

.shore-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.shore-inner h4 {
    font-family: 'Josefin Sans', sans-serif;
    color: var(--aqua-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.help-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.help-links a {
    color: var(--foam);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.help-links a:hover {
    color: var(--aqua-light);
}

.page-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.page-links a {
    color: var(--pearl);
    text-decoration: none;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.page-links a:hover {
    color: var(--aqua-light);
}

.shore-copy {
    padding-top: 2rem;
    border-top: 1px solid rgba(64, 224, 208, 0.1);
    color: var(--foam);
    font-size: 0.9rem;
}

.reef-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 25, 41, 0.98);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reef-dialog {
    background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-deep));
    border-radius: 20px;
    padding: 3rem;
    max-width: 440px;
    width: 90%;
    text-align: center;
    border: 2px solid var(--teal-glow);
}

.reef-dialog .wave-symbol {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.reef-dialog h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.6rem;
    color: var(--aqua-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.reef-dialog p {
    color: var(--foam);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.reef-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.reef-btn {
    padding: 1rem 2rem;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-weight: 600;
}

.reef-btn.enter {
    background: linear-gradient(135deg, var(--teal-glow), var(--aqua-light));
    color: var(--ocean-deep);
}

.reef-btn.enter:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(32, 178, 170, 0.4);
}

.reef-btn.leave {
    background: transparent;
    border: 1px solid var(--teal-glow);
    color: var(--pearl);
}

.reef-btn.leave:hover {
    background: rgba(32, 178, 170, 0.1);
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .wave-toggle {
        display: block;
    }
    
    .wave-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ocean-deep);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.5rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }
    
    .wave-nav.flowing {
        opacity: 1;
        visibility: visible;
    }
    
    .wave-nav a {
        display: block;
        padding: 1rem;
        background: rgba(26, 58, 92, 0.5);
        text-align: center;
        border-radius: 8px;
    }
    
    .tide-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .tide-card {
        width: 100%;
        max-width: 350px;
    }
    
    .game-screen {
        height: 420px;
    }
    
    .reef-buttons {
        flex-direction: column;
    }
}
