:root {
    --panel-strong: rgba(22, 12, 49, 0.96);
    --line: rgba(255, 255, 255, 0.12);
    --text: #f7f2ff;
    --muted: #c9bbff;
    --cyan: #61f4ff;
    --pink: #ff4fb8;
    --amber: #ffbf4d;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(255, 79, 184, 0.22), transparent 30%),
        radial-gradient(circle at 20% 20%, rgba(97, 244, 255, 0.18), transparent 25%),
        radial-gradient(circle at 80% 0%, rgba(255, 191, 77, 0.15), transparent 20%),
        linear-gradient(180deg, #11031f 0%, #05010d 55%, #020106 100%);
    font-family: "Orbitron", sans-serif;
    overflow-x: hidden;
}

button,
iframe {
    font: inherit;
}

button[hidden] {
    display: none !important;
}

.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 50%, transparent 50%),
        linear-gradient(90deg, rgba(97, 244, 255, 0.03), rgba(255, 79, 184, 0.03), rgba(255, 191, 77, 0.03));
    background-size: 100% 4px, 6px 100%;
    opacity: 0.24;
    mix-blend-mode: screen;
}

.app-shell {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0 72px;
}

.hero,
.status-strip article,
.game-card,
.modal__panel,
.noscript-banner {
    backdrop-filter: blur(14px);
}

.hero {
    position: relative;
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(22, 12, 49, 0.92), rgba(9, 6, 23, 0.82));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -35% 45%;
    height: 260px;
    background: radial-gradient(circle, rgba(97, 244, 255, 0.28), transparent 62%);
    pointer-events: none;
}

.hero__eyebrow,
.section-heading__eyebrow,
.modal__eyebrow {
    margin: 0 0 14px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--cyan);
    font-size: 0.78rem;
}

.hero h1,
.section-heading h2,
.game-card strong {
    font-family: "Press Start 2P", cursive;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(255, 79, 184, 0.35);
}

.hero__copy {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 1rem;
}

.hero__actions,
.modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__actions {
    margin-top: 28px;
}

.action-button,
.icon-button,
.game-card__launch,
.game-card__window,
.game-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--text);
}

.action-button,
.icon-button,
.game-card__launch,
.game-card__window {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.action-button,
.icon-button {
    padding: 14px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.action-button:hover,
.icon-button:hover,
.game-card:hover,
.game-card__launch:hover,
.game-card__window:hover {
    transform: translateY(-2px);
    border-color: rgba(97, 244, 255, 0.5);
}

.action-button--primary {
    background: linear-gradient(90deg, rgba(255, 79, 184, 0.24), rgba(97, 244, 255, 0.16));
}

.status-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 28px 0 0;
}

.status-strip article {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(16, 9, 35, 0.8);
    box-shadow: var(--shadow);
}

.status-strip i {
    color: var(--amber);
    font-size: 1.4rem;
}

.status-strip h2 {
    margin: 18px 0 10px;
    font-size: 1rem;
}

.status-strip p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.96rem;
}

.game-section {
    margin-top: 40px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 2rem);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-height: 280px;
    padding: 24px;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 34%),
        linear-gradient(135deg, rgba(20, 10, 42, 0.94), rgba(7, 5, 19, 0.88));
    text-align: left;
    box-shadow: var(--shadow);
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.game-card--featured {
    border-color: rgba(255, 191, 77, 0.38);
    box-shadow: 0 22px 70px rgba(255, 79, 184, 0.18);
}

.game-card__topline,
.game-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.game-card__badge,
.game-card__launch {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.game-card__badge {
    padding: 7px 12px;
    background: rgba(97, 244, 255, 0.12);
    color: var(--cyan);
}

.game-card__window {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    flex: 0 0 auto;
}

.game-card__icon {
    font-size: 2rem;
    color: var(--pink);
}

.game-card strong {
    font-size: 1rem;
    line-height: 1.6;
}

.game-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.94rem;
}

.game-card__footer {
    margin-top: auto;
}

.game-card__launch {
    padding: 10px 14px;
    background: rgba(255, 191, 77, 0.12);
    color: var(--amber);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
}

.modal[hidden] {
    display: none;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 2, 9, 0.78);
}

.modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(90vw, 2200px);
    height: min(97dvh, 1270px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background: var(--panel-strong);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.58);
    overflow: hidden;
}

.modal.modal--expanded .modal__panel {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
}

.modal__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 5, 21, 0.94);
}

.modal__header h2 {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.35rem);
}

.modal__frame-shell {
    flex: 1;
    min-height: 0;
    background: #040208;
}

.modal__frame-shell iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #040208;
}

.icon-button--danger {
    background: rgba(255, 79, 184, 0.12);
}

.noscript-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 79, 184, 0.36);
    border-radius: 16px;
    background: rgba(20, 10, 42, 0.94);
    color: var(--text);
    z-index: 30;
}

.site-footer {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 32px));
    margin: 20px auto 36px;
    text-align: center;
}

.site-footer__link {
    display: inline-block;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.82rem;
    transition: color 150ms ease, text-shadow 150ms ease;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
    color: var(--cyan);
    text-shadow: 0 0 12px rgba(97, 244, 255, 0.35);
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .app-shell,
    .site-footer {
        width: min(100% - 20px, 1200px);
    }

    .app-shell {
        padding-top: 18px;
    }

    .hero {
        padding: 28px 20px;
    }

    .status-strip {
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 10px;
    }
}

@media (max-width: 700px) {
    .hero__eyebrow,
    .section-heading__eyebrow,
    .modal__eyebrow {
        font-size: 0.68rem;
    }

    .hero h1 {
        line-height: 1.24;
    }

    .hero__copy,
    .game-card p,
    .status-strip p {
        font-size: 0.9rem;
    }

    .modal__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .modal__actions,
    .hero__actions,
    .game-card__footer {
        width: 100%;
    }

    .icon-button,
    .action-button,
    .game-card__launch {
        justify-content: center;
        width: 100%;
    }

    .game-card__topline {
        align-items: flex-start;
    }

    .game-card__window {
        width: 46px;
        height: 46px;
    }
}
