﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    color-scheme: dark;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    letter-spacing: -0.01em;
    color: var(--color-text);
    background-color: var(--color-bg);
    background-image:
        radial-gradient(ellipse 85% 55% at 50% -18%, rgba(102, 192, 244, 0.032) 0%, transparent 58%),
        radial-gradient(ellipse 65% 45% at 100% 55%, rgba(28, 36, 48, 0.35) 0%, transparent 52%),
        radial-gradient(ellipse 55% 40% at 0% 85%, rgba(22, 28, 38, 0.4) 0%, transparent 48%),
        linear-gradient(180deg, #151920 0%, var(--color-bg) 38%, #12161d 100%);
    min-height: 100vh;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    background: linear-gradient(110deg, var(--color-card) 8%, #2a3d50 18%, var(--color-card) 33%);
    background-size: 200% 100%;
}

img[decoding] { animation: img-reveal 0.55s var(--ease-out) both; }

@keyframes img-reveal {
    from { opacity: 0.75; filter: blur(2px); }
    to   { opacity: 1; filter: blur(0); }
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul[role="list"], ol[role="list"] { list-style: none; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 20px;
    background: var(--color-accent);
    color: var(--color-bg);
    font-weight: 600;
    border-radius: var(--radius-xs);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 16px;
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

:focus { outline: none; }

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

.user-is-tabbing :focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }

*, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

.hero__slide--active .hero__slide-image, img[decoding] { animation: none !important; }

.widget:hover, .game-card__link:hover, .faq__item:hover, .hero__slider:hover, .featured-games__card.is-card-active .game-card__link { transform: none; }
}
