:root {
    --blue: #3490bf;
    --blue-dark: #1e5a78;
    --blue-light: #e8f4fb;
    --green: #6aab1f;
    --green-dark: #4a7a14;
    --green-light: #eef6e0;
    --dark: #1a2535;
    --text: #374151;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: azo-sans, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── NAV ── */
nav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}
.nav-logo {
    font-family: "Press Start 2P", monospace;
    font-size: 13px;
    color: var(--blue);
    text-decoration: none;
    line-height: 1;
}
.nav-logo .sub {
    display: block;
    font-size: 6px;
    color: var(--muted);
    font-family: azo-sans, sans-serif;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
}
nav ul li a {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition:
        background 0.15s,
        color 0.15s;
}
nav ul li a:hover {
    background: var(--blue-light);
    color: var(--blue);
}
.nav-cta {
    background: var(--blue);
    color: #fff !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: background 0.15s !important;
}
.nav-cta:hover {
    background: var(--blue-dark) !important;
}

/* ── BANNER ── */
.banner {
    background: var(--blue);
    padding: 12px 24px;
    text-align: center;
}
.banner a {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
}
.banner a:hover {
    text-decoration: underline;
}

/* ── SCHOOLED TEASER ── */
.schooled-teaser {
    background: var(--bg-alt);
    padding: 40px 24px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    margin-bottom: -24px;
}
.schooled-teaser a {
    display: flex;
    align-items: center;
    gap: 32px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s;
}
.schooled-teaser a:hover {
    transform: scale(1.02);
}
.schooled-teaser img {
    height: 230px;
    width: auto;
    flex-shrink: 0;
}
.schooled-teaser span {
    font-weight: 700;
    font-size: 24px;
    color: var(--blue);
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* ── HERO ── */
.hero {
    background: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(52, 144, 191, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 144, 191, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}
.hero-emoji {
    font-size: 80px;
    display: block;
    margin-bottom: 24px;
    animation: float 3.5s ease-in-out infinite;
    position: relative;
    z-index: 1;
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}
.hero h1 {
    font-family: "Press Start 2P", monospace;
    font-size: clamp(18px, 4vw, 36px);
    color: #fff;
    line-height: 1.6;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.hero h1 span {
    color: #adef32;
}
.hero p {
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 40px;
    max-width: 520px;
    position: relative;
    z-index: 1;
}
.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    text-decoration: none;
    padding: 13px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition:
        transform 0.12s,
        box-shadow 0.12s;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.btn-blue {
    background: var(--blue);
    color: #fff;
}
.btn-green {
    background: var(--green);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn-outline:hover {
    border-color: #fff;
}
.btn-sm {
    padding: 9px 16px;
    font-size: 13px;
}

/* ── SECTIONS ── */
.sec {
    padding: 72px 0;
}
.sec-alt {
    background: var(--bg-alt);
}
.inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
}

.sec-head {
    text-align: center;
    margin-bottom: 48px;
}
.sec-head h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
#programs .sec-head h2,
#games .sec-head h2,
#staff .sec-head h2,
#links .sec-head h2,
#about .sec-head h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
}
.sec-head p {
    font-size: 16px;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto;
}

.tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--blue-light);
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.tag-green {
    background: var(--green-light);
    color: var(--green-dark);
}

/* ── PROGRAM CARDS ── */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}
.program-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition:
        box-shadow 0.15s,
        transform 0.15s;
}
.program-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}
.program-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
.program-card p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 18px;
    line-height: 1.6;
}

/* ── STAFF ── */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.staff-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition:
        box-shadow 0.15s,
        transform 0.15s;
}
.staff-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}
.staff-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top;
    display: block;
    background: var(--bg-alt);
}
.photo-placeholder {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    background: var(--bg-alt);
}
.staff-body {
    padding: 20px;
}
.staff-role {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 6px;
    display: block;
}
.staff-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}
.staff-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

