/* MINIMAL PINKY - Seite: schwarz/weiss, Versalien, scharfe Kanten (Typografie wie Minimal Run). Das Spielbild fuellt die
   Flaeche, die Anzeige liegt in den Raendern ausserhalb des Spielfelds (Desktop: Seiten, Handy: oben/unten). */
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; background: #08080b; color: #fff;
             font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif; touch-action: none;
             overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
             -webkit-tap-highlight-color: transparent; }
#feld { position: fixed; inset: 0; box-sizing: border-box; touch-action: none;
        padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
/* Spielfeld im festen Seitenverhaeltnis 9:16 bis 3:4 (rahmen.js setzt Ort und Groesse), aussen der Rahmen */
#rahmen { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#buehne { position: absolute; left: 0; top: 0; width: 100%; height: 100%; touch-action: none; z-index: 1; }
#spiel { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; }

#anzeige { position: absolute; inset: 0; pointer-events: none; --u: max(10px, min(1.4vw, 2.3vh)); }
.text { font-size: var(--u); letter-spacing: 0.14em; font-weight: 600; text-transform: uppercase; }
/* 0.26.0: Schrift und Zeichen im Spielfeld liegen auf hellem Eis und heller Stadt - dunkler Schatten statt Tafel */
#anzeige .text { text-shadow: 0 1px 2px rgb(0 0 0 / 0.95), 0 0 8px rgb(0 0 0 / 0.6); }
#anzeige #leben, #anzeige #ausruestung .neben, #anzeige #ausruestung .kraft { filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.9)); }
.weg { display: none !important; }

/* oben links: Punkte, Kette, Bestwert */
#links { position: absolute; left: calc(var(--u) * 1.4); top: calc(var(--u) * 1.1); display: flex; align-items: baseline;
         gap: calc(var(--u) * 0.8); flex-wrap: wrap; max-width: 46%; }
#punkte { font-size: calc(var(--u) * 1.5); font-weight: 700; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
#faktor { color: #ffe14d; }
#faktor.neu { animation: puls 0.5s ease-out; }
#best { opacity: 0.5; font-size: calc(var(--u) * 0.75); }
@keyframes puls { 0% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* oben rechts: Abschnitt und Leben */
#rechts { position: absolute; right: calc(var(--u) * 1.4); top: calc(var(--u) * 1.2); display: flex; flex-direction: column;
          align-items: flex-end; gap: calc(var(--u) * 0.35); max-width: 52%; text-align: right; }
#ort { opacity: 0.9; }
/* 0.12.0 echter Ort: Name der Stelle, die gerade ins Bild kommt (Burg, Ort, Felsen), leise unter dem Weltnamen */
#stelle { opacity: 0.8; font-size: calc(var(--u) * 0.62); max-width: calc(var(--u) * 11); white-space: nowrap; overflow: hidden;
          text-overflow: ellipsis; letter-spacing: 0.06em; }
#stelle:empty { display: none; }
#stelle.neu { animation: stelleNeu 2.4s ease-out; }
@keyframes stelleNeu { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0.8; } }
#leben { display: flex; gap: calc(var(--u) * 0.35); }
#leben i { width: max(14px, calc(var(--u) * 1.1)); height: max(14px, calc(var(--u) * 1.1)); box-sizing: border-box; background: #fff;
           clip-path: polygon(50% 0, 100% 100%, 50% 72%, 0 100%); }
/* 0.26.0 Ausruestung: Hauptwaffe mit Kraft 1-5, Nebenwaffen als Zeichen */
#ausruestung { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: calc(var(--u) * 0.3) calc(var(--u) * 0.6);
               font-size: calc(var(--u) * 0.72); letter-spacing: 0.08em; }
#ausruestung b { font-weight: 600; }
#ausruestung .kraft { display: inline-flex; gap: max(1px, calc(var(--u) * 0.12)); }
#ausruestung .kraft i { width: max(4px, calc(var(--u) * 0.36)); height: max(9px, calc(var(--u) * 0.8)); background: rgb(255 255 255 / 0.28); }
#ausruestung .kraft i.an { background: #ff3dd8; }
#ausruestung .neben { display: inline-flex; gap: max(2px, calc(var(--u) * 0.22)); align-items: center; }
#ausruestung .neben i { width: max(9px, calc(var(--u) * 0.72)); height: max(9px, calc(var(--u) * 0.72)); }
#ausruestung .neben i.r { background: #ffb44d; clip-path: polygon(50% 0, 82% 100%, 18% 100%); }
#ausruestung .neben i.b { background: #ff6a4d; border-radius: 50%; }
#ausruestung .neben i.d { background: #7fdcff; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
#ausruestung .neben i.s { background: #66ffb0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* Boss: Balken oben in der Mitte */
#boss { position: absolute; left: 50%; top: calc(var(--u) * 3.0); transform: translateX(-50%); display: flex; flex-direction: column;
        align-items: center; gap: calc(var(--u) * 0.35); width: min(40vw, calc(var(--u) * 22)); }
