/* ═══════════════════════════════════════════════════════════════════
   caglaax3 – GIRLY GIRL Pink Dream Stylesheet
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --pink-50:  #fff0f5;
    --pink-100: #ffd6e7;
    --pink-200: #ffb3d4;
    --pink-300: #ff8cbe;
    --pink-400: #ff69a8;
    --pink-500: #ff4191;
    --pink-600: #e6247a;
    --pink-700: #c21065;

    --purple-100: #f3e8ff;
    --purple-200: #e9d5ff;
    --purple-400: #c084fc;
    --purple-500: #a855f7;

    --peach-100: #fff1e8;
    --peach-200: #ffe4d0;

    --cream:      #fff5f9;
    --cream-warm: #ffecf3;
    --text:       #5b2148;
    --text-light: #8b4573;
    --white:      #ffffff;
    --shadow:     rgba(255, 65, 145, 0.15);
    --shadow-lg:  rgba(255, 65, 145, 0.28);
    --card-glow:  rgba(255, 150, 200, 0.55);

    --radius:      22px;
    --radius-sm:   14px;
    --radius-full: 9999px;

    --font-body:    'Quicksand', 'Segoe UI', sans-serif;
    --font-display: 'Pacifico', cursive;

    --twitch:      #9146ff;
    --twitch-hover:#7c3aed;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    background:
        radial-gradient(ellipse at 15% 0%, rgba(255, 140, 190, 0.45) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 0%, rgba(255, 180, 210, 0.4) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 200, 230, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 100%, rgba(233, 200, 255, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 100%, rgba(255, 170, 200, 0.3) 0%, transparent 50%),
        linear-gradient(175deg, #fff0f5 0%, var(--cream) 30%, var(--cream-warm) 60%, #f8e8ff 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    overflow-x: clip;
}

::selection {
    background: rgba(255, 105, 168, 0.3);
    color: var(--text);
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--pink-50);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--pink-300), var(--pink-400));
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--pink-400), var(--pink-500));
}

/* ══════════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════════ */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0.75rem max(1.2rem, env(safe-area-inset-right)) 0.75rem max(1.2rem, env(safe-area-inset-left));
    background: #fbacc100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 3px solid rgba(255, 180, 210, 0.35);
    box-shadow: 0 2px 16px rgba(255, 105, 168, 0.08);
    position: sticky;
    top: 0;
    z-index: 200;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    z-index: 210;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--pink-400), var(--pink-500), var(--purple-400));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.2s;
}
.nav-logo:hover .logo-text { opacity: 0.8; }

/* ── Live-Badge in der Navbar ── */
.nav-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.22rem 0.55rem 0.22rem 0.5rem;
    margin-left: 0.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff3d7f, #e6247a);
    color: #fff;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(230, 36, 122, 0.35);
    z-index: 210;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: navLiveWiggle 2.8s ease-in-out infinite;
}
.nav-live-badge:hover {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 8px 20px rgba(230, 36, 122, 0.45);
}
.nav-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: navLivePulse 1.6s ease-out infinite;
}
.nav-live-text { letter-spacing: 0.12em; }
.nav-live-count {
    display: inline-flex;
    align-items: center;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    font-weight: 700;
}
@keyframes navLivePulse {
    0%   { box-shadow: 0 0 0 0   rgba(255, 255, 255, 0.85); }
    70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0   rgba(255, 255, 255, 0); }
}
@keyframes navLiveWiggle {
    0%, 100% { transform: translateY(0) rotate(0); }
    5%, 15%  { transform: translateY(-1px) rotate(-3deg); }
    10%, 20% { transform: translateY(-1px) rotate(3deg); }
    25%      { transform: translateY(0) rotate(0); }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 245, 247, 0.9);
    border: 1px solid rgba(244, 122, 163, 0.2);
    border-radius: 999px;
    cursor: pointer;
    padding: 0.5rem 0.6rem;
    z-index: 210;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--pink-600);
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open .hamburger-line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open .hamburger-line:nth-child(2) { opacity: 0; }
.nav-toggle.open .hamburger-line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* ── Nav Sections ── */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.nav-link:hover, .nav-link.active {
    background: rgba(255, 220, 235, 0.5);
    color: var(--pink-600);
}

/* ── Divider ── */
.nav-divider {
    width: 1.5px;
    height: 20px;
    background: rgba(255, 180, 210, 0.45);
    border-radius: 1px;
    flex-shrink: 0;
}

/* ── Social Icons ── */
.nav-socials {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s;
}
.nav-social:hover {
    background: rgba(255, 220, 235, 0.55);
    color: var(--pink-600);
    transform: translateY(-1px);
}
.nav-social svg { display: block; }

/* ── Profile Dropdown ── */
.nav-profile {
    position: relative;
}

.nav-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    background: transparent;
    border: 1.5px solid rgba(255, 200, 220, 0.35);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s;
}
.nav-profile-btn:hover {
    background: rgba(255, 230, 242, 0.5);
    border-color: rgba(255, 150, 190, 0.5);
}

.nav-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: none;
}

.nav-username { font-weight: 600; font-size: 0.82rem; color: var(--text); }

.nav-chevron {
    color: var(--text-light);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.nav-profile.open .nav-chevron { transform: rotate(180deg); }

.nav-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 140px;
    background: var(--white);
    border: 1.5px solid rgba(255, 180, 210, 0.3);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(255, 65, 145, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s ease;
    z-index: 220;
}
.nav-profile.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.84rem;
    transition: all 0.15s;
    border-radius: var(--radius-sm);
}
.nav-dropdown-item:hover {
    background: rgba(255, 220, 235, 0.4);
    color: var(--pink-600);
}

/* ══════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 1.8rem; font-size: 0.95rem; }

.btn-primary {
    background: linear-gradient(135deg, var(--pink-400), var(--pink-500), var(--purple-400));
    color: var(--white);
    box-shadow: 0 4px 18px var(--shadow), 0 0 0 2px rgba(255, 105, 168, 0.1);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 32px var(--shadow-lg), 0 0 20px rgba(255, 105, 168, 0.2); }

.btn-discord {
    background: #5865F2;
    color: var(--white);
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.3);
}
.btn-discord:hover { background: #4752c4; transform: translateY(-2px); }

.btn-twitch {
    background: var(--twitch);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(145, 70, 255, 0.3);
}
.btn-twitch:hover { background: var(--twitch-hover); transform: translateY(-2px); }

.btn-outline {
    background: rgba(255, 240, 245, 0.85);
    color: var(--pink-600);
    border: 2px solid var(--pink-300);
    box-shadow: 0 2px 12px rgba(255, 105, 168, 0.08);
}
.btn-outline:hover { background: var(--pink-100); border-color: var(--pink-400); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255, 105, 168, 0.15); }

.discord-icon, .twitch-icon { flex-shrink: 0; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }
.btn:active { transform: translateY(0) !important; }

/* ══════════════════════════════════════════════════════════════════
   MAIN
   ══════════════════════════════════════════════════════════════════ */

.main-content {
    flex: 1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════════════════════════════
   BUTTERFLIES (JS-animated random flight)
   ══════════════════════════════════════════════════════════════════ */

.butterflies { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }

.butterfly {
    position: absolute;
    opacity: 0;
    will-change: transform, opacity;
    object-fit: contain;
    transition: opacity 1.5s ease;
}

/* ══════════════════════════════════════════════════════════════════
   HOME – 60/40 SPLIT LAYOUT
   ══════════════════════════════════════════════════════════════════ */

.home-split {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 0;
    max-width: 1400px;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
    align-items: start;
}

.home-left {
    padding-right: 2rem;
    min-width: 0;
    animation: slideFromLeft 0.8s ease-out 0.1s both;
}

.home-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    animation: slideFromRight 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
    position: sticky;
    top: 80px;
    align-self: start;
}

@keyframes slideFromLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideFromRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.home-clips { margin-bottom: 2rem; }
.home-features { margin-top: 0.5rem; }

.peace-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.peace-img {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(-4px 3px 16px rgba(255, 65, 145, 0.2));
}

.peace-placeholder {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 3/4;
    background: linear-gradient(160deg, var(--pink-100), var(--purple-100));
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: 600;
    opacity: 0.5;
}
.peace-placeholder small { font-size: 0.72rem; opacity: 0.5; }

.home-intro {
    text-align: center;
    padding: 1.2rem 0.5rem 0;
}

.home-eyebrow {
    display: inline-block;
    margin-bottom: 0.8rem;
    padding: 0.45rem 1.2rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(255, 200, 220, 0.85), rgba(255, 180, 210, 0.8), rgba(230, 200, 255, 0.7));
    border: 2px solid rgba(255, 105, 168, 0.3);
    box-shadow: 0 8px 28px rgba(255, 65, 145, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    color: var(--pink-600);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-style: italic;
}

.home-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    line-height: 1.3;
    color: #e6247a;
    margin-bottom: 0.7rem;
}

.accent-gradient {
    background: linear-gradient(135deg, var(--pink-400), var(--pink-500), var(--purple-400));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.6rem;
}

.home-subtitle {
    font-size: 0.92rem;
    color: var(--text-light);
    margin-bottom: 1.4rem;
    line-height: 1.65;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
}

/* ── Girly: Heart Divider ─────────────────────────────────────── */
.section-heart-divider {
    text-align: center;
    color: var(--pink-400);
    font-size: 1rem;
    letter-spacing: 0.6em;
    margin-bottom: 1rem;
    opacity: 0.85;
    text-shadow: 0 0 12px rgba(255, 65, 145, 0.25);
}

/* ══════════════════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════════════════ */

.home-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    text-align: center;
    color: var(--pink-600);
    margin-bottom: 0.3rem;
    text-shadow: 0 4px 18px rgba(255, 65, 145, 0.18);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.8rem;
    font-size: 0.9rem;
}

.section-cta {
    text-align: center;
    margin-top: 1.5rem;
}

/* ══════════════════════════════════════════════════════════════════
   CLIPS CAROUSEL – Querformat (16:9), 1 sichtbar
   ══════════════════════════════════════════════════════════════════ */

.clips-carousel {
    display: flex;
    gap: 1rem;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.2rem;
}
.clips-carousel::-webkit-scrollbar { display: none; }

.clip-slide {
    flex: 0 0 100%;
    min-width: 0;
    max-width: 100%;
    scroll-snap-align: start;
    border-radius: var(--radius);
    overflow: visible;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    text-align: left;
    transition: transform 0.25s;
}
.clip-slide:hover { transform: scale(1.01); }
.clip-slide:active { transform: scale(0.99); }

.clip-slide-inner {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #0e0e10);
    box-shadow: 0 10px 35px var(--shadow), 0 0 0 1px rgba(255, 105, 168, 0.1);
    border: 2px solid rgba(255, 140, 190, 0.25);
}
.clip-slide-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(91, 41, 72, 0.22) 100%);
    pointer-events: none;
    border-radius: var(--radius);
}

.clip-preview-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    pointer-events: none;
}

.clip-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    cursor: pointer;
    background: transparent;
    transition: background 0.25s;
}
.clip-slide-overlay:hover {
    background: rgba(212, 61, 115, 0.15);
}

