/* ===========================
   Tokens & Reset
   =========================== */
:root {
    --ink-950: #f4f2ff;
    --ink-800: #dad5ee;
    --ink-700: #bbb3d8;
    --sand-50: #121520;
    --sand-100: #1a1f2c;
    --sand-200: #23293a;
    --sand-300: #30384d;
    --sage-400: #61b7aa;
    --sage-500: #4f9f95;
    --coral-400: #ff8c6d;
    --coral-500: #f27250;
    --amber-400: #f8bd62;
    --amber-500: #ef9f3d;

    --bg-page: #0c0f18;
    --bg-surface: rgba(24, 29, 43, 0.88);
    --bg-surface-strong: #1b2131;
    --bg-dark: #080b13;

    --text-primary: #f4f2ff;
    --text-muted: #b9b5cc;
    --text-soft: #9f9ab8;
    --text-inverse: #f8f7ff;

    --gradient-brand: #f2825d;
    --gradient-hero: #101624;
    --hero-image: url('../images/hero/home-hero.webp');
    --gradient-games: #121827;
    --gradient-news: #120f1c;

    --font-display: 'Hind', 'Segoe UI', sans-serif;
    --font-body: 'Hind', 'Segoe UI', sans-serif;

    --shadow-sm: 0 10px 20px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 16px 34px rgba(0, 0, 0, 0.34);
    --shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.42);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --transition-fast: 180ms ease;
    --transition-base: 280ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-page);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: none;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    background-image: none;
    background-size: 18px 18px;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 clamp(1.1rem, 3vw, 2rem);
}

section {
    position: relative;
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.3vw, 3.2rem);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: clamp(1rem, 2.1vw, 1.2rem);
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(12, 16, 28, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar .container {
    max-width: none;
    padding-left: 0.75rem;
    padding-right: 2rem;
}

.navbar.scrolled {
    background: rgba(9, 13, 23, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    min-height: 84px;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    height: 66px;
    overflow: visible;
}

.logo-image {
    height: 66px;
    width: auto;
    transform: scale(1.44);
    transform-origin: left center;
    transition: transform var(--transition-fast);
}

.logo:hover .logo-image {
    transform: scale(1.49) rotate(-2deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link {
    color: rgba(255, 245, 234, 0.85);
    text-decoration: none;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    position: relative;
    transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 5px;
    height: 2px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0.3rem;
}

.mobile-menu-toggle span {
    width: 26px;
    height: 2px;
    border-radius: 99px;
    background: var(--text-inverse);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   Hero
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 92px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-color: var(--gradient-hero);
    background-image:
        linear-gradient(to bottom, rgba(8, 12, 22, 0.18), rgba(8, 12, 22, 0.88)),
        var(--hero-image);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(242, 130, 93, 0.12), rgba(8, 12, 22, 0.56) 58%, rgba(8, 12, 22, 0.82));
}

.hero-background::after {
    content: '';
    position: absolute;
    width: clamp(240px, 45vw, 580px);
    aspect-ratio: 1;
    right: -8%;
    top: 8%;
    background: none;
    filter: blur(6px);
    animation: driftOrb 10s ease-in-out infinite alternate;
}

@keyframes driftOrb {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(22px);
    }
}

.hero-content {
    max-width: 860px;
    text-align: center;
    animation: riseIn 650ms ease;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    margin-bottom: 0.9rem;
}

.hero-title-main {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 7.5vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--text-inverse);
}

.hero-title-sub {
    display: block;
    margin-top: 0.55rem;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 700;
    color: #79c6b8;
}

.hero-description {
    max-width: 660px;
    margin: 1.4rem auto 0;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2.1rem;
}

.btn {
    border: 0;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff9f3;
    box-shadow: 0 12px 26px rgba(235, 101, 68, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(235, 101, 68, 0.42);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-inverse);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: var(--shadow-sm);
}

.btn-small {
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 1.4rem;
    transform: translateX(-50%);
    opacity: 0.75;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px);
    }
    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

