

/* ---------- Design Tokens ---------- */
:root {
    /* Brand palette */
    --bg-page: #0d0d16;
    --bg-elevated: #060816;
    --bg-card: #0f172a;
    --bg-dark: #050816;

    --purple-deep: #5A10E4;
    --purple: #7c3aed;
    --purple-light: #8b5cf6;
    --purple-bright: #a855f7;

    --accent-yellow: #FECB01;
    --accent-amber: #eab308;
    --accent-gold: #f9d800;

    --text: #ffffff;
    --text-muted: #9ca3af;
    --text-soft: #cfcfcf;
    --text-faded: rgba(255, 255, 255, 0.78);

    --border-soft: rgba(255, 255, 255, 0.08);
    --border-firm: rgba(255, 255, 255, 0.18);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;

    --header-h: 110px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Single Universal Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-page);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* =============================================================
   HEADER
   ============================================================= */
.header {
    width: 100%;
    background: var(--purple-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.container {
    max-width: 1400px;
    margin: auto;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.logo-icon {
    width: 200px;
    height: 100px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    object-position: left center;
    display: block;
}

.navbar {
    display: flex;
    gap: 25px;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s var(--ease);
}

.navbar a:hover {
    color: var(--accent-yellow);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box {
    width: 240px;
    height: 40px;
    background: #1a1a2b;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.search-box:focus-within {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 3px rgba(254, 203, 1, 0.15);
}

.search-box i {
    color: var(--accent-yellow);
    font-size: 15px;
    min-width: 16px;
    text-align: center;
}

.search-box .search-icon-gradient {
    width: 18px;
    height: 18px;
    min-width: 18px;
    flex-shrink: 0;
}

.search-box input {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    margin-left: 10px;
    font-size: 14px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

/* Clear (×) button inside the input */
.search-box .search-clear {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    font-size: 12px;
    padding: 4px 6px;
    border-radius: 50%;
    line-height: 0;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.search-box .search-clear .close-icon {
    width: 12px;
    height: 12px;
    display: block;
}
.search-box .search-clear:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.search-box .search-clear[hidden] { display: none; }

/* Search results dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-width: calc(100vw - 32px);
    max-height: 70vh;
    overflow-y: auto;
    background: #1a1a2b;
    border: 1px solid rgba(254, 203, 1, 0.18);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    z-index: 1000;
    animation: searchDrop 160ms ease-out;
}
@keyframes searchDrop {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.search-results[hidden] { display: none; }

.search-results::-webkit-scrollbar { width: 6px; }
.search-results::-webkit-scrollbar-thumb { background: rgba(254, 203, 1, 0.3); border-radius: 4px; }

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: background 0.15s var(--ease), transform 0.15s var(--ease);
    cursor: pointer;
}
.search-item:hover,
.search-item:focus-visible {
    background: rgba(254, 203, 1, 0.08);
    transform: translateX(2px);
    outline: none;
}
.search-item img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #0f0f1a;
}
.search-item-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.search-item-title {
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-item-title mark {
    background: rgba(254, 203, 1, 0.25);
    color: #fecb01;
    padding: 0 2px;
    border-radius: 3px;
}
.search-item-tags {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-item-arrow {
    color: rgba(254, 203, 1, 0.5);
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
.search-empty {
    padding: 24px 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}
.search-empty strong { color: var(--accent-yellow, #fecb01); }

/* Make sure the search container can anchor the dropdown */
.header-right {
    position: relative;
}

@media (max-width: 600px) {
    .search-results { right: -8px; width: calc(100vw - 32px); }
    .search-item img { width: 40px; height: 40px; }

}
.menu-btn {
    display: none;
    background: var(--accent-yellow);
    padding: 7px 10px;
    border: none;
    border-radius: 11px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}
.menu-btn .menu-icon {
    width: 22px;
    height: 22px;
    display: block;
    stroke: #1a1a2b;
}
.menu-btn:hover .menu-icon { transform: scale(1.05); }
.menu-btn .menu-icon { transition: transform 0.2s var(--ease); }

/* =============================================================
   SIDEBAR (mobile menu)
   ============================================================= */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: #11111d;
    z-index: 1001;
    transition: left 0.4s var(--ease);
    padding: 20px;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    margin-bottom: 30px;
}

.sidebar-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    line-height: 0;
    transition: color 0.2s var(--ease);
}
.sidebar-header button:hover { color: var(--accent-yellow); }
.sidebar-header button .close-icon {
    width: 22px;
    height: 22px;
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
    z-index: 1000;
}

.sidebar-overlay.active {
    visibility: visible;
    opacity: 1;
}

/* =============================================================
   FEATURED SLIDER
   ============================================================= */
.featured-slider {
    margin: 30px 40px;
    position: relative;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),       /* top inner highlight */
        inset 0 -1px 0 rgba(0, 0, 0, 0.28),            /* bottom inner shadow */
        0 0 0 1px rgba(168, 85, 247, 0.55),            /* sharp purple ring */
        0 0 0 4px rgba(168, 85, 247, 0.15),            /* soft outer purple ring */
        0 0 30px rgba(168, 85, 247, 0.25),             /* purple glow */
        0 25px 60px rgba(0, 0, 0, 0.55);               /* drop shadow */
}

/* Yellow L-shaped corner accent — top-left */
.featured-slider::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 18px;
    width: 22px;
    height: 22px;
    border-top: 2px solid var(--accent-yellow);
    border-left: 2px solid var(--accent-yellow);
    border-top-left-radius: 4px;
    z-index: 10;
    pointer-events: none;
}

/* Yellow L-shaped corner accent — bottom-right */
.featured-slider::after {
    content: '';
    position: absolute;
    bottom: 18px;
    right: 18px;
    width: 22px;
    height: 22px;
    border-bottom: 2px solid var(--accent-yellow);
    border-right: 2px solid var(--accent-yellow);
    border-bottom-right-radius: 4px;
    z-index: 10;
    pointer-events: none;
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
    text-decoration: none;
    color: inherit;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Renamed from .overlay → .slide-overlay to avoid collision with sidebar overlay */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.75),
        rgba(0, 0, 0, 0.25),
        transparent
    );
    pointer-events: none;
}