.clip-slide-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    opacity: 0.7;
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
}
.clip-slide-play svg {
    filter: drop-shadow(0 3px 14px rgba(212, 61, 115, 0.5));
    background: linear-gradient(135deg, var(--pink-400), var(--pink-600));
    border-radius: 50%;
    padding: 14px;
    width: 72px;
    height: 72px;
    border: 3px solid rgba(255, 255, 255, 0.5);
}
.clip-slide-overlay:hover ~ .clip-slide-play,
.clip-slide:hover .clip-slide-play { opacity: 1; transform: scale(1.08); }

.clip-slide-title {
    padding: 0.5rem 0 0.15rem;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clip-slide-meta {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--pink-400);
    text-align: center;
}

.clips-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.clips-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--pink-300);
    background: rgba(255, 200, 220, 0.4);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s;
}
.clips-dot.active {
    background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
    border-color: var(--pink-500);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 65, 145, 0.4);
}
.clips-dot:hover { border-color: var(--pink-500); background: var(--pink-300); }

/* ══════════════════════════════════════════════════════════════════
   CLIP MODAL
   ══════════════════════════════════════════════════════════════════ */

.clip-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
.clip-modal[hidden] { display: none; }

.clip-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.clip-modal-content {
    position: relative;
    width: 94vw;
    max-width: 900px;
    background: #0e0e10;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(255, 65, 145, 0.1);
    border: 2px solid rgba(255, 105, 168, 0.2);
    animation: modalSlideUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.clip-modal-close {
    position: absolute;
    top: 0.5rem; right: 0.6rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    border: none;
    font-size: 1.8rem;
    width: 42px; height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.clip-modal-close:hover { background: rgba(255, 255, 255, 0.2); }

.clip-modal-player { aspect-ratio: 16 / 9; width: 100%; }
.clip-modal-player iframe { width: 100%; height: 100%; border: none; display: block; }

/* ══════════════════════════════════════════════════════════════════
   FEATURES
   ══════════════════════════════════════════════════════════════════ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.feature-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 240, 245, 0.85));
    padding: 1.6rem 1.3rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow), 0 0 0 1px rgba(255, 105, 168, 0.08);
    border: 2px solid rgba(255, 140, 190, 0.2);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.feature-card::before {
    content: "";
    position: absolute;
    bottom: -40px; left: -40px;
    width: 130px; height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--card-glow), transparent 70%);
    pointer-events: none;
}
.feature-card::after {
    content: "";
    position: absolute;
    top: -30px; right: -30px;
    width: 80px; height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.2), transparent 70%);
    pointer-events: none;
}

.feature-card-link { cursor: pointer; }
.feature-card:hover { transform: translateY(-5px) scale(1.01); box-shadow: 0 16px 40px var(--shadow-lg), 0 0 30px rgba(255, 105, 168, 0.1); border-color: rgba(255, 105, 168, 0.3); }

.feature-card-soon { opacity: 0.55; border-style: dashed; }
.feature-card-soon:hover { transform: none; box-shadow: 0 10px 24px var(--shadow); }

.feature-icon-wrap {
    margin: 0 auto 0.8rem;
    width: 66px; height: 66px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 210, 230, 0.95), rgba(255, 180, 210, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 24px rgba(255, 65, 145, 0.18);
    border: 2px solid rgba(255, 105, 168, 0.2);
}

.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--pink-600); }
.feature-card p { font-size: 0.84rem; color: var(--text-light); margin-bottom: 0.8rem; line-height: 1.5; }
.feature-cta { font-weight: 700; font-size: 0.84rem; color: var(--pink-500); }
.feature-cta.muted { color: var(--text-light); }

/* ══════════════════════════════════════════════════════════════════
   GEBURTSTAGE (Community Stats Sidebar)
   ══════════════════════════════════════════════════════════════════ */

.stats-bday-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.stats-bday-today {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(255, 207, 229, 0.6), transparent 60%),
        linear-gradient(135deg, #ffe3f0, #fbe3ff);
    border: 1.5px solid rgba(255, 140, 190, 0.45);
    box-shadow: 0 6px 16px rgba(244, 63, 94, 0.12);
    animation: bdayTodayPulse 2.4s ease-in-out infinite;
}
@keyframes bdayTodayPulse {
    0%, 100% { box-shadow: 0 6px 16px rgba(244, 63, 94, 0.12); }
    50%      { box-shadow: 0 8px 24px rgba(244, 63, 94, 0.28); }
}
.stats-bday-today-label {
    font-weight: 700;
    color: var(--pink-700, #9d1457);
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}
.stats-bday-today-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.stats-bday-today-list li {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--text);
}
.stats-bday-today-list a {
    color: inherit;
    text-decoration: none;
}
.stats-bday-today-list a:hover {
    text-decoration: underline;
}

.stats-bday-month-label {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pink-600, #c2185b);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}
.stats-bday-month-label small {
    color: var(--text-light, #6b4a5e);
    font-weight: 500;
    font-size: 0.8rem;
}

.stats-bday-empty {
    font-size: 0.82rem;
    color: var(--text-light, #6b4a5e);
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    background: rgba(255, 241, 248, 0.55);
    border: 1px dashed rgba(255, 140, 190, 0.4);
    margin: 0;
}
.stats-bday-empty code {
    background: rgba(255, 255, 255, 0.85);
    padding: 0.08rem 0.35rem;
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--pink-700, #9d1457);
}

.stats-bday-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-height: 260px;
    overflow-y: auto;
}
.stats-bday-list li {
    display: grid;
    grid-template-columns: 26px 1fr auto auto;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.4rem;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: background 0.15s ease;
}
.stats-bday-list li:hover {
    background: rgba(255, 240, 247, 0.7);
}
.stats-bday-list li.is-today {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(245, 180, 210, 0.18));
    font-weight: 700;
}
.stats-bday-day {
    font-weight: 700;
    color: var(--pink-500, #ec4899);
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.stats-bday-name {
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stats-bday-name:hover {
    color: var(--pink-600, #c2185b);
    text-decoration: underline;
}
.stats-bday-age {
    font-size: 0.72rem;
    color: var(--text-light, #6b4a5e);
    font-variant-numeric: tabular-nums;
}
.stats-bday-today-pill {
    font-size: 0.9rem;
    line-height: 1;
}

.stats-bday-hint {
    font-size: 0.76rem;
    color: var(--text-light, #6b4a5e);
    line-height: 1.45;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    background: rgba(255, 251, 253, 0.8);
    border: 1px solid rgba(255, 140, 190, 0.25);
}
.stats-bday-hint code {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    color: var(--pink-700, #9d1457);
    font-size: 0.75rem;
}

.stats-bday-actions {
    display: flex;
    justify-content: center;
}
.stats-bday-open-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ══════════════════════════════════════════════════════════════════
   VIEWER LOOKUP (neues Layout)
   ══════════════════════════════════════════════════════════════════ */

.vlk-result {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(255, 207, 229, 0.25), transparent 55%),
        linear-gradient(180deg, #fff 0%, #fff8fb 100%);
    border: 1.5px solid rgba(255, 140, 190, 0.35);
    box-shadow: 0 8px 22px rgba(244, 63, 94, 0.08);
    animation: vlkFadeIn 0.25s ease-out both;
}
@keyframes vlkFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.vlk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px dashed rgba(255, 140, 190, 0.3);
}
.vlk-name {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}
.vlk-name-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pink-700, #9d1457);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vlk-today-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff4191, #ec4899);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.35);
    animation: vlkTodayPulse 1.6s ease-in-out infinite;
}
@keyframes vlkTodayPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 10px rgba(236, 72, 153, 0.35); }
    50%      { transform: scale(1.05); box-shadow: 0 6px 16px rgba(236, 72, 153, 0.5); }
}
.vlk-twitch-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: #9146ff;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(145, 70, 255, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vlk-twitch-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(145, 70, 255, 0.5);
}

.vlk-primary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.vlk-stat {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0.6rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 140, 190, 0.22);
    min-width: 0;
}
.vlk-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffe3f0, #fbe3ff);
    flex-shrink: 0;
}
.vlk-stat-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    line-height: 1.1;
}
.vlk-stat-label {
    font-size: 0.7rem;
    color: var(--text-light, #6b4a5e);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.vlk-stat-value {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vlk-stat-sub {
    font-size: 0.68rem;
    color: var(--text-light, #6b4a5e);
    margin-top: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vlk-bday {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff1f8, #f8e6ff);
    border: 1.5px solid rgba(255, 140, 190, 0.4);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.vlk-bday--today {
    background: linear-gradient(135deg, #ffe3f0, #fbe3ff);
    border-color: rgba(236, 72, 153, 0.55);
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.2);
    animation: vlkTodayPulse 2.2s ease-in-out infinite;
}
.vlk-bday-icon {
    font-size: 1.6rem;
    line-height: 1;
    filter: drop-shadow(0 3px 6px rgba(236, 72, 153, 0.3));
}
.vlk-bday-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}
.vlk-bday-label {
    font-size: 0.7rem;
    color: var(--text-light, #6b4a5e);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}
.vlk-bday-date {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--pink-700, #9d1457);
}
.vlk-bday-meta {
    font-size: 0.78rem;
    color: var(--text-light, #6b4a5e);
}

.vlk-bday--empty {
    background: linear-gradient(135deg, #fafafa, #f5f0f3);
    border: 1px dashed rgba(255, 140, 190, 0.35);
    box-shadow: none;
    opacity: 0.92;
}
.vlk-bday--empty .vlk-bday-icon {
    filter: grayscale(0.35) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}
.vlk-bday-missing {
    color: var(--text-light, #6b4a5e);
    font-weight: 600;
    font-size: 0.95rem;
}
.vlk-bday-hint {
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--text-light, #8a6778);
}
.vlk-bday-hint code {
    background: rgba(236, 72, 153, 0.1);
    color: var(--pink-700, #9d1457);
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    font-family: ui-monospace, 'SF Mono', Consolas, monospace;
    font-size: 0.72rem;
    white-space: nowrap;
}

@media (max-width: 460px) {
    .vlk-primary { grid-template-columns: 1fr; }
    .vlk-name-text { font-size: 1rem; }
    .vlk-stat-value { font-size: 0.98rem; }
}

/* ══════════════════════════════════════════════════════════════════
   BIRTHDAY MODAL (alle Geburtstage + Filter)
   ══════════════════════════════════════════════════════════════════ */

.bday-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.bday-modal[hidden] { display: none; }

.bday-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(74, 20, 50, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: bdayBackdropIn 0.2s ease-out both;
}
@keyframes bdayBackdropIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.bday-modal-dialog {
    position: relative;
    background: linear-gradient(180deg, #fff 0%, #fff8fb 100%);
    border-radius: 18px;
    border: 2px solid rgba(255, 140, 190, 0.45);
    box-shadow: 0 24px 60px rgba(230, 45, 122, 0.35);
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: bdayDialogIn 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}
@keyframes bdayDialogIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.bday-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 140, 190, 0.25);
    background: linear-gradient(135deg, #ffe3f0, #fbe3ff);
}
.bday-modal-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--pink-700, #9d1457);
}
.bday-modal-close {
    appearance: none;
    border: none;
    background: transparent;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--pink-700, #9d1457);
    cursor: pointer;
    padding: 0 0.3rem;
    border-radius: 8px;
    transition: background 0.15s ease;
}
.bday-modal-close:hover {
    background: rgba(236, 72, 153, 0.15);
}

.bday-modal-filters {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.1fr;
    gap: 0.6rem;
    padding: 0.9rem 1.25rem 0.6rem;
    background: rgba(255, 248, 251, 0.6);
    border-bottom: 1px solid rgba(255, 140, 190, 0.2);
}
.bday-filter {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.bday-filter-label {
    font-size: 0.68rem;
    color: var(--text-light, #6b4a5e);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bday-filter-input {
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 140, 190, 0.35);
    background: #fff;
    color: var(--text);
    font-size: 0.88rem;
    font-family: inherit;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bday-filter-input:focus {
    border-color: var(--pink-500, #ec4899);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}
.bday-filter-toggles {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.2rem;
}
.bday-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--text-light, #6b4a5e);
    cursor: pointer;
    user-select: none;
}
.bday-toggle input { accent-color: var(--pink-500, #ec4899); }

.bday-reset-btn {
    margin-left: auto;
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(236, 72, 153, 0.35);
    background: rgba(255, 255, 255, 0.6);
    color: var(--pink-600, #db2777);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.bday-reset-btn:hover {
    background: rgba(236, 72, 153, 0.1);
    color: var(--pink-700, #be185d);
}
.bday-reset-btn:focus-visible {
    outline: 2px solid var(--pink-500, #ec4899);
    outline-offset: 2px;
}

.bday-modal-meta {
    padding: 0.5rem 1.25rem;
    font-size: 0.78rem;
    color: var(--text-light, #6b4a5e);
    background: rgba(255, 248, 251, 0.4);
    border-bottom: 1px solid rgba(255, 140, 190, 0.15);
}

.bday-modal-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0.5rem 1rem;
    min-height: 180px;
}
.bday-modal-empty {
    text-align: center;
    color: var(--text-light, #6b4a5e);
    padding: 2rem 1rem;
    font-style: italic;
    margin: 0;
}
.bday-modal-group {
    position: sticky;
    top: 0;
    padding: 0.4rem 0.75rem;
    margin: 0.25rem 0 0.1rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--pink-600, #c2185b);
    background: rgba(255, 241, 248, 0.95);
    border-radius: 6px;
    backdrop-filter: blur(4px);
}
.bday-modal-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    margin: 0.1rem 0.15rem;
    border-radius: 10px;
    transition: background 0.15s ease;
}
.bday-modal-row:hover {
    background: rgba(255, 240, 247, 0.7);
}
.bday-modal-row.is-today {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(245, 180, 210, 0.18));
}
.bday-modal-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 60px;
    line-height: 1.1;
}
.bday-modal-date-dm {
    font-weight: 700;
    color: var(--pink-500, #ec4899);
    font-variant-numeric: tabular-nums;
}
.bday-modal-date-year {
    font-size: 0.7rem;
    color: var(--text-light, #6b4a5e);
}
.bday-modal-name {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bday-modal-name:hover {
    color: var(--pink-600, #c2185b);
    text-decoration: underline;
}
.bday-modal-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}
.bday-modal-age {
    font-size: 0.78rem;
    color: var(--text-light, #6b4a5e);
    font-variant-numeric: tabular-nums;
    background: rgba(255, 240, 247, 0.7);
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}
.bday-modal-today-pill {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff4191, #ec4899);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    box-shadow: 0 3px 8px rgba(236, 72, 153, 0.35);
    white-space: nowrap;
}
.bday-modal-soon {
    font-size: 0.72rem;
    color: var(--pink-600, #c2185b);
    font-weight: 600;
    white-space: nowrap;
}
.bday-modal-far {
    font-size: 0.72rem;
    color: var(--text-light, #6b4a5e);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .bday-modal { padding: 0.5rem; }
    .bday-modal-head { padding: 0.85rem 1rem; }
    .bday-modal-head h2 { font-size: 1.05rem; }
    .bday-modal-filters { grid-template-columns: 1fr 1fr; padding: 0.75rem 1rem 0.5rem; gap: 0.5rem; }
    .bday-modal-filters .bday-filter:first-child { grid-column: 1 / -1; }
    .bday-modal-meta { padding: 0.5rem 1rem; }
    .bday-modal-row { grid-template-columns: auto 1fr; gap: 0.5rem; }
    .bday-modal-right { grid-column: 1 / -1; justify-content: flex-end; margin-top: 0.15rem; }
}

/* ══════════════════════════════════════════════════════════════════
   HALL OF FAME (Match Meter)
   ══════════════════════════════════════════════════════════════════ */

.hof-page {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.hof-hero {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    background:
        radial-gradient(900px 240px at 50% -40%, rgba(255, 140, 190, 0.25), transparent 60%),
        radial-gradient(900px 220px at 50% 120%, rgba(195, 138, 255, 0.18), transparent 55%),
        linear-gradient(180deg, #fff 0%, #fff5fb 100%);
    border: 2px solid rgba(255, 140, 190, 0.35);
    box-shadow: 0 16px 36px rgba(230, 45, 122, 0.1);
}
.hof-trophy {
    display: inline-block;
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 6px 12px rgba(230, 36, 122, 0.35));
    animation: hofTrophyBob 2.8s ease-in-out infinite;
}
@keyframes hofTrophyBob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-6px) rotate(2deg); }
}
.hof-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 2.8rem);
    margin: 0.35rem 0 0.5rem;
    background: linear-gradient(135deg, var(--pink-400), var(--pink-500), var(--purple-400));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hof-subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-light, #6b4a5e);
    line-height: 1.5;
    font-weight: 500;
}
.hof-subtitle strong { color: var(--pink-600, #c2185b); }
.hof-empty-intro {
    margin: 1rem auto 0;
    max-width: 640px;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-sm, 12px);
    background: rgba(255, 233, 243, 0.6);
    border: 1.5px dashed rgba(255, 140, 190, 0.55);
    color: #6b1048;
}
.hof-empty-intro a { color: var(--pink-600, #c2185b); font-weight: 700; }

.hof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

.hof-card {
    background: #fff;
    border-radius: var(--radius);
    border: 2px solid rgba(255, 140, 190, 0.18);
    padding: 1.25rem 1.1rem 1rem;
    box-shadow: 0 10px 26px rgba(244, 63, 94, 0.08);
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.hof-card-love       { border-color: rgba(255, 65, 145, 0.32); }
.hof-card-friendship { border-color: rgba(245, 153, 200, 0.45); }
.hof-card-hate       { border-color: rgba(230, 36, 122, 0.38); }
.hof-card-bs         { border-color: rgba(236, 72, 153, 0.42); }

/* Champions-Karte spannt über volle Breite und nutzt eine zweispaltige Liste */
.hof-card-bs .hof-list-bs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.5rem 0.85rem;
    padding: 0;
    margin: 0;
    list-style: none;
}
.hof-card-bs .hof-list-bs .hof-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
}
.hof-bs-score {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}
.hof-bs-score .hof-percent-unit {
    font-size: 0.75rem;
    color: var(--text-light, #b68ba7);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
}
.hof-bs-kittys {
    font-size: 0.72rem;
    color: #f472b6;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.12);
    white-space: nowrap;
}

.hof-card-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.15rem;
    padding-bottom: 0.9rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(255, 140, 190, 0.35);
}
.hof-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe3f0, #fbe3ff);
    box-shadow: 0 6px 14px rgba(244, 63, 94, 0.15);
    margin-bottom: 0.35rem;
}
.hof-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin: 0;
    color: var(--pink-700, #9d1457);
}
.hof-card-sub {
    margin: 0;
    color: var(--text-light, #6b4a5e);
    font-size: 0.82rem;
    font-weight: 500;
}

.hof-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hof-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.7rem;
    border-radius: 12px;
    background: rgba(255, 245, 251, 0.7);
    border: 1px solid rgba(255, 140, 190, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hof-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(244, 63, 94, 0.12);
}
.hof-rank-1 {
    background: linear-gradient(135deg, #fff5d6, #fff);
    border-color: #f5d77a;
    box-shadow: inset 0 0 0 1px rgba(245, 192, 80, 0.35);
}
.hof-rank-2 {
    background: linear-gradient(135deg, #f2f2f7, #fff);
    border-color: #c3c8d0;
}
.hof-rank-3 {
    background: linear-gradient(135deg, #f8e8d8, #fff);
    border-color: #d8a876;
}

.hof-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 38px;
    font-weight: 700;
}
.hof-rank-num {
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1;
    color: var(--pink-600, #c2185b);
}
.hof-medal {
    font-size: 1.05rem;
    line-height: 1;
    margin-top: 0.15rem;
}

.hof-pair {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}
.hof-pair .hof-name {
    font-weight: 700;
    color: var(--text);
    word-break: break-word;
}
.hof-pair .hof-sep {
    display: inline-block;
    margin: 0 0.35rem;
    color: var(--pink-500, #ec4899);
}
.hof-pair > .hof-name:nth-of-type(1),
.hof-pair > .hof-sep,
.hof-pair > .hof-name:nth-of-type(2) {
    display: inline;
}
.hof-verdict {
    display: block;
    font-size: 0.82rem;
    color: var(--pink-700, #9d1457);
    font-style: italic;
    font-weight: 500;
}
.hof-meta {
    display: block;
    font-size: 0.72rem;
    color: var(--text-light, #6b4a5e);
    opacity: 0.8;
    margin-top: 0.15rem;
}
.hof-meta strong { color: var(--pink-600, #c2185b); font-weight: 700; }

.hof-percent {
    display: flex;
    align-items: baseline;
    gap: 0.12rem;
    font-family: var(--font-display);
    line-height: 1;
}
.hof-percent-value {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hof-percent-unit {
    font-size: 0.95rem;
    color: var(--pink-500, #ec4899);
    font-weight: 700;
}
.hof-rank-1 .hof-percent-value {
    background: linear-gradient(135deg, #f0b100, #e6247a);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hof-empty {
    text-align: center;
    color: var(--text-light, #6b4a5e);
    padding: 1.25rem 0.5rem;
    font-style: italic;
}

.hof-footer-cta {
    margin-top: 2rem;
    text-align: center;
}
.hof-reset-note {
    color: var(--text-light, #6b4a5e);
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
}

/* Match-Meter-Seite: Link zur Hall of Fame */
.lt-hof-link {
    display: flex;
    justify-content: center;
    margin: 0.25rem auto 1.25rem;
}
.lt-hof-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem 0.65rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    background: linear-gradient(135deg, #fff1f8, #f8e6ff);
    border: 1.5px solid rgba(255, 140, 190, 0.55);
    color: var(--pink-700, #9d1457);
    box-shadow: 0 6px 16px rgba(244, 63, 94, 0.1);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.lt-hof-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(244, 63, 94, 0.18);
}
.lt-hof-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff, #ffe3f0);
    box-shadow: inset 0 0 0 1px rgba(255, 140, 190, 0.4);
}
.lt-hof-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.lt-hof-text strong {
    font-size: 0.95rem;
    font-weight: 700;
}
.lt-hof-text small {
    font-size: 0.75rem;
    color: var(--text-light, #6b4a5e);
    font-weight: 500;
}
.lt-hof-arrow {
    font-size: 1.15rem;
    line-height: 1;
    color: var(--pink-500, #ec4899);
    transition: transform 0.18s ease;
}
.lt-hof-btn:hover .lt-hof-arrow {
    transform: translateX(3px);
}

/* ══════════════════════════════════════════════════════════════════
   LIVE HERO (oben auf index, wenn caglaax3 live ist)
   ══════════════════════════════════════════════════════════════════ */

.home-live-hero {
    max-width: 1400px;
    width: 100%;
    margin: 1rem auto 0.5rem;
    padding: 1.5rem 2rem 1.25rem;
    border-radius: var(--radius);
    background:
        radial-gradient(1200px 260px at 80% -40%, rgba(255, 140, 190, 0.28), transparent 60%),
        radial-gradient(900px 220px at -10% 20%, rgba(195, 138, 255, 0.22), transparent 55%),
        linear-gradient(180deg, #fff 0%, #fff8fc 100%);
    border: 2px solid rgba(255, 140, 190, 0.35);
    box-shadow: 0 18px 40px rgba(230, 45, 122, 0.12);
    position: relative;
    overflow: hidden;
    animation: slideFromTop 0.7s ease-out both;
}
.home-live-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0, rgba(255, 80, 150, 0.08), transparent 45%);
    pointer-events: none;
}

.live-hero-top {
    text-align: center;
    margin-bottom: 1.15rem;
    position: relative;
    z-index: 1;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff3d7f, #e6247a);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(230, 36, 122, 0.4);
    margin-bottom: 0.75rem;
}
.live-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0   rgba(255, 255, 255, 0.8); }
    70%  { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0   rgba(255, 255, 255, 0); }
}

.live-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    line-height: 1.15;
    margin: 0 0 0.45rem;
    color: var(--text);
    font-weight: 700;
}
.live-hero-topic {
    max-width: 900px;
    margin: 0 auto 0.9rem;
    font-size: 1.02rem;
    color: var(--text-light, #6b4a5e);
    line-height: 1.4;
    font-weight: 500;
}

.live-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}
.live-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid rgba(255, 140, 190, 0.4);
    color: var(--pink-700, #9d1457);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.08);
}
.live-meta-pill svg { color: var(--pink-500, #ec4899); flex-shrink: 0; }
.live-meta-label { font-weight: 500; color: var(--text-light, #6b4a5e); }

.live-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.15rem;
    position: relative;
    z-index: 1;
}

.home-live-hero .stream-embed-wrapper { position: relative; z-index: 1; }

@keyframes slideFromTop {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════════
   LIVE STREAM (Bottom-Sektion, wenn offline)
   ══════════════════════════════════════════════════════════════════ */

.home-stream { max-width: 1100px; }

.stream-embed-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    min-height: 380px;
}

.stream-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 10px 26px var(--shadow);
    border: 1px solid rgba(244, 122, 163, 0.12);
    background: #000;
}
.stream-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

.stream-chat-embed {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 26px var(--shadow);
    border: 1px solid rgba(244, 122, 163, 0.12);
    min-height: 380px;
}
.stream-chat-embed iframe { width: 100%; height: 100%; min-height: 380px; border: none; }

.stream-mobile-cta { display: none; justify-content: center; margin-top: 1rem; }

/* ══════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════ */

.footer {
    text-align: center;
    padding: 1.5rem 1.5rem 1.2rem;
    color: var(--text-light);
    font-size: 0.82rem;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.footer-socials { display: flex; gap: 0.4rem; }
.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s;
}
.footer-social:hover {
    background: rgba(255, 220, 235, 0.55);
    color: var(--pink-600);
    transform: translateY(-2px);
}
.footer-social svg { display: block; }
.footer-heart { color: var(--pink-500); }
.footer-links { display: flex; gap: 0.8rem; }
.footer-link {
    display: inline-flex; align-items: center; gap: 0.3rem;
    color: var(--text-light); text-decoration: none; font-weight: 600; font-size: 0.82rem; transition: color 0.2s;
}
.footer-link:hover { color: var(--twitch); }

/* ══════════════════════════════════════════════════════════════════
   ALERTS & MISC
   ══════════════════════════════════════════════════════════════════ */

.alert { padding: 1rem; border-radius: var(--radius-sm); margin-top: 1.5rem; text-align: center; font-weight: 600; }
.alert-error { background: #fef2f2; color: #991b1b; border: 2px solid #fecaca; }

.ban-notice {
    max-width: 720px;
    margin: 1.25rem auto 0;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm, 12px);
    background: #fff1f2;
    color: #9f1239;
    border: 2px solid #fecdd3;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.12);
}
.ban-notice strong { display: block; margin-bottom: 0.25rem; font-weight: 700; }
.ban-notice a { color: inherit; text-decoration: underline; font-weight: 600; }

.guild-notice {
    max-width: 760px;
    margin: 1.25rem auto 0;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md, 16px);
    background: linear-gradient(135deg, #fff0f8, #f3e8ff);
    color: #6b1048;
    border: 2px solid rgba(255, 140, 190, 0.5);
    box-shadow: 0 10px 30px rgba(194, 16, 101, 0.15);
    text-align: center;
}
.guild-notice strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--pink-600);
}
.guild-notice p {
    margin: 0 0 0.9rem;
    font-weight: 500;
    line-height: 1.45;
    color: #7a2351;
}
.guild-notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    align-items: center;
}
.guild-notice-actions .btn { text-decoration: none; }

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════════
   LOADING SPINNER
   ══════════════════════════════════════════════════════════════════ */

.spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.7s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════════════
   FREUNDEBUCH / BILDERMITTLUNG (bestehende Seiten)
   ══════════════════════════════════════════════════════════════════ */

.freundebuch-page,
.bildermittlung-page {
    padding: 1rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    text-align: center;
    color: var(--pink-600);
    margin-bottom: 0.3rem;
}

.page-subtitle { text-align: center; color: var(--text-light); margin-bottom: 2rem; }

/* Freundebuch – Eintrag erstellen: Mobile-first Hinweis (Layout-Text per Breakpoint) */
.freundebuch-erstellen-intro {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    line-height: 1.55;
    font-size: 0.95rem;
}
.freundebuch-intro-lead { font-weight: 600; color: var(--text); }
.freundebuch-intro-pflicht { color: var(--text-light); font-size: 0.9rem; }
.freundebuch-intro-mobile { display: none; }
.freundebuch-intro-desktop { display: inline; }

.freundebuch-buch-intro { max-width: 32rem; margin-left: auto; margin-right: auto; line-height: 1.55; }

.freundebuch-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.bildermittlung-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.2rem; align-items: start; }

.bildermittlung-canvas-panel,
.bildermittlung-tools {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 25px var(--shadow);
    border: 2px solid var(--pink-100);
}

.bildermittlung-canvas-panel #ermittlung-canvas {
    width: 100%; height: auto; display: block; border-radius: var(--radius-sm); touch-action: none; cursor: crosshair;
}

.bildermittlung-stats { margin-top: 0.8rem; display: grid; gap: 0.35rem; font-size: 0.88rem; color: var(--text-light); }
.bildermittlung-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.bildermittlung-actions { margin-top: 0.8rem; display: grid; gap: 0.5rem; }
.bildermittlung-actions .btn { width: 100%; justify-content: center; }
.bildermittlung-status { margin: 0.8rem 0; color: var(--text-light); font-size: 0.88rem; }

.form-panel {
    background: var(--white);
    padding: 1.8rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 25px var(--shadow);
    border: 2px solid var(--pink-100);
}

.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--pink-600); margin-bottom: 0.3rem; }

.form-input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 2px solid var(--pink-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text);
    background: var(--pink-50);
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}
textarea.form-input { min-height: 96px; line-height: 1.35; }
.form-input:focus { outline: none; border-color: var(--pink-400); box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.15); background: var(--white); }
.form-input::placeholder { color: var(--pink-300); }
.btn-submit { width: 100%; margin-top: 0.5rem; justify-content: center; }

.form-message { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-weight: 600; text-align: center; }
.form-message.success { background: #f0fdf4; color: #166534; border: 2px solid #bbf7d0; }
.form-message.error   { background: #fef2f2; color: #991b1b; border: 2px solid #fecaca; }

.layout-tool { margin-top: 1.2rem; padding-top: 1rem; border-top: 2px dashed var(--pink-200); }
.layout-tool summary { cursor: pointer; color: var(--pink-600); font-weight: 700; }
.layout-tool-text { margin: 0.7rem 0; color: var(--text-light); font-size: 0.88rem; }
.layout-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.layout-tool-actions { margin-top: 0.7rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.layout-tool-actions .btn { padding: 0.55rem 0.9rem; }
.layout-tool-hint { margin-top: 0.7rem; font-size: 0.84rem; color: var(--text-light); }

.preview-panel { position: sticky; top: 86px; align-self: start; }
.preview-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--pink-600); text-align: center; margin-bottom: 1rem; }
.preview-wrapper { background: var(--white); border-radius: var(--radius); box-shadow: 0 4px 25px var(--shadow); border: 2px solid var(--pink-100); overflow: hidden; padding: 0.5rem; }
#preview-canvas { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

/* Zeichenfeld skaliert auf schmalen Displays */
#drawing-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 2px solid var(--pink-200);
    touch-action: none;
}

.success-overlay { position: fixed; inset: 0; background: rgba(255, 248, 244, 0.95); display: flex; align-items: center; justify-content: center; z-index: 1000; animation: fadeIn 0.3s ease; }
.success-card { background: var(--white); padding: 2.5rem; border-radius: var(--radius); box-shadow: 0 20px 60px var(--shadow-lg); text-align: center; max-width: 500px; border: 3px solid var(--pink-300); }
.success-card h2 { font-family: var(--font-display); font-size: 1.8rem; color: var(--pink-600); margin-bottom: 0.5rem; }
.success-card p { color: var(--text-light); margin-bottom: 1.5rem; }
.success-image { max-width: 100%; border-radius: var(--radius-sm); margin-bottom: 1.5rem; border: 2px solid var(--pink-200); }
.success-card .success-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 0.5rem; }

.submit-confirm-overlay { position: fixed; inset: 0; background: rgba(255, 248, 244, 0.95); display: flex; align-items: center; justify-content: center; z-index: 1200; animation: fadeIn 0.2s ease; }
.submit-confirm-card { background: var(--white); padding: 2rem; border-radius: var(--radius); box-shadow: 0 20px 60px var(--shadow-lg); text-align: center; max-width: 560px; width: calc(100% - 2rem); border: 3px solid var(--pink-300); }
.submit-confirm-card h2 { font-family: var(--font-display); font-size: 1.7rem; color: var(--pink-600); margin-bottom: 0.5rem; }
.submit-confirm-card p { color: var(--text-light); margin-bottom: 1rem; }
.submit-confirm-image { max-width: 100%; border-radius: var(--radius-sm); border: 2px solid var(--pink-200); margin-bottom: 1rem; }
.submit-confirm-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: center; }

.required-star { color: var(--pink-500); font-weight: 800; }
.field-hint-pflicht { font-size: 0.82rem; color: var(--text-light); margin: 0 0 0.5rem; }

/* ── Freundebuch „Buch“-Ansicht ── */
.freundebuch-buch-page .freundebuch-banner { max-width: 640px; margin: 0 auto 1.25rem; }
.freundebuch-buch-actions {
    display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; align-items: center;
    margin-bottom: 2rem;
}
.freundebuch-hat-eintrag { font-weight: 700; color: var(--pink-600); }

.freundebuch-buch-empty {
    text-align: center; padding: 2.5rem 1.2rem; background: var(--white);
    border-radius: var(--radius); border: 2px dashed var(--pink-200); max-width: 480px; margin: 0 auto;
}
.freundebuch-buch-empty p { color: var(--text-light); margin-bottom: 1rem; }

.freundebuch-buch {
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    max-width: 1100px; margin: 0 auto;
}

.freundebuch-buch-nav {
    flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--pink-300);
    background: var(--white); color: var(--pink-600); font-size: 1.1rem; cursor: pointer;
    box-shadow: 0 4px 14px var(--shadow); transition: transform 0.15s, background 0.15s;
}
.freundebuch-buch-nav:hover { background: var(--pink-50); transform: scale(1.05); }

.freundebuch-buch-track {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.4rem 0.2rem 0.6rem;
    scroll-padding: 0.2rem;
}
.freundebuch-buch-track::-webkit-scrollbar { display: none; }

.freundebuch-buch-slide {
    flex: 0 0 100%;
    min-width: 0;
    max-width: 100%;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #fff9fb 0%, #ffe8f4 100%);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(92, 42, 77, 0.18);
    border: 3px solid var(--pink-200);
    padding: 1.1rem 1rem 1.2rem;
}

.freundebuch-buch-img-wrap {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    border-radius: var(--radius-sm);
    -webkit-tap-highlight-color: transparent;
    cursor: zoom-in;
    transition: transform 0.2s;
}
.freundebuch-buch-img-wrap:hover { transform: scale(1.01); }
.freundebuch-buch-img-wrap:focus-visible {
    outline: 3px solid var(--pink-400);
    outline-offset: 3px;
}
.freundebuch-buch-img {
    max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm);
    border: 2px solid rgba(214, 51, 132, 0.25); background: var(--white);
    margin: 0 auto;
}
.freundebuch-buch-zoom-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px var(--shadow);
    pointer-events: none;
}
.freundebuch-buch-caption { margin: 0.75rem 0 0; text-align: center; font-size: 0.95rem; color: var(--text); }
.freundebuch-buch-swipe-hint {
    display: none;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0.75rem 0 0;
}
.freundebuch-buch-meta { text-align: center; margin-top: 0.75rem; font-weight: 600; color: var(--pink-600); }

/* ── Lightbox / In-Page Zoom ── */
.fb-zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 10, 20, 0.92);
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}
.fb-zoom-overlay[hidden] { display: none !important; }
.fb-zoom-stage {
    flex: 1;
    max-width: 100%;
    max-height: calc(100vh - 6rem);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.fb-zoom-img {
    max-width: 100%;
    max-height: calc(100vh - 6rem);
    width: auto;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: #fff;
    cursor: zoom-in;
    transition: transform 0.25s ease;
    transform-origin: center;
    user-select: none;
    -webkit-user-drag: none;
}
.fb-zoom-img.is-zoomed {
    transform: scale(2);
    cursor: zoom-out;
    max-width: none;
    max-height: none;
}
.fb-zoom-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.95);
    color: var(--pink-600);
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    z-index: 2;
}
.fb-zoom-close:hover { background: #fff; transform: scale(1.05); }
.fb-zoom-nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.9);
    color: var(--pink-600);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    align-self: center;
    margin: 0 0.5rem;
}
.fb-zoom-nav:hover { background: #fff; transform: scale(1.05); }
.fb-zoom-caption {
    position: absolute;
    bottom: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    max-width: 90%;
    text-align: center;
    pointer-events: none;
}

/* ── Photo Upload ── */
.photo-upload-area {
    position: relative;
    border: 2px dashed var(--pink-300);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--pink-50), rgba(255, 230, 245, 0.5));
    transition: border-color 0.25s, background 0.25s;
    overflow: hidden;
}
.photo-upload-area:hover, .photo-upload-area.drag-over {
    border-color: var(--pink-400);
    background: linear-gradient(135deg, var(--pink-100), rgba(255, 210, 235, 0.6));
}
.photo-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.photo-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.5rem 1rem;
    cursor: pointer;
    text-align: center;
}
.photo-upload-icon { font-size: 1.8rem; }
.photo-upload-text { font-size: 0.82rem; color: var(--text-light); font-weight: 600; }
.photo-preview-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 0.8rem;
}
.photo-preview-img {
    max-width: 160px;
    max-height: 160px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--pink-300);
    object-fit: cover;
    box-shadow: 0 4px 16px var(--shadow);
}
.photo-remove-btn {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--pink-300);
    background: var(--white);
    color: var(--pink-600);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 3;
}
.photo-remove-btn:hover {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

#drawing-canvas { width: 100%; height: 240px; border: 2px solid var(--pink-200); border-radius: var(--radius-sm); background: #fff; cursor: crosshair; touch-action: none; }
.drawing-toolbar { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.drawing-colors { display: flex; gap: 0.3rem; }
.color-btn { width: 26px; height: 26px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; transition: border-color 0.2s, transform 0.15s; }
.color-btn.active, .color-btn:hover { border-color: var(--pink-400); transform: scale(1.15); }
.drawing-sizes { display: flex; gap: 0.3rem; }
.size-btn { padding: 0.2rem 0.6rem; border: 2px solid var(--pink-200); border-radius: var(--radius-sm); background: var(--white); font-family: var(--font-body); font-weight: 700; font-size: 0.75rem; color: var(--text-light); cursor: pointer; transition: all 0.2s; }
.size-btn.active, .size-btn:hover { background: var(--pink-100); border-color: var(--pink-400); color: var(--pink-600); }
.btn-clear-drawing { padding: 0.2rem 0.5rem; border: 2px solid var(--pink-200); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; font-size: 1rem; transition: all 0.2s; }
.btn-clear-drawing:hover { background: #fef2f2; border-color: #fca5a5; }

/* ── Sparkle Hearts ── */
@keyframes sparkleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50%      { transform: translateY(-8px) scale(1.15); opacity: 1; }
}

.home-right::before {
    content: "✧";
    position: absolute;
    top: -10px;
    right: 20%;
    font-size: 1.2rem;
    color: var(--pink-300);
    animation: sparkleFloat 2.5s ease-in-out infinite;
    pointer-events: none;
}
.home-right::after {
    content: "♥";
    position: absolute;
    top: 15px;
    left: 10%;
    font-size: 0.9rem;
    color: var(--pink-400);
    animation: sparkleFloat 3s ease-in-out infinite 0.8s;
    pointer-events: none;
    opacity: 0.7;
}

.home-clips::before {
    content: "♡";
    position: absolute;
    top: -12px;
    right: 8%;
    font-size: 1rem;
    color: var(--pink-300);
    animation: sparkleFloat 3.5s ease-in-out infinite 1.2s;
    pointer-events: none;
}

.home-clips {
    position: relative;
}

.home-features::before {
    content: "✦";
    position: absolute;
    top: 5px;
    left: 5%;
    font-size: 0.8rem;
    color: var(--purple-400);
    animation: sparkleFloat 4s ease-in-out infinite 0.5s;
    pointer-events: none;
}
.home-features {
    position: relative;
}

/* Legacy */
.clips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.clips-channel { text-align: center; }
.clips-hint { margin-top: 1rem; color: var(--text-light); font-size: 0.9rem; }
.clips-hint a { color: var(--twitch); font-weight: 600; text-decoration: none; }
.clips-hint a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE – Tablet (< 900px)
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .nav-toggle { display: flex; }

    .nav-live-badge {
        font-size: 0.62rem;
        padding: 0.2rem 0.5rem 0.2rem 0.45rem;
        gap: 0.3rem;
        margin-left: auto;
        margin-right: 0.5rem;
    }
    .nav-live-count { font-size: 0.6rem; padding: 0.05rem 0.3rem; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(82vw, 300px);
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        padding: 4.5rem 1.2rem 2rem;
        gap: 0.4rem;
        background: linear-gradient(180deg, #fff0f5, #ffdceb, #f8e1ff);
        box-shadow: -6px 0 24px rgba(0,0,0,0.08);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 205;
        overflow-y: auto;
    }
    .nav-menu.open { right: 0; }

    .nav-menu .nav-link { padding: 0.65rem 1rem; font-size: 0.95rem; border-radius: var(--radius-sm); }
    .nav-menu .btn-discord { width: 100%; justify-content: center; margin-top: 0.5rem; }

    .nav-links { flex-direction: column; width: 100%; }
    .nav-links .nav-link { width: 100%; }

    .nav-divider { width: 100%; height: 1.5px; margin: 0.3rem 0; }

    .nav-socials { width: 100%; justify-content: center; gap: 0.5rem; padding: 0.3rem 0; }
    .nav-social { width: 38px; height: 38px; }

    .nav-profile { width: 100%; margin-top: 0.3rem; }
    .nav-profile-btn { width: 100%; justify-content: center; padding: 0.6rem 1rem; border-radius: var(--radius-sm); }
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        margin-top: 0.3rem;
    }
    .nav-profile:not(.open) .nav-dropdown { display: none; }
    .nav-profile.open .nav-dropdown { display: block; }

    /* ── Split → eine Spalte ── */
    .home-split {
        grid-template-columns: 1fr;
        padding: 0.8rem 1rem 1.5rem;
        gap: 1.2rem;
    }
    .home-left { padding-right: 0; order: 2; animation: none; opacity: 1; transform: none; }
    .home-right { order: 1; position: static; animation: fadeInUp 0.6s ease-out both; width: 100%; text-align: center; }
    .peace-wrapper { width: min(100%, 260px); margin: 0 auto; }
    .peace-img { max-width: 220px; }
    .peace-placeholder { max-width: 180px; }
    .home-intro { padding: 0.8rem 0 0; max-width: 420px; margin: 0 auto; }
    .home-title { font-size: 1.7rem; }
    .accent-gradient { font-size: 1.9rem; }
    .home-subtitle { font-size: 0.88rem; }

    .home-actions { flex-direction: column; align-items: stretch; gap: 0.55rem; }
    .home-actions .btn { width: 100%; justify-content: center; }

    .features-grid { grid-template-columns: 1fr; gap: 0.9rem; }
    .feature-card { text-align: left; }
    .feature-icon-wrap { margin: 0 0 0.8rem; }

    .stream-embed-wrapper { grid-template-columns: 1fr; min-height: 0; }
    .stream-chat-embed { min-height: 260px; }

    /* ── Hall of Fame mobile ── */
    .hof-page { padding: 1rem 0.75rem 2rem; }
    .hof-grid { grid-template-columns: 1fr; gap: 0.9rem; }
    .hof-hero { padding: 1.1rem 0.8rem; }
    .hof-trophy { font-size: 2.4rem; }
    .hof-card { padding: 1rem 0.85rem 0.85rem; }
    .hof-item { padding: 0.55rem 0.55rem; gap: 0.55rem; }
    .hof-percent-value { font-size: 1.4rem; }

    .lt-hof-btn { padding: 0.6rem 0.8rem; gap: 0.55rem; }
    .lt-hof-text strong { font-size: 0.88rem; }
    .lt-hof-text small { font-size: 0.7rem; }

    /* ── Live-Hero mobile ── */
    .home-live-hero {
        padding: 1rem 1rem 0.9rem;
        margin: 0.5rem 0.6rem 0;
        border-radius: var(--radius-sm, 12px);
    }
    .live-hero-title { font-size: 1.35rem; }
    .live-hero-topic { font-size: 0.92rem; }
    .live-meta-pill { font-size: 0.78rem; padding: 0.3rem 0.65rem; }
    .live-hero-actions { flex-direction: column; align-items: stretch; gap: 0.55rem; }
    .live-hero-actions .btn { width: 100%; justify-content: center; }

    .freundebuch-container { grid-template-columns: 1fr; }
    .bildermittlung-layout { grid-template-columns: 1fr; }
    /* Auf Desktop/Tablet sticky lassen; erst auf kleinen Phones deaktivieren */
    .preview-panel { position: sticky; top: 86px; order: 2; }
    /* Eintrag erstellen: Mobile-first – Vorschau zuerst, Formular darunter */
    .freundebuch-erstellen-page .form-panel { order: 2; }
    .freundebuch-erstellen-page .preview-panel { order: 1; }
    .freundebuch-intro-mobile { display: inline; }
    .freundebuch-intro-desktop { display: none; }
    .clips-grid { grid-template-columns: 1fr; }
}

@media (min-width: 901px) {
    .freundebuch-page .freundebuch-container { align-items: start; }
    .freundebuch-page .preview-panel {
        position: sticky !important;
        top: 86px !important;
        align-self: start;
    }
}

@media (max-width: 700px) {
    .freundebuch-page .preview-panel {
        position: static !important;
        top: auto !important;
    }
    .freundebuch-erstellen-page .preview-panel {
        position: static !important;
        top: auto !important;
    }
    /* Auf dem Handy: Scroll-Carousel ohne Pfeil-Buttons */
    .freundebuch-buch-nav { display: none; }
    .freundebuch-buch { gap: 0; }
    .freundebuch-buch-slide {
        padding: 0.75rem 0.7rem 0.9rem;
        border-width: 2px;
    }
    .freundebuch-buch-caption {
        font-size: 1rem;
        line-height: 1.45;
        padding: 0 0.25rem;
    }
    .freundebuch-buch-swipe-hint { display: block; }
    .freundebuch-buch-meta { font-size: 1rem; margin-top: 0.85rem; }
    .fb-zoom-nav { width: 40px; height: 40px; margin: 0 0.2rem; }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE – Phone (< 600px)
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
    body::before, body::after { opacity: 0.35; filter: blur(50px); }

    .navbar { padding: 0.55rem 0.75rem; }
    .logo-text { font-size: 1rem; }

    .home-split { padding: 0.5rem 0.8rem 1.2rem; gap: 0.9rem; }
    .peace-img { max-width: 180px; }
    .peace-placeholder { max-width: 150px; }

    .home-eyebrow { padding: 0.35rem 0.75rem; font-size: 0.72rem; margin-bottom: 0.6rem; }
    .home-title { font-size: 1.4rem; }
    .accent-gradient { font-size: 1.6rem; }
    .home-subtitle { font-size: 0.82rem; line-height: 1.5; margin-bottom: 1rem; }
    .home-actions .btn { font-size: 0.82rem; padding: 0.6rem 0.9rem; }

    .home-section { padding: 1.5rem 0.8rem; }
    .section-title { font-size: 1.3rem; }
    .section-subtitle { font-size: 0.8rem; margin-bottom: 1.2rem; }

    .clip-slide-play svg { width: 52px; height: 52px; padding: 10px; }

    .feature-card { padding: 1.1rem 0.9rem; }
    .feature-card h3 { font-size: 0.95rem; }
    .feature-card p { font-size: 0.78rem; }
    .feature-icon-wrap { width: 52px; height: 52px; }

    .freundebuch-page, .bildermittlung-page { padding: 0.8rem; }
    .form-panel { padding: 1rem; }
    .form-input { font-size: 16px; }
    .freundebuch-erstellen-intro { font-size: 0.9rem; padding: 0 0.15rem; }
    .preview-title { font-size: 1.15rem; }
    .preview-wrapper { padding: 0.4rem; }

    .layout-tool-grid { grid-template-columns: 1fr; }
    .layout-tool-actions .btn { width: 100%; justify-content: center; }
    .bildermittlung-grid { grid-template-columns: 1fr; }

    .stream-embed-wrapper { min-height: 0; }
    .stream-chat-embed { display: none; }
    .stream-mobile-cta { display: flex; }

    .butterflies { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   COMMUNITY STATS PAGE
   ══════════════════════════════════════════════════════════════════ */

.stats-page {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
    overflow-x: hidden;
}

/* ── Live Banner ── */
.stats-live-banner {
    background: linear-gradient(135deg, #1a0a14, #2d0a1e, #1a0a28);
    border-bottom: 3px solid var(--pink-500);
    padding: 0.7rem 1.5rem;
    animation: livePulse 3s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { border-bottom-color: var(--pink-500); }
    50%      { border-bottom-color: var(--purple-400); }
}

.stats-live-banner-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.stats-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444, 0 0 20px rgba(239, 68, 68, 0.4);
    animation: liveDot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes liveDot {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

.stats-live-text {
    font-weight: 800;
    font-size: 0.82rem;
    color: #ef4444;
    letter-spacing: 0.08em;
}

.stats-live-info {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-live-viewers {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    font-size: 0.85rem;
}

.stats-live-btn {
    margin-left: auto;
}

/* ── Quick Stats Cards ── */
.stats-quick-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.9rem;
    margin-bottom: 2rem;
}

.stats-quick-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(255, 240, 245, 0.88));
    border: 2px solid rgba(255, 140, 190, 0.2);
    border-radius: var(--radius);
    padding: 1.2rem 1rem;
    text-align: center;
    box-shadow: 0 6px 20px var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}
.stats-quick-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-lg);
}

.stats-quick-icon {
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
}

.stats-quick-live-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 12px #ef4444, 0 0 30px rgba(239, 68, 68, 0.3);
    animation: liveDot 1.5s ease-in-out infinite;
}

.stats-quick-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.2rem;
}

.stats-quick-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
}
.stats-quick-value.is-live {
    color: #ef4444;
    text-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}
.stats-quick-game {
    font-size: 0.9rem;
    word-break: break-word;
}

/* ── Main Grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: start;
    min-width: 0;
}
.stats-grid > * {
    min-width: 0;
}

/* ── Cards ── */
.stats-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 240, 245, 0.9));
    border: 2px solid rgba(255, 140, 190, 0.2);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: 0 8px 28px var(--shadow);
}

.stats-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    gap: 0.5rem;
}

.stats-card-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--pink-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-card-badge {
    font-size: 0.72rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pink-100), var(--purple-100));
    color: var(--pink-600);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(255, 140, 190, 0.3);
}

/* Limit-Dropdown (25 / 50 / 100) */
.stats-limit-picker {
    position: relative;
}
.stats-limit-picker-summary {
    cursor: pointer;
    list-style: none;
    font-size: 0.72rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pink-100), var(--purple-100));
    color: var(--pink-600);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(255, 140, 190, 0.3);
    user-select: none;
}
.stats-limit-picker-summary::-webkit-details-marker {
    display: none;
}
.stats-limit-picker[open] .stats-limit-picker-summary {
    box-shadow: 0 2px 12px rgba(255, 105, 168, 0.2);
}
.stats-limit-picker-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 7rem;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0.35rem;
    background: var(--white);
    border: 1.5px solid rgba(255, 140, 190, 0.35);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px var(--shadow);
}
.stats-limit-picker-item {
    display: block;
    padding: 0.4rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    text-align: center;
}
.stats-limit-picker-item:hover {
    background: rgba(255, 220, 235, 0.5);
}
.stats-limit-picker-item.is-active {
    background: rgba(255, 180, 210, 0.45);
    color: var(--pink-600);
}

