/* GAMPEON site kit: Kopfleiste, Fußzeile, Farben, Schrift, Knöpfe und roter Seitenkopf wie im Portal
   (theme.css, chrome.css, light.css) für Seiten ohne Portal-Code:
   - statische Seiten aus tools/publish (/blog/, /changelog/, /roadmap/, /legal/), zusammen mit site.css
   - Developer docs auf create.gampeon.com/docs (Kopie in gampeon/docs site/src/styles/kit.css, dort nicht von Hand ändern)
   Klassen mit gp-Präfix, damit nichts mit Starlight oder den Seiten-Styles kollidiert.
   Ändert sich der Portal-Look, hier mitziehen. tools/publish/test/kit.test.mjs vergleicht die Farb-Tokens mit theme.css
   und light.css. Heller Modus: <html data-theme="light"> (theme-init.js im Portal und auf den statischen Seiten,
   Starlight in den Docs); ohne Skript folgt die Seite dem Gerät. Schrift Rajdhani (OFL), selbst gehostet unter /fonts/. */

@font-face { font-family:"Rajdhani"; font-weight:500; font-display:swap; src:url(/fonts/rajdhani-latin-500-normal.woff2) format("woff2"); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:"Rajdhani"; font-weight:500; font-display:swap; src:url(/fonts/rajdhani-latin-ext-500-normal.woff2) format("woff2"); unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:"Rajdhani"; font-weight:600; font-display:swap; src:url(/fonts/rajdhani-latin-600-normal.woff2) format("woff2"); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:"Rajdhani"; font-weight:600; font-display:swap; src:url(/fonts/rajdhani-latin-ext-600-normal.woff2) format("woff2"); unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:"Rajdhani"; font-weight:700; font-display:swap; src:url(/fonts/rajdhani-latin-700-normal.woff2) format("woff2"); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:"Rajdhani"; font-weight:700; font-display:swap; src:url(/fonts/rajdhani-latin-ext-700-normal.woff2) format("woff2"); unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------------------------------------------------------------- Farben (Marke: brand/README.md) */
:root {
  --space-cadet:#2B2D42; --manatee:#8D99AE; --alice-blue:#EDF2F4; --imperial-red:#EF233C; --crimson:#D80032;
  --bg:#151624; --side:#1c1e2e; --surface:#1d1f30; --card:#1d1f30; --card-2:#272a40; --line:#2e3149;
  --fg:var(--alice-blue); --muted:#9aa3ba; --muted-2:#656c86; --head:#2B2D42;
  --btn:#2c2f47; --btn-h:#383c5a; --input:#191b2a; --input-line:#363a55; --prose:#cfd5df;
  --accent:var(--imperial-red); --accent-strong:var(--crimson); --ok:#3fb67a;
  --radius:12px; --page:1280px; --top-h:80px;
  --shadow:0 0 40px 0 rgba(0,0,0,.18);
  --text:"Rajdhani", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --hex:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath d='M28 1L55 16.5V47.5L28 63L1 47.5V16.5Z M28 63V96' fill='none' stroke='%23ffffff' stroke-opacity='.13' stroke-width='1.6'/%3E%3C/svg%3E");
  color-scheme:dark;
}
:root[data-theme="light"] {
  --bg:#f2f4f8; --side:#ffffff; --surface:#ffffff; --card:#ffffff; --card-2:#eceff5; --line:#e2e6ee;
  --fg:#2B2D42; --muted:#5b6478; --muted-2:#8790a6;
  --btn:#e9ecf3; --btn-h:#dde1eb; --input:#f7f8fb; --input-line:#d5dae5; --prose:#3b3e55;
  --shadow:0 0 40px 0 rgba(43,45,66,.07); --ok:#1f8a55;
  color-scheme:light;
}
/* Ohne Skript (oder bevor es läuft) gilt die Einstellung des Geräts, wie im Portal. */
@media (prefers-color-scheme:light) {
  :root:not([data-theme]) {
    --bg:#f2f4f8; --side:#ffffff; --surface:#ffffff; --card:#ffffff; --card-2:#eceff5; --line:#e2e6ee;
    --fg:#2B2D42; --muted:#5b6478; --muted-2:#8790a6;
    --btn:#e9ecf3; --btn-h:#dde1eb; --input:#f7f8fb; --input-line:#d5dae5; --prose:#3b3e55;
    --shadow:0 0 40px 0 rgba(43,45,66,.07); --ok:#1f8a55;
    color-scheme:light;
  }
}
/* Kopfleiste und roter Seitenkopf bleiben in beiden Modi dunkel bzw. rot, Texte darauf hell. */
.gp-top, .gp-banner { --fg:#EDF2F4; --muted:#b9c1d0; --muted-2:#8d99ae; color:var(--fg); }

.gp-site { margin:0; min-height:100vh; display:flex; flex-direction:column; background:var(--bg); color:var(--fg); font:500 16px/1.6 var(--text); }
.gp-site *, .gp-site *::before, .gp-site *::after { box-sizing:border-box; }
.gp-i { width:18px; height:18px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* ---------------------------------------------------------------- Knöpfe (theme.css .btn) */
.gp-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; height:44px; padding:0 22px; border:0; border-radius:10px;
  background:var(--btn); color:var(--fg); font:700 .92rem/1 var(--text); letter-spacing:0; text-transform:none; text-decoration:none; white-space:nowrap; cursor:pointer;
  box-shadow:3px 5px 10px 0 rgba(0,0,0,.2); transition:background .15s, box-shadow .15s; }
.gp-btn:hover { background:var(--btn-h); color:var(--fg); }
.gp-btn.primary { background:var(--accent); color:#fff; box-shadow:4px 7px 12px 0 rgba(239,35,60,.25); }
.gp-btn.primary:hover { background:var(--accent-strong); color:#fff; }
.gp-btn.ghost { background:transparent; box-shadow:inset 0 0 0 2px var(--input-line); }
.gp-btn.ghost:hover { box-shadow:inset 0 0 0 2px var(--muted); }
.gp-btn.sm { height:36px; padding:0 14px; font-size:.85rem; }
.gp-btn .gp-i { width:16px; height:16px; }
:root[data-theme="light"] .gp-btn:not(.primary) { box-shadow:none; }
:root[data-theme="light"] .gp-btn.ghost { box-shadow:inset 0 0 0 2px var(--input-line); }

/* ---------------------------------------------------------------- Kopfleiste (theme.css .topbar, chrome.css) */
.gp-skip { position:absolute; left:-9999px; top:8px; z-index:60; background:var(--accent); color:#fff; padding:8px 14px; border-radius:8px; font-weight:700; text-decoration:none; }
.gp-skip:focus { left:16px; }
.gp-top { position:sticky; top:0; z-index:30; display:flex; align-items:center; gap:20px; height:var(--top-h); padding:0 0 0 28px;
  background:var(--head); box-shadow:0 4px 30px rgba(0,0,0,.25); font-family:var(--text); }
.gp-brand { display:flex; align-items:center; gap:10px; flex:none; text-decoration:none; }
.gp-brand img { display:block; }
.gp-brand .word { height:18px; width:auto; }
.gp-nav { display:flex; align-items:stretch; align-self:stretch; gap:0; }
.gp-nav a { position:relative; display:inline-flex; align-items:center; height:var(--top-h); padding:0 18px; color:rgba(237,242,244,.72);
  font:700 .95rem/1 var(--text); text-decoration:none; white-space:nowrap; }
.gp-nav a:hover { color:#fff; }
.gp-nav a::after { content:""; position:absolute; left:18px; right:18px; bottom:0; height:4px; border-radius:4px 4px 0 0; background:var(--accent);
  transform:scaleY(0); transform-origin:bottom; transition:transform .15s; }
.gp-nav a[aria-current]::after { transform:none; }
.gp-nav a[aria-current] { color:#fff; }
.gp-nav a:hover:not([aria-current])::after { transform:none; background:rgba(237,242,244,.22); }
.gp-nav a:focus-visible { outline:2px solid #fff; outline-offset:-16px; border-radius:14px; }
.gp-acc { margin-left:auto; display:flex; align-items:center; align-self:stretch; gap:10px; }
.gp-acc .gp-btn:not(.gp-play) { color:#EDF2F4; }
.gp-acc .gp-login { background:transparent; box-shadow:none; }
.gp-acc .gp-login:hover { background:transparent; box-shadow:inset 0 0 0 2px rgba(237,242,244,.35); }
.gp-acc .gp-signup { background:#2c2f47; }
.gp-acc .gp-signup:hover { background:#383c5a; }
:root[data-theme="light"] .gp-acc .gp-signup { background:rgba(0,0,0,.2); }
:root[data-theme="light"] .gp-acc .gp-signup:hover { background:rgba(0,0,0,.3); }
/* Play: volle Höhe, schräge linke Kante, bündig am rechten Rand. */
.gp-play { align-self:stretch; height:auto; margin-left:6px; padding:0 34px 0 40px; gap:10px; border-radius:0; box-shadow:none;
  font:700 1.12rem/1 var(--text); letter-spacing:.1em; text-transform:uppercase; clip-path:polygon(18px 0, 100% 0, 100% 100%, 0 100%); }
.gp-btn.gp-play { box-shadow:none; }
.gp-play .gp-i { width:18px; height:18px; fill:currentColor; stroke-width:1.4; }
.gp-play:focus-visible { outline:2px solid #fff; outline-offset:-12px; }
/* Angemeldet (site.js): kein Log in / Sign up, Play führt zu den Spielen. */
.gp-in .gp-login, .gp-in .gp-signup { display:none; }

/* Menü auf schmalen Bildschirmen: ohne Skript über das Kontrollkästchen vor der Kopfleiste. */
.gp-nav-t { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.gp-menu { display:none; place-items:center; width:44px; height:44px; flex:none; margin-left:-6px; border-radius:12px; color:rgba(237,242,244,.8); cursor:pointer; }
.gp-menu:hover { color:#fff; background:rgba(0,0,0,.18); }
.gp-menu .gp-i { width:22px; height:22px; }
.gp-nav-t:focus-visible + .gp-top .gp-menu { outline:2px solid #fff; outline-offset:2px; }
@media (max-width:1100px) {
  .gp-menu { display:grid; }
  .gp-nav { display:none; position:absolute; left:0; right:0; top:100%; flex-direction:column; align-self:auto; margin:0; padding:10px 12px 14px;
    background:var(--head); box-shadow:0 24px 40px -12px rgba(0,0,0,.5); border-top:1px solid rgba(255,255,255,.06); }
  .gp-nav-t:checked + .gp-top .gp-nav { display:flex; }
  .gp-nav a { height:46px; padding:0 14px; border-radius:10px; }
  .gp-nav a::after { left:0; right:auto; top:10px; bottom:10px; width:4px; height:auto; border-radius:0 4px 4px 0; transform:scaleX(0); }
  .gp-nav a[aria-current] { background:rgba(0,0,0,.18); }
  .gp-nav a[aria-current]::after { transform:none; }
  .gp-nav a:hover:not([aria-current])::after { transform:scaleX(0); }
  .gp-nav a:hover { background:rgba(0,0,0,.12); }
}
@media (max-width:900px) {
  .gp-top { height:62px; gap:10px; padding-left:16px; --top-h:62px; }
  .gp-brand .word { display:none; }
}
@media (max-width:640px) {
  .gp-acc { gap:8px; }
  .gp-acc .gp-btn:not(.gp-play) { height:36px; padding:0 12px; }
  .gp-play { margin-left:2px; padding:0 18px 0 26px; clip-path:polygon(12px 0, 100% 0, 100% 100%, 0 100%); }
  .gp-play span { display:none; }
}
@media (max-width:350px) { .gp-acc .gp-signup { display:none; } }

/* ---------------------------------------------------------------- Roter Seitenkopf (theme.css .page-head)
   Illustration optional über --gp-ill (nur auf gampeon.com, siehe site.css). Ohne Illustration rückt der Text nach links. */
.gp-banner { position:relative; isolation:isolate; overflow:hidden; display:grid; align-content:center; min-height:160px; margin:0 0 32px;
  padding:28px 36px; border-radius:var(--radius); text-align:left;
  background:linear-gradient(90deg, rgba(150,0,34,.95) 0%, rgba(184,0,43,.55) 40%, transparent 70%), var(--hex) 0 0/56px 96px, linear-gradient(100deg, #b4002a 0%, var(--imperial-red) 60%, #ff5a6c 100%);
  box-shadow:var(--shadow); }
.gp-banner.has-ill { padding-left:232px; }
.gp-banner.has-ill::before { content:""; position:absolute; z-index:0; left:28px; top:10px; bottom:0; width:184px; background:var(--gp-ill) center bottom/contain no-repeat; filter:drop-shadow(0 10px 18px rgba(0,0,0,.25)); }
.gp-banner > * { position:relative; z-index:1; }
.gp-banner h1 { margin:0; color:#fff; font:700 clamp(1.9rem, 3vw, 2.5rem)/1.05 var(--text); letter-spacing:0; text-transform:none; }
.gp-banner p { margin:6px 0 0; max-width:64ch; color:rgba(255,255,255,.88); font-size:1rem; font-weight:600; }
.gp-banner a:not(.gp-chip) { color:#fff; text-decoration:underline; text-underline-offset:3px; }
.gp-chips { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:14px; }
.gp-chip { display:inline-flex; align-items:center; gap:7px; padding:4px 12px; border-radius:999px; background:rgba(0,0,0,.18); color:#fff; font-weight:700; font-size:.88rem; text-decoration:none; }
a.gp-chip:hover { background:rgba(0,0,0,.3); color:#fff; }
.gp-chip .gp-i { width:15px; height:15px; }
@media (max-width:760px) {
  .gp-banner, .gp-banner.has-ill { padding:24px 20px; min-height:0; }
  .gp-banner.has-ill::before { display:none; }
}

/* ---------------------------------------------------------------- Fußzeile (chrome.css .foot) */
.gp-foot { display:block; margin-top:24px; padding:48px max(32px, calc((100% - var(--page)) / 2 + 32px)) 24px; background:var(--side);
  border-top:1px solid var(--line); color:var(--muted); font:500 .95rem/1.6 var(--text); }
.gp-foot a { color:var(--muted); text-decoration:none; }
.gp-foot a:hover { color:var(--fg); }
.gp-foot-top { display:grid; grid-template-columns:minmax(240px, 1.2fr) minmax(0, 3fr); gap:48px; padding-bottom:36px; border-bottom:1px solid var(--line); }
.gp-foot-brand p { margin:16px 0 20px; max-width:300px; line-height:1.5; }
.gp-foot .gp-brand .word { height:18px; }
.gp-foot .word-l { display:none; }
:root[data-theme="light"] .gp-foot .word-d { display:none; }
:root[data-theme="light"] .gp-foot .word-l { display:block; }
@media (prefers-color-scheme:light) {
  :root:not([data-theme]) .gp-foot .word-d { display:none; }
  :root:not([data-theme]) .gp-foot .word-l { display:block; }
}
.gp-foot a.gp-btn { color:var(--fg); }
.gp-foot-cols { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:24px; }
.gp-foot-cols > div { display:flex; flex-direction:column; align-items:flex-start; gap:11px; }
.gp-foot-h { margin:0 0 4px; color:var(--fg); font:700 .8rem/1.2 var(--text); letter-spacing:.12em; text-transform:uppercase; }
.gp-foot-cols a { font-weight:600; }
.gp-foot-bottom { display:flex; align-items:center; flex-wrap:wrap; gap:12px 28px; padding-top:22px; font-size:.88rem; }
.gp-foot-legal { display:flex; flex-wrap:wrap; gap:6px 16px; }
.gp-foot-legal a { font-weight:600; }
.gp-foot-studio { display:inline-flex; align-items:center; gap:8px; }
.gp-foot-studio b { color:var(--fg); font-weight:700; }
.gp-foot-studio .gp-i { width:13px; height:13px; }
.gp-foot-status { display:inline-flex; align-items:center; gap:8px; }
.gp-foot-status::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--muted-2); }
/* Farbschema wie im Portal (theme.css .theme-seg). site.js füllt es, ohne Skript bleibt es leer. */
.gp-theme { display:inline-flex; gap:2px; margin-left:auto; padding:3px; border-radius:10px; background:var(--card-2); }
.gp-theme:empty { display:none; }
.gp-theme button { display:grid; place-items:center; width:30px; height:28px; padding:0; border:0; border-radius:8px; background:none; color:var(--muted); cursor:pointer; }
.gp-theme button .gp-i { width:16px; height:16px; }
.gp-theme button:hover { color:var(--fg); }
.gp-theme button[aria-pressed="true"] { background:var(--accent); color:#fff; }
@media (max-width:900px) {
  .gp-foot { padding:36px 16px 20px; }
  .gp-foot-top { grid-template-columns:minmax(0, 1fr); gap:32px; }
  .gp-foot-cols { grid-template-columns:repeat(2, minmax(0, 1fr)); row-gap:28px; }
}
@media (max-width:640px) {
  .gp-foot-bottom { flex-direction:column; align-items:flex-start; }
  .gp-theme { margin-left:0; }
}
@media (prefers-reduced-motion:reduce) { .gp-nav a::after, .gp-btn { transition:none; } }