#boss b { display: block; width: 100%; height: max(6px, calc(var(--u) * 0.42)); background: rgb(0 0 0 / 0.5);
          box-shadow: 0 0 0 1px rgb(255 255 255 / 0.45); }
#boss b i { display: block; height: 100%; width: 100%; background: #fff; transition: width 0.15s linear; }

/* Mitte: Titel, Hinweise, Bestenliste */
#mitte { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
         gap: calc(var(--u) * 0.8); text-align: center; padding: 0 calc(var(--u) * 1.2); }
#titel { font-weight: 700; line-height: 1; font-size: min(calc(var(--u) * 4.2), 13vw); letter-spacing: -0.035em; }
#unter { opacity: 0.85; white-space: pre-line; line-height: 1.4; }
/* 0.26.0 am Spielende: andere Welt (der neue Versuch liegt auf Tippen/Leertaste), Name aendern */
#andereWelt, #nameAendern { pointer-events: auto; background: none; color: #fff; font-family: inherit; cursor: pointer; touch-action: manipulation; }
#andereWelt { border: 1px solid rgb(255 255 255 / 0.45); padding: calc(var(--u) * 0.5) calc(var(--u) * 1.1); min-height: 44px; }
#nameAendern { border: 0; font-size: calc(var(--u) * 0.72); opacity: 0.7; text-decoration: underline; padding: calc(var(--u) * 0.3) calc(var(--u) * 0.6); min-height: 36px; }
#andereWelt:hover, #andereWelt:focus-visible { background: #fff; color: #08080b; text-shadow: none; outline: none; }
#nameAendern:hover, #nameAendern:focus-visible { opacity: 1; outline: none; }
/* 0.26.0 Querformat am Handy: das Feld ist winzig */
#drehen { display: none; position: absolute; left: 50%; bottom: calc(var(--u) * 0.8); transform: translateX(-50%); white-space: nowrap;
          font-size: calc(var(--u) * 0.8); opacity: 0.85; }
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) { body:not(.imspiel) #drehen { display: block; } }
@media (prefers-reduced-motion: reduce) { #hinweis.blinkt { animation: none; opacity: 0.85; } }
#hinweis.blinkt { animation: blinkt 2s ease-in-out infinite; }
@keyframes blinkt { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
#liste { list-style: none; margin: calc(var(--u) * 0.6) 0 0; padding: 0; display: grid; gap: calc(var(--u) * 0.45); opacity: 0.8; }
#liste li { display: grid; grid-template-columns: 2em 9em 7em; text-align: left; }
#liste li b { font-weight: 600; text-align: right; }
#liste li.neu { opacity: 1; text-decoration: underline; }
#legende { display: flex; gap: calc(var(--u) * 1.1); margin-top: calc(var(--u) * 0.6); opacity: 0.8; flex-wrap: wrap; justify-content: center; }
#legende span { display: flex; align-items: center; gap: calc(var(--u) * 0.4); }
#legende em { font-style: normal; }
#legende i { display: inline-block; width: calc(var(--u) * 0.7); height: calc(var(--u) * 0.7); }
#legende i.kraft { background: #ff3dd8; outline: 1px solid #fff; outline-offset: 2px; }
#legende i.ladung { background: #ff3da8; outline: 1px solid #fff; outline-offset: 2px; }
#legende i.kern { background: #fff; box-shadow: 0 0 calc(var(--u) * 0.6) #fff; width: calc(var(--u) * 0.45); height: calc(var(--u) * 0.45); }

/* Meldung: erscheint und blendet aus */
#meldung { position: absolute; left: 0; right: 0; top: 62%; text-align: center; font-size: calc(var(--u) * 1.6);
           font-weight: 700; letter-spacing: 0.02em; opacity: 0; }
#meldung.zeigen { animation: meldung 1.5s ease-in forwards; }
#meldung.warnung { color: #ffe14d; }
#feindHinweis { position: absolute; left: 5%; right: 5%; top: 12%; text-align: center; opacity: 0; pointer-events: none; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 0 10px rgba(0, 0, 0, .6); }
#feindHinweis b { display: block; font-size: calc(var(--u) * 2); font-weight: 700; letter-spacing: .05em; color: #ffe14d; }
#feindHinweis span { display: block; margin-top: .2em; font-size: calc(var(--u) * 1.5); }
#feindHinweis.zeigen { animation: feindHinweis 3.8s ease-out forwards; }
@keyframes feindHinweis { 0% { opacity: 0; transform: translateY(-6px); } 7% { opacity: 1; transform: none; } 84% { opacity: 1; } 100% { opacity: 0; } }
@keyframes meldung { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-0.6em); } }

/* Tastenhilfe beim Start */
#tasten { position: absolute; left: 50%; transform: translateX(-50%); bottom: 27%; width: max-content;
          max-width: calc(100% - var(--u) * 3.2); box-sizing: border-box; text-align: center; font-size: calc(var(--u) * 0.75);
          line-height: 1.6; padding: calc(var(--u) * 0.45) calc(var(--u) * 1.0); background: rgb(10 10 14 / 0.66);
          border: 1px solid rgb(255 255 255 / 0.2); white-space: pre-wrap; text-wrap: balance; }
