/* Migs Arena – Physik-Shows (MigsShowsPlay / MigsShowsStudio) · Präfix .shw- · Neon-Arcade · --u = 1 % Spielhöhe */
.shw-root {
  position: fixed; inset: 0; z-index: 900; background: #000; color: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fredoka', 'Baloo 2', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-user-select: none; user-select: none; touch-action: none; -webkit-tap-highlight-color: transparent;
  --u: 6.4px; --c: #7dfcff; --c2: #ff5ad8; --gold: #ffd23d; --ok: #3dffa8; --bad: #ff3d5e; --bg: rgba(8, 7, 30, .62);
}
.shw-root.shw-embedded { position: absolute; }
.shw-root *, .shw-root *::before, .shw-root *::after { box-sizing: border-box; }
.shw-hidden { display: none !important; }
.shw-stage { position: relative; display: flex; align-items: stretch; justify-content: center; flex: none; }
.shw-game { position: relative; flex: none; overflow: hidden; }
.shw-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.shw-hud { position: absolute; inset: 0; pointer-events: none; }
.shw-side { display: none; }
.shw-land .shw-side { display: flex; flex-direction: column; gap: calc(var(--u) * 1.6); flex: 1 1 0; min-width: 0; padding: calc(var(--u) * 3) calc(var(--u) * 2.2);
  background: radial-gradient(ellipse at 50% 30%, #15124a 0%, #07061a 70%); }
.shw-land .shw-side-l { border-right: 2px solid rgba(125, 252, 255, .25); }
.shw-land .shw-side-r { border-left: 2px solid rgba(255, 90, 216, .25); }

/* Kopf: Punktzahl + Meta */
.shw-top { position: absolute; left: 0; right: 0; top: 11%; display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * .2); }
.shw-score { display: flex; align-items: baseline; gap: calc(var(--u) * .8); line-height: 1; }
.shw-score-n { font-size: calc(var(--u) * 6.4); font-weight: 700; color: #fff;
  text-shadow: 0 0 calc(var(--u) * 1.6) var(--c), 0 0 calc(var(--u) * .5) var(--c), 0 calc(var(--u) * .3) 0 rgba(0, 0, 0, .6); }
.shw-score-l { font-size: calc(var(--u) * 1.9); font-weight: 600; color: var(--c); letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 2px 0 rgba(0,0,0,.6); }
.shw-meta { display: flex; gap: calc(var(--u) * 1); font-size: calc(var(--u) * 1.45); font-weight: 600; opacity: .95; text-shadow: 0 1px 0 #000, 0 0 6px #000; white-space: nowrap; }
.shw-best { color: var(--gold); }
.shw-root[data-type="multiply"] .shw-top { top: 4.5%; }
.shw-root[data-type="multiply"] .shw-score-n { font-size: calc(var(--u) * 3.6); }
.shw-root[data-type="blocks"] .shw-top { top: 10.5%; }
.shw-root[data-type="blocks"] .shw-score-n { font-size: calc(var(--u) * 4.4); }

/* Team-Battle */
.shw-teams { position: absolute; left: 4%; right: 4%; top: 19.5%; display: flex; align-items: center; gap: calc(var(--u) * .8); --tl: #2ee6ff; --tr: #ff4fd8; }
.shw-root[data-type="multiply"] .shw-teams { top: 11.5%; }
.shw-team { display: flex; align-items: center; gap: calc(var(--u) * .5); font-size: calc(var(--u) * 1.5); font-weight: 600; white-space: nowrap; text-shadow: 0 1px 0 #000; }
.shw-team b { font-size: calc(var(--u) * 2.3); }
.shw-team-l b { color: var(--tl); } .shw-team-r b { color: var(--tr); }
.shw-tbar { position: relative; flex: 1; height: calc(var(--u) * 1.7); border-radius: 99px; overflow: visible; display: flex; background: #111;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .25), 0 0 calc(var(--u) * 1.4) rgba(0, 0, 0, .6); }
.shw-tbar i { display: block; height: 100%; transition: width .25s; }
.shw-tbar-l { background: linear-gradient(90deg, var(--tl), #fff); border-radius: 99px 0 0 99px; box-shadow: 0 0 calc(var(--u) * 1.2) var(--tl); }
.shw-tbar-r { background: linear-gradient(90deg, #fff, var(--tr)); border-radius: 0 99px 99px 0; box-shadow: 0 0 calc(var(--u) * 1.2) var(--tr); }
.shw-tvs { position: absolute; top: 50%; transform: translate(-50%, -50%); font-style: normal; font-weight: 700; font-size: calc(var(--u) * 1.3);
  background: #0b0a24; border: 2px solid #fff; border-radius: 99px; padding: 0 calc(var(--u) * .6); transition: left .25s; }

/* Like-Ziel */
.shw-like { position: absolute; left: 10%; right: 10%; top: 23.4%; display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * .25); }
.shw-root[data-type="multiply"] .shw-like { top: 15.2%; }
.shw-root[data-type="blocks"] .shw-like { top: 16.6%; }
.shw-like-bar { width: 100%; height: calc(var(--u) * 1.15); border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; box-shadow: 0 0 0 1.5px rgba(255, 90, 216, .55); }
.shw-like-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ff4d6d, #ff5ad8, #ffd23d); box-shadow: 0 0 12px #ff5ad8; transition: width .3s; }
.shw-like-t { font-size: calc(var(--u) * 1.3); font-weight: 600; text-shadow: 0 1px 0 #000, 0 0 6px #000; white-space: nowrap; }
.shw-like-t small { color: var(--c2); font-size: .85em; }
.shw-like-hot .shw-like-bar { animation: shw-pulse .6s infinite alternate; }
.shw-root[data-type="ring"] .shw-teams ~ .shw-like { top: 23.4%; }

/* Krone */
.shw-crown { position: absolute; left: 2.5%; top: 31%; width: 34%; display: flex; flex-direction: column; gap: calc(var(--u) * .35); padding: calc(var(--u) * .7);
  border-radius: calc(var(--u) * 1.2); background: rgba(10, 8, 30, .5); border: 1.5px solid rgba(255, 210, 61, .35); }
/* Rennen/Block-Brecher: nur der Top-Unterstützer als kompakte Pille */
.shw-root[data-type="multiply"] .shw-hud .shw-crown, .shw-root[data-type="blocks"] .shw-hud .shw-crown { left: auto; right: 2.5%; top: 23%; width: auto; max-width: 46%; padding: calc(var(--u) * .35) calc(var(--u) * .8); border-radius: 99px; }
.shw-root[data-type="blocks"] .shw-hud .shw-crown { top: 20.5%; }
.shw-root[data-type="multiply"] .shw-hud .shw-crown-h, .shw-root[data-type="blocks"] .shw-hud .shw-crown-h,
.shw-root[data-type="multiply"] .shw-hud .shw-crown-i:not(.shw-crown-1), .shw-root[data-type="blocks"] .shw-hud .shw-crown-i:not(.shw-crown-1) { display: none; }
.shw-crown-h { font-size: calc(var(--u) * 1.15); font-weight: 700; color: var(--gold); letter-spacing: .04em; }
.shw-crown-i { display: flex; align-items: center; gap: calc(var(--u) * .5); font-size: calc(var(--u) * 1.15); min-width: 0; }
.shw-crown-i b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.shw-crown-i em { font-style: normal; color: var(--gold); font-weight: 700; }
.shw-crown-i img, .shw-crown-ph { width: calc(var(--u) * 2); height: calc(var(--u) * 2); border-radius: 50%; object-fit: cover; flex: none; background: #3a2c8a;
  display: inline-flex; align-items: center; justify-content: center; font-size: calc(var(--u) * 1.1); font-weight: 700; }
.shw-crown-r { width: calc(var(--u) * 1.6); text-align: center; flex: none; font-weight: 700; opacity: .85; }
.shw-crown-1 { font-size: calc(var(--u) * 1.45); }
.shw-crown-1 img, .shw-crown-1 .shw-crown-ph { width: calc(var(--u) * 2.8); height: calc(var(--u) * 2.8); box-shadow: 0 0 0 2px var(--gold), 0 0 12px var(--gold); }
.shw-crown-1 b { color: var(--gold); }

/* Kombo */
.shw-combo { position: absolute; right: 3%; top: 31%; display: flex; flex-direction: column; align-items: center; padding: calc(var(--u) * .6) calc(var(--u) * 1.2);
  border-radius: calc(var(--u) * 1.4); background: linear-gradient(180deg, rgba(255, 138, 61, .9), rgba(255, 61, 94, .9)); box-shadow: 0 0 calc(var(--u) * 2) rgba(255, 120, 61, .8);
  animation: shw-wob .5s infinite alternate; transform-origin: 50% 50%; }
.shw-combo b { font-size: calc(var(--u) * 1.2); letter-spacing: .12em; }
.shw-combo-m { font-size: calc(var(--u) * 4.2); font-weight: 700; line-height: 1; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.shw-combo-t { display: block; height: 4px; border-radius: 4px; background: #fff; align-self: stretch; margin-top: 3px; }
.shw-combo[data-m="5"] { background: linear-gradient(180deg, #ffd23d, #ff5ad8); }
.shw-root[data-type="multiply"] .shw-combo { top: 21%; }

/* Effekte */
.shw-fx { position: absolute; left: 0; right: 0; top: 27.6%; display: flex; justify-content: center; flex-wrap: wrap; gap: calc(var(--u) * .5); }
.shw-root[data-type="multiply"] .shw-fx { top: 19%; }
.shw-root[data-type="blocks"] .shw-fx { top: 20%; }
.shw-fx-i { font-size: calc(var(--u) * 1.3); font-weight: 700; padding: 1px calc(var(--u) * .7); border-radius: 99px; background: rgba(0, 0, 0, .55); border: 1.5px solid rgba(125, 252, 255, .6); }

/* Alert */
.shw-alert { position: absolute; left: 50%; top: 37%; transform: translate(-50%, -50%) scale(.6); opacity: 0; transition: transform .22s cubic-bezier(.2, 1.6, .4, 1), opacity .18s;
  display: flex; align-items: center; gap: calc(var(--u) * 1.2); width: 88%; padding: calc(var(--u) * 1.1) calc(var(--u) * 1.6); border-radius: calc(var(--u) * 2.2);
  background: linear-gradient(180deg, rgba(20, 18, 70, .94), rgba(8, 6, 32, .94)); border: 3px solid var(--ok); box-shadow: 0 0 calc(var(--u) * 3) rgba(61, 255, 168, .55); }
.shw-alert.shw-in { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.shw-alert-aergern { border-color: var(--bad); box-shadow: 0 0 calc(var(--u) * 3) rgba(255, 61, 94, .6); }
.shw-alert-jackpot, .shw-alert-crown { border-color: var(--gold); box-shadow: 0 0 calc(var(--u) * 3.5) rgba(255, 210, 61, .7); }
.shw-alert-goal { border-color: var(--c2); box-shadow: 0 0 calc(var(--u) * 3.5) rgba(255, 90, 216, .7); }
.shw-alert-combo { border-color: #ff8a3d; }
.shw-alert-big { width: 94%; }
.shw-alert-av { width: calc(var(--u) * 7); height: calc(var(--u) * 7); border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px #fff, 0 0 calc(var(--u) * 2) rgba(255, 255, 255, .5); }
.shw-alert-ic { display: flex; align-items: center; justify-content: center; font-size: calc(var(--u) * 4.4); background: rgba(255, 255, 255, .08); }
.shw-alert-b { min-width: 0; flex: 1; }
.shw-alert-n { font-size: calc(var(--u) * 3); font-weight: 700; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.shw-alert-n em { font-style: normal; color: #ff8a3d; }
.shw-alert-t { font-size: calc(var(--u) * 1.9); font-weight: 600; margin-top: calc(var(--u) * .3); color: #dfe4ff; }
.shw-alert-big .shw-alert-n { color: var(--gold); font-size: calc(var(--u) * 3.3); }
.shw-pf { display: inline-flex; align-items: center; justify-content: center; width: 1.25em; height: 1.25em; border-radius: 50%; font-size: .7em; margin-right: .3em; vertical-align: .12em; }

/* Feed + Mitmachen */
.shw-feed { position: absolute; left: 2.5%; bottom: 23.5%; width: 62%; display: flex; flex-direction: column-reverse; gap: calc(var(--u) * .3); }
.shw-feed-i { font-size: calc(var(--u) * 1.25); padding: calc(var(--u) * .25) calc(var(--u) * .8); border-radius: calc(var(--u) * .9); background: rgba(6, 5, 24, .62);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--c); align-self: flex-start; max-width: 100%; }
.shw-feed-i b { color: #fff; }
.shw-g-helfen { border-left-color: var(--ok); } .shw-g-aergern { border-left-color: var(--bad); } .shw-g-mitspielen { border-left-color: var(--c); }
.shw-root[data-type="multiply"] .shw-feed { display: none; }
.shw-join { position: absolute; left: 0; right: 0; bottom: 18.5%; display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * .3); }
.shw-join-a, .shw-join-c { font-size: calc(var(--u) * 1.35); font-weight: 600; padding: calc(var(--u) * .3) calc(var(--u) * 1.1); border-radius: 99px; background: rgba(6, 5, 24, .7);
  border: 1.5px solid rgba(125, 252, 255, .45); white-space: nowrap; }
.shw-join-a b { color: var(--c); } .shw-join-c b { color: var(--gold); }
.shw-tick { animation: shw-tick .45s ease-out; }
.shw-root[data-type="multiply"] .shw-join { bottom: 12%; }
.shw-root[data-type="blocks"] .shw-join { bottom: 15.5%; }
.shw-root[data-type="blocks"] .shw-feed { bottom: 22%; }
.shw-jack { position: absolute; right: 3%; bottom: 23.5%; font-size: calc(var(--u) * 1.15); font-weight: 600; padding: calc(var(--u) * .25) calc(var(--u) * .8); border-radius: 99px;
  background: rgba(40, 30, 0, .6); border: 1.5px solid rgba(255, 210, 61, .5); color: var(--gold); }
.shw-root[data-type="multiply"] .shw-jack { bottom: 9%; right: auto; left: 50%; transform: translateX(-50%); }

/* Runden-Banner */
.shw-banner { position: absolute; left: 50%; top: 57%; transform: translate(-50%, -50%) scale(.5); opacity: 0; transition: transform .3s cubic-bezier(.2, 1.5, .4, 1), opacity .25s;
  width: 90%; text-align: center; padding: calc(var(--u) * 1.6) calc(var(--u) * 1.2); border-radius: calc(var(--u) * 2.4);
  background: radial-gradient(ellipse at 50% 0%, rgba(80, 60, 200, .96), rgba(12, 10, 42, .96)); border: 3px solid var(--c); box-shadow: 0 0 calc(var(--u) * 4) rgba(125, 252, 255, .55); }
.shw-banner.shw-in { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.shw-banner-best { border-color: var(--gold); box-shadow: 0 0 calc(var(--u) * 5) rgba(255, 210, 61, .75); }
.shw-banner-h { font-size: calc(var(--u) * 3.6); font-weight: 700; line-height: 1.05; text-shadow: 0 3px 0 rgba(0, 0, 0, .5); }
.shw-banner-s { font-size: calc(var(--u) * 2.2); font-weight: 600; margin-top: calc(var(--u) * .6); }
.shw-banner-s b { color: var(--gold); animation: shw-pulse .4s infinite alternate; display: inline-block; }
.shw-banner-top { font-size: calc(var(--u) * 1.8); color: var(--gold); margin-top: calc(var(--u) * .4); }
.shw-banner-n { font-size: calc(var(--u) * 1.5); margin-top: calc(var(--u) * .7); opacity: .8; }

/* Querformat: Panels in den Seitenspalten */
.shw-land .shw-side .shw-teams, .shw-land .shw-side .shw-like, .shw-land .shw-side .shw-crown, .shw-land .shw-side .shw-feed, .shw-land .shw-side .shw-join {
  position: static; left: auto; right: auto; top: auto; bottom: auto; width: auto; transform: none; display: flex; }
.shw-land .shw-side .shw-teams { flex-direction: column; align-items: stretch; gap: calc(var(--u) * .6); }
.shw-land .shw-side .shw-tbar { flex: none; }
.shw-land .shw-side .shw-crown { width: auto; font-size: 1.2em; }
.shw-land .shw-side .shw-crown-i { font-size: calc(var(--u) * 1.8); }
.shw-land .shw-side .shw-crown-h { font-size: calc(var(--u) * 1.9); }
.shw-land .shw-side .shw-crown-i img, .shw-land .shw-side .shw-crown-ph { width: calc(var(--u) * 3.2); height: calc(var(--u) * 3.2); }
.shw-land .shw-side .shw-like-t { font-size: calc(var(--u) * 2); }
.shw-land .shw-side .shw-like-bar { height: calc(var(--u) * 1.8); }
.shw-land .shw-side .shw-feed { flex-direction: column; }
.shw-land .shw-side .shw-feed-i { font-size: calc(var(--u) * 1.8); white-space: normal; }
.shw-land .shw-side .shw-join { align-items: stretch; }
.shw-land .shw-side .shw-join-a, .shw-land .shw-side .shw-join-c { font-size: calc(var(--u) * 1.8); white-space: normal; border-radius: calc(var(--u) * 1.2); }
.shw-root[data-type] .shw-side .shw-feed { display: flex; }
.shw-root[data-type] .shw-side .shw-crown { display: flex !important; }
.shw-ladder { display: flex; flex-direction: column; gap: calc(var(--u) * .3); padding: calc(var(--u) * .9); border-radius: calc(var(--u) * 1.2); background: rgba(6, 5, 24, .6);
  border: 1.5px solid rgba(255, 210, 61, .35); }
.shw-ladder-h { font-weight: 700; color: var(--gold); font-size: calc(var(--u) * 1.9); }
.shw-ladder-i { font-size: calc(var(--u) * 1.6); border-left: 3px solid var(--c); padding-left: calc(var(--u) * .6); }
.shw-ladder-i em { font-style: normal; font-weight: 700; color: var(--gold); display: inline-block; min-width: 4.2em; }
.shw-land .shw-side .shw-top { position: static; align-items: flex-start; }
.shw-land .shw-side .shw-score-n { font-size: calc(var(--u) * 8); }
.shw-land .shw-side .shw-meta { font-size: calc(var(--u) * 1.8); flex-wrap: wrap; white-space: normal; }
.shw-land .shw-fx { top: 2%; }
.shw-land .shw-root[data-type] .shw-hud .shw-crown { display: none; }
.shw-land .shw-alert { top: 30%; }

/* Steuerung (nur bei Mausbewegung sichtbar) */
.shw-ctl { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; opacity: 0; transition: opacity .25s; z-index: 5; }
.shw-root:hover .shw-ctl { opacity: .9; }
.shw-btn { font: inherit; font-weight: 700; font-size: 16px; color: #fff; cursor: pointer; border-radius: 12px; min-width: 38px; height: 38px; padding: 0 10px;
  background: linear-gradient(180deg, rgba(60, 52, 160, .92), rgba(32, 26, 100, .92)); border: 1.5px solid rgba(140, 150, 255, .7); box-shadow: 0 3px 0 rgba(0, 0, 0, .45); }
.shw-btn:hover { filter: brightness(1.15); }
.shw-btn:focus-visible, .shw-chip:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }

/* Test-Panel */
.shw-test { position: absolute; right: 10px; top: 56px; bottom: 10px; width: min(380px, 92vw); overflow: auto; z-index: 6; padding: 10px 12px; border-radius: 16px;
  background: rgba(12, 12, 40, .95); border: 1px solid rgba(130, 150, 255, .45); box-shadow: 0 0 30px rgba(80, 110, 255, .35); }
.shw-test-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shw-test-h b { font-size: 16px; color: var(--c); }
.shw-test-h span { font-size: 12px; opacity: .7; flex: 1; }
.shw-test-g h4 { margin: 10px 0 4px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #a9b4ff; }
.shw-chip { font: inherit; font-size: 13px; color: #fff; cursor: pointer; border-radius: 10px; padding: 5px 9px; margin: 0 4px 4px 0; background: #222a78; border: 1px solid #5d6cff; }
.shw-chip:hover { background: #3442b8; }
.shw-chip-helfen { background: #0f5a3e; border-color: #3dffa8; } .shw-chip-aergern { background: #6a1426; border-color: #ff5d78; }
.shw-chip.shw-on { background: #12a86a; border-color: #8fffd0; }

@keyframes shw-pulse { from { transform: scale(1); filter: brightness(1); } to { transform: scale(1.06); filter: brightness(1.35); } }
@keyframes shw-wob { from { transform: rotate(-4deg) scale(1); } to { transform: rotate(4deg) scale(1.07); } }
@keyframes shw-tick { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============================ Show-Studio ============================ */
.shws-root { position: fixed; inset: 0; z-index: 950; display: flex; align-items: center; justify-content: center; background: rgba(2, 2, 12, .78);
  font-family: 'Fredoka', 'Baloo 2', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #fff; }
.shws-root *, .shws-root *::before, .shws-root *::after { box-sizing: border-box; }
.shws-win { width: min(1240px, 96vw); height: min(900px, 94vh); display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, #14123e, #0a0924); border: 1.5px solid rgba(130, 150, 255, .4); box-shadow: 0 0 50px rgba(80, 110, 255, .35); }
.shws-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(130, 150, 255, .25); flex-wrap: wrap; }
.shws-head h2 { margin: 0; font-size: 22px; color: #7dfcff; text-shadow: 0 0 12px rgba(125, 252, 255, .5); }
.shws-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.shws-tab { font: inherit; font-size: 14px; font-weight: 600; color: #fff; cursor: pointer; padding: 6px 12px; border-radius: 12px; background: #1d2266; border: 1.5px solid #4a56c8; }
.shws-tab.shws-on { background: linear-gradient(180deg, #3dffa8, #13b874); color: #04241a; border-color: #b6ffdd; }
.shws-x { margin-left: auto; }
.shws-body { flex: 1; min-height: 0; display: flex; }
.shws-main { flex: 1; min-width: 0; overflow: auto; padding: 12px 16px 24px; }
.shws-aside { width: 360px; flex: none; border-left: 1px solid rgba(130, 150, 255, .25); overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: rgba(0, 0, 0, .18); }
.shws-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.shws-preset { font: inherit; text-align: left; color: #fff; cursor: pointer; padding: 9px 11px; border-radius: 14px; background: #191d5a; border: 1.5px solid #3b46b0; }
.shws-preset b { display: block; font-size: 16px; }
.shws-preset span { display: block; font-size: 12px; opacity: .78; margin-top: 2px; line-height: 1.25; }
.shws-preset.shws-on { border-color: #ffd23d; box-shadow: 0 0 16px rgba(255, 210, 61, .35); background: #2a2460; }
.shws-group { margin-top: 14px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(130, 150, 255, .2); }
.shws-group > summary { list-style: none; cursor: pointer; padding: 10px 14px; font-size: 18px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.shws-group > summary::-webkit-details-marker { display: none; }
.shws-group > summary small { font-size: 13px; font-weight: 400; opacity: .7; }
.shws-group > summary::after { content: '▾'; margin-left: auto; opacity: .6; }
.shws-group:not([open]) > summary::after { content: '▸'; }
.shws-g-helfen { border-color: rgba(61, 255, 168, .35); } .shws-g-aergern { border-color: rgba(255, 61, 94, .35); } .shws-g-ziele { border-color: rgba(255, 210, 61, .35); }
.shws-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; padding: 0 12px 12px; }
.shws-card { border-radius: 14px; padding: 10px 12px; background: #12153f; border: 1.5px solid #2c3487; display: flex; flex-direction: column; gap: 6px; }
.shws-card.shws-off { opacity: .55; }
.shws-card-h { display: flex; align-items: center; gap: 8px; }
.shws-card-h .shws-ic { font-size: 22px; }
.shws-card-h b { font-size: 16px; }
.shws-rec { font-size: 11px; font-weight: 700; color: #04241a; background: #3dffa8; border-radius: 99px; padding: 1px 7px; }
.shws-info { font: inherit; font-size: 13px; width: 22px; height: 22px; padding: 0; border-radius: 50%; cursor: pointer; color: #fff; background: #2b3290; border: 1px solid #6c7cff; }
.shws-sp { flex: 1; }
.shws-desc { font-size: 13px; opacity: .85; line-height: 1.3; }
.shws-more { font-size: 12.5px; line-height: 1.35; padding: 8px 10px; border-radius: 10px; background: rgba(125, 252, 255, .08); border: 1px solid rgba(125, 252, 255, .25); }
.shws-more ul { margin: 4px 0 0 16px; padding: 0; }
.shws-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.shws-f { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shws-f > label { font-size: 12.5px; font-weight: 600; color: #c9d0ff; }
.shws-f > small { font-size: 11.5px; opacity: .65; line-height: 1.25; }
.shws-f input[type="number"], .shws-f input[type="text"], .shws-f select { font: inherit; font-size: 14px; padding: 4px 7px; border-radius: 8px; border: 1px solid #555a9a; background: #0b0d2a; color: #fff; }
.shws-f input[type="number"] { width: 92px; }
.shws-f input[type="text"] { width: 170px; }
.shws-f input[type="range"] { width: 160px; accent-color: #7dfcff; }
.shws-trig { display: flex; flex-wrap: wrap; gap: 4px; }
.shws-tg { font: inherit; font-size: 12px; cursor: pointer; padding: 2px 7px; border-radius: 99px; color: #cfd5ff; background: #0b0d2a; border: 1px solid #3c4499; }
.shws-tg.shws-on { color: #04241a; background: #7dfcff; border-color: #7dfcff; font-weight: 700; }
.shws-pl { font: inherit; font-size: 12px; cursor: pointer; padding: 2px 8px; border-radius: 99px; color: #fff; background: #2a2a40; border: 1.5px solid #555; opacity: .5; }
.shws-pl.shws-on { opacity: 1; }
.shws-sw { position: relative; width: 44px; height: 24px; flex: none; cursor: pointer; border-radius: 99px; background: #3a3d5c; border: none; padding: 0; transition: background .15s; }
.shws-sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.shws-sw.shws-on { background: #13b874; } .shws-sw.shws-on::after { left: 23px; }
.shws-test { font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 4px 9px; border-radius: 10px; color: #fff; background: #4a2c9a; border: 1px solid #a98bff; }
.shws-adv { font-size: 12.5px; cursor: pointer; color: #a9b4ff; }
.shws-pv { position: relative; flex: none; height: min(52vh, 560px); width: auto; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #000; border: 1.5px solid rgba(125, 252, 255, .35); align-self: center; }
.shws-pv canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.shws-pv-log { position: absolute; left: 6px; right: 6px; bottom: 6px; font-size: 12px; padding: 4px 8px; border-radius: 10px; background: rgba(0, 0, 0, .7); min-height: 22px; }
.shws-box { border-radius: 14px; padding: 10px 12px; background: #12153f; border: 1px solid #2c3487; font-size: 13px; }
.shws-box h4 { margin: 0 0 6px; font-size: 14px; color: #7dfcff; }
.shws-box code { font-size: 11.5px; word-break: break-all; background: #05061a; padding: 2px 5px; border-radius: 6px; display: block; margin: 3px 0; user-select: all; }
.shws-lad { display: flex; flex-direction: column; gap: 2px; }
.shws-lad div { display: flex; gap: 6px; }
.shws-lad em { font-style: normal; font-weight: 700; color: #ffd23d; min-width: 64px; }
.shws-foot { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid rgba(130, 150, 255, .25); align-items: center; flex-wrap: wrap; }
.shws-btn { font: inherit; font-weight: 600; font-size: 15px; color: #fff; cursor: pointer; border-radius: 14px; padding: 8px 14px;
  background: linear-gradient(180deg, rgba(60, 52, 160, .9), rgba(32, 26, 100, .9)); border: 1.5px solid rgba(140, 150, 255, .7); box-shadow: 0 3px 0 rgba(0, 0, 0, .45); }
.shws-btn:hover { filter: brightness(1.15); }
.shws-btn.shws-primary { background: linear-gradient(180deg, #3dffa8, #13b874); border-color: #b6ffdd; color: #04241a; font-weight: 700; font-size: 17px; padding: 9px 22px; }
.shws-hint { font-size: 12.5px; opacity: .7; }
.shws-root button:focus-visible, .shws-root input:focus-visible, .shws-root select:focus-visible { outline: 3px solid #7dfcff; outline-offset: 2px; }
@media (max-width: 860px) {
  .shws-body { flex-direction: column; overflow: auto; }
  .shws-main { overflow: visible; }
  .shws-aside { width: auto; border-left: none; border-top: 1px solid rgba(130, 150, 255, .25); }
  .shws-presets { grid-template-columns: 1fr; }
  .shws-cards { grid-template-columns: 1fr; }
}
/* Handy: Kopf/Fuß kompakt, damit für die Einstellungen Platz bleibt */
@media (max-width: 520px) {
  .shws-win { width: 100vw; height: 100dvh; border-radius: 0; }
  .shws-head { position: relative; padding: 8px 52px 8px 10px; gap: 6px; }
  .shws-head h2 { font-size: 18px; }
  .shws-tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .shws-tab { flex: none; font-size: 13px; padding: 5px 10px; }
  .shws-x { position: absolute; top: 8px; right: 10px; }
  .shws-foot { padding: 8px 10px; gap: 6px; }
  .shws-foot .shws-hint, .shws-foot .shws-sp { display: none; }
  .shws-foot > .shws-btn:first-child { font-size: 13px; padding: 6px 10px; }
  .shws-foot select.shws-btn { flex: 1; min-width: 0; font-size: 14px; }
  .shws-btn.shws-primary { flex: 1; }
  .shws-main { padding: 10px 10px 20px; }
  .shws-cards { grid-template-columns: minmax(0, 1fr); padding: 0 8px 10px; }
  .shws-card { min-width: 0; }
}
