/* Protek Games — studio site (English).
   Layout: one night-sky column; a moonlit hero, then game "cartridges" on a shelf,
   then plain reading pages (privacy) on the same ink. Deliberately single dark theme. */

@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap;
  src: url("../fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap;
  src: url("../fonts/unbounded-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap;
  src: url("../fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 200 1000; font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 200 1000; font-display: swap;
  src: url("../fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-weight: 200 1000; font-display: swap;
  src: url("../fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --ink: #15111d;          /* page night */
  --ink-2: #1f1829;        /* raised surface */
  --ink-3: #2b2238;        /* borders, chips */
  --text: #f5f0fa;
  --muted: #b7abc8;
  --moon: #fff2cf;         /* moon glow */
  --ginger: #ff9a3c;       /* the cat; primary accent */
  --mint: #7fe6c9;         /* vacuum swirl; secondary accent */
  --display: "Unbounded", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step-0: 1.0625rem; --step-1: 1.25rem; --step-2: 1.6rem; --step-3: clamp(2rem, 5vw, 3rem); --step-4: clamp(2.4rem, 8vw, 5.2rem);
  --r: 18px;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 var(--step-0)/1.6 var(--body);
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--mint); text-underline-offset: 3px; }
a:hover { color: var(--moon); }
:focus-visible { outline: 3px solid var(--ginger); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* starfield behind everything, drawn with gradients so it costs no requests */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 62%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 8%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 34%, #fff5 50%, transparent 51%),
    radial-gradient(2px 2px at 81% 14%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 71%, #fff5 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 7% 86%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 92%, #fff4 50%, transparent 51%),
    radial-gradient(1200px 700px at 85% -10%, #3a2650 0%, transparent 60%),
    var(--ink);
}

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--ink-3);
  padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; gap: 12px 20px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font: 800 1.05rem/1 var(--display); letter-spacing: 0.02em; }
.brand b span { color: var(--ginger); }
.nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 560px) { .top .wrap { padding-block: 10px; } .nav { width: 100%; order: 3; gap: 4px 16px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 800 1rem/1 var(--body); text-decoration: none;
  padding: 15px 22px; border-radius: 999px; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-main { background: var(--ginger); color: #2a1503; box-shadow: 0 6px 0 #b85f12; }
.btn-main:hover { color: #2a1503; background: #ffab5c; }
.btn-ghost { border-color: var(--ink-3); color: var(--text); background: var(--ink-2); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* eyebrow labels */
.eyebrow { font: 800 0.78rem/1 var(--body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint); }

/* studio hero */
.hero { padding-block: clamp(48px, 9vw, 110px) clamp(40px, 7vw, 80px); position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: var(--step-4); font-weight: 800; margin-block: 18px 22px; }
.hero h1 em { font-style: normal; color: var(--ginger); }
.hero .lead { font-size: var(--step-1); color: var(--muted); max-width: 34ch; margin-bottom: 30px; }
.moon { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; justify-self: center; }
.moon::before { content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fffaf0 0%, var(--moon) 45%, #e9cf9a 100%);
  box-shadow: 0 0 80px 20px #ffe9b333, 0 0 220px 40px #ffd27a1f; }
.moon img { position: absolute; }
.moon .cat { width: 70%; left: 15%; bottom: -4%; filter: drop-shadow(0 18px 24px #0008); }
.moon .g1 { width: 22%; left: -2%; top: 6%; animation: bob 5s ease-in-out infinite; }
.moon .g2 { width: 18%; right: 0; top: 22%; animation: bob 6s ease-in-out -2s infinite; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-4deg); } }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .moon { max-width: 300px; order: -1; } }

/* sections */
section { padding-block: clamp(44px, 7vw, 84px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.sec-head h2 { font-size: var(--step-3); font-weight: 700; margin-top: 12px; }
.sec-head p { color: var(--muted); max-width: 46ch; }

/* game shelf — each game is a "cartridge": key art + spec strip */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 24px; }
.game { display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--r);
  overflow: hidden; text-decoration: none; color: var(--text); transition: transform .2s ease, border-color .2s ease; }
a.game:hover { transform: translateY(-4px); border-color: var(--ginger); color: var(--text); }
.game .art { aspect-ratio: 1024 / 500; background: var(--ink-3); position: relative; }
.game .art img { width: 100%; height: 100%; object-fit: cover; }
.game .body { padding: 20px 22px 22px; display: grid; gap: 10px; flex: 1; align-content: start; }
.game h3 { font-size: var(--step-1); font-weight: 700; }
.game p { color: var(--muted); font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { font: 700 0.8rem/1 var(--body); padding: 7px 10px; border-radius: 8px; background: var(--ink-3); color: var(--text); }
.chip.live { background: #1f4a3d; color: var(--mint); }
.chip.dev { background: #4a2f12; color: #ffc489; }
.game.next { border-style: dashed; background: transparent; }
.game.next .art { display: grid; place-items: center; background:
  repeating-linear-gradient(135deg, var(--ink-2) 0 14px, #1b1524 14px 28px); }
.game.next .art span { font: 800 3.4rem/1 var(--display); color: var(--ink-3); }

/* featured band */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--ink-2); border: 1px solid var(--ink-3);
  border-radius: calc(var(--r) + 6px); overflow: hidden; }
.feature .pic { position: relative; min-height: 280px; }
.feature .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature .txt { padding: clamp(24px, 4vw, 48px); display: grid; gap: 16px; align-content: center; }
.feature h2 { font-size: var(--step-3); }
.feature p { color: var(--muted); }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature .pic { aspect-ratio: 1024/500; min-height: 0; } }

/* principles — three plain columns */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cols h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--moon); }
.cols p { color: var(--muted); }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; gap: 20px; } }

/* contact */
.contact { text-align: left; display: grid; gap: 18px; justify-items: start; }
.mail { font: 700 clamp(1.3rem, 4.5vw, 2.4rem)/1.1 var(--display); color: var(--ginger); text-decoration: none; word-break: break-all; }
.mail:hover { color: var(--moon); }

/* game page */
.ghero { padding-block: clamp(32px, 6vw, 72px) 24px; }
.ghero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ghero .icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 30px #0007; }
.ghero h1 { font-size: var(--step-4); font-weight: 800; margin-block: 16px; }
.ghero .lead { font-size: var(--step-1); color: var(--muted); margin-bottom: 26px; max-width: 36ch; }
.ghero .store-chips { margin-top: 18px; }
.ghero .splash { border-radius: 28px; overflow: hidden; max-width: 380px; justify-self: center; border: 1px solid var(--ink-3);
  box-shadow: 0 30px 80px -20px #ff9a3c40; }
@media (max-width: 820px) { .ghero .wrap { grid-template-columns: 1fr; } .ghero .splash { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; object-position: 50% 58%; order: -1; } }


/* numbers strip */
.facts { display: grid; grid-template-columns: repeat(6, 1fr); border-block: 1px solid var(--ink-3); }
.facts div { padding: 22px 12px; text-align: center; border-right: 1px solid var(--ink-3); }
.facts div:last-child { border-right: 0; }
.facts b { display: block; font: 800 var(--step-2)/1 var(--display); color: var(--moon); font-variant-numeric: tabular-nums; }
.facts span { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 820px) { .facts { grid-template-columns: repeat(3, 1fr); } .facts div:nth-child(3) { border-right: 0; } .facts div:nth-child(-n+3) { border-bottom: 1px solid var(--ink-3); } }

.trailer { border-radius: var(--r); overflow: hidden; border: 1px solid var(--ink-3); background: #000; aspect-ratio: 16/9; }
.trailer video { width: 100%; height: 100%; object-fit: cover; }

.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.shots img { width: min(62vw, 250px); flex: none; border-radius: 16px; scroll-snap-align: start; border: 1px solid var(--ink-3); }

.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.feats div { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; align-items: start; }
.feats img { grid-row: span 2; width: 56px; height: 56px; object-fit: contain; }
.feats h3 { font-size: 1.05rem; color: var(--text); }
.feats p { color: var(--muted); font-size: 1rem; }
@media (max-width: 720px) { .feats { grid-template-columns: 1fr; } }

.skins { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.skins img { background: radial-gradient(circle at 50% 60%, #3a2c4d, var(--ink-2) 70%); border-radius: 16px; border: 1px solid var(--ink-3); }
@media (max-width: 560px) { .skins { grid-template-columns: repeat(3, 1fr); } .skins img:nth-child(n+4) { display: none; } }

.heroes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.heroes figure { margin: 0; background: radial-gradient(circle at 50% 45%, #3a2c4d, var(--ink-2) 72%); border: 1px solid var(--ink-3); border-radius: 16px; padding: 12px 10px 14px; text-align: center; }
.heroes img { width: 78%; margin: 0 auto 8px; }
.heroes figcaption { font-size: 0.9rem; color: var(--muted); line-height: 1.3; }
.heroes figcaption b { display: block; font: 700 1rem/1.2 var(--display); color: var(--text); }
@media (max-width: 560px) { .heroes { gap: 8px; } .heroes figure { padding: 8px 4px 10px; } .heroes figcaption { font-size: 0.72rem; } .heroes figcaption b { font-size: 0.82rem; } }

/* reading pages */
.doc { max-width: 760px; padding-block: clamp(32px, 6vw, 64px) 40px; }
.doc h1 { font-size: var(--step-3); margin-bottom: 10px; }
.doc .meta { color: var(--muted); margin-bottom: 32px; }
.doc h2 { font-size: 1.2rem; margin-block: 36px 12px; color: var(--moon); }
.doc p, .doc li { color: #ddd3ea; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; margin: 10px 0; display: grid; gap: 6px; }
.toc { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--r); padding: 18px 22px; }
.table { overflow-x: auto; margin-block: 14px; }
.table table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.95rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ink-3); vertical-align: top; }
.table th { font: 800 0.75rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* footer */
.foot { border-top: 1px solid var(--ink-3); margin-top: 40px; padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 0.95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

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