.featured-content {
    position: absolute;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%);
    color: #fff;
    z-index: 5;
    text-align: center;
}

.featured-content h1 {
    font-size: 52px;
    margin-bottom: 10px;
}

.featured-content p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ddd;
}

.play-btn {
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    border: none;
    padding: 16px 36px;
    border-radius: 14px;
    cursor: pointer;
    background: linear-gradient(135deg, #FECB01, #f9d800);
    color: var(--purple-deep);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.3px;
    box-shadow: 0 0 24px rgba(254, 203, 1, 0.55);
    transition: background 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}

.play-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 6px 32px rgba(168, 85, 247, 0.65);
}

.play-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 6;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s var(--ease), background 0.3s var(--ease);
}

.dot.active {
    background: var(--purple);
    opacity: 1;
}

/* =============================================================
   GAME RAILS (Action / Racing / Adventure)
   ============================================================= */
.game-section {
    margin-top: 30px;
}

/* Semantic section variants — share base styles but distinguishable */


.section-header {
    margin: 50px 40px 0 40px;
    color: #fff;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 800;
}

.slider-wrapper {
    position: relative;
    margin-top: 16px;
}

.game-row {
    margin: 30px 40px;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.game-row::-webkit-scrollbar {
    display: none;
}

.game-card {
    min-width: 300px;
    height: 170px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease);
}

.game-card:hover {
    transform: translateY(-4px);
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-btn {
    position: absolute;
    margin: 30px 40px;
    top: 50%;
    transform: translateY(-80%);
    width: 45px;
    height: 45px;
    border: none;
    cursor: pointer;
    z-index: 10;
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav-btn:hover {
    background: rgba(168, 85, 247, 0.95);
    transform: translateY(-80%) scale(1.08);
}

.nav-btn.prev {
    left: -20px;
}

.nav-btn.next {
    right: -20px;
}

/* =============================================================
   TOP GAMES GRID
   ============================================================= */
.top-games {
    padding: 20px 40px;
}

.top-games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.title-wrap h2 {
    font-size: 35px;
    line-height: 1;
    margin-bottom: 10px;
}

.title-wrap h2 span {
    color: var(--accent-yellow);
}

.title-wrap p {
    color: var(--text-muted);
    font-size: 18px;
}

.top-games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.top-game-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.top-game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.3);
}

.top-game-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.game-info {
    padding: 18px;
}

.game-info h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 14px;
}

/* =============================================================
   CATEGORIES
   ============================================================= */
.categories {
    margin: 60px 40px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
}

