/* GameStation – Portal zu den sechs Browserspielen.
   Formensprache der Spiele: Creme-Karten, 3-px-Kohle-Rand, harter Schatten 0 6px 0, Lilita One + Nunito.
   Signatur-Element: die Spielmarken-Leiste unter dem Titel. */
/* Latin + Latin-Ext getrennt: Latin-Ext bringt ş und İ für die Karte „Konuş İdris" */
@font-face { font-family: 'Lilita One'; src: url('fonts/LilitaOne.woff2') format('woff2'); font-weight: 400; font-display: swap; 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: 'Lilita One'; src: url('fonts/LilitaOne-ext.woff2') format('woff2'); font-weight: 400; font-display: swap; 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: 'Nunito'; src: url('fonts/Nunito.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; 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: 'Nunito'; src: url('fonts/Nunito-ext.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; 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; }

:root {
  --nacht: #1E2233;
  --nacht-tief: #12141F;
  --creme: #F6F0DC;
  --weiss: #FFFDF7;
  --kohle: #2B2521;
  --kohle-2: #3D342E;
  --gold: #FFC93C;
  --grau: #7D8AA5;
  --spiel: var(--gold);           /* je Karte überschrieben */
  --spiel-dunkel: var(--kohle-2);
  --schrift-display: 'Lilita One', 'Arial Black', Impact, system-ui, sans-serif;
  --schrift-text: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rand: clamp(16px, 4vw, 40px);
  --schatten: 0 6px 0 rgba(0, 0, 0, .35);
  --radius: 22px;
  --breite: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 106.25%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--schrift-text);
  color: var(--creme);
  line-height: 1.55;
  background: var(--nacht);
  background-image:
    radial-gradient(circle at 15% 8%, rgba(255, 201, 60, .14), transparent 34%),
    radial-gradient(circle at 85% 0%, rgba(79, 195, 255, .16), transparent 30%),
    linear-gradient(180deg, var(--nacht) 0%, var(--nacht-tief) 100%);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--weiss); outline-offset: 3px; border-radius: 6px; }
.sprung { position: absolute; left: 12px; top: -60px; padding: 8px 14px; background: var(--gold); color: var(--kohle); font-weight: 800; border-radius: 999px; z-index: 5; }
.sprung:focus { top: 12px; }

/* ---------- Kopf ---------- */
.kopf { text-align: center; padding: calc(var(--rand) + 12px + env(safe-area-inset-top, 0px)) var(--rand) 0; max-width: var(--breite); margin: 0 auto; }   /* Als iPhone-App liegt die Statusleiste über der Seite */
.kopf__ueber { margin: 0 0 6px; font-weight: 800; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.kopf__titel {
  margin: 0;
  font-family: var(--schrift-display);
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 6rem);
  line-height: .95;
  letter-spacing: .02em;
  color: var(--creme);
  text-shadow: 0 4px 0 var(--kohle), 0 9px 0 rgba(0, 0, 0, .35);
}
.kopf__text { margin: 14px auto 0; max-width: 34rem; font-size: clamp(1rem, 2.4vw, 1.2rem); font-weight: 600; color: rgba(246, 240, 220, .85); }

/* Spielmarken: sechs runde Münzen, „hingeworfen" (leicht gedreht, versetzt), jede ein Anker zur Karte */
.marken { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 14px; margin: 26px auto 0; padding: 0; max-width: 46rem; }
.marke {
  --dreh: 0deg; --hoch: 0px;
  position: relative;
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--kohle);
  box-shadow: 0 0 0 4px var(--spiel), 0 8px 0 rgba(0, 0, 0, .35);
  background: var(--kohle);
  overflow: hidden;
  transform: rotate(var(--dreh)) translateY(var(--hoch));
  transition: transform .25s cubic-bezier(.2, 1.6, .5, 1), box-shadow .25s ease;
}
.marke img { width: 100%; height: 100%; transform: scale(1.18); }
.marke:nth-child(1) { --dreh: -8deg; --hoch: 6px; }
.marke:nth-child(2) { --dreh: 5deg; --hoch: -4px; }
.marke:nth-child(3) { --dreh: -3deg; --hoch: 4px; }
.marke:nth-child(4) { --dreh: 7deg; --hoch: -6px; }
.marke:nth-child(5) { --dreh: -6deg; --hoch: 2px; }
.marke:nth-child(6) { --dreh: 4deg; --hoch: -3px; }
.marke:nth-child(7) { --dreh: -5deg; --hoch: 5px; }
.marke:hover, .marke:focus-visible { transform: rotate(0deg) translateY(-8px) scale(1.08); box-shadow: 0 0 0 4px var(--spiel), 0 14px 0 rgba(0, 0, 0, .35); }
.marke:focus-visible { outline-offset: 6px; }

