/* Power-ups: Mini-Szenen auf den Karten (js/powerups/szene.js). Farben als Variablen, damit hell und dunkel ohne Skript folgen. */

.pow-szene, .pow-legende {
  --sz-land: #EDE6DE; --sz-street: #FCFAF7; --sz-park: #DFDCCB; --sz-bld: #E4DBD2;
  --sz-red: #C93631; --sz-ink: #241C1D; --sz-rim: #FFFFFF; --sz-mute: #8E827C; --sz-cloud: #8E827C;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pow-szene, :root:not([data-theme="light"]) .pow-legende {
    --sz-land: #261F20; --sz-street: #3B3234; --sz-park: #2D3029; --sz-bld: #2E2628;
    --sz-red: #FF6B5E; --sz-ink: #FFF5EF; --sz-rim: #171314; --sz-mute: #9A8B88; --sz-cloud: #A09290;
  }
}
:root[data-theme="dark"] .pow-szene, :root[data-theme="dark"] .pow-legende {
  --sz-land: #261F20; --sz-street: #3B3234; --sz-park: #2D3029; --sz-bld: #2E2628;
  --sz-red: #FF6B5E; --sz-ink: #FFF5EF; --sz-rim: #171314; --sz-mute: #9A8B88; --sz-cloud: #A09290;
}

/* Legende: was die Zeichen bedeuten */
.pow-legende { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font: 600 .74rem/1 var(--op-font-mono); letter-spacing: .08em; text-transform: uppercase; }
.pow-legende li { display: inline-flex; align-items: center; gap: 8px; }
.pow-legende svg { width: 22px; height: 22px; flex: none; }
.sz-zone-dash-leg { fill: none; stroke: var(--sz-ink); stroke-opacity: .7; stroke-width: 1.4; stroke-dasharray: 2.6 2.2; }