.title-box {
    display: flex;
    gap: 20px;
}

.title-box h2 {
    font-size: 35px;
    font-weight: 900;
    color: #fff;
}

.title-box h2 span {
    color: var(--accent-yellow);
}

.title-box p {
    margin-top: 10px;
    color: var(--text-soft);
    font-size: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.card {
    background: linear-gradient(180deg, #0c1025, #090d1e);
    border: 1px solid var(--border-soft);
    border-radius: 25px;
    padding: 35px 20px;
    text-align: center;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--purple-light);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.25);
}

.icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: transform 0.4s var(--ease);
}

.card:hover .icon {
    transform: scale(1.08) rotate(-4deg);
}

.icon i {
    font-size: 34px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.purple { background: linear-gradient(135deg, #7c3aed, #4c1d95); }
.blue   { background: linear-gradient(135deg, #2563eb, #1e3a8a); }
.orange { background: linear-gradient(135deg, #f97316, #9a3412); }
.green  { background: linear-gradient(135deg, #65a30d, #14532d); }
.pink   { background: linear-gradient(135deg, #ec4899, #831843); }
.cyan   { background: linear-gradient(135deg, #06b6d4, #164e63); }
.gold   { background: linear-gradient(135deg, #eab308, #713f12); }

.card h3 {
    margin-top: 25px;
    font-size: 22px;
    color: #fff;
}

.card p {
    margin-top: 10px;
    color: var(--text-soft);
    font-size: 18px;
}

.card a {
    width: 45px;
    height: 45px;
    margin: 20px auto 0;
    border: 2px solid var(--purple-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-bright);
    text-decoration: none;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.card a:hover {
    background: var(--purple-light);
    color: #fff;
}

/* =============================================================
   INTRO BLOCK (was: hero-section-2)
   ============================================================= */
.intro-block {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 24px;
    align-items: center;
    margin: 35px 60px;
}

.intro-block .intro-text h1 {
    font-size: 50px;
    font-weight: 1000;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #fff;
}

.intro-block .intro-text h1 span {
    color: var(--purple-deep);
}

.intro-block .intro-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #fff;
}

.intro-block .intro-image img {
    width: 100%;
    border-radius: 12px;
}

/* =============================================================
   ABOUT BLOCK (was: hero-section-2-extra)
   ============================================================= */
.about-block {
    position: relative;
    margin: 35px 60px;
    padding: 30px 15px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
    overflow: hidden;
}

.about-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.about-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
}

.about-block .about-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-block .about-content > p {
    position: relative;
    font-size: 17.5px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}

/* Small purple accent bar to the left of every paragraph — matches .accent-line */
.about-block .about-content > p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 4px;
    background: transparent;
}

/* =============================================================
   DEVICE BLOCK (was: glass-wrapper / glass-section)
   ============================================================= */
.device-block {
    background: transparent;
    padding: 20px 0;
    margin: 35px 0;
}

.device-card {
    position: relative;
    padding: 24px;
    margin: 0 60px;
    background: transparent;
    border-radius: 20px;
}

.device-card h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.device-card p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-faded);
}

/* =============================================================
   SIMPLE SECTION
   ============================================================= */
.simple-section {
    padding: 30px 60px;
    margin: 30px 60px;
    background: none;
}

.simple-section h2 {
    font-size: 35px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.simple-section h2 span {
    color: var(--accent-yellow);
}

.simple-section > p {
    font-size: 18px;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 14px;
}

.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bullet-list li {
    font-size: 17px;
    line-height: 1.6;
    color: #fff;
    padding-left: 28px;
    position: relative;
}

.bullet-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--accent-yellow);
    font-size: 20px;
}

/* =============================================================
   WHY BLOCK (was: premium-showcase)
   ============================================================= */
.why-block {
    background: var(--bg-dark);
    padding: 50px 60px;
    margin: 35px 60px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-soft);
}

.why-block .why-content {
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-heading {
    font-size: 35px;
    line-height: 1.1;
    color: #fff;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
}

.section-heading span {
    color: var(--accent-yellow);
}

.section-description,
.why-block p {
    position: relative;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17.5px;
    line-height: 1.85;
    padding-left: 16px;
    margin: 0;
    text-align: left;
}

/* Accent bar on the left — solid color, simple */
.section-description::before,
.why-block p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 4px;
    background: var(--purple-deep);
}

/* Hide stray <br> tags — flex gap handles vertical spacing */
.why-block br {
    display: none;
}

.gradient-divider {
    width: 60px;
    height: 3px;
    margin: auto;
    border-radius: 10px;
    background: var(--accent-yellow);
}

/* =============================================================
   CONTENT SECTIONS (article blocks)
   ============================================================= */
.content-section {
    margin: 35px 60px;
    padding: 0 20px 20px 20px;
}

/* Semantic article variants */
.content-section.online-games-article {
    padding-top: 30px;
}

.content-section.offline-games-article {
    padding-top: 30px;
}

.article-block {
    margin-bottom: 20px;
}

.article-block h2 {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 35px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.article-block .h2-text {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.accent-line {
    width: 8px;
    height: 45px;
    background: var(--accent-yellow);
    display: block;
    border-radius: 8px;
    flex-shrink: 0;
}

.highlight {
    color: var(--accent-yellow);
}

.article-block p {
    font-size: 18px;
    line-height: 1.6;
    color: #e7e7e7;
    margin-left: 24px;
    margin-bottom: 22px;
}

.article-block h3 {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    margin: 50px 0 20px 24px;
    padding-left: 16px;
    border-left: 3px solid var(--accent-yellow);
}

.article-block a {
    color: var(--accent-yellow);
    text-decoration: underline;
}

.multiplayer-io-image {
    display: block;
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    object-fit: cover;
}

/* =============================================================
   CTA SECTION (was: hero-4)
   ============================================================= */
.cta-section {
    position: relative;
    margin: 35px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 20px 24px;
}

.cta-card {
    position: relative;
    margin: 0 60px;
    background: transparent;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    padding: 30px;
    text-align: center;
}

.cta-title {
    font-size: clamp(1.4rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.12;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.cta-title .accent {
    color: var(--accent-yellow);
}

.cta-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
}

.cta-divider .line {
    width: 60px;
    height: 2px;
    background: var(--purple-deep);
}

.cta-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* =============================================================
   POPULAR GAMES CAROUSEL
   ============================================================= */
.popular-games {
    background: linear-gradient(180deg, #f9d800 0%, #e6b800 100%);
    padding: 48px 0 40px;
    overflow: hidden;
    position: relative;
}

.games__header {
    text-align: center;
    margin-bottom: 28px;
    padding: 0 20px;
}

.games__title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 900;
    color: #111;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.games__subtitle {
    font-size: 0.95rem;
    color: #444;
}

.games__slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 60px;
}

.games__arrow {
    position: absolute;
    z-index: 10;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #1a1a1a;
    color: #f5c800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: background 0.2s var(--ease), transform 0.15s var(--ease);
    flex-shrink: 0;
}

.games__arrow:hover {
    background: #333;
    transform: scale(1.08);
}

.games__arrow svg {
    width: 18px;
    height: 18px;
}

.games__arrow--left  { left: 12px; }
.games__arrow--right { right: 12px; }

.games__track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 4px 14px;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}

.games__track.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.games__track::-webkit-scrollbar {
    display: none;
}

/* Re-used .game-card here; combine the two declarations */
.games__track .game-card {
    position: relative;
    flex: 0 0 260px;
    height: 260px;
    border-radius: 14px;
    scroll-snap-align: start;
    min-width: auto;
    cursor: pointer;
}

.games__track .game-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}

.games__track .game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
    pointer-events: none;
}

.games__track .game-card:hover img {
    transform: scale(1.07);
}

.games__track .game-card.active {
    outline: 3px solid #1a1a1a;
    outline-offset: 2px;
}

.games__footer {
    text-align: center;
    margin-top: 28px;
}

.games__view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    color: #f5c800;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 26px;
    border-radius: 30px;
    letter-spacing: 0.3px;
    transition: background 0.2s var(--ease), transform 0.15s var(--ease);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.games__view-all:hover {
    background: #333;
    transform: translateY(-2px);
}

.games__view-all svg {
    width: 16px;
    height: 16px;
}

/* =============================================================
   SCHOOL BLOCK (was: conclusion)
   ============================================================= */
.school-block {
    background: var(--accent-yellow);
    margin: 35px 0;
    padding: 80px 80px;
    text-align: center;
}

.school-block .inner {
    position: relative;
    z-index: 2;
}

.school-block .icon-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 28px;
}

.school-block .controller-icon {
    width: 130px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
    animation: cFloat 3.2s ease-in-out infinite;
}

@keyframes cFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-9px); }
}

.school-block .sparkle {
    position: absolute;
    color: #1a1a1a;
    font-weight: 700;
    animation: cSparkle 2.6s ease-in-out infinite;
}

.school-block .sparkle.s1 { top: -12px; left: 42%;  font-size: 18px; animation-delay: 0s; }
.school-block .sparkle.s2 { top: 0px;   left: 14%;  font-size: 16px; animation-delay: 0.4s; }
.school-block .sparkle.s3 { top: -6px;  right: 10%; font-size: 18px; animation-delay: 0.8s; }
.school-block .sparkle.s4 { top: 16px;  left: 4%;   font-size: 22px; animation-delay: 1.2s; }
.school-block .sparkle.s5 { top: 8px;   right: 0%;  font-size: 14px; animation-delay: 1.6s; }

@keyframes cSparkle {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50%       { opacity: 1;    transform: scale(1.25); }
}

.school-block .title {
    font-size: clamp(1.6rem, 5vw, 5rem);
    font-weight: 900;
    color: #111;
    letter-spacing: -1px;
    line-height: 1.05;
    margin-bottom: 20px;
}

.school-block .subtitle {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-weight: 700;
    color: #111;
    margin-bottom: 18px;
}

.school-block .desc {
    font-size: clamp(0.95rem, 1.2vw, 1.03rem);
    color: rgba(0, 0, 0, 0.65);
    line-height: 1.6;
}

/* =============================================================
   CLOSING WORDS (was: final-wrap)
   ============================================================= */
.closing-words {
    margin: 35px 0;
    padding: 80px 60px;
    text-align: center;
    color: #fff;
    position: relative;
    background: var(--purple-deep);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.closing-words h2,
.closing-words p {
    position: relative;
    z-index: 1;
}

.closing-words h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.closing-words h2 span {
    color: var(--accent-yellow);
}

.closing-words p {
    text-align: left;
    font-size: 17px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 18px;
}

.closing-words p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .closing-words   { margin: 30px 0; padding: 50px 30px; }
    .closing-words p { font-size: 15px; }
}

/* =============================================================
   TRENDING SPOTLIGHT (was: how-to-play)
   ============================================================= */
.trending-spotlight {
    margin: 35px 40px;
    padding: 60px 0;
    background: transparent;
    position: relative;
}

/* Small accent dots in corner */
.trending-spotlight::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 40px;
    width: 8px;
    height: 8px;
    background: var(--purple);
    border-radius: 50%;
}

.trending-spotlight::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 56px;
    width: 8px;
    height: 8px;
    background: var(--accent-yellow);
    border-radius: 50%;
}

.trending-spotlight .header {
    text-align: center;
    background-color: transparent;
    margin-bottom: 50px;
    padding: 0 20px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.trending-spotlight .header h2 {
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.trending-spotlight .header h2 span {
    color: var(--accent-yellow);
}

.trending-spotlight .header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* 2x2 grid */
.trending-spotlight .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.trending-spotlight .card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    background: transparent;
    border: 1px solid var(--border-soft);
    overflow: hidden;
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.trending-spotlight .card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 4px;
    background: var(--accent-yellow);
}

.trending-spotlight .card:hover {
    transform: translateY(-6px);
    border-color: var(--purple-deep);
}

.trending-spotlight .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--purple-deep);
    border: 1px solid var(--border-firm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent-yellow);
    transition: transform 0.35s var(--ease);
}

.trending-spotlight .card:hover .card-icon {
    transform: scale(1.08) rotate(-6deg);
}

.trending-spotlight .card p {
    font-size: 15.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    padding-left: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .trending-spotlight .grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .trending-spotlight              { margin: 30px 16px; padding: 40px 0; }
    .trending-spotlight::before,
    .trending-spotlight::after       { display: none; }
    .trending-spotlight .header h2   { font-size: 28px; }
    .trending-spotlight .card        { padding: 28px 24px; gap: 14px; }
    .trending-spotlight .card-icon   { width: 52px; height: 52px; font-size: 20px; }
    .trending-spotlight .card p      { font-size: 14.5px; }
}

/* =============================================================
   FAQ
   ============================================================= */
.faq {
    position: relative;
    background: transparent;
    margin: 35px 0;
    padding: 70px 20px 80px;
    overflow: hidden;
}

.faq__line {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.faq__line--left {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 90px;
    height: 180px;
    border-left: 2px solid rgba(168, 85, 247, 0.45);
    border-top: 2px solid rgba(168, 85, 247, 0.45);
    border-bottom: 2px solid rgba(168, 85, 247, 0.45);
    clip-path: polygon(0 8%, 100% 0%, 100% 100%, 0 92%);
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
}

.faq__line--right {
    right: 30px;
    top: 30%;
    width: 70px;
    height: 120px;
    border-right: 2px solid rgba(234, 179, 8, 0.5);
    border-top: 2px solid rgba(234, 179, 8, 0.5);
    filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.4));
}