.stats-pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 140, 190, 0.15);
}
.stats-pagination-meta {
    font-size: 0.82rem;
    color: var(--text-light);
}
.stats-pagination--follow {
    border-top: none;
    padding-top: 0;
}
.stats-leaderboard--follow .stats-lb-row--follow {
    grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.15fr);
}
.stats-lb-follow-age {
    text-align: right;
}
.stats-lb-follow-age small {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    opacity: 0.75;
    margin-top: 0.15rem;
}

/* ── Leaderboard ── */
.stats-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow-x: hidden;
}

.stats-lb-row {
    display: grid;
    grid-template-columns: 44px 1fr auto auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s, transform 0.15s;
}
.stats-lb-row:hover {
    background: rgba(255, 220, 235, 0.4);
    transform: translateX(4px);
}

.stats-lb-top {
    background: linear-gradient(135deg, rgba(255, 230, 242, 0.6), rgba(255, 210, 235, 0.4));
    border: 1.5px solid rgba(255, 140, 190, 0.15);
}

.stats-lb-row[data-rank="1"] {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 240, 200, 0.3));
    border: 1.5px solid rgba(255, 215, 0, 0.25);
}

.stats-lb-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.stats-lb-medal {
    font-size: 1.3rem;
    line-height: 1;
}