/* Karte */
.pow-szene { margin: 0; aspect-ratio: 240 / 150; background: var(--sz-land); overflow: hidden; border-radius: 22px 22px 0 0; }
.pow-szene svg { width: 100%; height: 100%; }
.pow > :not(.pow-szene) { margin-inline: 20px; }
.pow-kopf { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pow-kopf h4 { flex: 1 1 auto; min-width: 0; hyphens: none; letter-spacing: -0.02em; font-size: clamp(1.55rem, 2.1vw, 1.85rem); }
.pow-token { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--runner-surface); color: var(--on-runner); }
.pow[data-rolle="h"] .pow-token { border-radius: 11px; background: var(--op-brand); color: var(--on-red); }
.pow[data-rolle="b"] .pow-token { border-radius: 30%; background: linear-gradient(135deg, var(--runner-surface) 50%, var(--op-brand) 50%); color: #fff; }
.pow-token svg { width: 24px; height: 24px; overflow: visible; }
.pow-was { font-size: .98rem; line-height: 1.35; color: var(--fg); }

/* Wer darf es einsetzen */
.pow-rolle { position: static; display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 6px 10px 6px 9px; border-radius: 999px; font: 700 .64rem/1 var(--op-font-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; background: var(--runner-surface); color: var(--on-runner); outline: 0; }
.pow-rolle::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%; background: currentColor; }
.pow[data-rolle="h"] .pow-rolle { background: var(--op-brand); color: var(--on-red); }
.pow[data-rolle="h"] .pow-rolle::before { border-radius: 2px; }
.pow[data-rolle="b"] .pow-rolle { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px currentColor; }
.pow[data-rolle="b"] .pow-rolle::before { width: 21px; border-radius: 0; background: radial-gradient(circle at 4.5px 4.5px, currentColor 4.5px, transparent 5px) 0 0 / 9px 9px no-repeat, linear-gradient(currentColor, currentColor) 12px 0 / 9px 9px no-repeat; }

/* Level, Dauer, Reichweite */
.pow-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pow-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font: 600 .68rem/1.1 var(--op-font-mono); letter-spacing: .03em; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 24%, transparent); }
.pow-chip--lv { background: var(--fg); color: var(--bg); box-shadow: none; text-transform: uppercase; letter-spacing: .08em; }
.pow-chip--t::before, .pow-chip--r::before { content: ""; width: 13px; height: 13px; flex: none; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.pow-chip--t { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 6.5V12l3.6 2.2'/%3E%3C/svg%3E"); }
.pow-chip--r { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5' stroke-dasharray='3.4 3'/%3E%3Ccircle cx='12' cy='12' r='2.2' fill='%23000'/%3E%3C/svg%3E"); }

/* Das merkt die Gegenseite */
.pow-merkt { margin-top: 0; }

/* Link auf die Seite des Power-ups: liegt über der ganzen Karte (js/sections/powerups.js). Mit Maus neigt sich die Karte zum Zeiger. */
.pow-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.pow-link:focus-visible { outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  html.fx .pow:has(.pow-link):hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); transition: background .25s, transform .18s ease-out; }
  html.fx .pow:has(.pow-link):hover .pow-token { transform: rotate(-8deg) scale(1.12); }
  .pow-token { transition: transform .45s var(--op-ease-spring); }
}
/* Ohne JavaScript: schlichte Liste der Seiten */
.pow-alle { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; }

/* Zeichen in den Szenen */
.sz-land { fill: var(--sz-land); }
.sz-street { fill: var(--sz-street); }
.sz-park { fill: var(--sz-park); }
.sz-bld { fill: var(--sz-bld); }
.sz-run { fill: var(--sz-ink); stroke: var(--sz-rim); stroke-width: 1.6; }
.sz-hun { fill: var(--sz-red); stroke: var(--sz-rim); stroke-width: 1.6; }
.sz-ghost .sz-run { fill: var(--sz-land); fill-opacity: .55; stroke: var(--sz-ink); stroke-width: 1.5; stroke-dasharray: 2.6 2.4; }
.sz-ring { fill: none; stroke: var(--sz-ink); stroke-width: 2.2; }
.sz-ring-h { stroke: var(--sz-red); }
.sz-marke { stroke-width: 1.8; }
.sz-dot { fill: var(--sz-ink); }
.sz-dot-h { fill: var(--sz-red); }
.sz-nope { fill: var(--sz-land); fill-opacity: .6; stroke: var(--sz-mute); stroke-width: 1.6; stroke-dasharray: 2.6 2.2; }
.sz-kreuz { fill: none; stroke: var(--sz-red); stroke-width: 1.9; stroke-linecap: round; }
.sz-kreuz-gross { stroke-width: 2.4; }
.sz-zone-cloud { fill: var(--sz-cloud); fill-opacity: .55; stroke: var(--sz-cloud); stroke-width: 1.6; stroke-dasharray: 4 3; }
.sz-zone-ink { fill: var(--sz-ink); fill-opacity: .2; stroke: var(--sz-ink); stroke-width: 1.6; }
.sz-zone-dash { fill: none; stroke: var(--sz-ink); stroke-opacity: .65; stroke-width: 1.5; stroke-dasharray: 4 3; }
.sz-zone-web { fill: var(--sz-red); fill-opacity: .1; stroke: var(--sz-red); stroke-width: 1.6; }
.sz-zone-nettle { fill: var(--sz-ink); fill-opacity: .12; stroke: var(--sz-ink); stroke-width: 1.5; stroke-dasharray: 2.4 2; }
.sz-web { fill: none; stroke: var(--sz-red); stroke-width: 1; stroke-opacity: .8; }
.sz-spike { stroke: var(--sz-ink); stroke-width: 1.5; stroke-linecap: round; }
.sz-flash { fill: var(--sz-red); fill-opacity: .35; }
.sz-badge { stroke: var(--sz-rim); stroke-width: 1.5; }
.sz-badge-r { fill: var(--sz-ink); }
.sz-badge-h { fill: var(--sz-red); }
.sz-badge-p { fill: var(--sz-land); stroke: var(--sz-ink); stroke-width: 1.2; }
.sz-glyph-p { color: var(--sz-ink); }
.sz-badge-b { fill: var(--sz-ink); stroke: var(--sz-red); stroke-width: 2; }
.sz-glyph-r, .sz-glyph-b { color: var(--sz-rim); }
.sz-glyph-h { color: #fff; }
.sz-linie { stroke-width: 1.9; stroke-linecap: round; }
.sz-linie-r { stroke: var(--sz-ink); }
.sz-linie-h { stroke: var(--sz-red); }
.sz-strich { stroke-dasharray: 4 3.4; }
.sz-kopf-r { fill: var(--sz-ink); }
.sz-kopf-h { fill: var(--sz-red); }
.sz-mass { stroke: var(--sz-ink); stroke-width: 1.2; stroke-opacity: .75; fill: none; }
.sz-t { font: 700 9px var(--op-font-mono); fill: var(--sz-ink); text-anchor: middle; paint-order: stroke; stroke: var(--sz-land); stroke-width: 3.2px; stroke-linejoin: round; letter-spacing: .02em; }
.sz-t-klein { font-size: 8.5px; stroke: var(--sz-street); }
.sz-wedge { fill: var(--sz-red); fill-opacity: .42; stroke: var(--sz-red); stroke-width: 1.3; }
.sz-schall { fill: none; stroke: var(--sz-red); stroke-width: 2.2; stroke-dasharray: 2.5 3.5; stroke-linecap: round; }
.sz-vib { fill: none; stroke: var(--sz-red); stroke-width: 1.9; stroke-linecap: round; }
.sz-pille { fill: var(--sz-street); fill-opacity: .95; stroke: var(--sz-mute); stroke-opacity: .45; stroke-width: 1; }
.sz-spur { fill: var(--sz-land); stroke: var(--sz-mute); stroke-opacity: .55; stroke-width: 1; }
.sz-fuell { fill: var(--sz-ink); }
.sz-pip { fill: var(--sz-street); stroke: var(--sz-ink); stroke-width: 2; }
.sz-strahl { stroke: var(--sz-red); stroke-width: 2.4; stroke-linecap: round; }

@media (max-width: 899px) {
  .pow-legende { gap: 10px 16px; }
  .pow > :not(.pow-szene) { margin-inline: 16px; }
  /* Handy-Feinschliff 17.11.2026: Etiketten nie unter 12 px, Hinweis der Gegenseite lesbar */
  .pow-legende, .pow-rolle, .pow-chip { font-size: .75rem; }
  .pow-merkt { font-size: .9rem; line-height: 1.45; }
}
