/* Blackiced Studios — shared styles */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("../fonts/rajdhani-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("../fonts/rajdhani-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-2: #0d1219;
  --panel: #111823;
  --line: #1e2a3a;
  --text: #e6edf5;
  --muted: #8b9bb0;
  --ice: #01c5fe;
  --ice-2: #0a9fd0;
  --ice-glow: rgba(1, 197, 254, 0.16);
  --danger: #ff6b6b;
  --radius: 14px;
  --max: 1120px;
  --font-head: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ice); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 80px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; color: var(--ice); font-weight: 600; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 13, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: .08em; text-transform: uppercase; }
.brand:hover { text-decoration: none; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 10px; cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-top: 1px solid var(--line); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: .95rem; border: 1px solid var(--ice-2); color: var(--text); background: transparent; transition: background .2s, box-shadow .2s; }
.btn:hover { text-decoration: none; background: var(--ice-glow); box-shadow: 0 0 24px var(--ice-glow); }
.btn.primary { background: linear-gradient(135deg, var(--ice-2), var(--ice)); color: #04121c; border: none; }
.btn.primary:hover { box-shadow: 0 0 32px rgba(1, 197, 254, .45); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 100px;
  background:
    radial-gradient(ellipse at 70% 0%, rgba(1, 160, 220, .20), transparent 60%),
    radial-gradient(ellipse at 10% 100%, rgba(1, 197, 254, .08), transparent 50%),
    var(--bg);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .25;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 620px; }
.hero-logo { width: min(620px, 88vw); margin-bottom: 28px; filter: drop-shadow(0 0 30px rgba(1, 197, 254, .25)); }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-top: 0; }

.game-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.game-feature .art { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; background: linear-gradient(135deg, #0f1a26, #1b2e44); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.game-feature .art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .game-feature { grid-template-columns: 1fr; } }

.tag { display: inline-block; font-size: .75rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin: 0 6px 6px 0; }
.tag.ice { border-color: var(--ice-2); color: var(--ice); }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.features li { padding-left: 26px; position: relative; }
.features li::before { content: "◆"; position: absolute; left: 0; color: var(--ice); font-size: .8rem; top: 4px; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.shots img, .shots .ph { border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.shots .ph { background: var(--panel); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; }

.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { color: var(--muted); font-weight: 500; width: 40%; padding-right: 16px; }

/* Legal / long-form pages */
.page-head { padding: 72px 0 32px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.prose { max-width: 812px; padding: 48px 16px 80px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--panel); }
.callout { border-left: 3px solid var(--ice); background: var(--panel); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 1.5em 0; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 24px; margin-bottom: 2em; }
.toc ol { margin: 0; }

/* Forms */
form .field { margin-bottom: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
input, select, textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ice-2); outline-offset: 1px; }
textarea { min-height: 140px; resize: vertical; }

details { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; background: var(--panel); }
summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 32px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text); opacity: .85; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Founder / team */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.founder img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.founder .role { color: var(--ice); font-family: var(--font-head); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1em; }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; } .founder img { max-width: 280px; } }

.coming { text-align: center; padding: 56px 28px; border: 1px dashed var(--ice-2); background: radial-gradient(ellipse at center, var(--ice-glow), transparent 70%), var(--panel); }
.coming h3 { font-size: 1.8rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--panel); padding: 8px 12px; border-radius: 8px; }