.scroll-arrow {
    width: 26px;
    height: 26px;
    border-left: 2px solid rgba(255, 255, 255, 0.55);
    border-bottom: 2px solid rgba(255, 255, 255, 0.55);
    transform: rotate(-45deg);
}

/* ===========================
   Games
   =========================== */
.games {
    background: var(--gradient-games);
    border-top: 1px solid rgba(234, 178, 99, 0.35);
    border-bottom: 1px solid rgba(234, 178, 99, 0.35);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: clamp(1rem, 2.8vw, 1.8rem);
}

.game-card {
    background: var(--bg-surface);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: rgba(235, 101, 68, 0.4);
}

.game-image {
    position: relative;
    height: 290px;
    overflow: hidden;
    background: #0d1320;
}

.game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base), filter var(--transition-base);
}

.game-release-badge {
    position: absolute;
    top: 0.85rem;
    right: -2.7rem;
    z-index: 3;
    width: 9.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    padding: 0.28rem 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.62rem;
    line-height: 1.02;
    font-weight: 700;
    color: #fff8ef;
    text-align: center;
    transform: rotate(45deg);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.game-release-badge .badge-month {
    font-size: 0.66rem;
    font-weight: 700;
}

.game-release-badge .badge-day {
    font-size: 0.82rem;
    font-weight: 700;
}

.game-release-badge.new {
    background: linear-gradient(135deg, #2fd69e, #1fae78);
    padding: 0.28rem 0.5rem;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
}

.game-release-badge.coming-soon {
    background: linear-gradient(135deg, #f8a124, #eb6a00);
}

.game-release-badge.new .badge-day {
    font-size: inherit;
    letter-spacing: 0.08em;
}

.game-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: clamp(3.6rem, 9vw, 4.8rem);
    background: #223143;
    transition: transform var(--transition-base), filter var(--transition-base);
}

.game-icon {
    filter: drop-shadow(0 6px 10px rgba(43, 32, 20, 0.2));
}

.game-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    background: linear-gradient(to bottom, rgba(2, 4, 10, 0.4), rgba(2, 4, 10, 0.88));
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.game-card:hover .game-overlay {
    opacity: 1;
    pointer-events: auto;
}

.game-card:focus-within .game-overlay {
    opacity: 1;
    pointer-events: auto;
}

.game-card:hover .game-thumb {
    transform: scale(1.04);
    filter: brightness(0.42);
}

.game-card:focus-within .game-thumb {
    transform: scale(1.04);
    filter: brightness(0.42);
}

.game-overlay-content {
    text-align: center;
    width: min(100%, 420px);
}

.game-overlay-title {
    font-family: var(--font-display);
    color: #fff;
    font-size: clamp(1.25rem, 2.2vw, 1.95rem);
    line-height: 1.18;
    margin-bottom: 0.55rem;
}

.game-overlay-text {
    color: rgba(255, 255, 255, 0.87);
    font-size: 1.05rem;
    line-height: 1.45;
    margin-bottom: 1.05rem;
}

.game-overlay-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.btn-overlay {
    border-radius: 2px;
    padding: 0.7rem 1rem;
    min-width: 132px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn-overlay-primary {
    background: var(--gradient-brand);
    color: #fff9f3;
    border: 1px solid transparent;
    box-shadow: 0 12px 26px rgba(235, 101, 68, 0.35);
}

.btn-overlay-primary:hover {
    background: var(--gradient-brand);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(235, 101, 68, 0.42);
}

.btn-play,
.btn-overlay-ghost {
    background: rgba(8, 10, 15, 0.45);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.btn-play:hover,
.btn-overlay-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-play:focus-visible,
.btn-overlay:focus-visible {
    outline: 2px solid #ffd9ad;
    outline-offset: 2px;
}

.btn-play {
    border-radius: 2px;
    padding: 0.7rem 1rem;
    min-width: 132px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 700;
    border-width: 1px;
    border-style: solid;
}

.game-info {
    padding: 1.2rem 1.2rem 1.3rem;
}

.game-title {
    color: var(--text-inverse);
    font-family: var(--font-display);
    font-size: 1.45rem;
    margin-bottom: 0.3rem;
}

.game-description {
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.game-tag {
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffd9ad;
    background: rgba(242, 114, 80, 0.14);
    border: 1px solid rgba(242, 114, 80, 0.35);
}

/* ===========================
   Games Portfolio Page
   =========================== */
.games-page .games-portfolio {
    padding-top: clamp(6.5rem, 14vw, 8rem);
}

.portfolio-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
    margin-bottom: 1.35rem;
}

.portfolio-filter {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 0.42rem 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 247, 238, 0.86);
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.portfolio-filter:hover,
.portfolio-filter.active {
    background: rgba(242, 130, 93, 0.18);
    border-color: rgba(242, 130, 93, 0.55);
    color: #fff;
}

.games-portfolio-grid .game-card {
    min-height: 100%;
}

.portfolio-load-more-wrap {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.portfolio-load-more-wrap.hidden {
    display: none;
}

#portfolioSentinel {
    width: 100%;
    height: 1px;
}

/* ===========================
   About
   =========================== */
.about {
    background: transparent;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(1.4rem, 4vw, 3rem);
    align-items: start;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.about-stats {
    margin-top: 1.9rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
}

.stat-item {
    text-align: center;
    border-radius: var(--radius-md);
    padding: 1rem 0.8rem;
    color: var(--text-inverse);
    background: #222a3b;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast);
}

.stat-item:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.15rem;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.92;
}

.about-features {
    display: grid;
    gap: 0.95rem;
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
}

.feature-card {
    background: var(--bg-surface-strong);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-sm);
    padding: 1.2rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-base), border-color var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(75, 141, 124, 0.4);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.65rem;
}

.feature-title {
    color: var(--text-inverse);
    font-size: 1.06rem;
    margin-bottom: 0.35rem;
}

.feature-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===========================
   News
   =========================== */
.news {
    background: var(--gradient-news);
}

.news .section-title,
.news .section-subtitle,
.news .news-date,
.news .news-title,
.news .news-excerpt,
.news .news-link {
    color: var(--text-inverse);
}

.news .section-subtitle {
    color: rgba(255, 246, 238, 0.74);
}

.news-grid {
    display: grid;
    gap: clamp(1rem, 3vw, 1.5rem);
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.news-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(24, 29, 43, 0.9);
    backdrop-filter: blur(10px);
    transition: transform var(--transition-base), border-color var(--transition-fast), box-shadow var(--transition-base);
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 193, 136, 0.58);
    box-shadow: 0 24px 44px rgba(10, 7, 15, 0.3);
}

.news-image {
    height: 170px;
    background: #24364a;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 3.5rem;
}

.news-content {
    padding: 1.2rem;
}

.news-date {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffd8ad;
}

.news-title {
    margin: 0.5rem 0 0.55rem;
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1.24;
}

.news-excerpt {
    color: rgba(255, 246, 238, 0.82);
    margin-bottom: 0.75rem;
}

.news-link {
    color: #ffd4a5;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.news-link:hover {
    color: #ffffff;
    border-color: currentColor;
}

/* ===========================
   News Article Page
   =========================== */
.news-page .news-article-page {
    padding: clamp(6.5rem, 14vw, 8rem) 0 clamp(3rem, 8vw, 5rem);
    background: var(--gradient-news);
}

.news-article {
    max-width: 860px;
    margin: 0 auto;
}

.news-back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #ffd4a5;
    text-decoration: none;
    font-weight: 700;
}

