:root {
    --bg-deep: #001929;
    --bg-mid: #05253d;
    --text-main: #d7e5ee;
    --text-soft: #90a1ab;
    --highlight: #9ec4d9;
    --accent: #e8901c;
    --panel: rgba(2, 19, 33, 0.78);
    --panel-border: rgba(158, 196, 217, 0.28);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    color: var(--text-main);
    background: var(--bg-deep);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(0, 25, 41, 0.3) 0%, rgba(0, 10, 18, 0.85) 100%),
        radial-gradient(circle at 10% 5%, rgba(232, 144, 28, 0.25), transparent 42%),
        radial-gradient(circle at 92% 16%, rgba(158, 196, 217, 0.2), transparent 40%),
        url("../img/background.jpg") center / cover no-repeat fixed;
}

.bg-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    width: min(1160px, 92vw);
    margin: 0 auto;
    padding: 1.3rem 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.brand-wordmark {
    width: clamp(116px, 17vw, 172px);
    height: auto;
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.brand-top {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.brand-bottom {
    margin: 0.1rem 0 0;
    font-size: 0.86rem;
    color: var(--highlight);
}

.site-nav {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid rgba(158, 196, 217, 0.2);
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    background: rgba(0, 0, 0, 0.24);
    transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: #fff;
    border-color: rgba(232, 144, 28, 0.9);
    box-shadow: 0 0 14px rgba(232, 144, 28, 0.33);
}

.site-main {
    flex: 1;
    width: min(1160px, 92vw);
    margin: 0 auto;
}

.hero {
    padding: clamp(0.3rem, 2vw, 1rem) 0 clamp(1rem, 3vw, 1.6rem);
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 1.2rem;
    align-items: end;
}

.kicker {
    margin: 0;
    color: var(--accent);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

h1 {
    margin: 0.5rem 0 0;
    font-size: clamp(1.95rem, 4.4vw, 3.3rem);
    line-height: 1.06;
    color: #fff;
}

.hero-subline {
    margin-top: 1rem;
    color: var(--text-soft);
    max-width: 72ch;
    line-height: 1.65;
}

.hero-facts {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem;
}

.fact-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(158, 196, 217, 0.4);
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    background: linear-gradient(135deg, rgba(5, 37, 61, 0.62), rgba(0, 25, 41, 0.4));
    color: var(--text-main);
    font-size: 0.9rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.section-title {
    margin: 2.2rem 0 1rem;
    font-size: clamp(1.45rem, 2.7vw, 2rem);
    color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.1rem;
}

.project-card {
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(5, 37, 61, 0.88), rgba(0, 15, 27, 0.9));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}

.project-image-wrap {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(158, 196, 217, 0.16), rgba(0, 25, 41, 0.72));
    padding: 1rem;
}

.project-image-wrap img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}

.project-body {
    padding: 1.1rem 1rem 1.2rem;
}

.project-body h3 {
    margin: 0;
    color: #fff;
    font-size: 1.3rem;
}

.project-type {
    margin: 0.42rem 0 0;
    color: var(--highlight);
    font-size: 0.92rem;
}

.project-description {
    margin: 0.8rem 0 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.button-row {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.btn {
    display: inline-block;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 0.95rem;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn-primary {
    background: linear-gradient(135deg, #e8901c, #d56b0f);
    border-color: rgba(232, 144, 28, 1);
    color: #1e1203;
    font-weight: 700;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.07);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.34);
    border-color: rgba(158, 196, 217, 0.9);
}

.section-panel {
    margin-top: 2rem;
    border-radius: 16px;
    border: 1px solid var(--panel-border);
    background: var(--panel);
    padding: 1.2rem 1rem;
}

.section-panel .section-title {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.section-panel p,
.legal-content p,
.legal-content li {
    color: var(--text-soft);
    line-height: 1.7;
}

.section-panel a,
.legal-content a {
    color: var(--highlight);
}

.legal-content {
    border-radius: 16px;
    border: 1px solid var(--panel-border);
    background: var(--panel);
    padding: 1.2rem 1rem;
}

.legal-content h1 {
    margin-top: 0;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.legal-content h2 {
    margin-top: 1.5rem;
    color: #fff;
}

.legal-content ul {
    padding-left: 1.2rem;
}

.game-hero {
    margin-top: 0.2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 1rem;
    padding: 0;
}

.game-hero h1 {
    margin-top: 0.35rem;
}

.game-hero p {
    color: var(--text-soft);
    line-height: 1.65;
}

.game-cover {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    align-self: center;
    justify-self: center;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.65rem;
    padding: 0;
    margin: 1rem 0 0;
    list-style: none;
}

.feature-list li {
    border: 1px solid rgba(158, 196, 217, 0.24);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.23);
    padding: 0.7rem 0.8rem;
    color: var(--text-main);
}

.game-media-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.8rem;
}

.game-media-grid img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(158, 196, 217, 0.2);
    display: block;
}

.legal-note {
    margin-top: 0.9rem;
    margin-bottom: 0;
    font-size: 0.88rem;
    color: var(--text-soft);
    opacity: 0.8;
    line-height: 1.5;
}

.legal-note a {
    color: var(--highlight);
}

.legal-note-outside {
    margin-top: 0.75rem;
    padding: 0 0.2rem;
}

.tech-form {
    margin-top: 1rem;
    display: grid;
    gap: 0.5rem;
    max-width: 460px;
}

.tech-form label {
    font-size: 0.92rem;
    color: var(--text-main);
}

.tech-form input {
    width: 100%;
    border: 1px solid rgba(158, 196, 217, 0.35);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    padding: 0.6rem 0.7rem;
}

.tech-form button {
    margin-top: 0.5rem;
    justify-self: start;
}

.status-message {
    margin-top: 1rem;
    margin-bottom: 0;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    font-size: 0.95rem;
}

.status-success {
    border: 1px solid rgba(90, 185, 120, 0.6);
    background: rgba(25, 90, 40, 0.25);
    color: #9be2af;
}

.status-error {
    border: 1px solid rgba(214, 98, 98, 0.6);
    background: rgba(110, 25, 25, 0.25);
    color: #ffb1b1;
}

.site-footer {
    width: min(1160px, 92vw);
    margin: 1.4rem auto 1rem;
    padding: 0.95rem 0;
    border-top: 1px solid rgba(158, 196, 217, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.site-footer p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--highlight);
    text-decoration: none;
}

@media (max-width: 760px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand {
        gap: 0.7rem;
    }

    .brand-wordmark {
        width: 114px;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-facts {
        justify-content: flex-start;
    }

    .game-hero {
        grid-template-columns: 1fr;
    }
}
