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

:root {
    --sunset-gold: #FFA726;
    --horizon-orange: #FF8A65;
    --warm-peach: #FFCC80;

    --seafoam: #4FC3F7;
    --ocean-blue: #29B6F6;
    --deep-teal: #0288D1;
    --abyss-blue: #01579B;
    --midnight-blue: #0D47A1;

    --wet-stone: #546E7A;
    --deep-shadow: #37474F;
    --soft-shadow: rgba(13, 71, 161, 0.3);

    --pearl-white: #FAFAFA;
    --coral-pink: #FF8A80;
    --sea-green: #26A69A;
}

body {
    font-family: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, var(--warm-peach) 0%, var(--sunset-gold) 15%, var(--seafoam) 40%, var(--ocean-blue) 70%, var(--deep-teal) 100%);
    min-height: 100vh;
    color: var(--pearl-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Coustard', cursive;
    font-weight: normal;
}

.biscuit-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--midnight-blue), var(--abyss-blue));
    padding: 20px;
    box-shadow: 0 -4px 20px var(--soft-shadow);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.biscuit-popup.visible {
    transform: translateY(0);
}

.biscuit-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.biscuit-text {
    flex: 1;
    font-size: 14px;
}

.biscuit-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.biscuit-accept {
    background: linear-gradient(135deg, var(--sunset-gold), var(--horizon-orange));
    color: var(--deep-shadow);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.biscuit-accept:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 167, 38, 0.5);
}

.biscuit-link {
    color: var(--seafoam);
    text-decoration: none;
    font-size: 14px;
}

.biscuit-link:hover {
    text-decoration: underline;
}

.wave-crown {
    background: linear-gradient(135deg, var(--midnight-blue), var(--deep-teal));
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px var(--soft-shadow);
}

.crown-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-wave {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.brand-wave:hover {
    opacity: 0.8;
}

.wave-emblem {
    width: 40px;
    height: 40px;
    background: url('img-site/logo-img.png') center/contain no-repeat;
}

.brand-title {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--sunset-gold), var(--seafoam));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tide-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-ripples {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-foam {
    color: var(--pearl-white);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-foam:hover {
    color: var(--seafoam);
}

.nav-foam::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--sunset-gold), var(--seafoam));
    transition: width 0.3s ease;
}

.nav-foam:hover::after {
    width: 100%;
}

.surf-btn {
    background: linear-gradient(135deg, var(--sunset-gold), var(--horizon-orange));
    color: var(--deep-shadow);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.surf-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 167, 38, 0.6);
}

.reef-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.reef-toggle span {
    width: 25px;
    height: 3px;
    background: var(--pearl-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.reef-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.reef-toggle.active span:nth-child(2) {
    opacity: 0;
}

.reef-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.ocean-stage {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('img-site/img-background.png') center/cover no-repeat;
    overflow: hidden;
}

.horizon-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(255, 200, 100, 0.4) 0%,
        rgba(41, 182, 246, 0.3) 50%,
        rgba(13, 71, 161, 0.5) 100%);
}

.stage-content {
    position: relative;
    text-align: center;
    padding: 40px;
    max-width: 800px;
}

.wave-title {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 3px 3px 10px var(--soft-shadow);
    background: linear-gradient(135deg, var(--sunset-gold), var(--pearl-white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wave-subtitle {
    font-size: 22px;
    text-shadow: 2px 2px 8px var(--soft-shadow);
}

.deep-zone {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--deep-teal), var(--midnight-blue));
}

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

.zone-title {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--seafoam);
}

.zone-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--pearl-white);
}

.coral-garden {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--midnight-blue), var(--abyss-blue));
}

.garden-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.garden-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--seafoam);
}

.perk-reef {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.perl-crystal {
    background: linear-gradient(135deg, rgba(41, 182, 246, 0.2), rgba(13, 71, 161, 0.3));
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.perl-crystal:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--soft-shadow);
}

.perl-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.perl-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--seafoam);
}

.perl-desc {
    font-size: 16px;
    color: rgba(250, 250, 250, 0.8);
}

.game-cove {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--abyss-blue), var(--deep-shadow));
}

