@import url('https://fonts.googleapis.com/css2?family=Oxanium:wght@300;400;500;600;700&family=Titillium+Web:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --hex-cyan: #06b6d4;
    --hex-blue: #0891b2;
    --hex-dark: #083344;
    --hex-black: #042f2e;
    --hex-light: #ecfeff;
    --hex-accent: #22d3ee;
}

body {
    font-family: 'Titillium Web', sans-serif;
    background: var(--hex-black);
    color: var(--hex-light);
    line-height: 1.7;
}

.hex-header {
    background: rgba(4, 47, 46, 0.95);
    backdrop-filter: blur(8px);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--hex-cyan);
}

.header-inner {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hex-logo {
    font-family: 'Oxanium', cursive;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--hex-accent);
    text-decoration: none;
    letter-spacing: 2px;
}

.hex-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--hex-cyan);
    color: var(--hex-cyan);
    font-size: 1.3rem;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    border-radius: 4px;
}

.hex-nav {
    display: flex;
    gap: 0.3rem;
}

.hex-nav a {
    color: var(--hex-light);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s;
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
    background: transparent;
}

.hex-nav a:hover {
    background: var(--hex-cyan);
    color: var(--hex-black);
}

.hex-hero {
    margin-top: 70px;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--hex-black) 0%, var(--hex-dark) 50%, var(--hex-black) 100%);
    position: relative;
    text-align: center;
}

.hex-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%2306b6d4' fill-opacity='0.05'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-core {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.hex-hero h1 {
    font-family: 'Oxanium', cursive;
    font-size: 3.8rem;
    color: var(--hex-accent);
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
}

.hex-hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hex-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.h-badge {
    background: rgba(6, 182, 212, 0.15);
    border: 2px solid var(--hex-cyan);
    color: var(--hex-cyan);
    padding: 0.8rem 1.6rem;
    clip-path: polygon(8% 0%, 92% 0%, 100% 50%, 92% 100%, 8% 100%, 0% 50%);
    font-weight: 600;
}

.game-hex {
    padding: 4rem 2rem;
    background: var(--hex-dark);
}

.hex-title {
    font-family: 'Oxanium', cursive;
    font-size: 2.2rem;
    color: var(--hex-accent);
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.game-container {
    max-width: 1300px;
    margin: 0 auto;
    background: var(--hex-black);
    border: 3px solid var(--hex-cyan);
    overflow: hidden;
    clip-path: polygon(2% 0%, 98% 0%, 100% 4%, 100% 96%, 98% 100%, 2% 100%, 0% 96%, 0% 4%);
}

.game-container iframe {
    width: 100%;
    height: 620px;
    border: none;
    display: block;
}

.cells-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--hex-dark), var(--hex-black));
}

.cells-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.hex-cell {
    background: rgba(8, 51, 68, 0.5);
    border: 2px solid rgba(6, 182, 212, 0.4);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.hex-cell:hover {
    border-color: var(--hex-cyan);
    background: rgba(6, 182, 212, 0.1);
}

.cell-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hex-cell h3 {
    font-family: 'Oxanium', cursive;
    color: var(--hex-accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.hex-cell p {
    opacity: 0.85;
    font-size: 0.95rem;
}

.about-hex {
    padding: 5rem 2rem;
    background: var(--hex-blue);
}

.about-core {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-hex h2 {
    font-family: 'Oxanium', cursive;
    font-size: 2.4rem;
    color: var(--hex-light);
    margin-bottom: 2rem;
}

.about-hex p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.page-area {
    margin-top: 70px;
    min-height: calc(100vh - 220px);
    padding: 4rem 2rem;
    background: linear-gradient(180deg, var(--hex-dark), var(--hex-black));
}

.page-cell {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(8, 51, 68, 0.6);
    border: 2px solid var(--hex-cyan);
    padding: 3rem;
}

.page-cell h1 {
    font-family: 'Oxanium', cursive;
    font-size: 2.6rem;
    color: var(--hex-accent);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.page-cell h2 {
    font-family: 'Oxanium', cursive;
    font-size: 1.4rem;
    color: var(--hex-cyan);
    margin: 2rem 0 1rem;
}

.page-cell p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.page-cell ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.page-cell li {
    margin-bottom: 0.6rem;
    opacity: 0.9;
}

.play-data {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--hex-cyan);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.play-data h3 {
    color: var(--hex-accent);
    font-family: 'Oxanium', cursive;
    margin-bottom: 0.5rem;
}

.hex-footer {
    background: var(--hex-black);
    border-top: 2px solid var(--hex-cyan);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--hex-light);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--hex-cyan);
}

.rg-hex {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--hex-dark);
}

.rg-hex h4 {
    color: var(--hex-cyan);
    margin-bottom: 1rem;
    font-family: 'Oxanium', cursive;
}

.rg-hex a {
    color: var(--hex-light);
    text-decoration: none;
    margin: 0 1rem;
    opacity: 0.6;
}

.rg-hex a:hover {
    opacity: 1;
}

.copy-hex {
    margin-top: 2rem;
    opacity: 0.4;
    font-size: 0.9rem;
}

.age-layer {
    position: fixed;
    inset: 0;
    background: rgba(4, 47, 46, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.age-hex {
    background: linear-gradient(135deg, var(--hex-dark), var(--hex-black));
    border: 3px solid var(--hex-cyan);
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    margin: 1rem;
    clip-path: polygon(5% 0%, 95% 0%, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0% 95%, 0% 5%);
}

.age-hex h2 {
    font-family: 'Oxanium', cursive;
    color: var(--hex-accent);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.age-hex p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.age-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.age-actions button {
    font-family: 'Oxanium', cursive;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    clip-path: polygon(8% 0%, 92% 0%, 100% 50%, 92% 100%, 8% 100%, 0% 50%);
}

.btn-access {
    background: var(--hex-cyan);
    color: var(--hex-black);
}

.btn-access:hover {
    background: var(--hex-accent);
}

.btn-deny {
    background: transparent;
    border: 2px solid var(--hex-light) !important;
    color: var(--hex-light);
}

.btn-deny:hover {
    background: var(--hex-light);
    color: var(--hex-black);
}

.hidden {
    display: none !important;
}

@media (max-width: 900px) {
    .cells-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hex-cell {
        clip-path: none;
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .hex-toggle {
        display: block;
    }

    .hex-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--hex-black);
        flex-direction: column;
        padding: 1rem;
        display: none;
        border-bottom: 2px solid var(--hex-cyan);
    }

    .hex-nav.active {
        display: flex;
    }

    .hex-nav a {
        padding: 1rem;
        clip-path: none;
    }

    .hex-hero h1 {
        font-size: 2.4rem;
    }

    .cells-grid {
        grid-template-columns: 1fr;
    }

    .game-container {
        clip-path: none;
        border-radius: 12px;
    }

    .game-container iframe {
        height: 420px;
    }

    .page-cell {
        padding: 2rem;
    }

    .age-actions {
        flex-direction: column;
    }

    .age-hex {
        clip-path: none;
        border-radius: 16px;
    }
}
