@font-face {
    font-family: Oswald;
    src: url("fonts/oswald-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
}

@font-face {
    font-family: Quicksand;
    src: url("fonts/quicksand-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --background: #0e0803;
    --accent: #ffa858;
    --text: #fffbf5;
    --body-font: Quicksand, sans-serif;
    --gutter: min(60px, 3.75vw);
    --radius: 5px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; overflow-x: clip; background: var(--background); color: var(--text); font-family: Oswald, sans-serif; }
main { overflow: clip; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.container { position: relative; width: 100%; max-width: 1720px; margin-inline: auto; padding: var(--gutter); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 20px; background: var(--accent); color: var(--background); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Shared elements */
.button { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: fit-content; min-height: 44px; padding: min(15px, .9375vw) min(42px, 2.625vw); border: 1px solid var(--accent); border-radius: var(--radius); color: var(--accent); background: transparent; font-family: var(--body-font); font-size: clamp(16px, 1.5vw, 24px); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; transition: background .2s, transform .2s; }
.button:hover { background: rgb(255 255 255 / 5%); }
.button:active { transform: scale(.98); }
.button:disabled { opacity: .65; cursor: wait; }
.section-title { text-align: center; font-size: clamp(32px, 2.5vw, 40px); font-weight: 700; line-height: 1.35; }
.logo { display: block; flex-shrink: 0; }
.logo img { width: auto; height: min(65px, 4.0625vw); }
.sparks { position: absolute; z-index: -1; width: auto; max-width: none; height: min(800px, 50vw); opacity: .3; pointer-events: none; user-select: none; }
.glow-card { position: relative; border-radius: var(--radius); }
.glow-card::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; background: rgb(255 168 88 / 50%); mask-image: linear-gradient(90deg, #000 10%, transparent 25%, transparent 75%, #000 90%); filter: blur(5px); transition: filter .2s, background .2s; }
.glow-card:hover::before, .game-card:focus-visible .glow-card::before { filter: blur(8px); background: rgb(255 168 88 / 80%); }

/* Header and first screen */
.site-header { position: absolute; z-index: 10; top: 0; left: 50%; transform: translateX(-50%); padding-block: 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: min(16px, 1vw); border-bottom: 1px solid rgb(255 255 255 / 30%); }
.hero { position: relative; isolation: isolate; overflow: clip; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; backdrop-filter: blur(50px); mask-image: linear-gradient(#000, transparent min(300px, 18.75vw)); }
.hero-background { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; mask-image: linear-gradient(#000 80%, transparent); }
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: min(160px, 10vw); min-height: 100svh; padding-block: 130px; }
.hero-info { width: min(650px, 40.625vw); flex-shrink: 1; min-width: 0; }
.hero h1 { font-size: min(64px, 4vw); font-weight: 400; line-height: 1.06944; letter-spacing: -.01em; }
.hero-info p { margin-top: min(16px, 1vw); font-family: var(--body-font); font-size: clamp(16px, 1.25vw, 20px); font-weight: 500; line-height: 1.35; }
.hero-info .button { margin-top: min(30px, 1.875vw); }
.hero-game { width: min(840px, 52.5vw); min-width: 0; }
.hero-game img { width: 100%; height: auto; border: 1px solid #794e28; border-radius: 4px; }
.scroll-cue { position: absolute; bottom: min(50px, 3.125vw); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px; font-family: var(--body-font); font-size: clamp(14px, 1vw, 16px); font-weight: 500; line-height: 1.2; color: var(--accent); filter: drop-shadow(0 0 5px var(--accent)); }
.scroll-cue svg { width: min(30px, 1.875vw); height: auto; }
.hero-sparks-one { top: 50%; right: 0; translate: 0 -25%; rotate: -120deg; opacity: .9; height: min(500px, 31.25vw); }
.hero-sparks-two { top: 0; right: 0; translate: 20% -50%; rotate: 200deg; }

/* Three strengths */
.categories { isolation: isolate; display: flex; flex-wrap: wrap; justify-content: center; gap: min(30px, 1.875vw); }
.category { width: 31%; height: min(180px, 11.25vw); display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgb(255 168 88 / 50%); }
.category-background { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.category-icon { position: relative; z-index: 1; width: auto; height: min(72px, 4.5vw); color: var(--accent); }
.category h2 { position: relative; z-index: 1; color: var(--accent); font: 600 clamp(16px, 1.5vw, 24px)/1.2 var(--body-font); text-align: center; }
.categories-sparks-one { bottom: 0; left: 0; translate: -20% 40%; rotate: -100deg; }
.categories-sparks-two { top: 0; right: 0; translate: 20% -50%; rotate: 200deg; }

/* Game portfolio */
.games { isolation: isolate; }
.games-list { display: flex; flex-wrap: wrap; justify-content: center; gap: min(55px, 3.4375vw) min(24px, 1.5vw); margin-top: min(40px, 2.5vw); }
.game-card { width: 32%; min-width: 0; }
.game-image { height: min(250px, 15.625vw); }
.game-image img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.game-bottom { display: flex; align-items: center; justify-content: space-between; gap: min(10px, .625vw); margin-top: min(10px, .625vw); }
.game-bottom h3 { color: var(--accent); font-size: clamp(18px, 1.5vw, 24px); font-weight: 500; line-height: 1.2; text-transform: uppercase; }
.games-sparks-one { bottom: 0; left: 0; translate: -50% 40%; rotate: -40deg; }
.games-sparks-two { top: 0; right: 0; translate: 50% 0; rotate: 130deg; }

/* Contact form */
.contact { position: relative; isolation: isolate; }
.contact-background { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; mask-image: linear-gradient(0deg, transparent, #000 20%, #000 70%, transparent); }
.contact-content { display: flex; justify-content: space-between; gap: min(105px, 6.5625vw); margin-top: min(40px, 2.5vw); }
.contact-form { position: relative; display: flex; flex: 1; min-width: 0; flex-direction: column; gap: min(32px, 2vw); }
.form-row { display: flex; gap: min(32px, 2vw); }
.field { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: clamp(14px, 1vw, 16px); line-height: 1.5; }
.field label span { color: var(--accent); }
.field input, .field textarea { width: 100%; min-height: 44px; padding: min(16px, 1vw); color: #fbf0e7; background: transparent; border: 1px solid rgb(251 240 231 / 70%); border-radius: var(--radius); font-family: var(--body-font); font-size: 16px; font-weight: 500; line-height: 1.3; transition: border-color .2s; }
.field input::placeholder, .field textarea::placeholder { color: inherit; opacity: 1; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 150px; height: min(260px, 16.25vw); resize: vertical; }
.consent { display: flex; align-items: center; gap: 10px; cursor: pointer; font: 600 clamp(14px, 1vw, 16px)/1.2 var(--body-font); }
.consent input { appearance: none; width: 24px; height: 24px; flex-shrink: 0; margin: 0; border: 1px solid var(--accent); border-radius: var(--radius); background: rgb(186 186 186 / 10%); cursor: pointer; }
.consent input:checked { background: var(--accent); box-shadow: inset 0 0 0 4px var(--background); }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-status { font: 500 16px/1.5 var(--body-font); color: var(--accent); overflow-wrap: anywhere; }
.form-status.is-success { color: #c7e6b1; }
.contact-info { display: flex; flex-direction: column; gap: min(40px, 2.5vw); width: min(730px, 45.625vw); font: 500 clamp(18px, 1.5vw, 24px)/1.2 var(--body-font); }
.contact-info a { display: block; width: fit-content; overflow-wrap: anywhere; }
.contact-info a:hover, .footer-info a:hover { color: var(--accent); }

/* Footer */
.site-footer { overflow: clip; padding-top: min(150px, 9.375vw); }
.footer-inner { isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-info { display: flex; flex-direction: column; gap: 10px; opacity: .8; font: 400 clamp(14px, 1vw, 16px)/1.2 var(--body-font); letter-spacing: .04em; text-transform: lowercase; }
.footer-sparks-one { top: 0; left: 0; translate: -50% -50%; height: min(500px, 31.25vw); opacity: .5; }
.footer-sparks-two { top: 0; right: 0; translate: 50% -20%; rotate: 90deg; height: min(700px, 43.75vw); opacity: .5; }

@media (max-width: 1024px) {
    :root { --gutter: 4.8828125vw; }
    .container { padding-block: 40px; }
    .site-header { padding-block: 0; }
    .header-inner { padding-block: 16px; }
    .logo img { height: 65px; }
    .button { padding: 14px 30px; font-size: 16px; }
    .hero-inner { flex-direction: column; justify-content: center; gap: 40px; padding-top: 150px; padding-bottom: 120px; }
    .hero-info, .hero-game { width: 100%; }
    .hero h1 { font-size: clamp(37px, 7.03125vw, 72px); text-align: center; }
    .hero-info p { margin-top: 24px; text-align: center; font-size: 20px; }
    .hero-info .button { display: flex; margin: 30px auto 0; }
    .hero-game { max-width: 840px; }
    .scroll-cue { bottom: 30px; font-size: 16px; }
    .scroll-cue svg { width: 25px; }
    .categories { gap: 30px 2.9%; }
    .category { width: 48%; height: 180px; }
    .category-icon { height: 72px; }
    .category h2 { font-size: 24px; }
    .games-list { gap: 40px 2.34375vw; margin-top: 40px; }
    .game-card { width: 48%; }
    .game-image { height: 19.53125vw; }
    .game-bottom { gap: 10px; margin-top: 10px; }
    .game-bottom h3 { font-size: 24px; }
    .contact-content { flex-direction: column; gap: 60px; margin-top: 40px; }
    .contact-form, .form-row { gap: 25px; }
    .field input, .field textarea { padding: 16px; }
    .field label { font-size: 16px; }
    .contact-info { width: 100%; gap: 32px; font-size: 24px; }
    .footer-inner { flex-direction: column; gap: 20px; }
    .footer-info { text-align: center; align-items: center; }
}

@media (max-width: 565px) {
    :root { --gutter: 4.6511627907vw; }
    .button { padding: 10px 25px; }
    .hero-inner { gap: 36px; padding-top: 140px; padding-bottom: 105px; }
    .hero h1 { font-size: clamp(32px, 8.6046511628vw, 48px); }
    .hero-info p { font-size: 16px; margin-top: 24px; }
    .hero-info .button { width: 80%; }
    .category { width: 100%; height: 150px; }
    .categories { gap: 20px; }
    .category-icon { height: 72px; }
    .category h2 { font-size: 24px; }
    .section-title { font-size: 40px; }
    .games-list { row-gap: 30px; }
    .game-card { width: 100%; }
    .game-image { height: 39.5348837209vw; }
    .game-bottom h3 { font-size: 20px; }
    .contact-form, .form-row { gap: 15px; }
    .form-row { flex-direction: column; }
    .contact-content { gap: 30px; }
    .contact-info { font-size: 18px; gap: 35px; }
    .footer-info { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