#tasten .gruppe, #menueTasten .gruppe { white-space: nowrap; }
/* PINKY 0.8.0 Arena (breites Vollbild): die Tastenhilfe lag ueber dem Schiff - oben unter den Anzeigen; das Raster der
   Weltwahl rueckt seitlich ein (wie dioramaBauen und kachelWaehlen) */
/* PINKY 0.11.1: der Achtung-Streifen (#gefahr, 5,4 u, rund 2 u hoch) lag auf der Hilfe (15 %) - die Hilfe beginnt darunter
   (rechts oben endet die Anzeige bei ~6,4 u), der Hinweis auf neue Gegner rueckt unter die Hilfe, solange sie steht */
@media (min-aspect-ratio: 6/5) {
	body[data-rahmen="voll"] #tasten { bottom: auto; top: calc(var(--u) * 8.1); }
	body[data-rahmen="voll"] #anzeige:has(#tasten:not(.weg)) #feindHinweis { top: calc(var(--u) * 11.6); }
	body[data-rahmen="voll"] #welten { left: 12%; right: 12%; }
}

/* Bruch (Spezialwaffe): Ladungen unten links (Tastatur/Gamepad), Knopf unten rechts (Touch) */
.ladungen { display: flex; gap: calc(var(--u) * 0.32); }
.ladungen i { position: relative; width: calc(var(--u) * 0.75); height: calc(var(--u) * 0.75); box-sizing: border-box;
              border: max(1px, calc(var(--u) * 0.12)) solid #fff; overflow: hidden; }
.ladungen i.voll { background: #ff3da8; border-color: #fff; }
.ladungen i b { position: absolute; left: 0; right: 0; bottom: 0; background: rgb(255 255 255 / 0.55); }
#bruchAnzeige { position: absolute; left: calc(var(--u) * 1.4); bottom: calc(var(--u) * 4.2); display: flex; align-items: center;
                gap: calc(var(--u) * 0.7); }
#bruchAnzeige.bereit > .text:first-child { color: #ff3da8; }
#bruchTaste { opacity: 0.5; font-size: calc(var(--u) * 0.72); }
#bruchKnopf { display: none; position: absolute; right: max(12px, calc(var(--u) * 1.0)); bottom: max(12px, calc(var(--u) * 1.0));
              pointer-events: auto; width: max(72px, calc(var(--u) * 5.5)); height: max(72px, calc(var(--u) * 5.5));
              background: rgb(8 8 11 / 0.55); border: 2px solid rgb(255 255 255 / 0.65); color: #fff; font-family: inherit;
              flex-direction: column; align-items: center; justify-content: center; gap: 10px; touch-action: none; cursor: pointer; }
#bruchKnopf.bereit { border-color: #ff3da8; box-shadow: 0 0 18px rgb(255 61 168 / 0.35); }
#bruchKnopf.leer { opacity: 0.45; }
#bruchKnopf.gedrueckt { background: rgb(255 61 168 / 0.35); }
body.touch #bruchKnopf { display: flex; }
body.touch #bruchAnzeige, body.touch #ton { display: none !important; }

/* Ecken-Knoepfe: Menue unten links, Ton unten rechts (Touch: Ton im Menue) */
#ton, #menueKnopf { position: absolute; bottom: calc(var(--u) * 1.0); pointer-events: auto; background: none; border: 0;
       color: #fff; opacity: 0.45; padding: calc(var(--u) * 0.6) calc(var(--u) * 1.2); font-family: inherit; cursor: pointer;
       touch-action: manipulation; min-height: 44px; min-width: 88px; }
#ton { right: calc(var(--u) * 0.4); }
#ton.aus { opacity: 0.8; text-decoration: line-through; }
#menueKnopf { left: calc(var(--u) * 0.4); }
#ton:hover, #menueKnopf:hover { opacity: 0.9; }
body.touch #menueKnopf { left: max(4px, calc(var(--u) * 0.2)); bottom: max(12px, calc(var(--u) * 1.0)); }
/* 0.26.0 Finger, Feld fuellt den Schirm: Menue oben in der Mitte als Zeichen (unten ruht der Daumen und haelt sonst das Spiel an) */
body.touch #anzeige > #menueKnopf { left: 50%; transform: translateX(-50%); bottom: auto; top: 0; min-width: 48px; padding: 2px 10px; font-size: 0; opacity: 0.7; }
body.touch #anzeige > #menueKnopf::before { content: '≡'; font-size: 24px; line-height: 1; }

/* Namenseingabe und Menue: schlichte Tafel */
#eintrag, #menue { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5;
                   background: rgba(8, 8, 11, 0.88); border: 1px solid rgba(255, 255, 255, 0.35);
                   padding: calc(var(--u) * 1.6) calc(var(--u) * 2.2); display: flex; flex-direction: column;
                   align-items: center; gap: calc(var(--u) * 0.9); --u: max(12px, min(1.5vw, 2.4vh)); touch-action: manipulation;
                   max-width: calc(100vw - 32px); box-sizing: border-box; }
