/* gkw.games — shared studio shell.
   Every page loads this file. Page-specific styles live next to their page
   (assets/ascenseur.css) or inline when they are a few lines.
   Fonts are self-hosted on purpose: hotlinking Google Fonts is an
   Abmahnung risk under German GDPR case law (LG München I, 3 O 17493/20). */

@font-face{font-family:'Bungee';src:url('../fonts/bungee-400.woff2') format('woff2');font-weight:400;font-display:swap}
/* Body text: 'optional' keeps a late font from reflowing the page (it is preloaded, so it usually makes it). */
@font-face{font-family:'Rubik';src:url('../fonts/rubik-var.woff2') format('woff2');font-weight:300 900;font-display:optional}
@font-face{font-family:'Silkscreen';src:url('../fonts/silkscreen-400.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Archivo';src:url('../fonts/archivo-var.woff2') format('woff2');font-weight:100 900;font-display:swap}

/* ————— tokens ————— */
:root{
  /* studio: the arcade cabinet at night */
  --space:#131024;
  --panel:#1C1738;
  --panel-2:#241D47;
  --text:#EFECFF;
  --dim:#A9A2CC;
  --pink:#FF4FA3;
  --cyan:#3DE0D4;
  --amber:#FFC53D;
  --line:rgba(239,236,255,.13);
  --line-strong:rgba(239,236,255,.28);

  --display:'Bungee',Impact,'Arial Black',sans-serif;
  --body:'Rubik',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --pixel:'Silkscreen','Courier New',monospace;

  /* roles the shell reads; a themed page (data-theme="paper") remaps them */
  --bg:var(--space);
  --fg:var(--text);
  --fg-dim:var(--dim);
  --surface:var(--panel);
  --rule:var(--line);
  --link:var(--cyan);
  --focus:var(--amber);
  --wordmark-dot:var(--pink);
  --current:var(--amber);

  --measure:68ch;
  --wrap:1080px;
  --gutter:clamp(1rem,4vw,1.5rem);
  --radius:10px;
}

*,*::before,*::after{box-sizing:border-box}
*{margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
body{background:var(--bg);color:var(--fg);font-family:var(--body);font-size:1.0625rem;line-height:1.65;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-height:100vh;display:flex;flex-direction:column}
main{flex:1}
p,li,dd,figcaption{text-wrap:pretty}
img,svg,canvas{display:block;max-width:100%}
img{height:auto}
::selection{background:var(--pink);color:var(--space)}
a{color:var(--link);text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{color:var(--fg)}
:focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:2px}
.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter)}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:var(--gutter);top:-100px;z-index:100;background:var(--amber);color:var(--space);padding:.6rem 1rem;border-radius:6px;font-weight:600;text-decoration:none}
.skip:focus{top:.75rem}

/* launch switch: assets/stores.js sets html[data-stores] */
html[data-stores="live"] [data-show="soon"],html:not([data-stores="live"]) [data-show="live"]{display:none}

/* the marquee trim: the studio's signature stripe, on every page */
.trim{height:4px;background:linear-gradient(90deg,var(--pink) 0 33.3%,var(--cyan) 33.3% 66.6%,var(--amber) 66.6%)}

/* ————— header ————— */
.site-header{position:sticky;top:0;z-index:20;background:color-mix(in srgb,var(--bg) 90%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--rule)}
.site-header .in{display:flex;align-items:center;justify-content:space-between;gap:1rem 2rem;padding-block:.8rem;flex-wrap:wrap}
.wordmark{font-family:var(--display);font-size:1.05rem;color:var(--fg);text-decoration:none;letter-spacing:.02em;white-space:nowrap}
.wordmark span{color:var(--wordmark-dot)}
.wordmark:hover{color:var(--fg)}
.site-nav ul{display:flex;gap:.25rem 1.4rem;list-style:none;align-items:center;flex-wrap:wrap}
.site-nav a{font-weight:500;font-size:.95rem;text-decoration:none;color:var(--fg-dim);padding:.3rem 0;border-bottom:2px solid transparent}
.site-nav a:hover{color:var(--fg)}
.site-nav a[aria-current="page"]{color:var(--fg);border-bottom-color:var(--current)}
@media (max-width:640px){
  .site-header{position:static}
  .site-header .in{padding-block:.7rem .55rem}
  .site-nav{width:100%}
  .site-nav ul{gap:.1rem 1.15rem}
  .site-nav a{font-size:.92rem}
}

/* ————— buttons ————— */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;font:600 .98rem/1.2 var(--body);text-decoration:none;padding:.8rem 1.3rem;border-radius:8px;border:1px solid transparent;cursor:pointer;transition:background-color .15s ease,color .15s ease,border-color .15s ease}
.btn-primary{background:var(--pink);color:var(--space)}
.btn-primary:hover{background:var(--text);color:var(--space)}
.btn-amber{background:var(--amber);color:var(--space)}
.btn-amber:hover{background:var(--text);color:var(--space)}
.btn-ghost{color:var(--fg);border-color:var(--line-strong);background:transparent}
.btn-ghost:hover{border-color:var(--fg);color:var(--fg)}
.btn svg{width:1.1em;height:1.1em;flex:none}

/* ————— page intro (support, press, privacy, legal) ————— */
.page-intro{padding-block:clamp(2.6rem,7vw,4.4rem) clamp(1.6rem,4vw,2.4rem)}
.page-intro h1{font-family:var(--display);font-weight:400;font-size:clamp(2.1rem,6vw,3.3rem);line-height:1.05;letter-spacing:.005em;margin-bottom:1rem;max-width:18ch}
.page-intro .lede{color:var(--fg-dim);font-size:clamp(1.05rem,2.2vw,1.2rem);max-width:56ch}
.page-intro .lede strong{color:var(--fg);font-weight:600}