.cove-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.cove-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: var(--seafoam);
}

.game-treasure {
    display: flex;
    justify-content: center;
}

.treasure-chest {
    background: linear-gradient(135deg, rgba(255, 167, 38, 0.1), rgba(41, 182, 246, 0.2));
    border-radius: 25px;
    padding: 40px;
    max-width: 400px;
    text-align: center;
    border: 2px solid rgba(255, 167, 38, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.treasure-chest:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 167, 38, 0.3);
}

.chest-image {
    margin-bottom: 25px;
    border-radius: 15px;
    overflow: hidden;
}

.chest-image img {
    width: 100%;
    height: auto;
    display: block;
}

.chest-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--sunset-gold);
}

.chest-desc {
    font-size: 16px;
    margin-bottom: 25px;
    color: rgba(250, 250, 250, 0.8);
}

.chest-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--sunset-gold), var(--horizon-orange));
    color: var(--deep-shadow);
    padding: 15px 40px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chest-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 167, 38, 0.5);
}

.tide-pool {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--deep-shadow), var(--midnight-blue));
}

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

.pool-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--seafoam);
}

.pool-desc {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(250, 250, 250, 0.8);
}

.current-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.current-input {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border-radius: 25px;
    border: 2px solid rgba(79, 195, 247, 0.3);
    background: rgba(13, 71, 161, 0.3);
    color: var(--pearl-white);
    font-size: 16px;
}

.current-input::placeholder {
    color: rgba(250, 250, 250, 0.5);
}

.current-input:focus {
    outline: none;
    border-color: var(--seafoam);
}

.current-btn {
    padding: 15px 30px;
    border-radius: 25px;
    border: none;
    background: linear-gradient(135deg, var(--sunset-gold), var(--horizon-orange));
    color: var(--deep-shadow);
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.current-btn:hover {
    transform: scale(1.05);
}

.sea-cave {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--midnight-blue), var(--deep-teal));
}

.cave-inner {
    max-width: 900px;
    margin: 0 auto;
}

.cave-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--seafoam);
}

.question-bubbles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bubble-shell {
    background: linear-gradient(135deg, rgba(41, 182, 246, 0.15), rgba(13, 71, 161, 0.25));
    border-radius: 15px;
    border-left: 4px solid var(--seafoam);
    overflow: hidden;
}

.bubble-q {
    font-size: 18px;
    color: var(--seafoam);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s ease;
}

.bubble-q:hover {
    background: rgba(41, 182, 246, 0.1);
}

.bubble-q::after {
    content: '+';
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.bubble-shell.active .bubble-q::after {
    content: '−';
    transform: rotate(180deg);
}

.bubble-a {
    font-size: 16px;
    color: rgba(250, 250, 250, 0.85);
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.bubble-shell.active .bubble-a {
    max-height: 200px;
    padding: 0 20px 20px 20px;
}

.echo-reef {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--deep-teal), var(--abyss-blue));
}

.reef-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.reef-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--seafoam);
}

.echo-waves {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.echo-shell {
    background: linear-gradient(135deg, rgba(255, 167, 38, 0.1), rgba(41, 182, 246, 0.2));
    border-radius: 20px;
    padding: 35px;
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.echo-text {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 20px;
    color: rgba(250, 250, 250, 0.9);
}

.echo-author {
    font-size: 14px;
    color: var(--seafoam);
    font-weight: bold;
}

.shore-line {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--abyss-blue), var(--deep-shadow));
}

.shore-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.shore-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--seafoam);
}

.contact-sands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.sand-info {
    padding: 20px;
}

.sand-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--seafoam);
}

.grain-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 16px;
}

.grain-icon {
    font-size: 24px;
}

.grain-text {
    color: rgba(250, 250, 250, 0.9);
}