.news-back-link:hover {
    color: #ffffff;
}

.news-article-hero {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 1rem;
    background: rgba(24, 29, 43, 0.9);
}

.news-article-image {
    width: 100%;
    height: min(46vw, 430px);
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.news-article-title {
    text-align: left;
    margin-top: 0.4rem;
}

.news-article-content {
    margin-top: 0.9rem;
    color: rgba(255, 246, 238, 0.9);
    line-height: 1.75;
    font-size: 1.04rem;
}

.news-article-content p {
    margin-bottom: 0.95rem;
}

.news-article-content h2,
.news-article-content h3 {
    margin: 1.25rem 0 0.55rem;
    color: #fff;
}

.news-article-content a {
    color: #ffd4a5;
}

.news-article-content a:hover {
    color: #fff;
}

/* ===========================
   Contact
   =========================== */
.contact {
    background: #0f1523;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.2rem, 4vw, 3rem);
    align-items: start;
}

.contact-description {
    color: var(--text-muted);
    font-size: 1.08rem;
    margin: 1rem 0 1.6rem;
}

.contact-details {
    display: grid;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    padding: 0.85rem;
    border-radius: var(--radius-md);
    background: rgba(29, 35, 50, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-base), border-color var(--transition-fast);
}

.contact-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(235, 101, 68, 0.35);
}

