:root {
  --bg: #0d1016;
  --panel: #131720;
  --panel-2: #1a1f2a;
  --line: rgba(255, 255, 255, .08);
  --text: #e8ecf3;
  --muted: #8d97a9;
  --accent: #4f8cff;
  --accent-hi: #6ba0ff;
  --radius: 14px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-style: normal; font-display: swap; src: url('fonts/inter-var.woff2') format('woff2'); }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
svg { display: block; }

/* ---------- Grundlayout ---------- */
.app { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100dvh; }
body[data-view="play"] .app { display: none; }
body[data-view="play"] { overflow: hidden; }

/* ---------- Seitenleiste ---------- */
.side {
  position: sticky; top: 0; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column;
  background: var(--panel); border-right: 1px solid var(--line); padding: 20px 12px 16px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 10px 16px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; flex: none; display: block; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: .2px; }
.nav-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 18px 12px 8px; }
.lib-item {
  display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 10px; font-size: 14.5px;
  color: #cfd6e3; transition: background .15s;
}
.lib-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.lib-item.aktiv { background: rgba(79, 140, 255, .16); color: #fff; }
.lib-item.off { color: var(--muted); cursor: default; }
.lib-item.off:hover { background: none; color: var(--muted); }
a.lib-item.off { cursor: pointer; }
a.lib-item.off:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.tile.off a.tile-link { cursor: pointer; }
.lib-item .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-item small { margin-left: auto; font-size: 11px; color: var(--muted); }
.lib-icon { width: 34px; height: 34px; border-radius: 8px; overflow: hidden; flex: none; position: relative; background: var(--panel-2); }
.lib-icon .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lib-home-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: none; color: var(--muted); }
.lib-item.aktiv .lib-home-icon, .lib-item:hover .lib-home-icon { color: #fff; }
.side-fuss { margin-top: auto; padding: 18px 12px 0; font-size: 12px; color: var(--muted); }

/* ---------- Hauptbereich ---------- */
.main { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 14px 28px;
  background: rgba(13, 16, 22, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand { display: none; padding: 0; }
.search {
  position: relative; display: flex; align-items: center; flex: 0 1 420px; height: 40px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line); transition: border-color .15s, background .15s;
}
.search:focus-within { border-color: var(--accent); background: #1d2330; }
.search svg { width: 18px; height: 18px; margin-left: 12px; color: var(--muted); flex: none; }
.search input {
  flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text);
  padding: 0 12px 0 9px; font: inherit; -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; margin: 24px 28px 0; border-radius: 20px; isolation: isolate;
  min-height: clamp(300px, 36vw, 420px); display: flex; align-items: flex-end; background: var(--panel-2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--line);
}
.hero > .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 12, 17, .9) 0%, rgba(10, 12, 17, .55) 42%, rgba(10, 12, 17, 0) 75%),
              linear-gradient(0deg, rgba(10, 12, 17, .6) 0%, rgba(10, 12, 17, 0) 45%);
}
.hero-body { padding: clamp(22px, 4vw, 44px); max-width: 580px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hi); margin-bottom: 10px; }
.hero h1 { margin: 0 0 10px; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.04; font-weight: 800; letter-spacing: -.5px; }
.hero p { margin: 0 0 20px; color: #d3dae7; font-size: 16.5px; max-width: 48ch; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.pill {
  display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; color: #dbe2ef;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .08);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 26px;
  border-radius: 11px; border: 0; cursor: pointer; font-weight: 650; font-size: 15.5px; white-space: nowrap;
  transition: transform .12s, filter .15s, background .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn-primary { color: #fff; background: linear-gradient(180deg, #5f9aff 0%, #3f78ec 100%); box-shadow: 0 8px 24px rgba(63, 120, 236, .4), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .1); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Bibliothek-Raster ---------- */
.abschnitt { padding: 34px 28px 8px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.abschnitt h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.2px; }
.abschnitt .zahl { color: var(--muted); font-size: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.chip {
  height: 32px; padding: 0 14px; border-radius: 999px; cursor: pointer; font-size: 13.5px; color: #c4ccdb;
  background: var(--panel-2); border: 1px solid var(--line); transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { background: #232a38; color: #fff; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 22px; padding: 16px 28px 56px; }
.tile {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--panel-2); isolation: isolate;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--line);
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s;
}
.tile:hover { transform: translateY(-5px) scale(1.025); box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .16); }
.tile-link { position: absolute; inset: 0; display: block; border-radius: inherit; }
.tile .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 10, 14, 0) 42%, rgba(8, 10, 14, .9) 100%); }
.tile-title { position: absolute; left: 15px; right: 15px; bottom: 14px; }
.tile-title strong { display: block; font-size: 18px; font-weight: 750; line-height: 1.15; letter-spacing: -.2px; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.tile-title span { display: block; margin-top: 4px; font-size: 12.5px; color: #c3cbd9; }
.tile .play {
  position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); opacity: 0; transform: scale(.8);
  transition: opacity .18s, transform .18s, background .15s;
}
.tile .play svg { width: 18px; height: 18px; margin-left: 2px; }
.tile:hover .play, .tile .play:focus-visible { opacity: 1; transform: none; }
.tile .play:hover { background: var(--accent-hi); }
.tile.off .art, .tile.off .scrim { filter: saturate(.25) brightness(.65); }
.tile.off:hover { transform: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .35), inset 0 0 0 1px var(--line); }
.tile.off .tile-link { cursor: default; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .15);
}
.leer { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- Detailseite ---------- */
.detail-banner { position: relative; height: clamp(220px, 32vw, 380px); overflow: hidden; background: var(--panel-2); }
.detail-banner .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 16, 22, .25) 0%, rgba(13, 16, 22, 0) 35%, var(--bg) 100%); }
.zurueck-link {
  position: absolute; z-index: 3; top: 18px; left: 28px; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px;
  border-radius: 999px; font-size: 14px; background: rgba(10, 12, 17, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .12); transition: background .15s;
}
.zurueck-link:hover { background: rgba(10, 12, 17, .85); }
.zurueck-link svg { width: 16px; height: 16px; }
.detail-wrap { position: relative; z-index: 2; max-width: 1040px; margin: -120px auto 0; padding: 0 28px 64px; }
.detail-kopf { display: flex; gap: 28px; align-items: flex-end; }
.detail-cover {
  position: relative; flex: none; width: 200px; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; background: var(--panel-2);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .12);
}
.detail-cover .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-info { min-width: 0; padding-bottom: 6px; }
.detail-info h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; font-weight: 800; letter-spacing: -.5px; }
.detail-text { margin: 34px 0 0; max-width: 70ch; color: #c9d1df; font-size: 16.5px; line-height: 1.6; }
.detail-text h2, .mehr h2 { margin: 0 0 10px; font-size: 18px; color: var(--text); }
.hinweis-bald { margin-top: 18px; padding: 12px 16px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.mehr { margin-top: 48px; }
.mehr .grid { padding: 8px 0 0; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.mehr .tile-title strong { font-size: 15px; }

/* ---------- Spieleansicht ---------- */
.spiel { display: none; position: fixed; inset: 0; z-index: 100; flex-direction: column; background: #000; }
body[data-view="play"] .spiel { display: flex; }
.leiste {
  flex: none; display: flex; align-items: center; gap: 8px; height: 52px; background: var(--panel); border-bottom: 1px solid var(--line);
  padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
}
.leiste .titel { flex: 1; min-width: 0; padding: 0 6px; font-weight: 650; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ibtn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; border-radius: 9px; cursor: pointer; font-size: 14px;
  color: #d7deeb; background: rgba(255, 255, 255, .07); border: 1px solid transparent; transition: background .15s, color .15s;
}
.ibtn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.ibtn svg { width: 17px; height: 17px; flex: none; }
.ibtn[hidden] { display: none; }
.buehne { position: relative; flex: 1 1 auto; min-height: 0; background: #000; }
.buehne iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.lade-hinweis {
  position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 3; display: none;
  max-width: calc(100% - 24px); padding: 10px 16px; border-radius: 12px; text-align: center; font-size: 14px;
  background: rgba(19, 23, 32, .96); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.lade-hinweis.sichtbar { display: block; }
.lade-hinweis a { color: var(--accent-hi); font-weight: 600; }

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .topbar { padding: 10px 16px; }
  .topbar .brand { display: flex; }
  .topbar .brand-name { display: none; }
  .search { flex: 1 1 auto; }
  .hero { margin: 16px 16px 0; border-radius: 16px; }
  .abschnitt { padding: 26px 16px 4px; }
  .chips { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 12px 16px 40px; }
  .detail-wrap { padding: 0 16px 48px; margin-top: -90px; }
  .detail-kopf { flex-direction: column; align-items: flex-start; gap: 18px; }
  .detail-cover { width: 150px; }
  .zurueck-link { left: 16px; }
  .mehr .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 640px) and (max-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ibtn .text { display: none; } .ibtn { padding: 0 11px; } }
@media (max-height: 520px) { .leiste { height: 42px; } .ibtn { height: 32px; } }
@media (hover: none) { .tile .play { display: none; } .tile:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Version & Update-Log ---------- */
.ver-tag{position:absolute;top:10px;left:10px;z-index:2;padding:3px 8px;border-radius:6px;background:rgba(8,10,15,.72);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);color:#dbe3f2;font-size:11px;font-weight:600;letter-spacing:.2px;font-variant-numeric:tabular-nums}
.ver-zeile{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:14px;color:var(--muted,#8b95a8);font-size:13px}
.ver-pill{padding:3px 10px;border-radius:999px;background:rgba(255,184,77,.14);color:#ffbf5e;font-size:12px;font-weight:700;letter-spacing:.3px;text-transform:uppercase}
.ver-pill.offiziell{background:rgba(79,140,255,.16);color:#7fb0ff}
.ver-nr{color:#e8edf7;font-weight:600;font-variant-numeric:tabular-nums}
.log{margin-top:40px}
.log h2{margin:0 0 14px;font-size:20px}
.log-liste{display:flex;flex-direction:column;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.025);overflow:hidden}
.log-tag{padding:10px 16px;background:rgba(255,255,255,.04);color:#9fb0cc;font-size:12px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;border-top:1px solid rgba(255,255,255,.05)}
.log-tag:first-child{border-top:0}
.log-eintrag{display:grid;grid-template-columns:auto auto 1fr auto;align-items:baseline;gap:4px 12px;padding:10px 16px;border-top:1px solid rgba(255,255,255,.04);font-size:14px;line-height:1.45}
.log-v{font-variant-numeric:tabular-nums;font-weight:600;color:#e8edf7;min-width:76px}
.log-art{padding:1px 8px;border-radius:5px;font-size:11px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;background:rgba(255,255,255,.07);color:#aab6cc}
.log-art.major{background:rgba(255,92,120,.18);color:#ff8aa0}
.log-art.minor{background:rgba(79,140,255,.18);color:#86b3ff}
.log-art.patch{background:rgba(70,200,140,.16);color:#6fd9a6}
.log-art.start{background:rgba(180,140,255,.16);color:#c3a6ff}
.log-text{color:#cbd3e2;min-width:0;overflow-wrap:anywhere}
.log-sha{color:#6c7a92;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;text-decoration:none}
.log-sha:hover{color:#9ec1ff;text-decoration:underline}
.log-leer{padding:22px 16px;color:#8b95a8;font-size:14px}
.log-mehr{margin:14px auto;display:inline-flex}
@media (max-width:560px){
  .log-eintrag{grid-template-columns:auto 1fr;}
  .log-text{grid-column:1 / -1}
  .log-sha{justify-self:end}
}

/* Icon-Kachel (Spiele mit eigenem 1:1-Icon): Icon groß vor unscharfem Hintergrund */
.icon-art { overflow: hidden; background: var(--panel-2); }
.icon-art .bg { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(22px) brightness(.5) saturate(1.2); }
.icon-art .fg { position: absolute; left: 9%; top: 7%; width: 82%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 20%; box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .1); }

/* ---------- Titel-Wallpaper (Spielname ist ins Bild eingebaut) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hero-titel { display: block; min-height: 0; background: var(--panel); }
.hero-titel::after { display: none; }
.hero-bild { display: block; }
.hero-bild img { display: block; width: 100%; height: auto; }
.hero-leiste { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 24px 18px; }
.hero-text { min-width: 0; }
.hero-text .eyebrow { margin-bottom: 4px; }
.hero-text p { margin: 0; color: #d3dae7; font-size: 16px; max-width: 64ch; }
.hero-leiste .btn-row { flex: none; }
.detail-banner.titel { height: auto; background: var(--bg); }
.detail-banner.titel::after { display: none; }
.detail-banner .titelbild { display: block; width: 100%; height: auto; }
.detail-banner.titel { display: flex; flex-direction: column-reverse; }
.detail-banner.titel .zurueck-link { position: static; align-self: flex-start; margin: 14px 28px 14px; }
.detail-wrap.titel .detail-cover { aspect-ratio: 1 / 1; width: 180px; }
.detail-wrap.titel { margin-top: 26px; }
@media (max-width: 900px) {
  .hero-leiste { flex-direction: column; align-items: flex-start; gap: 14px; padding: 14px 16px 16px; }
  .detail-banner.titel .zurueck-link { margin: 12px 16px; }
  .detail-wrap.titel .detail-cover { width: 140px; }
  .detail-wrap.titel { margin-top: 20px; }
}

/* ---------- Titelschriften (dieselben wie in den Wallpapers) ---------- */
@font-face { font-family: 'T-fredoka'; font-weight: 700; font-display: swap; src: url('fonts/fredoka-700.woff2') format('woff2'); }
@font-face { font-family: 'T-cinzel'; font-weight: 900; font-display: swap; src: url('fonts/cinzel-900.woff2') format('woff2'); }
@font-face { font-family: 'T-lilita'; font-weight: 400; font-display: swap; src: url('fonts/lilita-one-400.woff2') format('woff2'); }
@font-face { font-family: 'T-anton'; font-weight: 400; font-display: swap; src: url('fonts/anton-400.woff2') format('woff2'); }
@font-face { font-family: 'T-bangers'; font-weight: 400; font-display: swap; src: url('fonts/bangers-400.woff2') format('woff2'); }
@font-face { font-family: 'T-marker'; font-weight: 400; font-display: swap; src: url('fonts/permanent-marker-400.woff2') format('woff2'); }
@font-face { font-family: 'T-silkscreen'; font-weight: 700; font-display: swap; src: url('fonts/silkscreen-700.woff2') format('woff2'); }
@font-face { font-family: 'T-patrick'; font-weight: 400; font-display: swap; src: url('fonts/patrick-hand-400.woff2') format('woff2'); }
/* Zwei Ebenen wie im Wallpaper: hinten Umriss + Schatten, vorn die Füllung (Verlauf möglich). Zeilenhöhe/Padding, damit g, j, p, y nicht abgeschnitten werden. */
.shop h1.titelschrift { line-height: 1.1; margin: 0 0 8px; overflow-wrap: anywhere; }
.titelschrift .tt { position: relative; display: inline-block; padding: .1em .1em .3em 0; }
.titelschrift .tt-b { position: absolute; left: 0; top: .1em; white-space: nowrap; color: var(--rand, #000); -webkit-text-stroke: var(--randbreite, .1em) var(--rand, #000); text-shadow: 0 .07em .15em rgba(0, 0, 0, .45); filter: drop-shadow(0 .05em .09em rgba(0, 0, 0, .35)); }
.titelschrift .tt-f { position: relative; display: inline-block; padding-bottom: .3em; margin-bottom: -.3em; background: var(--fuell, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---------- Detailseite im Stil einer Shop-Seite ---------- */
.shop { max-width: 1120px; margin: 0 auto; padding: 18px 28px 64px; }
.shop > h1 { margin: 0 0 14px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; font-weight: 800; letter-spacing: -.5px; }
.shop h1.titelschrift { font-size: clamp(30px, 4.4vw, 46px); }
.shop-oben { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.shop-oben.ohne-galerie { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.gal { min-width: 0; }
.gal-haupt { position: relative; border-radius: 12px; overflow: hidden; background: #05070b; box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08); }
.gal-bild { display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal-bild img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gal-pfeil {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 64px; border: 0; cursor: pointer; color: #fff;
  background: rgba(8, 10, 15, .55); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s, background .15s;
}
.gal-haupt:hover .gal-pfeil, .gal-pfeil:focus-visible, #lightbox .gal-pfeil { opacity: 1; }
.gal-pfeil:hover { background: rgba(8, 10, 15, .85); }
.gal-pfeil svg { width: 22px; height: 22px; }
.gal-pfeil.links { left: 0; border-radius: 0 8px 8px 0; }
.gal-pfeil.rechts { right: 0; border-radius: 8px 0 0 8px; }
.gal-pfeil.rechts svg { transform: scaleX(-1); }
@media (hover: none) { .gal-pfeil { opacity: .85; } }
.gal-reihe { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 3px 3px 8px; scrollbar-width: thin; }
.gal-mini { flex: none; width: 116px; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: pointer; background: #05070b; opacity: .65; outline: 2px solid transparent; outline-offset: 1px; transition: opacity .15s, outline-color .15s; }
.gal-mini:hover { opacity: 1; }
.gal-mini.aktiv { opacity: 1; outline-color: var(--accent-hi); }
.gal-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-info { min-width: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.shop-kopf { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.shop-icon { position: relative; flex: none; width: 88px; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--panel-2); box-shadow: 0 8px 22px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .12); }
.shop-icon .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-info .kurz { margin: 0; color: #d3dae7; font-size: 15px; line-height: 1.5; }
.fakten { margin: 0 0 14px; display: grid; gap: 0; font-size: 13.5px; }
.fakt { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.fakt dt { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; padding-top: 2px; }
.fakt dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.tags-titel { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; margin: 0 0 6px; }
.shop-info .pills { margin-bottom: 16px; }
.shop-info .btn-row { display: grid; gap: 8px; }
.shop-info .btn { width: 100%; }
.shop-text, .sysreq { margin-top: 30px; max-width: 76ch; }
.shop-text h2, .sysreq h2 { margin: 0 0 10px; font-size: 18px; color: var(--text); }
.shop-text p { margin: 0; color: #c9d1df; font-size: 16.5px; line-height: 1.65; }
.sysreq ul { margin: 0; padding: 14px 18px 14px 34px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 10px; color: #c9d1df; font-size: 14.5px; line-height: 1.7; }
.shop .log, .shop .mehr { margin-top: 34px; }
#lightbox { position: fixed; inset: 0; z-index: 2147483000; display: none; align-items: center; justify-content: center; background: rgba(3, 5, 9, .93); }
#lightbox.offen { display: flex; }
#lightbox #lb-img { max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); object-fit: contain; border-radius: 6px; }
#lightbox .gal-pfeil { position: fixed; }
.lb-zu { position: fixed; top: 12px; right: 14px; width: 42px; height: 42px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; z-index: 2; }
@media (max-width: 900px) {
  .shop { padding: 14px 16px 48px; }
  .shop-oben { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .gal-mini { width: 92px; }
  .fakt { grid-template-columns: 104px minmax(0, 1fr); }
}

/* =====================================================================
   Überarbeitung: ruhigere Flächen, eine Schrift, klare Abstufung
   ===================================================================== */
:root {
  --bg: #0b0d12; --panel: #10131a; --panel-2: #171b24; --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .13);
  --text: #eceff5; --muted: #8b94a6; --accent: #5a8bfb; --accent-hi: #7ba3ff;
}
body { font-size: 15px; line-height: 1.5; letter-spacing: -.011em; font-feature-settings: 'cv11', 'ss03'; }
h1, h2, h3 { letter-spacing: -.022em; }

/* Seitenleiste */
.side { padding: 18px 10px 14px; background: var(--panel); }
.brand { padding: 2px 10px 14px; gap: 11px; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.brand-name { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.nav-label { font-size: 12.5px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); padding: 16px 12px 6px; }
.lib-item { gap: 11px; padding: 5px 10px; border-radius: 8px; font-size: 14px; color: #c3cad8; letter-spacing: -.01em; }
.lib-item:hover { background: rgba(255, 255, 255, .05); }
.lib-item.aktiv { background: rgba(255, 255, 255, .08); color: #fff; font-weight: 600; }
.lib-icon, .lib-home-icon { width: 28px; height: 28px; }
.lib-icon { border-radius: 7px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.side-fuss { font-size: 12.5px; }
.side-fuss a:hover { color: var(--text); }

/* Kopfleiste */
.topbar { padding: 12px 32px; background: rgba(11, 13, 18, .8); }
.search { height: 38px; flex-basis: 380px; border-radius: 9px; background: rgba(255, 255, 255, .05); border-color: transparent; }
.search:hover { background: rgba(255, 255, 255, .07); }
.search:focus-within { background: rgba(255, 255, 255, .07); border-color: var(--line-2); box-shadow: 0 0 0 3px rgba(90, 139, 251, .22); }
.search input { font-size: 14.5px; }

/* Knöpfe */
.btn { height: 42px; padding: 0 20px; border-radius: 9px; font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; gap: 8px; transition: background .15s, border-color .15s, transform .1s; }
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(0, 0, 0, .4); }
.btn-primary:hover { filter: none; background: #6f9aff; }
.btn-ghost { background: transparent; border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); }

/* Startseite: Hero */
.hero { margin: 24px 32px 0; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .4), 0 0 0 1px var(--line); }
.hero-titel { background: var(--panel); }
.hero-leiste { padding: 14px 20px 16px 24px; gap: 24px; border-top: 1px solid var(--line); }
.hero-text p { font-size: 15.5px; color: #c8d0de; max-width: 60ch; line-height: 1.5; }

/* Abschnitt + Filter */
.abschnitt { padding: 40px 32px 0; gap: 4px 12px; align-items: baseline; }
.abschnitt h2 { font-size: 22px; font-weight: 650; letter-spacing: -.025em; }
.abschnitt .zahl { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chips {
  flex: 0 0 100%; margin: 12px 0 0; gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding: 2px 32px 4px; margin-inline: -32px; width: calc(100% + 64px);
  scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 48px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 32px, #000 calc(100% - 48px), transparent 100%);
}
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 32px; padding: 0 13px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--muted); background: transparent; border: 1px solid var(--line); }
.chip:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #0b0d12; font-weight: 600; }

/* Kacheln: Bild oben, Text darunter */
.grid { grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 28px 22px; padding: 18px 32px 64px; }
.tile { aspect-ratio: auto; border-radius: 0; overflow: visible; background: none; box-shadow: none; isolation: auto; transition: none; }
.tile:hover { transform: none; box-shadow: none; }
.tile-link { position: static; display: block; border-radius: 12px; }
.tile-art { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--panel-2); isolation: isolate; box-shadow: 0 0 0 1px var(--line), 0 8px 22px rgba(0, 0, 0, .35); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.tile:hover .tile-art, .tile-link:focus-visible .tile-art { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), 0 16px 34px rgba(0, 0, 0, .5); }
.tile .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-text { padding: 11px 2px 0; }
.tile-text strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-text span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .play { top: 10px; right: 10px; width: 36px; height: 36px; }
.tile .badge { top: 10px; left: 10px; padding: 3px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.ver-tag { top: 10px; left: 10px; padding: 3px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: rgba(8, 10, 15, .66); letter-spacing: 0; }
.tile.off .tile-art { filter: saturate(.25) brightness(.65); }
.tile.off:hover .tile-art { transform: none; }
.mehr .grid { padding: 6px 0 0; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }
.mehr .tile-text strong { font-size: 14.5px; }

/* Detailseite */
.zurueck-link { border-radius: 8px; height: 34px; font-size: 13.5px; font-weight: 500; background: rgba(255, 255, 255, .05); border-color: var(--line); }
.zurueck-link:hover { background: rgba(255, 255, 255, .1); }
.detail-banner.titel .zurueck-link { margin: 16px 32px 16px; }
.shop { padding: 4px 32px 80px; }
.shop h1.titelschrift { margin-bottom: 12px; }
.shop-oben { gap: 28px; grid-template-columns: minmax(0, 1fr) 352px; }
.gal-haupt { border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 18px 46px rgba(0, 0, 0, .45); }
.gal-mini { border-radius: 8px; width: 120px; opacity: .6; outline-offset: 2px; }
.shop-info { background: var(--panel); border-radius: 12px; padding: 20px; }
.shop-kopf { gap: 16px; margin-bottom: 18px; }
.shop-icon { width: 80px; border-radius: 17px; }
.shop-info .kurz { font-size: 15px; line-height: 1.55; color: #cfd6e3; }
.fakten { margin-bottom: 18px; font-size: 14px; }
.fakt { grid-template-columns: 132px minmax(0, 1fr); padding: 9px 0; }
.fakt dt { text-transform: none; letter-spacing: -.005em; font-size: 14px; color: var(--muted); padding-top: 0; }
.tags-titel { text-transform: none; letter-spacing: -.005em; font-size: 14px; margin-bottom: 8px; }
.pills { gap: 6px; }
.pill { padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 500; color: #b7c8f5; background: rgba(90, 139, 251, .13); border: 0; }
.ver-pill { padding: 2px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.shop-info .btn-row { gap: 8px; }
.shop-text, .sysreq { margin-top: 36px; }
.shop-text h2, .sysreq h2, .log h2, .mehr h2 { font-size: 19px; font-weight: 650; letter-spacing: -.02em; margin-bottom: 14px; }
.shop-text p { font-size: 16px; line-height: 1.7; color: #c5cddb; }
.sysreq ul { background: var(--panel); border-radius: 12px; font-size: 14.5px; }
.shop .log, .shop .mehr { margin-top: 44px; }
.log-liste { background: var(--panel); border-color: var(--line); border-radius: 12px; }
.log-tag { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .03); }
.log-art { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; border-radius: 6px; }

@media (min-width: 901px) { .app { grid-template-columns: 252px minmax(0, 1fr); } }
@media (max-width: 900px) {
  .topbar { padding: 10px 16px; }
  .hero { margin: 16px 16px 0; border-radius: 12px; }
  .hero-leiste { padding: 14px 16px 16px; }
  .hero-leiste .btn-row { width: 100%; }
  .hero-leiste .btn { flex: 1; }
  .abschnitt { padding: 30px 16px 0; }
  .chips { padding: 2px 16px 4px; margin-inline: -16px; width: calc(100% + 32px); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; padding: 14px 16px 44px; }
  .mehr .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px 0 0; }
  .shop { padding: 0 16px 56px; }
  .detail-banner.titel .zurueck-link { margin: 12px 16px; }
  .shop-oben { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .fakt { grid-template-columns: 132px minmax(0, 1fr); }
}
@media (hover: none) { .tile:hover .tile-art { transform: none; box-shadow: 0 0 0 1px var(--line), 0 8px 22px rgba(0, 0, 0, .35); } }

@media (min-width: 640px) and (max-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mehr .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.shop-titelzeile { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.shop-titelzeile h1, .shop-titelzeile h1.titelschrift { margin: 0; min-width: 0; }
.shop-titelzeile .btn-spielen { flex: none; min-width: 168px; height: 46px; font-size: 15px; }
.spiel-aktion { display: flex; align-items: center; gap: 12px 22px; flex: none; }
.spielinfo { display: flex; align-items: center; gap: 26px; }
.spielinfo[hidden] { display: none; }
.shop-titelzeile.ohne-zeit .si-zeit { display: none; }
.spielinfo .si { display: flex; align-items: center; gap: 10px; text-align: left; }
.spielinfo .si svg { width: 28px; height: 28px; flex: none; color: var(--muted); }
.spielinfo .si span { display: flex; flex-direction: column; gap: 1px; }
.spielinfo small { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.spielinfo b { font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; }
@media (max-width: 900px) { .spiel-aktion { flex-direction: column-reverse; align-items: stretch; width: 100%; } .shop-titelzeile .btn-spielen { width: 100%; } .spielinfo { justify-content: space-between; } }

/* Detailseite: Gliederung (links Galerie + Beschreibung, rechts Infos) */
.shop-haupt { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.shop-haupt .shop-text { margin-top: 28px; max-width: none; }
.shop-info { position: sticky; top: 16px; }
.log { margin-top: 44px; }
.log-mehr { width: calc(100% - 20px); margin: 10px; }
.sysreq { margin-top: 36px; max-width: none; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.sysreq summary { list-style: none; cursor: pointer; padding: 14px 18px; font-size: 15px; font-weight: 600; color: var(--text); display: flex; align-items: center; justify-content: space-between; }
.sysreq summary::-webkit-details-marker { display: none; }
.sysreq summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--muted, #98a2b6); }
.sysreq[open] summary::after { content: '–'; }
.sysreq ul { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; background: transparent; padding: 14px 18px 16px 36px; }
@media (max-width: 900px) { .shop-info { position: static; } .shop-haupt .shop-text { margin-top: 22px; } }

/* ---------- Konto, Freunde ---------- */
body.konto-offen { overflow: hidden; }
.tbtn {
  position: relative; flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid transparent; color: #cfd6e3; transition: background .15s, color .15s;
}
.tbtn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.tbtn[hidden] { display: none; }
.tbtn svg { width: 20px; height: 20px; }
.tbtn.konto { border-radius: 50%; font-weight: 700; font-size: 15px; border: 0; }
.freunde-abz {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff5a5f; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.lib-item .freunde-abz { position: static; margin-left: auto; }
.freunde-abz[hidden] { display: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.avatar.gross { width: 52px; height: 52px; font-size: 22px; }

.konto-sperre {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; overflow-y: auto;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(79, 140, 255, .22), transparent 60%), var(--bg);
}
.konto-karte {
  width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5); text-align: center;
}
.konto-karte .brand-mark { margin: 0 auto 10px; width: 52px; height: 52px; border-radius: 14px; }
.konto-karte h1 { margin: 0 0 6px; font-size: 24px; }
.konto-sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.konto-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 16px; background: rgba(255, 255, 255, .05); border-radius: 12px; }
.konto-tabs button { height: 36px; border: 0; border-radius: 9px; background: none; color: var(--muted); font-weight: 600; cursor: pointer; }
.konto-tabs button.aktiv { background: var(--panel-2); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset; }
.konto-karte form, .dlg form { text-align: left; }
.konto-karte label, .dlg label { display: block; margin: 0 0 12px; font-size: 13px; font-weight: 600; color: #b9c2d3; }
.konto-karte input, .dlg input, .fr-form input {
  display: block; width: 100%; height: 44px; margin-top: 6px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: inherit; font-size: 16px;
}
.konto-karte input:focus, .dlg input:focus, .fr-form input:focus { outline: none; border-color: var(--accent); }
.konto-regel { margin: -6px 0 12px; font-size: 12px; color: var(--muted); }
.nur-neu { display: none !important; }
.konto-sperre.neu .nur-neu { display: block !important; }
.konto-fehler { min-height: 18px; margin: 0 0 10px; font-size: 13px; color: #ff8a8a; }
.konto-los { width: 100%; justify-content: center; height: 46px; }
.konto-hinweis { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }

.dlg-hinter { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 20px; background: rgba(5, 7, 10, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dlg { width: min(400px, 100%); max-height: 90dvh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.dlg-kopf { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.dlg-titel { font-size: 19px; font-weight: 700; }
.dlg-sub { font-size: 13px; color: var(--muted); }
.dlg-teil { display: flex; flex-direction: column; gap: 8px; }
.dlg-teil p { margin: 0 0 10px; font-size: 14px; color: #c3cbda; }
.dlg-teil[hidden] { display: none; }
.dlg-fuss { margin-top: 14px; display: flex; justify-content: flex-end; }
.btn.gefahr { color: #ff9b9b; }
.btn.gefahr:hover { background: rgba(255, 90, 95, .18); }

.fr-wrap { max-width: 760px; margin: 0 auto; padding: 32px 28px 60px; }
.fr-titel { margin: 0 0 4px; font-size: 28px; }
.fr-sub { margin: 0 0 20px; color: var(--muted); }
.fr-form { display: flex; gap: 10px; }
.fr-form input { margin: 0; flex: 1; min-width: 0; }
.fr-meldung { min-height: 22px; margin: 10px 2px 0; font-size: 13.5px; color: #8fd6a4; }
.fr-meldung.fehler { color: #ff8a8a; }
.fr-abschnitt { margin: 26px 0 10px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.fr-zahl { margin-left: 6px; padding: 1px 8px; border-radius: 9px; background: rgba(255, 255, 255, .08); font-size: 12px; letter-spacing: 0; }
.fr-liste { display: flex; flex-direction: column; gap: 8px; }
.fr-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.fr-text { flex: 1; min-width: 0; }
.fr-name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-status { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.fr-status b { color: var(--text); font-weight: 600; }
.fr-status code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: #dfe6f3; font-size: 12.5px; }
.punkt { width: 9px; height: 9px; border-radius: 50%; background: #5b6474; flex: none; }
.punkt.an { background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .18); }
.fr-akt { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.fr-btn { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; box-shadow: none; }
.btn.fr-btn.leise { color: var(--muted); background: none; }
.btn.fr-btn.leise:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.fr-leer { padding: 22px 6px; color: var(--muted); font-size: 14px; }
@media (max-width: 560px) {
  .fr-wrap { padding: 22px 16px 48px; }
  .fr-form { flex-direction: column; }
  .fr-item { flex-wrap: wrap; }
  .fr-akt { width: 100%; justify-content: flex-start; }
}
@media (max-width: 900px) {
  .topbar { gap: 10px; }
  .search { min-width: 0; }
  .search input { min-width: 0; width: 100%; }
}

/* Freunde-Leiste oben auf der Startseite */
.fr-leiste { padding: 22px 32px 0; }
.fr-leiste[hidden], body:not([data-view="home"]) .fr-leiste { display: none; }
.fr-kopf { display: inline-flex; align-items: center; gap: 6px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.fr-kopf svg { margin-top: 2px; color: var(--muted); }
.fr-kopf:hover svg { color: var(--text); }
.fr-neu { margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: #ff5a5f; color: #fff; font-size: 12.5px; font-weight: 650; letter-spacing: 0; }
.fr-reihe { display: flex; gap: 18px; margin-top: 14px; padding-bottom: 6px; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.fr-karte { flex: none; width: 88px; display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--text); }
.fr-kreis { position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 700; transition: transform .15s; }
.fr-karte:hover .fr-kreis { transform: scale(1.05); }
.fr-plus { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.fr-karte:hover .fr-plus { color: var(--text); }
.fr-karte.aus .fr-kreis { opacity: .55; }
.fr-punkt { position: absolute; right: 1px; bottom: 1px; width: 20px; height: 20px; border-radius: 50%; background: #3ddc84; border: 3px solid var(--bg); box-sizing: border-box; }
.fr-n { max-width: 100%; margin-top: 8px; font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-s { max-width: 100%; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
  .fr-leiste { padding: 18px 16px 0; }
  .fr-kopf { font-size: 19px; }
  .fr-reihe { gap: 14px; }
  .fr-karte { width: 78px; }
  .fr-n { font-size: 13px; }
  .fr-kreis { width: 68px; height: 68px; font-size: 28px; }
  .fr-punkt { width: 17px; height: 17px; }
}

/* Spielen-Knöpfe in Grün */
.btn-primary[href$="/play"], .btn-spielen {
  background: linear-gradient(180deg, #3ed884 0%, #1fa85a 100%); color: #fff;
  box-shadow: 0 8px 24px rgba(31, 168, 90, .38), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-spielen.gesperrt, .btn-spielen.gesperrt:hover { background: #232a38; color: var(--muted); box-shadow: none; cursor: default; filter: none; }
.btn-primary[href$="/play"]:hover, .btn-spielen:hover { background: linear-gradient(180deg, #52e395 0%, #28b867 100%); filter: none; }
.tile .play { background: #1fa85a; color: #fff; }
.tile .play:hover { background: #28b867; }

/* Trailer als erstes Element der Galerie */
.gal-haupt { aspect-ratio: 16 / 9; }
.gal-bild { height: 100%; }
.gal-bild[hidden], .gal-video[hidden] { display: none; }
.gal-video { position: absolute; inset: 0; background: #000; }
.gal-video video { width: 100%; height: 100%; object-fit: contain; display: block; cursor: pointer; }
.gal-ton, .gal-voll {
  position: absolute; bottom: 12px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer; z-index: 2;
  background: rgba(8, 11, 18, .72); color: #fff; font: 600 14px var(--font); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.gal-ton { left: 12px; }
.gal-voll { right: 12px; width: 40px; padding: 0; font-size: 18px; }
.gal-ton:hover, .gal-voll:hover { background: rgba(8, 11, 18, .9); }
.gal-pfeil { z-index: 3; }
.gal-mini.video { position: relative; }
.gal-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .28); }
.gal-play::after { content: ''; width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }

.fr-at { margin-left: 8px; font-weight: 500; font-size: 13px; color: var(--muted); }

/* ---------- Startbildschirm ---------- */
#splash { position: fixed; inset: 0; z-index: 2147483000; background: #000; display: grid; place-items: center; --len: 6000; animation: sp-aus .55s ease-in 3.35s forwards; }
#splash.schnell { transition: opacity .25s; opacity: 0; pointer-events: none; animation: none; }
#splash .sp-logo { width: min(54vw, 40vh, 280px); min-width: 110px; height: auto; overflow: visible; filter: drop-shadow(0 0 10px rgba(255, 196, 80, .35)); }
#splash .sp-strich { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: sp-zeichnen 2.1s cubic-bezier(.55, .1, .35, 1) .25s forwards, sp-duenn .7s ease 2.35s forwards; }
#splash .sp-fuell { opacity: 0; animation: sp-fuellen .8s ease-out 2.2s forwards; }
#splash.ohne-strich .sp-strich { display: none; }
@keyframes sp-zeichnen { to { stroke-dashoffset: 0; } }
@keyframes sp-duenn { to { stroke-width: 0; opacity: .0; } }
@keyframes sp-fuellen { to { opacity: 1; } }
@keyframes sp-aus { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  #splash { animation-delay: .9s; animation-duration: .3s; }
  #splash .sp-strich { animation: none; display: none; }
  #splash .sp-fuell { animation-duration: .2s; animation-delay: 0s; }
}

.stand-hinweis { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 5; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(20, 24, 32, .96); border: 1px solid rgba(255, 196, 80, .45); color: #f2e7cf; font-size: 13px; line-height: 1.35; }
.stand-hinweis .btn { flex: none; }

/* ---------- Profil ---------- */
.fr-hl { display: contents; color: inherit; text-decoration: none; }
.pf-wrap { max-width: 760px; margin: 0 auto; padding: 32px 28px 60px; }
.pf-kopf { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.pf-kopftext { min-width: 0; }
.pf-name { margin: 0; font-size: 28px; overflow-wrap: anywhere; }
.pf-at { color: var(--muted); font-size: 14px; margin-top: 2px; }
.pf-status { color: var(--muted); font-size: 14px; margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.pf-punkt { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; flex: none; }
.pf-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.pf-zahlen > div { padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.pf-zahlen b { display: block; font-size: 20px; }
.pf-zahlen small { color: var(--muted); font-size: 12px; }
.pf-aktionen { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pf-liste { display: flex; flex-direction: column; gap: 8px; }
.pf-spiel { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.pf-spiel:hover { border-color: var(--line-2); }
.pf-icon { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none; position: relative; background: var(--panel-2); }
.pf-icon .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-text small { color: var(--muted); font-size: 12px; }
@media (max-width: 700px) { .pf-wrap { padding: 22px 16px 48px; } .pf-name { font-size: 24px; } }

/* ---------- Spielstände zurückholen ---------- */
.st-liste { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; max-height: 52vh; overflow: auto; }
.st-spiel { flex: none; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
.st-kopf { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 10px 12px; cursor: pointer; }
.st-kopf:focus-visible { outline: 2px solid var(--accent, #4f8cff); outline-offset: -2px; }
.st-kopf small { color: var(--muted); font-size: 12px; }
.st-detail { padding: 2px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.st-abschnitt { margin-top: 8px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.st-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.st-detail[hidden] { display: none; }
.st-knoepfe { display: flex; gap: 6px; }
.st-btn { padding: 6px 10px; font-size: 12px; }
.st-leer { color: var(--muted); font-size: 13px; padding: 4px 0; }
.st-meld { min-height: 18px; font-size: 13px; color: #7ee2a8; margin-bottom: 6px; }
.st-meld.fehler { color: #ff8a8a; }

/* Profilbilder mit Symbol (game-icons.net): Kreis mit Hintergrundfarbe, darin das eingefärbte Symbol, drehbar und zoombar */
.avatar.av-bild { position: relative; }
.av-bild .avb { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: block; }
.av-bild .avb i, .bi-sym i { position: absolute; inset: 12%; display: block; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.tbtn.konto.av-bild { position: relative; padding: 0; }
.dlg.breit { width: min(560px, 100%); }
.bi-kopf { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.bi-vorschau { flex: none; }
.avatar.vorschau { width: 96px; height: 96px; font-size: 40px; }
.bi-regler { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bi-zeile { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bi-zeile label { margin: 0; width: 86px; flex: none; }
.bi-zeile input[type=color] { width: 36px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; flex: none; }
.bi-zeile input[type=range] { flex: 1; min-width: 100px; padding: 0; height: 28px; accent-color: var(--accent); }
.bi-zeile output { width: 52px; text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bi-fl { display: flex; gap: 5px; flex-wrap: wrap; }
.bi-fk { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); cursor: pointer; }
.bi-fk:focus-visible, .bi-sym:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.bi-raster { --f: #fff; --b: #345; display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; max-height: 250px; overflow-y: auto; margin: 10px 0 4px; padding: 4px; }
.bi-sym { position: relative; width: 100%; aspect-ratio: 1; padding: 0; border-radius: 50%; border: 2px solid transparent; background: var(--b); cursor: pointer; }
.bi-sym i { background: var(--f); }
.bi-sym:hover { border-color: rgba(255, 255, 255, .5); }
.bi-sym.gewaehlt { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.bi-zahl { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.bi-quelle { font-size: 12px; color: var(--muted); margin: 4px 0 10px; }
.bi-quelle a { color: #7fb0ff; }
@media (max-width: 520px) { .bi-kopf { flex-direction: column; align-items: stretch; } .bi-vorschau { align-self: center; } }

/* Kopfleiste: Die Suche nimmt den ganzen freien Platz, Freunde und Profilbild sitzen ganz rechts */
.topbar .search { flex: 1 1 0; min-width: 0; }

/* Kontomenü: Zeilen in Gruppen statt acht gleicher Knöpfe */
.dlg-kopf { position: relative; }
.dlg-kopftext { min-width: 0; flex: 1; }
.dlg-titel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlg-x { all: unset; box-sizing: border-box; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--muted); flex: none; align-self: flex-start; }
.dlg-x:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.dlg-x:focus-visible, .dlg-zeile:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: -2px; }
.dlg-x svg { width: 18px; height: 18px; }
#dlg-menue { gap: 0; }
.dlg-ueber { margin: 14px 4px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.dlg-gruppe { display: flex; flex-direction: column; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dlg-gruppe.dlg-ende { margin-top: 16px; }
.dlg-zeile { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 48px; cursor: pointer; font-size: 15px; color: var(--text); }
.dlg-zeile + .dlg-zeile { border-top: 1px solid var(--line); }
.dlg-zeile:hover { background: rgba(255, 255, 255, .05); }
.dlg-zeile .ico { width: 20px; height: 20px; flex: none; color: var(--muted); }
.dlg-zeile .pfeil { width: 16px; height: 16px; flex: none; color: var(--muted); opacity: .7; }
.dlg-ztext { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; text-align: left; }
.dlg-ztext b { font-weight: 500; }
.dlg-ztext small { font-size: 12px; color: var(--muted); }
.dlg-zeile.gefahr, .dlg-zeile.gefahr .ico { color: #ff8a8a; }
.dlg-zeile.gefahr .pfeil { display: none; }

.ver-pill.alpha { background: rgba(255, 107, 107, .15); color: #ff8f8f; }

/* Sichtbarkeit */
.sicht-block { margin-bottom: 16px; }
.sicht-titel { font-weight: 600; font-size: 15px; margin-bottom: 3px; }
.sicht-text { font-size: 13px; color: var(--muted); line-height: 1.45; margin-bottom: 8px; }
.dlg-wahl { display: flex; gap: 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.dlg-wahl button { all: unset; box-sizing: border-box; flex: 1; text-align: center; padding: 10px 8px; border-radius: 9px; cursor: pointer; font-size: 14px; color: var(--muted); font-weight: 500; }
.dlg-wahl button:hover { color: var(--text); }
.dlg-wahl button[aria-checked="true"] { background: var(--accent); color: #fff; }
.dlg-wahl button:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 1px; }
.dlg-wahl button:disabled { opacity: .6; cursor: default; }

/* Wallpaper-Banner: auf sehr breiten Bildschirmen wird das Bild nicht noch größer, sondern bleibt in Originalgröße (max. 2000 px) in der Mitte;
   die Seiten füllt eine unscharfe Kopie des Bildes (wie bei Steam). Das Verhältnis des Wallpapers ist 5:1, 2000 px Breite = 400 px Höhe. */
.titelrahmen, .hero-bild { position: relative; display: block; overflow: hidden; }
.titelrahmen .titelhg, .hero-bild .titelhg { display: none; }
.titelrahmen .titelfg, .hero-bild .titelfg { position: relative; z-index: 1; display: block; width: 100%; max-width: 2000px; height: auto; margin: 0 auto; }
@media (min-width: 2250px) {
  .titelrahmen .titelhg, .hero-bild .titelhg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(32px) saturate(1.15) brightness(.85); transform: scale(1.12); z-index: 0; }
  .titelrahmen .titelfg, .hero-bild .titelfg {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
  }
}

/* ---------- Chat unter Freunden ---------- */
.fr-chatzahl { margin-left: 8px; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #ff5a5f; color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
.fr-vorschau { flex-basis: 100%; color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-chatpunkt { position: absolute; right: -2px; top: -2px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: #ff5a5f; color: #fff; border: 3px solid var(--bg); box-sizing: border-box; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
.pf-aktionen a.btn { text-decoration: none; }

body[data-view="chat"] { overflow: hidden; }
.ch-wrap { position: relative; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; padding: 0 16px 12px; min-height: 240px; }
.ch-kopf { flex: none; display: flex; align-items: center; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ch-zurueck { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--muted); flex: none; }
.ch-zurueck:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.ch-person { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); text-decoration: none; }
.ch-person .avatar { width: 40px; height: 40px; }
.ch-pname { display: flex; flex-direction: column; min-width: 0; }
.ch-pname b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.ch-pname small { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.ch-liste { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; padding: 14px 2px 8px; scrollbar-width: thin; }
.ch-leer { margin: auto; padding: 30px 10px; color: var(--muted); text-align: center; }
.ch-aelter { align-self: center; margin: 0 0 12px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2, var(--line)); background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.ch-aelter:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.ch-tag { align-self: center; margin: 14px 0 8px; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 12px; }
.ch-msg { display: flex; flex-direction: column; max-width: 78%; margin-top: 2px; }
.ch-msg.start { margin-top: 10px; }
.ch-msg.ich { align-self: flex-end; align-items: flex-end; }
.ch-msg.er { align-self: flex-start; align-items: flex-start; }
.ch-blase { padding: 8px 13px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; line-height: 1.4; font-size: 15px; }
.ch-msg.ich .ch-blase { background: var(--accent); color: #fff; border-bottom-right-radius: 6px; cursor: pointer; }
.ch-msg.er .ch-blase { background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.ch-msg.ich:not(.ende) .ch-blase { border-bottom-right-radius: 18px; }
.ch-msg.er:not(.ende) .ch-blase { border-bottom-left-radius: 18px; }
.ch-zeit { margin: 3px 6px 0; color: var(--muted); font-size: 11.5px; }
.ch-weg { margin: 5px 4px 0; padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(255, 90, 95, .5); background: none; color: #ff8a8a; font: inherit; font-size: 12.5px; cursor: pointer; }
.ch-weg:hover { background: rgba(255, 90, 95, .12); }
.ch-neu { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font: inherit; font-size: 13px; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); cursor: pointer; }
.ch-neu[hidden] { display: none; }
.ch-meld { flex: none; min-height: 18px; margin: 4px 2px 0; font-size: 13px; color: #8fd6a4; }
.ch-meld.fehler { color: #ff8a8a; }
.ch-form { flex: none; display: flex; align-items: flex-end; gap: 10px; margin-top: 4px; }
.ch-form textarea { flex: 1; min-width: 0; resize: none; max-height: 130px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-size: 15px; line-height: 1.4; outline: none; }
.ch-form textarea:focus { border-color: var(--accent); }
.ch-senden { height: 44px; padding: 0 18px; border-radius: 14px; }
.ch-fehl { padding: 32px 0; }
@media (max-width: 900px) {
  body[data-view="chat"] .topbar { display: none; }
  .ch-wrap { padding: 0 12px calc(10px + env(safe-area-inset-bottom)); }
  .ch-msg { max-width: 86%; }
}

/* Einmalige Übernahme der Daten von der alten Adresse (Anmeldebildschirm auf leifps.de) */
.konto-karte label.konto-umzug { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); font-weight: 400; font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.konto-karte label.konto-umzug b { color: #e8ecf4; font-weight: 600; }
.konto-karte label.konto-umzug input { width: 18px; height: 18px; flex: none; margin: 1px 0 0; padding: 0; accent-color: var(--accent); }
