/* LWShell — Drawer-UI (Game-Shell, §S5). Nutzt Tokens aus style.css. */

/* Etappe 51 (Issue #6): EIN Flex-Container für alle Top-Right-Buttons — löst die
   frühere Offset-Kollision (Uhr lag auf ❓). Neue Buttons einfach anhängen. */
.shell-topbar {
    position: fixed; z-index: 50;
    top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right));
    display: flex; gap: 10px;
}
.shell-topbar > button {
    width: 44px; height: 44px; border-radius: 12px; font-size: 20px; cursor: pointer;
    background: var(--panel); border: 1px solid var(--panel-border); color: var(--text);
    backdrop-filter: blur(14px); position: relative; flex: 0 0 auto;
}
.shell-topbar > button:hover { background: rgba(255, 255, 255, .12); }

.shell-help[hidden] { display: none; }
/* Erstnutzer-Anstupser: kurzer Puls */
.shell-help.pulse { animation: shell-help-pulse 1.1s ease-in-out infinite; border-color: var(--accent); }
@keyframes shell-help-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79, 140, 255, .0); }
    50% { box-shadow: 0 0 0 7px rgba(79, 140, 255, .28); }
}
@media (prefers-reduced-motion: reduce) { .shell-help.pulse { animation: none; border-color: var(--accent); } }

/* Etappe 49: „💬 Chat" — Position/Größe kommt jetzt vom .shell-topbar-Container */
.shell-chat-btn[hidden] { display: none; }
.shell-chat-btn .chat-badge {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
    border-radius: 999px; background: var(--red); color: #fff;
    font-size: 11px; font-weight: 800; line-height: 18px; padding: 0 4px;
}
.shell-chat-btn .chat-badge[hidden] { display: none; }

/* Chat-Overlay (über dem Drawer) */
.shell-chat { z-index: 65; }
.shell-chat .sc-panel { width: min(520px, 100%); max-height: 82vh; display: flex; flex-direction: column; gap: 12px; }
.shell-chat .sc-head { display: flex; align-items: center; gap: 10px; }
.shell-chat .sc-head h2 { margin-right: auto; font-size: 20px; }
.shell-chat .sc-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 30vh; }
.shell-chat .sc-msg { display: flex; flex-direction: column; gap: 2px; padding: 8px 11px; border-radius: 12px;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--panel-border); max-width: 88%; }
.shell-chat .sc-msg.mine { align-self: flex-end; background: rgba(88, 101, 242, .18); border-color: rgba(88, 101, 242, .4); }
.shell-chat .sc-who { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.shell-chat .sc-who .av { width: 20px; height: 20px; font-size: 12px; }
.shell-chat .sc-at { margin-left: 4px; font-weight: 400; opacity: .75; }
.shell-chat .sc-text { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.shell-chat .sc-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.shell-chat .sc-input { min-height: 44px; }
.shell-chat .sc-send { min-height: 44px; padding: 0 16px; }

/* Regel-Overlay (über dem Drawer, z-index 60) */
.shell-rules { z-index: 65; }
.shell-rules .sr-panel { width: min(520px, 100%); max-height: 82vh; display: flex; flex-direction: column; gap: 14px; }
.shell-rules .sr-head { display: flex; align-items: center; gap: 10px; }
.shell-rules .sr-head h2 { margin-right: auto; font-size: 20px; }
.shell-rules .sr-body { overflow-y: auto; line-height: 1.5; }
.shell-rules .sr-body p { margin: 0 0 10px; }
.shell-rules .sr-body p:last-child { margin-bottom: 0; }
.shell-rules .sr-ok { align-self: flex-end; }

.shell-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(5, 8, 14, .55); backdrop-filter: blur(3px); }
.shell-scrim[hidden] { display: none; }

.shell-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
    width: min(340px, 88vw);
    padding: max(18px, env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) 18px;
    background: #10141d; border-left: 1px solid var(--panel-border);
    display: flex; flex-direction: column; gap: 14px; overflow-y: auto;
    box-shadow: -20px 0 60px rgba(0, 0, 0, .5);
}
.shell-drawer[hidden] { display: none; }

