:root {
    --theme-color: #00ffcc;
    --theme-glow: rgba(0, 255, 204, 0.4);
    --theme-bg: rgba(0, 255, 204, 0.12);
    --font-head: 'Orbitron', -apple-system, sans-serif;
    --font-ui: 'Space Grotesk', -apple-system, sans-serif;
    --font-digits: 'Rajdhani', monospace;
}

body.hider-mode {
    --theme-color: #ffaa00;
    --theme-glow: rgba(255, 170, 0, 0.4);
    --theme-bg: rgba(255, 170, 0, 0.12);
}

body, html { 
    margin: 0; padding: 0; height: 100%; width: 100%; 
    background-color: #0d0e12; 
    font-family: var(--font-ui); 
    color: #ffffff; 
    overflow: hidden; 
    user-select: none;
}

#map { height: 100%; width: 100%; z-index: 1; position: absolute; top: 0; left: 0; background: #111; }

/* Globale Map-Dark-Filter */
.map-dark-mode .leaflet-tile-pane {
    filter: invert(100%) hue-rotate(180deg) brightness(85%) contrast(120%) grayscale(20%) !important;
    -webkit-filter: invert(100%) hue-rotate(180deg) brightness(85%) contrast(120%) grayscale(20%) !important;
}

.map-light-mode .leaflet-tile-pane {
    filter: none !important;
    -webkit-filter: none !important;
}

.hud-scanlines { display: none; }

.fog-of-war-mask {
    fill: #000000 !important;
    fill-opacity: 0.75 !important;
    stroke: transparent !important;
    stroke-width: 0 !important;
}

.glowing-boundary-active {
    filter: drop-shadow(0 0 6px var(--theme-color)) drop-shadow(0 0 15px var(--theme-glow));
    transition: opacity 0.4s ease, filter 0.4s ease;
}

.leaflet-interactive {
    transition: stroke-dashoffset 0.4s ease, opacity 0.4s ease;
}

.radar-sweep-cone {
    pointer-events: none;
}

.map-emoji-pin { 
    background: rgba(15, 15, 20, 0.95); 
    border: 2px solid var(--theme-color); 
    border-radius: 50%; 
    width: 34px; 
    height: 34px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 17px; 
    line-height: 1;
    box-sizing: border-box;
    box-shadow: 0 0 10px var(--theme-glow); 
    transform: none; 
    transition: 0.2s box-shadow;
}
.map-emoji-pin.is-locked-glow { 
    border-color: #ffaa00; 
    box-shadow: 0 0 18px #ffaa00; 
}

.gps-user-marker { 
    background: #007aff; border: 3px solid #ffffff; border-radius: 50%; width: 18px; height: 18px; 
    box-shadow: 0 0 15px #007aff; transform: translate(-9px, -9px); animation: pulse-gps 2s infinite; 
}
@keyframes pulse-gps {
    0% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.7); }
    70% { box-shadow: 0 0 0 14px rgba(0, 122, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }
}

/* ========================================================
   Feste Top-Nav: 3 Spalten, sauber zentriert
   ======================================================== */
.top-nav {
    position: absolute; top: 12px; left: 12px; right: 12px; z-index: 1000;
    display: flex; gap: 8px; align-items: flex-start; justify-content: space-between;
    pointer-events: none;
}
.top-nav > * { pointer-events: auto; }

.role-badge, .size-switch {
    flex-shrink: 0;
}