/* ---------- Karten ---------- */
.spiele { max-width: var(--breite); margin: 0 auto; padding: 38px var(--rand) 10px; }
.raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 28px); }
.karte { min-width: 0; }
/* Hero-Karte fuer das neueste Spiel: volle Breite, damit jede Rasterreihe voll bleibt (keine Luecken) */
.karte--hero { grid-column: 1 / -1; }
.karte--hero .karte__link { flex-direction: row; align-items: stretch; }
.karte--hero .karte__kopf { flex: 0 0 clamp(200px, 30%, 340px); border-bottom: none; border-right: 3px solid var(--kohle); }
.karte--hero .karte__bild { width: clamp(96px, 13vw, 160px); height: clamp(96px, 13vw, 160px); }
.karte--hero .karte__name { font-size: clamp(2rem, 4vw, 2.9rem); }
.karte--hero .karte__zeile { font-size: 1.04rem; max-width: 64ch; }
@media (max-width: 46rem) {
  .karte--hero .karte__link { flex-direction: column; }
  .karte--hero .karte__kopf { flex: none; border-right: none; border-bottom: 3px solid var(--kohle); }
}
.karte__link {
  display: flex; flex-direction: column; height: 100%;
  background: var(--creme);
  color: var(--kohle);
  border: 3px solid var(--kohle);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  text-decoration: none;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.karte__link:hover, .karte__link:focus-visible { transform: translateY(-5px); box-shadow: 0 11px 0 rgba(0, 0, 0, .35); outline-offset: 4px; }
.karte__link:active { transform: translateY(1px); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.karte__kopf {
  position: relative;
  display: grid; place-items: center;
  padding: 26px 20px 22px;
  background: var(--spiel);
  background-image: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, .35), transparent 55%), repeating-linear-gradient(-45deg, rgba(0, 0, 0, .05) 0 10px, transparent 10px 20px);
  border-bottom: 3px solid var(--kohle);
}
.karte__bild { width: 96px; height: 96px; border-radius: 22px; border: 3px solid var(--kohle); box-shadow: 0 5px 0 rgba(0, 0, 0, .28); background: var(--kohle); transition: transform .25s cubic-bezier(.2, 1.6, .5, 1); }
.karte__link:hover .karte__bild { transform: rotate(-4deg) scale(1.06); }
.karte__etikett {
  position: absolute; right: 12px; top: 12px;
  font-family: var(--schrift-display); font-size: .78rem; letter-spacing: .06em;
  background: var(--kohle); color: var(--gold);
  border-radius: 999px; padding: 4px 10px;
  transform: rotate(3deg);
}
.karte__text { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 22px; flex: 1; }
.karte__name { margin: 0; font-family: var(--schrift-display); font-weight: 400; font-size: 1.75rem; line-height: 1.05; letter-spacing: .01em; }
.karte__zeile { margin: 0; font-weight: 600; font-size: .98rem; color: var(--kohle-2); hyphens: auto; overflow-wrap: break-word; }
.chips { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .78rem; font-weight: 800; letter-spacing: .03em; padding: 3px 10px; border-radius: 999px; border: 2px solid var(--kohle); background: var(--weiss); color: var(--kohle); }
.knopf {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; min-width: 9rem;
  padding: .45em 1.5em;
  font-family: var(--schrift-display); font-size: 1.2rem; letter-spacing: .05em;
  color: var(--kohle);
  background: var(--spiel);
  border: 3px solid var(--kohle); border-radius: 999px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .28);
}
.knopf::after { content: '\203A'; font-size: 1.5em; line-height: .6; transform: translateY(-.06em); }
.karte__link:hover .knopf { background: var(--gold); }