/* owner wide card */
.owner-card {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 280px 1fr;
}
.owner-card .staff-photo {
    height: 100%;
    min-height: 260px;
}
.owner-card .staff-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.owner-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.owner-card p {
    font-size: 15px;
}

/* ── GAMES ── */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}
.game-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition:
        box-shadow 0.15s,
        transform 0.15s;
}
.game-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}
.game-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.game-thumb {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    position: relative;
    overflow: hidden;
}
.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    inset: 0;
}
.play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.15s;
}
.game-card:hover .play-badge {
    opacity: 1;
}
.game-info {
    padding: 14px 16px;
}
.game-info h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.5;
}
.game-maker {
    font-size: 12px;
    color: var(--muted);
}

/* ── SUBSECTION HEAD ── */
.subsec-head {
    text-align: center;
    margin: 52px 0 24px;
    padding-top: 44px;
    border-top: 1px solid var(--border);
}
.subsec-head:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.subsec-head h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}
.subsec-head p {
    font-size: 14px;
    color: var(--muted);
}

.tag-belt {
    background: #1a1a1a;
    color: #ffd700;
}

/* ── BLACK BELT PROJECTS ── */
.bb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 20px;
}
.bb-card {
    background: var(--bg);
    border: 2px solid #1a1a1a;
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.15s, transform 0.15s;
}
.bb-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    transform: translateY(-3px);
}
.bb-card a {
    text-decoration: none;
    color: inherit;
    display: grid;
    grid-template-columns: 200px 1fr;
}
.bb-thumb {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.bb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.bb-info {
    padding: 22px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.bb-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.bb-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 2px 0;
}
.bb-info p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 8px;
}
@media (max-width: 600px) {
    .bb-card a {
        grid-template-columns: 1fr;
    }
    .bb-thumb {
        min-height: 220px;
    }
}

/* ── QUICK LINKS ── */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s;
}
.link-card:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    box-shadow: 0 4px 14px rgba(52, 144, 191, 0.3);
}
.licon {
    font-size: 20px;
    flex-shrink: 0;
}
.cal-wrap {
    margin-top: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* ── ABOUT ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 32px;
}
.about-inner {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.about-inner p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 16px;
}
.about-cta {
    text-align: center;
    background: var(--blue-light);
    border-radius: var(--radius);
    padding: 28px 24px;
    margin-top: 24px;
}
.about-cta p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 20px;
}
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    align-items: end;
}
.stat {
    text-align: center;
}
.stat .num {
    display: block;
    font-family: "Press Start 2P", monospace;
    font-size: 24px;
    color: var(--blue);
    margin-bottom: 6px;
}
.stat .num.num-xl {
    font-size: 40px;
}
.stat .lbl {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── FOOTER ── */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 56px 28px 36px;
    text-align: center;
}
.foot-logo {
    font-family: "Press Start 2P", monospace;
    font-size: 12px;
    color: #fff;
    display: block;
    margin-bottom: 6px;
}
.foot-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: block;
    text-decoration: none;
}
a.foot-sub:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}
.foot-hours {
    font-size: 15px;
    margin-bottom: 28px;
    line-height: 2;
}
.foot-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.foot-socials a {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 9px 16px;
    text-decoration: none;
    transition: background 0.15s;
}
.foot-socials a:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}
.foot-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
    line-height: 2;
}

/* ── BACK TO TOP ── */
#totop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--blue);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    z-index: 500;
    box-shadow: 0 4px 14px rgba(52, 144, 191, 0.4);
    transition:
        background 0.15s,
        opacity 0.2s;
    opacity: 0;
    pointer-events: none;
}
#totop.visible {
    opacity: 1;
    pointer-events: auto;
}
#totop:hover {
    background: var(--blue-dark);
}

/* ── RESPONSIVE ── */
@media (max-width: 840px) {
    nav ul {
        display: none;
    }
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .owner-card {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    .owner-card .staff-photo {
        height: 240px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-inner {
        padding: 28px 20px;
    }
    .stat-row {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .hero h1 {
        font-size: 16px;
    }
}
