:root {
    --bg: #0f0f0f;
    --surface: #171717;
    --surface-2: #1f1f1f;
    --text: #ededed;
    --muted: #9ca3af;
    --accent: #3b82f6;
    --accent-dark: #2563eb;
    --border: #2b2b2b;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.narrow {
    width: min(700px, 92%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background: rgba(15, 15, 15, 0.92);
    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.logo img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #2f2f2f;
}

.main-nav {
    display: flex;
    gap: 1rem;
}

.main-nav a {
    color: var(--muted);
    transition: color 0.25s ease;
}

.main-nav a:hover {
    color: var(--accent);
}

.hero {
    min-height: 72vh;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.2), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.18), transparent 40%),
        linear-gradient(180deg, #0f0f0f 0%, #0b0b0b 100%);
}

.particles {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 0);
    background-size: 28px 28px;
    opacity: 0.18;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    from { transform: translateY(0); }
    to { transform: translateY(-28px); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

h1 {
    font-size: clamp(2.1rem, 5vw, 3.7rem);
    margin-bottom: 0.4rem;
}

.tagline,
.section-intro {
    color: var(--muted);
}

.section {
    padding: 4rem 0;
}

.section-muted {
    background: #131313;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem;
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.card:hover {
    border-color: #3a3a3a;
    transform: translateY(-2px);
}

.featured-game {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1.4fr 2fr;
    align-items: center;
}

.featured-game img {
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.thumb-skeleton {
    position: relative;
    overflow: hidden;
    background: #1b1b1b;
}

.thumb-skeleton::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: shimmer 1.4s infinite;
}

.thumb-skeleton.loaded::before {
    display: none;
}

@keyframes shimmer {
    to { transform: translateX(100%); }
}

.btn {
    border: 0;
    cursor: pointer;
    border-radius: 10px;
    padding: 0.72rem 1.1rem;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: scale(1.02);
}

.btn-primary {
    background: var(--accent);
    color: #001814;
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid #343434;
}

.games-grid,
.updates-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.game-card {
    padding: 0;
    overflow: hidden;
}

.game-card img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.play-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.itch-badge {
    border: 1px solid #3f3f3f;
    border-radius: 999px;
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    color: #cbd5e1;
    background: #121212;
}

.game-card-body {
    padding: 1rem;
}

.genre,
.muted,
.update-date {
    color: var(--muted);
    font-size: 0.93rem;
}

.player-wrap {
    position: relative;
    margin-top: 1.2rem;
    padding: 0;
    overflow: hidden;
}

.player-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #050505;
}

.ratio-16x9 {
    aspect-ratio: 16 / 9;
}

.game-loader {
    position: absolute;
    inset: 0;
    display: none;
    place-content: center;
    gap: 0.75rem;
    text-align: center;
    background: rgba(8, 8, 8, 0.92);
}

.game-loader.active {
    display: grid;
}

.spinner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid #2f2f2f;
    border-top-color: var(--accent);
    margin: 0 auto;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.game-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.game-meta-grid {
    margin-top: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.redirect-panel {
    margin-top: 1rem;
    display: grid;
    gap: 0.9rem;
    justify-items: start;
}

.contact-form {
    display: grid;
    gap: 0.72rem;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #333;
    border-radius: 10px;
    background: #111;
    color: var(--text);
    padding: 0.72rem;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(59, 130, 246, 0.4);
    border-color: var(--accent);
}

.status-msg {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #dbeafe;
    padding: 0.72rem;
    border-radius: 10px;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.2rem 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
}

.footer-brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #2f2f2f;
    object-fit: cover;
}

.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.admin-body {
    background: #0d0d0d;
}

.admin-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    text-align: left;
    border-bottom: 1px solid #2a2a2a;
    padding: 0.65rem 0.45rem;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.checkbox-line input {
    width: auto;
}

.admin-actions {
    display: flex;
    gap: 0.7rem;
    justify-content: flex-end;
}

.btn-lg {
    min-height: 50px;
    padding: 0.8rem 1.25rem;
}

@media (max-width: 780px) {
    .featured-game {
        grid-template-columns: 1fr;
    }

    .main-nav {
        font-size: 0.92rem;
        gap: 0.7rem;
    }

    .player-wrap iframe {
        min-height: 320px;
    }

    .btn {
        min-height: 44px;
    }
}