/* 0.26.0: das Menue passt auch auf kleine Schirme (scrollt in sich) */
#menue { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
#menue > * { flex-shrink: 0; }
#eintrag .kopf { opacity: 0.6; }
#eintragPunkte { font-size: calc(var(--u) * 2.6); font-weight: 700; letter-spacing: -0.02em; }
#name { background: none; border: 0; border-bottom: 1px solid #fff; color: #fff; text-align: center; width: 10em;
        font-family: inherit; padding: calc(var(--u) * 0.3); outline: none; -webkit-user-select: text; user-select: text;
        font-size: max(16px, var(--u)); }
#eintrag .knoepfe { display: flex; gap: calc(var(--u) * 1.2); flex-wrap: wrap; justify-content: center; }
#eintrag button, #menue button { background: none; border: 1px solid rgba(255, 255, 255, 0.4); color: #fff;
        font-family: inherit; padding: calc(var(--u) * 0.6) calc(var(--u) * 1.2); min-height: 44px; min-width: 9em; cursor: pointer; }
#eintrag button:focus-visible, #menue button:focus-visible, #eintrag button:hover, #menue button:hover {
        background: #fff; color: #08080b; outline: none; }
#sprachen { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(var(--u) * 0.4); max-width: min(30em, 86vw); }
#ueber { color: rgb(255 255 255 / 0.66); font-size: calc(var(--u) * 0.72); text-decoration: none; padding: 0.5em 0.2em;
         border-bottom: 1px solid rgb(255 255 255 / 0.3); }
#ueber:hover, #ueber:focus-visible { color: #fff; border-color: #fff; outline: none; }
#menue #sprachen button { min-width: 0; min-height: 40px; padding: calc(var(--u) * 0.45) calc(var(--u) * 0.9);
                          border-color: rgba(255, 255, 255, 0.22); opacity: 0.7; letter-spacing: 0.08em; }
#menue #sprachen button.an { opacity: 1; border-color: #fff; }
/* 0.12.0 Quellen der echten Orte (OpenStreetMap, Hoehenmodell) - leise unter dem Link "Ueber das Spiel" */
#quellen { color: rgb(255 255 255 / 0.5); font-size: max(9px, calc(var(--u) * 0.56)); max-width: calc(var(--u) * 26); text-align: center; line-height: 1.4; }
#menueTasten { margin-top: calc(var(--u) * 0.6); display: grid; gap: calc(var(--u) * 0.4); font-size: calc(var(--u) * 0.68);
               color: rgb(255 255 255 / 0.66); text-align: center; max-width: min(36em, 90vw); line-height: 1.5; white-space: pre-wrap; }

#lade { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
        background: #08080b; text-transform: uppercase; text-align: center; }
#lade h1 { font-weight: 700; font-size: clamp(34px, 8vw, 96px); letter-spacing: -0.035em; line-height: 1; margin: 0 0 0.6em; }
#lade p { font-size: 13px; letter-spacing: 0.3em; opacity: 0.6; margin: 0 16px; }
/* 0.26.0: Balken laeuft auf dem Compositor weiter, auch wenn die Shader die Seite gerade anhalten; Fehler gross, mit Rat und Knopf */
#ladeBalken { width: min(220px, 50vw); height: 2px; margin-top: 20px; background: rgb(255 255 255 / 0.15); overflow: hidden; }
#ladeBalken i { display: block; width: 40%; height: 100%; background: #fff; will-change: transform; animation: ladeLauf 1.4s ease-in-out infinite; }
@keyframes ladeLauf { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
#status.fehler { opacity: 1; font-size: clamp(14px, 2.2vw, 18px); letter-spacing: 0.1em; line-height: 1.5; max-width: min(560px, 90vw); }
#fehlerRat { text-transform: none; letter-spacing: 0.04em !important; line-height: 1.5; max-width: min(560px, 90vw); margin-top: 14px !important; opacity: 0.75 !important; }
#neuLaden { margin-top: 24px; background: none; border: 1px solid #fff; color: #fff; font-family: inherit; font-size: 13px; padding: 10px 22px; min-height: 44px;
            cursor: pointer; touch-action: manipulation; letter-spacing: 0.14em; }
#neuLaden:hover, #neuLaden:focus-visible { background: #fff; color: #08080b; outline: none; }

/* Aufnahmen: ?aufnahme=1 ohne Menue-/Ton-Knopf, ?aufnahme=2 nur das Spielbild, ?aufnahme=3 auch ohne Seitentafeln */
body.aufnahme1 #menueKnopf, body.aufnahme1 #ton { display: none !important; }
body.aufnahme2 #feindHinweis { display: none !important; }
body.aufnahme2 #anzeige { display: none !important; }
body.aufnahme3 .tafel { display: none !important; }

/* Weltwahl: Namen im selben Raster wie die Dioramen (oben 17 %, hochkant 13 %, unten 6 %), die gewaehlte hell; der Titel
   rueckt nach oben, der Bruch-Knopf ist ausserhalb des Spiels weg */
