/* live.css – Live-Zuschauen (/live): Spiel-Bedienung ausblenden, Zuschauer-Oberfläche */

/* Spiel-HUD weg – Zuschauer:innen steuern nur die Kamera */
body.spectator #topbar, body.spectator .topbar, body.spectator .w-left, body.spectator .w-actions, body.spectator .w-help,
body.spectator #w-prompt, body.spectator .w-emotes, body.spectator .w-say, body.spectator .w-roombar, body.spectator .w-buildbar,
body.spectator .w-joy, body.spectator .w-jump, body.spectator .w-drawer, body.spectator .w-pop, body.spectator .w-mile,
body.spectator .w-xp, body.spectator .w-homebar, body.spectator .w-tools, body.spectator .w-find, body.spectator .w-up,
body.spectator #w-online, body.spectator #w-travel, body.spectator #w-weather, body.spectator #toasts,
body.spectator .chat-fab, body.spectator .chat-pop, body.spectator .ev-bar [data-ev-go] { display: none !important; }
body.spectator .ev-bar { top: calc(env(safe-area-inset-top, 0px) + 64px); pointer-events: none; }
body.spectator .world #cv { cursor: grab; }

/* oben links: LIVE-Kennzeichen */
.lv-top { position: absolute; z-index: 6; left: max(12px, env(safe-area-inset-left)); top: 14px; display: flex; align-items: center; gap: 10px;
  background: var(--paper); box-shadow: var(--frame), var(--drop); padding: 6px 10px; margin: 4px; }
.lv-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font-family: var(--f-pixel); font-weight: 700; font-size: 15px; padding: 1px 8px; letter-spacing: .06em; }
.lv-badge i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: lvPulse 1.2s steps(2) infinite; }
@keyframes lvPulse { 50% { opacity: .25; } }
.lv-title { font-family: var(--f-pixel); font-size: 19px; }
.lv-online { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.lv-online.off { color: var(--red-d); }
.lv-icon { display: inline-grid; place-items: center; text-decoration: none; color: inherit; border: 0; background: var(--sky-2); box-shadow: var(--frame-thin); font: inherit; font-size: 16px; width: 30px; height: 28px; cursor: pointer; margin-left: 2px; }
.lv-icon:hover { background: var(--gold); }

/* unten: Orte */
.lv-places { position: absolute; z-index: 6; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 6px;
  background: var(--paper); box-shadow: var(--frame), var(--drop); padding: 6px; margin: 4px; max-width: calc(100% - 32px); overflow-x: auto; scrollbar-width: none; }
.lv-places::-webkit-scrollbar { display: none; }
.lv-places button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 700; color: var(--text);
  padding: 6px 10px; cursor: pointer; white-space: nowrap; }
.lv-places button span { font-size: 18px; line-height: 1; }
.lv-places button:hover { background: var(--sky-2); }
.lv-places button[aria-pressed="true"] { background: var(--gold); box-shadow: var(--frame-thin); }
.lv-places button:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.lv-sep { flex: none; width: 3px; align-self: stretch; background: var(--ink); opacity: .15; margin: 2px 4px; }

/* links: Baufortschritt */
.lv-stats { position: absolute; z-index: 6; left: max(12px, env(safe-area-inset-left)); top: 76px; width: 330px; max-height: calc(100% - 170px); display: flex; flex-direction: column;
  background: var(--paper); box-shadow: var(--frame), var(--drop); margin: 4px; }