.stats-lb-number {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-light);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 220, 235, 0.5);
}

.stats-lb-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.stats-lb-name--wt-toggle {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
    color: var(--text);
}
.stats-lb-name--wt-toggle:hover {
    color: var(--pink-600);
}
.stats-lb-name--wt-toggle:focus-visible {
    outline: 2px solid var(--pink-400);
    outline-offset: 2px;
    border-radius: 4px;
}

.stats-lb-points {
    text-align: right;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--pink-600);
    white-space: nowrap;
}
.stats-lb-points small {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stats-lb-points--wt-main {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    white-space: normal;
}
.stats-lb-points--wt-main .stats-wt-layer {
    display: block;
    line-height: 1.25;
}

.stats-lb-watchtime {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--purple-400);
    min-width: 55px;
    text-align: right;
}
.stats-lb-watchtime .stats-wt-layer {
    display: block;
}

/* ── Sidebar ── */
.stats-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* ── Empty State ── */
.stats-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-light);
}
.stats-empty p { font-weight: 600; margin-bottom: 0.3rem; }
.stats-empty small { font-size: 0.78rem; opacity: 0.7; }
.stats-empty-sm { padding: 1rem 0.5rem; }
.stats-empty-sm p { font-size: 0.85rem; }

/* ── Viewer Lookup ── */
.stats-lookup-combo {
    position: relative;
    margin-bottom: 0.8rem;
}
.stats-lookup-combo .stats-lookup-form {
    margin-bottom: 0;
}
.stats-lookup-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}
.stats-lookup-form .form-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}
.stats-lookup-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 30;
    margin: 4px 0 0;
    padding: 0.25rem 0;
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
    background: var(--card-bg, #fff);
    border: 1.5px solid rgba(255, 140, 190, 0.25);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.stats-lookup-suggest li {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text);
}
.stats-lookup-suggest li:hover {
    background: rgba(255, 120, 180, 0.12);
}