#welten { position: absolute; left: 0; right: 0; top: 17%; bottom: 6%; display: grid; grid-template-columns: repeat(4, 1fr);
          grid-template-rows: repeat(2, 1fr); pointer-events: none; }
#welten.hoch { top: 13%; }
/* 0.23.0: 16 Level im 4 x 4-Raster - Welt und Ort in zwei Zeilen */
#welten { grid-template-rows: repeat(4, 1fr); }
/* 0.29.0: 32 Level auf zwei Seiten - Umschalter unten in der Mitte (unter den Kacheln ist Platz) */
#wahlSeite { position: absolute; left: 50%; bottom: 0.6%; transform: translateX(-50%); display: flex; align-items: center; gap: calc(var(--u) * 0.6);
             font-size: calc(var(--u) * 0.85); pointer-events: auto; z-index: 3; }
#wahlSeite button { font: inherit; color: #fff; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: calc(var(--u) * 0.3);
                    min-width: max(36px, calc(var(--u) * 1.9)); min-height: max(32px, calc(var(--u) * 1.5)); cursor: pointer; }
#wahlSeite button:hover, #wahlSeite button:focus-visible { background: rgba(255, 255, 255, 0.18); }
#wahlSeite span { min-width: calc(var(--u) * 6.5); text-align: center; letter-spacing: 0.04em; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); }
#welten span { white-space: pre-line; text-align: center; line-height: 1.15; font-size: calc(var(--u) * 0.78); }
#welten span small { display: block; font-size: 0.78em; opacity: 0.8; text-transform: none; letter-spacing: 0.02em; }
/* 0.26.0 Rekord je Level */
#welten span em { display: block; font-style: normal; font-size: 0.74em; color: #ffe14d; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; }
#welten span { align-self: end; justify-self: center; padding-bottom: calc(var(--u) * 0.45); opacity: 0.5; transition: opacity 0.2s; }
#welten span.an { opacity: 1; border-bottom: max(1px, calc(var(--u) * 0.12)) solid #fff; }
#anzeige.auswahl #mitte { top: calc(var(--u) * 1.0); bottom: auto; height: auto; justify-content: flex-start; gap: calc(var(--u) * 0.35); }
#anzeige.auswahl #titel { font-size: min(calc(var(--u) * 2.2), 9vw); }
body.touch:not(.imspiel) #bruchKnopf { display: none; }

/* Filmhilfe (?geraet=pad|tasten|touch, nur fuer Aufnahmen): Controller bzw. Tasten unten links ueber der Bruch-Anzeige,
   die Eingaben leuchten mit; Touch: Finger unter dem Schiff und am Knopf */
#filmhilfe { position: absolute; pointer-events: none; }
#filmhilfe.pad, #filmhilfe.tasten { left: calc(var(--u) * 1.4); bottom: calc(var(--u) * 6.0); width: calc(var(--u) * 12.5); }
#filmhilfe.touch { inset: 0; }
#filmhilfe svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 14px rgb(0 0 0 / 0.55)); }
#filmhilfe .koerper { fill: rgb(18 19 25 / 0.93); stroke: rgb(233 236 242 / 0.42); stroke-width: 1.6; }
#filmhilfe .mulde { fill: rgb(8 8 11 / 0.75); stroke: rgb(233 236 242 / 0.18); stroke-width: 1.2; }
#filmhilfe .stick { fill: #e9ecf2; opacity: 0.8; transition: fill 0.12s; }
#filmhilfe .stick.an { fill: #ff3da8; opacity: 1; filter: drop-shadow(0 0 6px rgb(255 61 168 / 0.8)); }
#filmhilfe .kreuz rect, #filmhilfe .klein { fill: rgb(233 236 242 / 0.35); }
#filmhilfe .knopf { fill: rgb(233 236 242 / 0.22); stroke: rgb(233 236 242 / 0.45); stroke-width: 1.2; }
#filmhilfe .knopf.a, #filmhilfe .knopf.x { fill: rgb(233 236 242 / 0.4); }
#filmhilfe .taste { fill: rgb(14 15 20 / 0.8); stroke: rgb(233 236 242 / 0.5); stroke-width: 1.6; transition: fill 0.1s; }
#filmhilfe .pfeil { fill: #e9ecf2; opacity: 0.85; }
#filmhilfe text { fill: #fff; font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-anchor: middle; text-transform: uppercase; }
#filmhilfe .kreuz rect.an, #filmhilfe .taste.an, #filmhilfe .knopf.an { fill: #ff3da8; stroke: #fff;
                                                                        filter: drop-shadow(0 0 7px rgb(255 61 168 / 0.85)); }
#filmhilfe .finger { position: absolute; left: 0; top: 0; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%;
                     box-sizing: border-box; border: 2px solid rgb(255 255 255 / 0.6); opacity: 0; transition: opacity 0.25s;
                     background: radial-gradient(circle, rgb(255 255 255 / 0.42), rgb(255 255 255 / 0.14) 62%, rgb(255 255 255 / 0) 72%); }