.faq__inner {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.faq__title {
    font-size: clamp(2rem, 5.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.faq__title--white { color: #fff; }

.faq__title--purple {
    color: var(--accent-yellow);
}

.faq__subtitle {
    color: rgba(210, 190, 235, 0.75);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 44px;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.faq__item {
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.faq__item.open {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.07);
}

.faq__question {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    color: inherit;
}

.faq__q-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #6d28d9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.faq__q-icon svg {
    width: 14px;
    height: 14px;
}

/* CSS-based plus/minus toggle — the vertical bar rotates and fades
   when the item is .open, turning the "+" icon into a "−" */
.faq__q-icon .faq__v-bar,
.faq__q-icon .faq__h-bar {
    transform-origin: 12px 12px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.faq__item.open .faq__q-icon .faq__v-bar {
    transform: rotate(90deg);
    opacity: 0;
}

.faq__q-text {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    transition: color 0.3s var(--ease);
}

.faq__item.open .faq__q-text {
    color: var(--accent-amber);
}

.faq__chevron {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease);
}

.faq__item.open .faq__chevron {
    transform: rotate(180deg);
}

.faq__chevron svg {
    width: 18px;
    height: 18px;
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.3s var(--ease);
    padding: 0 20px 0 64px;
}

.faq__item.open .faq__answer {
    max-height: 300px;
    padding: 0 20px 20px 64px;
}

.faq__answer p {
    color: rgba(210, 190, 235, 0.8);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* =============================================================
   ALL AGES BLOCK (was: gaming-guide)
   ============================================================= */
.all-ages {
    margin: 35px 60px;
    padding: 0 20px 20px 20px;
}

.all-ages .article-block {
    margin-bottom: 30px;
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
    background: linear-gradient(135deg, var(--purple-deep) 0%, #4a0fc4 50%, var(--purple) 100%);
    color: #fff;
    padding: 60px 40px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-yellow), transparent);
    opacity: 0.6;
}

.site-footer::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo-img {
    width: 180px;
    height: 70px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    object-position: left center;
    flex-shrink: 0;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-social a svg {
    width: 16px;
    height: 16px;
    display: block;
}

.footer-made .heart-icon {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    color: #ef4444;
    display: inline-block;
}

.footer-social a:hover {
    background: var(--accent-yellow);
    color: var(--purple-deep);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.footer-col a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.footer-form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.25s var(--ease);
}

.footer-form:focus-within {
    border-color: var(--accent-yellow);
}

.footer-form input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    padding: 12px 14px;
    font-size: 14px;
}

.footer-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-form button {
    background: var(--accent-yellow);
    color: var(--purple-deep);
    border: none;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.25s var(--ease);
}

.footer-form button:hover {
    background: #fff;
}

.footer-form button svg {
    width: 16px;
    height: 16px;
    display: block;
}

.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.footer-made i {
    color: #ff4d6d;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1200px) {
    .top-games-grid   { grid-template-columns: repeat(3, 1fr); }
    .title-wrap h2    { font-size: 42px; }
    .category-grid    { grid-template-columns: repeat(3, 1fr); }
    .footer-inner     { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
    .footer-newsletter { grid-column: 1 / -1; }
}

@media (max-width: 991px) {
    .navbar    { display: none; }
    .menu-btn  { display: block; }
    .search-box { width: 180px; }
}

@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; max-width: 100%; }
}

@media (max-width: 768px) {
    .featured-slider    { margin: 20px; height: 280px; }
    .featured-content   { left: 50%; bottom: 55px; padding: 0 16px; }
    .featured-content h1 { font-size: 28px; }
    .featured-content p  { font-size: 14px; }
    .play-btn           { padding: 10px 22px; font-size: 14px; white-space: nowrap; }
    .dots               { bottom: 18px; gap: 12px; }

    /* Smaller corner accents on mobile */
    .featured-slider::before,
    .featured-slider::after { width: 16px; height: 16px; top: 12px; left: 12px; }
    .featured-slider::after { top: auto; left: auto; bottom: 12px; right: 12px; }

    .top-games-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .top-games-grid   { grid-template-columns: repeat(2, 1fr); }
    .title-wrap h2    { font-size: 34px; }

    .top-bar          { flex-direction: column; gap: 25px; }
    .title-box h2     { font-size: 40px; }
    .category-grid    { grid-template-columns: repeat(2, 1fr); }

    .intro-block {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px;
        margin: 20px;
    }
    .intro-block .intro-text h1 { font-size: 26px; }

    .about-block {
        margin: 0 20px 30px 20px;
        padding: 32px 24px;
        border-radius: var(--radius-lg);
    }
    .about-block .about-content { gap: 18px; }
    .about-block .about-content > p {
        font-size: 16px;
        line-height: 1.75;
        padding-left: 18px;
    }

    .device-block { padding: 22px 16px; margin: 30px 0; }
    .device-card { padding: 20px; margin: 20px; }
    .device-card h2 { font-size: 22px; }

    .simple-section { margin: 22px; padding: 10px; }
    .simple-section h2 { font-size: 22px; }

    .why-block { margin: 30px 20px; padding: 32px 24px; }
    .section-description,
    .why-block p { font-size: 16px; line-height: 1.75; padding-left: 14px; }
    .cta-card    { margin: 20px; padding: 22px; }
    .cta-title   { font-size: 2rem; }
    .cta-sub     { font-size: 0.92rem; }

    .content-section  { margin: 18px 30px; padding: 0 0 24px; }
    .article-block h2 { font-size: 26px; gap: 12px; align-items: flex-start; line-height: 1.25; }
    .article-block .accent-line { height: auto; min-height: 30px; align-self: stretch; border-radius: 6px; }
    .article-block p  { font-size: 16px; line-height: 1.75; margin-left: 0; }
    .article-block h3 { font-size: 22px; margin-left: 0; margin-top: 28px; }
    .multiplayer-io-image { margin: 22px auto; border-radius: var(--radius-sm); }

    .all-ages { margin: 18px 30px; padding: 0 0 24px; }
    .all-ages .article-block p { font-size: 16px; line-height: 1.75; margin-left: 0; }
    .all-ages .article-block h3 { font-size: 22px; margin-left: 0; }

    .container   { height: 65px; }
    .logo span   { font-size: 11px; }
    .logo-icon   { width: 150px; height: 100px; }
    .search-box  { width: 170px; height: 38px; }
    .header-right { gap: 8px; }

    .site-footer { padding: 40px 20px 20px; }
}

@media (max-width: 480px) {
    /* Very small phones — hide logo text, shrink search */
    .logo span { display: none; }
    .logo .logo-icon { width: 150px; height: 100px; }
    .search-box { width: 150px; height: 36px; }
    .search-box input { font-size: 13px; }
    .header-right { gap: 6px; }
    .menu-btn { padding: 6px 8px; }
    .menu-btn .menu-icon { width: 20px; height: 20px; }

    .container { height: 58px; padding: 0 12px; }
}

@media (max-width: 600px) {
    .top-games-grid { grid-template-columns: 1fr; }
    .top-game-card img { height: 260px; }

    .category-grid { grid-template-columns: 1fr; }
    .title-box h2  { font-size: 32px; }

    .game-card { min-width: 220px; height: 130px; }

    .games__slider-wrap { padding: 0 48px; }
    .games__track .game-card { flex: 0 0 130px; height: 175px; }
    .games__arrow { width: 36px; height: 36px; }

    .faq__line--left,
    .faq__line--right { display: none; }

    .faq__answer,
    .faq__item.open .faq__answer { padding-left: 20px; }
    .faq__q-text { font-size: 0.9rem; }

    .school-block .desc br { display: none; }
    .school-block .controller-icon { width: 100px; }

    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 500px) {
    .footer-inner { grid-template-columns: 1fr; }
    .section-title h2 { font-size: 1.6rem; }
}

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

:focus-visible {
    outline: 2px solid var(--accent-yellow);
    outline-offset: 2px;
}