.stats-lookup-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.stats-lookup-error {
    color: #e6247a;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.stats-lookup-found {
    background: linear-gradient(135deg, rgba(255, 230, 242, 0.5), rgba(255, 240, 250, 0.4));
    border: 1.5px solid rgba(255, 140, 190, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.9rem;
}

.stats-lookup-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.stats-lookup-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.stats-lookup-stat {
    text-align: center;
}

.stats-lookup-stat-val {
    display: block;
    font-weight: 800;
    font-size: 1rem;
    color: var(--pink-600);
}

.stats-lookup-stat-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.stats-lookup-stat--followage .stats-lookup-stat-val {
    font-size: 0.92rem;
    line-height: 1.25;
}

.stats-lookup-stat-sub {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 0.2rem;
    line-height: 1.3;
}

/* ── Stream Preview Card ── */
.stats-stream-thumb-link {
    display: block;
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 0.7rem;
}

.stats-stream-thumb {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

.stats-stream-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s;
}
.stats-stream-thumb-link:hover .stats-stream-thumb-overlay {
    opacity: 1;
}
.stats-stream-thumb-overlay svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.stats-stream-info-box {
    padding: 0.3rem 0;
}

.stats-stream-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.stats-stream-uptime {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ── Tabs ── */
.stats-tabs {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
    background: rgba(255, 220, 235, 0.3);
    border-radius: var(--radius-full);
    padding: 0.25rem;
}

.stats-tab {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
}
.stats-tab:hover {
    color: var(--pink-600);
    background: rgba(255, 240, 245, 0.5);
}
.stats-tab.active {
    background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
    color: var(--white);
    box-shadow: 0 3px 12px var(--shadow);
}

.stats-follow-sort {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.65rem;
    margin: -0.15rem 0 0.85rem;
    font-size: 0.78rem;
    color: var(--text-light);
}
.stats-follow-sort-label {
    font-weight: 700;
    color: var(--text);
}
.stats-follow-sort-btn {
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(255, 180, 210, 0.45);
    background: rgba(255, 255, 255, 0.65);
    color: var(--text-light);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.76rem;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.stats-follow-sort-btn:hover {
    color: var(--pink-600);
    border-color: var(--pink-300);
}
.stats-follow-sort-btn.is-active {
    background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
    color: var(--white);
    border-color: transparent;
}

.stats-follow-meta {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0 0.75rem;
}

.stats-tab-content {
    display: none;
}
.stats-tab-content.active {
    display: block;
}

/* ── Leaderboard Suchfilter ── */
.stats-lb-search {
    position: relative;
    margin-bottom: 0.8rem;
}

.stats-lb-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.6;
}

.stats-lb-search-input {
    width: 100%;
    padding: 0.55rem 0.75rem 0.55rem 2.2rem;
    border: 2px solid rgba(255, 180, 210, 0.3);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text);
    background: rgba(255, 245, 249, 0.7);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.stats-lb-search-input:focus {
    outline: none;
    border-color: var(--pink-400);
    box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.12);
    background: var(--white);
}
.stats-lb-search-input::placeholder {
    color: var(--pink-300);
}

.stats-lb-no-results {
    text-align: center;
    padding: 1.2rem 0.5rem;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.88rem;
}
.stats-lb-no-results[hidden] {
    display: none;
}

/* ── Stats Responsive – Tablet ── */
@media (max-width: 900px) {
    .stats-page {
        padding: 1.2rem 1rem 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-quick-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-live-banner {
        padding: 0.6rem 1rem;
    }
    .stats-live-banner-inner {
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    .stats-live-info {
        white-space: normal;
        flex-basis: 100%;
        order: 3;
        text-align: center;
    }
    .stats-live-btn {
        margin-left: 0;
    }

    .stats-lb-row {
        grid-template-columns: 36px 1fr auto;
    }
    .stats-lb-watchtime {
        display: none;
    }

    .stats-card-header {
        flex-wrap: wrap;
    }
}

/* ── Stats Responsive – Phone ── */
@media (max-width: 600px) {
    .stats-page {
        padding: 0.8rem 0.6rem 1.5rem;
        max-width: 100%;
    }

    .stats-quick-cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .stats-quick-card {
        padding: 0.7rem 0.5rem;
    }
    .stats-quick-value {
        font-size: 0.95rem;
    }
    .stats-quick-label {
        font-size: 0.68rem;
    }
    .stats-quick-icon svg {
        width: 20px;
        height: 20px;
    }

    .stats-card {
        padding: 0.8rem 0.7rem;
        border-radius: var(--radius-sm);
    }
    .stats-card-title {
        font-size: 0.95rem;
    }
    .stats-card-title svg {
        width: 18px;
        height: 18px;
    }
    .stats-card-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }

    .stats-tabs {
        padding: 0.2rem;
    }
    .stats-tab {
        padding: 0.4rem 0.6rem;
        font-size: 0.78rem;
    }

    .stats-lb-search-input {
        font-size: 16px;
        padding: 0.5rem 0.6rem 0.5rem 2rem;
    }

    .stats-lb-row {
        grid-template-columns: 32px 1fr auto;
        padding: 0.4rem 0.4rem;
        gap: 0.3rem;
    }
    .stats-lb-rank {
        width: 28px;
        height: 28px;
    }
    .stats-lb-medal {
        font-size: 1rem;
    }
    .stats-lb-number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    .stats-lb-name {
        font-size: 0.8rem;
        min-width: 0;
    }
    .stats-lb-points {
        font-size: 0.78rem;
    }
    .stats-lb-points small {
        font-size: 0.58rem;
    }

    .stats-lookup-form {
        flex-direction: column;
        gap: 0.4rem;
    }
    .stats-lookup-form .form-input {
        font-size: 16px;
    }
    .stats-lookup-form .btn {
        width: 100%;
        justify-content: center;
    }
    .stats-lookup-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
    }
    .stats-lookup-stat-val {
        font-size: 0.82rem;
    }
    .stats-lookup-stat-label {
        font-size: 0.6rem;
    }

    .stats-live-banner {
        padding: 0.5rem 0.6rem;
    }
    .stats-live-text {
        font-size: 0.75rem;
    }
    .stats-live-viewers {
        font-size: 0.78rem;
    }
    .stats-live-info {
        font-size: 0.75rem;
    }
}

/* ══════════════════════════════════════════════════════════════════
   LOVE TESTER
   ══════════════════════════════════════════════════════════════════ */

.lovetester-page {
    padding: 1rem 1.5rem 3rem;
    max-width: 880px;
    margin: 0 auto;
    position: relative;
}

.lt-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lt-input-card {
    gap: 1rem;
    transition: transform 0.55s cubic-bezier(.55, -0.4, .35, 1.4), opacity 0.45s ease;
}
.lt-input-card.lt-fly-away {
    transform: translateY(-120vh) rotate(-8deg) scale(0.85);
    opacity: 0;
    pointer-events: none;
}
.lt-input-card.lt-fly-back {
    animation: ltFlyBack 0.5s cubic-bezier(.2, .8, .2, 1.1);
}
@keyframes ltFlyBack {
    0% { transform: translateY(-60px) scale(0.95); opacity: 0; }
    100% { transform: none; opacity: 1; }
}

/* Mode Switch */
.lt-mode-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    padding: 0.3rem;
    background: linear-gradient(135deg, var(--pink-50), var(--purple-100));
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(255, 140, 190, 0.25);
    margin-bottom: 0.2rem;
}
.lt-mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.6rem;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.lt-mode-btn:hover { color: var(--pink-600); }
.lt-mode-btn.is-active {
    background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(255, 65, 145, 0.3);
    transform: translateY(-1px);
}
.lt-mode-icon { font-size: 1rem; line-height: 1; }