#filmhilfe .finger.an { opacity: 1; }
#filmhilfe .finger.tipp { left: auto; top: auto; margin: 0;
                          right: calc(max(12px, var(--u) * 1.0) + max(72px, var(--u) * 5.5) / 2 - 30px);
                          bottom: calc(max(12px, var(--u) * 1.0) + max(72px, var(--u) * 5.5) / 2 - 30px); transition: opacity 0.1s; }

/* Tafeln (quer, links und rechts) und Baender (hochkant, oben und unten) um das Spielfeld: die Anzeige wird beim Wechsel
   der Aufteilung hierher umgehaengt (rahmen.js); jede Gruppe liegt auf einer dunklen Karte ueber den Steinen */
.tafel { position: absolute; z-index: 2; box-sizing: border-box; display: flex; flex-direction: column;
         justify-content: space-between; align-items: stretch; pointer-events: none; padding: calc(var(--u) * 1.4);
         --u: 16px; }
.tafel .oben, .tafel .unten { display: flex; flex-direction: column; align-items: center; gap: calc(var(--u) * 0.9);
         background: rgb(8 8 11 / 0.74); border: 1px solid rgb(255 255 255 / 0.14); padding: calc(var(--u) * 1.1);
         box-shadow: 0 10px 28px rgb(0 0 0 / 0.45); }
.tafel .oben:empty, .tafel .unten:empty { display: none; }
.tafel #links, .tafel #rechts, .tafel #bruchAnzeige, .tafel #menueKnopf, .tafel #ton, .tafel #marke, .tafel #bruchKnopf {
         position: static; transform: none; left: auto; right: auto; top: auto; bottom: auto; max-width: none; }
.tafel #links, .tafel #rechts { flex-direction: column; align-items: center; gap: calc(var(--u) * 0.45); text-align: center; }
.tafel #punkte { font-size: calc(var(--u) * 2.3); }
.tafel #faktor { font-size: calc(var(--u) * 1.1); }
.tafel #best { font-size: calc(var(--u) * 0.8); }
.tafel #ort { font-size: calc(var(--u) * 0.95); }
.tafel #stelle { font-size: calc(var(--u) * 0.72); max-width: 100%; white-space: normal; }
.tafel #leben i { width: calc(var(--u) * 1.0); height: calc(var(--u) * 1.0); }
.tafel #ausruestung { justify-content: center; font-size: calc(var(--u) * 0.72); }
.tafel #bruchAnzeige { flex-direction: column; gap: calc(var(--u) * 0.5); }
.tafel .ladungen i { width: calc(var(--u) * 1.0); height: calc(var(--u) * 1.0); }
.tafel #menueKnopf, .tafel #ton { padding: calc(var(--u) * 0.5) calc(var(--u) * 0.9); min-height: 40px; }
.tafel #bruchKnopf { width: calc(var(--u) * 6.5); height: calc(var(--u) * 6.5); }
/* Baender: eine Zeile, oben Punkte | Welt + Leben, unten Menue | Bruch | Ton */
.tafel.band { flex-direction: row; justify-content: center; padding: calc(var(--u) * 0.45) calc(var(--u) * 0.8); }
.tafel.band .oben, .tafel.band .unten { flex: 1 1 auto; flex-direction: row; justify-content: space-between; align-items: center;
         padding: calc(var(--u) * 0.45) calc(var(--u) * 0.9); gap: calc(var(--u) * 0.8); background: rgb(8 8 11 / 0.6); }
.tafel.band #links, .tafel.band #rechts { flex-direction: row; align-items: baseline; }
/* 0.26.0: im Band hat die Ausruestung eine eigene Zeile, der Ortsname faellt am Handy weg */
.tafel.band #rechts { flex-wrap: wrap; justify-content: flex-end; align-items: center; row-gap: calc(var(--u) * 0.2); max-width: none; }
.tafel.band #ausruestung { flex-basis: 100%; justify-content: flex-end; font-size: calc(var(--u) * 0.64); }
body.touch .tafel.band #stelle { display: none; }
.tafel.band #punkte { font-size: calc(var(--u) * 1.7); }
.tafel.band #bruchAnzeige { flex-direction: row; }
.tafel.band #bruchKnopf { width: auto; height: calc(100% - 4px); min-height: 0; aspect-ratio: 1; gap: 4px; }

/* 0.38.0 HUD nach Minimal Outpost / Gefecht (KONZEPT_RAID_HUD.md): Glastafeln mit Schraegecken und Akzentstrich, Holo-Schrift,
   unterteilte Balken, Radar, Ziel erfasst, Warnstreifen, Treffer-Vignette (hud.js) */
