/* ===========================================================
   my little playverse – Design v2.4 (Basis)
   Wird NACH style.css und playverse-proto.css geladen.
   playverse-proto.css enthält das Aussehen des Prototyps, alle Regeln
   dort sind mit ".pv" eingegrenzt (damit die alten Seiten nicht kippen).
   Diese Datei: Seitenhintergrund, Rahmen, Ergänzungen für PHP-Seiten.
   =========================================================== */

/* ---- Seitenhintergrund (Weltraum) -------------------------------------- */
body.pvbody {
    margin: 0;
    background-color: #03051a;
    background-image:
        radial-gradient(ellipse 50% 35% at 5% 100%, rgba(255,140,60,.14), transparent 70%),
        radial-gradient(ellipse 45% 40% at 100% 0%, rgba(90,150,255,.16), transparent 70%),
        radial-gradient(ellipse 60% 50% at 95% 95%, rgba(63,208,255,.08), transparent 70%),
        linear-gradient(rgba(120,160,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120,160,255,.035) 1px, transparent 1px),
        linear-gradient(180deg, #03051a, #070c2c);
    background-size: auto, auto, auto, 40px 40px, 40px 40px, auto;
    background-attachment: fixed;
    color: #eef3ff;
    min-height: 100vh;
}
body.pvchat { height: 100vh; height: 100dvh; overflow: hidden; }
#stars { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

.pvshell { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.pvchat .pvshell { height: 100vh; height: 100dvh; min-height: 0; }

/* ---- Basis für alle .pv-Bereiche ---------------------------------------- */
.pv {
    font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px; line-height: 1.5; color: var(--ink);
    padding-inline: 16px;
    display: flex; flex-direction: column;
}
.pv h1, .pv h2, .pv h3, .pv h4 { margin: 0; line-height: 1.15; }
.pv a { text-decoration: none; }
.pv a:hover { text-decoration: none; }
.pv a:visited { color: inherit; }
.pv :where(a):not([class]) { color: var(--sky); }
.pv p { margin: 0; }
.pv ul { padding: 0; }
.pv *::-webkit-scrollbar { width: 8px; height: 8px; }
.pv *::-webkit-scrollbar-track { background: transparent; }
.pv *::-webkit-scrollbar-thumb { background: rgba(170,200,255,.28); border-radius: 99px; border: 0; }
.pv * { scrollbar-width: thin; scrollbar-color: rgba(170,200,255,.3) transparent; }
.pv button:focus-visible, .pv input:focus-visible, .pv select:focus-visible,
.pv textarea:focus-visible, .pv a:focus-visible { outline: 2px solid var(--peach); outline-offset: 2px; }
.pv input, .pv select, .pv textarea { width: auto; }
.pv .dlg input, .pv .dlg textarea, .pv .dlg select { width: 100%; }

.pvhead { flex: none; }
.pvhead .wrap { flex: none; padding-bottom: 0; }
.pvmain { flex: 1; min-height: 0; }
.pv .wrap { position: relative; z-index: 1; }
.pvmain .wrap { flex: 1; min-height: 0; padding-top: 14px; padding-bottom: 14px; }
.pvmain main { flex: 1; min-height: 0; }

/* Kopfzeile: Marke */
.pvhead header.top { position: relative; z-index: 5; }
.pv .brand h1 { white-space: nowrap; }

/* ---- Ergänzungen Avatar-Menü / Sprache ------------------------------------ */
.pv .umenu { text-align: left; }
.pv .umenu a.on { background: rgba(255,157,77,.18); }
.pv .umsec {
    font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); padding: 10px 10px 3px; border-top: 1px solid rgba(190,215,255,.12); margin-top: 6px;
}
.pv .umenu .a11y-panel {
    position: static; display: none; width: auto; box-shadow: none; background: rgba(10,20,60,.35);
    border: 1px solid rgba(190,215,255,.18); border-radius: 12px; padding: 10px; margin: 2px 0 4px;
}
.pv .umenu .a11y-panel.open { display: block; }
.pv .umenu .a11y-panel h4 { color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 6px; }
.pv .umenu .a11y-option {
    background: rgba(220,232,255,.08); border: 1px solid var(--edge); color: var(--ink);
    border-radius: 9px; font-family: var(--body); font-size: .85rem; padding: 6px 9px;
}
.pv .umenu .a11y-option.active { border-color: var(--orange); background: rgba(255,157,77,.22); }
.pv .umenu .a11y-option i { font-style: normal; width: auto; margin-right: 4px; }
.pv .menuwrap { position: relative; }
.pv .langpop {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; min-width: 190px; padding: 6px;
    display: flex; flex-direction: column; gap: 2px; background: linear-gradient(160deg,#121b4a,#090f33);
}
.pv .langpop[hidden] { display: none !important; }
.pv .langpop a {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-weight: 700;
    color: inherit;
}
.pv .langpop a:hover { background: rgba(190,215,255,.13); }
.pv .langpop a.on { background: rgba(255,157,77,.2); }
.pv .langpop img { border-radius: 3px; object-fit: cover; }
.pv .umhead { text-decoration: none; color: inherit; }
.pv .umenu .umhead { width: 100%; }

/* Benachrichtigungen (Panel aus notifications.js) */
#notif-panel {
    position: fixed !important; top: 86px; right: 16px; left: auto; z-index: 45; width: min(360px, 92vw);
    max-height: 70vh; overflow: auto; background: linear-gradient(160deg,#121b4a,#090f33);
    border: 1px solid rgba(170,200,255,.25); border-radius: 16px; box-shadow: 0 14px 40px rgba(0,0,0,.5); color: #eef3ff;
}
#notif-panel .notif-item { color: #eef3ff; }

/* ---- Inhalt der alten Seiten unter der neuen Kopfzeile -------------------- */
.pvlegacy.app-main {
    position: relative; z-index: 1; width: 100%; max-width: 1400px; margin: 14px auto 0;
    padding: 0 16px 24px; flex: 1;
}
.pvlegacy .panel, .pvlegacy .chat-layout, .pvlegacy .game-card, .pvlegacy .hero-banner {
    background-color: rgba(14,21,64,.82);
    border-color: rgba(170,200,255,.2);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
}
.pvlegacy .panel { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 30px rgba(0,0,12,.45); }
.pvlegacy h1, .pvlegacy h2, .pvlegacy h3 { font-family: "Pixelify Sans", "Courier New", monospace; font-weight: 700; letter-spacing: .01em; }
.pvlegacy.app-footer {
    position: relative; z-index: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: 8px 16px 20px;
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
    background: none; border: 0;
}
.pvlegacy.app-footer .legal-links a { color: var(--peach, #7fdcff); text-decoration: underline; text-underline-offset: 3px; }
body.theme-light.pvbody { color: #eef3ff; }

/* ---- Chat-Seite: Ergänzungen --------------------------------------------- */
.pv .rlist li.libli { border-top-color: transparent !important; }
.pv .rico { width: 26px; height: 26px; image-rendering: pixelated; flex: none; }
.pv .rname .flag { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; vertical-align: -1px; margin-right: 6px; }
.pv .rlist .lock { margin-left: auto; font-size: .85rem; opacity: .9; }
.pv .rlist button .badge { margin-left: auto; }
.pv .rlist button .lock + .badge { margin-left: 6px; }
.pv .rlist .lock ~ .badge { margin-left: 6px; }
.pv .rlist .empty-note { padding: 10px; color: var(--muted); font-size: .85rem; }
.pv .rlist button.rtoggle .badge { margin-left: 6px; }
.pv .voice .crow .cn b { font-size: .98rem; }
.pv .voice .crow small { white-space: nowrap; }
.pv .gi .fa-solid { font-size: 2rem; color: var(--peach); }
.pv .gtile .gi { color: var(--peach); }
.pv .gtile.fav-on .gstar { color: #ffd24a; }
.pv .av .avl, .pv .meav .avl { font-weight: 800; }
.pv .av.fallback { font-family: var(--pixel); font-size: 1.6rem; color: #fff; }
.pv .nick .username-sub { color: var(--muted); font-weight: 600; font-size: .8em; }
.pv .nick .name-flair { font-weight: 800; }
.pv .typing { min-height: 1.1em; }
.pv .m .txt a { color: var(--sky); text-decoration: underline; }
.pv .vmsg audio { max-width: 100%; height: 34px; }
.pv .chatimg { cursor: zoom-in; }
.pv .deleted { color: var(--muted); font-style: italic; }
.pv .mact .ibtn-more { cursor: pointer; }
.pv .ucard-link { color: inherit; }
.pv .post .plink { display: inline-block; margin-top: 6px; font-weight: 800; font-size: .82rem; color: var(--peach); text-decoration: underline; }
.pv .rules-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pv .rules-list li { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(10,20,60,.3); border: 1px solid rgba(190,215,255,.16); }
.pv .rules-list i { width: 22px; text-align: center; color: var(--peach); }
.pv .cmdlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pv .cmdlist li { display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(10,20,60,.3); border: 1px solid rgba(190,215,255,.16); align-items: baseline; }
.pv .cmdlist code { color: var(--peach); font-family: ui-monospace, Menlo, Consolas, monospace; }
.pv .cmdlist small { color: var(--muted); }
.pv .helpbody { overflow: auto; min-height: 0; }
.pv .achlist .agh .gi i { font-size: 1.3rem; color: var(--peach); }
.pv .achgame .acht .tro i { color: inherit; }
.pv .upempty { color: var(--muted); text-align: center; padding: 24px; }
.pv .event-hidden { display: none; }
.pv .mic-note { color: var(--muted); font-size: .8rem; }
.pv .modact { font-style: italic; }
.pv .report-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pv .dlg select option { background: #0e1540; }

/* Ladehinweis */
.pv .loading { color: var(--muted); padding: 14px; text-align: center; }

/* Flaggen in der Raumliste */
.pv .rlist .flag { width: 18px; height: 13px; object-fit: cover; border-radius: 2px; flex: none; margin-right: 8px; }
.pv .rlist button { display: flex; align-items: center; }

/* Kopfzeile + Menüs liegen über dem Inhalt */
.pvshell > .pvhead { position: relative; z-index: 30; }
.pvshell > .pvmain { position: relative; z-index: 1; }
.pv .umenu { background: linear-gradient(160deg,#121b4a,#090f33); z-index: 50; }
.pvlayer { position: relative; z-index: 60; }

.pv .umenu { max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); overflow-y: auto; }
@media (max-width: 760px) {
    .pv .chead { flex-wrap: wrap; }
    .pv .chead .grow { flex: 1 1 55%; }
    .pv .chead .playbtn { order: 3; flex: 1 1 100%; justify-content: center; }
}
.pv .overlay > .dlg { max-width: 440px; }

/* Shop: Farbwähler, Mitglieder-Liste, Smileys im Chat */
.pv .colorlock input[type="color"] { width: 46px; height: 38px; padding: 2px; border-radius: 10px; flex: none; cursor: pointer; }
.pv .colorlock select { width: auto; }
.pv .memlist .mav .av { width: 38px; height: 38px; border-radius: 50%; font-size: 1.1rem; display: grid; place-items: center; overflow: hidden; }
.pv .memlist .mav .av img { width: 100%; height: 100%; object-fit: cover; }
.pv .m .txt .smiley, .pv .smiley { height: 44px; width: auto; vertical-align: middle; }
.pv .smpop .smimg { height: 56px; width: auto; max-width: 60px; object-fit: contain; }
.pv .smpop button.eg { font-size: 1.3rem; }
.mcount[hidden]{display:none!important}
.pv .repimgs{display:flex;gap:8px;flex-wrap:wrap}
.pv .repimg{position:relative;display:inline-block}
.pv .repimg img{width:84px;height:84px;object-fit:cover;border-radius:10px;border:1px solid var(--edge);display:block}
.pv .repimg button{position:absolute;right:-6px;top:-6px;width:22px;height:22px;border-radius:50%;padding:0;line-height:1;font-size:.7rem}