/* Form */
.lt-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Side-by-side row: name1 [heart] name2 */
.lt-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.8rem;
    align-items: end;
}
.lt-field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.lt-label {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--pink-600);
}
.lt-combo { position: relative; }
.lt-input {
    width: 100%;
    font-style: normal;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0;
}
.lt-input::placeholder {
    font-style: normal;
    font-weight: 500;
    color: var(--pink-300);
    opacity: 1;
}

.lt-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: end;
    padding: 0;
    margin-bottom: -6px;
}
.lt-plus-symbol {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: none;
    filter: drop-shadow(0 5px 14px rgba(255, 65, 145, 0.4));
    animation: ltPulse 2.2s ease-in-out infinite;
}
.lt-plus-heart {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.lt-plus-glyph {
    position: relative;
    z-index: 1;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1;
    transform: translateY(-6%);
    text-shadow: 0 2px 6px rgba(194, 16, 101, 0.35);
}

@keyframes ltPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.lt-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 40;
    margin: 4px 0 0;
    padding: 0.25rem 0;
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
    background: var(--white);
    border: 1.5px solid rgba(255, 140, 190, 0.3);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.lt-suggest li {
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
    cursor: pointer;
    color: var(--text);
}
.lt-suggest li:hover {
    background: rgba(255, 120, 180, 0.12);
}

.lt-actions { display: flex; justify-content: center; margin-top: 0.4rem; }
.lt-submit {
    min-width: 220px;
    position: relative;
    justify-content: center;
    text-align: center;
}
.lt-submit .lt-submit-label { width: 100%; text-align: center; }
.lt-submit[disabled] { opacity: 0.75; cursor: progress; }

/* Info-Hinweis über den Eingabefeldern (mit Twitch-Link) */
.lt-info {
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-light);
    margin: 0 auto 1rem;
    max-width: 640px;
    line-height: 1.45;
}
.lt-info a {
    color: var(--pink-600);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px dashed rgba(255, 65, 145, 0.45);
    transition: color 0.2s, border-color 0.2s;
}
.lt-info a:hover {
    color: var(--pink-500);
    border-bottom-color: var(--pink-500);
}