.role-badge {
    background: rgba(16, 17, 23, 0.85); backdrop-filter: blur(20px);
    border: 1.5px solid var(--theme-color); border-radius: 12px;
    padding: 7px 12px; display: flex; align-items: center; gap: 6px;
    color: var(--theme-color); font-family: var(--font-head); font-weight: 700; font-size: 11px; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4); transition: 0.2s; letter-spacing: 0.5px;
}
.role-badge.hider { border-color: #ffaa00; color: #ffaa00; }

.size-switch { 
    background: rgba(16, 17, 23, 0.85); border: 1px solid rgba(255,255,255,0.15); 
    border-radius: 10px; display: flex; overflow: hidden; backdrop-filter: blur(20px); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.size-btn { background: transparent; border: none; color: #666; padding: 7px 10px; font-size: 11px; font-weight: 800; cursor: pointer; font-family: var(--font-head); }
.size-btn.active#size-s { background: #ffcc00; color: #000; }
.size-btn.active#size-m { background: #ff7700; color: #fff; }
.size-btn.active#size-l { background: #ff3333; color: #fff; }

/* ========================================================
   TIMER-ISLAND (Dynamic-Island-Stil, "Glas")
   Aufbau (siehe index.html):
     #timer-container.timer-island   unsichtbarer Rahmen, mittig oben
       .island-glass                 Haupt-Glaspanel (Label + Ziffern)
       .island-tray-clip             schneidet das Ausfahr-Panel ab
         .island-tray                zweites Glaspanel (Start/Reset/Gefunden + Pfeil)
   Eigene Klassen (island-*), damit andere Themes nicht hineinfunken.
   Phasen steuert app.js über Klassen an #timer-display:
       .island-digits            = Leerlauf (grau)
       .island-digits.headstart  = Vorsprung läuft (grün, leuchtet)
       .island-digits.seeking    = Suche / Versteckzeit läuft (rot, glüht, pulsiert)
   und über .is-paused / .expanded am Container #timer-container.
   Stellschrauben: Glas-Durchsichtigkeit = die rgba(...)-Werte in .island-glass / .island-tray
                   (letzte Zahl = Deckkraft, kleiner = glasiger), Größe = font-size in .island-digits.
   ======================================================== */
.timer-island {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: max-content; min-width: 156px; max-width: calc(100vw - 24px); box-sizing: border-box;
    z-index: 5;
}

/* --- Haupt-Glaspanel --- */
.island-glass {
    position: relative; z-index: 2; box-sizing: border-box;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 16px 9px; border-radius: 22px;
    cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.15) 0%, rgba(26, 30, 42, 0.36) 40%, rgba(8, 10, 16, 0.44) 100%);
    backdrop-filter: blur(22px) saturate(180%) brightness(0.72); -webkit-backdrop-filter: blur(22px) saturate(180%) brightness(0.72);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Panel-Glühen je nach Phase (:has wird von aktuellen Browsern unterstützt; ohne :has bleibt nur die Ziffern-Leuchtschrift) */
.timer-island:has(.island-digits.headstart) .island-glass {
    border-color: rgba(61, 255, 160, 0.5);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 24px rgba(61, 255, 160, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.timer-island:has(.island-digits.seeking) .island-glass {
    border-color: rgba(255, 59, 85, 0.55);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 28px rgba(255, 59, 85, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.timer-island:has(.island-digits.headstart) .island-tray { border-color: rgba(61, 255, 160, 0.38); }
.timer-island:has(.island-digits.seeking) .island-tray { border-color: rgba(255, 59, 85, 0.42); }

.island-label {
    font-family: var(--font-head, 'Orbitron', sans-serif); font-size: 8.5px; font-weight: 700;
    letter-spacing: 2.5px; color: #aab3c0; text-transform: uppercase; line-height: 1;
}
.island-digits {
    font-family: var(--font-digits, 'Rajdhani', monospace);
    font-size: clamp(26px, 8.6vw, 35px); font-weight: 700; line-height: 1; letter-spacing: 1px;
    font-variant-numeric: tabular-nums; text-align: center; min-width: 4.2ch;
    color: #d3dae3; transition: color 0.3s ease, text-shadow 0.3s ease;
}
/* Ab 100 Minuten (z. B. 180:00) wird die Schrift kleiner, damit die Island nicht über die Nachbar-Buttons ragt */
.island-digits.long { font-size: clamp(21px, 6.4vw, 28px); }
.island-digits.headstart {
    color: #3dffa0;
    text-shadow: 0 0 6px rgba(61, 255, 160, 0.9), 0 0 18px rgba(61, 255, 160, 0.65), 0 0 38px rgba(61, 255, 160, 0.4);
}
.island-digits.seeking {
    color: #ff3b55;
    text-shadow: 0 0 6px rgba(255, 59, 85, 0.95), 0 0 20px rgba(255, 59, 85, 0.7), 0 0 44px rgba(255, 59, 85, 0.5);
    animation: islandGlowPulse 2.6s ease-in-out infinite;
}
@keyframes islandGlowPulse {
    0%, 100% { text-shadow: 0 0 5px rgba(255, 59, 85, 0.85), 0 0 16px rgba(255, 59, 85, 0.6), 0 0 34px rgba(255, 59, 85, 0.35); }
    50%      { text-shadow: 0 0 8px rgba(255, 59, 85, 1),    0 0 26px rgba(255, 59, 85, 0.8), 0 0 54px rgba(255, 59, 85, 0.6); }
}
/* Pause: Ziffern blinken sanft */
.timer-island.is-paused .island-digits { animation: islandPauseBlink 1.4s ease-in-out infinite; }
@keyframes islandPauseBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) {
    .island-digits.seeking, .timer-island.is-paused .island-digits { animation: none; }
    .island-tray { transition: none !important; }
}

/* --- Zweites Glaspanel (fährt unter dem Haupt-Panel nach unten heraus) --- */
.island-tray-clip {
    position: absolute; top: calc(100% - 3px); left: 0; right: 0; z-index: 1;
    overflow: hidden; pointer-events: none;   /* schneidet alles ab, was oberhalb liegt: das Panel kommt "von unter dem Haupt-Panel" */
}
.island-tray {
    position: relative; box-sizing: border-box; pointer-events: auto; overflow: hidden;
    margin: 0 8px;
    padding: 14px 10px 25px;
    border-radius: 0 0 22px 22px; border: 1px solid rgba(255, 255, 255, 0.18); border-top: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(18, 21, 30, 0.34) 45%, rgba(8, 10, 16, 0.44) 100%);
    backdrop-filter: blur(22px) saturate(180%) brightness(0.72); -webkit-backdrop-filter: blur(22px) saturate(180%) brightness(0.72);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
    /* eingeklappt: nur die untere Kante (19px, davon 3px unter dem Haupt-Panel) schaut heraus und ist schmaler */
    transform: translateY(calc(-100% + 19px)); margin-left: 32%; margin-right: 32%;
    transition: transform 0.34s cubic-bezier(0.22, 0.9, 0.3, 1), margin 0.34s cubic-bezier(0.22, 0.9, 0.3, 1), border-color 0.4s ease;
}
.timer-island.expanded .island-tray { transform: translateY(0); margin-left: 8px; margin-right: 8px; }

.island-controls {
    display: grid; grid-template-columns: 1fr 40px; gap: 8px; min-width: 118px;
    opacity: 0; transition: opacity 0.2s ease;
}
.timer-island.expanded .island-controls { opacity: 1; transition: opacity 0.25s ease 0.12s; }

.island-btn {
    height: 36px; padding: 0 8px; border-radius: 12px; cursor: pointer;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff;
    font-family: var(--font-head, 'Orbitron', sans-serif); font-size: 11px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; white-space: nowrap; -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, background 0.2s ease;
}
.island-btn:active { transform: scale(0.95); }
.island-start { background: rgba(255, 255, 255, 0.08); border-color: var(--theme-color); color: var(--theme-color); }
@supports (background: color-mix(in srgb, red 10%, transparent)) {
    .island-start { background: color-mix(in srgb, var(--theme-color) 16%, transparent); }
}
.island-reset { padding: 0; font-size: 17px; font-family: var(--font-ui, sans-serif); letter-spacing: 0; }
.island-found { grid-column: 1 / -1; background: rgba(255, 170, 0, 0.16); border-color: #ffaa00; color: #ffbe3d; }

/* Pfeil-Bereich: unterer Rand des zweiten Panels (immer sichtbar, auch eingeklappt) */
.island-handle {
    position: absolute; left: 0; right: 0; bottom: 0; height: 19px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; color: #b4bcc8; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.island-handle::before { content: ""; position: absolute; inset: -4px -10px -12px -10px; } /* größere Tipp-Fläche */
.island-handle svg { transition: transform 0.34s ease; }
.timer-island.expanded .island-handle svg { transform: rotate(180deg); }
.timer-island.expanded .island-handle { color: var(--theme-color); }

/* Dynamic Island HUD */
.dynamic-hud {
    position: absolute; top: 75px; left: 50%; transform: translateX(-50%); z-index: 1000;
    display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.hud-box {
    background: rgba(16, 17, 23, 0.9); backdrop-filter: blur(20px);
    border-radius: 20px; padding: 5px 14px; display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.hud-box.curse { border: 1.5px solid #ff4444; color: #ff6b6b; }
.hud-badge { font-family: var(--font-digits); font-size: 15px; font-weight: 700; color: #fff; background: rgba(0,0,0,0.5); padding: 2px 6px; border-radius: 6px; }
.hud-solve { background: rgba(0,255,204,0.2); border: 1px solid #00ffcc; color: #00ffcc; border-radius: 4px; padding: 2px 6px; font-size: 11px; font-weight: bold; cursor: pointer; }

.hud-box.hider { border: 1.5px solid #ffaa00; color: #ffaa00; font-family: var(--font-digits); font-size: 14px; }
.hud-box.hider.warning { border-color: #ff4444; color: #ff4444; background: rgba(45,10,10,0.95); }

/* HUD und Werkzeug-Banner liegen unter der Timer-Island (Selektor mit "body", damit er auch gegen Themes gewinnt) */
body .dynamic-hud, body #tool-info { top: 104px; z-index: 990; }

/* Undo-Button: links, rund, bewusst anders als die eckigen Tools rechts */
.undo-fab {
    position: absolute; left: 14px; bottom: 90px; z-index: 1000;
    width: 46px; height: 46px; border-radius: 50%; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(18, 19, 25, 0.88); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.22); color: #f2f4f8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); cursor: pointer;
    transition: transform 0.15s ease, opacity 0.2s ease, color 0.2s ease; -webkit-tap-highlight-color: transparent;
}
.undo-fab:active:not(:disabled) { transform: scale(0.9) rotate(-18deg); color: var(--theme-color); }
.undo-fab:disabled { opacity: 0.32; cursor: default; }
/* Transit-Panel sitzt links ebenfalls unten und weicht deshalb nach oben aus */
body #transit-float-panel { bottom: 148px; }

/* Quick Controls Rand */
.quick-map-controls { position: absolute; right: 14px; bottom: 90px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.mini-fab-btn {
    width: 38px; height: 38px; border-radius: 10px; background: rgba(18, 19, 25, 0.88); backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); cursor: pointer; transition: 0.15s ease;
}
.mini-fab-btn:active { transform: scale(0.92); }
.mini-fab-btn.settings { border-color: var(--theme-color); }

/* Floating Panels */
#transit-float-panel, #map-style-float-panel, .map-settings-popup {
    position: absolute; bottom: 85px; background: rgba(18, 19, 25, 0.95); backdrop-filter: blur(25px);
    border: 1px solid var(--theme-color); border-radius: 14px; padding: 12px 16px; z-index: 1000; display: none; flex-direction: column; gap: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}
#transit-float-panel { left: 16px; width: 250px; }
#map-style-float-panel { right: 60px; bottom: 90px; width: 230px; }
.map-settings-popup { right: 60px; bottom: 90px; width: 250px; }

.settings-popup-header { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-family: var(--font-head); font-weight: 700; color: var(--theme-color); padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.settings-close { font-size: 14px; color: #888; cursor: pointer; padding: 2px 6px; }
.settings-popup-body { display: flex; flex-direction: column; gap: 6px; }
.menu-action-row { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 8px 10px; display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left; transition: 0.15s ease; width: 100%; box-sizing: border-box; }
.menu-action-row:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--theme-color); }
.menu-action-row:disabled { opacity: 0.4; cursor: not-allowed; border-color: transparent; }
.row-icon { font-size: 18px; }
.row-text { display: flex; flex-direction: column; }
.row-title { font-size: 12px; font-weight: 700; color: #fff; font-family: var(--font-ui); }
.row-sub { font-size: 10px; color: #888; }

.style-choice-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #e0e0e0; border-radius: 8px; padding: 8px 10px; font-size: 12px; font-weight: 600; font-family: var(--font-ui); cursor: pointer; text-align: left; transition: 0.15s ease; display: flex; align-items: center; }
.style-choice-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--theme-color); color: #fff; }
.style-choice-btn.active { background: var(--theme-bg); border-color: var(--theme-color); color: var(--theme-color); box-shadow: 0 0 10px var(--theme-glow); }

/* Tool Banner */
#tool-info { 
    position: absolute; top: 75px; left: 50%; transform: translateX(-50%); 
    background: rgba(18, 19, 25, 0.95); backdrop-filter: blur(20px); 
    border: 1.5px solid var(--theme-color); border-radius: 14px; 
    z-index: 1000; display: none; box-shadow: 0 10px 30px rgba(0,0,0,0.7); 
    width: 90%; max-width: 360px; flex-direction: column; 
}
.tool-header-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); position: relative; }
.tool-instruction { color: var(--theme-color); font-weight: bold; font-size: 13px; flex: 1; padding-right: 15px; }
.tool-cancel-bubble { position: absolute; top: -8px; right: -8px; background: #ff4444; border: 2px solid #000; color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: bold; cursor: pointer; }
.tool-actions { display: flex; width: 100%; }
.tool-btn { flex: 1; padding: 12px; background: transparent; border: none; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; border-right: 1px solid rgba(255,255,255,0.08); font-family: var(--font-head); }
.tool-btn:last-child { border-right: none; }

/* Bottom Action Bar */
.bottom-action-bar {
    position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
    background: rgba(16, 17, 23, 0.85); backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 22px;
    padding: 6px 12px; display: flex; gap: 10px; align-items: center;
    z-index: 2000; box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}
.dock-btn {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 9px 18px; color: #eee;
    display: flex; align-items: center; gap: 8px; cursor: pointer; transition: 0.2s;
}
.dock-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--theme-color); color: #fff; }
.dock-icon { font-size: 18px; }
.dock-label { font-size: 12px; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.5px; }
.dock-btn.hider-only { border-color: #ffaa00; color: #ffaa00; }

/* Bottom Sheet */
.app-sheet {
    position: fixed; left: 0; right: 0; bottom: -100%; height: 78vh;
    background: radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(14, 15, 22, 0.55) 45%, rgba(8, 9, 14, 0.82) 100%);
    backdrop-filter: blur(32px) saturate(210%) brightness(108%); -webkit-backdrop-filter: blur(32px) saturate(210%) brightness(108%);
    border-top: 1px solid rgba(255, 255, 255, 0.28); border-radius: 26px 26px 0 0;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.4), inset 0 -10px 20px rgba(255, 255, 255, 0.02);
    z-index: 2400; display: flex; flex-direction: column; transition: bottom 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}
.app-sheet.open { bottom: 0; }
.sheet-drag-handle { width: 44px; height: 4px; background: rgba(255, 255, 255, 0.45); box-shadow: 0 1px 3px rgba(0,0,0,0.4); border-radius: 2px; margin: 10px auto 4px auto; cursor: pointer; }
.sheet-header { padding: 10px 20px 14px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 100%); }
.sheet-header h2 { margin: 0; font-size: 17px; color: #fff; font-family: var(--font-head); font-weight: 700; letter-spacing: 0.5px; }
.close-btn { background: none; border: none; color: #888; font-size: 26px; cursor: pointer; }
.sheet-body { flex: 1; overflow-y: auto; padding: 16px; }
.sheet-pane { display: none; }
.sheet-pane.active { display: block; }

/* Cards & UI Elements */
.stats-banner { background: var(--theme-bg); border: 1px solid var(--theme-glow); border-radius: 12px; padding: 12px 14px; color: var(--theme-color); display: flex; justify-content: space-between; font-weight: 600; font-family: var(--font-digits); font-size: 16px; }
.action-btn { width: 100%; background: var(--theme-bg); color: var(--theme-color); border: 1px solid var(--theme-color); padding: 12px; border-radius: 12px; font-size: 13px; font-family: var(--font-head); font-weight: 700; cursor: pointer; text-align: center; }
.utility-btn { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: #fff; border-radius: 12px; cursor: pointer; }
.q-card { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.q-card.is-hidden { opacity: 0.4; }
.q-card.is-locked { border-color: rgba(255, 170, 0, 0.6); }

.card-reward-badge { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 170, 0, 0.4); border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 600; color: #ffaa00; display: flex; align-items: center; justify-content: space-between; }
.q-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.06); padding-bottom: 6px; }
.q-title { margin: 0; font-size: 15px; color: var(--theme-color); font-weight: 700; font-family: var(--font-ui); }
.icon-group { display: flex; gap: 6px; }
.btn-icon { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.05); color: #fff; padding: 5px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.btn-icon.del:hover { background: rgba(255,68,68,0.3); border-color: rgba(255,68,68,0.5); }
.q-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: #aaa; }
.loc-container { display: flex; gap: 6px; width: 100%; align-items: center; }
.loc-btn { flex: 1; background: rgba(255, 68, 68, 0.1); border: 1px solid rgba(255, 68, 68, 0.3); color: #ff6b6b; padding: 8px; border-radius: 8px; font-size: 12px; cursor: pointer; }
.toggle-group { display: flex; gap: 6px; width: 100%; margin-top: 5px; }
.toggle-btn { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); color: #aaa; padding: 8px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; text-align: center; }
.toggle-btn.active.hit { background: rgba(0, 255, 204, 0.2); border-color: #00ffcc; color: #00ffcc; }
.toggle-btn.active.miss { background: rgba(255, 68, 68, 0.2); border-color: #ff4444; color: #ff4444; }
.auto-answer-box { background: rgba(0,0,0,0.5); border: 1px solid var(--theme-glow); border-radius: 8px; padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.whatsapp-gen-btn { background: rgba(37, 211, 102, 0.2); border: 1px solid #25D366; color: #25D366; padding: 6px 10px; border-radius: 6px; font-size: 12px; font-weight: bold; cursor: pointer; }
.add-q-btn { background: rgba(255, 255, 255, 0.03); border: 1px dashed rgba(255, 255, 255, 0.2); color: #ccc; padding: 14px; border-radius: 12px; text-align: center; cursor: pointer; font-weight: 700; font-family: var(--font-head); font-size: 12px; }
.cat-item, .radar-grid-btn, .measure-grid-item { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); padding: 12px; border-radius: 10px; color: #fff; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.cat-item.disabled-item, .radar-grid-btn:disabled, .measure-grid-item:disabled { opacity: 0.3; pointer-events: none; }
.disabled-badge { font-size: 10px; color: #ff6b6b; background: rgba(255,107,107,0.15); padding: 2px 6px; border-radius: 4px; }
.menu-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.back-btn-icon { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); color: #fff; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* Fluchkarten */
.curse-section-box { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 14px; }
.curse-add-btn { background: rgba(255, 107, 107, 0.15); border: 1px solid #ff6b6b; color: #ff6b6b; padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: bold; font-family: var(--font-head); cursor: pointer; }
.curse-cards-grid { display: flex; flex-direction: column; gap: 12px; max-height: 480px; overflow-y: auto; padding-right: 4px; }
.curse-deck-card { background: #ffffff; color: #111111; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; border: 2px solid #e0e0e0; cursor: pointer; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.3); transition: transform 0.15s ease, border-color 0.15s ease; }
.curse-deck-card:hover { transform: translateY(-2px); border-color: #ff4444; }
.curse-card-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 6px; }
.curse-card-headline { font-size: 13px; font-weight: 800; text-transform: uppercase; color: #000; line-height: 1.2; }
.curse-card-badge { background: #ff4444; color: #fff; font-size: 10px; font-weight: bold; padding: 3px 6px; border-radius: 4px; white-space: nowrap; }
.curse-card-badge.task { background: #333333; }
.curse-card-body { font-size: 12px; color: #333333; line-height: 1.4; }
.curse-card-cost { background: #f5f5f7; border-left: 3px solid #ff4444; padding: 5px 8px; font-size: 11px; color: #555555; font-style: italic; border-radius: 0 4px 4px 0; }
.curse-card-clean { background: rgba(255, 68, 68, 0.08); border: 1px solid rgba(255, 68, 68, 0.3); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.curse-card-header { display: flex; justify-content: space-between; align-items: center; }
.curse-card-name { font-weight: bold; color: #ff6b6b; font-size: 13px; }
.curse-badge-time { font-family: var(--font-digits); font-size: 15px; color: #ffaa00; font-weight: bold; background: rgba(0,0,0,0.5); padding: 2px 6px; border-radius: 4px; }
.curse-complete-btn { background: rgba(0, 255, 204, 0.15); border: 1px solid var(--theme-color); color: var(--theme-color); padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: bold; cursor: pointer; }

/* Modals */
.fullscreen-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(20px); z-index: 99999; display: flex; align-items: center; justify-content: center; }
.modal-box { background: #14151c; border: 1px solid var(--theme-color); border-radius: 18px; width: 90%; max-width: 380px; padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 10px 40px rgba(0,0,0,0.8); }
.fullscreen-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-head); }
.glitch-text { color: var(--theme-color); font-size: 18px; letter-spacing: 2px; }

/* Geheimes Easter Egg: Stinkwolke */
.stink-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999999; display: flex; align-items: center; justify-content: center; overflow: hidden; background: rgba(10, 20, 5, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: stinkFadeIn 0.3s ease-out forwards; }
.stink-cloud-bg { position: absolute; width: 160vw; height: 160vw; border-radius: 50%; background: radial-gradient(circle, rgba(120, 210, 20, 0.55) 0%, rgba(60, 140, 10, 0.35) 45%, transparent 70%); filter: blur(40px); animation: stinkGasDrift 3.5s ease-in-out infinite alternate; pointer-events: none; }
.stink-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; animation: stinkPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.stink-emojis { font-size: 64px; animation: stinkWiggle 1s ease-in-out infinite alternate; }
.stink-text { font-family: var(--font-head); font-size: clamp(34px, 8vw, 68px); font-weight: 900; color: #a6ff00; text-shadow: 0 0 20px rgba(166, 255, 0, 0.8), 0 0 40px rgba(80, 180, 0, 0.6), 3px 3px 0px #000; letter-spacing: 3px; margin: 0; text-align: center; padding: 0 20px; }

@keyframes stinkFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes stinkPopIn { from { transform: scale(0.4) rotate(-6deg); opacity: 0; } to { transform: scale(1) rotate(0deg); opacity: 1; } }
@keyframes stinkWiggle { 0% { transform: translateY(0) rotate(-6deg); } 100% { transform: translateY(-12px) rotate(6deg); } }
@keyframes stinkGasDrift { 0% { transform: scale(0.9) rotate(0deg); } 100% { transform: scale(1.15) rotate(15deg); } }

/* Garantierte Klick-Neonwelle */
.screen-click-ripple { position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--theme-color); box-shadow: 0 0 14px var(--theme-color), inset 0 0 8px var(--theme-color); transform: translate(-50%, -50%) scale(0.5); pointer-events: none; z-index: 500; animation: rippleBurst 0.55s cubic-bezier(0.1, 0.6, 0.3, 1) forwards; }
@keyframes rippleBurst { 0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(4.2); opacity: 0; } }

.shrink-flash-layer { animation: shrinkAreaFlash 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
@keyframes shrinkAreaFlash { 0% { fill-opacity: 0; stroke-opacity: 0; } 30% { fill-opacity: 0.45; stroke-opacity: 1; } 100% { fill-opacity: 0; stroke-opacity: 0; } }

/* Fluch-Anzeige: mehrere Flüche als kleine Liste */
.hud-box.curse { flex-direction: column; align-items: stretch; gap: 0; padding: 4px 12px; border-radius: 18px; max-width: calc(100vw - 24px); }
.curse-hud-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.curse-hud-row + .curse-hud-row { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.curse-hud-row .hud-text { flex: 1; min-width: 0; max-width: 44vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.curse-hud-row .hud-badge { min-width: 3.4ch; text-align: center; }
.curse-hud-row .hud-badge.done { opacity: 0.5; }
.curse-hud-more { font-size: 10.5px; opacity: 0.7; text-align: center; padding: 2px 0 1px; }