:root { --holo: #ffe6f6; --holo2: #ff5ab4; --hg: rgb(255 90 180 / 0.55); --warn: #ffe14d; --feind: #19f0ff; --amber: #ffc060; }
.tafel .oben, .tafel .unten { position: relative;
	background: linear-gradient(135deg, rgb(255 190 235 / 0.15), rgb(157 77 255 / 0.05)), rgb(10 6 18 / 0.6);
	border: 1px solid rgb(255 160 220 / 0.5); box-shadow: 0 0 22px rgb(255 46 151 / 0.2), inset 0 0 24px rgb(190 120 255 / 0.08);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.tafel .oben::before, .tafel .unten::before { content: ""; position: absolute; left: 0; top: 0; width: 46px; height: 3px;
	background: var(--holo); box-shadow: 0 0 10px var(--holo2); }
.tafel.band .oben, .tafel.band .unten { background: linear-gradient(135deg, rgb(255 190 235 / 0.13), rgb(157 77 255 / 0.04)), rgb(10 6 18 / 0.55);
	clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.tafel .text { color: var(--holo); text-shadow: 0 0 8px var(--hg); }
.tafel #punkte { color: #fff; font-family: Consolas, "SF Mono", ui-monospace, monospace; letter-spacing: 0.04em; text-shadow: 0 0 14px var(--holo2); }
.tafel #faktor { color: var(--warn); text-shadow: 0 0 10px rgb(255 208 64 / 0.6); }
.tafel #leben i { background: var(--holo); }
.tafel #leben { filter: drop-shadow(0 0 4px var(--holo2)); }
#ausruestung .kraft i { border: 1px solid rgb(200 240 255 / 0.18); box-sizing: border-box; background: rgb(200 240 255 / 0.13); }
#ausruestung .kraft i.an { background: #ff3dd8; border-color: #ff9be8; box-shadow: 0 0 7px #ff3dd8; }
.tafel .ladungen i { border-color: var(--holo); }
.ladungen i.voll { box-shadow: 0 0 8px #ff3da8; }
#bruchKnopf { border-color: rgb(255 160 220 / 0.6); background: linear-gradient(135deg, rgb(255 190 235 / 0.14), rgb(157 77 255 / 0.04)), rgb(10 6 18 / 0.5);
	clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
#bruchKnopf.bereit { border-color: #ff3da8; box-shadow: inset 0 0 18px rgb(255 61 168 / 0.35); }
/* Boss: Balken mit 40 Zellen, rot leuchtend */
#bossName { color: #a8f8ff; letter-spacing: 0.22em; text-shadow: 0 0 10px rgb(25 240 255 / 0.6), 0 1px 2px rgb(0 0 0 / 0.9); }
#boss b { position: relative; background: rgb(25 200 255 / 0.12); box-shadow: 0 0 0 1px rgb(140 245 255 / 0.6), 0 0 14px rgb(25 240 255 / 0.35); }
#boss b i { background: var(--feind); box-shadow: 0 0 10px var(--feind); }
#boss b::after { content: ""; position: absolute; inset: 0;
	background: repeating-linear-gradient(90deg, transparent 0 calc(2.5% - 2px), rgb(8 8 11 / 0.92) calc(2.5% - 2px) 2.5%); }
#meldung { letter-spacing: 0.14em; text-shadow: 0 0 22px var(--holo2), 0 2px 12px rgb(0 0 0 / 0.8); }
#meldung.warnung { color: var(--warn); text-shadow: 0 0 18px rgb(255 208 64 / 0.6), 0 2px 12px rgb(0 0 0 / 0.8); }
#eintrag, #menue { background: linear-gradient(135deg, rgb(255 190 235 / 0.14), rgb(157 77 255 / 0.04)), rgb(10 6 18 / 0.88);
	border-color: rgb(255 160 220 / 0.5); box-shadow: 0 0 26px rgb(255 46 151 / 0.22);
	clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }

/* Radar: rund, Leinwand in Geraetepixeln (hud.js) */
#radar { position: relative; flex: none; width: min(100%, calc(var(--u) * 10.5)); aspect-ratio: 1; border-radius: 50%;
	box-shadow: 0 0 22px rgb(255 46 151 / 0.28), inset 0 0 18px rgb(190 120 255 / 0.1); }
#radarC { width: 100%; height: 100%; display: block; border-radius: 50%; }
#anzeige > #radar { position: absolute; right: calc(var(--u) * 0.8); bottom: calc(var(--u) * 4.6); width: calc(var(--u) * 7); }
.tafel.band #radar { width: auto; height: calc(100% - 2px); }

/* Ziel erfasst: rote Glaskarte; ohne Ziel bleibt der Platz (blass) */
#ziel { position: relative; width: 100%; box-sizing: border-box; padding: calc(var(--u) * 0.55) calc(var(--u) * 0.7);
	text-align: left; border: 1px solid rgb(140 245 255 / 0.5); background: linear-gradient(135deg, rgb(60 220 255 / 0.16), rgb(25 200 255 / 0.04));
	clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: opacity 0.15s;
	display: flex; flex-direction: column; gap: calc(var(--u) * 0.32); }
#ziel.aus { opacity: 0.18; }
#ziel .kopfz { display: flex; justify-content: space-between; align-items: center; gap: calc(var(--u) * 0.5); font-size: calc(var(--u) * 0.58);
	letter-spacing: 0.2em; text-transform: uppercase; color: #a8f8ff; white-space: nowrap; font-weight: 600; }