.lt-error {
    background: rgba(255, 60, 90, 0.08);
    border: 1.5px solid rgba(255, 60, 90, 0.25);
    color: #a3143a;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    text-align: center;
    margin-top: 0.6rem;
}

/* ── Stage (Result Area) ── */
.lt-stage {
    position: relative;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    min-height: 460px;
}

.lt-stage-heading {
    position: relative;
    z-index: 11;
    text-align: center;
    margin-bottom: 0.2rem;
    animation: ltFadeUp 0.5s ease both;
}
.lt-stage-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    color: var(--pink-600);
    line-height: 1.15;
    margin: 0;
}
.lt-stage-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0.25rem 0 0;
}

.lt-tagline {
    position: relative;
    z-index: 11;
    font-size: 0.95rem;
    color: var(--text);
    margin: 0;
    animation: ltFadeUp 0.6s ease 0.05s both;
}

.lt-stage-particles {
    position: absolute;
    inset: -40px -10vw -20px;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}
.lt-particle {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
}
.lt-particle-emoji {
    display: inline-block;
    line-height: 1;
    user-select: none;
    -webkit-user-select: none;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif;
    filter: drop-shadow(0 4px 10px rgba(194, 16, 101, 0.18));
}
@keyframes ltFloat {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg) scale(0.7);
    }
    15% { opacity: 1; }
    100% {
        opacity: 0;
        transform: translate(var(--lt-end-x, 0), var(--lt-end-y, -80vh)) rotate(var(--lt-rot, 20deg)) scale(1.05);
    }
}
@keyframes ltFall {
    0% {
        opacity: 0;
        transform: translate(0, -10vh) rotate(0deg) scale(0.8);
    }
    20% { opacity: 1; }
    100% {
        opacity: 0;
        transform: translate(var(--lt-end-x, 0), 90vh) rotate(var(--lt-rot, 20deg)) scale(0.9);
    }
}

.lt-shape-wrap {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
}

