/* Kraxon Studios – site styles. Palette from the brand kit (12_EDITABLE_SOURCES/brand-tokens.json). */
@font-face { font-family: "Lilita One"; src: url(/fonts/lilita-one-latin.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/fonts/nunito-latin.woff2) format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }

:root {
  --midnight: #101018;
  --midnight-2: #16121f;
  --surface: #211635;
  --surface-2: #2b1d45;
  --purple: #8757ff;
  --purple-ui: #7444f0;     /* buttons: white text passes AA */
  --purple-text: #b09aff;   /* links/accents on dark: passes AA */
  --white: #f5f4fa;
  --muted: #aba7bd;
  --yellow: #ffb020;
  --line: rgba(171, 167, 189, .18);
  --radius: 14px;
  --wrap: 1120px;
  --head: "Lilita One", "Arial Black", Impact, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--midnight); color: var(--white); font: 400 1.0625rem/1.65 var(--body); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--purple-text); text-underline-offset: .18em; }
a:hover { color: var(--white); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.12; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin: .25em 0; }
code { font-size: .9em; background: var(--surface); padding: .1em .35em; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--midnight); padding: 8px 14px; border-radius: 8px; z-index: 10; font-weight: 800; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.eyebrow { font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--purple-text); margin-bottom: .6em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(16, 16, 24, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: block; margin-right: auto; padding: 6px 0; }
.brand img { width: 150px; height: auto; }
.nav { order: 3; width: 100%; display: flex; gap: 4px; margin: 0 -10px; }
.nav a, .lang { color: var(--white); text-decoration: none; font-weight: 800; padding: 10px; border-radius: 10px; line-height: 1.2; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--yellow); }
.lang { border: 1px solid var(--line); padding: 8px 12px; font-size: .9rem; letter-spacing: .06em; }
.lang:hover { border-color: var(--purple); color: var(--white); }
@media (min-width: 720px) {
  .brand img { width: 180px; }
  .nav { order: 0; width: auto; margin: 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; background: var(--purple-ui); color: #fff; font-weight: 800; text-decoration: none; padding: 14px 22px; border-radius: 12px; min-height: 48px; box-shadow: 0 6px 0 #3d1fa0; transition: transform .12s, box-shadow .12s; }
.btn:hover { color: #fff; transform: translateY(2px); box-shadow: 0 4px 0 #3d1fa0; }
.btn-yellow { background: var(--yellow); color: var(--midnight); box-shadow: 0 6px 0 #b36f00; }
.btn-yellow:hover { color: var(--midnight); box-shadow: 0 4px 0 #b36f00; }

/* Hero (home) */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 72px 0 96px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { position: absolute; top: 0; right: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16,16,24,.92) 0%, rgba(16,16,24,.7) 60%, rgba(16,16,24,.45) 100%), linear-gradient(0deg, var(--midnight) 0%, transparent 45%); }
@media (min-width: 900px) {
  .hero-bg img { width: 58%; object-position: center 35%; }
  .hero::after { background: linear-gradient(90deg, var(--midnight) 42%, rgba(16,16,24,.55) 62%, rgba(16,16,24,.1) 100%), linear-gradient(0deg, var(--midnight) 0%, transparent 35%); }
}
.hero-logo { width: min(520px, 88%); margin-bottom: 28px; }
.claim { font-family: var(--head); font-size: clamp(1.6rem, 5.4vw, 2.8rem); line-height: 1.12; max-width: 20ch; margin: 0 0 14px; }
.claim em { font-style: normal; color: var(--yellow); }
.hero p.lead { color: var(--muted); max-width: 46ch; font-size: 1.1rem; margin-bottom: 28px; }
@media (min-width: 900px) { .hero { padding: 120px 0 150px; } }

/* Sections */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }

/* Game cards */
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; min-height: 340px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--white); text-decoration: none; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-4px); border-color: var(--purple); color: var(--white); }
.card-media { aspect-ratio: 16 / 9; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: grid; grid-template-columns: 56px 1fr; gap: 4px 14px; align-items: center; padding: 16px; }
.card-icon { width: 56px; height: 56px; border-radius: 14px; grid-row: span 2; }
.card-title { font-family: var(--head); font-size: 1.45rem; line-height: 1.1; margin: 0; }
.card-text { grid-column: 1 / -1; color: var(--muted); margin: 8px 0 0; }
.pill { display: inline-block; justify-self: start; white-space: nowrap; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; background: var(--yellow); color: var(--midnight); }
.pill-live { background: #3ddc84; }
.card-more { border: 2px dashed var(--line); background: transparent; justify-content: center; align-items: center; text-align: center; padding: 32px 16px; color: var(--muted); min-height: 120px; }
.card-more:hover { transform: none; border-color: var(--line); color: var(--muted); }

/* Contact strip */
.strip { background: linear-gradient(120deg, var(--surface) 0%, #2c1760 100%); border-block: 1px solid var(--line); }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.strip h2 { margin: 0 0 .2em; }
.strip p { margin: 0; color: var(--muted); }

/* Game page */
.game-hero { background: #000; }
.game-hero img { width: 100%; max-height: 72vh; object-fit: cover; }
.game-head { display: grid; grid-template-columns: 84px 1fr; gap: 16px 20px; align-items: center; margin-top: -42px; position: relative; }
.game-head .icon { width: 84px; height: 84px; border-radius: 20px; border: 3px solid var(--midnight); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.game-head h1 { margin: 34px 0 0; }
.game-head .short { grid-column: 1 / -1; font-size: 1.2rem; font-weight: 700; margin: 0; }
@media (min-width: 720px) {
  .game-head { grid-template-columns: 120px 1fr; margin-top: -60px; }
  .game-head .icon { width: 120px; height: 120px; border-radius: 28px; }
  .game-head h1 { margin-top: 56px; }
}
.store { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 24px 0 8px; }
.play-badge { display: inline-block; margin: -10px 0; }
.play-badge img { width: 200px; height: auto; }
.play-badge[aria-disabled="true"] img { opacity: .55; filter: grayscale(1); }
.soon { font-weight: 800; color: var(--yellow); }

.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 16px; margin: 0 -16px; list-style: none; }
.shots li { margin: 0; scroll-snap-align: center; }
.shots img { width: 100%; border-radius: 14px; border: 1px solid var(--line); aspect-ratio: 9 / 16; background: var(--surface); }
@media (min-width: 720px) { .shots { grid-auto-columns: 30%; } }
@media (min-width: 1040px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); overflow: visible; margin: 0; padding: 0; } }

.desc .wrap > * { max-width: 760px; }
.desc h3 { color: var(--yellow); font-size: 1.15rem; letter-spacing: .03em; margin-top: 1.6em; }
.desc ul { list-style: none; padding: 0; }
.desc li { padding-left: 1.4em; position: relative; }
.desc li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55em; height: .55em; background: var(--purple); transform: rotate(45deg); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0; }
.facts strong { display: block; font-family: var(--head); font-weight: 400; font-size: 1.5rem; color: var(--yellow); line-height: 1.1; }
.facts span { color: var(--muted); font-size: .92rem; }

/* Text pages */
.page-head { padding: 48px 0 8px; }
.prose { padding-bottom: 56px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.prose address { font-style: normal; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 20px 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 800; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-family: var(--head); font-size: 1.5rem; color: var(--yellow); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 8px; color: var(--muted); }
.faq details > div strong { color: var(--white); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0 -10px; }
.site-footer nav a { color: var(--muted); padding: 10px; }
.site-footer nav a:hover { color: var(--white); }
.site-footer img { width: 34px; height: 34px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }

/* 404 */
.notfound { text-align: center; padding: 80px 0 100px; }
.notfound .big { font-family: var(--head); font-size: clamp(5rem, 22vw, 9rem); line-height: 1; color: var(--purple); margin: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