/* ---------- Rekorde ---------- */
.rekorde { max-width: var(--breite); margin: 0 auto; padding: 34px var(--rand) 8px; }
.rekorde__titel { margin: 0; font-family: var(--schrift-display); font-weight: 400; font-size: clamp(2rem, 6vw, 2.8rem); text-shadow: 0 3px 0 var(--kohle); text-align: center; }
.rekorde__text { margin: 6px auto 20px; text-align: center; max-width: 32rem; color: rgba(246, 240, 220, .8); font-weight: 600; }
.rekorde__raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }   /* 10 Tafeln = 3 x 3 + 1 (2 Spalten: 5 x 2); script.js streckt die letzte ueber die freien Spalten der letzten Reihe */
.tafel { min-width: 0; background: var(--kohle); border: 3px solid rgba(246, 240, 220, .2); border-top: 6px solid var(--spiel); border-radius: 18px; padding: 14px 16px 16px; }
.tafel__titel { margin: 0 0 10px; font-family: var(--schrift-display); font-weight: 400; font-size: 1.2rem; line-height: 1.1; }
.tafel__titel a { text-decoration: none; }
.tafel__titel a:hover { color: var(--spiel); }
.tafel__titel small { display: block; font-family: var(--schrift-text); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--spiel); }
.tafel__liste { list-style: none; margin: 0; padding: 0; counter-reset: platz; display: flex; flex-direction: column; gap: 6px; }
.tafel__liste li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; }
.tafel__liste li::before { counter-increment: platz; content: counter(platz); font-family: var(--schrift-display); color: var(--spiel); }
.tafel__liste .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tafel__liste .wert { font-family: var(--schrift-display); letter-spacing: .03em; }
.tafel__liste .leer { grid-template-columns: 1fr; color: var(--grau); font-weight: 600; font-size: .9rem; }
.tafel__liste .leer::before { content: none; }

/* ---------- Fuß ---------- */
.fuss { max-width: var(--breite); margin: 0 auto; padding: 40px var(--rand) calc(34px + env(safe-area-inset-bottom, 0px)); text-align: center; color: rgba(246, 240, 220, .75); }
.fuss__text { margin: 0 auto 14px; max-width: 34rem; font-size: .92rem; font-weight: 600; }
.rechtliches { display: flex; justify-content: center; gap: 12px; font-weight: 800; }
.rechtliches a { color: var(--creme); text-decoration-thickness: 2px; text-underline-offset: 3px; padding: 6px 2px; }
.rechtliches a:hover { color: var(--gold); }
.credit { margin: 22px 0 0; font-size: .78rem; opacity: .45; letter-spacing: .06em; }

/* ---------- Einblenden ---------- */
.karte, .tafel { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.karte.sichtbar, .tafel.sichtbar, .ohne-js .karte, .ohne-js .tafel { opacity: 1; transform: none; }
.raster .karte:nth-child(2) { transition-delay: .06s; } .raster .karte:nth-child(3) { transition-delay: .12s; }
.raster .karte:nth-child(4) { transition-delay: .18s; } .raster .karte:nth-child(5) { transition-delay: .24s; } .raster .karte:nth-child(6) { transition-delay: .3s; }
.raster .karte:nth-child(7) { transition-delay: .36s; }

/* ---------- Breiten ---------- */
@media (max-width: 62rem) {
  .raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rekorde__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 38rem) {
  .raster { grid-template-columns: minmax(0, 1fr); }
  .kopf__ueber { font-size: .72rem; letter-spacing: .1em; }
  .marken { gap: 8px 8px; }
  .marke { width: 52px; height: 52px; box-shadow: 0 0 0 3px var(--spiel), 0 6px 0 rgba(0, 0, 0, .35); }
  .chips li { font-size: .72rem; padding: 2px 8px; }
  .karte__link { flex-direction: row; }
  .karte__kopf { flex: 0 0 118px; padding: 16px 12px; }
  .karte__bild { width: 76px; height: 76px; border-radius: 18px; }
  .karte__etikett { right: auto; left: 50%; top: auto; bottom: 8px; transform: translateX(-50%) rotate(-2deg); font-size: .66rem; white-space: nowrap; padding: 3px 8px; }
  .karte__text { padding: 14px 14px 16px; gap: 8px; }
  .karte__name { font-size: 1.45rem; }
  .karte__zeile { font-size: .9rem; }
  .knopf { min-height: 44px; min-width: 0; font-size: 1.05rem; padding: .35em 1.2em; }
  .rekorde__raster { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 24rem) {
  .marken { gap: 6px; }
  .marke { width: 48px; height: 48px; }
  .karte__kopf { flex-basis: 96px; padding: 12px 8px; }
  .karte__bild { width: 64px; height: 64px; }
  .chips li { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marke, .karte__link, .karte__bild, .karte, .tafel { transition: none; }
  .karte, .tafel { opacity: 1; transform: none; }
  .marke:hover, .marke:focus-visible { transform: rotate(var(--dreh)) translateY(var(--hoch)); }
  .karte__link:hover .karte__bild { transform: none; }
}