.lt-shape {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lt-shape[hidden] { display: none; }

/* Mask wrapper: hält die Form-Maske, damit base+fill exakt darin clippen.
   Wichtig: Maske wird HIER (am Wrapper) angewendet – nicht am Fill –
   sonst würde der Fill den Mask-Inhalt verzerren, weil seine Höhe sich ändert. */
.lt-shape-mask-wrap {
    position: absolute;
    inset: 0;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    overflow: hidden;
}
.lt-shape-base,
.lt-shape-fill {
    position: absolute;
    left: 0;
    right: 0;
}
.lt-shape-base { top: 0; bottom: 0; }
.lt-shape-fill {
    bottom: 0;
    height: 0%;
    transition: height 0.04s linear;
}

/* Outline (stroked path → "Vasenrand"). preserveAspectRatio="none" auf SVG,
   damit der Pfad exakt zur Maske ausgerichtet ist; vector-effect verhindert,
   dass die Strichdicke beim Stretchen verzerrt wird. */
.lt-shape-outline {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: visible;
}
.lt-shape-outline path {
    fill: none;
    stroke: var(--white);
    stroke-width: 3.5;
    stroke-linejoin: round;
    stroke-linecap: round;
    paint-order: stroke;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

/* Glas-Shine als Pseudoelement auf dem Mask-Wrapper → wird ebenfalls geclippt */
.lt-shape-mask-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 35%),
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.25) 0%, transparent 30%);
}

/* Pro Modus: Maske + Outline-Farbton */
.lt-shape-heart .lt-shape-mask-wrap {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M50 98 C 16 72, 0 52, 0 26 C 0 10, 14 2, 28 2 C 38 2, 46 10, 50 20 C 54 10, 62 2, 72 2 C 86 2, 100 10, 100 26 C 100 52, 84 72, 50 98 Z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M50 98 C 16 72, 0 52, 0 26 C 0 10, 14 2, 28 2 C 38 2, 46 10, 50 20 C 54 10, 62 2, 72 2 C 86 2, 100 10, 100 26 C 100 52, 84 72, 50 98 Z'/></svg>");
}
.lt-shape-star .lt-shape-mask-wrap {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M50 2 L62 38 L98 38 L70 60 L80 96 L50 74 L20 96 L30 60 L2 38 L38 38 Z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M50 2 L62 38 L98 38 L70 60 L80 96 L50 74 L20 96 L30 60 L2 38 L38 38 Z'/></svg>");
}
.lt-shape-bolt .lt-shape-mask-wrap {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M60 2 L16 56 L42 56 L36 98 L84 42 L58 42 L72 2 Z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path d='M60 2 L16 56 L42 56 L36 98 L84 42 L58 42 L72 2 Z'/></svg>");
}

.lt-shape-heart .lt-shape-outline path { stroke: #fff5f9; }
.lt-shape-star  .lt-shape-outline path { stroke: #fff5fb; }
.lt-shape-bolt  .lt-shape-outline path { stroke: #fff0f9; }

/* Modus-spezifische Hintergründe für base/fill – alles im rosa/feminim-Look */
.lt-shape-heart .lt-shape-base {
    background:
        repeating-linear-gradient(135deg,
            rgba(255, 179, 212, 0.55) 0 22px,
            rgba(255, 214, 231, 0.55) 22px 44px),
        linear-gradient(180deg, #ffe3ee, #ffd0e3);
}
.lt-shape-heart .lt-shape-fill {
    background:
        repeating-linear-gradient(135deg,
            rgba(255, 105, 168, 0.97) 0 22px,
            rgba(255, 65, 145, 0.97) 22px 44px),
        linear-gradient(180deg, #ff8cbe, #e6247a);
}
.lt-shape-heart { filter: drop-shadow(0 10px 26px rgba(255, 65, 145, 0.32)); }

.lt-shape-star .lt-shape-base {
    background:
        repeating-linear-gradient(135deg,
            rgba(243, 232, 255, 0.6) 0 22px,
            rgba(255, 224, 240, 0.6) 22px 44px),
        linear-gradient(180deg, #fbe7f4, #efdcff);
}
.lt-shape-star .lt-shape-fill {
    background:
        repeating-linear-gradient(135deg,
            rgba(255, 140, 190, 0.95) 0 22px,
            rgba(192, 132, 252, 0.95) 22px 44px),
        linear-gradient(180deg, #ff8cbe, #c084fc);
}
.lt-shape-star { filter: drop-shadow(0 10px 26px rgba(255, 140, 200, 0.4)); }

.lt-shape-bolt .lt-shape-base {
    background:
        repeating-linear-gradient(135deg,
            rgba(255, 214, 231, 0.6) 0 22px,
            rgba(233, 213, 255, 0.6) 22px 44px),
        linear-gradient(180deg, #ffd6e7, #e9d5ff);
}
.lt-shape-bolt .lt-shape-fill {
    background:
        repeating-linear-gradient(135deg,
            rgba(255, 65, 145, 0.97) 0 22px,
            rgba(168, 85, 247, 0.97) 22px 44px),
        linear-gradient(180deg, #ff4191, #a855f7);
}
.lt-shape-bolt { filter: drop-shadow(0 10px 26px rgba(194, 16, 101, 0.35)); }

/* Content inside the shape */
.lt-shape-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 1rem;
    text-align: center;
    pointer-events: none;
    width: 70%;
}
.lt-shape-bolt .lt-shape-content {
    width: 55%;
    transform: translate(-2%, 14%);
}
.lt-shape-star .lt-shape-content {
    width: 60%;
    transform: translateY(18%);
}
.lt-shape-names {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.5rem;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: clamp(0.78rem, 1.6vw, 1rem);
    color: var(--white);
    -webkit-text-stroke: 0.6px rgba(91, 21, 56, 0.9);
    text-shadow:
        0 0 1px rgba(91, 21, 56, 0.95),
        0 0 3px rgba(91, 21, 56, 0.9),
        0 1px 2px rgba(91, 21, 56, 0.9),
        0 2px 8px rgba(91, 21, 56, 0.55),
        0 0 14px rgba(194, 16, 101, 0.35);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.15;
    word-break: break-word;
    max-width: 100%;
    paint-order: stroke fill;
}
.lt-shape-name { display: inline-block; }
.lt-shape-amp {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-family: var(--font-body);
    -webkit-text-stroke: 0.5px rgba(91, 21, 56, 0.85);
}
.lt-shape-percent {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 3.2rem);
    color: var(--white);
    -webkit-text-stroke: 0.8px rgba(91, 21, 56, 0.95);
    text-shadow:
        0 0 1px rgba(91, 21, 56, 1),
        0 0 4px rgba(91, 21, 56, 0.85),
        0 2px 2px rgba(91, 21, 56, 0.9),
        0 4px 10px rgba(91, 21, 56, 0.55),
        0 0 18px rgba(194, 16, 101, 0.4);
    line-height: 1;
    paint-order: stroke fill;
}
.lt-shape-bolt .lt-shape-percent {
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
}

/* Entrance animation when shape is shown (triggered by JS) */
.lt-shape-enter {
    animation: ltShapeIn 0.85s cubic-bezier(.2, 1.6, .35, 1) both;
}
@keyframes ltShapeIn {
    0% {
        transform: scale(0.4) rotate(-10deg);
        opacity: 0;
        filter: blur(10px);
    }
    60% {
        transform: scale(1.08) rotate(2deg);
        opacity: 1;
        filter: blur(0);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Ambient idle motion after entrance (added by JS as .lt-shape-idle) */
.lt-shape-idle.lt-shape-heart { animation: ltSoftBeat 2.4s ease-in-out infinite; }
.lt-shape-idle.lt-shape-star  { animation: ltSoftSpin 6s ease-in-out infinite; }
.lt-shape-idle.lt-shape-bolt  { animation: ltShake 3.4s ease-in-out infinite; }
@keyframes ltSoftBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
@keyframes ltSoftSpin {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}
@keyframes ltShake {
    0%, 100% { transform: translateX(0) rotate(0); }
    20% { transform: translateX(-3px) rotate(-1.5deg); }
    40% { transform: translateX(3px) rotate(1.5deg); }
    60% { transform: translateX(-2px) rotate(-1deg); }
    80% { transform: translateX(2px) rotate(1deg); }
}

.lt-verdict {
    position: relative;
    z-index: 11;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    margin-top: 0.4rem;
    min-height: 1.5em;
    animation: ltFadeUp 0.5s ease both;
}
.lt-period-note {
    position: relative;
    z-index: 11;
    font-size: 0.78rem;
    color: var(--text-light);
    animation: ltFadeUp 0.6s ease 0.1s both;
}
@keyframes ltFadeUp {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: none; }
}

.lt-stage-actions {
    position: relative;
    z-index: 11;
    margin-top: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
}

/* "Auf Discord teilen" – Button */
.lt-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    background: linear-gradient(135deg, #5865F2 0%, #404EED 100%);
    border: none;
    color: var(--white);
    box-shadow: 0 6px 18px rgba(88, 101, 242, 0.35);
    transition: transform 0.18s, box-shadow 0.2s, background 0.25s, opacity 0.2s;
}
.lt-share:hover:not([disabled]) {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(88, 101, 242, 0.45);
    background: linear-gradient(135deg, #6772f3 0%, #4f5cef 100%);
}
.lt-share[disabled] { cursor: default; opacity: 0.85; }
.lt-share-icon { flex: 0 0 auto; }

.lt-share.is-loading { background: linear-gradient(135deg, #7984f5, #5865F2); animation: ltSharePulse 1.2s ease-in-out infinite; }
.lt-share.is-shared {
    background: linear-gradient(135deg, #57c98a 0%, #2d9c5f 100%);
    box-shadow: 0 6px 18px rgba(45, 156, 95, 0.4);
    cursor: default;
}
.lt-share.is-error {
    background: linear-gradient(135deg, #e25571 0%, #c2354f 100%);
    box-shadow: 0 6px 18px rgba(194, 53, 79, 0.4);
}
@keyframes ltSharePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

@media (max-width: 720px) {
    .lt-row {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    .lt-plus { padding-bottom: 0; justify-self: center; margin-bottom: 0; margin-top: 10px; }
    .lt-plus-symbol { width: 42px; height: 42px; }
    .lt-plus-glyph { font-size: 1.2rem; }
    .lt-mode-btn {
        font-size: 0.78rem;
        padding: 0.5rem 0.4rem;
    }
    .lt-mode-icon { font-size: 0.95rem; }
    .lt-shape-wrap { max-width: 320px; }
    .lt-stage { min-height: 380px; }
}

@media (max-width: 480px) {
    .lovetester-page { padding: 1rem 0.9rem 2.5rem; }
    .lt-input { font-size: 16px; }
    .lt-shape-wrap { max-width: 280px; }
}


/* ============================================================
   LOGIN-GATES (öffentlich sichtbare Seiten, Login-Only-Features)
   ============================================================ */

.login-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 0.75rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
.login-gate-text {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary, #cbd5e1);
}
.login-gate-btn {
    white-space: nowrap;
}

/* Match-Meter: Overlay-Sperre über Input-Karte */
.lt-input-card.is-locked {
    position: relative;
    overflow: hidden;
}
.lt-input-card.is-locked > :not(.lt-lock-overlay) {
    filter: blur(2px) grayscale(0.3);
    pointer-events: none;
    user-select: none;
}
.lt-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(15,10,30,0.78) 0%, rgba(40,20,60,0.82) 100%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: inherit;
    animation: ltLockFadeIn 0.35s ease-out;
}
@keyframes ltLockFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lt-lock-inner {
    max-width: 360px;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}
.lt-lock-icon {
    font-size: 2.4rem;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(255, 65, 145, 0.45));
}
.lt-lock-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.lt-lock-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.82);
}
.lt-lock-btn { margin-top: 0.2rem; }
@media (max-width: 480px) {
    .lt-lock-title { font-size: 1.1rem; }
    .lt-lock-text  { font-size: 0.85rem; }
}