#ziel .kopfz span { display: flex; align-items: center; overflow: hidden; text-overflow: ellipsis; }
#ziel .kopfz em { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
#ziel .punkt { display: inline-block; flex: none; width: calc(var(--u) * 0.42); height: calc(var(--u) * 0.42); margin-right: calc(var(--u) * 0.4);
	background: var(--feind); box-shadow: 0 0 8px var(--feind); animation: hudBlink 1.6s steps(2) infinite; }
#ziel.laedt .punkt { background: var(--warn); box-shadow: 0 0 8px var(--warn); animation-duration: 0.4s; }
#zielWeit { font: 600 calc(var(--u) * 0.66) Consolas, "SF Mono", ui-monospace, monospace; color: #fff; letter-spacing: 0.06em; }
#zielName { font-size: calc(var(--u) * 0.82); letter-spacing: 0.14em; text-transform: uppercase; color: #fff; font-weight: 600;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 10px rgb(25 240 255 / 0.5); min-height: 1.2em; }
#zielSeg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; height: max(5px, calc(var(--u) * 0.48)); }
#zielSeg i { background: rgb(170 245 255 / 0.12); border: 1px solid rgb(170 245 255 / 0.2); }
#zielSeg i.an { background: var(--feind); border-color: #a8f8ff; box-shadow: 0 0 7px var(--feind); }
#zielGefahr { display: flex; gap: max(2px, calc(var(--u) * 0.2)); }
#zielGefahr i { width: max(5px, calc(var(--u) * 0.42)); height: max(5px, calc(var(--u) * 0.42)); background: rgb(25 200 255 / 0.16); }
#zielGefahr i.an { background: var(--feind); box-shadow: 0 0 6px var(--feind); }
body[data-rahmen="baender"] #ziel, body[data-rahmen="voll"] #ziel { display: none !important; }
@keyframes hudBlink { 50% { opacity: 0.2; } }

/* Warnstreifen (Boss laedt, Laser angekuendigt) */
#gefahr { position: absolute; left: 50%; top: calc(var(--u) * 5.4); transform: translateX(-50%); padding: calc(var(--u) * 0.4) calc(var(--u) * 1.5);
	font-size: calc(var(--u) * 0.72); letter-spacing: 0.3em; font-weight: 700; color: #1a1408; white-space: nowrap; opacity: 0;
	transition: opacity 0.12s; background: repeating-linear-gradient(-45deg, var(--warn) 0 10px, #e0b81a 10px 20px);
	box-shadow: 0 0 20px rgb(255 208 64 / 0.6); clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); pointer-events: none; }
#anzeige #gefahr { text-shadow: none; }
#gefahr span { background: var(--warn); padding: 1px 8px; }
#gefahr.an { opacity: 1; animation: gefahrBlink 0.5s steps(2) infinite; }
@keyframes gefahrBlink { 50% { opacity: 0.35; } }

/* Treffer: rote Vignette */
#vignette { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 18vmin rgb(255 30 140 / 0.6); opacity: 0; }
#vignette.an { animation: vignette 0.7s ease-out; }
@keyframes vignette { 0% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #gefahr.an { animation: none; } #ziel .punkt { animation: none; } }

/* 0.39.0 Vektor-Modus (Tab): die HTML-Anzeige in derselben Leuchtfarbe wie das Bild - Helligkeit x Phosphor (SVG-Filter in
   index.html), nur ueber der Anzeige, nicht ueber der Spiel-Leinwand (die faerbt post_bild.frag) */
body[data-vektor="gruen"] #anzeige, body[data-vektor="gruen"] .tafel, body[data-vektor="gruen"] #menue, body[data-vektor="gruen"] #eintrag { filter: url(#phosphorGruen); }
body[data-vektor="amber"] #anzeige, body[data-vektor="amber"] .tafel, body[data-vektor="amber"] #menue, body[data-vektor="amber"] #eintrag { filter: url(#phosphorAmber); }
body[data-vektor="gruen"] .tafel .oben, body[data-vektor="gruen"] .tafel .unten, body[data-vektor="amber"] .tafel .oben, body[data-vektor="amber"] .tafel .unten {
	background: rgb(0 0 0 / 0.72); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* PINKY 0.1.0 (KONZEPT_PINKY.md): Titel und Ladeschirm in Neon-Pink, Ladebalken pink, Auswahl-Unterstrich pink */
#titel { color: #ffe6f6; text-shadow: 0 0 calc(var(--u) * 0.5) #ff2e97, 0 0 calc(var(--u) * 1.6) rgb(255 46 151 / 0.7), 0 0 calc(var(--u) * 3.2) rgb(157 77 255 / 0.45); }
#lade h1 { color: #ffe6f6; text-shadow: 0 0 10px #ff2e97, 0 0 34px rgb(255 46 151 / 0.75), 0 0 70px rgb(157 77 255 / 0.5); }
#ladeBalken i { background: #ff3da8; box-shadow: 0 0 10px #ff2e97; }
#welten span.an { border-bottom-color: #ff3da8; text-shadow: 0 0 10px rgb(255 46 151 / 0.7); }
