/* SpielBlitz – site styles */
:root {
  --bg: #070b1a;
  --bg-2: #0b1130;
  --panel: #0f1838;
  --panel-2: #142048;
  --line: rgba(41, 230, 255, .16);
  --line-strong: rgba(41, 230, 255, .45);
  --text: #e9efff;
  --muted: #9aa8d4;
  --yellow: #ffe14a;
  --yellow-2: #ffc61a;
  --cyan: #29e6ff;
  --pink: #ff4fd8;
  --green: #5dff9a;
  --orange: #ff9f43;
  --violet: #b77bff;
  --radius: 14px;
  --display: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Arial Narrow", "Roboto Condensed", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
html.sb-noscroll, html.sb-noscroll body { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; font: 16px/1.6 var(--body); color: var(--text); background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(41, 230, 255, .12), transparent 60%),
    radial-gradient(700px 420px at -5% 15%, rgba(255, 225, 74, .07), transparent 60%),
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(41, 230, 255, .025) 46px 48px);
  background-attachment: fixed;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 11, 26, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.site-header::after { content: ""; display: block; height: 2px; background: linear-gradient(90deg, var(--yellow), var(--cyan) 45%, transparent 85%); }
.hdr { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 8px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.logo:hover { color: var(--text); }
.logo-mark { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(255, 225, 74, .45)); transition: transform .25s; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-word { font: italic 800 26px/1 var(--display); letter-spacing: .5px; text-transform: none; }
.logo-word b { color: var(--yellow); font-weight: 800; }
.search { position: relative; flex: 1; max-width: 460px; margin-left: auto; }
.search input {
  width: 100%; height: 44px; padding: 0 46px 0 18px; border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: rgba(15, 24, 56, .9); color: var(--text); font: 15px var(--body); transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(41, 230, 255, .15), 0 0 18px rgba(41, 230, 255, .25); }
.search button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--yellow); color: #121212; cursor: pointer; display: grid; place-items: center; }
.search button svg { width: 18px; height: 18px; }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--panel); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); max-height: 70vh; overflow: auto;
}
.search-results a { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 8px; color: var(--text); }
.search-results a:hover, .search-results a.is-active { background: var(--panel-2); color: var(--yellow); }
.search-results img { width: 64px; height: 40px; border-radius: 6px; object-fit: cover; }
.search-results small { display: block; color: var(--muted); font-size: 12px; }
.search-results .empty { padding: 10px; color: var(--muted); font-size: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-top: 4px; padding-bottom: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; font: 700 14px/1.2 var(--display); letter-spacing: .4px;
  text-transform: uppercase; color: var(--text); background: var(--panel); border: 1px solid var(--line); transform: skewX(-12deg); border-radius: 6px;
  transition: background .2s, color .2s, border-color .2s;
}
.chip > span { display: inline-flex; align-items: center; gap: 6px; transform: skewX(12deg); }
.chip:hover { color: var(--yellow); border-color: var(--yellow); }
.chip.is-active { background: var(--yellow); color: #14110a; border-color: var(--yellow); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--cyan)); display: inline-block; }
.chip.is-active i { background: #14110a; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(30px, 5vw, 52px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(16px, 2vw, 19px); color: #c6d1f5; max-width: 62ch; }
.hl { color: var(--yellow); text-shadow: 0 0 18px rgba(255, 225, 74, .45); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; padding: 38px 0 22px; }
.hero h1 { font-style: italic; text-transform: none; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero-stats li { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--yellow); padding: 8px 14px; border-radius: 8px; font: 700 15px var(--display); }
.hero-stats b { color: var(--yellow); font-size: 18px; margin-right: 4px; }
.daily {
  position: relative; display: block; border-radius: 18px; overflow: hidden; color: var(--text); background: var(--panel);
  border: 1.5px solid rgba(255, 225, 74, .5); box-shadow: 0 0 0 1px rgba(255, 225, 74, .12), 0 20px 50px rgba(0, 0, 0, .45), 0 0 40px rgba(255, 225, 74, .12);
  transition: transform .25s, box-shadow .25s;
}
.daily:hover { transform: translateY(-4px); color: var(--text); box-shadow: 0 0 0 1px rgba(255, 225, 74, .3), 0 26px 60px rgba(0, 0, 0, .5), 0 0 60px rgba(255, 225, 74, .22); }
.daily img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.daily-badge {
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; background: var(--yellow); color: #14110a;
  font: 800 13px/1 var(--display); text-transform: uppercase; letter-spacing: .8px; padding: 8px 12px; border-radius: 6px; transform: skewX(-10deg);
}
.daily-badge svg { width: 14px; height: 14px; }
.daily-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 18px; background: linear-gradient(transparent, rgba(5, 8, 22, .94) 55%); display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.daily-title { font: italic 800 clamp(24px, 3.2vw, 34px)/1.05 var(--display); display: block; }
.daily-text { display: block; color: #c6d1f5; font-size: 14px; margin-top: 4px; max-width: 42ch; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 12px 22px; border-radius: 10px; font: 800 16px/1 var(--display); text-transform: uppercase; letter-spacing: .6px;
  background: var(--yellow); color: #14110a; border: 0; cursor: pointer; box-shadow: 0 0 22px rgba(255, 225, 74, .35); transition: transform .15s, box-shadow .2s;
}
.btn:hover { color: #14110a; transform: translateY(-1px); box-shadow: 0 0 32px rgba(255, 225, 74, .55); }
.btn svg { width: 16px; height: 16px; }
.btn-ghost { background: transparent; color: var(--cyan); border: 1.5px solid var(--cyan); box-shadow: none; }
.btn-ghost:hover { color: var(--bg); background: var(--cyan); }

/* ---------- sections + grid ---------- */
.section { padding: 26px 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-style: italic; text-transform: uppercase; }
.sec-head h2::before { content: ""; width: 14px; height: 24px; background: var(--c, var(--yellow)); clip-path: polygon(60% 0, 0 58%, 42% 58%, 30% 100%, 100% 38%, 56% 38%, 80% 0); flex: none; }
.sec-head a { font: 700 14px var(--display); text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.grid-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover, .card:focus-visible { transform: translateY(-5px); border-color: var(--cyan); color: var(--text); box-shadow: 0 14px 34px rgba(0, 0, 0, .45), 0 0 26px rgba(41, 230, 255, .28); }
.card-img { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-img::after {
  content: "Spielen"; position: absolute; right: 10px; bottom: 10px; padding: 6px 12px 6px 28px; border-radius: 999px; background: var(--yellow) no-repeat 10px 50% / 12px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 1l7 4-7 4z' fill='%2314110a'/%3E%3C/svg%3E");
  color: #14110a; font: 800 13px/1 var(--display); text-transform: uppercase; letter-spacing: .5px; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
}
.card:hover .card-img::after, .card:focus-visible .card-img::after { opacity: 1; transform: none; }
.card-body { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 12px; }
.card-title { font: 700 17px/1.2 var(--display); }
.tag { flex: none; font: 700 11px/1 var(--display); text-transform: uppercase; letter-spacing: .6px; padding: 5px 8px; border-radius: 5px; color: var(--c, var(--cyan)); background: color-mix(in srgb, var(--c, var(--cyan)) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--cyan)) 45%, transparent); }
.card[hidden] { display: none; }
.no-results { color: var(--muted); padding: 20px 0; }
.cat-action { --c: #ff4d6d; }
.cat-geschicklichkeit { --c: #5dff9a; }
.cat-denkspiele { --c: #b77bff; }
.cat-klassiker { --c: #ffe14a; }
.cat-reaktion { --c: #29e6ff; }

/* ---------- prose ---------- */
.prose { max-width: 78ch; color: #cfd8f6; }
.prose h2 { color: var(--text); margin-top: 1.4em; }
.prose h3 { color: var(--text); margin-top: 1.3em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose strong { color: var(--text); }
.seo-text { margin-top: 30px; padding: 28px; border-radius: 18px; background: linear-gradient(160deg, rgba(20, 32, 72, .7), rgba(11, 17, 48, .6)); border: 1px solid var(--line); }
.page-head { padding: 32px 0 10px; }
.page-head h1 { font-style: italic; }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--yellow); }

/* ---------- game page ---------- */
.game-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 10px 0 16px; }
.game-head h1 { margin: 0; font-style: italic; font-size: clamp(28px, 4.4vw, 44px); }
.game-head .tagline { flex-basis: 100%; margin: 0; color: #c6d1f5; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.stage-frame {
  position: relative; border-radius: 18px; padding: 3px; background: linear-gradient(135deg, var(--yellow), var(--cyan) 40%, rgba(41, 230, 255, .2) 70%, var(--pink));
  box-shadow: 0 0 40px rgba(41, 230, 255, .18), 0 20px 50px rgba(0, 0, 0, .5);
}
.sb-stage { background: #050816; border-radius: 15px; overflow: hidden; display: flex; flex-direction: column; touch-action: manipulation; }
.sb-hud { display: flex; align-items: center; gap: 16px; padding: 8px 10px 8px 16px; background: linear-gradient(90deg, #0d1534, #0a1028); border-bottom: 1px solid var(--line); min-height: 52px; }
.sb-stat { display: flex; flex-direction: column; line-height: 1.05; min-width: 56px; }
.sb-stat span { font: 700 11px var(--display); text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.sb-stat b { font: 800 20px var(--display); color: var(--yellow); font-variant-numeric: tabular-nums; }
.sb-stat + .sb-stat b { color: var(--cyan); }
.sb-info { flex: 1; min-width: 0; font: 700 14px var(--display); color: #c6d1f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .3px; }
.sb-btns { display: flex; gap: 6px; }
.sb-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; display: grid; place-items: center; padding: 0; transition: background .15s, color .15s, border-color .15s; }
.sb-btn svg { width: 20px; height: 20px; fill: currentColor; }
.sb-btn:hover { color: var(--yellow); border-color: var(--yellow); }
.sb-btn.is-on { color: var(--cyan); border-color: var(--cyan); }
.sb-screen { position: relative; display: flex; justify-content: center; align-items: center; background: #03050e; flex: 1; }
.sb-canvas { display: block; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; outline: none; }
.sb-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4, 7, 20, .72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sb-overlay[hidden] { display: none; }
.sb-panel { text-align: center; max-width: 460px; }
.sb-ov-title { font: italic 800 clamp(26px, 5vw, 46px)/1.05 var(--display); color: var(--yellow); text-shadow: 0 0 24px rgba(255, 225, 74, .5); margin-bottom: 8px; }
.sb-ov-text { color: #d4ddfa; font-size: clamp(13px, 1.8vw, 16px); margin-bottom: 10px; }
.sb-ov-score { font: 700 18px var(--display); color: var(--text); margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.sb-ov-score:empty { display: none; }
.sb-ov-score b { color: var(--cyan); font-size: 26px; }
.sb-new { color: #14110a; background: var(--yellow); padding: 3px 10px; border-radius: 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .6px; animation: sb-pulse 1s infinite alternate; }
.sb-rec { color: var(--muted); font-size: 15px; }
@keyframes sb-pulse { to { box-shadow: 0 0 22px rgba(255, 225, 74, .7); } }
.sb-play { font: 800 18px/1 var(--display); text-transform: uppercase; letter-spacing: .8px; padding: 14px 30px; border-radius: 12px; border: 0; cursor: pointer; background: var(--yellow); color: #14110a; box-shadow: 0 0 26px rgba(255, 225, 74, .45); transition: transform .12s; }
.sb-play:hover { transform: scale(1.04); }
.sb-ov-hint { margin-top: 10px; color: var(--muted); font-size: 13px; }
.sb-touch { display: none; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 10px; background: #0a1028; border-top: 1px solid var(--line); }
.sb-tbtn {
  min-width: 64px; height: 58px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--panel-2); color: var(--text);
  font: 800 24px/1 var(--display); touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; cursor: pointer;
}
.sb-tbtn.sb-wide { min-width: 110px; font-size: 18px; }
.sb-tbtn.sb-right { margin-left: auto; }
.sb-tbtn.sb-right ~ .sb-tbtn.sb-right { margin-left: 0; }
.sb-tbtn.is-down { background: var(--yellow); color: #14110a; border-color: var(--yellow); }
@media (hover: none), (pointer: coarse) { .sb-has-touch .sb-touch { display: flex; } }
.sb-stage.sb-is-fs, .sb-stage:fullscreen { border-radius: 0; width: 100vw; height: 100vh; }
.sb-stage:-webkit-full-screen { border-radius: 0; width: 100vw; height: 100vh; }
.sb-stage.sb-pseudo-fs { position: fixed; inset: 0; z-index: 1000; border-radius: 0; height: 100%; }
.side-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.side-box h2 { font-size: 20px; text-transform: uppercase; font-style: italic; display: flex; gap: 8px; align-items: center; }
.side-box h2 svg { width: 18px; height: 18px; color: var(--yellow); }
.controls { width: 100%; border-collapse: collapse; font-size: 14px; }
.controls th { text-align: left; font: 700 12px var(--display); text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 10px 0 4px; }
.controls td { padding: 6px 0; border-top: 1px solid var(--line); vertical-align: top; }
.controls td:first-child { padding-right: 12px; width: 58%; }
.controls td:last-child { color: #c6d1f5; }
kbd { display: inline-block; min-width: 26px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-strong); border-bottom-width: 3px; background: var(--bg-2); font: 700 13px var(--display); color: var(--text); text-align: center; margin: 1px 2px 1px 0; }
.facts { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.facts li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.facts li:first-child { border-top: 0; }
.facts span { color: var(--muted); }
.game-text { margin-top: 30px; }
.noscript { padding: 30px; text-align: center; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { margin-top: 50px; border-top: 1px solid var(--line); background: linear-gradient(#070b1a, #050814); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; padding: 34px 16px 18px; }
.foot h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 6px; }
.foot a { color: var(--text); }
.foot a:hover { color: var(--yellow); }
.foot p { color: var(--muted); font-size: 14px; max-width: 40ch; }
.foot-bottom { padding: 14px 16px 26px; color: var(--muted); font-size: 13px; border-top: 1px solid rgba(41, 230, 255, .08); }

/* ---------- misc pages ---------- */
.notfound { text-align: center; padding: 60px 0 20px; }
.notfound .big { font: italic 800 clamp(90px, 20vw, 180px)/1 var(--display); color: var(--yellow); text-shadow: 0 0 40px rgba(255, 225, 74, .5); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.contact-card { display: inline-flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-strong); font: 700 20px var(--display); }
.contact-card svg { width: 28px; height: 28px; color: var(--yellow); }
.cat-intro { max-width: 80ch; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .game-layout { grid-template-columns: 1fr; }
  .game-side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .game-side .side-box { margin-bottom: 0; }
  .grid-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .hdr { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .logo-word { font-size: 23px; }
  .logo-mark { width: 34px; height: 34px; }
  .game-side { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px 10px 10px; }
  .card-title { font-size: 15px; }
  .daily-body { flex-direction: column; align-items: flex-start; padding: 50px 14px 14px; }
  .daily-text { display: none; }
  .sb-hud { gap: 10px; padding: 6px 6px 6px 10px; flex-wrap: wrap; }
  .sb-info { order: 5; flex-basis: 100%; font-size: 13px; }
  .sb-btns { margin-left: auto; }
  .sb-btn { width: 34px; height: 34px; }
  .seo-text { padding: 20px 16px; }
  .sb-tbtn { min-width: 56px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (max-width: 640px) { .site-header { position: relative; } }
