
.lv-ui { position: absolute; inset: 0; pointer-events: none; } 
.lv-tags { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.lv-tag { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; visibility: hidden; }
.lv-nm { pointer-events: auto; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(201, 162, 74, .7); background: rgba(16, 22, 36, .55); color: #fff6dc; font: 600 12px/1.2 var(--hn-sans); white-space: nowrap; }
.lv-nm:focus-visible { outline: 2px solid #f0d890; outline-offset: 2px; }
.lv-bub { max-width: 200px; padding: 6px 10px; border-radius: 14px; background: rgba(255, 255, 255, .95); color: #2b2008; font: 600 13px/1.35 var(--hn-sans);
  word-break: keep-all; overflow-wrap: anywhere; text-align: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); position: relative; }
.lv-bub::after { content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: rgba(255, 255, 255, .95); }
.lv-bub.hidden { display: none; }
.lv-spk { width: 8px; height: 8px; border-radius: 50%; background: #8fd4a0; box-shadow: 0 0 0 3px rgba(143, 212, 160, .35); animation: lvPulse 1s ease-in-out infinite; }
.lv-spk.hidden, .lv-mg.hidden, .lv-hp.hidden { display: none; }
@keyframes lvPulse { 50% { box-shadow: 0 0 0 6px rgba(143, 212, 160, .1); } }

.lv-mg { position: relative; display: inline-block; width: 18px; height: 12px; }
.lv-mg::before, .lv-mg::after { content: ''; position: absolute; bottom: 1px; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 10px solid #b3261e; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .8)); }
.lv-mg::before { left: 1px; transform: rotate(-14deg); }
.lv-mg::after { right: 1px; transform: rotate(14deg); }
.lv-tag:has(.lv-mg:not(.hidden)) .lv-nm { background: rgba(10, 6, 10, .82); box-shadow: 0 0 10px 2px rgba(20, 0, 10, .55); }
.lv-hp { width: 44px; height: 4px; border-radius: 2px; background: rgba(0, 0, 0, .35); overflow: hidden; }
.lv-hp i { display: block; height: 100%; background: #6cc47e; }
.lv-hp.mid i { background: #e6c14a; }
.lv-hp.low i { background: #d9534f; }

.r3-me.lv-talk span { box-shadow: 0 0 0 3px rgba(143, 212, 160, .55); }
.r3-me.lv-mague span { background: rgba(10, 6, 10, .82); }
.r3-me .lv-mybub { display: block; margin-bottom: 4px; max-width: 200px; padding: 6px 10px; border-radius: 14px; background: rgba(255, 246, 220, .96); color: #2b2008; font: 600 13px/1.35 var(--hn-sans); font-style: normal; word-break: keep-all; text-align: center; }

.lv-stars { position: absolute; width: 0; height: 0; pointer-events: none; }
.lv-stars i { position: absolute; left: -8px; top: -8px; color: #ffd84a; font: 700 18px/1 sans-serif; text-shadow: 0 0 4px rgba(120, 80, 0, .7); animation: lvStar .8s ease-out forwards; }
.lv-stars i:nth-child(1) { --dx: -34px; --dy: -26px; } .lv-stars i:nth-child(2) { --dx: 30px; --dy: -30px; } .lv-stars i:nth-child(3) { --dx: -12px; --dy: -44px; }
.lv-stars i:nth-child(4) { --dx: 38px; --dy: 4px; } .lv-stars i:nth-child(5) { --dx: -38px; --dy: 6px; }
.lv-stars b { position: absolute; left: -16px; top: -30px; color: #fff; font: 800 15px/1 var(--hn-sans); text-shadow: 0 1px 3px #000; animation: lvPop .8s ease-out forwards; }
@keyframes lvStar { from { transform: translate(0, 0) scale(.4); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(70deg); opacity: 0; } }
@keyframes lvPop { from { transform: scale(.5); opacity: 1; } to { transform: translateY(-14px) scale(1.15); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lv-stars i, .lv-stars b, .lv-spk { animation-duration: .01s; } }

.lv-who b { margin-left: 2px; color: #f3dc9c; }
.lv-who.hidden { display: none; }

.lv-col { position: absolute; z-index: 4; right: calc(12px + env(safe-area-inset-right)); top: calc(max(8px, env(safe-area-inset-top)) + 96px); display: flex; flex-direction: column; gap: 8px; pointer-events: auto; }
.lv-col.hidden { display: none; }
.lv-btn { position: relative; width: 56px; height: 56px; padding: 0; font-size: 12.5px; white-space: nowrap; letter-spacing: -.02em; }
.lv-btn.hidden { display: none; }
.lv-btn.on { background: linear-gradient(180deg, #8fd4a0, #4f9c66); color: #10301b; border-color: #c9f0d3; }
.lv-dot { position: absolute; right: 4px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #e2574c; }
.lv-dot.hidden { display: none; }
.r3.vid-on:not(.watching) .lv-col { top: calc(max(8px, env(safe-area-inset-top)) + 140px); }
.r3.watching .lv-col, .r3.watching .lv-tags, .r3.watching .lv-who { display: none; }

.lv-chat, .lv-people, .lv-card {
  position: absolute; left: 50%; top: calc(max(8px, env(safe-area-inset-top)) + 50px); transform: translateX(-50%); width: min(460px, calc(100% - 24px)); max-height: calc(100% - 180px);
  display: flex; flex-direction: column; pointer-events: auto; z-index: 6; border-radius: 16px; border: 1px solid var(--hn-gold); color: var(--hn-ink);
  background: linear-gradient(180deg, rgba(26, 32, 56, .94), rgba(12, 16, 30, .95)); box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
}
.lv-chat.hidden, .lv-people.hidden, .lv-card.hidden, .lv-ask.hidden { display: none; }
.lv-chead { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 6px 14px; border-bottom: 1px solid rgba(201, 162, 74, .35); }
.lv-chead b { font: 700 14px/1.2 var(--hn-sans); color: #f6e7b8; }
.lv-x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--hn-ink); font: 700 18px/1 sans-serif; cursor: pointer; }
.lv-log { list-style: none; margin: 0; padding: 8px 12px; overflow-y: auto; min-height: 60px; max-height: 150px; display: grid; gap: 4px; font: 500 13px/1.4 var(--hn-sans); word-break: keep-all; overflow-wrap: anywhere; }
.lv-log b { color: #f0d890; font-weight: 700; }
.lv-log li.me b { color: #9fdcb8; }
.lv-empty { color: var(--hn-ink-soft); font-size: 12.5px; }
.lv-emos { flex: none; display: flex; flex-wrap: wrap; gap: 5px; padding: 4px 10px 6px; }
.lv-emos button { min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(201, 162, 74, .5); background: rgba(255, 255, 255, .06); color: var(--hn-ink); font: 600 12.5px/1 var(--hn-sans); cursor: pointer; }
.lv-form { flex: none; display: flex; gap: 6px; padding: 6px 10px 10px; }
.lv-inp { flex: 1; min-width: 0; min-height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(201, 162, 74, .6); background: rgba(255, 255, 255, .95); color: #222; font: 500 16px/1 var(--hn-sans); }
.lv-opt { display: flex; align-items: center; gap: 8px; padding: 8px 14px 0; font: 600 13px/1.3 var(--hn-sans); }
.lv-opt.hidden { display: none; }
.lv-opt small { color: var(--hn-ink-soft); font-weight: 500; }
.lv-opt input { width: 18px; height: 18px; accent-color: #c9a24a; }
.lv-plist { list-style: none; margin: 0; padding: 8px 10px; overflow-y: auto; display: grid; gap: 6px; }
.lv-plist li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lv-pn { flex: 1 1 100px; min-width: 0; font: 600 13.5px/1.3 var(--hn-sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-pn small { color: #9fdcb8; font-weight: 600; }
.lv-plist .hn-btn, .lv-cbtns .hn-btn { min-height: 34px; padding: 0 10px; font-size: 12.5px; }
.lv-foot { padding: 6px 14px 12px; color: var(--hn-ink-soft); font: 500 11.5px/1.45 var(--hn-sans); word-break: keep-all; }
.lv-cbtns { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }

.lv-ask { position: absolute; left: 50%; bottom: calc(120px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 6; pointer-events: auto; width: min(320px, calc(100% - 24px));
  padding: 12px; border-radius: 16px; border: 1px solid var(--hn-gold); background: rgba(16, 22, 36, .92); color: var(--hn-ink); text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.lv-ask p { margin: 0 0 10px; font: 600 14px/1.4 var(--hn-sans); word-break: keep-all; }
.lv-ask div { display: flex; gap: 8px; justify-content: center; }
.lv-ask .hn-btn { min-height: 44px; padding: 0 18px; }
.lv-audio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.lv-online { color: #2e7d4f; font-weight: 700; font-size: 12px; }
.lv-marks { position: absolute; inset: 0; pointer-events: none; }
.lv-mapn { position: absolute; transform: translate(-50%, -160%); min-width: calc(var(--nb, 15px) * 1.2); height: calc(var(--nb, 15px) * 1.2); padding: 0 4px; border-radius: 999px;
  background: #4f9c66; color: #fff; font: 700 calc(var(--nb, 15px) * .8)/calc(var(--nb, 15px) * 1.2) var(--hn-sans, sans-serif); text-align: center; font-style: normal; box-shadow: 0 0 0 2px #fff; }

@media (orientation: landscape) and (max-height: 520px) {
  .lv-col { flex-direction: row; top: calc(max(6px, env(safe-area-inset-top)) + 46px); }
  .lv-btn { width: 48px; height: 48px; font-size: 11.5px; }
  .r3.vid-on:not(.watching) .lv-col { top: calc(max(6px, env(safe-area-inset-top)) + 96px); }
  .lv-chat, .lv-people, .lv-card { top: max(6px, env(safe-area-inset-top)); max-height: calc(100% - 12px); }
  .lv-log { max-height: 90px; }
  .lv-ask { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .lv-btn { width: 50px; height: 50px; font-size: 11.5px; }
}