.message-bottle {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bottle-input {
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid rgba(79, 195, 247, 0.3);
    background: rgba(13, 71, 161, 0.3);
    color: var(--pearl-white);
    font-size: 16px;
}

.bottle-input::placeholder {
    color: rgba(250, 250, 250, 0.5);
}

.bottle-input:focus {
    outline: none;
    border-color: var(--seafoam);
}

.bottle-area {
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid rgba(79, 195, 247, 0.3);
    background: rgba(13, 71, 161, 0.3);
    color: var(--pearl-white);
    font-size: 16px;
    resize: vertical;
    min-height: 120px;
}

.bottle-area::placeholder {
    color: rgba(250, 250, 250, 0.5);
}

.bottle-area:focus {
    outline: none;
    border-color: var(--seafoam);
}

.bottle-btn {
    padding: 15px 30px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--sunset-gold), var(--horizon-orange));
    color: var(--deep-shadow);
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.bottle-btn:hover {
    transform: scale(1.02);
}

.shore-full {
    padding: 100px 20px;
    min-height: calc(100vh - 200px);
}

.shore-title-full {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;
    color: var(--seafoam);
}

.playground-zone {
    padding: 60px 20px;
    background: linear-gradient(180deg, var(--midnight-blue), var(--abyss-blue));
    min-height: calc(100vh - 200px);
}

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

.playground-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--sunset-gold);
}

.playground-desc {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(250, 250, 250, 0.85);
}

.game-frame-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--soft-shadow);
    background: var(--deep-shadow);
}

.game-frame {
    width: 100%;
    height: 600px;
    border: none;
}

.policy-depths {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--midnight-blue), var(--deep-teal));
    min-height: calc(100vh - 200px);
}

.depths-inner {
    max-width: 900px;
    margin: 0 auto;
}

.depths-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--seafoam);
}

.depths-content {
    background: linear-gradient(135deg, rgba(41, 182, 246, 0.1), rgba(13, 71, 161, 0.2));
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(79, 195, 247, 0.2);
}

.depths-heading {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--seafoam);
}

.depths-text {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(250, 250, 250, 0.9);
    margin-bottom: 15px;
}

.depths-link {
    color: var(--seafoam);
    text-decoration: none;
    transition: color 0.3s ease;
}

.depths-link:hover {
    color: var(--sunset-gold);
    text-decoration: underline;
}

.depths-list {
    margin-left: 30px;
    margin-bottom: 20px;
}

.depths-list li {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(250, 250, 250, 0.85);
    margin-bottom: 10px;
}

.ocean-floor {
    background: linear-gradient(135deg, var(--deep-shadow), #1a1a2e);
    padding: 30px 20px;
    border-top: 3px solid var(--sunset-gold);
}

.floor-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.floor-warning {
    text-align: center;
    margin-bottom: 20px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 138, 128, 0.25), rgba(255, 87, 34, 0.25));
    border-radius: 15px;
    border: 3px solid var(--coral-pink);
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.3);
}

.warning-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--coral-pink);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 87, 34, 0.5);
}

.warning-text {
    font-size: 15px;
    font-weight: 500;
    color: rgba(250, 250, 250, 0.9);
}

.floor-waves {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.floor-text {
    font-size: 14px;
    color: rgba(250, 250, 250, 0.7);
}

.floor-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.floor-link {
    color: var(--seafoam);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.floor-link:hover {
    color: var(--sunset-gold);
}

@media (max-width: 768px) {
    .tide-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--midnight-blue), var(--deep-teal));
        flex-direction: column;
        padding: 30px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .tide-nav.active {
        transform: translateX(0);
    }

    .nav-ripples {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .surf-btn {
        width: 100%;
    }

    .reef-toggle {
        display: flex;
    }

    .wave-title {
        font-size: 36px;
    }

    .wave-subtitle {
        font-size: 18px;
    }

    .zone-title,
    .garden-title,
    .cove-title,
    .cave-title,
    .reef-title,
    .shore-title,
    .pool-title {
        font-size: 28px;
    }

    .perk-reef,
    .echo-waves {
        grid-template-columns: 1fr;
    }

    .contact-sands {
        grid-template-columns: 1fr;
    }

    .current-form {
        flex-direction: column;
    }

    .biscuit-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .biscuit-actions {
        flex-direction: column;
        width: 100%;
    }

    .biscuit-accept {
        width: 100%;
    }

    .floor-waves {
        flex-direction: column;
        text-align: center;
    }

    .game-frame {
        height: 400px;
    }

    .depths-content {
        padding: 25px;
    }
}