.contact-icon {
    font-size: 1.8rem;
}

.contact-text h4 {
    font-size: 0.95rem;
    color: var(--text-inverse);
}

.contact-text a {
    color: var(--coral-500);
    text-decoration: none;
    font-weight: 600;
}

.contact-text a:hover {
    color: var(--sage-500);
}

.contact-form {
    border-radius: var(--radius-lg);
    padding: clamp(1.1rem, 2.5vw, 1.5rem);
    background: rgba(26, 32, 46, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 0.95rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
    color: var(--text-inverse);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.72rem 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(11, 16, 29, 0.9);
    color: var(--text-inverse);
    font-family: var(--font-body);
    font-size: 0.98rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(235, 101, 68, 0.7);
    box-shadow: 0 0 0 4px rgba(235, 101, 68, 0.2);
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: #0a101d;
    color: rgba(255, 247, 238, 0.85);
    padding: clamp(2.5rem, 6vw, 4rem) 0 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: grid;
    gap: clamp(1.2rem, 3vw, 2rem);
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-bottom: 1.7rem;
}

.footer-logo {
    margin-bottom: 0.7rem;
}

.logo-image-footer {
    width: auto;
    height: 110px;
}

.footer-description {
    color: rgba(255, 247, 238, 0.7);
    margin-bottom: 0.9rem;
}

.social-links {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 247, 238, 0.85);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.social-link:hover {
    background: rgba(242, 114, 80, 0.18);
    color: #ffd9ad;
    border-color: rgba(242, 114, 80, 0.45);
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: #fff8f0;
    margin-bottom: 0.55rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.45rem;
}

.footer-links a {
    text-decoration: none;
    color: rgba(255, 247, 238, 0.75);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: #ffcf98;
}

.footer-newsletter-text {
    color: rgba(255, 247, 238, 0.72);
    margin-bottom: 0.55rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.52rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    color: #fff8f0;
    font-family: var(--font-body);
}

.newsletter-form input::placeholder {
    color: rgba(255, 247, 238, 0.62);
}

.newsletter-form input:focus {
    outline: none;
    border-color: #f7b261;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.35rem;
}

.footer-disclaimer {
    color: rgba(255, 247, 238, 0.62);
    font-size: 0.88rem;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 900px) {
    .about-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .logo {
        height: 46px;
    }

    .logo-image {
        height: 46px;
        max-width: min(62vw, 210px);
        transform: none;
    }

    .logo:hover .logo-image {
        transform: rotate(-1deg);
    }

    .nav-wrapper {
        min-height: 68px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        padding: 1rem;
        background: rgba(10, 14, 24, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition-base), opacity var(--transition-base);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .game-image {
        height: 270px;
    }

    .game-overlay-text {
        font-size: 0.95rem;
        margin-bottom: 0.85rem;
    }

    .btn-overlay {
        min-width: 122px;
        padding: 0.62rem 0.85rem;
    }

    .game-release-badge {
        right: -3.15rem;
        width: 8.4rem;
    }

    .game-release-badge .badge-month {
        font-size: 0.6rem;
    }

    .game-release-badge .badge-day {
        font-size: 0.72rem;
    }

    .nav-link {
        border-radius: 10px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .games-grid,
    .news-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .logo {
        height: 42px;
    }

    .logo-image {
        height: 42px;
        max-width: min(58vw, 190px);
    }

    .section-title {
        font-size: 1.9rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
        scroll-behavior: auto !important;
    }
}