.shell-head { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.shell-head span { margin-right: auto; }
.shell-close { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; }
.shell-close:hover { color: var(--text); }
.shell-sound { background: none; border: 0; font-size: 18px; cursor: pointer; padding: 2px; }

.shell-code { display: flex; flex-direction: column; gap: 8px; }
/* Etappe 33 (#7): Der Code-Chip IST der Kopierknopf (S12: Klickbares sieht
   klickbar aus — und tut es dann auch) */
.shell-codeval { font: inherit; font-size: 26px; font-weight: 800; letter-spacing: .22em; text-align: center;
    background: rgba(255, 255, 255, .05); border: 1px dashed var(--panel-border); border-radius: 10px;
    padding: 8px; color: var(--text); cursor: pointer; }
.shell-codeval:hover { background: rgba(255, 255, 255, .1); }
.shell-copy { display: grid; gap: 8px; }
.shell-copy .btn { padding: 9px; font-size: 13.5px; }

.shell-crew {
    font-size: 13.5px; color: var(--text);
    background: rgba(88, 101, 242, .18); border: 1px solid rgba(88, 101, 242, .4);
    border-radius: 8px; padding: 7px 11px;
}

.shell-players-h { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.shell-players { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.shell-players li { display: flex; align-items: center; gap: 8px; padding: 6px 10px;
    background: rgba(255, 255, 255, .05); border-radius: 9px; }
/* Issue #7: nur der Name gibt nach (schrumpft/ellipsiert) — Badges & Mod-Buttons
   behalten ihre Form, damit die Zeile nicht umbricht/höher wird. */
.shell-players .pnm { font-size: 14px; min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell-players .pnm.turn { color: var(--gold); font-weight: 700; }
.shell-players .ptag { font-size: 11px; border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 0 7px;
    flex: 0 0 auto; white-space: nowrap; }
.shell-players .ptag.host { border-color: var(--accent); color: var(--accent); }
.shell-players .ptag.fed { border-color: var(--muted); color: var(--muted);   /* S18 v2: föderiert */
    max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.shell-players .pmod, .lobby-roster .pmod { margin-left: auto; display: flex; gap: 5px; flex: 0 0 auto; }
.pmodbtn { font: inherit; font-size: 12px; cursor: pointer; color: var(--muted);
    background: rgba(255, 255, 255, .06); border: 1px solid var(--panel-border); border-radius: 7px; padding: 3px 8px; }
.pmodbtn:hover:not(:disabled) { color: var(--red); border-color: var(--red); }
.pmodbtn:disabled { opacity: .35; cursor: default; }

/* ── S3 (Etappe 27): Account-Box (Discord-Login, optional) ── */
.shell-account {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 10px 12px; background: rgba(255, 255, 255, .04);
    border: 1px solid var(--panel-border); border-radius: 10px; font-size: 14px;
}
.shell-account[hidden] { display: none; }
.sa-img { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.sa-fallback { display: inline-grid; place-items: center; background: rgba(255, 255, 255, .08); font-size: 16px; }
.sa-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.sa-logout { margin-left: auto; padding: 8px 14px; font-size: 13px; min-height: 44px; }   /* 29b: Touch-Ziel */
.sa-login {
    flex: 1 1 100%; text-align: center; text-decoration: none; min-height: 44px;
    display: grid; place-items: center;
    background: rgba(88, 101, 242, .22); border-color: rgba(88, 101, 242, .5);
}
.sa-hint { flex: 1 1 100%; font-size: 12px; color: var(--muted); text-align: center; }
/* Etappe 46D: Link zur persönlichen Statistik (nur eingeloggt) */
.sa-stats { flex: 1 1 100%; text-align: center; text-decoration: none; min-height: 44px;
    display: grid; place-items: center; font-size: 13.5px; }

.shell-switch { margin-top: auto; min-height: 44px; }
.shell-switch[hidden] { display: none; }
.shell-switch:not([hidden]) + .shell-leave { margin-top: 10px; }
.shell-leave { margin-top: auto; border-color: rgba(229, 72, 77, .5); color: #ff8a8d; }
.shell-leave:hover { background: rgba(229, 72, 77, .15); }

/* Vote-Kick-Banner (fix, spielunabhängig) — Etappe 35: unterhalb der
   Raum-Leiste, damit er Code/Brand nicht verdeckt */
.shell-vote {
    position: fixed; top: calc(max(12px, env(safe-area-inset-top)) + 56px); left: 50%; transform: translateX(-50%); z-index: 45;
    display: flex; align-items: center; gap: 14px; max-width: min(560px, 92vw);
    padding: 10px 16px; border-radius: 12px; font-size: 14.5px;
    background: rgba(30, 22, 10, .95); border: 1px solid rgba(242, 193, 78, .5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.shell-vote[hidden] { display: none; }
.sv-btns { display: flex; gap: 8px; }
.sv-btns .btn { padding: 6px 14px; font-size: 13.5px; }
.sv-yes { border-color: rgba(229, 72, 77, .5); }
.sv-clock { color: var(--gold); font-weight: 700; }

/* ── S12: Avatare (Index vom Kernel, Pools in shell.js) ── */
.av {
    width: 30px; height: 30px; flex: none; border-radius: 50%;
    aspect-ratio: 1 / 1;   /* Härtung gegen Streck-Layouts (oval, Etappe 35) */
    display: inline-grid; place-items: center; font-size: 16px;
    background: color-mix(in srgb, var(--avc, #4f8cff) 30%, transparent);
    box-shadow: inset 0 0 0 2px var(--avc, #4f8cff);
}
/* Etappe 33 (#6): Bild schrumpft IN den Ring, statt ihn zu verdecken —
   die Kernel-Farbe bleibt als Identitäts-Ring um Discord-Avatare sichtbar */
.av img { width: calc(100% - 6px); height: calc(100% - 6px); margin: 3px;
    border-radius: 50%; object-fit: cover; display: block; }
.av.off { filter: grayscale(.9) brightness(.6); }
.av.empty { box-shadow: inset 0 0 0 2px var(--panel-border); color: var(--muted); font-size: 14px; background: none; border-style: dashed; }
.av.bot { box-shadow: inset 0 0 0 2px var(--muted); background: rgba(151, 160, 179, .18); }
.av.big { width: 44px; height: 44px; font-size: 24px; }
.av.mini { width: 22px; height: 22px; font-size: 12px; }

/* ── S12: Konfetti-Overlay ── */
.shell-confetti { position: fixed; inset: 0; z-index: 70; pointer-events: none; }

/* ── Etappe 13: großer Countdown — Etappe 51 (Issue #6): oben MITTIG, damit er
   nie mehr mit der Button-Reihe (❓/💬/☰) oben rechts kollidiert ── */
.shell-clock {
    position: fixed; top: max(14px, env(safe-area-inset-top));
    left: 50%; transform: translateX(-50%); z-index: 44;
    padding: 8px 16px; border-radius: 999px; font-size: 19px; font-weight: 800;
    font-variant-numeric: tabular-nums; color: var(--text);
    background: rgba(20, 26, 40, .95); border: 1px solid rgba(242, 193, 78, .35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .45); pointer-events: none;
}
.shell-clock.urgent { color: var(--red); border-color: rgba(229, 72, 77, .6); animation: clock-pulse 1s infinite; }
/* translateX(-50%) beibehalten (Zentrierung), nur zusätzlich pulsen */
@keyframes clock-pulse { 0%, 100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.08); } }
.shell-clock[hidden] { display: none; }

/* ── Etappe 35: Zuschauer-Modus (Nach-Joiner ohne Sitz) ── */
.shell-spec-chip {
    position: fixed; bottom: max(14px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
    z-index: 44; padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 700;
    background: rgba(20, 26, 40, .95); border: 1px solid var(--panel-border); color: var(--muted);
    pointer-events: none;
}
.shell-spec-chip[hidden] { display: none; }
.shell-specs { font-size: 13px; color: var(--muted); padding: 2px 2px 0; }
.shell-specs[hidden] { display: none; }

/* ── Etappe 13: Revanche-Box (Endscreens) ── */
.rm-row { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.rm-count { font-size: 13.5px; color: var(--muted); margin-left: 4px; }

/* ── Etappe 37: Abend-Stand (Session-Scoreboard über Spiele hinweg) ── */
.rm-standings {
    display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
    margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; font-size: 14px;
    background: rgba(242, 193, 78, .08); border: 1px solid rgba(242, 193, 78, .3);
}
.rm-st-h { font-weight: 800; color: var(--gold); }
.rm-st { display: inline-flex; align-items: center; gap: 6px; }
.rm-st b { color: var(--gold); }

/* Etappe 37: Solo-Schnellstart */
.solo-start { margin-left: 8px; }

/* ── Etappe 33 (#11): Verlassen sichtbar (Lobby + Endscreen) ── */
.ls-leave, .rm-leave {
    margin-top: 12px; min-height: 44px; font-size: 14px;
    color: var(--muted); border-color: var(--panel-border); background: none;
}
.ls-leave:hover, .rm-leave:hover { color: #ff8a8d; border-color: rgba(229, 72, 77, .5); }

/* ── S13 (Etappe 36): Spiel wechseln — Button + Picker-Overlay ── */
.ls-switch, .rm-switch { margin-top: 12px; min-height: 44px; font-size: 14.5px; width: 100%; }
.gp-panel { width: min(420px, 94vw); max-height: min(80dvh, 640px); display: flex; flex-direction: column; }
.gp-hint { margin-top: 2px; }
.gp-list { display: grid; gap: 8px; margin: 14px 0; overflow-y: auto; }
.gp-item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    min-height: 48px; text-align: left; font-size: 15px;
}
.gp-item .gp-meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.gp-item.cur { border-color: var(--accent); opacity: .7; }
.gp-item:disabled { opacity: .4; }
.gp-item.wished { border-color: var(--gold); }
.gp-wish { color: var(--gold); font-size: 13px; margin-left: 4px; }

/* Etappe 40: Wunsch-Zeile (Lobby + Endscreen) */
.ls-wishes {
    margin: 12px 0 0; padding: 9px 13px; border-radius: 10px; font-size: 13.5px;
    background: rgba(242, 193, 78, .08); border: 1px solid rgba(242, 193, 78, .3);
    color: var(--text);
}
.ls-wishes b { color: var(--gold); }
.ls-wishes .lw-names { color: var(--muted); }
.gp-close { min-height: 44px; }
#shell-gamepick[hidden] { display: none; }

/* ── Etappe 33 (#1): Runden-Banner — der Rundenausgang wird erzählt ── */
.shell-round {
    position: fixed; top: 38%; left: 50%; transform: translate(-50%, -50%); z-index: 65;
    display: flex; align-items: center; gap: 12px;
    /* fixed + left:50% lässt shrink-to-fit sonst nur die halbe Viewport-Breite */
    width: max-content; max-width: min(560px, 92vw);
    padding: 16px 26px; border-radius: 16px; font-size: 19px; font-weight: 700;
    text-align: center; pointer-events: none;
    background: rgba(20, 26, 40, .97); border: 1px solid rgba(242, 193, 78, .55);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .6);
}
.shell-round[hidden] { display: none; }
.shell-round small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); margin-top: 3px; }
.shell-round.pop { animation: shell-round-pop .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes shell-round-pop {
    from { opacity: 0; transform: translate(-50%, -50%) scale(.7); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ── Etappe 13: Avatar-Picker (§4.9) ── */
.ap-label { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 6px; }
.ap-grid { display: flex; flex-wrap: wrap; gap: 7px; }
/* padding:0 + aspect-ratio: UA-Button-Padding machte die Kreise sonst OVAL (Etappe 35) */
.ap-btn { border: 0; padding: 0; cursor: pointer; font: inherit; opacity: .55; transition: transform .08s, opacity .15s; }
.ap-btn:hover { opacity: 1; transform: scale(1.12); }
.ap-btn.sel { opacity: 1; outline: 2px solid var(--accent); outline-offset: 2px; transform: scale(1.12); }

/* ── S12: gemeinsame Lobby ── */
.lobby-roster li.free { opacity: .55; }
.lobby-roster .tag.bot { color: var(--muted); }
.add-bot { margin-top: 4px; font-size: 14px; padding: 9px 14px; }
.lobby-roster .waiting { color: var(--muted); font-style: italic; font-size: 14px; }
.lobby-share {
    display: flex; align-items: center; gap: 14px; margin-top: 14px;
    padding: 12px; background: rgba(255, 255, 255, .04); border-radius: 12px;
}
.lobby-share-btns { display: grid; gap: 8px; flex: 1; min-width: 0; }
/* E54B: `min-width:0` + Umbruch — sonst sprengt ein langer Code (CODE@server)
   das Grid und die Seite scrollt quer (Mobile-Gate bei 360px). */
.lobby-share-btns .btn { min-height: 44px; min-width: 0; overflow-wrap: anywhere; }
.lobby-qr { width: 96px; height: 96px; flex: none; border-radius: 8px; overflow: hidden; background: #fff; padding: 2px; }
.lobby-qr svg { display: block; width: 100%; height: 100%; }
.lobby-box { margin-top: 12px; text-align: left; }
.lobby-box summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.lobby-settings, .lobby-rules { margin-top: 10px; font-size: 14px; color: var(--text); display: grid; gap: 5px; }

/* ── E52: Einstellungen — gruppiert, erklärt, live gespeichert ── */
.lobby-settings { gap: 14px; }
.ls-group { display: grid; gap: 8px; }
.ls-group-h { font-size: 11.5px; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: .07em; }
.ls-lbl { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ls-hint { font-size: 12px; color: var(--muted); line-height: 1.35; }
.ls-field.ls-check { align-items: flex-start; gap: 10px; padding: 2px 0; }
.ls-field.ls-check input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.ls-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    border-top: 1px solid var(--panel-border); padding-top: 10px; }
.ls-saved { font-size: 12.5px; color: var(--muted); }
.ls-saved.on { color: var(--green); }
.ls-reset { margin-left: auto; font-size: 12.5px; padding: 5px 10px; }
/* Nicht-Host: kompakte Lesefassung statt ausgegrauter Felder */
.ls-read { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.ls-read li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.ls-read li span { color: var(--muted); }
.lobby-rules p { margin: 0 0 6px; }
.lobby-settings .kv { display: flex; justify-content: space-between; gap: 12px; }
.lobby-settings .kv span:last-child { color: var(--muted); }
.ls-field { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.ls-field.kv { justify-content: space-between; }
.ls-field select, .ls-field input[type="number"] { width: 130px; padding: 6px 10px; }
.ls-field input[type="checkbox"] { width: auto; accent-color: var(--accent); }
.ls-field :disabled { opacity: .7; }
.ls-apply { margin-top: 10px; font-size: 14px; padding: 8px 16px; }

/* ── S12: A11y-Basics ── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Etappe 21: Geld-/Punkte-Floater (LWShell.floatDelta) ── */
.shell-float {
    position: fixed; z-index: 60; transform: translateX(-50%);
    font-weight: 800; font-size: 17px; pointer-events: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
    animation: shell-float-up 1.35s ease-out forwards;
}
.shell-float.plus { color: var(--green); }
.shell-float.minus { color: var(--red); }
@keyframes shell-float-up {
    from { opacity: 0; transform: translate(-50%, 6px) scale(.8); }
    15% { opacity: 1; transform: translate(-50%, 0) scale(1.15); }
    to { opacity: 0; transform: translate(-50%, -34px) scale(1); }
}

/* S18 (E44) + E54B: der föderierte Code ist ein Teilen-Knopf wie die anderen —
   er stand vorher als Kleingedrucktes darunter und wurde nicht gefunden. */
.shell-fedval b, .ls-fed b { letter-spacing: .08em; }
.shell-fed-hint { margin: 2px 0 0; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.shell-fedval[hidden], .shell-fed-hint[hidden] { display: none; }

/* ── E54D: Einstellungen im Drawer (mitten im Spiel) ── */
.shell-set { margin: 4px 0 2px; }
.shell-set > summary { cursor: pointer; color: var(--muted); font-size: 13.5px; padding: 6px 0; }
.shell-set[open] > summary { color: var(--text); font-weight: 700; }
.shell-set-body { display: grid; gap: 14px; font-size: 13.5px; margin-top: 6px; }
.shell-set[hidden] { display: none; }
.ls-pending { margin: 0 0 2px; font-size: 12.5px; color: var(--gold); }

/* ── Issue #8: „⛔ Gebannt" im Drawer (nur der Host sieht die Liste) ── */
.shell-bans { margin-top: 10px; display: grid; gap: 6px; }
.shell-bans[hidden] { display: none; }
.shell-bans-h { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.shell-ban { display: flex; align-items: center; gap: 8px; padding: 7px 10px;
    background: rgba(229, 72, 77, .08); border: 1px solid rgba(229, 72, 77, .25); border-radius: 9px; }
.shell-ban .sb-name { font-size: 14px; font-weight: 600; }
.shell-ban .sb-when { font-size: 11.5px; color: var(--muted); }
.shell-ban .sb-undo { margin-left: auto; font-size: 12px; padding: 4px 9px; white-space: nowrap; }

/* ── Issue #5: Platzierung im Endscreen (wenn weitergespielt wurde) ── */
.rm-rank { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px;
    background: rgba(242, 193, 78, .08); border: 1px solid rgba(242, 193, 78, .3); }
.rm-rank-h { font-size: 11.5px; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: .07em; }
.rm-place { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.rm-place.me { font-weight: 800; color: var(--gold); }
.rm-medal { width: 26px; text-align: center; font-size: 15px; }

/* ── E56B: Mitspieler-Aktionen sichtbar machen ──
   Bewusst klein gehalten: keine fliegenden Karten quer über den Tisch (kostet
   Rechenzeit auf schwachen Handys und lenkt vom eigenen Blatt ab). Es geht nur
   darum, eine Änderung NICHT zu verpassen. */
@keyframes lwFlashPop {
    0% { transform: scale(1); }
    35% { transform: scale(1.16); filter: brightness(1.25); }
    100% { transform: scale(1); }
}
@keyframes lwFlashUp {
    0% { transform: translateY(0); }
    35% { transform: translateY(-6px); filter: brightness(1.3); }
    100% { transform: translateY(0); }
}
.lw-flash-pop { animation: lwFlashPop .55s cubic-bezier(.2, 1.4, .4, 1); }
.lw-flash-up { animation: lwFlashUp .55s ease-out; }
@media (prefers-reduced-motion: reduce) {
    .lw-flash-pop, .lw-flash-up { animation: none; }
}
