/* Retro-Look im Stil von Windows 98 / 2000. Farben kommen aus /theme.css (Admin > Design). */
:root {
  --desktop: #008080; --win: #c0c0c0; --title-from: #000080; --title-to: #1084d0;
  --text: #000; --link: #0000ee; --font: Tahoma, Verdana, sans-serif;
  --hi: rgba(255,255,255,.95); --lo: rgba(0,0,0,.45); --dark: rgba(0,0,0,.85);
  --field: #fff; --field-text: #000; --field-link: #0000ee; --hover: #e8e8ff; --danger: #a00000;
  /* Design-Bausteine: Diese Werte kann jede Seite und jede App benutzen, ohne zu wissen, ob gerade Windows 98 oder XP aktiv ist.
     Eine App mit eigener Optik (Kartentisch, Pixelpfoten, künftige Mediaplayer-Skins als Klasse am Player, z. B. .skin-xp-media)
     gestaltet nur ihre Spielfläche selbst und nimmt für Rahmen, Knöpfe, Felder, Listen, Reiter und Menüs die normalen Klassen
     (.window, .titlebar, button, .btn, .sunken, .groupbox, .tabs, table.list, .ms-dd). XP stellt nur diese Werte um. */
  --sel-bg: var(--title-from); --sel-text: #fff;   /* markierte Einträge in Listen, Menüs und auf dem Desktop */
  --accent: var(--title-from);                    /* Fortschrittsbalken, Hervorhebungen */
  --radius: 0px; --win-radius: 0px;               /* Rundung von Knöpfen/Feldern und der Fensterecken oben */
  --taskbar-h: 32px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background-color: var(--desktop); color: var(--text); font: 13px/1.45 var(--font);
  padding: 16px 12px 56px;
}
a { color: var(--link); }
a:visited { color: color-mix(in srgb, var(--link) 60%, purple); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: .6em 0 .35em; }
h1 { font-size: 20px; } h2 { font-size: 16px; } h3 { font-size: 14px; }
hr { border: 0; border-top: 1px solid var(--lo); border-bottom: 1px solid var(--hi); }
code, pre { font-family: "Courier New", monospace; }
pre { background: var(--field); color: var(--field-text); padding: 8px; overflow: auto; box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
blockquote { margin: 8px 0; padding: 4px 10px; border-left: 3px solid var(--title-from); background: rgba(255,255,255,.35); }
table { border-collapse: collapse; width: 100%; }
small, .muted { opacity: .75; }

/* Fenster */
.window {
  background: var(--win); max-width: 980px; margin: 0 auto 14px;
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px rgba(255,255,255,.5);
  padding: 3px;
}
.window.small { max-width: 420px; }
.titlebar {
  background: linear-gradient(90deg, var(--title-from), var(--title-to)); color: #fff; font-weight: bold;
  padding: 3px 3px 3px 6px; display: flex; align-items: center; gap: 6px; user-select: none;
}
.titlebar .ttl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titlebar .icon { width: 16px; height: 16px; display: inline-block; text-align: center; line-height: 16px; }
.tb-btn {
  width: 18px; height: 16px; background: var(--win); color: var(--text); font: bold 11px/14px var(--font); text-align: center;
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo); text-decoration: none;
}
.menubar { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px 2px; border-bottom: 1px solid var(--lo); }
.menubar a { color: var(--text); text-decoration: none; padding: 2px 8px; }
.menubar a:hover, .menubar a.active { background: var(--title-from); color: #fff; }
.menubar .spacer { flex: 1; }
.body { padding: 10px; }
.statusbar { display: flex; gap: 3px; padding: 2px; font-size: 12px; }
.statusbar > * { flex: 1; padding: 1px 5px; box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.statusbar > .net, .statusbar > .extra, .statusbar > .fixed { flex: 0 0 auto; }
.statusbar svg { width: 16px; height: 16px; vertical-align: -3px; }
/* Im Fenster auf dem Desktop zeigt der Fensterrand die Statusleiste der Seite (public/retro.js, watchStatus) */
html.in-desk .statusbar.to-window { display: none !important; }
.dwin .statusbar { min-width: 0; overflow: hidden; white-space: nowrap; }
.dwin .statusbar > * { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* Layout */
.layout { display: grid; grid-template-columns: 1fr 200px; gap: 10px; }
.sidebar .window { margin-bottom: 10px; }
@media (max-width: 760px) { .layout { grid-template-columns: 1fr; } }

/* Eingesunkene Felder und Panels */
.panel, .sunken {
  background: var(--field); color: var(--field-text); padding: 8px;
  box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi);
}
.panel a { color: var(--field-link); }
.groupbox { border: 1px solid var(--lo); box-shadow: 1px 1px var(--hi); padding: 10px; margin: 12px 0; position: relative; }
.groupbox > legend { padding: 0 4px; }
fieldset.groupbox { margin: 12px 0; }

/* Buttons & Formulare */
button, .btn, input[type=submit] {
  font: 13px var(--font); background: var(--win); color: var(--text); border: 0; padding: 4px 14px; min-width: 75px; cursor: pointer;
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px rgba(255,255,255,.5);
  text-decoration: none; display: inline-block; text-align: center;
}
button:active, .btn:active { box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--hi), inset 2px 2px var(--lo); }
button:focus-visible, .btn:focus-visible { outline: 1px dotted var(--text); outline-offset: -4px; }
button.small, .btn.small { min-width: 0; padding: 2px 8px; font-size: 12px; }
button.danger { color: var(--danger); }
input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], input[type=search],
input[type=datetime-local], input:not([type]), select, textarea {
  font: 13px var(--font); background: var(--field); color: var(--field-text); border: 0; padding: 3px 4px; max-width: 100%;
  box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi);
}
input[type=color] { width: 48px; height: 26px; padding: 0 2px; background: var(--win); border: 0; box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
textarea { width: 100%; min-height: 120px; resize: vertical; }
textarea.code { font-family: "Courier New", monospace; min-height: 320px; }
label { display: block; margin: 8px 0 3px; }
label.inline { display: inline-flex; align-items: center; gap: 5px; margin: 4px 14px 4px 0; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row > * { flex: 1; min-width: 180px; }
.w100 { width: 100%; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
form.inline { display: inline; }

/* Tabellen im Explorer-Stil */
table.list { background: var(--field); color: var(--field-text); box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
table.list th { background: var(--win); color: var(--text); text-align: left; font-weight: normal; padding: 3px 6px;
  box-shadow: inset -1px -1px var(--lo), inset 1px 1px var(--hi); white-space: nowrap; }
table.list td { padding: 3px 6px; border-bottom: 1px dotted #ccc; vertical-align: top; }
table.list tr:hover td { background: var(--hover); }
table.list a { color: var(--field-link); }
.num { text-align: right; white-space: nowrap; }

/* Hinweise */
.msg { padding: 6px 10px; margin: 8px 0; background: #ffffe1; color: #000; border: 1px solid #000; }
.msg.err { background: #ffe1e1; }
.badge { display: inline-block; font-size: 11px; padding: 0 5px; background: var(--title-from); color: #fff; }
.badge.gray { background: #808080; }
.tag { display: inline-block; font-size: 11px; padding: 0 5px; margin-right: 3px; border: 1px solid var(--lo); background: var(--field); color: var(--field-text); text-decoration: none; }

/* Blog */
.post { margin-bottom: 14px; }
.post .meta { font-size: 12px; opacity: .8; }
.content img { box-shadow: 2px 2px 0 var(--lo); }
.content table td, .content table th { border: 1px solid #999; padding: 3px 6px; }

/* Lauftext, Besucherzähler, 88x31-Buttons */
marquee, .marquee { background: #000; color: #0f0; font: bold 13px "Courier New", monospace; padding: 2px 0; display: block; }
.counter { display: inline-flex; gap: 1px; background: #000; padding: 3px; }
.counter span { background: #111; color: #f33; font: bold 16px "Courier New", monospace; padding: 0 3px; text-shadow: 0 0 4px #f00; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.b88 { width: 88px; height: 31px; display: flex; align-items: center; justify-content: center; text-align: center;
  font: bold 9px/1.05 Verdana, sans-serif; border: 1px solid #000; text-decoration: none; color: #fff; }
.b88.a { background: linear-gradient(#336, #003); color: #ff0; }
.b88.b { background: linear-gradient(#fff, #ccc); color: #000; }
.b88.c { background: #000; color: #0f0; }
.b88.d { background: linear-gradient(90deg, #f0f, #0ff); color: #000; }
.blink { animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } }
.construction { background: repeating-linear-gradient(45deg, #ff0 0 10px, #000 10px 20px); height: 10px; margin: 8px 0; }

/* Freundebuch */
.gb-entry { margin-bottom: 10px; }
.gb-entry .head { display: flex; justify-content: space-between; font-weight: bold; padding: 2px 6px;
  background: linear-gradient(90deg, var(--title-from), var(--title-to)); color: #fff; }
.gb-entry .text { white-space: pre-wrap; word-wrap: break-word; }

/* Taskleiste */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--taskbar-h); background: var(--win); display: flex; align-items: center; gap: 4px;
  padding: 3px; box-shadow: inset 0 1px var(--hi), inset 0 2px rgba(255,255,255,.5); z-index: 10;
}
.taskbar .start { font-weight: bold; min-width: 0; padding: 3px 8px; }
.taskbar .tasks { flex: 1; min-width: 0; display: flex; gap: 3px; overflow: hidden; }
.taskbar .task { flex: 0 1 180px; min-width: 0; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 3px 8px;
  box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--hi); background: repeating-conic-gradient(var(--win) 0 25%, #fff 0 50%) 0 0 / 2px 2px; }
.taskbar .tray { margin-left: auto; padding: 1px 10px 1px 3px; box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); font-size: 12px;
  display: flex; align-items: center; gap: 6px; height: 24px; }
.tray-btn { min-width: 0; padding: 0 3px; background: none; box-shadow: none; font-size: 14px; line-height: 20px; }
.tray-btn:hover, .tray-btn[aria-expanded=true] { box-shadow: inset 1px 1px var(--hi), inset -1px -1px var(--lo); }
.startmenu { position: fixed; bottom: var(--taskbar-h); left: 2px; background: var(--win); display: none; z-index: 11; min-width: 190px;
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo); padding: 3px 3px 3px 26px; }
.startmenu::before { content: attr(data-title); position: absolute; left: 3px; bottom: 3px; top: 3px; width: 20px;
  background: linear-gradient(0deg, var(--title-from), var(--title-to)); color: #fff; writing-mode: vertical-rl; transform: rotate(180deg);
  font-weight: bold; text-align: left; padding: 6px 0; }
.startmenu.open { display: block; }
.startmenu a { display: block; padding: 4px 10px; color: var(--text); text-decoration: none; }
.startmenu a:hover { background: var(--title-from); color: #fff; }
.startmenu form { margin: 0; }
.startmenu button.menu-item { display: block; width: 100%; text-align: left; padding: 4px 10px; background: none; box-shadow: none; min-width: 0; color: var(--text); }
.startmenu button.menu-item:hover { background: var(--title-from); color: #fff; }
/* Untermenüs: klappen wie bei Windows 98 zur Seite auf (Maus: beim Drüberfahren, Handy: beim Antippen) */
.startmenu .sub { position: relative; }
.startmenu .sub-toggle::after { content: '▸'; float: right; margin-left: 12px; }
.startmenu .submenu { display: none; position: absolute; left: 100%; bottom: -3px; min-width: 170px; background: var(--win); padding: 3px; z-index: 12;
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo); }
.startmenu .sub.open > .submenu { display: block; }
.startmenu .sub.open > .sub-toggle { background: var(--title-from); color: #fff; }
/* Nur mit echter Maus: Manche Handys melden „hover“, dann klappte das Untermenü schon beim Antippen auf und der Finger traf danach den Eintrag darunter */
@media (hover: hover) and (pointer: fine) {
  .startmenu .sub:hover > .submenu { display: block; }
  .startmenu .sub:hover > .sub-toggle { background: var(--title-from); color: #fff; }
}
/* Schmale Bildschirme: kein Platz daneben, also eingerückt darunter */
@media (max-width: 480px) {
  .startmenu .submenu { position: static; box-shadow: none; padding: 0 0 0 14px; }
}
.taskbar button.task { box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo); background: var(--win); }
.taskbar button.task.pressed { font-weight: bold; box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--hi);
  background: repeating-conic-gradient(var(--win) 0 25%, #fff 0 50%) 0 0 / 2px 2px; }

/* Desktop mit Fenstern */
body.desktop { padding: 0; overflow: hidden; }
#desk { position: fixed; inset: 0 0 var(--taskbar-h) 0; overflow: hidden; }
.desk-widget { position: absolute; right: 12px; bottom: 12px; width: 200px; }
.desk-widget .window { margin-bottom: 8px; }
.dwin { position: absolute; margin: 0; max-width: none; display: flex; flex-direction: column;
  left: max(0px, calc(50% - 490px)); top: 28px; width: min(980px, 100%); height: calc(100% - 40px); }
.dwin iframe { flex: 1; min-height: 0; width: 100%; border: 0; display: block; background: var(--win); }
.dwin .titlebar { cursor: default; touch-action: none; }
.dwin:not(.active) .titlebar { background: linear-gradient(90deg, #808080, #b5b5b5); color: #d4d0c8; }
button.tb-btn { padding: 0; min-width: 0; border: 0; cursor: pointer; }
.dwin.min { display: none; }
.dwin.max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; }
.dwin.max .grip { display: none; }
/* Fenster, die sich ihrem Inhalt anpassen (Minesweeper), sind wie im Original ohne Statusleiste und nicht aufziehbar */
.dwin.fitted .statusbar, .dwin.fitted .grip, .dwin.mini .statusbar, .dwin.mini .grip { display: none; }
.dwin.fitted .titlebar { gap: 3px; font-size: 11px; }
@media (min-width: 761px) { .dwin.fitted.scalable:not(.max) .grip { display: block; z-index: 2; } }
.dwin .grip { position: absolute; right: 3px; bottom: 3px; width: 14px; height: 14px; cursor: nwse-resize; touch-action: none;
  background: linear-gradient(135deg, transparent 0 55%, var(--lo) 55% 62%, transparent 62% 72%, var(--lo) 72% 79%, transparent 79% 89%, var(--lo) 89%); }
body.dragging iframe { pointer-events: none; }
body.dragging { user-select: none; }
@media (max-width: 760px) {
  .dwin { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; }
  .dwin .grip, .desk-widget { display: none; }
}
/* Inhalt im Fenster */
body.embed { padding: 0; background: var(--win); }
body.admin .taskbar .task { flex: 0 1 200px; }

/* Admin */
.chart { width: 100%; height: auto; background: var(--field); box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.chart text { font: 10px var(--font); fill: #333; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 8px 0; }
.kpi { background: var(--field); color: var(--field-text); padding: 6px 10px; box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.kpi b { display: block; font-size: 20px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.thumbs figure { margin: 0; background: var(--field); color: var(--field-text); padding: 4px; font-size: 11px; word-break: break-all;
  box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.thumbs img { width: 100%; height: 100px; object-fit: contain; background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.editor-tools { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0; }
.preview { min-height: 120px; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatches[hidden] { display: none; }
.swatch { display: flex; align-items: center; gap: 6px; }
.swatch i { width: 22px; height: 16px; border: 1px solid #000; display: inline-block; }

/* App-Player */
.app-frame { width: 100%; height: 70vh; border: 0; background: #fff; display: block;
  box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.window.wide { max-width: 1280px; }

/* Statistik-Diagramm (Serienfarben: geprüfte Palette, Slot 1 Blau / Slot 2 Orange) */
.chart-wrap { position: relative; }
.chart { --s1: #2a78d6; --s2: #eb6834; }
.chart .grid { stroke: #e1e0d9; stroke-width: 1; shape-rendering: crispEdges; }
.chart .grid.base { stroke: #c3c2b7; }
.chart .tick { fill: #6b6a65; font-variant-numeric: tabular-nums; }
.chart .endlabel { fill: #52514e; font: 11px var(--font); }
.chart .line1, .chart .line2 { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line1 { stroke: var(--s1); }
.chart .line2 { stroke: var(--s2); }
.chart .area1 { fill: var(--s1); opacity: .1; }
.chart .dot1, .chart .dot2 { stroke: #fff; stroke-width: 2; }
.chart .dot1 { fill: var(--s1); }
.chart .dot2 { fill: var(--s2); }
.chart .crosshair { stroke: #898781; stroke-width: 1; shape-rendering: crispEdges; }
.chart:focus-visible { outline: 1px dotted #000; outline-offset: 2px; }
.chart-legend { display: flex; gap: 16px; margin-bottom: 4px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.key { display: inline-block; width: 16px; height: 0; border-top: 2px solid; vertical-align: middle; }
.key.k1 { border-color: #2a78d6; }
.key.k2 { border-color: #eb6834; }
.tooltip { position: absolute; pointer-events: none; background: #ffffe1; color: #000; border: 1px solid #000;
  padding: 4px 8px; font-size: 12px; box-shadow: 2px 2px 0 rgba(0,0,0,.35); white-space: nowrap; z-index: 2; }
.tooltip .tip-head { opacity: .75; margin-bottom: 2px; }
.tooltip .tip-row { display: flex; align-items: center; gap: 6px; }
.hbar { height: 4px; background: #2a78d6; margin-top: 2px; border-radius: 0 2px 2px 0; min-width: 2px; }
details summary { cursor: pointer; margin: 6px 0; }
.chart .col1 { fill: #2a78d6; }
.chart .hbar-col:hover .col1 { fill: #1c5cab; }
.kpi small { display: block; opacity: .7; }

/* Bilder im Text: Lage und Breite aus dem Editor (![Text](bild.png "rechts 40%")) */
.content::after { content: ''; display: block; clear: both; }
.content img.bild-links { float: left; margin: 2px 12px 8px 0; }
.content img.bild-rechts { float: right; margin: 2px 0 8px 12px; }
.content img.bild-mitte { display: block; margin: 8px auto; }
.content h1, .content h2, .content h3, .content hr, .content .clear { clear: both; }
.content .mitte { text-align: center; }
.content .rechts { text-align: right; }
@media (max-width: 520px) {
  .content img.bild-links, .content img.bild-rechts { float: none; display: block; margin: 8px auto; width: auto !important; max-width: 100%; }
}

/* Texteditor */
.editor-tools .tool-group { display: inline-flex; gap: 2px; padding-right: 6px; margin-right: 2px; border-right: 1px solid var(--lo); box-shadow: 1px 0 var(--hi); }
.editor-tools .tool-group:last-child { border: 0; box-shadow: none; }
.editor-tools .view-switch { margin-left: auto; }
button.pressed { box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--hi), inset 2px 2px var(--lo);
  background: repeating-conic-gradient(var(--win) 0 25%, #fff 0 50%) 0 0 / 2px 2px; }
.editor-panes { display: grid; gap: 8px; }
.editor-panes textarea.code { min-height: 420px; height: 100%; }
.editor.compact .editor-panes textarea.code { min-height: 180px; }
/* Modern: man schreibt direkt im fertigen Text (public/editor.js) */
.editor .preview { position: relative; overflow: auto; max-height: 75vh; min-height: 420px; background: var(--field); color: var(--field-text); }
.editor.compact .preview { min-height: 180px; }
.editor .preview .content { min-height: inherit; outline: none; padding: 2px 4px; cursor: text; }
.editor .preview .content:focus-visible { box-shadow: inset 0 0 0 1px var(--title-from); }
.editor .preview .content img { cursor: pointer; }
.editor .preview .content img:hover { outline: 1px dashed #808080; }
.editor .preview .content details { border: 1px dotted var(--lo); padding: 2px 6px; }
.editor .preview .content img.selected { outline: 2px dashed var(--title-from); outline-offset: 2px; }
.img-tools { position: absolute; z-index: 3; display: flex; flex-wrap: wrap; gap: 2px; padding: 2px; background: var(--win); color: var(--text);
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), 2px 2px 0 rgba(0,0,0,.35); max-width: calc(100% - 8px); }
.img-tools[hidden], .img-handle[hidden] { display: none; }
.img-tools .sep { width: 1px; background: var(--lo); margin: 0 2px; }
.img-handle { position: absolute; z-index: 3; width: 14px; height: 14px; background: var(--title-from); border: 2px solid #fff;
  cursor: nwse-resize; touch-action: none; }

/* Forum */
.board-post { margin-bottom: 10px; }
.board-post .head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-weight: bold; padding: 2px 6px;
  background: linear-gradient(90deg, var(--title-from), var(--title-to)); color: #fff; }
.board-post .content { word-wrap: break-word; }
.board-post .post-actions { margin-top: 6px; justify-content: flex-end; }
table.board td small { opacity: .75; }

/* Changelog */
.changelog h2 { margin-top: 1em; padding: 2px 6px; background: linear-gradient(90deg, var(--title-from), var(--title-to)); color: #fff; font-size: 14px; }
.changelog h2:first-child { margin-top: 0; }

/* Eigenschaften von Anzeige (Knopf neben der Uhr, public/display.js) */
.display-panel { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 12; margin: 0;
  width: 460px; max-width: calc((100vw - 8px) / var(--zoom, 1)); max-height: calc((100vh - 44px) / var(--zoom, 1)); display: flex; flex-direction: column; }
.display-panel[hidden] { display: none; }
.display-panel .body { padding: 8px 10px; overflow: auto; }
.display-panel .groupbox { margin: 6px 0; padding: 4px 8px 6px; }
.display-panel .row > * { min-width: 150px; }
.display-panel .row > fieldset { flex: 2; }
.display-panel p { margin: 6px 0 0; }
.display-panel label.inline { margin: 3px 12px 3px 0; }
.display-panel .actions { margin-top: 8px; gap: 6px; }
.display-panel .actions .spacer { flex: 1; }
.display-panel textarea.code { min-height: 110px; }
.display-panel .swatches { gap: 4px; }
.display-panel .swatch { gap: 4px; padding: 2px 6px; }
.display-panel .swatch i { width: 12px; height: 12px; }
.display-panel .swatches [aria-pressed=true] { font-weight: bold; box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--hi); }
html.theme-xp .display-panel .swatches [aria-pressed=true] { box-shadow: inset 0 0 0 2px #316ac5; }
/* Verschiebbar an der Titelleiste (public/retro.js dragPanel) */
.display-panel > .titlebar, .lobby-widget > .titlebar { touch-action: none; cursor: default; }
.display-panel .colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 2px 8px; }
.display-panel .colors label { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.display-panel .bg-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tabs { display: flex; gap: 0; margin-bottom: -1px; position: relative; z-index: 1; }
.tabs button { min-width: 0; padding: 3px 12px; box-shadow: inset 1px 1px var(--hi), inset -1px 0 var(--dark), inset -2px 0 var(--lo); margin-top: 2px; }
.tabs button[aria-selected=true] { margin-top: 0; padding-bottom: 5px; background: var(--win); font-weight: bold; }
.tab-page { box-shadow: inset 1px 1px var(--hi), inset -1px -1px var(--dark), inset -2px -2px var(--lo); padding: 8px 10px; min-height: 230px; }
.tab-page[hidden] { display: none; }

/* Größe der Oberfläche (🖥️ → Darstellung, 75 bis 200 %, public/display.js setzt --zoom): Taskleiste, Startmenü, Symbole,
   Widgets, Menüs und Titelleisten wachsen immer mit, die Inhalte der Fenster nur mit „Fensterinhalte mitskalieren“ (zoom-all) */
html.zoom-all body.embed, html.zoomed body.admin:not(.embed),
html.zoomed body.desktop .taskbar, html.zoomed body.desktop .startmenu, html.zoomed body.desktop .display-panel,
html.zoomed .volume-panel, html.zoomed .notify-panel, html.zoomed .desk-icons, html.zoomed .desk-widget, html.zoomed .search-pop,
html.zoomed .dwin > .titlebar, html.zoomed body.desktop > .wui-pop, html.zoomed body.desktop > .wui-dlg { zoom: var(--zoom); }
html.zoomed #desk { bottom: calc(var(--taskbar-h) * var(--zoom)); }
html.zoomed body.desktop .startmenu, html.zoomed .notify-panel, html.zoomed .search-pop { bottom: var(--taskbar-h); }

/* Farben: überschreiben das Design der Seite (html.… schlägt :root aus /theme.css) */
html.scheme-nacht {
  --desktop: #1b2626; --win: #33363b; --title-from: #23305e; --title-to: #3d5a8c; --text: #e4e4e4; --link: #8cb8ff;
  --hi: rgba(255,255,255,.22); --lo: rgba(0,0,0,.6); --dark: #000;
  --field: #1d1f22; --field-text: #e4e4e4; --field-link: #8cb8ff; --hover: #2c3550; --danger: #ff8a8a;
}
html.scheme-kontrast {
  --desktop: #000; --win: #000; --title-from: #800080; --title-to: #800080; --text: #fff; --link: #ffff00;
  --hi: #fff; --lo: #fff; --dark: #fff;
  --field: #000; --field-text: #fff; --field-link: #ffff00; --hover: #00007a; --danger: #ff6b6b;
}
html.scheme-nacht body, html.scheme-kontrast body { background-image: none !important; }
html.scheme-kontrast a:visited { color: #00ff00; }
html.scheme-kontrast .dwin:not(.active) .titlebar { background: #000; color: #fff; box-shadow: inset 0 0 0 1px #fff; }
html.scheme-kontrast .taskbar .task, html.scheme-kontrast .taskbar button.task.pressed, html.scheme-kontrast button.pressed { background: #000; }
html.scheme-kontrast table.list td { border-bottom-color: #fff; }
html.scheme-nacht table.list td { border-bottom-color: #444; }
html.scheme-nacht .taskbar .task, html.scheme-nacht .taskbar button.task.pressed, html.scheme-nacht button.pressed {
  background: repeating-conic-gradient(var(--win) 0 25%, #4a4e55 0 50%) 0 0 / 2px 2px; }
html.scheme-nacht .taskbar button.task:not(.pressed) { background: var(--win); }
html.scheme-nacht .chart, html.scheme-kontrast .chart { background: #fff; }
html.scheme-nacht blockquote, html.scheme-kontrast blockquote { background: transparent; }

/* Bewegung anhalten (Lauftext hält das Skript an) */
html.still .blink { animation: none; }

/* Datenschutz */
.datenschutz h2 { margin-top: 1.2em; padding: 2px 6px; background: linear-gradient(90deg, var(--title-from), var(--title-to)); color: #fff; font-size: 14px; }
.datenschutz ul { padding-left: 20px; }
.datenschutz li { margin: 3px 0; }
.datenschutz details { margin: 4px 0; }
.datenschutz details[open] { padding: 0 0 4px; }
.datenschutz table.list td { border-bottom: 1px dotted #ccc; }
.code-snippet { margin: 6px 0 12px; }
.code-snippet figcaption { font-size: 12px; margin-bottom: 2px; }
.code-snippet pre { margin: 0; font-size: 12px; line-height: 1.4; white-space: pre; }
.code-snippet .ln { display: inline-block; width: 3.5em; padding-right: .8em; text-align: right; opacity: .5; user-select: none; }
.code-snippet p { margin: 3px 0 0; }
.ks-code .code-snippet pre { overflow-x: auto; max-width: 100%; }
.ks-code h3 { margin-top: 16px; }
.shots { display: flex; flex-wrap: wrap; gap: 10px; }
.shot { margin: 4px 0; flex: 0 1 auto; max-width: 100%; }
.shot img { display: block; border: 1px solid var(--lo); box-shadow: 2px 2px 0 var(--lo); }
.shot figcaption { font-size: 12px; margin-top: 3px; }

/* Lautstärke (Knopf 🔊 neben der Uhr, public/sound.js) */
.volume-panel { position: fixed; right: 4px; bottom: calc(var(--taskbar-h) + 2px); z-index: 12; margin: 0; width: 170px; }
.volume-panel[hidden] { display: none; }
.volume-panel .body { padding: 6px 8px; }
.vol-cols { display: flex; justify-content: space-around; }
.vol-col { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; font-size: 12px; }
.vol-col output { font-size: 11px; opacity: .8; }
input[type=range].vertical { writing-mode: vertical-lr; direction: rtl; width: 24px; height: 110px; margin: 0; }
.volume-panel.muted .vol-cols { opacity: .5; }
.volume-panel label.inline { margin: 6px 0 0; }


/* ---------- Zufallsgenerator (/zufall) ---------- */
.zufall h1 { margin-top: 0; }
.zufall .tab-page { min-height: 0; }
.zf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.zf-cols .groupbox { margin: 6px 0; }
.zf-hint { font-size: 11px; margin: 2px 0 6px; opacity: .8; }
.zf-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 4px; max-height: 190px; overflow: auto; }
.zf-names input { width: 100%; box-sizing: border-box; }
.zufall textarea { width: 100%; box-sizing: border-box; margin: 4px 0; }
.zufall textarea[hidden] { display: none; }
.zf-go { font-weight: bold; padding: 5px 16px; }
.zf-stage { margin-top: 8px; position: relative; }
.zf-error { color: var(--danger); font-weight: bold; }
.zf-pot { background: var(--field); color: var(--field-text); box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); padding: 8px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-height: 40px; }
.zf-pot-label { width: 100%; font-weight: bold; }
.zf-pot.shake { animation: zf-shake .14s linear infinite; }
@keyframes zf-shake { 0%, 100% { transform: translateX(0) } 25% { transform: translateX(-3px) rotate(-.5deg) } 75% { transform: translateX(3px) rotate(.5deg) } }
.zf-card { display: inline-block; padding: 2px 8px; background: var(--win); color: var(--text); box-shadow: inset 1px 1px var(--hi), inset -1px -1px var(--dark), 2px 2px 0 rgba(0,0,0,.25); transition: transform .12s; white-space: nowrap; }
.zf-teamgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.zf-team { background: var(--field); color: var(--field-text); box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); border-top: 4px solid var(--team); }
.zf-team-head { display: flex; align-items: center; gap: 6px; padding: 4px 6px; background: var(--team); color: #fff; font-weight: bold; }
.zf-team-icon { font-size: 18px; }
.zf-team-count { margin-left: auto; font-size: 11px; background: rgba(0,0,0,.25); padding: 0 5px; border-radius: 7px; }
.zf-team-list { margin: 0; padding: 6px 6px 6px 26px; min-height: 24px; }
.zf-team-list li { margin: 3px 0; }
.zf-team-list .zf-card { box-shadow: inset 1px 1px var(--hi), inset -1px -1px var(--dark); }
.zf-teamgrid.done .zf-team { animation: zf-pop .5s ease; }
@keyframes zf-pop { 50% { transform: scale(1.05) rotate(-1deg) } }
.zf-numbers, .zf-words-out { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.zf-number, .zf-word { min-width: 2.2em; text-align: center; font: bold 30px/1.2 'Courier New', monospace; padding: 6px 12px; background: #000; color: #33ff33; box-shadow: inset 2px 2px var(--dark), inset -1px -1px var(--hi); }
.zf-word { font-size: 24px; }
.zf-number.hit, .zf-word.hit { color: #ffd700; animation: zf-hit .35s ease; }
@keyframes zf-hit { 40% { transform: scale(1.25) } }
.zf-sum { width: 100%; margin: 4px 0 0; }
.zf-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }
@media (max-width: 560px) { .zf-cols { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .zf-pot.shake, .zf-teamgrid.done .zf-team, .zf-number.hit, .zf-word.hit { animation: none; } }

/* Profile, Mitglieder und Privatnachrichten */
.avatar { display: inline-block; vertical-align: middle; object-fit: cover; flex: none;
  box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); border: 1px solid var(--lo); background: var(--field); }
.avatar-letter { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; line-height: 1; text-shadow: 1px 1px #0006; }
.userlink { color: inherit; text-decoration: none; }
.userlink:hover { text-decoration: underline; }
.board-post .head .who, .gb-entry .head .who { display: inline-flex; align-items: center; gap: 4px; }
.board-post .head .who .userlink, .gb-entry .head .who .userlink { display: inline-flex; align-items: center; gap: 5px; }
.about { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
ul.people { list-style: none; margin: 0; padding: 0; }
ul.people li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 3px 0; }
ul.people.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 10px; }
ul.people li > a:first-child { display: inline-flex; align-items: center; gap: 6px; }
.people-table td { vertical-align: middle; }
.people-table td.av { width: 34px; padding: 2px; }
.searchbar input[type=search], .searchbar input[type=text] { min-width: 180px; }
.game-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.game-card .game-title { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
table.kv { border-collapse: collapse; width: 100%; }
table.kv td { padding: 1px 4px; border-bottom: 1px dotted var(--lo); }
table.kv td.num { text-align: right; font-variant-numeric: tabular-nums; }
.conv-head { display: flex; align-items: center; gap: 10px; }
.conv-head h1 { margin: 0; }
/* Gewinn und Verlust (Blackjack-Bilanz, auch im Profil) */
.pos { color: #006400; font-weight: bold; }
.neg { color: var(--danger); font-weight: bold; }
html.scheme-nacht .pos, html.scheme-kontrast .pos { color: #7cfc7c; }
html.scheme-nacht .neg, html.scheme-kontrast .neg { color: #ff8a8a; }

/* Nutzermenü (public/usermenu.js): Klick auf einen Namen in Lobbys */
.usermenu { position: fixed; z-index: 50; min-width: 210px; max-width: 280px; background: var(--win); color: var(--text); padding: 3px;
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo), 2px 2px 0 rgba(0,0,0,.35); font-size: 13px; }
.usermenu .um-head { display: flex; gap: 8px; align-items: center; padding: 4px 6px 6px; border-bottom: 1px solid var(--lo); box-shadow: 0 1px var(--hi); margin-bottom: 3px; }
.usermenu .um-head small { opacity: .75; }
.usermenu .um-note { padding: 3px 6px; font-size: 12px; }
.usermenu .um-flash { background: #ffffe1; color: #000; margin: 2px 0; }
.usermenu .menu-item { display: block; width: 100%; text-align: left; padding: 4px 10px; background: none; box-shadow: none; min-width: 0; color: var(--text); }
.usermenu .menu-item:hover, .usermenu .menu-item:focus-visible { background: var(--title-from); color: #fff; outline: none; }
.usermenu .menu-item.danger { color: var(--danger); }
.usermenu .menu-item.danger:hover { color: #fff; }
.usermenu hr { margin: 3px 2px; }

/* Blackjack */
.bj { display: flex; flex-direction: column; height: calc(100vh - 20px); min-height: 420px; gap: 4px; }
.bj-nav [hidden] { display: none; }
.bj-me { font-size: 12px; align-self: center; padding: 0 6px; }
.bj-main { flex: 1; min-height: 0; overflow: auto; }
.bj-pad { padding: 4px 2px; }
.bj-top { margin: 0 0 8px; }
.bj-empty, .bj-guest { padding: 16px; text-align: center; opacity: .85; }
.bj-big { font-size: 28px; font-weight: bold; margin: 8px 0; }
.bj-acts { white-space: nowrap; text-align: right; }
.bj-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 2px 2px 6px; }
.bj-table { display: flex; gap: 6px; height: calc(100% - 30px); min-height: 380px; }
/* Das Spielfeld ist ein Container: Karten, Chips und Schrift wachsen mit dem Fenster (--c = Kartenbreite) */
.bj-felt { flex: 1; position: relative; min-width: 0; min-height: 380px; overflow: hidden; color: #fff; container-type: size; user-select: none; -webkit-user-select: none;
  --c: clamp(30px, min(8cqw, 16cqh - 20px), 150px); font-size: clamp(12px, calc(var(--c) * .22), 18px);
  background: radial-gradient(ellipse at 50% 25%, var(--felt-hi, #1f7a3a), var(--felt-lo, #0d4d22) 75%);
  box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi); }
.bj-dealer { position: absolute; left: 0; right: 0; top: 10px; text-align: center; }
.bj-label { font-weight: bold; letter-spacing: 2px; opacity: .8; font-size: 1em; margin-bottom: 4px; }
.bj-motto { position: absolute; left: 0; right: 0; top: calc(40px + var(--c) * 1.65); text-align: center; font: italic .9em Georgia, serif; opacity: .65; }
.bj-cards { display: inline-flex; vertical-align: middle; padding-right: calc(var(--c) * .32); }
.bj-card { width: var(--c); height: calc(var(--c) * 1.41); margin-right: calc(var(--c) * -.32); background: linear-gradient(160deg, #fff 55%, #eeebe4); color: #1a1a1a;
  border: 1px solid rgba(0,0,0,.22); border-radius: calc(var(--c) * .1); position: relative; font: 700 calc(var(--c) * .31)/1.05 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 1px 1px rgba(0,0,0,.25), 0 3px 8px rgba(0,0,0,.28); animation: bj-deal .25s ease-out both; flex: none; }
.bj-card .r { position: absolute; left: 8%; top: 4%; text-align: center; }
.bj-card .s { position: absolute; right: 8%; bottom: 2%; font-size: 1.6em; }
.bj-card.red { color: #d0161b; }
.bj-card.back { background: var(--back, repeating-linear-gradient(45deg, var(--title-from) 0 4px, var(--title-to) 4px 8px)); border: 3px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.28), 0 3px 8px rgba(0,0,0,.28); }
@keyframes bj-deal { from { transform: translateY(-14px) rotate(-6deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bj-card { animation: none; } }
.bj-badge { display: inline-block; background: rgba(12,14,20,.78); color: #ffe066; font: 600 .85em/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; padding: 1px 9px; border-radius: 999px;
  vertical-align: middle; white-space: nowrap; box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 2px 6px rgba(0,0,0,.35); }
.bj-badge.win, .bj-badge.blackjack { background: linear-gradient(180deg, #ffe36e, #f4b400); color: #3a2a00; }
.bj-badge.lose, .bj-badge.bust { background: linear-gradient(180deg, #e0453a, #a3170f); color: #fff; }
.bj-badge.push { background: linear-gradient(180deg, #8a93a3, #5b6372); color: #fff; }
.bj-seat { position: absolute; transform: translateX(-50%); width: 19%; min-width: 120px; text-align: center; top: 46%; }
.bj-seat.empty { opacity: .8; }
.bj-free { font-style: italic; opacity: .6; }
.bj-hand { min-height: calc(var(--c) * 1.41 + 4px); display: flex; flex-direction: column; align-items: center; gap: 3px; margin-bottom: 3px; padding: 3px; }
.bj-hand.active { outline: 2px dashed #ff0; outline-offset: 1px; }
.bj-seat.turn .bj-name { background: #ff0; color: #000; }
.bj-nobet { justify-content: center; opacity: .7; font-style: italic; }
.bj-name { background: none; box-shadow: none; color: #fff; font-weight: bold; padding: 1px 6px; min-width: 0; text-shadow: 1px 1px #000; }
.bj-seat.mine .bj-name { text-decoration: underline; }
.bj-name:hover { background: rgba(255,255,255,.2); }
.bj-chips { text-shadow: 1px 1px #000; }
.bj-felt .pos { color: #9cff9c; } .bj-felt .neg { color: #ff9c9c; }
/* Chips: rund mit weißen Kantenmarken und Innenring wie ein Casino-Chip; die Farbe steht in --chip */
.bj-chip { --chip: #1565c0; --d: calc(var(--c, 56px) * .64); display: inline-flex; flex: none; box-sizing: border-box; width: var(--d); height: var(--d); aspect-ratio: 1; min-width: 0; padding: 0;
  border-radius: 50%; align-items: center; justify-content: center; vertical-align: middle; font: bold calc(var(--d) * .3) / 1 var(--font); color: #fff; letter-spacing: -.03em;
  text-shadow: 0 1px 1px rgba(0,0,0,.65); border: 0;
  background: radial-gradient(circle closest-side, var(--chip) 0 63%, rgba(255,255,255,.9) 64% 68%, var(--chip) 69% 77%, transparent 78%),
    repeating-conic-gradient(from 7.5deg, rgba(255,255,255,.95) 0 15deg, var(--chip) 15deg 45deg);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), inset 0 -2px 3px rgba(0,0,0,.3), 0 2px 3px rgba(0,0,0,.45); }
button.bj-chip, .ks-dock button.bj-chip { --d: 44px; width: var(--d); height: var(--d); padding: 0; min-width: 0; font-size: 13px; transition: transform .12s ease-out, box-shadow .12s; }
button.bj-chip:hover:not(:disabled) { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), inset 0 -2px 3px rgba(0,0,0,.3), 0 5px 6px rgba(0,0,0,.4); }
button.bj-chip:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.4), 0 1px 1px rgba(0,0,0,.5); }
button.bj-chip:focus-visible { outline: 2px solid #ffd700; outline-offset: 2px; }
.bj-chip.c5 { --chip: #c62828; } .bj-chip.c10 { --chip: #1565c0; } .bj-chip.c25 { --chip: #2e7d32; } .bj-chip.c50 { --chip: #ef6c00; }
.bj-chip.c100 { --chip: #222; } .bj-chip.c500 { --chip: #6a1b9a; } .bj-chip.c1000 { --chip: #b8860b; }
@media (prefers-reduced-motion: reduce) { button.bj-chip { transition: none; } }
.bj-controls { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bj-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.bj button:disabled { opacity: .5; cursor: default; }
.bj-controls small { text-shadow: 1px 1px #000; }
.bj-betbar { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.bj-side { width: 230px; flex: none; display: flex; flex-direction: column; gap: 4px; min-height: 0; }
.bj-side .groupbox { margin: 0; padding: 4px 8px 6px; font-size: 12px; }
.bj-side .actions { margin-top: 6px; gap: 4px; }
.bj-link { background: none; box-shadow: none; padding: 0; min-width: 0; color: var(--field-link, var(--link)); text-decoration: underline; font: inherit; text-align: left; }
.bj-side .bj-link { color: var(--link); }
.bj-log { flex: 1; min-height: 80px; overflow: auto; font: 11px/1.35 "Courier New", monospace; }
.bj-log div + div { border-top: 1px dotted #ccc; }
.bj-me-row td { font-weight: bold; background: var(--hover); }
.bj-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 4px 0 10px; }
.bj-kpis .sunken { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.bj-kpis b { font-size: 20px; }
.bj-rules li { margin: 4px 0; }
@media (max-width: 760px) {
  .bj { height: auto; }
  .bj-table { flex-direction: column; height: auto; }
  .bj-felt { flex: none; height: max(460px, 75vh); --c: clamp(28px, min(8cqw, 16cqh - 20px), 90px); }
  .bj-side { width: auto; }
  .bj-seat { width: 20%; min-width: 0; }
}

/* Poker (views/poker.ejs, public/poker.js): baut auf den Blackjack-Klassen auf (Karten, Chips, Filz, Seitenleiste) */
.pk-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pk-felt { --c: clamp(24px, min(5.2cqw, 9.5cqh), 76px); font-size: clamp(11px, calc(var(--c) * .26), 16px);
  background: radial-gradient(ellipse 46% 40% at 50% 47%, var(--felt-hi, #1f7a3a), var(--felt-lo, #0d4d22) 92%, var(--rim-hi, #5a3414) 93%, var(--rim-lo, #3d230d) 100%), var(--rim-bg, #2a1a0a); }
.pk-motto { top: 47%; transform: translateY(calc(var(--c) * 1.25)); opacity: .45; }
.pk-center { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -62%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 60%; }
.pk-board { min-height: calc(var(--c) * 1.41); }
.pk-board .bj-card { margin-right: calc(var(--c) * .1); }
.pk-board .bj-cards { padding-right: 0; }
.pk-pot { background: rgba(10,12,18,.55); padding: 2px 12px; border-radius: 999px; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset; font-weight: 600; }
.pk-result { text-shadow: 1px 1px #000; font-weight: bold; color: #ffd700; }
.pk-seat { position: absolute; transform: translate(-50%, -50%); width: 17%; min-width: 96px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 3px 2px; border-radius: 8px; background: rgba(0,0,0,.28); }
.pk-seat.empty { background: none; opacity: .8; }
.pk-seat.turn { outline: 2px dashed #ff0; outline-offset: 1px; }
.pk-seat.turn .bj-name { background: #ff0; color: #000; }
.pk-seat.mine .bj-name { text-decoration: underline; }
.pk-seat.folded .pk-hole, .pk-seat.out .pk-hole { opacity: .35; }
.pk-seat.won { box-shadow: 0 0 0 2px #ffd700, 0 0 12px #ffd700; }
.pk-hole { min-height: calc(var(--c) * 1.41); }
.pk-act { min-height: 1.2em; font-size: .9em; opacity: .9; text-shadow: 1px 1px #000; }
.pk-best { font-size: .85em; background: rgba(12,14,20,.78); color: #ffe066; padding: 0 8px; border-radius: 999px; }
.pk-bet { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; text-shadow: 1px 1px #000; font-weight: bold; }
.pk-bet .bj-chip { --d: calc(var(--c) * .5); }
.pk-button { position: absolute; transform: translate(-50%, -50%); width: calc(var(--c) * .45); height: calc(var(--c) * .45); min-width: 18px; min-height: 18px; border-radius: 50%;
  background: #fff; color: #000; font: bold calc(var(--c) * .25) var(--font); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px #000, 1px 2px 0 rgba(0,0,0,.4); }
.pk-button.inline { position: static; transform: none; width: 18px; height: 18px; font-size: 11px; vertical-align: middle; }
.pk-bar { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; min-height: 44px; justify-content: center; text-align: center; }
.pk-raise input[type=range] { width: min(260px, 40vw); }
.pk-raise input[type=number] { width: 90px; }
.pk-hands td { vertical-align: middle; }
.pk-mini { font: bold 14px Georgia, serif; white-space: nowrap; }
.pk-mini .red { color: #c00000; }
@media (max-width: 760px) {
  .pk-felt { --c: clamp(22px, min(7cqw, 9cqh), 60px); }
  .pk-seat { width: 24%; min-width: 0; }
}

/* Durak (views/durak.ejs, public/durak.js): Tisch, Plätze und Karten von Poker und Blackjack, dazu Stapel, Paare und Hand */
.dk-felt { --c: clamp(24px, min(5cqw, 9cqh), 70px); }
.dk-center { top: 46%; transform: translate(-50%, -50%); width: 62%; }
.dk-mid { display: flex; align-items: center; justify-content: center; gap: calc(var(--c) * .4); width: 100%; }
.dk-stock, .dk-discard { position: relative; width: calc(var(--c) * 1.5); min-height: calc(var(--c) * 1.5); flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dk-stock .bj-card, .dk-discard .bj-card { margin: 0; animation: none; }
.dk-stock .dk-trump { position: absolute; transform: rotate(90deg); left: calc(var(--c) * .62); top: calc(var(--c) * .06); }
.dk-stock .back { position: relative; left: calc(var(--c) * -.3); }
.dk-stock small, .dk-discard small { position: absolute; bottom: calc(var(--c) * -.45); white-space: nowrap; text-shadow: 1px 1px #000; }
.dk-discard .dk-off { transform: rotate(-12deg); opacity: .8; }
.dk-suit { font: bold calc(var(--c) * .9) Georgia, serif; text-shadow: 1px 1px #000; }
.dk-red { color: #ff6b6b; }
.dk-pairs { display: flex; flex-wrap: wrap; gap: calc(var(--c) * .3) calc(var(--c) * .2); justify-content: center; align-items: center; min-height: calc(var(--c) * 1.8); flex: 1; }
.dk-pair { position: relative; display: inline-block; width: calc(var(--c) * 1.3); height: calc(var(--c) * 1.75); border-radius: 6px; }
.dk-pair .bj-card { position: absolute; left: 0; top: 0; margin: 0; }
.dk-pair .dk-def { left: calc(var(--c) * .3); top: calc(var(--c) * .34); transform: rotate(8deg); }
.dk-pair.target { cursor: pointer; outline: 2px dashed #ff0; outline-offset: 2px; }
.dk-pair.target:hover { background: rgba(255,255,0,.15); }
.dk-hint { opacity: .75; font-style: italic; text-shadow: 1px 1px #000; }
.dk-big { font-size: 1.4em; }
.dk-order { background: rgba(0,0,0,.4); padding: 4px 12px; border-radius: 8px; text-align: left; }
.dk-backs .bj-card { width: calc(var(--c) * .55); height: calc(var(--c) * .78); margin-right: calc(var(--c) * -.38); border-width: 2px; animation: none; }
.dk-seat .pk-hole { min-height: calc(var(--c) * .8); }
.dk-seat.lost { box-shadow: 0 0 0 2px #ff5050, 0 0 12px #ff5050; }
.dk-bar { min-height: calc(clamp(34px, 5.5vw, 62px) * 1.41 + 48px); }
.dk-hand { --c: clamp(34px, 5.5vw, 62px); display: flex; flex-wrap: wrap; justify-content: center; row-gap: 6px; padding: 10px calc(var(--c) * .12) 2px 0; }
.dk-hand .bj-card { cursor: pointer; transition: transform .1s; margin-right: calc(var(--c) * -.12); }
.dk-hand .bj-card.ok:hover, .dk-hand .bj-card.ok:focus-visible { transform: translateY(-8px); z-index: 1; outline: 0; }
.dk-hand .bj-card.dim { filter: brightness(.82); cursor: default; }
.dk-hand .bj-card.trump { box-shadow: 0 3px 8px rgba(0,0,0,.28), inset 0 -4px 0 #f4b400; }
.dk-hand .bj-card.picked { transform: translateY(-14px); box-shadow: 0 0 0 3px #ffe066, 0 8px 16px rgba(0,0,0,.4); z-index: 2; }
@media (max-width: 760px) {
  .dk-felt { --c: clamp(20px, min(6.5cqw, 8.5cqh), 54px); }
  .dk-center { width: 74%; }
  /* Schmal: Stapel und Abwurf über die Karten in der Mitte, damit sie nicht in die Plätze links und rechts ragen */
  .dk-mid { flex-wrap: wrap; row-gap: calc(var(--c) * .6); }
  .dk-pairs { order: 3; flex-basis: 100%; }
}

/* UNO, Flip 7, Pilli Pilli (views/cardgame.ejs, public/cardtable.js): Tisch und Plätze wie Durak, dazu eigene Karten */
.cg-seat { width: 15%; }
.cg-seat .pk-hole { min-height: calc(var(--c) * .8); display: flex; justify-content: center; }
.cg-seat.folded .f7-row { opacity: .55; }
.cg-center { gap: 6px; }
.cg-bar .bj-row button { min-width: 0; }
.dk-hand .bj-card.mini, .bj-card.mini { --c: 22px; animation: none; }
/* UNO: farbige Karten mit weißem Oval */
.un-card { color: #fff; border: 2px solid #fff; outline: 1px solid #222; background: #222; overflow: hidden; font-family: var(--font); }
.un-card.un-r, .un-pick.un-r, .un-dot.un-r { background: #d72600; } .un-card.un-y, .un-pick.un-y, .un-dot.un-y { background: #ecd407; }
.un-card.un-g, .un-pick.un-g, .un-dot.un-g { background: #379711; } .un-card.un-b, .un-pick.un-b, .un-dot.un-b { background: #0956bf; }
.un-card.un-y { color: #222; }
.un-oval { position: absolute; left: 14%; right: 14%; top: 18%; bottom: 18%; border-radius: 50%; background: #fff; transform: rotate(-28deg); display: flex; align-items: center; justify-content: center; }
.un-oval span { transform: rotate(28deg); font: bold calc(var(--c) * .42) var(--font); color: #222; }
.un-r .un-oval span { color: #d72600; } .un-g .un-oval span { color: #379711; } .un-b .un-oval span { color: #0956bf; } .un-y .un-oval span { color: #b8a000; }
.un-w .un-oval { background: conic-gradient(#d72600 0 25%, #0956bf 0 50%, #ecd407 0 75%, #379711 0); }
.un-w .un-oval span { color: #fff; text-shadow: 1px 1px #000; }
.un-corner { position: absolute; left: 6%; top: 2%; font: bold calc(var(--c) * .22) var(--font); text-shadow: 1px 1px rgba(0,0,0,.4); }
.un-corner.br { left: auto; top: auto; right: 6%; bottom: 2%; transform: rotate(180deg); }
.un-card.mini { --c: 22px; margin-right: 1px; border-width: 1px; }
.un-card.mini .un-corner { display: none; }
.un-mini { display: inline-flex; flex-wrap: wrap; gap: 1px; vertical-align: middle; }
.un-mid { display: flex; align-items: center; justify-content: center; gap: calc(var(--c) * .6); }
.un-stack, .un-pile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.un-stack .bj-card, .un-pile .bj-card { margin: 0; }
.un-stack small, .un-pile small { white-space: nowrap; text-shadow: 1px 1px #000; }
.un-stack.ok { cursor: pointer; }
.un-stack.ok .bj-card { box-shadow: 0 0 0 3px #ff0, 2px 2px 0 rgba(0,0,0,.35); }
.un-dir { font-size: calc(var(--c) * .8); opacity: .8; text-shadow: 1px 1px #000; }
.un-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid #fff; vertical-align: middle; }
.un-pick { color: #fff; text-shadow: 1px 1px #000; font-weight: bold; }
.un-pick.un-y { color: #222; text-shadow: none; }
.un-catch { background: #ffd700; font-weight: bold; animation: un-blink 1s steps(2) infinite; }
.un-uno { font-weight: bold; }
@keyframes un-blink { 50% { background: #ff8c00; } }
@media (prefers-reduced-motion: reduce) { .un-catch { animation: none; } }
.un-hand .bj-card.picked { transform: translateY(-14px); box-shadow: 0 0 0 3px #ff0, 2px 2px 0 rgba(0,0,0,.35); z-index: 2; }
/* Flip 7: Zahlen in Farbe, Bonus orange, Aktionen bunt; alle Karten liegen offen */
.f7-card { background: #fffbe8; font-family: var(--font); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
.f7-big { font: bold calc(var(--c) * .5) Georgia, serif; line-height: 1; }
.f7-lbl { font: bold calc(var(--c) * .14) var(--font); text-align: center; line-height: 1.1; margin-top: 2px; }
.f7-v0, .f7-v7 { color: #444; } .f7-v1, .f7-v8 { color: #b0006a; } .f7-v2, .f7-v9 { color: #b35a00; } .f7-v3, .f7-v10 { color: #1a7f2a; }
.f7-v4, .f7-v11 { color: #0b5cad; } .f7-v5, .f7-v12 { color: #6a1b9a; } .f7-v6 { color: #c00000; }
.f7-m { background: #ffb347; color: #5a2a00; }
.f7-a { background: #2a2a6a; color: #fff; }
.f7-freeze { background: #4fc3f7; color: #003049; } .f7-flip3 { background: #ffd54f; color: #4a3000; } .f7-second { background: #e53935; }
.f7-card.f7-dup { box-shadow: 0 0 0 3px #ff2020; transform: rotate(8deg); }
.f7-card.mini { margin-right: 1px; border-width: 1px; }
.f7-card.mini .f7-lbl { display: none; }
.f7-row { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 1px; max-width: 100%; }
.f7-hand .bj-card { margin-right: calc(var(--c) * .06); cursor: default; }
.f7-frozen { background: #4fc3f7; color: #003049; }
.f7-sum td { padding: 0 6px; } .f7-sum th { font-weight: normal; opacity: .8; padding: 0 6px; }
/* Pilli Pilli: rote Chili-Karten, die Zahl groß in der Mitte */
.pp-card { background: linear-gradient(160deg, #fff6e0, #ffd9b0); color: #b31200; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font); }
.pp-num { font: bold calc(var(--c) * .48) Georgia, serif; line-height: 1; }
.pp-lbl { font-size: calc(var(--c) * .2); margin-top: 2px; }
.pp-joker { background: linear-gradient(160deg, #3b1a5a, #7b2ab0); color: #ffd700; }
.pp-trick { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(var(--c) * .25); min-height: calc(var(--c) * 1.8); align-items: center; }
.pp-play { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.pp-play .bj-card { margin: 0; }
.pp-play small { text-shadow: 1px 1px #000; white-space: nowrap; max-width: calc(var(--c) * 1.6); overflow: hidden; text-overflow: ellipsis; }
.pp-play.win .bj-card { box-shadow: 0 0 0 3px #ffd700, 0 0 12px #ffd700; }
.pp-last { font-size: .85em; opacity: .85; text-shadow: 1px 1px #000; }
.pp-hand .bj-card { margin-right: calc(var(--c) * .06); }
@media (max-width: 760px) {
  .cg-seat { width: 22%; }
}

/* Paint (views/paint.ejs, public/paint.js) */
.pt { margin: -10px; height: 100vh; min-height: 360px; display: flex; flex-direction: column; position: relative; user-select: none; -webkit-user-select: none; }
.pt-menu { display: flex; align-items: center; padding: 1px 2px; border-bottom: 1px solid var(--lo); box-shadow: 0 1px var(--hi); flex-wrap: wrap; }
.pt-mtop { min-width: 0; padding: 2px 8px; background: none; box-shadow: none; }
.pt-mtop:active { box-shadow: none; }
.pt-mtop.open, .pt-mtop:focus-visible { background: var(--title-from); color: #fff; outline: 0; }
.pt-menu .spacer { flex: 1; }
.pt-doc { font-size: 12px; padding: 0 6px; opacity: .8; }
.pt-main { flex: 1; min-height: 0; display: flex; gap: 3px; padding: 3px 3px 0; }
.pt-left { width: 56px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; padding-top: 2px; }
.pt-left[hidden] { display: none; }
.pt-tools { display: grid; grid-template-columns: 25px 25px; }
.pt-tool { width: 25px; height: 25px; min-width: 0; padding: 0; display: flex; align-items: center; justify-content: center; }
.pt-tool.on { box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--hi), inset 2px 2px var(--lo);
  background: repeating-conic-gradient(var(--win) 0 25%, #fff 0 50%) 0 0 / 2px 2px; }
.pt-tool svg { width: 16px; height: 16px; shape-rendering: crispEdges; pointer-events: none; }
.pt-opts { width: 44px; min-height: 70px; margin-top: 5px; box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi);
  display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; padding: 3px 0; gap: 1px; }
.pt-opts .o { width: 36px; min-width: 0; height: auto; min-height: 12px; padding: 1px 0; background: none; box-shadow: none; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.pt-opts .o.on { background: var(--title-from); color: #fff; }
.pt-opts .o i { display: block; background: #000; }
.pt-opts .o.on i { background: #fff; }
.pt-opts.grid { display: grid; grid-template-columns: repeat(3, 12px); gap: 2px; justify-content: center; align-content: center; }
.pt-opts.grid .o { width: 12px; height: 12px; min-height: 0; padding: 0; }
.pt-opts .sep { width: 34px; border-top: 1px solid var(--lo); margin: 2px 0; }
.pt-opts .dots { display: block; width: 20px; height: 14px; background: radial-gradient(currentColor 1px, transparent 1.5px) 0 0 / 4px 4px; border-radius: 50%; }
.pt-opts .dots.s0 { width: 10px; height: 10px; }
.pt-opts .dots.s2 { width: 26px; height: 18px; }
.pt-opts .fillmode { width: 26px !important; height: 12px; border: 1px solid #000; background: transparent !important; }
.pt-opts .fillmode.f1 { background: #808080 !important; }
.pt-opts .fillmode.f2 { background: #808080 !important; border-color: #808080; }
.pt-opts .o.on .fillmode { border-color: #fff; }
.pt-opts .selmode { width: 26px; height: 18px; background: linear-gradient(#0a0, #0a0) 2px 2px / 10px 10px no-repeat !important; position: relative; }
.pt-opts .selmode::after { content: ''; position: absolute; left: 8px; top: 6px; width: 14px; height: 10px; border: 1px solid #f00; }
.pt-opts .selmode.opaque::after { background: #f00; }
.pt-stage { flex: 1; min-width: 0; background: #808080; overflow: auto; position: relative; padding: 4px 12px 12px 4px; outline: 0;
  box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi); touch-action: none; }
.pt-sheet { position: relative; touch-action: none; }
.pt-sheet canvas { position: absolute; left: 0; top: 0; image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
#pt-canvas { background: #fff; }
#pt-overlay, #pt-remote { pointer-events: none; }
/* Paint-Lobby: Zeiger der anderen, Seitenleiste mit Teilnehmern und Unterhaltung */
.pt-cursors { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 3; }
.pt-rc { position: absolute; pointer-events: none; }
.pt-rc i { position: absolute; left: -1px; top: -1px; width: 0; height: 0; border-left: 7px solid var(--c); border-bottom: 7px solid transparent; }
.pt-rc span { position: absolute; left: 7px; top: 6px; background: var(--c); color: #fff; font-size: 11px; line-height: 14px; padding: 0 3px; white-space: nowrap; }
.pt-side { width: 190px; flex: 0 0 auto; display: flex; flex-direction: column; gap: 3px; min-height: 0; }
.pt-side[hidden] { display: none; }
.pt-side-head { padding: 2px 3px; }
.pt-side-head b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-side-head small { display: block; opacity: .8; }
.pt-side-head .actions { margin: 3px 0 0; gap: 2px; flex-wrap: wrap; }
.pt-people { list-style: none; margin: 0; padding: 2px; max-height: 35%; overflow: auto; background: #fff; color: #000; box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi); }
.pt-people li { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.pt-people small { opacity: .7; }
.pt-person { min-width: 0; padding: 1px 2px; background: none; box-shadow: none; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; }
.pt-person:hover { text-decoration: underline; }
.pt-person i { display: inline-block; width: 8px; height: 8px; margin-right: 3px; }
.pt-chat { flex: 1; min-height: 80px; display: flex; flex-direction: column; gap: 2px; }
.pt-chat[hidden] { display: none; }
.pt-chat-log { flex: 1; min-height: 0; overflow: auto; background: #fff; color: #000; padding: 2px 4px; font-size: 12px; box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi); }
.pt-chat-log p { margin: 0 0 2px; overflow-wrap: anywhere; }
.pt-chat-name { min-width: 0; padding: 0; background: none; box-shadow: none; font-weight: bold; color: inherit; }
.pt-chat-form { display: flex; gap: 2px; margin: 0; }
.pt-chat-form input { flex: 1; min-width: 0; }
.lobby-dialog { width: min(560px, 96vw); }
@media (max-width: 700px) { .pt.in-lobby .pt-main { flex-wrap: wrap; } .pt.in-lobby .pt-side { width: 100%; max-height: 40%; } }
.pt-grid { position: absolute; left: 0; top: 0; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(128,128,128,.6) 1px, transparent 1px), linear-gradient(rgba(128,128,128,.6) 1px, transparent 1px); }
.pt-selframe { position: absolute; pointer-events: none; outline: 1px dashed #000; outline-offset: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.7); }
.pt-selframe .pt-h { display: none; }
.pt-selframe.handles .pt-h { display: block; }
.pt-h { position: absolute; width: 5px; height: 5px; background: var(--title-from); pointer-events: auto; touch-action: none; }
.pt-selframe .pt-h[data-dir=nw] { left: -3px; top: -3px; cursor: nwse-resize; }
.pt-selframe .pt-h[data-dir=n] { left: calc(50% - 2px); top: -3px; cursor: ns-resize; }
.pt-selframe .pt-h[data-dir=ne] { right: -3px; top: -3px; cursor: nesw-resize; }
.pt-selframe .pt-h[data-dir=w] { left: -3px; top: calc(50% - 2px); cursor: ew-resize; }
.pt-selframe .pt-h[data-dir=e] { right: -3px; top: calc(50% - 2px); cursor: ew-resize; }
.pt-selframe .pt-h[data-dir=sw] { left: -3px; bottom: -3px; cursor: nesw-resize; }
.pt-selframe .pt-h[data-dir=s] { left: calc(50% - 2px); bottom: -3px; cursor: ns-resize; }
.pt-selframe .pt-h[data-dir=se] { right: -3px; bottom: -3px; cursor: nwse-resize; }
.pt-sizer .pt-h { width: 4px; height: 4px; }
.pt-sizer .pt-h.hollow { background: #fff; outline: 1px solid var(--title-from); pointer-events: none; }
.pt-sizer .pt-h[data-dir=e] { cursor: ew-resize; }
.pt-sizer .pt-h[data-dir=s] { cursor: ns-resize; }
.pt-sizer .pt-h[data-dir=se] { cursor: nwse-resize; }
.pt-resize { position: absolute; left: 0; top: 0; outline: 1px dotted #000; pointer-events: none; }
.pt-text { position: absolute; z-index: 2; border: 1px dashed #000; outline: 0; padding: 0 1px; margin: 0; resize: none; overflow: hidden;
  min-height: 0; box-shadow: none; white-space: pre-wrap; user-select: text; -webkit-user-select: text; }
.pt-fontbar { position: absolute; z-index: 4; right: 16px; top: 34px; margin: 0; width: auto; max-width: none; }
.pt-fontbar[hidden] { display: none; }
.pt-fontrow { display: flex; gap: 3px; padding: 3px; align-items: center; }
.pt-fontrow button { min-width: 0; width: 24px; padding: 2px 0; }
.pt-fontrow button.on { box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--hi); background: repeating-conic-gradient(var(--win) 0 25%, #fff 0 50%) 0 0 / 2px 2px; }
.pt-bottom { display: flex; align-items: center; gap: 6px; padding: 4px 3px; }
.pt-bottom[hidden] { display: none; }
.pt-cur { width: 32px; height: 32px; min-width: 0; padding: 0; position: relative; box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi);
  background: repeating-conic-gradient(var(--win) 0 25%, #fff 0 50%) 0 0 / 2px 2px; flex: 0 0 auto; }
.pt-cur i { position: absolute; width: 14px; height: 14px; border: 1px solid #808080; box-shadow: inset 1px 1px #fff; }
.pt-cur .fg { left: 5px; top: 5px; z-index: 1; }
.pt-cur .bg { left: 13px; top: 13px; }
.pt-pal { display: grid; grid-template-columns: repeat(14, 16px); grid-auto-rows: 16px; }
.pt-pal button { min-width: 0; padding: 0; width: 16px; height: 16px; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff, inset 2px 2px #000; }
.pt-pal-hint { margin-left: auto; font-size: 12px; opacity: .75; text-align: right; }
.pt-status { flex: 0 0 auto; }
.pt-status[hidden] { display: none; }
.pt-status span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pt-status .pt-pos, .pt-status .pt-size { flex: 0 0 90px; }
.pt-dd { position: absolute; z-index: 20; background: var(--win); min-width: 220px; padding: 2px; display: flex; flex-direction: column;
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo), 2px 2px 0 rgba(0,0,0,.35); }
.pt-mi { display: flex; padding: 3px 18px 3px 22px; position: relative; white-space: nowrap; background: none; box-shadow: none; text-align: left; min-width: 0; }
.pt-mi:active { box-shadow: none; }
.pt-mi span:last-child { margin-left: auto; padding-left: 24px; }
.pt-mi:hover:not(:disabled), .pt-mi:focus-visible { background: var(--title-from); color: #fff; outline: 0; }
.pt-mi:disabled { color: #808080; text-shadow: 1px 1px #fff; cursor: default; }
.pt-mi.chk::before { content: '✓'; position: absolute; left: 7px; }
.pt-mi.sub::after { content: '▸'; position: absolute; right: 6px; }
.pt-dd hr { margin: 3px 1px; }
.pt-modal { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; }
.pt-modal[hidden] { display: none; }
.pt-dialog { position: absolute; margin: 0; max-width: calc(100% - 16px); max-height: calc(100% - 16px); overflow: auto; min-width: 300px;
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px rgba(255,255,255,.5), 3px 3px 0 rgba(0,0,0,.3); }
.pt-dialog .body { padding: 8px 12px; }
.pt-dialog .groupbox { margin: 8px 0; }
.pt-dlg-buttons { justify-content: flex-end; }
.pt-dialog.open-dialog { width: 760px; }
.pt-dialog.help-dialog { width: 560px; }
.pt-help p { margin: 0 0 8px; }
.pt-msg { display: flex; gap: 12px; align-items: flex-start; max-width: 420px; }
.pt-msg-icon { font-size: 28px; line-height: 1; }
.pt-msg p { margin: 4px 0; }
.pt-dialog .tabs { display: flex; margin-top: 2px; position: relative; z-index: 1; }
.pt-dialog .tab { min-width: 0; padding: 3px 10px; margin-right: -1px; box-shadow: inset 1px 1px var(--hi), inset -1px 0 var(--dark), inset -2px 0 var(--lo); }
.pt-dialog .tab.on { padding-bottom: 5px; margin-bottom: -2px; position: relative; z-index: 2; }
.pt-dialog .tabpane { box-shadow: inset 1px 1px var(--hi), inset -1px -1px var(--dark), inset -2px -2px var(--lo); padding: 8px; }
.pt-files { max-height: 50vh; overflow: auto; min-height: 120px; }
.pt-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pt-thumbs figure { margin: 0; padding: 4px; background: var(--field); color: var(--field-text); font-size: 11px; cursor: pointer;
  box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); display: flex; flex-direction: column; }
.pt-thumbs figure.sel { outline: 2px solid var(--title-from); }
.pt-thumbs img { width: 100%; height: 100px; object-fit: contain; image-rendering: pixelated; background: #fff; border: 1px solid #808080; }
.pt-thumbs b { font-size: 12px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-file-actions { margin-top: 6px; }
.pt-file-actions [data-info] { font-size: 12px; margin-left: auto; }
.pt-quota { margin: 0 0 6px; text-align: right; }
.cd { display: flex; gap: 12px; flex-wrap: wrap; }
.cd-grid { display: grid; grid-template-columns: repeat(8, 20px); gap: 4px; margin: 3px 0 10px; }
.cd-cell { width: 20px; height: 16px; min-width: 0; padding: 0; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff, inset 2px 2px #000; }
.cd-right { position: relative; display: grid; grid-template-columns: 182px 20px; gap: 6px 4px; align-content: start; }
.cd-spec-wrap { position: relative; width: 180px; height: 150px; box-shadow: 0 0 0 1px #808080; }
.cd-spec, .cd-lum { display: block; touch-action: none; cursor: crosshair; }
.cd-cross { position: absolute; width: 15px; height: 15px; margin: -7px 0 0 -7px; pointer-events: none;
  background: linear-gradient(#000, #000) center / 1px 100% no-repeat, linear-gradient(#000, #000) center / 100% 1px no-repeat; }
.cd-lum { box-shadow: 0 0 0 1px #808080; }
.cd-arrow { position: absolute; left: 202px; font-size: 12px; font-style: normal; pointer-events: none; }
.cd-fields { grid-column: 1 / 3; display: flex; gap: 6px; }
.cd-prev { width: 48px; height: 48px; box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); flex: 0 0 auto; }
.cd-num { display: grid; grid-template-columns: auto auto; gap: 2px 8px; }
.cd-num label { margin: 0; display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 12px; }
.cd-num input { width: 48px; }
.cd-right [data-add] { grid-column: 1 / 3; }
.pt-viewer { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pt-viewer canvas { max-width: 100%; max-height: 100%; image-rendering: pixelated; }
@media print { body > :not(.pt-viewer) { display: none !important; } .pt-viewer { position: static; background: #fff; } }
@media (max-width: 760px) {
  .pt-pal-hint { display: none; }
  .pt-pal { grid-template-columns: repeat(14, 14px); grid-auto-rows: 14px; }
  .pt-pal button { width: 14px; height: 14px; }
  .pt-status .pt-size { display: none; }
}

/* Galerie */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.gal-item { display: flex; flex-direction: column; text-decoration: none; color: var(--field-text); background: var(--field); padding: 5px;
  box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.gal-item img { width: 100%; height: 120px; object-fit: contain; image-rendering: pixelated; background: #fff; border: 1px solid #808080; }
.gal-item b { margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-item small { opacity: .75; }
.gal-full { text-align: center; background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 16px 16px; padding: 8px; }
.gal-full img { image-rendering: pixelated; max-width: 100%; height: auto; box-shadow: 2px 2px 0 var(--lo); }

/* Forum: Suche und Sortierung */
.board-search { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 8px; }
.board-search input[type=search] { flex: 1 1 200px; min-width: 0; }
.board th a.sort { color: inherit; text-decoration: none; }
.board th a.sort.on, .board th a.sort:hover { text-decoration: underline; }

/* Benachrichtigungen (🔔 neben der Uhr, public/notify.js) */
.notify-btn { position: relative; }
.notify-btn .notify-count { position: absolute; top: -4px; right: -6px; min-width: 14px; padding: 0 3px; border-radius: 7px; background: #c00000; color: #fff;
  font: bold 9px/14px var(--font); text-align: center; }
.notify-btn .notify-count[hidden] { display: none; }
.notify-btn.has-new { animation: pm-blink 1s steps(2) 3; }
@media (prefers-reduced-motion: reduce) { .notify-btn.has-new { animation: none; } }
.notify-panel { position: fixed; right: 4px; bottom: calc(var(--taskbar-h) + 2px); z-index: 12; margin: 0; width: min(340px, calc(100vw - 8px)); }
.notify-panel[hidden] { display: none; }
.notify-panel .body { padding: 6px; }
.notify-panel .actions { margin-top: 6px; gap: 4px; }
.notify-list { max-height: min(360px, 60vh); overflow: auto; background: var(--field, #fff); padding: 0; }
.notify-item { display: flex; flex-direction: column; gap: 1px; padding: 5px 7px; color: var(--text); text-decoration: none; font-size: 12px; border-bottom: 1px dotted var(--lo); }
.notify-item:hover { background: var(--title-from); color: #fff; }
.notify-item b { font-weight: normal; }
.notify-item.unread b { font-weight: bold; }
.notify-item small { opacity: .7; }
.notify-empty { padding: 10px; margin: 0; text-align: center; }
.notify-page { display: flex; flex-direction: column; gap: 4px; }
.notify-row { display: flex; gap: 8px; align-items: center; padding: 5px 8px; background: var(--field, #fff); box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.notify-row > a { flex: 1; min-width: 0; color: var(--text); text-decoration: none; }
.notify-row > a b { font-weight: normal; }
.notify-row.unread > a b { font-weight: bold; }
.notify-row > a:hover b { text-decoration: underline; }
.notify-row small { white-space: nowrap; opacity: .7; }
.notify-prefs td, .notify-prefs th { text-align: center; }
.notify-prefs td:first-child, .notify-prefs th:first-child { text-align: left; }
#push [hidden] { display: none; }

/* Startseite (views/home.ejs): oben die Begrüßung mit Titel der Seite, links Schnellstart und Neues,
   rechts das letzte Update und Persönliches. Am Handy alles untereinander, Reihenfolge über order. */
.home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 0 16px; align-items: start; }
.home > .home-hero, .home > .construction { grid-column: 1 / -1; }
.home-hero { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--xp-title-text, #fff);
  background: linear-gradient(90deg, var(--title-from), var(--title-to)); }
.home-hero-text { min-width: 0; }
.home-hero h1 { margin: 0; font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.home-hero p { margin: 2px 0 0; font-size: 12px; opacity: .9; }
.home-logo { width: 40px; height: 40px; flex: none; image-rendering: pixelated; box-shadow: 2px 2px 0 rgba(0, 0, 0, .3); }
.home > .construction { height: 6px; margin: 0 0 12px; }
.home-main, .home-side { min-width: 0; }
.home-main > section, .home-main > fieldset.groupbox { margin: 0 0 16px; }
.home-welcome .content > :first-child { margin-top: 0; }
.home-welcome .content > :last-child { margin-bottom: 0; }
.home-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 0; }
.home-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 5px; }
.home-h h2 { margin: 0; font-size: 15px; }
.home-h a { font-size: 12px; white-space: nowrap; }
/* Schnellstart: große Symbole wie in einem Explorer-Fenster */
.home-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 2px; padding: 6px; }
.home-app, .home-app:visited { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 2px 6px; min-width: 0;
  text-align: center; text-decoration: none; color: var(--field-text); }
.home-app .ico { font-size: 28px; line-height: 32px; height: 32px; }
.home-app .lbl { font-size: 12px; line-height: 1.25; padding: 0 3px; max-width: 100%; overflow-wrap: break-word; }
.home-app:hover { background: var(--hover); }
.home-app:hover .lbl { text-decoration: underline; }
.home-app:focus-visible { outline: 1px dotted var(--field-text); outline-offset: -2px; }
.home-app:active .lbl { background: var(--sel-bg); color: var(--sel-text); }
/* Neuigkeiten: eine Liste im weißen Feld mit Reitern (public/home.js) */
.home-tabs { margin-top: 2px; }
.home-feed { list-style: none; margin: 0; padding: 0; }
.home-feed li { display: grid; grid-template-columns: 26px minmax(0, 1fr) max-content; gap: 2px 8px; align-items: center; padding: 6px 8px;
  border-bottom: 1px dotted color-mix(in srgb, var(--field-text) 25%, transparent); }
.home-feed li[hidden] { display: none; }
.home-feed li:last-of-type { border-bottom: 0; }
.home-feed .fi { font-size: 18px; text-align: center; }
.home-feed .ft { min-width: 0; }
.home-feed .ft a { display: block; color: var(--field-link); font-weight: bold; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-feed .ft a.q { font-weight: normal; font-style: italic; }
.home-feed .ft small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-feed .fw { white-space: nowrap; }
.home-more { text-align: right; font-size: 12px; margin-top: 4px; }
.home-more a[hidden] { display: none; }
/* Kopf: Gruß und Glocke */
.home-hi { margin-left: auto; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: flex-end; font-size: 13px; }
.home-bell { white-space: nowrap; }
/* Server-Status */
.home-svc-list { list-style: none; margin: 0; padding: 0; }
.home-svc-list li { display: grid; grid-template-columns: 12px 20px minmax(0, 1fr) minmax(0, max-content); gap: 6px; align-items: center; padding: 3px 0; }
.home-svc-list .ic { text-align: center; }
.home-svc-list .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-svc-list .tx { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.home-svc-list li[data-state=down] .tx { color: var(--danger); opacity: 1; }
.home-svc .actions, .home-update .actions { justify-content: flex-end; margin-top: 6px; }
/* Rechte Spalte */
.home-side fieldset.groupbox { margin: 0 0 14px; }
.home-side fieldset.groupbox > p:first-of-type { margin-top: 2px; }
.home-update-head { margin: 0 0 8px; }
.home-update-head b { display: block; margin-top: 4px; font-size: 14px; }
.home-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.home-tags .tag { margin: 0; padding: 1px 6px; font-size: 12px; cursor: default; }
.home-tags .more { font-size: 12px; padding: 1px 2px; opacity: .75; }
.home-update .actions, .home-gb .actions { margin-top: 10px; }
.home-gb .panel { margin-bottom: 6px; font-size: 12px; overflow-wrap: break-word; }
.home + .statusbar { margin: 4px -10px -10px; }
/* Windows XP: Kopf oben rund, Titel mit Schatten wie in der Titelleiste. Mit Nacht wären die blauen Überschriften
   der Rahmen auf Dunkelgrau kaum zu lesen. */
html.theme-xp .home-hero { border-radius: 6px 6px 0 0; }
html.theme-xp .home-hero h1 { font-family: "Trebuchet MS", var(--font); text-shadow: var(--xp-title-shadow); }
html.theme-xp.scheme-nacht .home .groupbox > legend { color: var(--link); }
@media (max-width: 760px) {
  .home { display: flex; flex-direction: column; align-items: stretch; }
  .home-main, .home-side { display: contents; }
  .home-hi { margin-left: 0; width: 100%; justify-content: flex-start; }
  .home-hero { flex-wrap: wrap; }
  .home-hero { padding: 8px 10px; }
  .home-hero h1 { font-size: 19px; }
}
.guide { width: min(420px, calc(100vw - 24px)); padding: 0; }
.guide::backdrop { background: rgba(0, 0, 0, .25); }
.guide #guide-step h3 { margin: 0 0 6px; }
.guide #guide-step p { margin: 4px 0; }
.guide .step-no { font-size: 11px; opacity: .7; }

/* Quiz (views/quiz.ejs, public/quiz.js) */
.qz { display: flex; flex-direction: column; height: calc(100vh - 20px); min-height: 460px; gap: 4px; }
.qz-main { flex: 1; min-height: 0; overflow: auto; }
.qz-me { font-size: 12px; align-self: center; padding: 0 6px; }
.qz-pad { padding: 4px 2px; }
.qz-empty { padding: 10px; text-align: center; opacity: .75; }
.qz-center { text-align: center; }
.qz-dim { opacity: .55; }
.qz-err { color: var(--danger); font-weight: bold; }
.qz-acts { text-align: right; white-space: nowrap; }
.qz-choice { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 14px 0 6px; }
.qz-big { width: min(300px, 100%); height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 18px; font-weight: bold; }
.qz-big .ico { font-size: 42px; line-height: 1; }
.qz-big small { font-weight: normal; font-size: 12px; opacity: .8; }
.qz-codeform { text-align: center; margin: 10px 0; }
.qz-codeform input { width: 90px; font: bold 16px "Courier New", monospace; letter-spacing: 4px; text-transform: uppercase; }
.qz-row { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.qz-row > span:first-child { width: 110px; flex: 0 0 auto; }
.qz-row input { flex: 1; }
.qz-pick { display: flex; flex-wrap: wrap; gap: 4px; }
.qz-pick button { min-width: 0; padding: 0; border: 0; }
.qz-pick button[aria-pressed=true] { outline: 2px dotted var(--text); outline-offset: 2px; }
.qz-swatch { width: 18px; height: 18px; }
.qz-av { width: 28px; height: 28px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; font-weight: bold; color: #fff;
  box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); vertical-align: middle; object-fit: cover; line-height: 1; }
.qz-pick .qz-av { width: 30px; height: 30px; font-size: 18px; }
.qz-guest { font-size: 11px; opacity: .7; font-weight: normal; }
.qz-userlink { color: inherit; text-decoration: none; cursor: pointer; }
a.qz-userlink:hover, span.qz-userlink[role=button]:hover { text-decoration: underline; }

.qz-play { display: grid; grid-template-columns: 1fr 280px; gap: 8px; padding: 4px; min-height: 100%; }
.qz-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.qz-q { background: var(--field); color: var(--field-text); padding: 12px 16px; box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi); }
.qz-q .meta { font-size: 12px; opacity: .75; display: flex; gap: 12px; flex-wrap: wrap; }
.qz-q .text { font-size: 22px; font-weight: bold; margin-top: 6px; line-height: 1.3; white-space: pre-wrap; overflow-wrap: anywhere; }
.qz-caret { display: inline-block; width: 2px; height: 1em; background: currentColor; vertical-align: -2px; margin-left: 2px; animation: qz-blink 1s steps(1) infinite; }
@keyframes qz-blink { 50% { opacity: 0; } }
.qz-timer { display: flex; align-items: center; gap: 8px; }
.qz-bar { flex: 1; height: 20px; background: var(--field); padding: 3px; box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi); }
.qz-bar i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--title-from) 0 10px, transparent 10px 12px); transition: width .1s linear; }
.qz-bar i.warn { background: repeating-linear-gradient(90deg, #c0392b 0 10px, transparent 10px 12px); }
.qz-time { font: bold 22px "Courier New", monospace; width: 76px; text-align: center; background: #000; color: #33ff66; padding: 2px; text-shadow: 0 0 6px rgba(51,255,102,.7); }
.qz-time.warn { color: #ff3b1f; text-shadow: 0 0 6px rgba(255,60,30,.8); }
.qz-time.paused { animation: qz-blink 1s steps(1) infinite; }
.qz-timer:not(.big) .qz-time { font-size: 18px; width: 64px; }
.qz-mc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qz-opt { font-size: 18px; text-align: left; display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 64px; background: var(--win);
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo); overflow-wrap: anywhere; }
button.qz-opt { color: var(--text); }
.qz-mc.preview .qz-opt { font-size: 15px; min-height: 0; opacity: .8; }
.letter { width: 38px; height: 38px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: bold; color: #fff;
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi); }
.l0 { background: #c0392b; } .l1 { background: #2e86c1; } .l2 { background: #d68910; } .l3 { background: #27ae60; }
.qz-opt.pressed { outline: 3px solid var(--text); outline-offset: -6px; box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--hi); }
.qz-opt.dim { opacity: .5; }
.qz-opt.right { background: #b8f0b8; color: #000; }
.qz-opt.wrong { background: #f3c6c6; color: #000; }
.qz-opt.mine { outline: 3px dashed #000; outline-offset: -6px; }
.qz-otext { flex: 1; }
.qz-who { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.qz-banner { background: #ffffcc; color: #000; border: 1px solid #000; padding: 8px 12px; font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qz-banner.hot { background: #ffe0a0; font-size: 18px; }
.qz-banner.ok { background: #d8f5d8; font-size: 18px; justify-content: center; }
.qz-explain { background: var(--field); color: var(--field-text); padding: 8px 12px; box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.qz-buzz { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px 0; text-align: center; }
.qz-buzzer { width: min(230px, 60vw); height: min(230px, 60vw); border-radius: 50%; min-width: 0; padding: 0; color: #fff; font: 900 30px "Arial Black", Arial, sans-serif; letter-spacing: 2px;
  background: radial-gradient(circle at 38% 32%, #ff8a7a, #d0140a 55%, #6a0500); border: 6px solid #8a8a8a;
  box-shadow: 0 10px 0 #4a0300, 0 14px 18px rgba(0,0,0,.45), inset 0 -6px 12px rgba(0,0,0,.35); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.qz-buzzer:active:not(:disabled) { transform: translateY(6px); box-shadow: 0 4px 0 #4a0300, inset 0 -6px 12px rgba(0,0,0,.35); }
.qz-buzzer.locked { background: radial-gradient(circle at 38% 32%, #ddd, #888 55%, #444); box-shadow: 0 4px 0 #333, inset 0 -6px 12px rgba(0,0,0,.35); color: #eee; cursor: default; font-size: 22px; }
.qz-said { background: var(--field); color: var(--field-text); padding: 8px 12px; font: 18px "Courier New", monospace; box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.qz-said small { font-family: var(--font); }
.qz-said .empty::after, .qz-ansbox.empty::after { content: '…'; opacity: .4; }
.qz-guess { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 0; text-align: center; }
.qz-guess .inp { display: flex; align-items: center; gap: 8px; font-size: 24px; }
.qz-guess input { font-size: 26px; width: min(320px, 70vw); padding: 6px 10px; }
.qz-wait { text-align: center; padding: 30px 10px; }
.qz-bigicon { font-size: 54px; }
.qz-line { padding: 8px 12px; }

.qz-side { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qz-head { font-weight: bold; padding: 2px 6px; background: linear-gradient(90deg, var(--title-from), var(--title-to)); color: #fff; font-size: 12px; }
.qz-score { background: var(--field); color: var(--field-text); box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi); padding: 4px; overflow: auto; }
.qz-p { display: flex; align-items: center; gap: 6px; padding: 4px; border-bottom: 1px dotted rgba(128,128,128,.5); }
.qz-p:last-child { border-bottom: 0; }
.qz-p.me { background: #ffffcc; color: #000; }
.qz-p.off { opacity: .55; }
.qz-rank { width: 18px; text-align: right; font-weight: bold; font-size: 12px; }
.qz-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qz-pts { width: 52px; text-align: right; }
.qz-d { font-size: 12px; font-weight: bold; width: 44px; text-align: right; }
.qz-d.plus { color: #138a13; } .qz-d.minus { color: #c0141a; } .qz-d.zero { color: #999; }
.qz-st { width: 16px; text-align: center; font-size: 12px; }
.qz-give { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; font-size: 12px; padding: 2px 0; }
button.mini { min-width: 0; padding: 1px 6px; font-size: 12px; }
button.mini.ok, button.ok { color: #0a6a0a; font-weight: bold; }
button.mini.no, button.no { color: var(--danger); font-weight: bold; }

.qz-gm { display: grid; grid-template-columns: 190px minmax(0, 1fr) 300px; gap: 6px; padding: 4px; height: 100%; min-height: 440px; }
.qz-gm > * { min-height: 0; }
.qz-gm-left { display: flex; flex-direction: column; gap: 4px; }
.qz-list { flex: 1; overflow: auto; background: var(--field); box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi); }
.qz-li { display: block; width: 100%; text-align: left; background: none; box-shadow: none; padding: 3px 6px; font-size: 12px; color: var(--field-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.qz-li.done { opacity: .55; }
.qz-li.cur { font-weight: bold; }
.qz-li.sel { background: var(--title-from); color: #fff; opacity: 1; }
.qz-listbtns { display: flex; gap: 2px; flex-wrap: wrap; }
.qz-gm-mid { overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.qz-edit { display: flex; flex-direction: column; gap: 4px; }
.qz-edit textarea { width: 100%; min-height: 0; font-size: 16px; font-weight: bold; resize: vertical; }
.qz-erow { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 2px 0; }
.qz-erow .lbl { width: 116px; flex: 0 0 auto; }
.qz-erow .spacer { flex: 1; }
.qz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.qz-opts small { grid-column: 1 / -1; }
.qz-ans { display: flex; gap: 4px; align-items: center; }
.qz-ans input[type=text] { flex: 1; min-width: 0; }
.qz-ans .letter { width: 24px; height: 24px; font-size: 13px; }
.qz-more summary { cursor: pointer; }
.qz-live { color: #c0141a; font-weight: bold; font-size: 11px; }
.qz-live-box { margin: 6px 0 0; }
.qz-live-box .actions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.qz-gp { display: flex; align-items: center; gap: 6px; padding: 3px; border-bottom: 1px dotted rgba(128,128,128,.5); }
.qz-gp.buzzed { background: #ffe0a0; color: #000; }
.qz-gp.tried { opacity: .6; }
.qz-gpn { width: 100px; flex: 0 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qz-n { width: 22px; }
.qz-ansbox { flex: 1; min-width: 0; font: 13px "Courier New", monospace; background: var(--field); color: var(--field-text); padding: 2px 4px; box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 20px; }
.qz-judge button { font-size: 16px; padding: 8px 18px; }
button.qz-go { font-weight: bold; font-size: 15px; padding: 6px 18px; }

.qz-lobby { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 10px; padding: 4px; }
.qz-invite { text-align: center; margin: 0; }
.qz-code { display: inline-block; font: bold 34px "Courier New", monospace; letter-spacing: 8px; background: #000; color: #ffd84a; padding: 2px 12px; margin: 6px 0 10px; text-shadow: 0 0 6px rgba(255,216,74,.6); }
.qz-code.small { font-size: 16px; letter-spacing: 3px; margin: 0; padding: 0 6px; }
.qz-qr { display: block; margin: 0 auto 10px; image-rendering: pixelated; }
.qz-link { width: 100%; text-align: center; }
.qz-invite .actions { justify-content: center; margin: 6px 0; }
.qz-invite label { text-align: left; }
.qz-lobby-right .groupbox { margin: 0 0 8px; }
.qz-lobby-right .qz-score { max-height: 220px; }
.qz-startrow { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }

.qz-podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; margin-top: 10px; }
.qz-podium .col { width: 160px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.qz-podium .crown { font-size: 28px; }
.qz-podium .blk { width: 100%; display: flex; justify-content: center; font: 900 42px "Arial Black", Arial, sans-serif; color: #fff; padding-top: 6px;
  box-shadow: inset -2px -2px var(--dark), inset 2px 2px var(--hi); }
.qz-endgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.qz-awards { line-height: 1.8; }
.qz-endgrid.one { grid-template-columns: minmax(0, 480px); justify-content: center; }
tr.me td { background: #ffffcc; color: #000; }

@media (max-width: 860px) {
  .qz-gm { grid-template-columns: 1fr; height: auto; }
  .qz-gm-left .qz-list { max-height: 160px; }
  .qz-lobby, .qz-endgrid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .qz-play { grid-template-columns: 1fr; min-height: 0; align-content: start; }
  .qz-mc { grid-template-columns: 1fr; }
  .qz-opt { min-height: 48px; font-size: 16px; }
  .qz-q .text { font-size: 18px; }
  .qz-podium .col { width: 30%; }
}
.qz-lib { max-height: 52vh; overflow: auto; margin: 0 0 6px; background: var(--field, #fff); }
.qz-lib table { width: 100%; }
.qz-libbtns { white-space: nowrap; text-align: right; }
.qz-libbtns button + button { margin-left: 3px; }
#qz-dlg:has(.qz-lib) { width: min(620px, calc(100vw - 20px)); }

/* DS-Spiele (views/ds.ejs, public/ds.js): beide Bildschirme übereinander, schwarz drumherum; Menü und Dialoge wie Minesweeper.
   Auf Touch-Geräten (.ds-touch) stehen unten die Tasten des DS. */
.ds { margin: -10px; height: 100vh; display: flex; flex-direction: column; position: relative; overflow: hidden; background: var(--win);
  user-select: none; -webkit-user-select: none; }
.ds-menu { position: relative; z-index: 5; }
.ds-mwrap { position: relative; }
.ds-dd { position: absolute; left: 0; top: 100%; }
.ds-dd[hidden] { display: none; }
.ds-stage { flex: 1; min-height: 0; position: relative; background: #000; margin: 0 2px;
  box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
#ds-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: 0; touch-action: none; image-rendering: pixelated; }
.ds-stage:fullscreen { margin: 0; box-shadow: none; }
.ds-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #000; }
.ds-load[hidden] { display: none; }
.ds-load-box { width: min(300px, calc(100% - 24px)); padding: 14px; text-align: center; color: var(--text); background: var(--win);
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px var(--win); }
.ds-load-icon { font-size: 40px; line-height: 1; }
.ds-load-title { font-weight: bold; margin: 6px 0 10px; }
#ds-load-text { margin-bottom: 8px; }
.ds-failed #ds-load-text { color: #a00; }
.ds-failed progress { display: none; }
.ds progress { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; border: 0; padding: 2px; background: var(--win);
  box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.ds progress::-webkit-progress-bar { background: var(--win); }
.ds progress::-webkit-progress-value { background: repeating-linear-gradient(90deg, var(--title-from) 0 8px, transparent 8px 10px); }
.ds progress::-moz-progress-bar { background: repeating-linear-gradient(90deg, var(--title-from) 0 8px, transparent 8px 10px); }
.ds-pausedmsg { display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 6px 14px; color: #fff;
  background: rgba(0,0,0,.65); font-weight: bold; pointer-events: none; }
.ds-paused .ds-pausedmsg { display: block; }
.ds-statusbar { flex: 0 0 auto; }
.ds-statusbar > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-keylist { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 14px; margin: 0 0 8px; }
.ds-keyrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ds-keyrow button { min-width: 120px; }
.ds-helptab td { padding: 1px 12px 1px 0; }
/* Touch-Tasten */
.ds-touchpad { display: none; flex: 0 0 auto; padding: 6px 10px 8px; background: var(--win); touch-action: none; }
.ds-touch .ds-touchpad { display: block; }
.ds-touchpad button { min-width: 0; padding: 0; font-weight: bold; touch-action: none; -webkit-tap-highlight-color: transparent; }
.ds-touchpad button.on { box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--hi), inset 2px 2px var(--lo); background: var(--lo); color: #fff; }
.ds-shoulders { display: flex; justify-content: space-between; margin-bottom: 6px; }
.ds-shoulders button { width: 30%; height: 30px; }
.ds-pads { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ds-dpad, .ds-abxy { position: relative; width: 132px; height: 132px; flex: 0 0 auto; }
.ds-dpad button, .ds-abxy button { position: absolute; width: 44px; height: 44px; }
.ds-dpad .up, .ds-abxy .x { left: 44px; top: 0; }
.ds-dpad .down, .ds-abxy .b { left: 44px; bottom: 0; }
.ds-dpad .left, .ds-abxy .y { left: 0; top: 44px; }
.ds-dpad .right, .ds-abxy .a { right: 0; top: 44px; }
.ds-abxy button { border-radius: 50%; }
.ds-mid { display: flex; flex-direction: column; gap: 10px; }
.ds-mid button { font-size: 10px; padding: 4px 6px; }
@media (max-width: 360px) { .ds-dpad, .ds-abxy { transform: scale(.85); margin: -10px; } }

/* Minesweeper: Spielfeld als Pixelgrafik (public/minesweeper.js), Menü und Dialoge wie bei Windows 98 */
.ms { margin: -10px; height: 100vh; display: flex; flex-direction: column; position: relative; overflow: hidden; background: #c0c0c0;
  user-select: none; -webkit-user-select: none; }
.ms-menu { display: flex; flex: 0 0 auto; padding: 1px 2px; background: var(--win); }
.ms-mtop { min-width: 0; padding: 1px 7px; background: none; box-shadow: none; color: var(--text); }
.ms-mtop:active { box-shadow: none; }
.ms-mtop.open, .ms-mtop:focus-visible { background: var(--title-from); color: #fff; outline: 0; }
.ms-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
#ms-canvas { display: block; image-rendering: pixelated; touch-action: none; }
.ms.mono #ms-canvas { filter: grayscale(1) contrast(1.3); }
.ms-dd { position: absolute; z-index: 20; background: var(--win); min-width: 190px; padding: 2px; display: flex; flex-direction: column;
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo), 2px 2px 0 rgba(0,0,0,.35); }
.ms-mi { display: flex; padding: 3px 16px 3px 22px; position: relative; white-space: nowrap; background: none; box-shadow: none; text-align: left; min-width: 0; color: var(--text); }
.ms-mi:active { box-shadow: none; }
.ms-mi span:last-child { margin-left: auto; padding-left: 24px; }
.ms-mi:hover, .ms-mi:focus-visible { background: var(--title-from); color: #fff; outline: 0; }
.ms-mi.chk::before { content: '✓'; position: absolute; left: 7px; }
.ms-dd hr { margin: 3px 1px; }
.ms-dlg { width: min(330px, calc(100vw - 20px)); padding: 3px; border: 0; color: var(--text); }
.ms-dlg.wide { width: min(420px, calc(100vw - 20px)); }
.ms-dlg::backdrop { background: transparent; }
.ms-dlg .titlebar .tb-btn { margin-left: auto; }
.ms-dlg .body { padding: 10px; }
.ms-dlg .actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.ms-dlg .actions button { min-width: 75px; }
.ms-dlg-body p { margin: 0 0 8px; }
.ms-dlg-body ul { padding-left: 18px; margin: 0 0 8px; }
.ms-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; }
.ms-field input { width: 70px; }
.ms-times td { padding: 1px 6px 1px 0; white-space: nowrap; }
.ms-times td.num, .ms-board .num { text-align: right; font-variant-numeric: tabular-nums; }
.ms-sum { margin: 6px 0 0 !important; font-size: 12px; }
.ms-tabs { display: flex; gap: 2px; margin-bottom: 4px; }
.ms-tabs button { min-width: 0; padding: 2px 8px; }
.ms-tabs button[aria-selected="true"] { box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--hi); font-weight: bold; }
.ms-board { margin: 0; padding-left: 26px; max-height: 210px; overflow: auto; background: var(--field); color: var(--field-text);
  box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); padding-top: 3px; padding-bottom: 3px; }
.ms-board[hidden] { display: none; }
.ms-board li { padding: 1px 4px 1px 0; }
.ms-board li.me { font-weight: bold; }
.ms-board li.empty { list-style: none; margin-left: -20px; opacity: .7; }
.ms-board .num { display: inline-block; min-width: 42px; }
.ms-board a { color: var(--field-link); }
.ms-about { display: flex; gap: 12px; align-items: flex-start; }
.ms-about-icon { font-size: 32px; line-height: 1; }

/* Kreuzworträtsel (Menüs und Dialoge wie bei Minesweeper) */
.cw { margin: -10px; height: 100vh; display: flex; flex-direction: column; position: relative; overflow: hidden; --cw-cell: 32px; }
.cw-head { display: flex; align-items: center; gap: 8px; padding: 4px 8px 2px; }
.cw-date { flex: 1; font-weight: bold; }
.cw-time { font-variant-numeric: tabular-nums; padding: 1px 6px; box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.cw-clue { margin: 2px 8px 6px; padding: 5px 8px; min-height: 2.2em; background: var(--title-from); color: #fff; }
.cw-clue small { opacity: .8; }
.cw-flash { font-weight: bold; }
.cw-main { flex: 1; min-height: 0; display: flex; gap: 8px; padding: 0 8px 8px; }
.cw-board { flex: 1 1 auto; min-width: 0; position: relative; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 6px; }
.cw-grid { display: grid; position: relative; user-select: none; -webkit-user-select: none; }
.cw-void { width: var(--cw-cell); height: var(--cw-cell); }
.cw-cell { width: var(--cw-cell); height: var(--cw-cell); position: relative; background: #fff; color: #000; cursor: pointer;
  outline: 1px solid #000; outline-offset: -.5px; display: flex; align-items: center; justify-content: center; }
.cw-cell .n { position: absolute; left: 2px; top: 0; font-size: max(8px, calc(var(--cw-cell) * .28)); line-height: 1.1; }
.cw-cell .l { font: bold calc(var(--cw-cell) * .58) / 1 var(--font); padding-top: calc(var(--cw-cell) * .1); }
.cw-cell.word { background: #cfe0ff; }
.cw-cell.cur { background: #ffe066; }
.cw-cell.wrong .l { color: #c00000; }
.cw-cell.wrong::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top right, transparent 47%, rgba(200,0,0,.55) 48% 52%, transparent 53%); }
.cw-cell.revealed .l { color: #0040c0; }
.cw-cell.revealed::before { content: ''; position: absolute; right: 0; top: 0; border: 4px solid; border-color: #0040c0 #0040c0 transparent transparent; }
.cw.done .cw-cell { cursor: default; }
.cw.done .cw-cell.word, .cw.done .cw-cell.cur { background: #fff; }
.cw-grid.solved .cw-cell, .cw.done .cw-grid.solved .cw-cell { background: #d7f5d0; }
.cw-input { position: absolute; opacity: 0; border: 0; padding: 0; margin: 0; font-size: 16px; caret-color: transparent; background: transparent; color: transparent; z-index: -1; }
.cw-lists { flex: 0 0 300px; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.cw-lists .groupbox { margin: 0; }
.cw-list { margin: 0; padding: 0; list-style: none; }
.cw-list li { padding: 2px 4px; cursor: pointer; border-left: 3px solid transparent; }
.cw-list li b { display: inline-block; min-width: 1.6em; }
.cw-list li:hover { background: var(--hover); }
.cw-list li.active { background: var(--title-from); color: #fff; }
.cw-list li.cross { border-left-color: var(--title-from); }
.cw-list li.done:not(.active) { opacity: .55; }
.cw-days { list-style: none; padding-left: 4px; }
.cw-days .num { min-width: 1.8em; }
.cw-days button { background: none; box-shadow: none; padding: 1px 0; min-width: 0; text-align: left; color: var(--field-link); text-decoration: underline; cursor: pointer; }
.cw.narrow { height: auto; min-height: 100vh; overflow: visible; }
.cw.narrow .cw-main { flex-direction: column; }
.cw.narrow .cw-clue { position: sticky; top: 0; z-index: 2; }
.cw.narrow .cw-lists { flex: none; overflow: visible; }
/* Sudoku (public/sudoku.js): Aufbau wie beim Kreuzworträtsel, Menüs und Dialoge von Minesweeper */
.sd { margin: -10px; height: 100vh; display: flex; flex-direction: column; position: relative; overflow: hidden; --sd-cell: 44px; }
.sd-head { display: flex; align-items: flex-end; gap: 8px; padding: 6px 8px 0; }
.sd-tabs { display: flex; gap: 2px; }
.sd-tabs button { min-width: 0; padding: 3px 10px; box-shadow: inset 1px 1px var(--hi), inset -1px 0 var(--lo); border-bottom: 0; }
.sd-tabs button.on { font-weight: bold; position: relative; top: 1px; padding-bottom: 5px; background: var(--win); }
.sd-date { flex: 1; text-align: right; font-weight: bold; padding-bottom: 3px; }
.sd-time { font-variant-numeric: tabular-nums; padding: 1px 6px; margin-bottom: 2px; box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.sd-status { margin: 0 8px 6px; padding: 5px 8px; min-height: 2.2em; background: var(--title-from); color: #fff; }
.sd-flash { font-weight: bold; }
.sd-main { flex: 1; min-height: 0; display: flex; gap: 10px; padding: 0 8px 8px; }
.sd-board { flex: 1 1 auto; min-width: 0; overflow: auto; display: flex; align-items: center; justify-content: center; padding: 6px; }
.sd-grid { display: grid; grid-template-columns: repeat(9, var(--sd-cell)); border: 3px solid #000; user-select: none; -webkit-user-select: none; }
.sd-cell { width: var(--sd-cell); height: var(--sd-cell); position: relative; background: #fff; color: #0040c0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  border-right: 1px solid #9a9a9a; border-bottom: 1px solid #9a9a9a; }
.sd-cell:nth-child(9n) { border-right: 0; }
.sd-cell:nth-child(n+73) { border-bottom: 0; }
.sd-cell.br { border-right: 3px solid #000; }
.sd-cell.bb { border-bottom: 3px solid #000; }
.sd-cell .v { font: calc(var(--sd-cell) * .6) / 1 var(--font); }
.sd-cell.given { color: #000; }
.sd-cell.given .v { font-weight: bold; }
.sd-cell .nt { position: absolute; inset: 1px; display: grid; grid-template-columns: repeat(3, 1fr); color: #555; font-size: max(8px, calc(var(--sd-cell) * .26)); line-height: 1; }
.sd-cell .nt[hidden] { display: none; }
.sd-cell .nt i { font-style: normal; display: flex; align-items: center; justify-content: center; visibility: hidden; }
.sd-cell .nt i.on { visibility: visible; }
.sd-cell.house { background: #e4ecff; }
.sd-cell.same { background: #b9cdf5; }
.sd-cell.cur { background: #ffe066; }
.sd-cell.clash .v { color: #d00000; }
.sd-cell.clash.given .v { text-decoration: underline wavy #d00000; }
.sd-cell.wrong::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top right, transparent 46%, rgba(200,0,0,.6) 47% 53%, transparent 54%); }
.sd-cell.revealed { color: #007a1e; }
.sd-cell.revealed::before { content: ''; position: absolute; right: 0; top: 0; border: 4px solid; border-color: #007a1e #007a1e transparent transparent; }
.sd.done .sd-cell { cursor: default; }
.sd.done .sd-cell.house, .sd.done .sd-cell.same, .sd.done .sd-cell.cur { background: #fff; }
.sd-grid.solved .sd-cell, .sd.done .sd-grid.solved .sd-cell { background: #d7f5d0; }
.sd-side { flex: 0 0 180px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.sd-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.sd-pad button { min-width: 0; height: 52px; padding: 0; position: relative; font-size: 22px; }
.sd-pad button small { position: absolute; right: 4px; bottom: 2px; font-size: 10px; opacity: .7; }
.sd-pad button.used { opacity: .45; }
.sd-tools { display: flex; flex-direction: column; gap: 4px; }
.sd-tools button { min-width: 0; text-align: left; }
.sd-tools button.on { box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); font-weight: bold; }
.sd-days { border-collapse: collapse; }
.sd-days th { font-weight: normal; padding: 0 6px; }
.sd-days td.num { text-align: center; }
.sd-days tr.me td { font-weight: bold; }
.sd-days button { background: none; box-shadow: none; padding: 1px 0; min-width: 0; text-align: left; color: var(--field-link); text-decoration: underline; cursor: pointer; }
.sd.narrow { height: auto; min-height: 100vh; overflow: visible; }
.sd.narrow .sd-head { flex-wrap: wrap; }
.sd.narrow .sd-date { order: -1; flex-basis: 100%; text-align: left; }
.sd.narrow .sd-main { flex-direction: column; }
.sd.narrow .sd-board { flex: none; }
.sd.narrow .sd-side { flex: none; }
.sd.narrow .sd-pad { grid-template-columns: repeat(9, 1fr); }
.sd.narrow .sd-pad button { height: 46px; font-size: 20px; }
.sd.narrow .sd-tools { flex-direction: row; }
.sd.narrow .sd-tools button { flex: 1; text-align: center; padding-left: 2px; padding-right: 2px; }

/* Kartenspiele (views/kartenspiele.ejs, public/kartenspiele.js): Spieltische als Karten, Kasse, Shop und am Tisch der Rahmen
   um das Spiel: Werkzeugleiste, Seitenfach, Platz-Plaketten, Leiste für die Züge. Bedienelemente sehen aus wie im Rest des
   Desktops; bunt ist nur die Spielfläche mit Holz, Filz und Karten. Filz, Kartenrücken und Holz wählt der Gastgeber; die
   Klassen hängen am Spiel und setzen nur Farben (--felt-*, --rim-*, --back, --wood-*, --inlay). */
.bj[hidden] { display: none; }
.bj button.def { box-shadow: 0 0 0 1px var(--dark), inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px rgba(255,255,255,.5); }
.bj button.def:active { box-shadow: 0 0 0 1px var(--dark), inset 1px 1px var(--dark), inset -1px -1px var(--hi), inset 2px 2px var(--lo); }
.ks-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.ks-games button { padding: 10px 6px; font-size: 14px; }
.ks-preview { display: flex; gap: 10px; align-items: center; margin: 4px 0 8px; }
.ks-preview .bj-felt { flex: none; width: 150px; min-height: 0; height: 70px; display: flex; align-items: center; justify-content: center; border-radius: 35px; --c: 30px; }
.ks-preview .bj-card { margin: 0 2px; animation: none; }
.ks-preview.ks-tisch .bj-felt { --rim: 8px; --ks-r: 32px; border-radius: 0; width: 170px; height: 80px; }
.ks-preview.ks-floorview .bj-felt { width: 210px; height: 100px; --ks-r: 36px;
  background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(0,0,0,.55)), var(--floor, radial-gradient(ellipse at 50% 40%, #3a2c22, #1a120c 85%)); }
.ks-felt-blau { --felt-hi: #2058a8; --felt-lo: #0c2b62; }
.ks-felt-rot { --felt-hi: #a8242e; --felt-lo: #5e0c14; }
.ks-felt-lila { --felt-hi: #6e2c92; --felt-lo: #3a1052; }
.ks-felt-schwarz { --felt-hi: #3c3c3c; --felt-lo: #121212; --rim-hi: #2a2a2a; --rim-lo: #050505; --rim-bg: #000; }
.ks-felt-petrol { --felt-hi: #1d8080; --felt-lo: #0b4646; --rim-hi: #8a8a8a; --rim-lo: #4a4a4a; --rim-bg: #2a2a2a; }
.ks-felt-bordeaux { --felt-hi: #8e1d3e; --felt-lo: #3c0616; }
.ks-felt-sternfilz { --felt-hi: #1d2b5e; --felt-lo: #060a1e;
  --felt-pat: radial-gradient(circle, rgba(255,255,255,.85) 0 1px, transparent 1.6px) 0 0 / 23px 19px, radial-gradient(circle, rgba(255,236,170,.7) 0 1px, transparent 1.6px) 11px 9px / 31px 27px; }
.ks-back-streifen { --back: repeating-linear-gradient(45deg, #a00000 0 4px, #e03030 4px 8px); }
.ks-back-blaustreifen { --back: repeating-linear-gradient(45deg, #002a66 0 4px, #3366cc 4px 8px); }
.ks-back-gruenstreifen { --back: repeating-linear-gradient(-45deg, #05502a 0 4px, #2a9a5a 4px 8px); }
.ks-back-gold { --back: radial-gradient(circle, #ffd700 0 22%, transparent 24%) 50% 50% / 100% 100% no-repeat, repeating-linear-gradient(45deg, #151515 0 5px, #3a2a00 5px 10px); }
.ks-back-karo { --back: conic-gradient(#c00000 25%, #fff 0 50%, #c00000 0 75%, #fff 0) 0 0 / 8px 8px; }
.ks-back-retro { --back: radial-gradient(circle, #fff 0 18%, transparent 20%) 0 0 / 7px 7px, #00007f; }
.ks-back-sterne { --back: radial-gradient(circle, #fff 0 1px, transparent 1.6px) 0 0 / 7px 7px, radial-gradient(circle, #ffd700 0 1px, transparent 1.6px) 3px 4px / 9px 9px, #0a1240; }
.ks-back-regenbogen { --back: linear-gradient(135deg, #e53935, #fb8c00 20%, #fdd835 40%, #43a047 60%, #1e88e5 80%, #8e24aa); }
/* Der Tisch am Spieltisch (.ks-tisch): schmaler Holzrand mit Einlage als ::before, Filz als ::after; die Maße (--rim, --ks-r)
   setzt public/kartenspiele.js. Verzierungen, Getränke und Glücksbringer liegen in .ks-layer. */
.ks-wood-eiche { --wood-hi: #b98250; --wood-lo: #6b4321; --inlay: #e2c06a; }
.ks-wood-walnuss { --wood-hi: #7a5638; --wood-lo: #3a2616; --inlay: #d4d4d4; }
.ks-wood-mahagoni { --wood-hi: #8a3a22; --wood-lo: #4a1a0c; --inlay: #d9b25a; }
.ks-wood-ebenholz { --wood-hi: #3a2e28; --wood-lo: #120c09; --inlay: #f0c840; }
.ks-tisch .bj-felt { isolation: isolate; box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi);
  background: radial-gradient(ellipse at 50% 40%, #3a2c22, #1a120c 85%); }
.ks-tisch .bj-felt::before, .ks-tisch .bj-felt::after { content: ''; position: absolute; z-index: -1; pointer-events: none; }
.ks-tisch .bj-felt::before { inset: 4% 2.5%; border-radius: var(--ks-r, 120px);
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.10) 0 2px, transparent 2px 7px, rgba(255,255,255,.05) 7px 8px, transparent 8px 13px),
    repeating-radial-gradient(ellipse 70% 30% at 30% 50%, rgba(0,0,0,.12) 0 3px, transparent 3px 11px),
    linear-gradient(180deg, var(--wood-hi, #b98250), var(--wood-lo, #6b4321));
  box-shadow: 0 10px 24px rgba(0,0,0,.6), inset 0 2px 1px rgba(255,255,255,.3), inset 0 -3px 2px rgba(0,0,0,.5); }
.ks-tisch .bj-felt::after { inset: calc(4% + var(--rim, 16px)) calc(2.5% + var(--rim, 16px)); border-radius: calc(var(--ks-r, 120px) - var(--rim, 16px));
  background: radial-gradient(ellipse 55% 42% at 50% 34%, rgba(255,255,255,.09), transparent 72%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px), repeating-linear-gradient(-45deg, rgba(0,0,0,.045) 0 1px, transparent 1px 3px),
    var(--felt-pat, none), radial-gradient(ellipse at 50% 35%, var(--felt-hi, #1f7a3a), var(--felt-lo, #0d4d22) 80%);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.35), inset 0 8px 28px rgba(0,0,0,.6), inset 0 -2px 10px rgba(0,0,0,.35);
  outline: 2px solid var(--inlay, #e2c06a); outline-offset: calc(var(--rim, 16px) / 2 - 1px); }
.ks-layer { position: absolute; inset: 0; pointer-events: none; }
.ks-orn { position: absolute; width: calc(var(--rim, 16px) * 3.2); height: calc(var(--rim, 16px) * 1.3); }
.ks-orn svg { display: block; width: 100%; height: 100%; }
.ks-orn path, .ks-orn circle { fill: none; stroke: var(--inlay, #e2c06a); stroke-width: 1.8; stroke-linecap: round; }
.ks-orn .dot { fill: var(--inlay, #e2c06a); stroke: none; }
.ks-ava { display: inline-flex; align-items: center; justify-content: center; width: var(--ava, 28px); height: var(--ava, 28px); border-radius: 50%; object-fit: cover; flex: none;
  box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0,0,0,.6); background: #445; color: #fff; font-weight: bold; }

/* Fenster am Tisch: oben eine Werkzeugleiste statt Menüleiste, darunter Spielfläche und Seitenfach, unten die Statusleiste */
.ks-body { position: relative; flex: 1; min-height: 0; display: flex; }
.ks-body > .bj-main { flex: 1; min-width: 0; }
.ks-room { gap: 0; }
.ks-room.ks-am-tisch > .bj-nav { display: none; }
.ks-room:not(.ks-am-tisch) > .ks-tbar, .ks-room:not(.ks-am-tisch) .ks-pane, .ks-room:not(.ks-am-tisch) .ks-fx { display: none; }
.ks-room > .statusbar { margin-top: 2px; }
.ks-room .ks-last { cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ks-tbar { display: flex; align-items: center; gap: 2px; min-height: 32px; padding: 2px 4px; margin-bottom: 3px; overflow: hidden; border-bottom: 1px solid var(--lo); box-shadow: 0 1px var(--hi); }
.ks-tbar::before { content: ''; flex: 0 0 3px; height: 22px; margin: 0 4px 0 1px; box-shadow: inset 1px 1px var(--hi), inset -1px -1px var(--lo); }
.ks-tb { flex: none; display: inline-flex; align-items: center; gap: 4px; min-width: 0; padding: 3px 7px; white-space: nowrap; background: none; box-shadow: none; color: var(--text); }
.ks-tb:hover { box-shadow: inset 1px 1px var(--hi), inset -1px -1px var(--lo); }
.ks-tb:active, .ks-tb.on { box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.ks-tb.on { background: repeating-conic-gradient(var(--win) 0 25%, var(--field) 0 50%) 0 0 / 2px 2px; }
.ks-tsep { flex: 0 0 2px; align-self: stretch; margin: 3px 4px; border-left: 1px solid var(--lo); border-right: 1px solid var(--hi); }
.ks-tname { flex: 0 1 auto; min-width: 40px; max-width: 220px; padding: 0 6px 0 2px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-tbar select { flex: none; max-width: 170px; }
.ks-gname { flex: none; white-space: nowrap; padding: 0 4px; }
.ks-info { flex: 0 1 auto; min-width: 0; padding-left: 6px; font-size: 12px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-info .tag, .ks-taglist .tag { display: inline; border: 0; background: none; color: inherit; padding: 0; margin: 0; font-size: inherit; }
.ks-info .tag + .tag::before, .ks-taglist .tag + .tag::before { content: ' · '; }
.ks-faces { flex: none; display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; }
.ks-mface { display: inline-flex; width: 24px; height: 24px; min-width: 0; padding: 2px; overflow: hidden; background: none; box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.ks-mface .ks-ava { width: 100%; height: 100%; border-radius: 0; box-shadow: none; font-size: 11px; }
.ks-watchers { margin-left: 4px; font-size: 12px; white-space: nowrap; }
.ks-tbar .spacer { flex: 1; }

/* Die Spielfläche: dunkler Raum mit dem Tisch, darunter die Leiste für die Züge */
.ks-room .bj-table { height: 100%; min-height: 0; }
.ks-room .pk-col { gap: 0; background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(0,0,0,.55)), var(--floor, radial-gradient(ellipse at 50% 40%, #3a2c22, #1a120c 85%));
  box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi); }
/* Hintergrund um den Tisch: wählt jeder für sich (🖼️ Ansicht, public/kartenspiele.js), Liste in src/usersettings.js */
.ks-floor-parkett { --floor: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 9px),
  repeating-linear-gradient(0deg, #6e4a2c 0 25px, rgba(0,0,0,.5) 25px 26px, #7b5433 26px 51px, rgba(0,0,0,.5) 51px 52px, #66432a 52px 77px, rgba(0,0,0,.5) 77px 78px); }
.ks-floor-teppich { --floor: radial-gradient(circle, #e0b040 0 2px, transparent 2.6px) 0 0 / 28px 28px,
  radial-gradient(circle, transparent 0 6px, rgba(24,44,120,.8) 6.5px 8.5px, transparent 9px) 14px 14px / 28px 28px, linear-gradient(#7a1020, #4e0812); }
.ks-floor-fliesen { --floor: linear-gradient(90deg, rgba(0,0,0,.45) 0 1px, transparent 1px) 0 0 / 46px 46px, linear-gradient(rgba(0,0,0,.45) 0 1px, transparent 1px) 0 0 / 46px 46px,
  conic-gradient(#33343b 25%, #45464f 0 50%, #33343b 0 75%, #45464f 0) 0 0 / 92px 92px; }
.ks-floor-nacht { --floor: radial-gradient(circle, rgba(255,255,255,.85) 0 1px, transparent 1.6px) 0 0 / 37px 31px,
  radial-gradient(circle, rgba(255,230,170,.65) 0 1px, transparent 1.6px) 17px 11px / 53px 47px, linear-gradient(180deg, #0a0f2c, #1d1342); }
.ks-floor-desktop { --floor: var(--desktop); }
.ks-room.ks-tisch .bj-felt { background: none; box-shadow: none; }
/* Am Spieltisch bewegt public/kartenspiele.js die Karten (Kartenfluss); das alte Einblenden bei jedem Neuzeichnen fällt weg */
.ks-room .bj-card { animation: none; }
.ks-dock { flex: none; align-self: center; display: flex; align-items: center; gap: 4px; max-width: calc(100% - 16px); margin: 0 8px 8px; padding: 4px 6px; background: var(--win); color: var(--text);
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px rgba(255,255,255,.5), 3px 3px 0 rgba(0,0,0,.45); }
.ks-dock .pk-bar { flex: 1; min-width: 0; min-height: 0; padding: 0; background: none; box-shadow: none; }
.ks-dock .bj-row { align-items: center; }
.ks-dock .ks-picks { flex-wrap: wrap; justify-content: center; gap: 4px; }
.ks-dock .ks-picks button { padding: 4px 8px; }
.ks-dock button { min-width: 0; padding: 4px 12px; }
.ks-dock small, .ks-dock .bj-controls small { text-shadow: none; }
/* Startet der Gastgeber die nächste Runde: sein Knopf, für alle anderen ein Hinweis */
.ks-dock .ks-go { font-weight: bold; }
.ks-wait { font-style: italic; opacity: .85; white-space: nowrap; }
.ks-next { margin-top: 2px; }
.ks-dock-x { flex: none; display: flex; align-items: center; align-self: stretch; }
.ks-dock-x .ks-tsep { margin: 2px 4px 2px 0; }
.ks-dock-x button { padding: 4px 8px; white-space: nowrap; }

/* Platz-Plakette: rundes Bild mit hellem Ring und Abzeichen, darunter ein Namensschild aus dunklem Glas. Wer dran ist,
   hat ein leuchtendes Schild in der Farbe der Titelleiste und darunter die Bedenkzeit als schmalen Balken; wer nicht
   mitspielt, ist blass. */
.ks-room .pk-seat { width: auto; min-width: 0; padding: 0; gap: 4px; background: none; border-radius: 0; z-index: 2; }
/* Oben am Tisch hängt die Plakette am Platz und die Karten darunter, sonst ragt das Bild über den Rand */
.ks-room .pk-seat.up { flex-direction: column-reverse; transform: translate(-50%, -46px); }
.ks-room .pk-seat.turn { outline: 0; }
.ks-room .pk-seat.won, .ks-room .dk-seat.lost { box-shadow: none; }
.ks-room .bj-seat { width: auto; min-width: 0; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.ks-room .pk-best { margin-top: 3px; }
.ks-plaque { position: relative; display: flex; flex-direction: column; align-items: center; --face: clamp(30px, calc(var(--c, 40px) * .82), 50px); }
.ks-face { position: relative; display: inline-flex; flex: none; width: var(--face, 40px); height: var(--face, 40px); border-radius: 30%; background: #2b2f3a;
  box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 0 0 3px rgba(0,0,0,.35), 0 6px 14px rgba(0,0,0,.45); margin: 4px; }
.ks-face .ks-ava { width: 100%; height: 100%; border-radius: inherit; box-shadow: none; font-size: calc(var(--face, 40px) * .5); }
.ks-crown { position: absolute; left: -.75em; top: -.95em; font-size: calc(var(--face, 40px) * .38); font-style: normal; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.ks-tags { position: absolute; right: -12px; bottom: -7px; display: flex; gap: 2px; }
.ks-tag { padding: 2px 5px; font: 700 10px/1 system-ui, -apple-system, "Segoe UI", sans-serif; font-style: normal; white-space: nowrap; background: #fff; color: #1a1a1a;
  border-radius: 999px; text-shadow: none; box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.ks-plate, .pk-seat .ks-plate, .bj-seat .ks-plate { display: block; min-width: 76px; max-width: 150px; margin-top: 5px; padding: 3px 10px 4px; line-height: 1.2; text-align: center;
  font-weight: normal; text-shadow: none; text-decoration: none; border: 0; border-radius: 10px; background: rgba(14,17,24,.72); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 4px 12px rgba(0,0,0,.4); }
.ks-plate b { display: block; font: 600 12px/1.25 system-ui, -apple-system, "Segoe UI", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks-plate small { display: block; font: 11px/1.25 system-ui, -apple-system, "Segoe UI", sans-serif; white-space: nowrap; opacity: .8; }
button.ks-plate:hover, .pk-seat .ks-plate:hover, .bj-seat .ks-plate:hover { background: rgba(30,35,48,.82); }
button.ks-plate:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pk-seat.turn .ks-plate, .bj-seat.turn .ks-plate { background: linear-gradient(135deg, var(--title-from), var(--title-to)); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 0 0 2px rgba(255,255,255,.18), 0 0 18px 2px var(--title-to); }
.pk-seat.turn .ks-plate small, .bj-seat.turn .ks-plate small { opacity: 1; }
.ks-room .pk-seat.mine .bj-name, .ks-room .bj-seat.mine .bj-name { text-decoration: none; }
/* Der Dealer sitzt am Kopf des Tisches auf dem Filz, nicht auf dem Holz */
.ks-room .bj-dealer { top: calc(4% + var(--rim, 16px) + 8px); }
.ks-room .bj-motto { top: calc(4% + var(--rim, 16px) + 44px + var(--c) * 1.65); }
.ks-room .bj-hand.active { outline: 0; border-radius: 12px; background: rgba(255,255,255,.07); box-shadow: 0 0 0 2px rgba(255,224,102,.85), 0 0 20px rgba(255,224,102,.3); }
.pk-seat.folded .ks-ava, .pk-seat.out .ks-ava, .bj-seat.out .ks-ava { filter: grayscale(1) brightness(.75); }
.pk-seat.folded .ks-plate, .pk-seat.out .ks-plate, .bj-seat.out .ks-plate { color: rgba(255,255,255,.5); background: rgba(14,17,24,.45); }
.pk-seat.won .ks-face { box-shadow: 0 0 0 2px #ffe066, 0 0 0 3px rgba(0,0,0,.35), 0 0 18px 5px #ffd700; }
.dk-seat.lost .ks-face { box-shadow: 0 0 0 2px #ff6b5e, 0 0 0 3px rgba(0,0,0,.35), 0 0 18px 5px #ff5050; }
.ks-prog { display: block; width: 72px; height: 5px; margin-top: 5px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.2); box-shadow: 0 1px 3px rgba(0,0,0,.45); }
.ks-prog i { display: block; height: 100%; width: var(--p, 100%); border-radius: inherit; background: #5ad17a; animation: ks-drain linear forwards; }
@keyframes ks-drain { from { width: var(--p, 100%); } 70% { background: #f2c94c; } to { width: 0; background: #eb5757; } }
.ks-note { margin-top: 2px; font-size: .85em; white-space: nowrap; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.ks-free { display: inline-flex; flex-direction: column; align-items: center; min-width: 0; padding: 4px 12px 5px; font-size: 12px; line-height: 1.25; }
.ks-free > span { font-size: 20px; }
button.ks-free { border: 1px dashed rgba(255,255,255,.55); border-radius: 12px; background: rgba(14,17,24,.35); color: #fff; box-shadow: none; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
button.ks-free:hover { background: rgba(14,17,24,.55); border-color: #fff; }
button.ks-free:active { box-shadow: none; }
span.ks-free { color: rgba(255,255,255,.55); border: 1px dashed rgba(255,255,255,.3); border-radius: 999px; padding: 6px 12px; font-style: italic; white-space: nowrap; }

/* Dinge auf dem Holz: rechts das Getränk auf dem Untersetzer, links der Glücksbringer oder das Tier auf seinem Platz */
.ks-at { position: absolute; transform: translate(-50%, -50%); }
.ks-drink { position: relative; display: inline-flex; align-items: center; justify-content: center; width: calc(var(--rim, 16px) * 2.2); height: calc(var(--rim, 16px) * 2.2);
  font-size: calc(var(--rim, 16px) * 1.45); line-height: 1; pointer-events: auto; }
.ks-drink::before { content: ''; position: absolute; left: 50%; top: 66%; width: 80%; height: 30%; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(0,0,0,.35); }
.ks-drink > span { position: relative; filter: drop-shadow(0 3px 2px rgba(0,0,0,.55)); }
.ks-drink.mine { cursor: pointer; }
.ks-coaster { position: absolute; left: 50%; top: 68%; width: 112%; height: 46%; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 2px 2px rgba(0,0,0,.5); }
.ks-co-bierdeckel { background: radial-gradient(ellipse, #fff 0 42%, #c62828 44% 56%, #fff 58%); }
.ks-co-kork { background: radial-gradient(circle, rgba(70,40,10,.45) 0 1px, transparent 1.5px) 0 0 / 4px 3px, radial-gradient(ellipse at 40% 35%, #d6a468, #8a5a2a); }
.ks-co-marmor { background: linear-gradient(125deg, #fafafa, #d2d2d2 35%, #f6f6f6 50%, #c4c4c4 70%, #f0f0f0); }
.ks-co-goldrand { background: radial-gradient(ellipse, #262626 0 56%, #ffe27a 58%, #c9971c 70%, #8a6410 74%); }
.ks-charm { display: inline-block; font-size: calc(var(--rim, 16px) * 1.55); line-height: 1; pointer-events: auto; filter: drop-shadow(0 3px 2px rgba(0,0,0,.6)); }
.ks-pet { position: relative; display: inline-block; width: calc(var(--rim, 16px) * 3.3); height: calc(var(--rim, 16px) * 3.3); pointer-events: auto; cursor: pointer; }
.ks-pet .pet-svg { position: absolute; left: 0; bottom: 16%; width: 100%; height: auto; filter: drop-shadow(1px 2px 1px rgba(0,0,0,.5)); }
.ks-base { position: absolute; left: 4%; right: 4%; bottom: 2%; height: 36%; border-radius: 50%; }
.ks-base-kissen .ks-base { background: radial-gradient(ellipse at 50% 35%, #e46a88, #8a1f3c 78%); box-shadow: 0 3px 3px rgba(0,0,0,.5); }
.ks-base-korb .ks-base { z-index: 1; height: 42%; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: repeating-linear-gradient(90deg, #9a6228 0 3px, #c48c4a 3px 6px);
  box-shadow: inset 0 3px 0 #6b4321, 0 3px 3px rgba(0,0,0,.5); }
.ks-base-thron .ks-base { background: radial-gradient(ellipse at 50% 35%, #c8243e, #5a0a18 78%); box-shadow: 0 0 0 2px #e2c06a, 0 3px 4px rgba(0,0,0,.6); }
.ks-base-thron::before { content: ''; position: absolute; left: 14%; right: 14%; top: 0; bottom: 30%; border-radius: 40% 40% 0 0; background: linear-gradient(180deg, #e2c06a, #8a6410); box-shadow: inset 0 0 0 3px #5a0a18; }
.ks-idle .ks-pet::after { content: '💤'; position: absolute; right: -6px; top: -4px; font-size: calc(var(--rim, 16px) * .9); animation: ks-zz 2.4s ease-in-out infinite; }
@keyframes ks-zz { 50% { transform: translate(3px, -4px); opacity: .6; } }
@keyframes ks-wig { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.ks-wiggle { animation: ks-wig .3s ease-in-out 3; }
.ks-clink { animation: ks-wig .2s ease-in-out 2; }

/* Leben am Tisch: Reaktionen steigen über dem Platz auf, „Prost!“ ist eine gelbe Sprechblase wie ein Windows-Hinweis */
.ks-fx { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.ks-float, .ks-heart { position: absolute; transform: translate(-50%, -100%); font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); animation: ks-up 2.6s ease-out forwards; }
.ks-heart { font-size: 18px; animation-duration: 1.6s; }
@keyframes ks-up { 0% { opacity: 0; transform: translate(-50%, -60%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -110%) scale(1.1); }
  75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -280%); } }
.ks-balloon { position: absolute; transform: translate(-50%, calc(-100% - 10px)); padding: 3px 9px; white-space: nowrap; font-size: 12px; font-weight: bold;
  background: #ffffe1; color: #000; border: 1px solid #000; border-radius: 6px; box-shadow: 2px 2px 0 rgba(0,0,0,.3); animation: ks-fade 3.4s forwards; }
.ks-balloon::before, .ks-balloon::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); border: 7px solid transparent; border-bottom: 0; }
.ks-balloon::before { bottom: -8px; border-top-color: #000; }
.ks-balloon::after { bottom: -6px; border-top-color: #ffffe1; }
@keyframes ks-fade { 0% { opacity: 0; } 8%, 85% { opacity: 1; } 100% { opacity: 0; } }
.ks-emopop { position: absolute; z-index: 8; display: flex; gap: 1px; padding: 3px; background: var(--win);
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo), 2px 2px 0 rgba(0,0,0,.45); }
.ks-emopop button { width: 32px; height: 30px; min-width: 0; padding: 0; font-size: 19px; background: none; box-shadow: none; }
.ks-emopop button:hover, .ks-emopop button:focus-visible { box-shadow: inset 1px 1px var(--hi), inset -1px -1px var(--lo); outline: 0; }
@media (prefers-reduced-motion: reduce) {
  .ks-float, .ks-heart, .ks-balloon, .ks-prog i, .ks-wiggle, .ks-clink, .ks-idle .ks-pet::after { animation: none; }
  .ks-float, .ks-heart { transform: translate(-50%, -140%); }
}

/* Seitenfach rechts: Reiter wie in der Seitenverwaltung, unten die Knöpfe */
.ks-pane { position: relative; flex: 0 0 340px; display: flex; flex-direction: column; min-height: 0; padding: 4px 2px 0 11px; }
.ks-pane.shop { flex-basis: 440px; }
.ks-pane[hidden] { display: none; }
.ks-pane::before { content: ''; position: absolute; left: 2px; top: 0; bottom: 0; width: 5px; box-shadow: inset 1px 0 var(--hi), inset -1px 0 var(--lo); }
.ks-pane-x { position: absolute; right: 4px; top: 7px; z-index: 2; width: 18px; height: 16px; min-width: 0; padding: 0; font: bold 12px/14px var(--font); }
.ks-pane-in { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ks-pane-in > .tabs { padding-right: 24px; }
.ks-pane-in > .tabs button { padding: 3px 7px; font-size: 12px; white-space: nowrap; }
.ks-pane .tab-page { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.ks-pane .groupbox { margin: 2px 0 0; padding: 6px 8px 8px; }
.ks-pane .bj-log { flex: 1; min-height: 140px; }
.ks-pane .bj-link { color: var(--link); }
.ks-pane .actions { margin-top: 0; gap: 4px; }
.ks-pane-foot { flex: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 6px 0 4px; }
.ks-pane-foot button { min-width: 0; padding: 4px 9px; }
table.ks-people { width: 100%; border-collapse: collapse; }
.ks-people td { vertical-align: middle; }
.ks-people .ks-pname { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.ks-pane .ks-people .bj-link { color: inherit; }
.ks-people .ks-ava { width: 22px; height: 22px; border-radius: 0; box-shadow: 0 0 0 1px var(--lo); font-size: 11px; }
.ks-people td small { display: block; padding-left: 28px; font-size: 11px; opacity: .8; }
.ks-people tr.sel td { background: var(--title-from); color: #fff; }
.ks-people tr.sel .pos, .ks-people tr.sel .neg { color: #fff; }

/* Tischliste: „Schnell spielen“ und jeder Tisch als Karte mit einem kleinen Tisch in Holz und Filz */
.ks-list { display: flex; flex-direction: column; gap: 8px; }
.ks-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 0; }
.ks-quick > span:first-of-type { flex: 1 1 200px; }
.ks-quick-go { display: flex; flex-wrap: wrap; gap: 4px; }
.ks-quick-go button { min-width: 0; padding: 4px 10px; }
.ks-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ks-card { display: flex; flex-direction: column; padding: 5px; text-align: left; background: var(--win); color: var(--text);
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px rgba(255,255,255,.5); }
.ks-card-bd { flex: 1; display: flex; flex-direction: column; gap: 1px; padding: 6px 3px 1px; }
.ks-card-bd > b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ks-card-bd small { font-size: 12px; opacity: .85; }
.ks-card-act { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }
.ks-card-act button { flex: 1; min-width: 0; }
button.ks-new { align-items: center; justify-content: center; gap: 4px; min-height: 200px; padding: 14px; text-align: center; }
.ks-plus { font-size: 40px; line-height: 1; }
.ks-friendline { margin: 0; }
.ks-pv { position: relative; height: 124px; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #3d2e23, #150e09 85%);
  box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi); }
.ks-pv-rim { position: absolute; inset: 18px 26px; border-radius: 50px; background: linear-gradient(180deg, var(--wood-hi, #b98250), var(--wood-lo, #6b4321)); box-shadow: 0 6px 12px rgba(0,0,0,.5); }
.ks-pv-felt { position: absolute; inset: 26px 34px; border-radius: 42px; background: var(--felt-pat, none), radial-gradient(ellipse at 50% 38%, var(--felt-hi, #1f7a3a), var(--felt-lo, #0d4d22) 82%);
  outline: 1px solid var(--inlay, #e2c06a); outline-offset: 3px; }
.ks-pv-game { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 30px; line-height: 1; }
.ks-pv-seat { position: absolute; display: flex; width: 24px; height: 24px; transform: translate(-50%, -50%); background: #445; box-shadow: 0 0 0 1px #000, 0 0 0 2px var(--win); }
.ks-pv-seat .ks-ava { width: 100%; height: 100%; border-radius: 0; box-shadow: none; font-size: 12px; }
.ks-pv-seat.free { background: transparent; box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.ks-pv-live { position: absolute; left: 6px; top: 6px; padding: 0 5px; font-size: 11px; font-weight: bold; background: #fff; color: #c00; border: 1px solid #000; }
.ks-pv-lock { position: absolute; right: 7px; top: 5px; }

/* Shop: Vorschau zum Anprobieren und große Symbole wie im Explorer */
.ks-shopwin { max-width: 780px; }
.ks-shopwin .tab-page { min-height: 0; }
.ks-shoppage { display: flex; flex-direction: column; gap: 8px; }
.ks-shoppage h4 { margin: 2px 0 -4px; font-size: 12px; font-weight: normal; }
.ks-trybox { display: flex; gap: 12px; align-items: stretch; }
.ks-try { position: relative; flex: 0 0 210px; height: 128px; overflow: hidden; color: #fff; --rim: 14px; --c: 30px;
  background: radial-gradient(ellipse at 50% 40%, #3d2e23, #150e09 85%); box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi); }
.ks-try-rim { position: absolute; left: -40px; right: -40px; bottom: -140px; height: 214px; border-radius: 50%;
  background: linear-gradient(180deg, var(--wood-hi, #b98250), var(--wood-lo, #6b4321)); box-shadow: 0 -4px 12px rgba(0,0,0,.5); }
.ks-try-felt { position: absolute; left: -18px; right: -18px; bottom: -140px; height: 186px; border-radius: 50%;
  background: var(--felt-pat, none), radial-gradient(ellipse at 50% 30%, var(--felt-hi, #1f7a3a), var(--felt-lo, #0d4d22) 80%); outline: 2px solid var(--inlay, #e2c06a); outline-offset: 5px; }
.ks-try-me { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; --face: 40px; }
.ks-try-me .ks-plate { margin-top: 2px; }
.ks-try-drink, .ks-try-charm { position: absolute; top: 80px; transform: translate(-50%, -50%); }
.ks-try-drink { left: 79%; }
.ks-try-charm { left: 21%; }
.ks-try-cards { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 4px; }
.ks-try-cards .bj-card { margin: 0; animation: none; }
.ks-tryinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ks-tryinfo > b { font-size: 14px; }
.ks-tryinfo small { opacity: .85; }
.ks-tryinfo .actions { margin-top: auto; padding-top: 4px; gap: 6px; }
.ks-tryinfo .actions button { min-width: 0; padding: 4px 12px; }
.ks-rar { font-size: 12px; font-weight: normal; color: #b07800; white-space: nowrap; }
.ks-deal { display: inline-block; padding: 0 4px; font-size: 11px; color: #fff; background: #b00000; white-space: nowrap; }
.ks-dealline { margin: 0; }
.ks-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 4px 6px; padding: 8px 6px; background: var(--field); color: var(--field-text);
  box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi); }
.ks-ic { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 2px 0; text-align: center; background: none; box-shadow: none; color: inherit; }
.ks-ic:active { box-shadow: none; }
.ks-ic .i { display: inline-flex; align-items: center; justify-content: center; height: 40px; font-size: 30px; line-height: 1; }
.ks-ic .n { display: inline-block; max-width: 100%; padding: 0 3px; font-size: 12px; line-height: 15px; overflow-wrap: break-word; }
.ks-ic .p { display: block; font-size: 11px; opacity: .7; }
.ks-ic.deal .p { color: #b00000; opacity: 1; font-weight: bold; }
.ks-ic.sel .n { background: var(--title-from); color: #fff; outline: 1px dotted #ffff80; }
.ks-ic.sel .i { filter: brightness(.75) sepia(.6) hue-rotate(190deg) saturate(2); }
.ks-ic .ov { position: absolute; left: calc(50% - 26px); top: 26px; width: 13px; height: 13px; font: bold 10px/11px var(--font); color: #087a2a; background: #fff; border: 1px solid #000; }
.ks-ic .rar { position: absolute; right: 4px; top: 0; font-size: 11px; font-weight: bold; color: #b07800; }
.ks-chip-wood { display: block; width: 54px; height: 22px; border-radius: 11px; background: linear-gradient(180deg, var(--wood-hi), var(--wood-lo));
  box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 4px var(--inlay), 0 2px 3px rgba(0,0,0,.4); }
.ks-chip-felt { display: block; width: 46px; height: 28px; border-radius: 14px; box-shadow: 0 0 0 2px #6b4321, 0 2px 3px rgba(0,0,0,.4);
  background: var(--felt-pat, none), radial-gradient(ellipse at 50% 35%, var(--felt-hi, #1f7a3a), var(--felt-lo, #0d4d22) 80%); }
.ks-chip-back.bj-card { --c: 24px; margin: 0; animation: none; }
.ks-chip-coaster { display: block; width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 2px 3px rgba(0,0,0,.4); }
.ks-roundbox { display: flex; align-items: flex-start; gap: 10px; }
.ks-round-ic { font-size: 30px; line-height: 1; }
.ks-roundbox small { display: block; }
.ks-roundbox .actions { margin-top: 6px; gap: 6px; }

@media (max-width: 760px) {
  .ks-tb > span { display: none; }
  .ks-info, .ks-faces { display: none; }
  .ks-tname { max-width: 110px; }
  .ks-tbar select { max-width: 120px; }
  .ks-dock { align-self: stretch; max-width: none; margin: 0 4px 4px; }
  .ks-pane, .ks-pane.shop { position: absolute; left: 0; right: 0; bottom: 0; z-index: 9; height: min(70%, 560px); padding: 6px 4px 0; background: var(--win);
    box-shadow: 0 -1px var(--hi), 0 -2px var(--lo), 0 -8px 16px rgba(0,0,0,.45); }
  .ks-pane::before { display: none; }
  .ks-trybox { flex-direction: column; }
  .ks-try { flex-basis: auto; }
  .ks-cards { grid-template-columns: minmax(0, 1fr); }
  span.ks-free { max-width: 56px; padding: 3px 4px; font-size: 10px; white-space: normal; text-align: center; }
  .ks-dock .ks-picks > span { display: none; }
  button.ks-new { min-height: 0; }
  .ks-plus { font-size: 24px; }
}

/* Werwolf (views/werwolf.ejs, public/werwolf.js); Grundgerüst und Avatare wie beim Quiz */
.ww-how { margin: 4px 0; padding-left: 22px; line-height: 1.5; }
.ww-play { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 8px; padding: 4px; min-height: 100%; }
.ww-stage { min-width: 0; padding: 6px 10px; background: var(--field); color: var(--field-text); box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi); }
.ww-dark .ww-stage { background: #0d1530; color: #dfe6ff; }
.ww-dark .ww-stage small { color: #b8c3ea; }
.ww-side { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ww-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ww-head h2 { margin: 4px 0; font-size: 20px; }
.ww-clock { font-size: 18px; width: 70px; }
.ww-people { list-style: none; margin: 0; padding: 2px; background: var(--field); color: var(--field-text); max-height: 46vh; overflow: auto; box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.ww-people li { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 2px 3px; }
.ww-people li.dead .qz-name { text-decoration: line-through; opacity: .6; }
.ww-people li.dead .qz-av { filter: grayscale(1); opacity: .6; }
.ww-people li.off .qz-av { opacity: .45; }
.ww-bits { white-space: nowrap; font-size: 13px; }
.ww-role { white-space: nowrap; }
.ww-tabs { display: flex; gap: 2px; }
.ww-tabs .on, .ww-stage button.small.on { box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--hi); font-weight: bold; }
.ww-chat { flex: 1; min-height: 140px; max-height: 40vh; overflow: auto; background: var(--field); color: var(--field-text); padding: 3px 5px; font-size: 13px; box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.ww-msg { overflow-wrap: anywhere; margin: 1px 0; }
.ww-msg.mine b { color: var(--title-from); }
.ww-say { display: flex; gap: 3px; }
.ww-say input { flex: 1; min-width: 0; }
.ww-note { margin: 2px 0; }
.ww-lobby { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 10px; }
.ww-roles td { vertical-align: top; }
.ww-n { width: 48px; }
.ww-tip { font-size: 13px; }
.ww-cardrow { display: flex; justify-content: center; margin: 10px 0; }
.ww-card { width: min(260px, 80vw); min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center;
  background: #fffbe8; color: #222; border: 3px solid #5b4320; box-shadow: 4px 4px 0 rgba(0,0,0,.35); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.ww-card .ico { font-size: 80px; line-height: 1; }
.ww-card b { font-size: 24px; }
.ww-card.back { background: repeating-linear-gradient(45deg, #3b2a6b 0 10px, #2a1d50 10px 20px); color: #fff; border-color: #120b29; cursor: pointer; }
.ww-card.r-werwolf { background: #ffe1d8; border-color: #8a1c0f; }
.ww-mini { margin: 4px 0; }
.ww-mini button { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.ww-notes { margin: 4px 0 8px; padding: 4px 8px; background: rgba(255, 216, 74, .2); border-left: 3px solid #d4a017; font-size: 14px; }
.ww-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; margin: 8px 0; }
.ww-target { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; min-height: 84px; color: var(--text); }
.ww-target .nm { font-weight: bold; overflow-wrap: anywhere; }
.ww-target.on { outline: 3px solid #d4a017; outline-offset: -5px; background: #fff3c4; color: #000; }
.ww-target:disabled { opacity: .45; }
.ww-marks { font-size: 11px; line-height: 1.2; }
.ww-go { font-size: 18px; padding: 8px 22px; font-weight: bold; }
.ww-ok { font-weight: bold; }
.ww-dead { text-align: center; padding: 20px 0; }
.ww-dead .ico, .ww-win .ico { font-size: 60px; }
.ww-news { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.ww-death { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #f3d6d6; color: #000; border: 1px solid #7a1f1f; }
.ww-talk { text-align: center; padding: 10px 0; }
.ww-talk p { font-size: 16px; }
.ww-potion { font-size: 15px; }
.ww-win { text-align: center; padding: 10px 0; }
.ww-win h2 { margin: 4px 0; font-size: 26px; }
.ww-endtab { width: 100%; }
.ww-endtab td:first-child { white-space: nowrap; }
.ww-endtab tr.dead td:first-child { opacity: .65; }
.ww-log { margin: 8px 0; font-size: 13px; }
.ww-rules { max-width: 560px; max-height: 60vh; overflow: auto; }
.ww-rules td { vertical-align: top; }
@media (max-width: 760px) {
  .ww-play, .ww-lobby { grid-template-columns: minmax(0, 1fr); }
  .ww-lobby-right { order: -1; }
  .ww-desc { display: none; }
  .ww-roles td { padding: 1px 4px; }
  .ww-stage { padding: 4px 6px; }
  .ww-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}
/* Entwürfe speichern und laden (public/drafts.js) */
.drafts-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; }
.drafts-bar .drafts-panel { flex-basis: 100%; max-height: 260px; overflow: auto; padding: 4px; }
.drafts-panel .draft-item { display: flex; align-items: center; gap: 6px; padding: 4px; border-bottom: 1px solid var(--lo); }
.drafts-panel .draft-item:last-child { border-bottom: 0; }
.drafts-panel .draft-item.current { background: var(--hover); }
.drafts-panel .draft-text { flex: 1; min-width: 0; overflow: hidden; }
.drafts-panel .draft-text small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drafts-bar .err { color: var(--danger); }

/* Eigene Dateien (views/own-files.ejs) */
a.kpi { text-decoration: none; display: block; }
.kpi small { display: block; }
.own-edit { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 0; }
.own-edit input[type=text] { flex: 1 1 160px; min-width: 0; }
.own-list td { vertical-align: middle; }
.own-thumb { width: 48px; height: 36px; object-fit: contain; background: #fff; image-rendering: pixelated; display: block; }

/* Namen und Links auf farbigen Leisten (Kopf eines Forenbeitrags, Überschriften): immer in der Schriftfarbe der Leiste */
.userlink:visited, .board-post .head a, .board-post .head a:visited, .gb-entry .head a, .gb-entry .head a:visited,
.changelog h2 a, .datenschutz h2 a, .qz-head a, .notify-item:hover a, .mp-table tr.playing a { color: inherit; }

/* Modlisten (views/mods-list.ejs, mod-detail.ejs, mod-edit.ejs, public/mods.js) */
.ml-nav { margin: -10px -10px 8px; position: sticky; top: 0; z-index: 5; background: var(--win); }
.ml-nav .ml-here { padding: 2px 8px; }
.ml-nav [hidden] { display: none; }
.ml-ov { padding: 0 6px; }
.ml-ov-row { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; border-bottom: 1px dotted #ccc; }
.ml-ov-row:last-child { border-bottom: 0; }
.ml-ov-row .t { flex: 1; min-width: 0; }
.ml-ov-row .meta { white-space: nowrap; font-size: 12px; opacity: .8; }
.ml-head h1 { margin: 2px 0; }
.ml-game { font-size: 12px; }
.ml-desc { margin: 2px 0 10px; }
/* Haken „läuft auf dem Server“: in der Ansicht grau eingesunken wie ein gesperrtes Kästchen */
.ml-chk { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; background: var(--win);
  box-shadow: inset 1px 1px #808080, inset 2px 2px #404040, inset -1px -1px #fff; color: #000; font: bold 11px/13px Tahoma, sans-serif; text-align: center; }
.ml-chk.on::after { content: '✔'; }
.ml input[type=checkbox] { appearance: none; -webkit-appearance: none; margin: 0; width: 13px; height: 13px; background: var(--field); cursor: pointer; vertical-align: -2px;
  box-shadow: inset 1px 1px #808080, inset 2px 2px #404040, inset -1px -1px #fff; color: var(--field-text); font: bold 11px/13px Tahoma, sans-serif; text-align: center; }
.ml input[type=checkbox]:checked::after { content: '✔'; }
.ml input[type=checkbox]:focus-visible { outline: 1px dotted var(--text); outline-offset: 2px; }
/* Kästchen mit + / − wie im Explorer-Baum */
.ml .tree { display: inline-block; flex: 0 0 auto; width: 11px; height: 11px; min-width: 0; padding: 0; border: 1px solid #808080; background: #fff; color: #000; box-shadow: none;
  font: bold 11px/9px monospace; text-align: center; vertical-align: -1px; margin-right: 6px; cursor: pointer; }
.ml .tree::before { content: '+'; }
.ml details[open] > summary .tree::before, .ml-catbox:not(.folded) .tree::before { content: '−'; }
/* Liste: weißes Feld, Kopfzeile grau, Kategorien als graue Bänder */
.ml-box { background: var(--field); color: var(--field-text); box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.ml-box a { color: var(--field-link); }
.ml-row { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr) 64px; border-bottom: 1px dotted #ccc; }
.ml-row > span { padding: 3px 6px; min-width: 0; overflow-wrap: anywhere; }
.ml-row .c { text-align: center; }
.ml-row.in-cat > .n { padding-left: 24px; }
.ml-row.ml-th { background: var(--win); color: var(--text); border: 0; }
.ml-row.ml-th > span { box-shadow: inset -1px -1px var(--lo), inset 1px 1px var(--hi); }
.ml-row:not(.ml-th):hover { background: var(--hover); }
.ml-row.sg { grid-template-columns: minmax(0, 32%) minmax(0, 1fr) 120px; }
.ml-row.sg.take { grid-template-columns: minmax(0, 30%) minmax(0, 1fr) 110px 112px; }
.ml-dom { color: #808080; margin-left: 5px; font-size: 11px; white-space: nowrap; }
.ml details > summary { margin: 0; }
.ml-cat > summary { list-style: none; display: flex; align-items: center; gap: 0; padding: 4px 6px; background: var(--win); color: var(--text);
  border-bottom: 1px solid var(--lo); cursor: pointer; user-select: none; }
.ml-cat > summary::-webkit-details-marker, .ml-sugg > summary::-webkit-details-marker { display: none; }
.ml-cat > summary small { margin-left: 6px; opacity: .75; }
.ml-cat > summary:focus-visible, .ml-sugg > summary:focus-visible { outline: 1px dotted var(--text); outline-offset: -3px; }
/* Vorschläge */
.ml-sugg { margin-top: 12px; }
.ml-sugg > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 4px 6px; background: var(--win); cursor: pointer;
  box-shadow: inset -1px -1px var(--lo), inset 1px 1px var(--hi); user-select: none; }
.ml-sugg > summary .tree { margin-right: 0; }
.ml-sugg > summary small { opacity: .75; }
.ml-sugg > summary .spacer { flex: 1; }
.ml-sugg-box { padding: 8px 0 0; }
.ml-guest { color: #808080; font-style: italic; }
.ml-last { margin: 6px 0 0; }
.ml-take { position: relative; display: inline-block; }
.ml-take > summary { list-style: none; white-space: nowrap; }
.ml-take > summary::-webkit-details-marker { display: none; }
.ml-take-menu { position: absolute; right: 0; top: 100%; z-index: 10; min-width: 200px; display: flex; flex-direction: column; gap: 3px; padding: 6px;
  background: var(--win); color: var(--text); box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo), 2px 2px 0 rgba(0,0,0,.35); }
.ml-take-menu button { text-align: left; }
.ml-take-new { display: flex; gap: 3px; margin-top: 3px; }
.ml-take-new input { flex: 1; min-width: 0; }
.ml-take-new button { min-width: 0; padding: 2px 8px; }
/* Bearbeiten */
.ml-fields { display: grid; grid-template-columns: 2fr 1.2fr 150px 160px; gap: 0 10px; }
.ml-fields label, .ml-form > label { margin: 2px 0 6px; }
.ml-catbox { border: 1px solid var(--lo); box-shadow: 1px 1px var(--hi); padding: 6px 8px 8px; margin: 10px 0; background: var(--win); }
.ml-catbox.folded { padding-bottom: 6px; }
.ml-catbox.folded > .ml-grid { display: none; }
.ml-cat-title { display: flex; align-items: center; gap: 6px; }
.ml-catbox:not(.folded) > .ml-cat-title { margin-bottom: 6px; }
.ml-cat-title .tree { margin: 0; }
.ml-cat-title input { font-weight: bold; width: 240px; max-width: 45%; }
.ml-cat-title small { opacity: .75; }
.ml-cat-title .spacer { flex: 1; }
.ml-grid { display: flex; flex-direction: column; gap: 4px; }
.ml-edrow { display: grid; grid-template-columns: 20px 14px minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1.5fr) 50px; gap: 6px; align-items: center; }
.ml-grid.sg .ml-edrow { grid-template-columns: 20px minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1.4fr) 120px; }
.ml-edrow input[type=text], .ml-edrow input[type=url] { width: 100%; min-width: 0; }
.ml-edrow .c { margin: 0; text-align: center; display: block; }
.ml-lbls { font-size: 11px; opacity: .75; }
.ml-lbls > span { padding: 0 2px; }
.ml-who { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.ml-x { width: 20px; height: 20px; min-width: 0; padding: 0; font: bold 12px/20px Tahoma, sans-serif; color: var(--danger); }
.ml-drag { color: #808080; cursor: grab; font-size: 12px; text-align: center; letter-spacing: -2px; touch-action: none; user-select: none; }
.ml-cat-title .ml-drag { width: 14px; }
.ml-dragging { outline: 1px dotted var(--text); outline-offset: 1px; opacity: .8; }
.ml-addrow { padding-left: 26px; }
.ml-grid.sg .ml-addrow { padding-left: 26px; }
button.ml-plus { min-width: 0; padding: 1px 8px; font-size: 12px; }
.ml-actions .spacer { flex: 1; }
.ml-bottom { border-top: 1px solid var(--lo); box-shadow: inset 0 1px var(--hi); padding-top: 8px; }
.ml-editbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 6px; background: #ffffe1; color: #000; border: 1px solid #000; margin: 0 0 8px; }
.ml-editbar .spacer { flex: 1; }
.ml-editbar label.inline { margin: 0; }
.ml-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ml-undo { position: sticky; bottom: 0; display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 4px 8px; background: #ffffe1; color: #000; border: 1px solid #000; }
.ml-undo[hidden] { display: none; }
.ml-dialog { width: min(560px, 96vw); padding: 3px; border: 0; }
.ml-dialog::backdrop { background: rgba(0,0,0,.35); }
@media (max-width: 640px) {
  .ml-ov-row { flex-direction: column; gap: 2px; }
  .ml-row, .ml-row.sg, .ml-row.sg.take { grid-template-columns: minmax(0, 1fr) auto; }
  .ml-row > .r { grid-column: 1 / -1; grid-row: 2; padding-top: 0; font-size: 12px; opacity: .85; }
  .ml-row > .r:empty { display: none; }
  .ml-row.in-cat > .r { padding-left: 24px; }
  .ml-sugg > summary small { display: none; }
  .ml-hide-s { display: none; }
  .ml-row.ml-th > .r, .ml-row.ml-th > .w { display: none; }
  .ml-row.sg > .w { grid-row: 3; grid-column: 1; font-size: 12px; padding-top: 0; }
  .ml-row.sg > .t { grid-row: 1; grid-column: 2; }
  .ml-fields { grid-template-columns: 1fr 1fr; }
  .ml-fields .w-title { grid-column: 1 / -1; }
  .ml-edrow, .ml-grid.sg .ml-edrow { grid-template-columns: 20px 14px minmax(0, 1fr) 40px; row-gap: 3px; padding-bottom: 6px; border-bottom: 1px dotted var(--lo); }
  .ml-grid.sg .ml-edrow { grid-template-columns: 20px minmax(0, 1fr); }
  .ml-edrow [data-f=url], .ml-edrow [data-f=notes] { grid-column: 3 / 4; }
  .ml-grid.sg .ml-edrow > * { grid-column: 2; } .ml-grid.sg .ml-edrow > .ml-x { grid-column: 1; grid-row: 1; }
  .ml-edrow > .c { grid-column: 4; grid-row: 1; }
  .ml-lbls { display: none !important; }
  .ml-cat-title input { max-width: none; flex: 1; width: auto; }
}

/* ================= Desktop 2.0 ================= */
/* Symbole auf dem Desktop (public/desk.js legt sie auf ein Raster von 80 × 80 Pixeln) */
.desk-icons { position: absolute; inset: 0; z-index: 0; outline: 0; }
.dicon { position: absolute; width: 78px; padding: 2px 1px; text-align: center; color: #fff; font-size: 12px; line-height: 1.2; cursor: default;
  user-select: none; -webkit-user-select: none; outline: 0; touch-action: manipulation; }
.dicon .g { position: relative; display: block; width: 36px; height: 36px; margin: 0 auto 3px; font-size: 30px; line-height: 36px; }
.dicon .g img { width: 32px; height: 32px; object-fit: cover; vertical-align: middle; box-shadow: 0 0 0 1px rgba(0,0,0,.45); }
.dicon .g i { position: absolute; font-style: normal; pointer-events: none; }
.dicon .lnk { left: -1px; bottom: 1px; width: 11px; height: 11px; background: #fff; border: 1px solid #000; color: #000; font: bold 9px/9px Tahoma, sans-serif; }
.dicon .lnk::after { content: '↗'; }
.dicon .shr { right: -7px; bottom: -2px; font-size: 12px; line-height: 1; }
.dicon .neu { right: -16px; top: -2px; background: #d00; color: #fff; font: bold 8px/12px Tahoma, sans-serif; padding: 0 3px; border-radius: 6px; box-shadow: 0 0 0 1px #fff; }
.dicon .brk { inset: 0; color: #e00; font: bold 24px/36px Tahoma, sans-serif; text-shadow: 0 0 2px #fff; }
.dicon.broken .g { filter: grayscale(1); opacity: .65; }
.dicon .t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 100%; width: fit-content; margin: 0 auto;
  padding: 0 2px; overflow-wrap: break-word; word-break: normal; hyphens: manual; background: var(--desktop); }
.dicon.sel { z-index: 2; }
.dicon.sel .t { -webkit-line-clamp: 6; background: var(--sel-bg); color: var(--sel-text); outline: 1px dotted #ff0; }
.dicon.sel .g, .dicon.drop-on .g { filter: brightness(.7) sepia(1) hue-rotate(190deg) saturate(3); }
.dicon.drop-on .t { background: var(--sel-bg); color: var(--sel-text); }
.dicon.moving { opacity: .6; z-index: 5; pointer-events: none; }
.dicon:focus-visible .t { outline: 1px dotted #fff; }
.dicon.renaming .t { display: none; }
.dicon-edit { display: block; width: 78px; min-height: 0; margin: 0 auto; padding: 0 1px; font: 12px/1.2 var(--font); text-align: center; resize: none; overflow: hidden;
  background: #fff; color: #000; box-shadow: 0 0 0 1px #000; }
.desk-band { position: fixed; z-index: 9; border: 1px dotted #fff; background: rgba(0,0,0,.08); pointer-events: none; mix-blend-mode: difference; }
@media (max-width: 760px) {
  .desk-icons { inset: 10px 6px auto 6px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 0; }
  .dicon { position: static; width: auto; font-size: 12px; }
  .dicon .g { width: 44px; height: 44px; font-size: 36px; line-height: 44px; }
  .dicon .g .sym { width: 40px; height: 40px; }
}

/* Symbole als Bild (src/programs.js ico, WinUI.ico): Das Zeichen steht unsichtbar darin, damit Text und Ziehen es behalten */
.sym { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.2em; overflow: hidden; white-space: nowrap; text-indent: 3em;
  font-style: normal; background: center / contain no-repeat; }
.sym-msgr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Ccircle cx='8' cy='4.6' r='3.2' fill='%2335b534' stroke='%231b6b1a' stroke-width='.7'/%3E%3Cpath d='M2 16 C2 10.5 4.5 8.8 8 8.8 S14 10.5 14 16 Z' fill='%2335b534' stroke='%231b6b1a' stroke-width='.7'/%3E%3Cg transform='translate(8 0)'%3E%3Ccircle cx='8' cy='4.6' r='3.2' fill='%232f6fd8' stroke='%23123f8a' stroke-width='.7'/%3E%3Cpath d='M2 16 C2 10.5 4.5 8.8 8 8.8 S14 10.5 14 16 Z' fill='%232f6fd8' stroke='%23123f8a' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E"); }
html.theme-xp .sym-msgr { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='%2335b534' stroke='%231b6b1a' stroke-width='.6'%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(0 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(60 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(120 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(180 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(240 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(300 8 8)'/%3E%3C/g%3E%3Ccircle cx='8' cy='8' r='2.9' fill='%23fff' stroke='%231b6b1a' stroke-width='.7'/%3E%3Ccircle cx='8' cy='8' r='1.4' fill='%231d2a1d'/%3E%3Ccircle cx='8.5' cy='7.5' r='.45' fill='%23fff'/%3E%3C/svg%3E"); }
.sym-karten { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='rotate(-14 10 13)'%3E%3Crect x='3.5' y='3.5' width='12' height='17' rx='1.6' fill='%23fff' stroke='%23333' stroke-width='.8'/%3E%3Cpath d='M8.6 8.4c-.9-1.6-3.3-1.1-3.3.8 0 1.5 1.9 2.7 3.3 4.2 1.4-1.5 3.3-2.7 3.3-4.2 0-1.9-2.4-2.4-3.3-.8z' fill='%23d3202a'/%3E%3C/g%3E%3Cg transform='rotate(9 14 13)'%3E%3Crect x='8' y='3.5' width='12.5' height='17.5' rx='1.6' fill='%23fff' stroke='%23222' stroke-width='.8'/%3E%3Ctext x='9.4' y='7.9' font-family='Arial,sans-serif' font-weight='bold' font-size='4'%3EA%3C/text%3E%3Cpath d='M14.5 9.2c-1.6 2-4 3.3-4 5.3 0 1.3 1.1 2.1 2.2 2.1.6 0 1.1-.2 1.4-.6-.1 1-.5 1.8-1.2 2.4h3.2c-.7-.6-1.1-1.4-1.2-2.4.3.4.8.6 1.4.6 1.1 0 2.2-.8 2.2-2.1 0-2-2.4-3.3-4-5.3z' fill='%23111'/%3E%3C/g%3E%3C/svg%3E"); }
/* Mediaplayer: Symbol je nach Skin (<html data-mp-skin>, src/server.js playerSkin, public/music.js showSkin) */
.sym-player { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7.2' fill='%23d8d8e0' stroke='%23555' stroke-width='.6'/%3E%3Cpath d='M8 .8A7.2 7.2 0 0 1 15.2 8H11A3 3 0 0 0 8 5z' fill='%23a8d8ff' opacity='.8'/%3E%3Cpath d='M8 15.2A7.2 7.2 0 0 1 .8 8H5a3 3 0 0 0 3 3z' fill='%23ffc8f0' opacity='.7'/%3E%3Ccircle cx='8' cy='8' r='2.2' fill='%23fff' stroke='%23555' stroke-width='.6'/%3E%3Ccircle cx='8' cy='8' r='.9' fill='%23888'/%3E%3C/svg%3E"); }
html.theme-xp .sym-player { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7.2' fill='%23e8eef8' stroke='%233a5a9a' stroke-width='.6'/%3E%3Cpath d='M8 .8A7.2 7.2 0 0 1 15.2 8H11A3 3 0 0 0 8 5z' fill='%238fd0ff'/%3E%3Cpath d='M8 15.2A7.2 7.2 0 0 1 .8 8H5a3 3 0 0 0 3 3z' fill='%23b8f0a0'/%3E%3Ccircle cx='8' cy='8' r='2.2' fill='%23fff' stroke='%233a5a9a' stroke-width='.6'/%3E%3Cpath d='M10.6 9.4v4.2' stroke='%231d3f8a' stroke-width='1'/%3E%3Cellipse cx='9.7' cy='13.8' rx='1.2' ry='.9' fill='%231d3f8a'/%3E%3Cpath d='M10.6 9.4l2.4.8' stroke='%231d3f8a' stroke-width='1'/%3E%3C/svg%3E"); }
html[data-mp-skin=vlc-hell] .sym-player { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 14.2h10' stroke='%237a3a00' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M6.6 2h2.8l3 11.4H3.6z' fill='%23ff8800' stroke='%23b85400' stroke-width='.5'/%3E%3Cpath d='M6.1 4.6h3.8l.6 2.2H5.5zM5 8.8h6l.6 2.3H4.4z' fill='%23fff'/%3E%3C/svg%3E"); }
html[data-mp-skin=vlc-dunkel] .sym-player { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='.5' y='.5' width='15' height='15' rx='3' fill='%232b2b2b'/%3E%3Cpath d='M3 14.2h10' stroke='%237a3a00' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M6.6 2h2.8l3 11.4H3.6z' fill='%23ff8800' stroke='%23b85400' stroke-width='.5'/%3E%3Cpath d='M6.1 4.6h3.8l.6 2.2H5.5zM5 8.8h6l.6 2.3H4.4z' fill='%23fff'/%3E%3C/svg%3E"); }
html[data-mp-skin=mediaplayer] .sym-player { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.4' cy='.3' r='.8'%3E%3Cstop offset='0' stop-color='%236fb6ff'/%3E%3Cstop offset='.55' stop-color='%231a56b8'/%3E%3Cstop offset='1' stop-color='%23071a40'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='8' cy='8' r='7.3' fill='url%28%23g%29' stroke='%2304122e' stroke-width='.5'/%3E%3Cpath d='M6.2 4.6l5 3.4-5 3.4z' fill='%23fff'/%3E%3Cellipse cx='7.2' cy='4' rx='4' ry='2' fill='%23fff' opacity='.28'/%3E%3C/svg%3E"); }
html[data-mp-skin=winamp] .sym-player { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='.5' y='.5' width='15' height='15' rx='3' fill='%231b1b24' stroke='%23000' stroke-width='.5'/%3E%3Cpath d='M9.6 1.8L4 9h3.4l-1.3 5.2L12 6.8H8.5z' fill='%23ffb000' stroke='%23ff6a00' stroke-width='.5' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.dicon .g .sym { position: static; width: 34px; height: 34px; vertical-align: middle; } /* nicht absolut wie die Plaketten (.dicon .g i), sonst rutscht das Bild nach rechts */

/* Offene Lobbys (rechts oben auf dem Desktop) */
.desk-widget.lobby-widget { top: 12px; bottom: auto; width: 272px; margin: 0; z-index: 1; }
.lobby-widget .titlebar .ttl [data-n] { font-weight: normal; }
.lobby-widget .body { padding: 4px; }
.lobby-widget.collapsed .body { display: none; }
.lob-list { background: var(--field); color: var(--field-text); max-height: min(320px, 45vh); overflow: auto;
  box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi); }
.lob { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 0 6px; align-items: center; padding: 4px 6px; border-bottom: 1px dotted #ccc; font-size: 12px; }
.lob:last-child { border-bottom: 0; }
.lob .ic { grid-row: 1 / span 2; font-size: 16px; text-align: center; }
.lob .nm { font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lob .sub { grid-column: 2; font-size: 11px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lob button { grid-row: 1 / span 2; grid-column: 3; }
.lob .fr { color: #8a5d00; }
.lob-group { position: sticky; top: 0; padding: 2px 6px; font-size: 11px; font-weight: bold; background: var(--win); color: var(--text); border-bottom: 1px solid var(--lo); }
.lob-empty { margin: 0; padding: 10px 8px; font-size: 12px; opacity: .8; }
.lob-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 4px; font-size: 11px; }
@media (max-width: 760px) {
  .desk-widget.lobby-widget:not([hidden]) { display: block; left: 6px; right: 6px; top: auto; bottom: 8px; width: auto; }
  .lob-list { max-height: 28vh; }
}

/* Suche in der Taskleiste (Strg+K) */
.taskbar .grip { display: none; }
.tb-search { display: flex; align-items: center; flex: 0 1 210px; min-width: 0; height: 24px; margin: 0 2px; background: var(--field); color: var(--field-text);
  box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi); }
.tb-search input { flex: 1; min-width: 0; height: 100%; padding: 2px 4px 2px 0; border: 0; background: transparent; box-shadow: none; outline: 0; font-size: 12px; }
.tb-search-btn { flex: none; min-width: 0; padding: 0 4px; background: none; box-shadow: none; font-size: 12px; line-height: 20px; }
.tb-search-btn:active { box-shadow: none; }
.search-pop { position: fixed; left: 72px; bottom: calc(var(--taskbar-h) + 2px); z-index: 12; width: min(460px, calc(100vw - 8px)); margin: 0; }
.search-pop[hidden] { display: none; }
.search-pop .body { padding: 4px; }
.res { background: var(--field); color: var(--field-text); max-height: min(520px, calc(100vh - 130px)); overflow: auto;
  box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi); }
.res:empty { display: none; }
.res h4 { position: sticky; top: 0; display: flex; justify-content: space-between; margin: 0; padding: 3px 8px; font-size: 11px; background: var(--win); color: var(--text); border-bottom: 1px solid var(--lo); }
.res h4 a { font-weight: normal; color: var(--link); }
.res .r { display: flex; align-items: center; gap: 8px; padding: 3px 8px; font-size: 12px; cursor: default; }
.res .r .ic { flex: none; width: 18px; text-align: center; }
.res .r img.ic { height: 18px; object-fit: cover; }
.res .r .w { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res .r small { max-width: 45%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .7; }
.res .r.hl { background: var(--sel-bg); color: var(--sel-text); }
.res .r.hl small { opacity: .9; }
.res mark { background: #ff0; color: #000; padding: 0; }
.res .r.hl mark { background: #fff; color: #000080; }
.res-hint { margin: 0; padding: 8px; font-size: 12px; opacity: .8; }
.res-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 2px 1px; font-size: 12px; }
.res-foot small { opacity: .7; }
@media (max-width: 760px) {
  .tb-search { flex: 0 0 auto; background: none; box-shadow: none; }
  .tb-search input { display: none; }
  .tb-search.open { position: absolute; left: 3px; right: 3px; top: 3px; bottom: 3px; z-index: 3; background: var(--field); box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi); }
  .tb-search.open input { display: block; }
  .search-pop { left: 4px; right: 4px; width: auto; }
}

/* Menüs und Dialoge aus public/winui.js (Rechtsklick, Neu ▸, Notizblock, Explorer) */
.wui-pop { z-index: 1000; max-height: calc(100vh - 8px); overflow: auto; }
.ms-mi.wui-sub::after { content: '▸'; position: absolute; right: 6px; }
.ms-mi.wui-bold > span:first-child { font-weight: bold; }
.ms-mi[disabled] { color: #808080; text-shadow: 1px 1px #fff; cursor: default; }
.ms-mi[disabled]:hover { background: none; color: #808080; }
.wui-dlg { max-height: calc(100vh - 20px); overflow: auto; }
.wui-dlg .wui-body > p:first-child { margin-top: 0; }
.wui-dlg .wui-body label:first-child { margin-top: 0; }
button.wui-primary { box-shadow: 0 0 0 1px #000, inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo); }
.icon-pick { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--field); box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.icon-pick label { margin: 0; }
.icon-pick input { position: absolute; opacity: 0; pointer-events: none; }
.icon-pick span { display: block; width: 30px; height: 30px; font-size: 20px; line-height: 30px; text-align: center; cursor: pointer; }
.icon-pick input:checked + span { background: var(--sel-bg); outline: 1px dotted var(--field-text); }
.icon-pick input:focus-visible + span { outline: 1px dotted var(--field-text); outline-offset: -3px; }
.sc-results { max-height: 170px; overflow: auto; padding: 2px; margin-top: 2px; display: flex; flex-direction: column; }
.sc-results small { padding: 4px; }
.sc-hit { display: flex; align-items: baseline; gap: 6px; text-align: left; padding: 2px 6px; background: none; box-shadow: none; min-width: 0; color: var(--field-text); font-size: 12px; }
.sc-hit small { margin-left: auto; padding: 0; opacity: .7; }
.sc-hit:hover, .sc-hit.on { background: var(--sel-bg); color: var(--sel-text); }
.sc-hit:active { box-shadow: none; }
.ext-host { font-size: 15px; word-break: break-all; }
table.kv { width: auto; }
table.kv td { padding: 2px 10px 2px 0; vertical-align: top; }
table.kv td:first-child { white-space: nowrap; opacity: .85; }
.kv.props code { word-break: break-all; }

/* Explorer (Eigene Dateien) */
.explorer { margin: -10px; height: 100vh; min-height: 360px; display: flex; flex-direction: column; }
.ex-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 3px 4px; border-bottom: 1px solid var(--lo); box-shadow: 0 1px var(--hi); }
.ex-toolbar button, .ex-toolbar .btn { min-width: 0; }
.ex-toolbar .spacer { flex: 1; }
.ex-sep { width: 2px; height: 20px; margin: 0 3px; box-shadow: inset 1px 0 var(--lo), inset -1px 0 var(--hi); }
.ex-tree-toggle { display: none; }
.ex-address { display: flex; align-items: center; gap: 6px; padding: 3px 4px; font-size: 12px; border-bottom: 1px solid var(--lo); }
.ex-path { flex: 1; min-width: 0; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-path a { color: var(--field-text); text-decoration: none; }
.ex-path a:hover { text-decoration: underline; }
.ex-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 4px; padding: 4px; }
.ex-tree { overflow: auto; padding: 4px; font-size: 12px; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { padding-left: 14px; }
.ex-node { display: inline-block; margin: 1px 0; padding: 1px 3px; color: var(--field-text) !important; text-decoration: none; white-space: nowrap; }
.ex-node:hover { text-decoration: underline; }
.ex-node.current { background: var(--sel-bg); color: var(--sel-text) !important; }
.ex-group { padding: 4px 0 1px 3px; color: var(--field-text); }
.ex-pane { overflow: auto; padding: 8px; background: var(--field); color: var(--field-text); box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi); }
.ex-pane a { color: var(--field-link); }
.ex-h { margin: 4px 0 6px; padding-bottom: 2px; font-size: 13px; border-bottom: 1px solid #c8c8c8; }
.ex-h:first-child { margin-top: 0; }
.ex-empty { padding: 24px 12px; text-align: center; }
.ex-list { box-shadow: none; }
.ex-list tr[data-ref] td { cursor: default; white-space: nowrap; border-bottom: 0; vertical-align: middle; }
.ex-list tr[data-ref] td:first-child { white-space: normal; }
.ex-list tr.sel td { background: var(--sel-bg); color: var(--sel-text); }
.ex-list tr.sel a, .ex-list tr.sel small { color: var(--sel-text) !important; }
.ex-list tr.broken .ex-name { opacity: .6; }
.ex-name { color: inherit !important; text-decoration: none; }
.ex-ic { display: inline-block; width: 20px; margin-right: 4px; text-align: center; }
.drop-on, .ex-node.drop-on, tr.drop-on td { background: var(--hover) !important; color: var(--field-text) !important; outline: 1px dotted var(--field-text); }
.icon-view { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.icon-item { width: 100px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; text-align: center; font-size: 12px;
  color: var(--field-text) !important; text-decoration: none; word-break: break-word; }
.icon-item:hover .icon-label { text-decoration: underline; }
.icon-item small { opacity: .7; }
.icon-pic { font-size: 32px; line-height: 40px; }
.icon-pic img { width: 40px; height: 40px; object-fit: cover; vertical-align: middle; }
.space-bar { max-width: 420px; height: 18px; padding: 2px; background: var(--field); box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.space-bar i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 10px); }
.own-thumb { width: 48px; height: 36px; object-fit: contain; background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 10px 10px; }
.own-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; }
.own-edit input[type=text] { flex: 1 1 140px; min-width: 0; }
.explorer > .statusbar { flex: none; }
.explorer-head h1 { margin-top: 0; }
@media (max-width: 640px) {
  .ex-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .ex-tree { display: none; }
  .explorer.tree-open .ex-tree { display: block; max-height: 40vh; }
  .ex-tree-toggle { display: inline-block; }
  .ex-address > span { display: none; }
}

/* Downloads als Explorer (views/files.ejs) und Fenster „Hinzufügen“ (views/upload.ejs) */
.fx-main { grid-template-columns: 200px minmax(0, 1fr) 230px; }
.fx-search { margin: 0 0 0 4px; }
.fx-search input { width: 200px; }
.fx-list th[data-sort] { cursor: pointer; user-select: none; }
.fx-list th[aria-sort=ascending]::after { content: " ▲"; font-size: 9px; }
.fx-list th[aria-sort=descending]::after { content: " ▼"; font-size: 9px; }
.fx-list tr.fx-grp td { padding-top: 6px; font-weight: bold; border-bottom: 1px solid var(--lo); background: transparent; }
.fx-list td:nth-child(n+2) { white-space: nowrap; }
/* Privat → Videos als Kacheln (views/files.ejs mode tiles, public/files.js) */
.fx-tools-tiles { padding: 4px 6px; font-size: 12px; border-bottom: 1px solid var(--lo); }
.fx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; padding: 8px; align-content: start; }
.fx-tile { display: flex; flex-direction: column; gap: 2px; padding: 4px; outline: none; cursor: default; min-width: 0; }
.fx-tile.sel { background: var(--title-from, #000080); color: #fff; }
.fx-tile.sel .muted { color: #dde; }
.fx-tile:focus-visible { outline: 1px dotted currentColor; }
.fx-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #111; overflow: hidden;
  box-shadow: inset -1px -1px var(--hi), inset 1px 1px var(--lo), inset -2px -2px var(--win), inset 2px 2px var(--dark); }
.fx-thumb video { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: cover; pointer-events: none; }
.fx-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.55);
  color: #fff; font-size: 15px; line-height: 34px; text-align: center; opacity: .85; transition: opacity .15s; }
.fx-thumb:hover .fx-play { opacity: 0; }
.fx-nothumb { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; opacity: .5; }
.fx-len { position: absolute; right: 5px; bottom: 5px; padding: 0 4px; background: rgba(0,0,0,.75); color: #fff; font-size: 11px; line-height: 16px; }
.fx-tname { font-size: 12px; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-tile small { font-size: 11px; }
:where(html.theme-xp) .fx-tile.sel { background: #316ac5; border-radius: 3px; }
:where(html.theme-xp) .fx-thumb { box-shadow: 0 0 0 1px #7f9db9; border-radius: 2px; }
@media (max-width: 640px) { .fx-tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; padding: 6px; } }
.fx-mine { margin-top: 8px; }
.fx-det { overflow: auto; padding: 6px; font-size: 12px; background: var(--win); color: var(--text); }
.fx-card h3 { margin: 2px 0 6px; font-size: 13px; word-break: break-word; }
.fx-big { font-size: 40px; text-align: center; margin: 6px 0; }
.fx-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 8px; margin: 0 0 8px; }
.fx-card dt { opacity: .7; }
.fx-card dd { margin: 0; word-break: break-word; }
.fx-desc { white-space: pre-wrap; }
.fx-acts { display: flex; flex-wrap: wrap; gap: 4px; }
:where(html.theme-xp) .fx-det { background: linear-gradient(#7ba2e7, #6375d6); }
:where(html.theme-xp) .fx-card { background: #fff; color: #000; border-radius: 3px; padding: 6px 8px; box-shadow: 0 0 0 1px #fff, 0 1px 3px rgba(0,0,0,.25); }
@media (max-width: 900px) { .fx-main { grid-template-columns: 180px minmax(0, 1fr); } .fx-det { display: none; } }
@media (max-width: 640px) { .fx-main { grid-template-columns: minmax(0, 1fr); } .fx-search input { width: 130px; } .fx-list th:nth-child(n+4), .fx-list td:nth-child(n+4) { display: none; } .fx-list tr.fx-grp td { display: table-cell; } }
/* Galerie als Explorer (views/gallery.ejs, public/gallery.js): Baum, Miniaturen, Aufgaben wie bei XP, Hochladen und Bildbetrachter */
.gx { position: relative; }
.gx [hidden], .gx-up [hidden] { display: none !important; }
.gx-main { grid-template-columns: 200px minmax(0, 1fr) 220px; }
.gx-search input { width: 180px; }
.gx-pane { padding: 0; display: flex; flex-direction: column; outline: none; }
.gx-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--lo); }
.gx-head .spacer { flex: 1; }
.gx-head .cover { width: 64px; height: 48px; object-fit: cover; box-shadow: 0 0 0 1px var(--lo); flex: none; }
.gx-head .cover.none { display: flex; align-items: center; justify-content: center; font-size: 28px; background: var(--win); }
.gx-hinfo { flex: 1; min-width: 180px; }
.gx-head h2 { margin: 0; font-size: 15px; }
.gx-head small { display: block; opacity: .8; }
.gx-desc { margin: 4px 0 0; font-size: 12px; white-space: pre-wrap; }
.gx-sort { font-size: 12px; white-space: nowrap; }
.gx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px 10px; padding: 10px; align-content: start; }
.gx-t { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; font-size: 11px; text-align: center; cursor: default; outline: none; }
.gx-t .fr { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px #c9c9c9; padding: 6px; box-sizing: border-box; }
.gx-t img { max-width: 100%; max-height: 100%; box-shadow: 1px 1px 2px rgba(0,0,0,.35); background: #fff; }
.gx-t span { max-width: 100%; padding: 0 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-t small { opacity: .75; }
.gx-t.sel .fr { box-shadow: inset 0 0 0 2px var(--sel-bg); background: #dbe6f8; }
.gx-t.sel span { background: var(--sel-bg); color: var(--sel-text); }
.gx-t:focus-visible span { outline: 1px dotted currentColor; }
.gx-alb { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; padding: 12px; align-content: start; }
.gx-a { font-size: 12px; color: var(--field-text) !important; text-decoration: none; min-width: 0; }
.gx-a:hover b { text-decoration: underline; }
.gx-a .st { position: relative; height: 112px; width: 150px; margin-bottom: 4px; }
.gx-a .st img { position: absolute; width: 118px; height: 88px; object-fit: cover; border: 4px solid #fff; box-shadow: 1px 1px 3px rgba(0,0,0,.4); background: #fff; }
.gx-a .st img:nth-child(1) { left: 20px; top: 4px; transform: rotate(-6deg); }
.gx-a .st img:nth-child(2) { left: 8px; top: 10px; transform: rotate(4deg); }
.gx-a .st img:last-child { left: 14px; top: 14px; transform: none; }
.gx-a .st.empty span { position: absolute; left: 30px; top: 10px; font-size: 64px; }
.gx-a b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-a small { opacity: .75; }
.gx-tasks { overflow: auto; padding: 8px; font-size: 12px; background: var(--win); color: var(--text); }
.gx-box { margin-bottom: 10px; box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi); }
.gx-box h4 { margin: 0; padding: 4px 8px; font-size: 12px; background: var(--title-from, #000080); color: #fff; }
.gx-box > div { padding: 6px 8px; display: flex; flex-direction: column; gap: 5px; }
.gx-box a { color: var(--link, #00e); text-decoration: none; }
.gx-box a:hover { text-decoration: underline; }
.gx-det span, .gx-det b { word-break: break-word; }
:where(html.theme-xp) .gx-tasks { background: linear-gradient(#7ba2e7, #6375d6); }
:where(html.theme-xp) .gx-box { background: #d6dff7; color: #000; border-radius: 3px 3px 0 0; box-shadow: none; }
:where(html.theme-xp) .gx-box h4 { color: #215dc6; background: linear-gradient(90deg, #fff, #c6d3f7); border-radius: 3px 3px 0 0; padding: 5px 8px; }
:where(html.theme-xp) .gx-box a { color: #215dc6; }
:where(html.theme-xp) .gx-box a:hover { color: #428eff; }
:where(html.theme-xp) .gx-t.sel .fr { box-shadow: inset 0 0 0 2px #316ac5; }
.gx-dropzone { position: absolute; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(49, 106, 197, .25); border: 3px dashed #316ac5; pointer-events: none; }
.gx-dropzone[hidden] { display: none; }
.gx-dropzone div { padding: 12px 20px; background: var(--win); color: var(--text); font-size: 16px; font-weight: bold; box-shadow: 2px 2px 6px rgba(0,0,0,.4); }
/* Hochladen */
.ms-dlg.gx-updlg { width: min(680px, calc(100vw - 20px)); }
.gx-up { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.gx-drop { border: 2px dashed var(--lo); padding: 14px; text-align: center; background: var(--field); color: var(--field-text); line-height: 1.7; }
.gx-drop.on { border-color: var(--sel-bg); background: var(--hover); }
.gx-uprow { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.gx-uprow label { flex: 1 1 180px; }
.gx-uprow select, .gx-uprow input { width: 100%; }
.gx-queue { max-height: 34vh; min-height: 60px; overflow: auto; background: var(--field); color: var(--field-text); box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.gx-queue > p { margin: 0; padding: 18px; text-align: center; }
.gx-q { display: grid; grid-template-columns: 52px minmax(0, 1fr) 120px 110px auto; gap: 8px; align-items: center; padding: 3px 4px; border-bottom: 1px solid #ddd; }
.gx-qimg { width: 52px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.gx-qimg img { max-width: 52px; max-height: 40px; }
.gx-qname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-qname small { display: block; opacity: .7; }
.gx-qst { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-q.bad .gx-qst { color: #c00; }
.gx-q.ok .gx-qst { color: #070; }
.gx-bar { height: 12px; border: 1px solid var(--lo); background: #fff; }
.gx-bar i { display: block; height: 100%; background: repeating-linear-gradient(90deg, #000080 0 8px, transparent 8px 10px); transition: width .2s; }
:where(html.theme-xp) .gx-bar i { background: repeating-linear-gradient(90deg, #3dbb3d 0 8px, transparent 8px 10px); }
.gx-form { display: flex; flex-direction: column; gap: 8px; }
.gx-form input[type=text], .gx-form textarea, .gx-form select { width: 100%; box-sizing: border-box; }
/* Bildbetrachter (wie die Bild- und Faxanzeige) */
.gx-view { position: absolute; inset: 0; z-index: 60; display: flex; flex-direction: column; background: #fff; color: #000; outline: none; }
.gx-view[hidden] { display: none; }
.gx-vtop { display: flex; align-items: center; gap: 8px; padding: 3px 6px; font-size: 12px; border-bottom: 1px solid var(--lo); background: var(--win); color: var(--text); }
.gx-vtop [data-v-title] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: bold; }
.gx-vtop .spacer { flex: 1; }
.gx-vmid { flex: 1; min-height: 0; display: flex; }
.gx-stage { position: relative; flex: 1; min-width: 0; overflow: hidden; background: #fff; touch-action: none; user-select: none; }
.gx-stage img { position: absolute; left: 50%; top: 50%; max-width: none; box-shadow: 2px 2px 6px rgba(0,0,0,.4); background: #fff; }
.gx-stage.zoomed { cursor: grab; }
.gx-stage.zoomed:active { cursor: grabbing; }
.gx-vload { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #666; }
.gx-vnav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; min-width: 0; width: 36px; height: 56px; padding: 0; font-size: 30px; line-height: 1; opacity: 0; transition: opacity .15s; }
.gx-stage:hover .gx-vnav, .gx-vnav:focus-visible { opacity: .85; }
.gx-vnav.prev { left: 6px; } .gx-vnav.next { right: 6px; }
.gx-side { width: 260px; flex: none; overflow: auto; padding: 8px 10px; font-size: 12px; background: #ffffe1; border-left: 1px solid #000; }
.gx-side h3 { margin: 0 0 6px; font-size: 13px; }
.gx-side dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 8px; margin: 0 0 8px; }
.gx-side dt { opacity: .7; } .gx-side dd { margin: 0; word-break: break-word; }
.gx-comments { list-style: none; margin: 0 0 8px; padding: 0; }
.gx-comments li { padding: 5px 0; border-bottom: 1px solid #e3e3c0; }
.gx-comments p { margin: 2px 0 0; white-space: pre-wrap; word-break: break-word; }
.gx-cdel { float: right; min-width: 0; padding: 0 5px; font-size: 11px; }
.gx-cform { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.gx-cform textarea { width: 100%; box-sizing: border-box; }
.gx-film { display: flex; gap: 6px; justify-content: center; padding: 5px; background: #eef2fb; border-top: 1px solid #c3d0ee; overflow: hidden; }
.gx-film button { min-width: 0; width: 60px; height: 46px; padding: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; opacity: .65; }
.gx-film button.on { opacity: 1; outline: 2px solid #316ac5; }
.gx-film img { max-width: 100%; max-height: 100%; object-fit: cover; }
.gx-vbar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3px; padding: 5px; background: linear-gradient(#f6f8fd, #dfe7f7); border-top: 1px solid #b9c7e6; }
.gx-vbar button { min-width: 34px; padding-left: 6px; padding-right: 6px; }
.gx-vbar button.pressed { box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--hi); background: var(--hover, #ddd); }
.gx-view.slideshow { background: #000; }
.gx-view.slideshow .gx-stage { background: #000; }
.gx-view.slideshow .gx-film { display: none; }
.gx-viewing > .ex-main, .gx-viewing > .ex-toolbar, .gx-viewing > .ex-address { visibility: hidden; }
@media (max-width: 900px) { .gx-main { grid-template-columns: 170px minmax(0, 1fr); } .gx-tasks { display: none; } }
@media (max-width: 640px) {
  .gx-main { grid-template-columns: minmax(0, 1fr); }
  .gx-search input { width: 120px; }
  .gx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 6px; }
  .gx-alb { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 8px; }
  .gx-a .st { width: 140px; transform: scale(.9); transform-origin: left top; }
  .gx-q { grid-template-columns: 44px minmax(0, 1fr) 70px auto; }
  .gx-q .gx-qst { display: none; }
  .gx-side { position: absolute; left: 0; right: 0; bottom: 0; width: auto; max-height: 50%; border-left: 0; border-top: 1px solid #000; }
  .gx-vmid { position: relative; }
  .gx-film { display: none; }
  .gx-vnav { opacity: .6; }
}
.up-drop { border: 2px dashed var(--lo); background: var(--field); color: var(--field-text); text-align: center; padding: 18px 12px; margin-bottom: 8px; }
.up-drop b { font-size: 15px; }
.up-drop.drop-on { border-color: var(--sel-bg); }
.up-list { width: 100%; }
.up-list td { vertical-align: middle; }
.up-list select { max-width: 100%; }
.up-list tr.blocked td { opacity: .6; }
.up-list .up-name { word-break: break-word; }
.up-bar { display: inline-block; vertical-align: middle; width: 110px; height: 13px; padding: 1px; background: var(--field); box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.up-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--sel-bg) 0 7px, transparent 7px 9px); }
:where(html.theme-xp) .up-bar { border: 1px solid #686868; border-radius: 3px; box-shadow: none; background: #fff; }
:where(html.theme-xp) .up-bar i { background: repeating-linear-gradient(90deg, #2fc83b 0 7px, transparent 7px 9px); }
.up-tabs + .up-page { border: 1px solid var(--lo); box-shadow: inset 1px 1px var(--hi); padding: 10px; background: var(--win); }
.up-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.up-foot .grow { flex: 1; }
@media (max-width: 640px) { .up-list th:nth-child(2), .up-list td:nth-child(2) { display: none; } .up-bar { width: 60px; } }
/* Link-Vorschläge (views/partials/link-form.ejs, views/linkreq-mine.ejs, views/admin/linkreq-*.ejs) */
.ft-tabs { flex-wrap: wrap; margin-bottom: 10px; gap: 2px; }
.ft-tabs a.btn { padding: 3px 10px; }
.ft-tabs a[aria-current] { font-weight: bold; box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--hi), inset 2px 2px var(--lo); background: var(--field); color: var(--field-text); }
.ft-tabs i.n { font-style: normal; display: inline-block; min-width: 16px; padding: 0 4px; border-radius: 8px; background: #d01010; color: #fff; font-size: 11px; text-align: center; }
.lr-page [hidden] { display: none !important; }
.lr-urls { font-family: var(--mono, monospace); min-height: 54px; }
.lr-found { display: flex; gap: 10px; align-items: center; margin: 6px 0; padding: 6px 8px; background: #fffbe0; color: #222; border: 1px solid #c8b860; }
.lr-found .lr-ic { font-size: 26px; line-height: 1; }
.lr-found small { color: #555; }
.lr-kinds { border: 0; padding: 0; margin: 8px 0 4px; display: flex; flex-wrap: wrap; gap: 4px; }
.lr-kinds legend { padding: 0; margin-bottom: 3px; }
.lr-kind { display: inline-block; margin: 0; }
.lr-kind input { position: absolute; opacity: 0; pointer-events: none; }
.lr-kind span { display: inline-block; padding: 3px 10px; background: var(--btn, var(--win)); box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo); cursor: pointer; }
.lr-kind input:checked + span { box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--hi), inset 2px 2px var(--lo); font-weight: bold; background: var(--field); color: var(--field-text); }
.lr-kind input:focus-visible + span { outline: 1px dotted currentColor; outline-offset: -4px; }
.lr-chk { display: flex; align-items: center; gap: 6px; }
.lr-info { margin: 6px 0 0; }
.lr-list { list-style: none; margin: 0; padding: 0; background: var(--field); color: var(--field-text); }
.lr-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 8px 10px; border-bottom: 1px dotted var(--lo); }
.lr-item .lr-ic { font-size: 26px; text-align: center; }
.lr-item h3 { margin: 0; font-size: 13.5px; word-break: break-word; }
.lr-item h3 small { font-weight: normal; }
.lr-item .lr-side { text-align: right; font-size: 12px; }
.lr-item .lr-side form { display: inline; }
.lr-badge { display: inline-block; font-size: 11.5px; font-weight: normal; padding: 0 5px; border: 1px solid #888; margin-left: 4px; vertical-align: 1px; }
.lr-badge.ok { background: #e4f4df; border-color: #4f9a3e; color: #1d5b10; } .lr-badge.run { background: #fff4c8; border-color: #c39a00; color: #5a4500; } .lr-badge.no { background: #fbe0e0; border-color: #c55; color: #7a0000; }
.lr-steps { display: flex; flex-wrap: wrap; row-gap: 3px; font-size: 11.5px; margin: 3px 0 0; }
.lr-steps span { padding: 1px 8px 1px 12px; background: #e3e3e3; color: #555; clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%, 6px 50%); margin-right: -3px; }
.lr-steps span:first-child { clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 0 100%); padding-left: 8px; }
.lr-steps span.d { background: #b9dcb0; color: #144d0d; } .lr-steps span.c { background: var(--sel-bg); color: var(--sel-text); font-weight: bold; } .lr-steps span.x { background: #f2b9b9; color: #6b0000; }
.lr-skip { margin: 3px 0 0; font-size: 12px; color: #6b5000; }
.lr-empty { padding: 24px; text-align: center; }
.lr-items td.lr-off { opacity: .6; }
.lr-items .lr-why { color: #8a3b00; font-size: 12px; }
.lr-url { word-break: break-all; font-size: 12px; }
.lr-filter { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
@media (max-width: 640px) { .lr-item { grid-template-columns: 30px minmax(0, 1fr); } .lr-item .lr-side { grid-column: 2; text-align: left; } .lr-item .lr-ic { font-size: 20px; } }

/* Notizblock */
.np { margin: -10px; height: 100vh; min-height: 240px; display: flex; flex-direction: column; background: var(--win); }
#np-menu { border-bottom: 1px solid var(--lo); }
.np-note, .np-draft { padding: 3px 8px; font-size: 12px; background: #ffffe1; color: #000; border-bottom: 1px solid #b8b890; }
.np-note a, .np-draft a { color: #0000ee; }
.np-draft[hidden] { display: none; }
.np-text { flex: 1; min-height: 0; width: 100%; margin: 0; padding: 2px 4px; resize: none; font: 14px/1.35 "Lucida Console", "Courier New", monospace;
  white-space: pre; overflow: auto; tab-size: 8; overflow-wrap: normal; }
.np.np-wrap .np-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.np[data-size=small] .np-text { font-size: 12px; }
.np[data-size=big] .np-text { font-size: 18px; }
.np .statusbar { flex: none; }
.np-over { color: #c00000; font-weight: bold; }
.np-open-list { max-height: 260px; overflow: auto; padding: 4px; }
.np-open { display: flex; align-items: baseline; gap: 6px; margin: 0; padding: 2px 4px; }
.np-open small { margin-left: auto; }
.np-open:has(input:checked) { background: var(--sel-bg); color: var(--sel-text); }

/* Datei ansehen */
.viewer-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 200px; max-height: 62vh; padding: 8px; overflow: auto;
  background: repeating-conic-gradient(#e6e6e6 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.viewer-stage img, .viewer-stage video { max-width: 100%; max-height: calc(62vh - 20px); object-fit: contain; box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.viewer-stage audio { width: min(420px, 100%); }
.viewer-icon { font-size: 64px; line-height: 1; }
.viewer-desc { white-space: pre-wrap; }

/* Suchen (Fenster) */
.search-row { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; }
.search-row input { flex: 1; min-width: 0; }
.search-filters { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 6px; }
.btn.pressed { box-shadow: inset 1px 1px var(--dark), inset -1px -1px var(--hi), inset 2px 2px var(--lo); background: repeating-conic-gradient(var(--win) 0 25%, #fff 0 50%) 0 0 / 2px 2px; }
.search-group { margin: 8px 0; }
.search-list { list-style: none; margin: 0; padding: 0; }
.search-list a { display: flex; align-items: baseline; gap: 8px; padding: 3px 4px; text-decoration: none; }
.search-list a:hover b { text-decoration: underline; }
.search-list small { margin-left: auto; opacity: .75; text-align: right; }
.search-ic { flex: none; width: 22px; text-align: center; }
.search-ic img { width: 20px; height: 20px; object-fit: cover; vertical-align: middle; }

/* Systemsteuerung (für alle) */
.cpl { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 12px; align-items: start; }
.cpl-side { padding: 10px 12px; color: #fff; background: linear-gradient(170deg, var(--title-to), var(--title-from)); min-height: 200px; }
.cpl-side h2 { margin-top: 0; font-size: 15px; }
.cpl-side a { color: #fff; }
.cpl-main { min-width: 0; }
.cpl-main > h1:first-child { margin-top: 0; }
.cpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px; padding: 8px; background: var(--field); color: var(--field-text);
  box-shadow: inset 1px 1px var(--lo), inset 2px 2px var(--dark), inset -1px -1px var(--hi); }
.cpl-item, .cpl-item:hover, .cpl-item:active { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 6px; min-width: 0;
  text-align: left; font: inherit; color: var(--field-text) !important; text-decoration: none; background: none; box-shadow: none; }
.cpl-item > span { grid-row: 1 / span 2; font-size: 30px; line-height: 1; text-align: center; }
.cpl-item small { opacity: .75; }
.cpl-item:hover b, .cpl-item:focus-visible b { text-decoration: underline; }
.cpl-item:focus-visible { outline: 1px dotted var(--field-text); }
.cpl-h { margin: 14px 0 4px; font-size: 12px; opacity: .85; }
.stat-game { padding: 6px 10px; margin: 6px 0; }
.stat-head { display: flex; flex-wrap: wrap; align-items: end; gap: 6px 14px; }
.stat-head label { margin: 0; }
.stat-head select { display: block; }
.stat-move { margin-left: auto; display: flex; gap: 2px; }
.stat-values td { padding: 1px 10px 1px 0; }
.stat-values td:first-child { opacity: 1; }
.stat-values label.inline { margin: 0; }
.stat-game details { margin-top: 4px; }
.stat-game summary { cursor: pointer; font-size: 12px; }
.pin { color: #9a6a00; }
.drive { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin: 10px 0; }
.drive-pie { width: 160px; height: 160px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px #000, 0 6px 0 -1px #555, 0 6px 0 0 #000; }
.drive-legend td { padding: 2px 12px 2px 0; }
.drive-key { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 1px solid #000; vertical-align: -2px; }
.drive-key.free { background: #f4f4f4; }
.drive-sum td { border-top: 1px solid var(--lo); padding-top: 4px; }
@media (max-width: 640px) {
  .cpl { grid-template-columns: minmax(0, 1fr); }
  .cpl-side { min-height: 0; }
}

/* Profil: Vitrine und ausgeblendete Werte (nur der Besitzer sieht sie, grau) */
.showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; margin: 0 0 10px; }
.showcase .panel { text-align: center; padding: 6px 8px; }
.showcase .panel b { display: block; font-size: 20px; line-height: 1.2; }
.showcase .panel small { display: block; }
.hidden-val, .hidden-game { opacity: .5; }
tr.hidden-val > td:first-child::after, li.hidden-val::after, p.hidden-val::after, fieldset.hidden-val > legend::after { content: ' (ausgeblendet)'; font-size: 10px; }
.showcase a.panel { color: inherit; text-decoration: none; }
.profile-links { margin: 0; padding-left: 0; list-style: none; columns: 2 220px; }
.profile-links li { padding: 2px 0; break-inside: avoid; }
.avatar, img.avatar, .avatar img { aspect-ratio: 1; object-fit: cover; }

/* Profilbild zuschneiden (public/avatar-crop.js) */
.ms-dlg:has(.crop-dlg) { width: min(600px, calc(100vw - 20px)); }
.crop-wrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.crop-area { position: relative; width: min(360px, calc(100vw - 60px)); aspect-ratio: 1; background: #000; overflow: hidden; touch-action: none; cursor: grab;
  box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.crop-area:active { cursor: grabbing; }
.crop-area canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.crop-box { position: absolute; inset: 10%; outline: 1px dashed #fff; box-shadow: 0 0 0 999px rgba(0,0,0,.55); pointer-events: none;
  background: linear-gradient(90deg, transparent calc(33.3% - .5px), rgba(255,255,255,.35) 0 calc(33.3% + .5px), transparent 0 calc(66.6% - .5px), rgba(255,255,255,.35) 0 calc(66.6% + .5px), transparent 0),
    linear-gradient(transparent calc(33.3% - .5px), rgba(255,255,255,.35) 0 calc(33.3% + .5px), transparent 0 calc(66.6% - .5px), rgba(255,255,255,.35) 0 calc(66.6% + .5px), transparent 0); }
.crop-side { display: flex; flex: 1 1 150px; flex-direction: column; gap: 6px; min-width: 0; }
.crop-prev { display: flex; align-items: flex-end; gap: 8px; }
.crop-prev canvas { background: #fff; box-shadow: inset 1px 1px var(--lo), 0 0 0 1px var(--lo); }
.crop-zoom { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.crop-zoom input { flex: 1; min-width: 0; }

/* ================= Windows XP (html.theme-xp, 🖥️ → Darstellung → Fenster und Schaltflächen) =================
   Alles selbst gezeichnet (Verläufe, keine Bilder). Farben über Variablen, die Farbschemata Olivgrün und Silber tauschen nur sie aus.
   Formen mit :where(), damit Sonderknöpfe (Menüeinträge, Taskleiste, Infobereich) ihre eigene Optik behalten. */
html.theme-xp:not(.scheme-nacht) {
  --desktop: #3a6ea5; --win: #ece9d8; --title-from: #0050ee; --title-to: #3d95ff; --text: #000; --link: #0033cc;
  --hi: #fff; --lo: #aca899; --dark: #716f64; --field: #fff; --field-text: #000; --field-link: #0033cc; --hover: #c1d2ee;
}
html.theme-xp {
  --font: Tahoma, Verdana, "Segoe UI", sans-serif;
  --sel-bg: #316ac5; --sel-text: #fff; --accent: #2fb44a; --radius: 3px; --win-radius: 8px; --taskbar-h: 30px;
  --xp-frame: #0054e3; --xp-edge: #0831d9; --xp-off: #7a96df; --xp-title-text: #fff; --xp-title-shadow: 1px 1px #0f1089; --xp-off-text: #d8e4f8;
  --xp-title: linear-gradient(color-mix(in srgb, var(--title-to) 45%, #fff) 0, var(--title-from) 9%, var(--title-from) 42%, color-mix(in srgb, var(--title-to) 55%, var(--title-from)) 88%, color-mix(in srgb, var(--title-to) 60%, var(--title-from)) 93%, color-mix(in srgb, var(--title-from) 75%, #000) 100%);
  --xp-title-off: linear-gradient(#a6b9e8, #7a96df 10%, #7a96df 90%, #6b86d4);
  --xp-tb: radial-gradient(circle at 70% 75%, #2a63e0, #3c82ff 60%, #8fb7ff); --xp-tb-text: #fff; --xp-tb-border: #fff;
  --xp-close: radial-gradient(circle at 70% 75%, #c4401b, #e0623c 55%, #f4a584);
  --xp-bar: linear-gradient(#1f2f86 0, #3165c4 3%, #3682e5 6%, #4490e6 10%, #3883e5 12%, #2b71e0 15%, #2663da 18%, #235bd6 20%, #2258d5 23%, #2157d6 38%, #245ddb 54%, #2562df 86%, #245fdc 89%, #2158d4 92%, #1d4ec0 95%, #1941a5 98%);
  --xp-bar-text: #fff;
  --xp-task: linear-gradient(#5598f6 0, #3c81f3 12%, #3c81f3 80%, #3471e0 100%);
  --xp-task-on: linear-gradient(#174bb0, #1e52b7 20%, #1e52b7 85%, #2259c1);
  --xp-tray: linear-gradient(#0c59b9 1%, #139ee9 6%, #18b5f2 10%, #139beb 14%, #1290e8 19%, #0d8dea 63%, #0d9ff1 81%, #0f9eed 88%, #119be9 91%, #1392e2 94%, #137ed7 97%, #095bc9 100%);
  --xp-tray-edge: #092e8b; --xp-tray-hi: #18bbff;
  --xp-start: linear-gradient(#3d953d 0, #59b759 6%, #6ac46a 11%, #59b659 18%, #4aac4a 32%, #43a443 50%, #3d9c3d 70%, #348f34 86%, #2a7f2a 94%, #1c641c 100%);
  --xp-menu-head: linear-gradient(#1c6ee2, #0f5fd2 10%, #0d5acb 85%, #0b4fb6);
  --xp-bliss: radial-gradient(ellipse 120% 55% at 30% 105%, #4f9c2d 0 60%, transparent 60.3%), radial-gradient(ellipse 90% 50% at 85% 110%, #3f8a24 0 60%, transparent 60.3%),
    radial-gradient(ellipse 30% 9% at 22% 22%, rgba(255,255,255,.75), transparent 70%), radial-gradient(ellipse 25% 7% at 70% 14%, rgba(255,255,255,.6), transparent 70%),
    linear-gradient(#245ccf, #6ea8ef 45%, #b9dcfb 70%);
  accent-color: #316ac5;
}
html.theme-xp.xp-oliv:not(.scheme-nacht) { --title-from: #7f9a4e; --title-to: #c3d197; --link: #3c5a14; --hover: #dfe6c8; }
html.theme-xp.xp-oliv {
  --sel-bg: #93a070; --xp-frame: #8ba169; --xp-edge: #687e46; --xp-off: #bdc9a4; --xp-title-shadow: 1px 1px #4f6127; --xp-off-text: #f2f5e6;
  --xp-title-off: linear-gradient(#e2e7cf, #ccd5b0 10%, #c8d1aa 90%, #b9c497);
  --xp-tb: radial-gradient(circle at 70% 75%, #6f8b3e, #8eaa57 60%, #c9d8a2); --xp-close: radial-gradient(circle at 70% 75%, #b8461d, #d8693f 55%, #f0a786);
  --xp-bar: linear-gradient(#a6b781 0, #e6ecd3 3%, #d2dbb4 6%, #bccb92 14%, #aebe80 25%, #a6b877 50%, #a1b371 80%, #96a866 92%, #869a57 98%);
  --xp-bar-text: #fff;
  --xp-task: linear-gradient(#c3cf9e 0, #a9ba7b 15%, #a2b474 80%, #93a565 100%);
  --xp-task-on: linear-gradient(#7d8f4f, #879a58 20%, #879a58 85%, #92a463);
  --xp-tray: linear-gradient(#c9d5a8, #e0e7c8 8%, #d1dbb2 30%, #c9d4a7 70%, #bccb96 95%, #a8ba80); --xp-tray-edge: #7f9354; --xp-tray-hi: #eef3dc;
  --xp-menu-head: linear-gradient(#9fb46f, #8aa058 15%, #849b52 85%, #6f8540);
}
html.theme-xp.xp-silber:not(.scheme-nacht) { --title-from: #b4b4c8; --title-to: #f4f4f8; --win: #ece9d8; --link: #2e4f8f; --hover: #dcdce8; }
html.theme-xp.xp-silber {
  --sel-bg: #b2b4bf; --sel-text: #000; --xp-frame: #a5a5bb; --xp-edge: #8586a0; --xp-off: #c9cad6; --xp-title-text: #000; --xp-title-shadow: 0 1px #fff; --xp-off-text: #808096;
  --xp-title-off: linear-gradient(#f8f8fa, #e4e4ec 15%, #dcdce6 85%, #cdcdda);
  --xp-tb: radial-gradient(circle at 30% 25%, #fff, #e8e8f0 50%, #b8b8cc); --xp-tb-text: #3c3c5a; --xp-tb-border: #8a8aa4;
  --xp-close: radial-gradient(circle at 30% 25%, #fff, #f0e4e4 45%, #d9a8a8);
  --xp-bar: linear-gradient(#9c9cb6 0, #f8f8fb 3%, #ededf3 8%, #dedee8 20%, #d4d4e0 50%, #cacad8 80%, #bdbdcd 92%, #a5a5bb 98%);
  --xp-bar-text: #000;
  --xp-task: linear-gradient(#ffffff 0, #ececf3 15%, #e2e2ec 80%, #cfcfdd 100%);
  --xp-task-on: linear-gradient(#b5b5c8, #c4c4d4 20%, #c4c4d4 85%, #d0d0de);
  --xp-tray: linear-gradient(#e6e6ee, #fafafc 8%, #ececf3 40%, #e1e1ea 80%, #cfcfdc); --xp-tray-edge: #9a9ab2; --xp-tray-hi: #fff;
  --xp-menu-head: linear-gradient(#e2e2ec, #c6c6d6 15%, #b9b9cc 85%, #a1a1b8);
}
/* Desktop: selbst gezeichnete grüne Hügel, solange niemand einen anderen Hintergrund wählt */
html.theme-xp body.desktop { background: var(--xp-bliss); background-color: var(--desktop); background-attachment: fixed; }
html.theme-xp body.embed { background: var(--win); }

/* Fenster */
:where(html.theme-xp) .window { padding: 0; border: 3px solid var(--xp-frame); border-top: 0; border-radius: var(--win-radius) var(--win-radius) 0 0;
  box-shadow: 0 0 0 1px var(--xp-edge), 2px 3px 8px rgba(0,0,0,.3); }
:where(html.theme-xp) .window > .titlebar:first-child { margin: 0 -3px; border-radius: 7px 7px 0 0; }
:where(html.theme-xp) .titlebar { min-height: 26px; padding: 3px 5px 3px 8px; background: var(--xp-title); color: var(--xp-title-text);
  font: bold 13px "Trebuchet MS", Tahoma, sans-serif; text-shadow: var(--xp-title-shadow); }
:where(html.theme-xp) .dwin:not(.active) { border-color: var(--xp-off); box-shadow: 0 0 0 1px var(--xp-off), 2px 3px 6px rgba(0,0,0,.2); }
:where(html.theme-xp) .dwin:not(.active) .titlebar { background: var(--xp-title-off); color: var(--xp-off-text); text-shadow: none; }
:where(html.theme-xp) .tb-btn { width: 21px; height: 21px; margin-left: 1px; border-radius: 3px; color: var(--xp-tb-text); background: var(--xp-tb); text-shadow: none;
  font: bold 12px/19px Tahoma, sans-serif; box-shadow: inset 0 0 0 1px var(--xp-tb-border), inset -1px -1px 3px rgba(0,0,60,.45); }
:where(html.theme-xp) .tb-btn:where(:hover) { filter: brightness(1.12); }
:where(html.theme-xp) .tb-btn:where([data-act=close], [data-x], [data-act=cancel]) { background: var(--xp-close); }
:where(html.theme-xp) .dwin:not(.active) .tb-btn { filter: saturate(.4) brightness(1.1); }
:where(html.theme-xp) .dwin .statusbar, :where(html.theme-xp) .statusbar { background: var(--win); }
:where(html.theme-xp) .statusbar > * { box-shadow: none; border-left: 1px solid #d6d2c2; }
:where(html.theme-xp) .statusbar > *:first-child { border-left: 0; }
:where(html.theme-xp) .dwin .grip { background: radial-gradient(circle, #fff 0 1px, transparent 1.4px) 1px 1px / 4px 4px, radial-gradient(circle, #a09f92 0 1px, transparent 1.4px) 0 0 / 4px 4px;
  clip-path: polygon(100% 0, 100% 100%, 0 100%); }

/* Knöpfe, Felder, Gruppen, Reiter, Listen, Menüs */
:where(html.theme-xp) button, :where(html.theme-xp) .btn, :where(html.theme-xp) input[type=submit] {
  border-radius: var(--radius); color: #000; background: linear-gradient(#fff, #f6f5f0 45%, #ecebe3 85%, #d8d5c6);
  box-shadow: inset 0 0 0 1px #003c74, inset -2px -2px 0 -1px #c9c5b5, inset 2px 2px 0 -1px #fff; }
:where(html.theme-xp) button:where(:hover:not(:disabled)), :where(html.theme-xp) .btn:where(:hover) {
  box-shadow: inset 0 0 0 1px #003c74, inset 0 2px 0 0 #ffeaa8, inset 0 -2px 0 0 #e5a01a, inset 2px 0 0 0 #fbd889, inset -2px 0 0 0 #f2b33d; }
:where(html.theme-xp) button:active, :where(html.theme-xp) .btn:active { background: linear-gradient(#e2e1d9, #e7e5dc 80%, #f2f1ea); box-shadow: inset 0 0 0 1px #003c74, inset 1px 1px 2px rgba(0,0,0,.28); }
:where(html.theme-xp) button:focus-visible, :where(html.theme-xp) .btn:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
:where(html.theme-xp) button:disabled { color: #a19f92; background: #f5f4ea; box-shadow: inset 0 0 0 1px #c9c7ba; cursor: default; }
:where(html.theme-xp) button.wui-primary, :where(html.theme-xp) button.def { box-shadow: inset 0 0 0 1px #003c74, inset 0 0 0 3px #a9c5f6; }
:where(html.theme-xp) :is(input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], input[type=search], input[type=datetime-local], input:not([type]), select, textarea) {
  border-radius: 0; box-shadow: inset 0 0 0 1px #7f9db9; }
:where(html.theme-xp) :is(.panel, .sunken, .lob-list, .res, .ex-pane, .cpl-grid, .tb-search, .icon-pick, .space-bar, table.list) { box-shadow: inset 0 0 0 1px #7f9db9; }
:where(html.theme-xp) .groupbox { border: 1px solid #d0d0bf; border-radius: 4px; box-shadow: none; }
:where(html.theme-xp) .groupbox > legend { color: #0046d5; }
:where(html.theme-xp) .menubar a:hover, :where(html.theme-xp) .menubar a.active { background: var(--sel-bg); color: var(--sel-text); }
:where(html.theme-xp) .tabs { gap: 1px; }
:where(html.theme-xp) .tabs button { margin-top: 2px; padding: 3px 12px; border-radius: 3px 3px 0 0; background: linear-gradient(#fff, #fcfcfe 40%, #ecebe5); box-shadow: inset 0 0 0 1px #919b9c; }
:where(html.theme-xp) .tabs button[aria-selected=true] { margin-top: 0; padding-bottom: 5px; font-weight: normal; background: #fcfcfe; box-shadow: inset 1px 0 #919b9c, inset -1px 0 #919b9c, inset 0 3px #ffc83c, inset 0 4px #e6a700; }
:where(html.theme-xp) .tab-page { background: #fcfcfe; box-shadow: inset 0 0 0 1px #919b9c; }
:where(html.theme-xp) table.list th { background: linear-gradient(#fff, #f3f2ea 70%, #ebeadb); box-shadow: inset -1px 0 #e0dfd2, inset 0 -3px #e2decd; }
:where(html.theme-xp) .ms-dd { background: #fff; box-shadow: 0 0 0 1px #aca899, 2px 2px 3px rgba(0,0,0,.3); }
:where(html.theme-xp) .ms-mi:hover, :where(html.theme-xp) .ms-mi:focus-visible, :where(html.theme-xp) .ms-mtop.open, :where(html.theme-xp) .ms-mtop:focus-visible { background: var(--sel-bg); color: var(--sel-text); }
:where(html.theme-xp) .ms-mi[disabled] { text-shadow: none; color: #aca899; }
:where(html.theme-xp) .ms-mi[disabled]:hover { background: none; color: #aca899; }
:where(html.theme-xp) .ms-dlg { padding: 0; }
:where(html.theme-xp) .notify-item:hover { background: var(--sel-bg); color: var(--sel-text); }
:where(html.theme-xp) .board-post .head, :where(html.theme-xp) .gb-entry .head, :where(html.theme-xp) .changelog h2 { background: linear-gradient(90deg, var(--title-from), var(--title-to)); }

/* Taskleiste: kein flacher Balken, sondern Verlauf mit dunkler Kante oben und heller Lichtlinie darunter, glänzender grüner Start-Knopf
   mit Schatten nach rechts, gepunktete Griffleiste, plastische Task-Knöpfe und abgesetzter, hellerer Infobereich */
:where(html.theme-xp) .taskbar { padding: 0; gap: 0; background: var(--xp-bar); color: var(--xp-bar-text); box-shadow: none; }
:where(html.theme-xp) .taskbar .start { position: relative; z-index: 1; height: 100%; margin-right: 4px; padding: 0 22px 0 8px; border-radius: 0 12px 12px 0; color: #fff;
  font: italic bold 18px "Trebuchet MS", "Franklin Gothic Medium", Tahoma, sans-serif; letter-spacing: .3px; text-shadow: 1px 1px 2px #1a3e10, 0 0 1px rgba(0,0,0,.4);
  background: var(--xp-start); box-shadow: inset 0 1px 1px rgba(255,255,255,.55), inset 0 -2px 2px rgba(0,40,0,.35), inset -2px 0 2px rgba(0,40,0,.3), 3px 0 4px rgba(0,0,20,.5); }
:where(html.theme-xp) .taskbar .start:hover { filter: brightness(1.08); }
:where(html.theme-xp) .taskbar .start[aria-expanded=true] { filter: brightness(.88); box-shadow: inset 1px 2px 4px rgba(0,30,0,.6), 3px 0 4px rgba(0,0,20,.5); }
:where(html.theme-xp) .taskbar .start .start-logo { font-style: normal; font-size: 15px; }
:where(html.theme-xp) .taskbar .start .start-text { text-transform: lowercase; }
:where(html.theme-xp) .taskbar .grip { display: block; flex: none; width: 5px; height: 22px; margin: 0 5px 0 2px;
  background: radial-gradient(circle, rgba(255,255,255,.6) 0 1px, transparent 1.5px) 0 0 / 4px 4px, radial-gradient(circle, rgba(0,0,40,.45) 0 1px, transparent 1.5px) 1px 1px / 4px 4px; }
:where(html.theme-xp) .taskbar .tasks { align-items: center; gap: 3px; height: 100%; padding: 0 4px; }
:where(html.theme-xp) .taskbar .task, :where(html.theme-xp) .taskbar button.task { height: 24px; padding: 2px 8px; border-radius: 3px; font-weight: normal; color: var(--xp-bar-text);
  background: var(--xp-task); box-shadow: inset -1px 0 rgba(0,0,0,.3), inset 1px 1px 1px rgba(255,255,255,.35), inset 0 -1px rgba(0,0,40,.25), 0 1px 0 rgba(0,0,40,.2); }
:where(html.theme-xp) .taskbar button.task:hover { filter: brightness(1.08); }
:where(html.theme-xp) .taskbar .task.pressed, :where(html.theme-xp) .taskbar button.task.pressed { font-weight: normal; background: var(--xp-task-on); box-shadow: inset 0 0 1px 1px rgba(0,0,0,.2), inset 1px 1px 2px rgba(0,0,0,.65); }
:where(html.theme-xp) .taskbar .tray { height: 100%; margin-left: auto; padding: 0 12px 0 10px; gap: 6px; color: var(--xp-bar-text); text-shadow: 0 0 1px rgba(0,0,60,.5);
  background: var(--xp-tray); border-left: 1px solid var(--xp-tray-edge); box-shadow: inset 1px 0 1px var(--xp-tray-hi), -1px 0 2px rgba(0,0,40,.3); }
:where(html.theme-xp) .tray-btn { color: inherit; }
:where(html.theme-xp) .tray-btn:hover, :where(html.theme-xp) .tray-btn[aria-expanded=true] { box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); background: rgba(255,255,255,.12); }
:where(html.theme-xp) .tb-search { height: 22px; border-radius: 2px; background: #fff; box-shadow: inset 0 0 0 1px #0c3fa6, inset 1px 1px 2px rgba(0,0,0,.25); margin: 0 4px 0 0; }
:where(html.theme-xp.xp-silber) .tb-search, :where(html.theme-xp.xp-oliv) .tb-search { box-shadow: inset 0 0 0 1px var(--xp-tray-edge), inset 1px 1px 2px rgba(0,0,0,.2); }
:where(html.theme-xp) .search-pop { left: 128px; }
html.theme-xp.xp-silber .taskbar .tray, html.theme-xp.xp-silber .taskbar .task { text-shadow: none; }

/* Startmenü: weiß mit blauem Kopf, Name der Seite oben wie der Benutzername bei XP */
:where(html.theme-xp) .startmenu { padding: 40px 3px 4px; min-width: 230px; border-radius: 7px 7px 0 0; background: #fff; color: #000;
  box-shadow: 0 0 0 1px var(--xp-edge), inset 0 0 0 1px var(--xp-frame), 3px 3px 8px rgba(0,0,0,.4); }
:where(html.theme-xp) .startmenu::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 36px; padding: 0 12px; border-radius: 7px 7px 0 0;
  writing-mode: horizontal-tb; transform: none; font: bold 15px/36px "Trebuchet MS", Tahoma, sans-serif; color: var(--xp-title-text);
  text-shadow: var(--xp-title-shadow); background: var(--xp-menu-head); box-shadow: inset 0 -2px #e8913b; }
:where(html.theme-xp) .startmenu a, :where(html.theme-xp) .startmenu button.menu-item { color: #000; border-radius: 0; }
:where(html.theme-xp) .startmenu a:hover, :where(html.theme-xp) .startmenu button.menu-item:hover,
:where(html.theme-xp) .startmenu .sub.open > .sub-toggle { background: var(--sel-bg); color: var(--sel-text); }
:where(html.theme-xp) .startmenu .submenu { background: #fff; box-shadow: 0 0 0 1px #aca899, 2px 2px 4px rgba(0,0,0,.3); }
:where(html.theme-xp) .startmenu hr { border-top-color: #d6d2c2; border-bottom: 0; }
@media (hover: hover) and (pointer: fine) {
  :where(html.theme-xp) .startmenu .sub:hover > .sub-toggle { background: var(--sel-bg); color: var(--sel-text); }
}

/* Desktop-Symbole, Widget und Suche */
:where(html.theme-xp) .dicon .t { background: none; text-shadow: 1px 1px 1px #000, 0 0 3px #000; }
:where(html.theme-xp) .dicon.sel .t, :where(html.theme-xp) .dicon.drop-on .t { background: #316ac5; color: #fff; outline: 0; text-shadow: none; }
:where(html.theme-xp) .desk-band { border: 1px solid #316ac5; background: rgba(49,106,197,.25); mix-blend-mode: normal; }
:where(html.theme-xp) .lob-group, :where(html.theme-xp) .res h4 { background: #eef3fb; color: #215dc6; border-bottom-color: #c5d3ee; }
:where(html.theme-xp) .lobby-widget .titlebar { min-height: 22px; padding: 2px 4px 2px 7px; font-size: 12px; }
:where(html.theme-xp) .lobby-widget .tb-btn { width: 18px; height: 18px; font-size: 11px; line-height: 16px; }
:where(html.theme-xp) .cpl-side { background: linear-gradient(#7ba2e7, #6375d6); }
:where(html.theme-xp.xp-oliv) .cpl-side { background: linear-gradient(#c3d197, #8fa463); }
:where(html.theme-xp.xp-silber) .cpl-side { background: linear-gradient(#e8e8f0, #b6b6c8); color: #000; }
:where(html.theme-xp.xp-silber) .cpl-side a { color: #000; }
:where(html.theme-xp) .ex-toolbar, :where(html.theme-xp) .ex-address { background: linear-gradient(#fbfaf6, #ece9d8); }
:where(html.theme-xp) .np-text { box-shadow: inset 0 0 0 1px #7f9db9; }
:where(html.theme-xp) .np-note, :where(html.theme-xp) .np-draft, :where(html.theme-xp) .msg { border-color: #c7c39b; border-radius: 3px; }
:where(html.theme-xp) .np-note, :where(html.theme-xp) .np-draft { border-radius: 0; }
/* Mit Lauftext beginnen Symbole und Widget darunter */
.ms-mi span:only-child { margin-left: 0; padding-left: 0; }
.scale-row { display: flex; align-items: center; gap: 6px; }
.scale-row input { flex: 1; min-width: 0; }
.scale-row output { min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.display-panel label[hidden] { display: none; }
.icon-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 8px; }
.anon-name { opacity: .75; }

/* ===== Kartenspiele: eigene Oberflächen für UNO, Flip 7 und Pilli Pilli ===== */
/* Der Rahmen (Werkzeugleiste, Seitenfach, Plaketten, Leiste, Holz, Filz und Kartenrücken des Gastgebers) bleibt; jedes
   Spiel legt nur einen Schimmer über den Filz, ordnet die Mitte neu und hat eigene Karten. Größen hängen an der Kartenbreite
   (--c, in der Mitte --pc bzw. --tc nach der Größe des Filzes). Karten bekommen hier keine Animation: die macht das Fenster. */
.cg-uno, .cg-flip7, .cg-pilli { --cg-font: "Arial Black", "Segoe UI Black", "Helvetica Neue", Arial, "Liberation Sans", sans-serif; }
.cg-uno .bj-card, .cg-flip7 .bj-card, .cg-pilli .bj-card { border-radius: calc(var(--c) * .12); }
.cg-uno .bj-card.back, .cg-flip7 .bj-card.back, .cg-pilli .bj-card.back { border: calc(var(--c) * .05 + 1.5px) solid #fff; outline: 0; }
.cg-uno .pk-pot, .cg-flip7 .pk-pot, .cg-pilli .pk-pot { padding: 3px 14px; border-radius: 999px; font-weight: bold; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
/* Stapel: verdeckte Karten leicht versetzt übereinander, die Zahl als Plakette */
.un-deck, .f7-deck { position: relative; flex: none; }
.un-deck .bj-card, .f7-deck .bj-card, .pp-deck .bj-card { position: absolute; left: 0; top: 0; margin: 0; transform: translate(calc(var(--i, 0) * -3px), calc(var(--i, 0) * -3px)); }
.un-count, .f7-count { position: absolute; right: -9px; bottom: -7px; z-index: 3; min-width: 28px; padding: 2px 6px; border-radius: 999px; background: #151515; color: #fff;
  font: bold 12px/1.3 var(--font); text-align: center; box-shadow: 0 0 0 2px #fff, 0 2px 4px rgba(0,0,0,.4); }
.un-deck.ok, .f7-deck.ok { cursor: pointer; }
.un-deck.ok .un-backs, .f7-deck.ok .f7-backs { display: block; filter: drop-shadow(0 0 4px #ffe600) drop-shadow(0 0 9px rgba(255,230,0,.7)); }
.un-cta, .f7-cta { position: absolute; left: 50%; top: 100%; z-index: 3; transform: translate(-50%, 9px); padding: 1px 10px; border-radius: 999px; white-space: nowrap;
  background: #ffe600; color: #151515; font-weight: bold; font-size: .9em; box-shadow: 0 2px 5px rgba(0,0,0,.4); }

/* ---- UNO: kräftige Farben, großer Ablagestapel im leuchtenden Ring der aktuellen Farbe, Pfeile für die Richtung ---- */
.cg-uno { --un-r: #e8261a; --un-y: #f6c200; --un-g: #26a03a; --un-b: #1663d6; --un-k: #1b1b1f; }
.ks-tisch.cg-uno .bj-felt::after { background: var(--felt-pat, none),
  radial-gradient(circle at 21% 27%, rgba(232,38,26,.2), transparent 17%), radial-gradient(circle at 79% 27%, rgba(246,194,0,.17), transparent 17%),
  radial-gradient(circle at 21% 73%, rgba(38,160,58,.2), transparent 17%), radial-gradient(circle at 79% 73%, rgba(22,99,214,.22), transparent 17%),
  radial-gradient(ellipse at 50% 35%, var(--felt-hi, #1f7a3a), var(--felt-lo, #0d4d22) 80%); }
.cg-uno .pk-motto { font: italic 900 calc(var(--c) * .45) var(--cg-font); color: #ffd800; opacity: .85; letter-spacing: .04em;
  text-shadow: 0 0 1px #1b1b1f, 1px 1px 0 #1b1b1f, -1px -1px 0 #1b1b1f, 1px -1px 0 #1b1b1f, -1px 1px 0 #1b1b1f, 0 2px 4px rgba(0,0,0,.45); }
/* Karte: weißer Rand, Farbfläche mit Glanz, schräges weißes Oval mit dem Wert */
.cg-uno .un-card { --f: var(--un-k); color: #fff; background: #fff; border: 0; outline: 0; overflow: hidden; font-family: var(--cg-font); }
.cg-uno .un-card::before { content: ''; position: absolute; inset: calc(var(--c) * .055); border-radius: calc(var(--c) * .09);
  background: radial-gradient(ellipse at 28% 14%, rgba(255,255,255,.3), transparent 50%), linear-gradient(160deg, color-mix(in srgb, var(--f) 80%, #fff), var(--f) 45%, color-mix(in srgb, var(--f) 70%, #000)); }
.cg-uno .un-card.un-r, .cg-uno .un-pick.un-r, .cg-uno .un-dot.un-r { --f: var(--un-r); }
.cg-uno .un-card.un-y, .cg-uno .un-pick.un-y, .cg-uno .un-dot.un-y { --f: var(--un-y); }
.cg-uno .un-card.un-g, .cg-uno .un-pick.un-g, .cg-uno .un-dot.un-g { --f: var(--un-g); }
.cg-uno .un-card.un-b, .cg-uno .un-pick.un-b, .cg-uno .un-dot.un-b { --f: var(--un-b); }
.cg-uno .un-oval { left: 12%; right: 12%; top: 17%; bottom: 17%; background: #fff; transform: rotate(-32deg); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.cg-uno .un-oval span { transform: rotate(32deg); font: italic 900 calc(var(--c) * .5)/1 var(--cg-font); letter-spacing: -.05em; color: var(--f);
  text-shadow: 1px 1px 0 #1b1b1f, -1px -1px 0 rgba(27,27,31,.5), 1px -1px 0 rgba(27,27,31,.5), -1px 1px 0 rgba(27,27,31,.5); }
.cg-uno .un-y .un-oval span { color: #f0b400; }
.cg-uno .un-w .un-oval { background: conic-gradient(from -32deg, var(--un-r) 0 25%, var(--un-b) 0 50%, var(--un-y) 0 75%, var(--un-g) 0); box-shadow: 0 0 0 calc(var(--c) * .03) #fff, 0 1px 2px rgba(0,0,0,.3); }
.cg-uno .un-w .un-oval span { color: #fff; text-shadow: 0 0 3px #000, 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
.cg-uno .un-corner { left: 10%; top: 5%; z-index: 1; font: italic 900 calc(var(--c) * .19)/1 var(--cg-font); color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.6); }
.cg-uno .un-corner.br { left: auto; top: auto; right: 10%; bottom: 5%; }
.cg-uno .un-card.mini { --c: 22px; margin-right: 2px; }
.cg-uno .un-mini { gap: 0; }
/* Mitte: Ziehstapel, Ablagestapel im Ring, daneben die gewünschte Farbe; darunter, wer dran ist */
.cg-uno .cg-center { width: 70%; gap: calc(var(--c) * .14); --pc: clamp(46px, min(8.4cqw, 14cqh), 104px); }
.un-table { display: flex; align-items: center; justify-content: center; gap: calc(var(--pc) * .4); --glow: #f2f2f2; }
.un-table.un-c-r { --glow: #ff4a30; } .un-table.un-c-y { --glow: #ffd21a; } .un-table.un-c-g { --glow: #3ed653; } .un-table.un-c-b { --glow: #3f8cff; }
.un-deck { width: calc(var(--pc) * .86); height: calc(var(--pc) * .86 * 1.41); }
.un-deck .bj-card { --c: calc(var(--pc) * .86); }
.un-disc { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: calc(var(--pc) * 2.3); height: calc(var(--pc) * 2.3); }
.un-disc::before { content: ''; position: absolute; inset: 12%; border-radius: 50%; border: 3px solid var(--glow);
  background: radial-gradient(circle, rgba(0,0,0,.28), rgba(0,0,0,.08) 70%); box-shadow: 0 0 20px 2px var(--glow), inset 0 0 18px color-mix(in srgb, var(--glow) 45%, transparent); }
.un-glow { position: absolute; inset: -28%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--glow) 38%, transparent), transparent 64%); }
.un-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--glow); filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); animation: un-spin 16s linear infinite; }
.un-ring.ccw { animation-direction: reverse; }
.un-ring path { fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; }
.un-ring polygon { fill: currentColor; }
@keyframes un-spin { to { transform: rotate(360deg); } }
.un-pile { position: relative; width: var(--pc); height: calc(var(--pc) * 1.41); }
.un-pile .bj-card { --c: var(--pc); position: absolute; left: 0; top: 0; margin: 0; transform: rotate(var(--r, 0deg)); }
.un-pile .bj-card.under { filter: brightness(.88); }
.un-plus { position: absolute; right: -6%; bottom: 10%; z-index: 3; padding: 2px 10px; border-radius: 999px; background: #151515; color: #fff; border: 3px solid #fff;
  font: italic 900 calc(var(--pc) * .3)/1.1 var(--cg-font); transform: rotate(10deg); box-shadow: 0 0 0 2px #ff4a30, 0 0 16px #ff4a30, 0 3px 6px rgba(0,0,0,.45); animation: un-bump .9s ease-in-out infinite alternate; }
@keyframes un-bump { to { transform: rotate(10deg) scale(1.12); } }
.un-colour { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: calc(var(--pc) * .9); text-shadow: 0 1px 2px #000; }
.cg-uno .un-dot { width: calc(var(--pc) * .38); height: calc(var(--pc) * .38); background: var(--f, #888); border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.6), 0 0 16px 2px var(--glow), 0 2px 4px rgba(0,0,0,.5); }
.cg-uno .un-dot.un-w { background: conic-gradient(var(--un-r) 0 25%, var(--un-b) 0 50%, var(--un-y) 0 75%, var(--un-g) 0); }
.un-colour b { font-size: 1.05em; }
.un-colour small { opacity: .85; white-space: nowrap; font-size: .8em; }
.cg-uno .un-status.hit { background: rgba(170,14,0,.85); }
.cg-uno .un-catch { padding: 6px 16px; border-radius: 999px; background: #ffe600; color: #151515; font-weight: bold; box-shadow: 0 0 0 2px #151515, 0 0 16px rgba(255,230,0,.8);
  animation: un-shout .7s ease-in-out infinite alternate; }
@keyframes un-shout { to { transform: scale(1.06); } }
.cg-uno .un-reveal { padding: 4px 10px; border-radius: 8px; background: rgba(0,0,0,.45); }
.un-houseline { padding: 1px 10px; border-radius: 999px; background: rgba(0,0,0,.32); font-size: .78em; opacity: .92; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* Plätze: verdeckte Karten als Fächer mit der Zahl, oben am Tisch zur Mitte hin */
.cg-uno .un-fan { --fc: clamp(15px, calc(var(--c) * .5), 30px); position: relative; display: inline-block; width: calc(var(--fc) * 2.7); height: calc(var(--fc) * 1.72); }
.cg-uno .un-fan-in { position: absolute; inset: 0; }
.cg-uno .un-fan .bj-card { --c: var(--fc); position: absolute; left: 50%; bottom: 0; margin: 0 0 0 calc(var(--fc) * -.5); border-width: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.45);
  transform-origin: 50% 150%; transform: rotate(calc((var(--i) - (var(--n) - 1) / 2) * min(12deg, calc(80deg / var(--n))))); }
.cg-uno .pk-seat.up .un-fan-in { transform: rotate(180deg); }
.un-num { position: absolute; right: -8px; bottom: -6px; z-index: 2; min-width: 22px; padding: 1px 5px; border-radius: 999px; background: #fff; color: #151515;
  font: bold 11px/1.35 var(--font); text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
.pk-seat.up .un-num { bottom: auto; top: -6px; }
.un-fan.one .un-num { background: var(--un-r); color: #fff; }
.cg-uno .un-hit .un-fan .bj-card { box-shadow: 0 0 0 2px #ff4a30, 0 0 10px #ff4a30; }
.cg-uno .bj-badge.un-said { background: var(--un-r); color: #ffd800; font-style: italic; }
.cg-uno .bj-badge.un-last { background: #151515; color: #fff; }
/* Eigene Hand und der große UNO-Knopf */
.un-dock { display: flex; align-items: center; gap: 12px; max-width: 100%; }
.un-dock-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cg-uno .un-hand { --c: clamp(40px, 5.6vw, 68px); padding-top: 14px; }
.cg-uno .un-hand .bj-card { margin-right: calc(var(--c) * -1 * clamp(.14, (var(--n, 7) - 8) * .045, .52)); }
.cg-uno .un-hand .bj-card.ok { transform: translateY(-6px); box-shadow: 0 0 0 3px #ffe066, 0 8px 16px rgba(0,0,0,.4); }
.cg-uno .un-hand .bj-card.ok:hover, .cg-uno .un-hand .bj-card.ok:focus-visible { transform: translateY(-14px); z-index: 2; outline: 0; }
.cg-uno .un-hand .bj-card.dim { filter: saturate(.5) brightness(.8); }
.cg-uno .un-hand .bj-card.picked { transform: translateY(-18px); box-shadow: 0 0 0 3px #ffe066, 0 0 16px rgba(255,224,102,.8), 0 8px 16px rgba(0,0,0,.4); z-index: 3; }
.cg-uno .un-picks { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.cg-uno .un-pick { min-width: 58px; padding: 5px 10px; border-radius: 999px; background: var(--f); color: #fff; font-weight: bold; text-shadow: 0 1px 1px rgba(0,0,0,.5);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #333, 0 3px 6px rgba(0,0,0,.35); }
.cg-uno .un-pick.un-y { color: #151515; text-shadow: none; }
.cg-uno .un-pick:active { transform: translateY(1px); }
.cg-uno button.un-uno { flex: none; position: relative; width: 104px; height: 74px; min-width: 0; padding: 0; border-radius: 50%; transform: rotate(-12deg);
  background: radial-gradient(ellipse at 38% 28%, #ff7d5f, var(--un-r) 50%, #990e04); color: #ffd800; font: italic 900 27px/1 var(--cg-font); letter-spacing: -.02em;
  text-shadow: 0 0 1px #151515, 1px 1px 0 #151515, -1px -1px 0 #151515, 1px -1px 0 #151515, -1px 1px 0 #151515, 0 3px 6px rgba(0,0,0,.5);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #151515, 0 6px 14px rgba(0,0,0,.45); }
.cg-uno button.un-uno span { display: inline-block; transform: rotate(-3deg); }
.cg-uno button.un-uno.go { animation: un-pulse 1.3s ease-in-out infinite; }
.cg-uno button.un-uno:active:not(:disabled) { transform: rotate(-12deg) translateY(2px); }
.cg-uno button.un-uno:focus-visible { outline: 2px dotted #fff; outline-offset: -10px; }
.cg-uno button.un-uno:disabled { opacity: .45; filter: grayscale(.7); cursor: default; }
@keyframes un-pulse { 50% { transform: rotate(-12deg) scale(1.08); box-shadow: 0 0 0 3px #fff, 0 0 0 5px #151515, 0 6px 14px rgba(0,0,0,.45), 0 0 0 12px rgba(255,216,0,.35), 0 0 26px 8px rgba(255,216,0,.55); } }
/* Rundenende */
.un-over { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 16px 12px; border-radius: 14px; background: rgba(0,0,0,.55);
  box-shadow: 0 0 0 2px rgba(255,255,255,.18), 0 8px 24px rgba(0,0,0,.4); text-shadow: 0 1px 2px #000; }
.un-over-head { font-weight: bold; color: #ffd800; }
.un-over-pts { font: italic 900 calc(var(--c) * .7)/1 var(--cg-font); color: #fff; text-shadow: 0 0 12px var(--un-r), 0 3px 6px rgba(0,0,0,.5); }
.un-over-hands { display: flex; flex-direction: column; gap: 3px; }
.un-over-hands > div { display: flex; align-items: center; gap: 8px; }
.un-over-name { min-width: 60px; text-align: right; }
.un-over-next { font-size: .9em; opacity: .9; }
/* Hausregeln im Tisch-Dialog */
.un-rules { padding: 4px 8px 6px; }
.un-rules label.inline { display: flex; align-items: flex-start; margin: 5px 0; }
.un-rules label.inline input { margin-top: 2px; }
.un-rules label span { display: flex; flex-direction: column; }
.un-rules label small { opacity: .8; }

/* ---- Flip 7: Spielshow mit Leuchtschrift, Strahlen auf dem Filz und einer Reihe vor jedem Platz ---- */
.cg-flip7 { --f7-gold: #ffd54a; --f7-teal: #35e0d0; --f7-violet: #5b2a9e; --f7-night: #240046; }
.ks-tisch.cg-flip7 .bj-felt::after { background: var(--felt-pat, none),
  radial-gradient(ellipse 30% 55% at 50% -6%, rgba(255,236,170,.26), transparent 72%),
  repeating-conic-gradient(from 0deg at 50% 46%, rgba(255,255,255,.04) 0 6deg, transparent 6deg 12deg),
  radial-gradient(ellipse at 50% 35%, var(--felt-hi, #1f7a3a), var(--felt-lo, #0d4d22) 80%); }
.cg-flip7 .pk-motto { font: italic 900 calc(var(--c) * .45) var(--cg-font); color: var(--f7-gold); opacity: .85; letter-spacing: .06em; text-shadow: 0 2px 0 var(--f7-night), 0 0 14px rgba(255,213,74,.5); }
/* Karten: Zahlen cremeweiß mit kräftiger Ziffer, Bonus orange, ×2 lila, Aktionen bunt */
.cg-flip7 .f7-card { border: 0; overflow: hidden; color: #333; background: linear-gradient(165deg, #fffdf7, #f3e7cb); font-family: var(--cg-font); }
.cg-flip7 .f7-card::before { content: ''; position: absolute; inset: calc(var(--c) * .06); border-radius: calc(var(--c) * .08); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); pointer-events: none; }
.cg-flip7 .f7-big { font: 900 calc(var(--c) * .54)/1 var(--cg-font); letter-spacing: -.05em; text-shadow: 0 1px 0 rgba(255,255,255,.8), 0 2px 3px rgba(0,0,0,.2); }
.cg-flip7 .f7-ix { position: absolute; left: 10%; top: 5%; font: 900 calc(var(--c) * .16)/1 var(--cg-font); opacity: .75; }
.cg-flip7 .f7-ix.br { left: auto; top: auto; right: 10%; bottom: 5%; transform: rotate(180deg); }
.cg-flip7 .f7-card.mini .f7-ix, .cg-flip7 .f7-card.mini .f7-lbl { display: none; }
.cg-flip7 .f7-v0, .cg-flip7 .f7-v7 { color: #3a3a3a; } .cg-flip7 .f7-v1, .cg-flip7 .f7-v8 { color: #c2007a; } .cg-flip7 .f7-v2, .cg-flip7 .f7-v9 { color: #c45f00; }
.cg-flip7 .f7-v3, .cg-flip7 .f7-v10 { color: #12882a; } .cg-flip7 .f7-v4, .cg-flip7 .f7-v11 { color: #0a62c2; } .cg-flip7 .f7-v5, .cg-flip7 .f7-v12 { color: #6c1fb0; } .cg-flip7 .f7-v6 { color: #d40000; }
.cg-flip7 .f7-m { color: #fff; background: linear-gradient(160deg, #ffd060, #ff9a1a 55%, #ec7200); }
.cg-flip7 .f7-m .f7-big { font-size: calc(var(--c) * .42); text-shadow: 0 2px 0 rgba(140,50,0,.55); }
.cg-flip7 .f7-x2 { background: linear-gradient(160deg, #c39bff, #7a2fe0 55%, #4d12a8); }
.cg-flip7 .f7-x2 .f7-big { text-shadow: 0 2px 0 #2a0a6a; }
.cg-flip7 .f7-a { color: #fff; }
.cg-flip7 .f7-a .f7-big { font-size: calc(var(--c) * .44); text-shadow: none; }
.cg-flip7 .f7-lbl { font: 800 calc(var(--c) * .13)/1.1 var(--font); margin-top: 3px; }
.cg-flip7 .f7-freeze { color: #003049; background: linear-gradient(160deg, #d6f6ff, #5cc8ef 60%, #2a9fd6); }
.cg-flip7 .f7-flip3 { color: #4a3000; background: linear-gradient(160deg, #fff59a, #ffd23a 60%, #f4a900); }
.cg-flip7 .f7-second { background: linear-gradient(160deg, #ff9d8f, #ec3b2e 60%, #b5170e); }
.cg-flip7 .f7-card.f7-dup { transform: rotate(11deg) translateY(2px); margin-left: calc(var(--c) * -.5); box-shadow: 0 0 0 2px #ff2a2a, 0 0 10px rgba(255,0,0,.7); }
/* Die Reihe am Platz: Karten, sieben Lämpchen, Punkte der Runde und der Balken bis zum Ziel */
.cg-flip7 .pk-seat.folded .pk-hole { opacity: 1; }
.cg-flip7 .cg-seat.folded .f7-row { opacity: 1; }
.f7-lane { --mc: clamp(17px, calc(var(--c) * .56), 32px); position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 3px; min-width: calc(var(--mc) * 3.4);
  padding: 4px 7px 5px; border-radius: 10px; background: rgba(20,0,40,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 2px 6px rgba(0,0,0,.3); }
.f7-lane .f7-row { flex-wrap: nowrap; gap: 0; min-height: calc(var(--mc) * 1.41); }
.cg-flip7 .f7-lane .bj-card.mini { --c: var(--mc); margin: 0; }
.cg-flip7 .f7-lane .bj-card.mini + .bj-card.mini { margin-left: calc(var(--mc) * -.2); }
.cg-flip7 .f7-lane .bj-card.mini.f7-dup { margin-left: calc(var(--mc) * -.45); }
.f7-meta { display: flex; align-items: center; gap: 6px; line-height: 1; }
.f7-bulbs { display: inline-flex; gap: 2px; }
.f7-bulbs i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.f7-bulbs i.on { background: radial-gradient(circle at 35% 35%, #fffbe0, var(--f7-gold) 60%); box-shadow: 0 0 5px var(--f7-gold); }
.f7-rp { font: 900 1em/1 var(--cg-font); color: var(--f7-gold); text-shadow: 0 1px 2px #000; }
.f7-meter { display: flex; position: relative; width: 100%; min-width: 56px; height: 6px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.15); }
.f7-meter i { display: block; height: 100%; background: linear-gradient(90deg, #1fb5c8, var(--f7-teal)); }
.f7-meter i.r { background: repeating-linear-gradient(45deg, rgba(255,213,74,.95) 0 3px, rgba(255,213,74,.5) 3px 6px); }
.f7-stamp { position: absolute; left: 50%; top: calc(var(--mc) * .75 + 4px); z-index: 2; transform: translate(-50%, -50%) rotate(-9deg); padding: 1px 7px; border: 2px solid currentColor; border-radius: 6px;
  background: rgba(0,0,0,.6); color: #fff; font: 900 .78em/1.25 var(--cg-font); letter-spacing: .03em; white-space: nowrap; text-transform: uppercase; }
.st-bust .f7-stamp { color: #ff7070; } .st-frozen .f7-stamp { color: #9be7ff; } .st-stayed .f7-stamp { color: #c6ffad; }
.f7-stamp.win { color: var(--f7-gold); background: rgba(70,0,110,.8); box-shadow: 0 0 12px var(--f7-gold); }
.f7-lane.st-bust .f7-row { filter: grayscale(.7) brightness(.75); }
.f7-lane.st-frozen { box-shadow: inset 0 0 0 2px #9be7ff, 0 0 12px rgba(155,231,255,.5); background: rgba(10,50,80,.55); }
.f7-lane.st-flip7 { box-shadow: inset 0 0 0 2px var(--f7-gold), 0 0 18px rgba(255,213,74,.75); }
.f7-lane.pick { cursor: pointer; box-shadow: inset 0 0 0 2px #ffe600, 0 0 14px rgba(255,230,0,.8); animation: f7-call 1s ease-in-out infinite alternate; }
@keyframes f7-call { to { box-shadow: inset 0 0 0 2px #fff, 0 0 22px rgba(255,230,0,.95); } }
/* Mitte: Leuchtschrift, Stapel zum Aufdecken, Ablage und die Ansage */
.cg-flip7 .cg-center { width: 50%; --pc: clamp(40px, min(6.8cqw, 12.5cqh), 84px); }
.f7-stage { display: flex; flex-direction: column; align-items: center; gap: calc(var(--pc) * .2); }
.f7-marquee { display: inline-flex; align-items: center; gap: .18em; padding: .12em .6em .14em; border: 3px dotted var(--f7-gold); border-radius: 14px;
  background: linear-gradient(180deg, #7b2cbf, #3c096c); color: #fff; font: italic 900 calc(var(--pc) * .4)/1 var(--cg-font); letter-spacing: .03em;
  text-shadow: 0 2px 0 var(--f7-night); box-shadow: 0 0 0 3px var(--f7-night), 0 0 18px rgba(255,213,74,.45), inset 0 0 12px rgba(0,0,0,.45); animation: f7-bulbs 1.4s steps(2) infinite; }
.f7-marquee b { font-size: 1.55em; line-height: .85; color: var(--f7-gold); text-shadow: 0 2px 0 #b35c00, 0 0 12px rgba(255,213,74,.7); }
.f7-marquee.small { font-size: calc(var(--pc) * .3); }
@keyframes f7-bulbs { 50% { border-color: #fff6c4; box-shadow: 0 0 0 3px var(--f7-night), 0 0 28px rgba(255,213,74,.7), inset 0 0 12px rgba(0,0,0,.45); } }
.f7-piles { display: flex; align-items: flex-start; gap: calc(var(--pc) * .32); padding-bottom: 18px; }
.f7-piles > .f7-marquee { align-self: center; margin-top: -4px; }
.f7-deck { width: var(--pc); height: calc(var(--pc) * 1.41); }
.f7-deck .bj-card { --c: var(--pc); }
.f7-disc { position: relative; display: flex; flex-direction: column; align-items: center; width: var(--pc); height: calc(var(--pc) * 1.41); }
.f7-disc .bj-card { --c: var(--pc); margin: 0; transform: rotate(-9deg); filter: brightness(.85); }
.f7-disc small { position: absolute; top: 100%; margin-top: 6px; white-space: nowrap; font-size: .85em; text-shadow: 0 1px 2px #000; }
.f7-empty { display: block; width: var(--pc); height: calc(var(--pc) * 1.41); border: 2px dashed rgba(255,255,255,.35); border-radius: calc(var(--pc) * .13); }
.cg-flip7 .f7-ticker { background: linear-gradient(90deg, rgba(36,0,70,.88), rgba(110,40,180,.88)); box-shadow: 0 0 0 1px rgba(255,213,74,.6), 0 2px 8px rgba(0,0,0,.35); }
.f7-board { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 14px 12px; border-radius: 14px; background: rgba(24,0,48,.75);
  box-shadow: 0 0 0 2px rgba(255,213,74,.55), 0 8px 24px rgba(0,0,0,.45); text-shadow: 0 1px 2px #000; }
.cg-flip7 .f7-sum td { padding: 2px 6px; vertical-align: middle; }
.cg-flip7 .f7-sum .num { font-variant-numeric: tabular-nums; }
.f7-sum-bar { width: 90px; }
.f7-sum tr.st-bust td { opacity: .7; }
.f7-sum tr.st-flip7 td:first-child { color: var(--f7-gold); font-weight: bold; }
.f7-next { font-size: .9em; opacity: .9; }
/* Eigene Reihe unten in der Leiste */
.f7-mine { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.cg-flip7 .f7-hand { --c: clamp(38px, 5.4vw, 64px); padding-top: 6px; }
.cg-flip7 .f7-hand .bj-card { margin-right: calc(var(--c) * .07); cursor: default; }
.cg-flip7 .f7-hand .bj-card.f7-dup { margin-left: calc(var(--c) * -.45); }
.f7-none { padding: 10px 0; opacity: .75; }
.f7-mysum { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; font-size: 12px; }
.f7-mysum b { color: #6c1fb0; font-family: var(--cg-font); }
.f7-mysum .f7-meter { width: 130px; min-width: 0; background: rgba(0,0,0,.14); box-shadow: inset 0 1px 1px rgba(0,0,0,.25); }
.f7-mysum .f7-bulbs i { background: #cfcfcf; box-shadow: inset 0 0 0 1px rgba(0,0,0,.3); }
.f7-mysum .f7-bulbs i.on { background: radial-gradient(circle at 35% 35%, #fff6c4, #f2b200 60%); box-shadow: 0 0 0 1px #8a6400; }
.cg-flip7 .f7-mine.st-flip7 .f7-hand { filter: drop-shadow(0 0 6px #f2b200); }
.cg-flip7 button.f7-hit b { color: #0b6b2b; }
.cg-flip7 button.f7-stay b { color: #9a1010; }

/* ---- Pilli Pilli: warmer Chili-Schimmer, scharfe Karten, Ansage und Stiche als Punkte, der Stich vor den Plätzen ---- */
.cg-pilli { --pp-red: #d62d12; --pp-gold: #ffd84a; }
.ks-tisch.cg-pilli .bj-felt::after { background: var(--felt-pat, none),
  radial-gradient(ellipse 44% 40% at 50% 46%, rgba(255,110,40,.18), transparent 72%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23ff6a3d' fill-opacity='.08'%3E%3Cpath d='M26 30c6-3 13 0 14 8 1 13-9 28-25 34 8-9 12-19 11-29-1-6-2-10 0-13z'/%3E%3Cpath d='M96 92c6-3 13 0 14 8 1 13-9 28-25 34 8-9 12-19 11-29-1-6-2-10 0-13z'/%3E%3C/g%3E%3Cg fill='%2393e08f' fill-opacity='.08'%3E%3Cpath d='M27 31c0-6 3-10 9-12-2 4-3 8-2 12z'/%3E%3Cpath d='M97 93c0-6 3-10 9-12-2 4-3 8-2 12z'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 140px 140px,
  radial-gradient(ellipse at 50% 35%, var(--felt-hi, #1f7a3a), var(--felt-lo, #0d4d22) 80%); }
.cg-pilli .pk-motto { font: italic 900 calc(var(--c) * .4) var(--cg-font); color: #ff7a3d; opacity: .85; letter-spacing: .05em; text-shadow: 0 2px 0 #4a0a00, 0 0 12px rgba(255,90,30,.5); }
/* Karten: je höher, desto röter (--h), dazu eine bis drei Chilis; der Joker dunkellila mit Gold */
.cg-pilli .pp-card { --h: 20; border: 0; overflow: hidden; color: hsl(var(--h), 92%, 36%); font-family: var(--cg-font);
  background: radial-gradient(ellipse at 50% 125%, hsl(var(--h), 100%, 60%, .5), transparent 62%), linear-gradient(165deg, #fffaf0, hsl(var(--h), 100%, 90%)); }
.cg-pilli .pp-card::before { content: ''; position: absolute; inset: calc(var(--c) * .06); border-radius: calc(var(--c) * .08); box-shadow: inset 0 0 0 1px hsl(var(--h), 80%, 40%, .25); pointer-events: none; }
.cg-pilli .pp-num { font: 900 calc(var(--c) * .48)/1 var(--cg-font); letter-spacing: -.05em; text-shadow: 0 1px 0 #fff, 0 2px 3px rgba(120,20,0,.22); }
.cg-pilli .pp-lbl { font-size: calc(var(--c) * .14); letter-spacing: -.12em; margin-top: 3px; }
.cg-pilli .pp-ix { position: absolute; left: 10%; top: 5%; font: 900 calc(var(--c) * .16)/1 var(--cg-font); opacity: .8; }
.cg-pilli .pp-joker { color: var(--pp-gold); background: radial-gradient(circle at 50% 38%, #9440d0, #3b0f62 75%); }
.cg-pilli .pp-joker::before { box-shadow: inset 0 0 0 1px rgba(255,216,74,.5); }
.cg-pilli .pp-joker .pp-num { color: var(--pp-gold); text-shadow: 0 2px 0 #2a0845; }
.cg-pilli .pp-joker .pp-lbl { letter-spacing: .02em; font-weight: bold; }
.cg-pilli .pp-hand { --c: clamp(40px, 5.6vw, 66px); padding-top: 12px; }
.cg-pilli .pp-hand .bj-card { margin-right: calc(var(--c) * .06); }
.cg-pilli .pp-hand .bj-card.ok { transform: translateY(-5px); box-shadow: 0 0 0 3px #ffe066, 0 8px 16px rgba(0,0,0,.4); }
.cg-pilli .pp-hand .bj-card.ok:hover, .cg-pilli .pp-hand .bj-card.ok:focus-visible { transform: translateY(-13px); outline: 0; }
.cg-pilli .pp-hand .bj-card.dim { filter: saturate(.75) brightness(.92); }
.pp-none { padding: 10px 0; opacity: .75; }
.cg-pilli button.pp-bidbtn { min-width: 36px; padding: 4px 0; font-size: 15px; }
.pp-bids { display: inline-flex; gap: 4px; }
/* Am Platz: verdeckte Karten, dann Ansage (Scheibe), ein Punkt pro angesagtem Stich und die Pilis als Chili */
.pp-seatbox { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.pk-seat.up .pp-seatbox { flex-direction: row; }
.cg-pilli .pp-backs { --bc: clamp(14px, calc(var(--c) * .45), 26px); display: inline-flex; padding-right: calc(var(--bc) * .55); }
.cg-pilli .pp-backs .bj-card { --c: var(--bc); margin-right: calc(var(--bc) * -.55); border-width: 2px; }
.pp-tally { display: inline-flex; align-items: center; gap: 5px; padding: 2px 4px 2px 3px; border-radius: 999px; background: rgba(50,0,0,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 2px 4px rgba(0,0,0,.3); }
.pp-score { display: inline-flex; align-items: center; gap: 4px; }
.pp-bid { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #fff; color: #8a1200; font: 900 11px/1 var(--cg-font); }
.pp-bid.open { background: rgba(255,255,255,.25); color: #fff; }
.pp-bid.exact { background: #8af08f; color: #0a4a12; }
.pp-pips { display: inline-flex; gap: 2px; }
.pp-pips i { width: 8px; height: 8px; border-radius: 50%; }
.pp-pips i.need { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75); }
.pp-pips i.got { background: var(--pp-gold); box-shadow: 0 0 4px var(--pp-gold); }
.pp-pips i.over { background: #ff3b1f; box-shadow: 0 0 4px #ff3b1f; }
.pp-chili { display: inline-flex; align-items: center; gap: 1px; height: 18px; padding: 0 6px 0 3px; border-radius: 999px; background: #fff1e2; color: #a01800; font: 900 11px/18px var(--cg-font); }
.pp-chili.hot { background: var(--pp-red); color: #fff; box-shadow: 0 0 8px rgba(255,80,30,.85); }
.cg-pilli .pp-took .ks-face { box-shadow: 0 0 0 1px var(--dark), 0 0 0 3px var(--pp-gold), 0 0 0 4px #000, 0 0 16px 4px #ffb300; }
/* Mitte: der Stich liegt vor den Plätzen, darunter der Rest des Stapels, welcher Stich läuft und wer dran ist */
.cg-pilli .cg-center { width: 64%; gap: 6px; --tc: clamp(32px, min(5.8cqw, 10cqh), 66px); }
.pp-arena { position: relative; width: 100%; height: calc(var(--tc) * 3.3); }
.pp-arena::before { content: ''; position: absolute; left: 50%; top: 50%; width: min(100%, calc(var(--tc) * 7)); height: calc(var(--tc) * 3.3); transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,90,30,.24), rgba(120,10,0,.14) 55%, transparent 72%); }
.pp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; }
.pp-hub { display: inline-flex; align-items: center; gap: 5px; text-shadow: 0 1px 2px #000; }
.pp-hub > b { font: 900 calc(var(--tc) * .34)/1 var(--cg-font); color: var(--pp-gold); }
.pp-hub > b small { font-size: .6em; color: #fff; }
.pp-hub > small { font-size: .72em; opacity: .85; letter-spacing: .08em; text-transform: uppercase; }
.pp-deck { position: relative; display: block; width: calc(var(--tc) * .44); height: calc(var(--tc) * .62); margin-right: 4px; }
.cg-pilli .pp-deck .pp-backs { display: block; padding: 0; }
.cg-pilli .pp-deck .bj-card { --c: calc(var(--tc) * .44); margin: 0; border-width: 2px; }
.pp-play { position: absolute; z-index: 1; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cg-pilli .pp-play .bj-card { --c: var(--tc); margin: 0; }
.cg-pilli .pp-play small { max-width: calc(var(--tc) * 1.7); padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.5); font-size: .8em; text-shadow: none; }
.cg-pilli .pp-play.win .bj-card { box-shadow: 0 0 0 3px var(--pp-gold), 0 0 18px #ffb300, 0 4px 10px rgba(0,0,0,.4); }
.cg-pilli .pp-play.win small { background: var(--pp-gold); color: #5a1200; font-weight: bold; }
.cg-pilli .pp-status { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(90deg, rgba(100,12,0,.88), rgba(180,44,0,.88)); }
.cg-pilli .pp-status.won { background: linear-gradient(90deg, #ffc21a, #ff7a1a); color: #3a0a00; text-shadow: none; }
.pp-meter { display: inline-flex; gap: 3px; }
.pp-meter i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); }
.pp-meter i.on { background: var(--pp-gold); box-shadow: 0 0 5px var(--pp-gold); }
.cg-pilli .pp-last { padding: 1px 10px; border-radius: 999px; background: rgba(0,0,0,.3); }
.pp-board { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 14px 12px; border-radius: 14px; background: rgba(50,6,0,.75);
  box-shadow: 0 0 0 2px rgba(255,122,61,.6), 0 8px 24px rgba(0,0,0,.45); text-shadow: 0 1px 2px #000; }
.pp-board-head { font-weight: bold; font-size: 1.1em; color: #ffb27a; }
.pp-sum td, .pp-sum th { padding: 1px 6px; }
.pp-sum th { font-weight: normal; opacity: .8; }
.pp-sum tr.exact td:first-child { color: #8af08f; }
.pp-next { font-size: .9em; opacity: .9; }

/* Schmale Fenster und Handys */
@media (max-width: 760px) {
  .cg-uno .ks-plate, .cg-flip7 .ks-plate, .cg-pilli .ks-plate { min-width: 0; max-width: 92px; padding: 2px 5px 3px; }
  .cg-uno .ks-plate small, .cg-flip7 .ks-plate small, .cg-pilli .ks-plate small { font-size: 10px; overflow: hidden; text-overflow: ellipsis; }
  .cg-uno .cg-center { width: 62%; --pc: clamp(40px, min(13cqw, 11cqh), 70px); }
  .un-table { flex-wrap: wrap; row-gap: 4px; }
  .un-colour { flex-direction: row; flex-basis: 100%; justify-content: center; gap: 8px; }
  .cg-uno .un-colour .un-dot { width: 18px; height: 18px; }
  .un-dock { gap: 8px; }
  .cg-uno .un-hand { --c: clamp(34px, 10vw, 46px); }
  .cg-uno .un-hand .bj-card { margin-right: calc(var(--c) * -1 * clamp(.12, (var(--n, 7) - 4) * .1, .62)); }
  .cg-uno button.un-uno { width: 80px; height: 58px; font-size: 21px; }
  .cg-flip7 .cg-center { width: 56%; --pc: clamp(36px, min(11cqw, 9cqh), 60px); }
  .f7-lane { --mc: clamp(15px, calc(var(--c) * .62), 24px); padding: 3px 4px 4px; min-width: 0; }
  .cg-flip7 .f7-lane .bj-card.mini + .bj-card.mini { margin-left: calc(var(--mc) * -.38); }
  .f7-bulbs i { width: 5px; height: 5px; }
  .cg-flip7 .f7-hand { --c: clamp(32px, 9vw, 44px); }
  .cg-pilli .cg-center { width: 70%; --tc: clamp(30px, min(10cqw, 8cqh), 50px); }
  .cg-pilli .pp-hand { --c: clamp(36px, 11vw, 48px); }
  /* Plätze ganz links und rechts rücken etwas zur Mitte, damit am Rand nichts abgeschnitten wird */
  .cg-uno .pk-seat.at-w, .cg-flip7 .pk-seat.at-w, .cg-pilli .pk-seat.at-w { margin-left: 14px; }
  .cg-uno .pk-seat.at-e, .cg-flip7 .pk-seat.at-e, .cg-pilli .pk-seat.at-e { margin-left: -14px; }
  /* Hochkant ist oben und unten Platz, an den Seiten nicht: Leuchtschrift über die Stapel, Stich-Zähler über die Ansage */
  .f7-piles { display: grid; grid-template-columns: auto auto; justify-content: center; column-gap: calc(var(--pc) * .7); row-gap: 8px; }
  .f7-piles > .f7-marquee { order: -1; grid-column: 1 / -1; justify-self: center; margin: 0; }
  .pp-foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .un-ring, .un-plus, .cg-uno .un-catch, .cg-uno button.un-uno.go, .f7-marquee, .f7-lane.pick { animation: none; }
  .cg-uno button.un-uno.go { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #151515, 0 0 0 9px #ffd800, 0 6px 14px rgba(0,0,0,.45); }
}

/* ================= Messenger: ICU (XP-Design, wie ICQ) und DSN (98-Design, wie der MSN Messenger) ================= */
/* Wörter, die je nach Design anders heißen */
html.theme-xp .only-98, html:not(.theme-xp) .only-xp { display: none !important; }
/* Status-Symbole: DSN-Männchen, im XP-Design die ICU-Blume (Bilder unten) */
.st { display: inline-block; width: 1em; height: 1em; min-width: 14px; min-height: 14px; background: no-repeat center / contain; vertical-align: -2px; flex: none; font-style: normal; }
.st.st-online { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='4.6' r='3.2' fill='%2335b534' stroke='%231b6b1a' stroke-width='.7'/%3E%3Cpath d='M2 16 C2 10.5 4.5 8.8 8 8.8 S14 10.5 14 16 Z' fill='%2335b534' stroke='%231b6b1a' stroke-width='.7'/%3E%3C/svg%3E"); }
html.theme-xp .st.st-online { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='%2335b534' stroke='%231b6b1a' stroke-width='.6'%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(0 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(60 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(120 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(180 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(240 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(300 8 8)'/%3E%3C/g%3E%3Ccircle cx='8' cy='8' r='2.9' fill='%23fff' stroke='%231b6b1a' stroke-width='.7'/%3E%3Ccircle cx='8' cy='8' r='1.4' fill='%231d2a1d'/%3E%3Ccircle cx='8.5' cy='7.5' r='.45' fill='%23fff'/%3E%3C/svg%3E"); }
.st.st-away { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='4.6' r='3.2' fill='%23f2b51d' stroke='%23946400' stroke-width='.7'/%3E%3Cpath d='M2 16 C2 10.5 4.5 8.8 8 8.8 S14 10.5 14 16 Z' fill='%23f2b51d' stroke='%23946400' stroke-width='.7'/%3E%3Ccircle cx='12.3' cy='12.3' r='3.3' fill='%23fff' stroke='%23946400' stroke-width='.8'/%3E%3Cpath d='M12.3 10.6 V12.4 H13.7' stroke='%23333' stroke-width='.8' fill='none'/%3E%3C/svg%3E"); }
html.theme-xp .st.st-away { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='%23f2b51d' stroke='%23946400' stroke-width='.6'%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(0 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(60 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(120 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(180 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(240 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(300 8 8)'/%3E%3C/g%3E%3Ccircle cx='8' cy='8' r='2.9' fill='%23fff' stroke='%23946400' stroke-width='.7'/%3E%3Ccircle cx='8' cy='8.4' r='1.3' fill='%23222'/%3E%3Cpath d='M5.4 7.2 H10.6' stroke='%23946400' stroke-width='1.2'/%3E%3C/svg%3E"); }
.st.st-dnd { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='4.6' r='3.2' fill='%23dc3434' stroke='%238a1515' stroke-width='.7'/%3E%3Cpath d='M2 16 C2 10.5 4.5 8.8 8 8.8 S14 10.5 14 16 Z' fill='%23dc3434' stroke='%238a1515' stroke-width='.7'/%3E%3Ccircle cx='12.3' cy='12.3' r='3.3' fill='%23c00' stroke='%23fff' stroke-width='.8'/%3E%3Crect x='10.6' y='11.8' width='3.4' height='1' fill='%23fff'/%3E%3C/svg%3E"); }
html.theme-xp .st.st-dnd { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='%23dc3434' stroke='%238a1515' stroke-width='.6'%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(0 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(60 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(120 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(180 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(240 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(300 8 8)'/%3E%3C/g%3E%3Ccircle cx='8' cy='8' r='2.9' fill='%23fff' stroke='%238a1515' stroke-width='.7'/%3E%3Crect x='6' y='7.4' width='4' height='1.3' fill='%23c00'/%3E%3C/svg%3E"); }
.st.st-invisible { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg stroke-dasharray='1.2 1'%3E%3Ccircle cx='8' cy='4.6' r='3.2' fill='%23ffffff' stroke='%238a8a8a' stroke-width='.7'/%3E%3Cpath d='M2 16 C2 10.5 4.5 8.8 8 8.8 S14 10.5 14 16 Z' fill='%23ffffff' stroke='%238a8a8a' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E"); }
html.theme-xp .st.st-invisible { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='%23ffffff' stroke='%238a8a8a' stroke-width='.6' stroke-dasharray='1.2 1'%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(0 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(60 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(120 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(180 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(240 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(300 8 8)'/%3E%3C/g%3E%3Ccircle cx='8' cy='8' r='2.9' fill='%23fff' stroke='%238a8a8a' stroke-width='.7'/%3E%3Ccircle cx='8' cy='8' r='1.4' fill='%231d2a1d'/%3E%3Ccircle cx='8.5' cy='7.5' r='.45' fill='%23fff'/%3E%3C/svg%3E"); }
.st.st-offline { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg opacity='.8'%3E%3Ccircle cx='8' cy='4.6' r='3.2' fill='%23d24a4a' stroke='%238a2020' stroke-width='.7'/%3E%3Cpath d='M2 16 C2 10.5 4.5 8.8 8 8.8 S14 10.5 14 16 Z' fill='%23d24a4a' stroke='%238a2020' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E"); }
html.theme-xp .st.st-offline { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='%23d24a4a' stroke='%238a2020' stroke-width='.6'%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(0 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(60 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(120 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(180 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(240 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(300 8 8)'/%3E%3C/g%3E%3Ccircle cx='8' cy='8' r='2.9' fill='%23fff' stroke='%238a2020' stroke-width='.7'/%3E%3Cpath d='M5.6 8.2 Q8 9.6 10.4 8.2' fill='none' stroke='%23333' stroke-width='1'/%3E%3C/svg%3E"); }
.st.st-wait { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='4.6' r='3.2' fill='%23ecd04a' stroke='%238a7210' stroke-width='.7'/%3E%3Cpath d='M2 16 C2 10.5 4.5 8.8 8 8.8 S14 10.5 14 16 Z' fill='%23ecd04a' stroke='%238a7210' stroke-width='.7'/%3E%3Ccircle cx='12.3' cy='12.3' r='3.3' fill='%23fff' stroke='%238a7210' stroke-width='.8'/%3E%3Ctext x='12.3' y='14.3' font-size='5.5' font-weight='bold' text-anchor='middle' fill='%238a7210' font-family='Tahoma,sans-serif'%3E?%3C/text%3E%3C/svg%3E"); }
html.theme-xp .st.st-wait { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='%23ecd04a' stroke='%238a7210' stroke-width='.6'%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(0 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(60 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(120 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(180 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(240 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(300 8 8)'/%3E%3C/g%3E%3Ccircle cx='8' cy='8' r='2.9' fill='%23fff' stroke='%238a7210' stroke-width='.7'/%3E%3Ctext x='8' y='10.2' font-size='6' font-weight='bold' text-anchor='middle' fill='%238a7210' font-family='Tahoma,sans-serif'%3E?%3C/text%3E%3C/svg%3E"); }
.st.st-logo { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Ccircle cx='8' cy='4.6' r='3.2' fill='%2335b534' stroke='%231b6b1a' stroke-width='.7'/%3E%3Cpath d='M2 16 C2 10.5 4.5 8.8 8 8.8 S14 10.5 14 16 Z' fill='%2335b534' stroke='%231b6b1a' stroke-width='.7'/%3E%3Cg transform='translate(8 0)'%3E%3Ccircle cx='8' cy='4.6' r='3.2' fill='%232f6fd8' stroke='%23123f8a' stroke-width='.7'/%3E%3Cpath d='M2 16 C2 10.5 4.5 8.8 8 8.8 S14 10.5 14 16 Z' fill='%232f6fd8' stroke='%23123f8a' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E"); width: 1.5em; }
html.theme-xp .st.st-logo { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='%2335b534' stroke='%231b6b1a' stroke-width='.6'%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(0 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(60 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(120 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(180 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(240 8 8)'/%3E%3Cellipse cx='8' cy='3.7' rx='2.6' ry='3.4' transform='rotate(300 8 8)'/%3E%3C/g%3E%3Ccircle cx='8' cy='8' r='2.9' fill='%23fff' stroke='%231b6b1a' stroke-width='.7'/%3E%3Ccircle cx='8' cy='8' r='1.4' fill='%231d2a1d'/%3E%3Ccircle cx='8.5' cy='7.5' r='.45' fill='%23fff'/%3E%3C/svg%3E"); width: 1em; }

/* Grün wie die ICQ-Leisten: glänzend, mit Kante oben und unten (ICU-Kopf, Gesprächskopf, Profilkopf, Hinweise) */
:root { --icu-green: linear-gradient(#8ee36a 0, #5cc63a 6%, #3fae1f 40%, #2e9612 52%, #35a018 80%, #2b8a10 100%);
  --icu-edge: inset 0 1px #c9f7b4, inset 0 -1px #1c5e08, inset 1px 0 #6fd24b; --dsn-blue: linear-gradient(90deg, #0a3a8a, #3b78c8); }

/* Ganze Fensterhöhe, Liste und Verlauf scrollen für sich */
body.embed:has(.msgr-full) > .body { padding: 0; height: 100vh; display: flex; flex-direction: column; }
.msgr-full { flex: 1; min-height: 0; display: flex; flex-direction: column; font-size: 12px; }
.msgr-full .statusbar { flex: none; }

/* Kopf mit eigenem Namen und Status */
.msgr-head, .msgr-chat-head { display: flex; gap: 8px; align-items: center; padding: 6px 8px; color: #fff; flex: none; background: var(--dsn-blue); }
html.theme-xp .msgr-head, html.theme-xp .msgr-chat-head { background: var(--icu-green); box-shadow: var(--icu-edge); border-bottom: 1px solid #165006; text-shadow: 1px 1px 1px rgba(0,0,0,.45); }
.msgr-head .avatar, .msgr-chat-head .avatar { box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba(0,0,0,.45); flex: none; }
.msgr-head .who, .msgr-chat-head .who { min-width: 0; flex: 1; }
.msgr-head .who b { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgr-mystatus { background: none; box-shadow: none; border: 0; padding: 0; min-width: 0; color: inherit; font-size: 11px; opacity: .92; text-shadow: inherit; cursor: pointer; }
.msgr-mystatus:hover { text-decoration: underline; }
.msgr-logo { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font: bold italic 14px Arial, sans-serif; letter-spacing: .3px; flex: none; }
html.theme-xp .msgr-logo { font: bold 14px "Trebuchet MS", Tahoma, sans-serif; font-style: normal; }
.msgr-logo .st { width: 18px; height: 18px; }
.msgr-guest { padding: 10px 12px; }

/* Statusnachricht unter dem Kopf */
.msgr-statusmsg { display: block; flex: none; text-align: left; min-width: 0; margin: 0; padding: 2px 8px 5px; border: 0; box-shadow: none; border-radius: 0;
  background: var(--dsn-blue); color: #dfe8ff; font: italic 11px var(--font); cursor: text; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.theme-xp .msgr-statusmsg { margin: 4px 6px; padding: 2px 5px; width: auto; background: #fff; color: #4a5a40; border: 1px dashed #9bb48a; border-radius: 3px; }
.msgr-statusmsg[hidden] { display: none; }
/* Beim Bearbeiten steht statt des Knopfs ein Eingabefeld da (in einem <button> lässt sich nicht tippen) */
input.msgr-statusmsg-edit { display: block; flex: none; width: auto; min-width: 0; margin: 2px 6px 4px; padding: 1px 3px; font: 11px var(--font); }
html.theme-xp input.msgr-statusmsg-edit { margin: 4px 6px; }

/* Werkzeuge: Finden, Anfragen, Einstellungen */
.msgr-tools { display: flex; gap: 2px; padding: 3px 4px; flex: none; border-bottom: 1px solid var(--lo); }
html.theme-xp .msgr-tools { background: #f3f6ee; border-bottom-color: #c9d6bf; }
.msgr-tools > a, .msgr-tools > button { position: relative; width: 28px; height: 24px; min-width: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; text-decoration: none; border: 1px solid transparent; background: none; box-shadow: none; color: inherit; }
.msgr-tools > a:hover, .msgr-tools > button:hover { box-shadow: inset 1px 1px var(--hi), inset -1px -1px var(--lo); }
html.theme-xp .msgr-tools > a:hover, html.theme-xp .msgr-tools > button:hover { box-shadow: none; border-color: #9cb88a; border-radius: 3px; background: linear-gradient(#fff, #dfeed3); }
.msgr-tools .spacer, .msgr-chat-foot .spacer { flex: 1; }
.msgr-full .cnt { position: absolute; right: -4px; top: -3px; min-width: 15px; padding: 0 4px; border-radius: 8px; background: #d22; color: #fff; font: bold 10px/15px Tahoma, sans-serif; font-style: normal; text-align: center; }
.msgr-full .cnt[hidden] { display: none; }

/* Kontaktliste */
.msgr-list { flex: 1; min-height: 0; overflow-y: auto; margin: 4px; background: var(--field); color: var(--field-text); box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi), inset 2px 2px var(--dark); outline: none; }
html.theme-xp .msgr-list { margin: 0; box-shadow: none; background: #fff; color: #000; }
.msgr-gh { display: block; width: 100%; text-align: left; min-width: 0; margin: 0; padding: 4px 6px 2px; border: 0; box-shadow: none; background: none; border-radius: 0;
  font: bold 12px var(--font); color: var(--title-from); cursor: pointer; }
.msgr-gh .tw { font-weight: normal; opacity: .7; display: inline-block; width: 9px; }
html.theme-xp .msgr-gh { padding: 3px 6px; color: #2a6a1a; background: linear-gradient(#f4faef, #e3f0d9); border-top: 1px solid #fff; border-bottom: 1px solid #cfe0c3; font-family: Tahoma, sans-serif; }
html.theme-xp .msgr-g:nth-child(n) .msgr-gh[data-group=offline] { color: #8a2a2a; background: linear-gradient(#fbf3f3, #f0e2e2); border-bottom-color: #e2cdcd; }
html.theme-xp .msgr-gh[data-group=wait] { color: #8a6a10; background: linear-gradient(#fdfaee, #f3ecd0); border-bottom-color: #e5dab0; }
html.theme-xp .msgr-gh[data-group=others] { color: #555; background: linear-gradient(#f7f7f7, #e8e8e8); border-bottom-color: #d5d5d5; }
.msgr-c { display: flex; gap: 5px; align-items: center; padding: 2px 6px 2px 14px; cursor: default; outline: none; }
.msgr-c .av { display: inline-flex; }
.msgr-c .av .avatar { width: 22px; height: 22px; }
.msgr-c .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.msgr-c .nm b { font-weight: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgr-c .nm small { font-size: 11px; opacity: .7; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgr-c.has-unread .nm b { font-weight: bold; }
.msgr-c .un { flex: none; font-size: 11px; }
.msgr-c[data-kind=wait] .nm b, .msgr-g .msgr-gh[data-group=offline] ~ .msgr-c .nm b { opacity: .65; }
/* Auswahl: bei DSN blau wie Windows, bei ICU grün und plastisch */
.msgr-c.sel .nm b { background: var(--sel-bg); color: var(--sel-text); opacity: 1; padding: 0 2px; margin: 0 -2px; align-self: flex-start; max-width: 100%; }
.msgr-c.sel:focus .nm b { outline: 1px dotted #ff0; }
html.theme-xp .msgr-c { padding: 3px 6px 3px 12px; font-family: Tahoma, sans-serif; }
html.theme-xp .msgr-c.sel { background: linear-gradient(#6acb48, #3a9e1c); color: #fff; box-shadow: inset 0 1px #a8e890, inset 0 -1px #2a7a10; text-shadow: 0 1px 1px rgba(0,0,0,.3); }
html.theme-xp .msgr-c.sel .nm b { background: none; color: inherit; outline: 0; padding: 0; margin: 0; }
html.theme-xp .msgr-c.sel .nm small { color: #eaffdf; opacity: 1; }
html.theme-xp .msgr-c:not(.sel):hover { background: #eef7e8; }
.msgr-empty { padding: 10px; text-align: center; opacity: .8; }

/* DSN: „Ich möchte …“ unter der Liste */
.msgr-want { flex: none; margin: 0 4px 4px; padding: 4px 6px 6px; }
.msgr-want .t { font-weight: bold; color: var(--title-from); display: flex; align-items: center; }
.msgr-want .t::after { content: ''; flex: 1; height: 1px; background: var(--lo); margin-left: 6px; box-shadow: 0 1px var(--hi); }
.msgr-want a, .msgr-want .linkish { display: block; padding: 2px 4px; color: var(--link); text-decoration: underline; text-align: left; }
button.linkish { background: none; border: 0; box-shadow: none; min-width: 0; font: inherit; cursor: pointer; width: 100%; }

/* ICU: grüne Leiste unten mit ICU-Menü und Status */
.msgr-bottom { flex: none; display: flex; gap: 4px; padding: 5px; background: linear-gradient(#5cc63a, #2e9612 55%, #2b8a10); border-top: 1px solid #1c5e08; box-shadow: inset 0 1px #a8e890; }
.msgr-bottom button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; font-weight: bold; padding: 4px 6px; min-width: 0; }

/* Kleine Menüs (Status, ICU, Rechtsklick, Einladen) */
.msgr-menu { position: fixed; z-index: 50; margin: 0; padding: 3px; min-width: 180px; max-width: calc(100vw - 8px); display: flex; flex-direction: column; }
.msgr-menu button { display: flex; gap: 6px; align-items: center; text-align: left; min-width: 0; padding: 3px 18px 3px 20px; border: 0; box-shadow: none; background: none; color: var(--text); position: relative; font-size: 12px; white-space: nowrap; }
.msgr-menu button:hover:not([disabled]), .msgr-menu button:focus { background: var(--sel-bg); color: var(--sel-text); outline: none; }
.msgr-menu button[disabled] { opacity: .6; white-space: normal; }
.msgr-menu button.checked::before { content: '•'; position: absolute; left: 7px; font-weight: bold; }
.msgr-menu hr { margin: 3px 1px; width: auto; }
html.theme-xp .msgr-menu { background: #fff; border: 1px solid #8a8a8a; box-shadow: 2px 2px 3px rgba(0,0,0,.3); padding: 2px; border-radius: 0; }
html.theme-xp .msgr-menu button { color: #000; }
html.theme-xp .msgr-menu button:hover:not([disabled]), html.theme-xp .msgr-menu button:focus { background: #316ac5; color: #fff; }

/* Gespräch */
.msgr-chat-head .who b { font-size: 14px; }
.msgr-chat-head .who b a { color: inherit; text-decoration: none; }
.msgr-chat-head .who b a:hover { text-decoration: underline; }
.msgr-chat-head .who small { display: block; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.theme-xp .msgr-chat-head .who small { color: #e3f8d6; opacity: 1; }
.msgr-chat-head .badge { text-shadow: none; }
.msgr-chat-head .btns { display: flex; gap: 4px; flex: none; }
.msgr-chat-head .btns .btn, .msgr-chat-head .btns button { color: var(--text); text-shadow: none; }
.msgr-hist { flex: 1; min-height: 0; overflow-y: auto; margin: 6px 8px 4px; padding: 6px 8px; background: var(--field); color: var(--field-text);
  box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi), inset 2px 2px var(--dark); }
html.theme-xp .msgr-hist { box-shadow: none; border: 1px solid #7f9db9; background: #fff; color: #000; }
.msgr-hist .m { margin: 0 0 7px; }
.msgr-hist .m .h { color: #606060; }
.msgr-hist .m .h small { color: #888; }
.msgr-hist .m p { margin: 1px 0 0 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
html.theme-xp .msgr-hist .m .h b { font-weight: bold; }
html.theme-xp .msgr-hist .m.them .h { color: #c0272d; }
html.theme-xp .msgr-hist .m.me .h { color: #1d4fb8; }
html.theme-xp .msgr-hist .m p { margin-left: 10px; }
.msgr-hist .sys { color: #808080; font-size: 11px; margin: 4px 0 8px; }
html.theme-xp .msgr-hist .sys { text-align: center; }
.msgr-hist .sys.nudge { color: #b36b00; font-weight: bold; }
.msgr-hist .sys.invite { color: inherit; padding: 4px 6px; border: 1px solid #e0c060; background: #fff8dc; color: #000; }
.msgr-hist .sys.invite a { font-weight: bold; }
.msgr-send { flex: none; display: flex; gap: 6px; margin: 4px 8px; }
.msgr-send textarea { flex: 1; height: 58px; min-height: 0; resize: none; font: 12px var(--font); }
.msgr-send button { width: 80px; font-weight: bold; }
.msgr-locked { margin: 4px 8px; }
.msgr-chat-foot { flex: none; display: flex; gap: 6px; align-items: center; padding: 0 8px 6px; }
.msgr-chat-foot .hint { opacity: .7; font-size: 11px; }
.msgr-chat > .msg { margin: 6px 8px 0; }

/* Mitglieder finden, Anfrage */
.msgr-find { padding: 8px 10px; }
.find-q { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 8px; align-items: center; margin-bottom: 8px; }
.find-filter { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.people-table .av { width: 30px; }
.mini-people { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.mini-people a { display: inline-flex; gap: 4px; align-items: center; }
.msgr-request { padding: 10px 12px; }
.msgr-req-card { display: flex; gap: 12px; align-items: flex-start; }
.msgr-req-card p { margin: 0 0 6px; }
.msgr-req-card .note-text { padding: 5px 8px; font-style: italic; margin: 4px 0 8px; }
.msgr-req-form textarea { width: 100%; height: 56px; box-sizing: border-box; display: block; margin-top: 3px; }
.msgr-req-form .actions { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.msgr-req-form .spacer { flex: 1; }
@media (max-width: 520px) { .find-q { grid-template-columns: 1fr; } .msgr-chat-head .btns { flex-direction: column; } .msgr-chat-foot .hint { display: none; } }

/* Neben der Uhr: eigener Status, ungelesene Nachrichten blinken */
.msgr-tray { text-decoration: none; color: inherit; position: relative; display: inline-flex; align-items: center; gap: 1px; }
.msgr-tray .st { width: 15px; height: 15px; }
.msgr-tray .pm-count { font-size: 10px; font-weight: bold; }
.msgr-tray .pm-count[hidden] { display: none; }
.msgr-tray.msgr-new .st { animation: pm-blink 1s steps(2) infinite; }
@keyframes pm-blink { 50% { opacity: .25; } }

/* Hinweise unten rechts („Anna ist jetzt online“, neue Nachricht): stapeln sich nach oben */
.msgr-toast { position: fixed; right: 8px; bottom: calc(var(--taskbar-h) + 8px + var(--n, 0) * 96px); width: 240px; z-index: 60; margin: 0; cursor: pointer;
  animation: msgr-up .25s ease-out; font-size: 12px; }
.msgr-toast .titlebar { cursor: pointer; }
.msgr-toast .body { padding: 8px; }
.msgr-toast-row { display: flex; gap: 8px; align-items: center; }
.msgr-toast-row span { overflow-wrap: anywhere; }
html.theme-xp .msgr-toast { background: linear-gradient(#fff, #e6f2dc); border: 1px solid #5f9a45; border-radius: 6px 6px 0 0; box-shadow: 2px 2px 6px rgba(0,0,0,.35); overflow: hidden; color: #000; padding: 0; }
html.theme-xp .msgr-toast .titlebar { background: var(--icu-green); box-shadow: inset 0 1px #c9f7b4; border-radius: 0; height: auto; padding: 3px 4px 3px 6px; }
@keyframes msgr-up { from { transform: translateY(30px); opacity: 0; } }

/* Anstupsen: das Gesprächsfenster wackelt */
.dwin.msgr-shake { animation: msgr-shake .5s linear 2; }
@keyframes msgr-shake { 10%, 50%, 90% { translate: -6px 2px; } 30%, 70% { translate: 6px -2px; } 100% { translate: 0; } }
@media (prefers-reduced-motion: reduce) { .dwin.msgr-shake, .msgr-tray.msgr-new .st, .msgr-toast { animation: none; } }

/* ================= Profil (Info-Fenster aus dem Messenger) ================= */
.pf-preview { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; padding: 4px 10px; margin: -10px -10px 0; background: #ffffe1; color: #000; border-bottom: 1px solid #c8c890; }
.pf-preview .spacer, .konto-foot .spacer { flex: 1; }
.pf-head { display: flex; gap: 14px; padding: 12px 14px 10px; margin: 0 -10px 8px; align-items: flex-start; background: var(--dsn-blue); color: #fff; }
html.theme-xp .pf-head { background: var(--icu-green); box-shadow: var(--icu-edge); text-shadow: 1px 1px 1px rgba(0,0,0,.4); }
.pf-head .avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,.4); flex: none; }
.pf-head a { color: #fff; }
.pf-head .badge, .pf-head .btn, .pf-head button { text-shadow: none; }
.pf-head .btn, .pf-head .pf-more-menu a { color: var(--text); }
.pf-head h1 { margin: 0; font-size: 20px; line-height: 1.2; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: inherit; }
.pf-main { flex: 1; min-width: 0; }
.pf-head .ids { font-size: 12px; opacity: .85; margin: 1px 0 4px; }
.pf-head .now { font-size: 12px; margin: 1px 0; }
.pf-head .now .st { width: 14px; height: 14px; }
.pf-head .bubble { font-style: italic; }
.pf-head .acts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; align-items: center; }
.pf-head .acts form { margin: 0; }
.pf-head .side { margin-left: auto; text-align: right; font-size: 11px; line-height: 1.6; flex: none; }
.pf-more { position: relative; }
.pf-more > summary { list-style: none; cursor: pointer; }
.pf-more > summary::-webkit-details-marker { display: none; }
.pf-more-menu { position: absolute; z-index: 5; top: calc(100% + 2px); left: 0; margin: 0; padding: 4px; display: flex; flex-direction: column; gap: 4px; min-width: 190px; text-shadow: none; }
.pf-more-menu .btn, .pf-more-menu button { width: 100%; text-align: left; }
.pf-tabs { margin-top: 4px; }
.pf-page { min-height: 0; }
.pf-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }
.pf-grid .groupbox { margin: 0 0 8px; }
.pf-gb { margin: 0 0 7px; }
.pf-gb .gh { display: flex; gap: 6px; align-items: center; }
.pf-gb .gh small { margin-left: auto; opacity: .7; }
.pf-gb .gt { margin: 3px 0 0 28px; padding: 4px 7px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pf-locked { margin-top: 8px; }
.pf > .statusbar { margin: 10px -10px -10px; }
@media (max-width: 640px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-head { flex-wrap: wrap; }
  .pf-head .side { margin-left: 0; text-align: left; width: 100%; }
}

/* ================= Konto und Passwort (Dialog mit Reitern) ================= */
/* Wie ein Windows-Dialog: Reiter oben, OK/Abbrechen/Übernehmen immer unten, nur der Reiter scrollt */
body.embed:has(.konto) > .body { height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; }
.konto { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.konto .tab-page { flex: 1; min-height: 0; overflow-y: auto; }
.konto .groupbox { margin: 4px 0 8px; }
.konto-two { display: grid; grid-template-columns: 150px 1fr; gap: 14px; }
.konto-pic { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.konto-pic form { margin: 0; width: 100%; }
.konto-pic .btn, .konto-pic button { width: 100%; box-sizing: border-box; }
.konto-file { position: relative; overflow: hidden; display: inline-block; cursor: pointer; }
.konto-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.konto-fixed { display: grid; grid-template-columns: max-content 1fr; gap: 3px 10px; margin: 0 0 8px; }
.konto-fixed > span:nth-child(odd) { opacity: .75; }
.konto-form label { display: block; margin: 0 0 6px; }
.konto-form input[type=text], .konto-form textarea { width: 100%; box-sizing: border-box; }
.konto-count { float: right; opacity: .7; }
.konto-card { display: flex; gap: 8px; align-items: center; padding: 6px 8px; }
.konto-card small { display: block; }
.konto-who { width: 100%; border-collapse: collapse; }
.konto-who td { padding: 3px 4px; }
.konto-who td:first-child { width: 50%; }
.konto-who select { width: 100%; }
.konto-ign { max-height: 120px; overflow-y: auto; padding: 2px; margin-bottom: 6px; }
.konto-ign-row { display: flex; gap: 6px; align-items: center; padding: 2px 4px; margin: 0; }
.konto-ign-row span { flex: 1; min-width: 0; }
.konto-ign-add { display: flex; gap: 6px; align-items: center; margin: 0 0 4px; }
.konto-ign-add input { flex: 1; max-width: 220px; }
.konto-snd { display: grid; grid-template-columns: 1fr minmax(140px, 220px) auto; gap: 4px 8px; align-items: center; margin-bottom: 6px; }
.konto-pw label { display: block; max-width: 320px; }
.konto-pw input { width: 100%; box-sizing: border-box; }
.konto-foot { display: flex; gap: 6px; align-items: center; padding-top: 8px; flex: none; }
.konto-foot button { min-width: 80px; }
.konto-foot .def { font-weight: bold; }
@media (max-width: 560px) { .konto-two { grid-template-columns: 1fr; } .konto-who td { display: block; width: auto !important; } }

/* ==================== Seitenverwaltung 2.0 (views/partials/admin-nav.ejs, admin-head.ejs, public/admin.js) ==================== */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }
th.c, td.c { text-align: center; }
tr.off > td { opacity: .55; }
.sv { display: grid; grid-template-columns: 208px minmax(0, 1fr); align-items: start; }
body.embed.admin { background: var(--win); }
.sv-pane { min-width: 0; padding-top: 0; }
/* Baum wie in der Computerverwaltung: weißes Feld, gepunktete Linien, [+]/[−] */
.sv-tree { position: sticky; top: 0; height: 100vh; overflow: auto; margin: 0; padding: 6px 4px 10px; background: var(--field); color: var(--field-text);
  box-shadow: inset -1px 0 var(--lo), inset -2px 0 var(--hi); font-size: 12px; user-select: none; }
body.admin:not(.embed) .sv-tree { height: auto; max-height: calc(100vh - 120px); }
.sv-tree ul { list-style: none; margin: 0; padding: 0; }
.sv-tree ul ul { margin-left: 7px; padding-left: 9px; border-left: 1px dotted #808080; }
.sv-tree ul ul ul { margin-left: 18px; }
.sv-tree li { position: relative; white-space: nowrap; }
.sv-tree ul ul > li::before { content: ""; position: absolute; left: -9px; top: 10px; width: 8px; border-top: 1px dotted #808080; }
.sv-tree li[aria-expanded=false] > ul { display: none; }
.sv-tree a { display: inline-block; padding: 1px 4px; margin: 1px 0; color: var(--field-text); text-decoration: none; max-width: calc(100% - 22px); overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.sv-tree a:hover { text-decoration: underline; }
.sv-tree a.cur { background: var(--sel-bg); color: var(--sel-text); outline: 1px dotted rgba(255,255,255,.6); outline-offset: -1px; }
.sv-tree a:focus-visible { outline: 1px dotted currentColor; }
.sv-root { display: block; padding: 1px 2px 3px; }
.sv-tree .tw { width: 11px; height: 11px; min-width: 0; padding: 0; margin: 0 3px 0 -1px; font: 9px/9px var(--font); color: #000; background: #fff; border: 1px solid #808080;
  box-shadow: none; vertical-align: middle; cursor: pointer; position: relative; z-index: 1; }
.sv-tree .nt { display: inline-block; width: 13px; }
.sv-tree p { margin: 10px 4px 0; }
.sv-tree .n, .sv-tabs .n, .n.g { display: inline-block; min-width: 16px; margin-left: 3px; padding: 0 4px; border-radius: 8px; background: #c00000; color: #fff; font: bold 10px/15px var(--font);
  text-align: center; font-style: normal; vertical-align: middle; }
.n.g { background: #316ac5; }
.sv-select { display: none; }
/* Kopf: Titel und „Einstellung suchen“ */
.sv-head { position: sticky; top: 0; z-index: 6; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between;
  margin: 0 -10px 8px; padding: 6px 10px; background: var(--win); border-bottom: 1px solid var(--lo); box-shadow: 0 1px var(--hi); }
body.admin:not(.embed) .sv-head { position: static; }
.sv-head h1 { margin: 0; font-size: 17px; }
.sv-head h1 small { font-size: 12px; font-weight: normal; }
.sv-search { position: relative; flex: 0 1 280px; }
.sv-search input { width: 100%; }
.sv-hits { position: absolute; right: 0; top: calc(100% + 2px); z-index: 30; width: max(100%, 300px); max-height: 60vh; overflow: auto; background: var(--field); color: var(--field-text);
  border: 1px solid #000; box-shadow: 2px 2px 0 rgba(0,0,0,.35); padding: 2px; }
.sv-hits[hidden] { display: none; }
.sv-hits a { display: block; padding: 3px 6px; color: inherit; text-decoration: none; }
.sv-hits a small { display: block; font-size: 11px; }
.sv-hits a:hover, .sv-hits a.sel { background: var(--sel-bg); color: var(--sel-text); }
.sv-hits p { margin: 4px 6px; }
@keyframes sv-flash { 0%, 60% { outline-color: #ffbf00; background-color: rgba(255, 220, 0, .28); } 100% { outline-color: transparent; background-color: transparent; } }
.sv-flash { outline: 2px solid transparent; outline-offset: 2px; animation: sv-flash 1.8s ease-out; }
.sv-tabs { margin: 0 0 8px; border-bottom: 1px solid var(--lo); }
.sv-tabs a { display: inline-block; padding: 3px 12px; color: var(--text); text-decoration: none; box-shadow: inset 1px 1px var(--hi), inset -1px 0 var(--dark), inset -2px 0 var(--lo); margin-top: 2px; }
.sv-tabs a[aria-selected=true] { margin-top: 0; padding-bottom: 5px; font-weight: bold; background: var(--win); }
.sv-pane .row > label > :is(input:not([type=checkbox]):not([type=radio]), select) { display: block; margin-top: 2px; max-width: 100%; }
.sv-pane .row > label > :is(input[type=text], input[type=url], input[type=email], input:not([type])) { width: 100%; }
.sticky-actions { position: sticky; bottom: 0; z-index: 4; background: var(--win); margin: 0 -10px; padding: 6px 10px; border-top: 1px solid var(--lo); }
.kv th { text-align: left; width: 150px; font-weight: normal; opacity: .8; }
.reset-list { display: flex; flex-wrap: wrap; gap: 6px; }
.prog-ico { display: inline-block; width: 20px; text-align: center; }
.prog-table { table-layout: fixed; }
.prog-table th:nth-child(2) { width: 130px; } .prog-table th:nth-child(3) { width: 84px; } .prog-table th:nth-child(4) { width: 74px; } .prog-table th:nth-child(5) { width: 110px; }
.prog-table select { width: 100%; }
.prog-table td:first-child { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .prog-table { table-layout: auto; } .prog-table th:nth-child(n) { width: auto; } }
@media (max-width: 760px) {
  .sv { grid-template-columns: minmax(0, 1fr); }
  .sv-tree { display: none; }
  .sv-select { display: block; padding: 6px 10px 0; }
  .sv-select select { width: 100%; }
  .sv-search { flex-basis: 100%; }
  .hide-narrow { display: none; }
}
/* Übersicht */
.ov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 12px; }
.ov-list { list-style: none; margin: 0; padding: 0; }
.ov-list li { padding: 3px 0; border-bottom: 1px dotted var(--lo); }
.ov-list li:last-child { border-bottom: 0; }
.ov-list li.err a { color: var(--danger); font-weight: bold; }
.ov-ok { margin: 4px 0; color: #006400; font-weight: bold; }
.ov-today .kpis { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); margin-top: 0; }

/* ==================== Dienste (src/services.js) ==================== */
.led { display: inline-block; width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; vertical-align: -1px; background: radial-gradient(circle at 35% 30%, #eee, #8a8a8a 70%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.45); }
.led.up { background: radial-gradient(circle at 35% 30%, #c8ffc8, #18b018 55%, #0a6a0a); }
.led.warn { background: radial-gradient(circle at 35% 30%, #fff3b0, #e8b400 55%, #9a6d00); }
.led.down { background: radial-gradient(circle at 35% 30%, #ffc0c0, #e01010 55%, #8a0000); }
.led.big { width: 18px; height: 18px; }
.up-bars { display: inline-flex; gap: 1px; height: 14px; vertical-align: middle; padding: 1px; background: var(--field); box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.up-bars i { width: 4px; background: #d6d6d6; }
.up-bars i.b-up { background: #1a9e1a; }
.up-bars i.b-warn { background: #dba800; }
.up-bars i.b-down { background: #d01010; }
.up-pct { margin-left: 6px; white-space: nowrap; }
.svc-table td { vertical-align: middle; }
.svc-table .led { margin-right: 4px; }
.disk { display: grid; grid-template-columns: minmax(60px, max-content) minmax(40px, 1fr) max-content; gap: 6px; align-items: center; font-size: 12px; padding: 2px 0; }
.disk > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.disk-bar { display: inline-block; height: 12px; padding: 1px; background: var(--field); box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); vertical-align: middle; overflow: hidden; }
.disk-bar i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--accent) 0 7px, transparent 7px 9px); }
.disk-bar i.full { background: repeating-linear-gradient(90deg, #c00000 0 7px, transparent 7px 9px); }
.svc-preview { max-width: 340px; padding: 4px 8px; background: var(--win); box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.svc-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.svc-kind { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 6px; padding: 8px; background: var(--field); color: var(--field-text) !important; text-decoration: none;
  box-shadow: inset -1px -1px var(--dark), inset 1px 1px var(--hi), inset -2px -2px var(--lo); }
.svc-kind:hover, .svc-kind:focus-visible { background: var(--hover); }
.svc-kind .ic { grid-row: span 2; font-size: 26px; line-height: 1.2; text-align: center; }
.svc-kind small { font-size: 11px; }
.svc-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 8px; padding: 6px 8px; background: var(--field); color: var(--field-text);
  box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.svc-head > div { flex: 1; min-width: 200px; }
.msg.warn-box { background: #fff4ce; margin: 6px 0; }
.svc-result { margin-left: 6px; font-size: 12px; }
.svc-changes { list-style: none; padding: 0; margin: 0 0 6px; columns: 2 240px; font-size: 12px; }
.show-checks { margin: 6px 0 4px; }
/* Widget auf dem Desktop: wie „Offene Lobbys“ */
.desk-widget.svc-widget { top: 12px; bottom: auto; width: 272px; margin: 0; z-index: 1; }
.svc-widget > .titlebar { touch-action: none; cursor: default; }
.svc-widget .titlebar .ttl [data-n] { font-weight: normal; }
.svc-widget .body { padding: 4px; }
.svc-widget.collapsed .body { display: none; }
/* Handy: Dienste unten über die ganze Breite, „Offene Lobbys“ stapelt darüber (public/dienste.js place) */
@media (max-width: 760px) {
  .desk-widget.svc-widget:not([hidden]) { display: block; left: 6px; right: 6px; top: auto; bottom: 8px; width: auto; }
  .svc-widget .svc-list { max-height: 22vh; overflow-y: auto; }
}
.svc-list { background: var(--field); color: var(--field-text); max-height: min(260px, 40vh); overflow: auto; box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); }
.svc-list[hidden], .svc-disks[hidden] { display: none; }
.svc-row { display: grid; grid-template-columns: 10px 18px minmax(0, 1fr) minmax(0, max-content); gap: 4px; align-items: center; padding: 2px 6px; font-size: 12px; }
.svc-row + .svc-row { border-top: 1px dotted rgba(0,0,0,.18); }
.svc-row .ic { text-align: center; }
.svc-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-row .nm a { color: var(--field-link); }
.svc-row .tx { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.svc-row[data-state=down] .tx { color: var(--danger); opacity: 1; }
.svc-disks { margin-top: 4px; padding: 2px 4px; }
.svc-disks .lob-group { position: static; margin: 0 -4px 2px; }
.svc-tray { position: relative; }
.svc-tray .dot { position: absolute; top: 1px; right: 0; width: 7px; height: 7px; border-radius: 50%; background: #e00000; box-shadow: 0 0 0 1px #fff; }
.svc-tray .dot[hidden] { display: none; }
.svc-panel { position: fixed; right: 4px; bottom: calc(var(--taskbar-h) + 2px); z-index: 12; margin: 0; width: 300px; max-width: calc(100vw - 8px); }
.svc-panel[hidden] { display: none; }
.svc-panel .body { padding: 4px; }
/* Sprechblase wie bei Windows, wenn ein Dienst ausfällt */
.balloon { position: fixed; bottom: calc(var(--taskbar-h) + 12px); z-index: 40; max-width: 290px; padding: 8px 24px 8px 10px; background: #ffffe1; color: #000; border: 1px solid #000;
  border-radius: 7px; box-shadow: 2px 2px 0 rgba(0,0,0,.25); font-size: 12px; cursor: pointer; }
.balloon b { display: block; margin-bottom: 2px; }
.balloon::after { content: ""; position: absolute; right: 100px; bottom: -11px; border: 10px solid transparent; border-top-color: #000; border-bottom: 0; border-right: 0; }
.balloon .x { position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; min-width: 0; padding: 0; font: bold 11px/14px var(--font); }
.maint-flag { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); z-index: 4; padding: 1px 10px; background: #ffd400; color: #000 !important; border: 1px solid #000;
  font-weight: bold; font-size: 12px; text-decoration: none; }
body.has-tick .maint-flag { top: 26px; }

/* ==================== Laufband (src/ticker.js, public/laufband.js) ==================== */
.tick { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; align-items: center; height: 22px; overflow: hidden; font-size: 12px; }
.tick[hidden] { display: none; }
.tick .lbl { flex: 0 0 auto; align-self: stretch; display: flex; align-items: center; padding: 0 8px; font-weight: bold; white-space: nowrap; }
.tick .run { flex: 1; min-width: 0; height: 100%; overflow: hidden; position: relative; }
.tick .items { position: absolute; left: 0; top: 0; height: 100%; display: inline-flex; align-items: center; gap: 16px; white-space: nowrap; will-change: transform; }
.tick .items a, .tick .items span { color: inherit; text-decoration: none; }
.tick .items a:hover, .tick .items a:focus-visible { text-decoration: underline; }
.tick .items i { font-style: normal; opacity: .65; }
.tick .run:hover .items { animation-play-state: paused !important; }
@keyframes tick-run { from { transform: translateX(var(--tk-from, 100vw)); } to { transform: translateX(var(--tk-to, -100%)); } }
.tick .ctl { flex: 0 0 auto; display: flex; gap: 2px; padding: 0 3px; }
.tick .ctl .tb-btn { width: 18px; height: 16px; font-size: 9px; }
.tick.t-led { background: #050505; color: #39ff39; font: bold 13px "Courier New", monospace; text-shadow: 0 0 4px rgba(57,255,57,.65); border-bottom: 1px solid #333;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px); background-size: 3px 3px; }
.tick.t-led .lbl { background: #1a0000; color: #ff4040; text-shadow: 0 0 4px rgba(255,64,64,.8); border-right: 1px solid #333; }
.tick.t-bar { background: var(--win); color: var(--text); box-shadow: inset 0 1px var(--hi), inset 0 -1px var(--lo); }
.tick.t-bar .lbl { background: linear-gradient(90deg, var(--title-from), var(--title-to)); color: #fff; }
.tick.t-eil { background: #b00000; color: #fff; font-weight: bold; }
.tick.t-eil .lbl { background: #fff; color: #b00000; text-transform: uppercase; letter-spacing: .5px; }
/* Wechseln statt laufen („Anhalten“ in den Effekten oder weniger Bewegung im System) */
.tick.rotate .items { position: static; display: block; height: 100%; }
.tick.rotate .items > * { display: none; }
.tick.rotate .items > .cur { display: block; padding: 0 8px; line-height: 22px; overflow: hidden; text-overflow: ellipsis; }
.tick-preview { position: relative; z-index: 0; }
.tick-preview .items { position: static; padding-left: 8px; }
body.has-tick .desk-icons { top: 22px; }
@media (min-width: 761px) { body.has-tick .desk-widget.lobby-widget:not(.moved), body.has-tick .desk-widget.svc-widget:not(.moved) { top: 34px; } }
@media (max-width: 760px) { body.has-tick .desk-icons { top: 32px; } .tick .ctl .tb-btn { width: 24px; height: 20px; } }

/* ==================== Popup-Bilder (src/popups.js, public/popups.js) ==================== */
.window.pop { position: absolute; z-index: 9; margin: 0; max-width: min(380px, calc(100% - 12px)); }
.pop > .titlebar { touch-action: none; cursor: move; }
.pop .body { padding: 4px; }
.pop-img { display: block; padding: 0; min-width: 0; border: 0; background: var(--field); box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); cursor: pointer; }
.pop-img.nolink { cursor: default; }
.pop-img img { display: block; max-width: min(360px, calc(100vw - 40px)); max-height: 48vh; width: auto; height: auto; margin: 2px; }
.pop .pf { display: flex; align-items: center; gap: 6px; padding-top: 4px; font-size: 11px; }
.pop .pf .sp { flex: 1; }
.pop .pf .linkish { width: auto; padding: 0; color: var(--link); text-decoration: underline; font-size: 11px; }
@keyframes pop-wobble { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-3deg); } 40% { transform: rotate(3deg); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(2deg); } }
.pop.wobble { animation: pop-wobble .6s ease-in-out 2; }
.pop-thumb { width: 56px; height: 42px; object-fit: contain; vertical-align: middle; background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 10px 10px; }
.pop-thumb.big { width: 180px; height: 135px; }
tr.pending > td { background: #fff8d8; color: #000; }
.pop-src { line-height: 2; margin-bottom: 6px; }
.fg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.fg-item { margin: 0; padding: 4px; background: var(--field); color: var(--field-text); box-shadow: inset 1px 1px var(--lo), inset -1px -1px var(--hi); font-size: 12px; }
.fg-item img { display: block; width: 100%; height: 120px; object-fit: contain; background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.fg-item .actions { margin: 4px 0 0; }
@media (prefers-reduced-motion: reduce) { .pop.wobble, .sv-flash { animation: none; } }

/* ==================== Ereignisanzeige, Info, Wartung, Changelog ==================== */
.ev-bar { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ev-filter label { display: inline-block; margin: 0 0 0 6px; }
.ev-wrap { max-height: 70vh; overflow: auto; }
.ev-list td { vertical-align: top; font-size: 12px; }
.ev-list tr.ev-error td:first-child { color: var(--danger); font-weight: bold; }
.ev-list tr.ev-warn td:first-child { color: #8a5a00; font-weight: bold; }
.winver { display: flex; gap: 14px; align-items: flex-start; padding: 6px 4px; }
.winver > img, .wv-logo { flex: 0 0 auto; font-size: 44px; line-height: 1; }
.winver p { margin: 0 0 6px; }
.winver-title { font-size: 16px; }
.winver .actions { justify-content: flex-end; }
.upd-no { display: inline-block; padding: 0 6px; background: var(--title-from); color: #fff; font-size: .82em; font-weight: bold; border-radius: var(--radius); vertical-align: 1px; white-space: nowrap; }
.upd-list { margin: 0; padding-left: 18px; }
.upd-list li { margin: 2px 0; }
#changelog h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
#changelog h2 small { font-size: 12px; font-weight: normal; opacity: .7; }
.cl-search { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 10px; }
.cl-search[hidden] { display: none; }
.cl-search input { flex: 1 1 220px; }
.maint-page { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.maint-win { width: 100%; max-width: 480px; margin: 0; }
.maint-msg { font-size: 15px; }
.maint-win .construction { height: 14px; margin: 10px 0; background: repeating-linear-gradient(-45deg, #ffd400 0 12px, #000 12px 24px); }
.maint-login label { display: block; margin: 4px 0; }
.maint-login input { width: 100%; }

/* XP: runde Ecken, blaue Rahmen, Auswahl wie im Explorer */
:where(html.theme-xp) .sv-tree { box-shadow: inset -1px 0 #7f9db9; }
:where(html.theme-xp) .sv-tree a.cur { background: #316ac5; color: #fff; outline: 0; border-radius: 2px; }
:where(html.theme-xp) .sv-tree .tw { border-color: #7f9db9; background: linear-gradient(#fff, #e3e3db); color: #1f3d7a; border-radius: 2px; }
:where(html.theme-xp) .sv-head { border-bottom-color: #c5d3ee; box-shadow: none; }
:where(html.theme-xp) .sv-head h1 { font-family: "Trebuchet MS", var(--font); color: #0b3c99; }
:where(html.theme-xp) .sv-hits { border-color: #7f9db9; border-radius: 3px; box-shadow: 2px 2px 6px rgba(0,0,0,.25); }
:where(html.theme-xp) .sv-tabs a { border: 1px solid #919b9c; border-bottom: 0; border-radius: 3px 3px 0 0; box-shadow: none; background: linear-gradient(#fff, #ecebe5); }
:where(html.theme-xp) .sv-tabs a[aria-selected=true] { background: #fcfcfe; border-top: 2px solid #ffc83c; }
:where(html.theme-xp) :is(.svc-list, .up-bars, .disk-bar, .svc-head, .fg-item, .svc-preview) { box-shadow: inset 0 0 0 1px #7f9db9; }
:where(html.theme-xp) .disk-bar i { background: repeating-linear-gradient(90deg, #2ab32a 0 7px, transparent 7px 9px); }
:where(html.theme-xp) .svc-kind { border: 1px solid #c5d3ee; border-radius: 4px; box-shadow: none; background: linear-gradient(#fff, #f2f6fd); }
:where(html.theme-xp) .svc-kind:hover { border-color: #316ac5; }
:where(html.theme-xp) .svc-widget .titlebar, :where(html.theme-xp) .svc-panel .titlebar { min-height: 22px; padding: 2px 4px 2px 7px; font-size: 12px; }
:where(html.theme-xp) .svc-widget .tb-btn { width: 18px; height: 18px; font-size: 11px; line-height: 16px; }
:where(html.theme-xp) .tick.t-bar { background: linear-gradient(#fdfdfb, #ece9d8); border-bottom: 1px solid #aca899; box-shadow: none; }
:where(html.theme-xp) .tick.t-bar .lbl { background: linear-gradient(#3d95ff, #0054e3); border-radius: 0 9px 9px 0; }
:where(html.theme-xp) .balloon { border-radius: 9px; border-color: #7a7a7a; }
:where(html.theme-xp) .upd-no { border-radius: 3px; background: linear-gradient(#3d95ff, #0054e3); }
:where(html.theme-xp) .n.g { background: #3d95ff; }
.lr-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 12px; margin: 0 0 6px; }
.lr-dl dt { font-weight: bold; } .lr-dl dd { margin: 0; }
.lr-add summary { cursor: pointer; padding: 2px 0; }
.lr-add[open] summary { margin-bottom: 6px; }
.lr-state { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
