/* Ballerspiel / Luckywood Studios - one stylesheet for both sites.
   Brand (Docs/CONFIG/UI.md): purple #512457, orange #E56910 as signal colour -
   orange never carries white text (3.30:1), so buttons on orange use near-black.
   Fonts are served from this site (OFL, licence in /media/fonts/OFL.txt). */

@font-face {
  font-family: "Rubik";
  src: url("/media/fonts/Rubik-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

/* Section heads in Rubik Wet Paint, the game's title font, in the signal colour
   (owner 2026-10-07). Orange on the dark purple background, never white on orange. */
@font-face {
  font-family: "Rubik Wet Paint";
  src: url("/media/fonts/RubikWetPaint-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #170a1a;
  --bg-2: #22102a;
  --panel: #512457;
  --panel-2: #3a1940;
  --text: #f4ecf6;
  --muted: #cdb9d2;
  --accent: #e56910;
  --on-accent: #1a0a1c;
  --link: #ffb37a;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

a { color: var(--link); }
a:hover { color: var(--text); }

img, video { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(23, 10, 26, 0.92);
  border-bottom: 1px solid var(--panel-2);
}
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; }
.top .brand { font-weight: 800; letter-spacing: 0.02em; color: var(--text); text-decoration: none; font-size: 20px; }
.top nav { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--text); }
.top .lang { color: var(--text); border: 1px solid var(--panel); padding: 2px 10px; border-radius: 999px; }

/* Hero */
.hero {
  padding: 40px 0 56px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(229, 105, 16, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  text-align: center;
}
.hero .logo { width: min(520px, 80vw); margin: 0 auto 8px; }
.hero .tagline { font-size: 26px; font-weight: 700; margin: 8px 0 4px; }
.hero .date { color: var(--muted); font-size: 20px; margin: 0 0 24px; }
.hero video { width: 100%; max-width: 960px; margin: 0 auto 28px; border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); background: #000; }

.buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-weight: 800; text-decoration: none; font-size: 18px;
}
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: #ff8a3d; color: var(--on-accent); }
.btn.secondary { background: transparent; color: var(--text); border: 2px solid var(--panel); }
.btn.secondary:hover { border-color: var(--accent); }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--bg-2); }
h1, h2, h3 { line-height: 1.2; }
h2 { font-family: "Rubik Wet Paint", "Rubik", system-ui, sans-serif; font-size: 40px; font-weight: 400; color: var(--accent); margin: 0 0 24px; letter-spacing: 0.01em; }
h2 .accent { color: var(--accent); }
h3 { font-size: 22px; font-weight: 700; margin: 0 0 8px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--panel-2); border-radius: var(--radius); padding: 22px; border: 1px solid var(--panel); }
.card p { margin: 0; color: var(--muted); }

.features { columns: 2 320px; column-gap: 32px; padding-left: 20px; }
.features li { margin: 0 0 8px; break-inside: avoid; }

.shots { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.shots a { display: block; border-radius: 10px; overflow: hidden; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.2s; }
.shots a:hover img { transform: scale(1.03); }

details { background: var(--panel-2); border-radius: 10px; padding: 14px 18px; margin: 0 0 10px; border: 1px solid var(--panel); }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--muted); }

table { border-collapse: collapse; width: 100%; margin: 0 0 20px; font-size: 16px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--panel-2); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

/* Long text pages (legal, press) */
.doc { max-width: 820px; margin: 0 auto; padding: 40px 20px 60px; }
.doc h1 { font-size: 36px; }
.doc h2 { font-size: 30px; margin-top: 36px; }
.doc pre { background: var(--panel-2); border: 1px solid var(--panel); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 14px; line-height: 1.45; }
.doc h3 { font-size: 20px; margin-top: 24px; }
.doc blockquote { margin: 0 0 24px; padding: 12px 16px; background: var(--accent); color: var(--on-accent); border-radius: 10px; font-weight: 600; }
.doc blockquote p { margin: 0; }
.doc code { background: var(--panel-2); padding: 1px 6px; border-radius: 4px; }

/* Footer */
footer { border-top: 1px solid var(--panel-2); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); }
footer .right { margin-left: auto; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  h2 { font-size: 28px; }
  .hero .tagline { font-size: 22px; }
  .top nav { margin-left: 0; }
}

.spaced { margin-top: 20px; }

.contact { display: grid; gap: 14px; margin: 8px 0 0; }
.contact label { display: grid; gap: 6px; font-weight: 600; }
.contact input, .contact textarea { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--panel); background: var(--panel-2); color: var(--text); }
.contact button { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.contact .note { color: var(--muted); font-size: 15px; margin: 0; }
.contact .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Anchor jumps land below the sticky header. */
section, h2 { scroll-margin-top: 80px; }