/* section headings on studio pages */
.h2{font-family:var(--display);font-weight:400;font-size:clamp(1.45rem,3.4vw,1.95rem);line-height:1.15;margin-bottom:1.3rem}
.h3{font-family:var(--body);font-weight:700;font-size:1.2rem;line-height:1.3;margin-bottom:.5rem}

/* ————— prose: long-form text (privacy, legal, answers) ————— */
.prose{max-width:var(--measure)}
.prose > * + *{margin-top:1rem}
.prose h2{font-family:var(--display);font-weight:400;font-size:clamp(1.3rem,3vw,1.6rem);line-height:1.2;margin-top:3rem;scroll-margin-top:5rem}
.prose h3{font-weight:700;font-size:1.1rem;line-height:1.35;margin-top:2rem;scroll-margin-top:5rem}
.prose h2 + *, .prose h3 + *{margin-top:.7rem}
.prose p,.prose li{color:color-mix(in srgb,var(--fg) 86%,var(--bg))}
.prose strong{color:var(--fg);font-weight:600}
/* menu paths: upright, never a synthesised italic */
.prose em,.faq em{font-style:normal;font-weight:500;color:var(--fg)}
[lang="de"] .prose{-webkit-hyphens:auto;hyphens:auto}
.prose ul,.prose ol{padding-left:1.25rem}
.prose li + li{margin-top:.4rem}
.prose li::marker{color:var(--fg-dim)}
.prose table{width:100%;border-collapse:collapse;font-size:.95rem}
.prose th,.prose td{text-align:left;vertical-align:top;padding:.6rem .8rem .6rem 0;border-bottom:1px solid var(--rule)}
.prose th{font-weight:600;color:var(--fg)}
.prose code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em;background:var(--surface);padding:.1em .35em;border-radius:4px}
.prose .note{border-left:3px solid var(--cyan);padding:.2rem 0 .2rem 1rem;color:var(--fg-dim)}
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}

/* the updated-on line under a policy title */
.stamp{font-size:.92rem;color:var(--fg-dim);margin-top:.9rem}

/* in-page table of contents: a sidebar on wide screens */
.doc{display:grid;grid-template-columns:minmax(0,1fr);gap:2.5rem;padding-bottom:1rem}
@media (min-width:980px){.doc{grid-template-columns:15rem minmax(0,1fr);gap:4rem}}
.toc{align-self:start;font-size:.93rem}
@media (min-width:980px){.toc{position:sticky;top:5.5rem}}
.toc h2{font-family:var(--body);font-size:.95rem;font-weight:700;margin-bottom:.6rem;color:var(--fg)}
.toc ol{list-style:none;border-left:1px solid var(--rule)}
.toc li a{display:block;padding:.28rem 0 .28rem .9rem;margin-left:-1px;border-left:2px solid transparent;color:var(--fg-dim);text-decoration:none}
.toc li a:hover{color:var(--fg);border-left-color:var(--line-strong)}

/* ————— panels & callouts ————— */
.panel{background:var(--surface);border:1px solid var(--rule);border-radius:var(--radius);padding:clamp(1.2rem,3vw,1.6rem)}

/* ————— FAQ (details/summary) ————— */
.faq{border-top:1px solid var(--rule);max-width:var(--measure)}
.faq details{border-bottom:1px solid var(--rule)}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:baseline;gap:1rem;padding:1.05rem 0;font-weight:600;font-size:1.05rem;line-height:1.4;color:var(--fg)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'+';font-family:var(--pixel);font-size:1rem;color:var(--cyan);flex:none;transition:transform .2s ease}
.faq details[open] summary::after{content:'−';color:var(--amber)}
.faq summary:hover{color:var(--cyan)}
.faq .answer{padding:0 0 1.3rem;color:color-mix(in srgb,var(--fg) 86%,var(--bg))}
.faq .answer > * + *{margin-top:.75rem}
.faq .answer ul,.faq .answer ol{padding-left:1.25rem}
.faq .answer li + li{margin-top:.35rem}
.faq .answer strong{color:var(--fg);font-weight:600}

/* ————— footer ————— */
.site-footer{margin-top:clamp(4rem,9vw,6rem);border-top:1px solid var(--rule);padding-block:2.6rem 2.4rem;font-size:.93rem;color:var(--fg-dim)}
.site-footer .cols{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:2rem}
@media (max-width:720px){.site-footer .cols{grid-template-columns:1fr 1fr}.site-footer .about{grid-column:1 / -1}}
.site-footer h2{font-family:var(--body);font-size:.95rem;font-weight:700;color:var(--fg);margin-bottom:.7rem}
.site-footer ul{list-style:none}
.site-footer li + li{margin-top:.4rem}
.site-footer a{color:var(--fg-dim);text-decoration:none}
.site-footer a:hover{color:var(--fg);text-decoration:underline}
.site-footer .about p + p{margin-top:.6rem}
.site-footer .base{margin-top:2.4rem;padding-top:1.4rem;border-top:1px solid var(--rule);display:flex;justify-content:space-between;gap:.8rem 2rem;flex-wrap:wrap;font-size:.86rem}
.site-footer .manref{font-family:var(--pixel);font-size:.66rem;letter-spacing:.06em}
.site-footer .base:first-child{margin-top:0;padding-top:0;border-top:0}
.site-footer .manref a{text-decoration:underline;text-decoration-color:var(--rule)}

@media print{
  .site-header,.site-footer,.skip,.toc,.trim{display:none}
  body{background:#fff;color:#000}
  .prose p,.prose li{color:#000}
  a{color:#000}
}