.lv-stats-head { flex: none; display: flex; align-items: center; gap: 8px; border: 0; background: var(--paper-2); font: inherit; color: var(--text); padding: 8px 12px; cursor: pointer; text-align: left; }
.lv-stats-head b { font-family: var(--f-pixel); font-size: 18px; }
.lv-stats-head span { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.lv-stats-head i { font-style: normal; transition: transform .15s; }
.lv-stats.closed .lv-stats-head i { transform: rotate(-90deg); }
.lv-stats.closed .lv-stats-body { display: none; }
.lv-stats-body { overflow: auto; padding: 10px 12px 12px; scrollbar-width: thin; }
.lv-sum { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.35; }
.lv-sum .muted { color: var(--ink-soft); }
.lv-ring { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--paper) 72%, transparent 73%), conic-gradient(var(--green) calc(var(--p) * 1%), #e3dccd 0); }
.lv-ring b { font-size: 14px; }
.lv-miss { margin: 10px 0 4px; padding: 8px 10px; background: var(--paper-2); color: var(--text); box-shadow: var(--frame-thin); font-size: 13px; }
.lv-miss > div { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.lv-miss span, .lv-need span { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; }
.lv-sec { margin-top: 10px; }
.lv-sec summary { display: flex; align-items: baseline; gap: 8px; cursor: pointer; list-style: none; padding: 4px 0; border-bottom: 3px solid rgba(43, 45, 66, .12); }
.lv-sec summary::-webkit-details-marker { display: none; }
.lv-sec summary b { font-size: 15px; }
.lv-sec summary span { margin-left: auto; font-size: 12.5px; color: var(--ink-soft); }
.lv-sec ul { list-style: none; margin: 4px 0 0; padding: 0; }
.lv-row { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; column-gap: 6px; width: 100%; border: 0; background: transparent; font: inherit; color: var(--text);
  text-align: left; padding: 5px 4px; cursor: pointer; font-size: 14px; }
.lv-row:hover { background: var(--sky-2); }
.lv-row:focus-visible { outline: 3px solid var(--blue); }
.lv-ic { font-size: 16px; text-align: center; }
.lv-name { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-pct { font-size: 13px; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.lv-row.done .lv-name { font-weight: 400; color: var(--ink-soft); }
.lv-row.done .lv-pct { color: var(--green-d); }
.lv-bar { grid-column: 2 / 4; display: block; height: 6px; background: #e3dccd; margin-top: 3px; }
.lv-bar i { display: block; height: 100%; width: calc(var(--p) * 1%); background: var(--green); }
.lv-need { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

/* Folgen, Meldungen, Hilfe */
.lv-follow { position: absolute; z-index: 6; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px;
  background: var(--paper-2); box-shadow: var(--frame), var(--drop); padding: 6px 8px 6px 12px; font-size: 14px; font-weight: 700; }
.lv-news { position: absolute; z-index: 7; left: 50%; transform: translateX(-50%); top: 18px; background: var(--gold); box-shadow: var(--frame), var(--drop); padding: 8px 14px; font-size: 16px;
  animation: lvIn .3s steps(4) both; max-width: calc(100% - 32px); text-align: center; }
@keyframes lvIn { from { opacity: 0; transform: translate(-50%, -10px); } }
.lv-hint { position: absolute; z-index: 5; right: max(16px, env(safe-area-inset-right)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); margin: 0; font-size: 12.5px; color: #fff;
  text-shadow: 0 1px 0 #2b2d42, 0 0 4px #2b2d42; max-width: 230px; text-align: right; pointer-events: none; }

@media (max-width: 1100px) { .lv-hint { display: none; } }
@media (max-width: 760px) {
  .lv-top { top: 8px; gap: 8px; padding: 4px 8px; }
  .lv-title { display: none; }
  .lv-online { font-size: 12.5px; }
  .lv-stats { top: auto; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); left: 8px; right: 8px; width: auto; max-height: 55%; }
  .lv-places { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); left: 8px; right: 8px; transform: none; max-width: none; }
  .lv-places button { font-size: 13.5px; padding: 6px 8px; }
  .lv-follow { bottom: auto; top: 60px; }
  .lv-news { top: 60px; font-size: 14px; }
  body.spectator .ev-bar { top: calc(env(safe-area-inset-top, 0px) + 56px); }
}
@media (prefers-reduced-motion: reduce) { .lv-badge i, .lv-news { animation: none; } }
.lv-mu { display: flex; flex-direction: column; gap: 2px; margin: 10px 0 4px; padding: 8px 10px; background: #f4ecff; color: #2b2d42; box-shadow: var(--frame-thin); font-size: 13px; }
.lv-mu b { font-size: 15px; }
.lv-mu small { color: #5b6283; }
.lv-mu .lv-bar { margin-top: 2px; }
