
.ab { position: absolute; z-index: 3; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); pointer-events: auto; }
.ab-row { display: flex; align-items: center; gap: 6px; }
.ab-s {
  position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 8px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--hn-gold, #c9a24a); background: var(--hn-glass, rgba(16, 22, 36, .72)); color: var(--hn-ink, #f4ecd6);
  font: 600 13px/1 var(--hn-sans, sans-serif); white-space: nowrap; word-break: keep-all; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
.ab-s kbd { display: inline-block; min-width: 18px; padding: 2px 4px; border-radius: 5px; background: rgba(240, 216, 144, .2); color: #f3dc9c; font: 700 11px/1.1 var(--hn-sans, sans-serif); text-align: center; }
.ab-s:active { transform: scale(.96); }
.ab-s:focus-visible, .ab-chg:focus-visible { outline: 2px solid #f0d890; outline-offset: 2px; }
.ab-s.on { background: linear-gradient(180deg, #8fd4a0, #4f9c66); color: #10301b; border-color: #c9f0d3; }
.ab-s.ab-dim { opacity: .45; }
.ab-s.ab-soon { opacity: .6; }
.ab-tag { display: inline-block; margin-left: 2px; padding: 1px 4px; border-radius: 4px; background: rgba(159, 220, 184, .22); color: #bfeccf; font: 700 9.5px/1.2 var(--hn-sans, sans-serif); font-style: normal; }
.ab-s .ab-tag { position: absolute; right: -4px; top: -7px; margin: 0; background: #2f6e47; color: #e9fff0; }
.ab-chg { min-height: 36px; padding: 0 12px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(201, 162, 74, .7); background: rgba(16, 22, 36, .6); color: var(--hn-ink, #f4ecd6); font: 600 12px/1 var(--hn-sans, sans-serif); white-space: nowrap; }
.ab-on > .r3-moves, .ab-on > .r3-movebtn { display: none !important; }

@media (pointer: fine) and (min-width: 641px) and (min-height: 521px) {
  html:not(.hgt-touch) .r3.ab-host .r3-near { bottom: calc(72px + env(safe-area-inset-bottom)); }
  html:not(.hgt-touch) .r3.ab-host .r3-hint { bottom: calc(126px + env(safe-area-inset-bottom)); }
}

@media (max-width: 600px) and (min-height: 521px) {
  .r3.ab-host .r3-hint, .r3.ab-host .r3-near { bottom: calc(188px + env(safe-area-inset-bottom)); }
  .r3.ab-host.near-on .r3-hint { bottom: calc(246px + env(safe-area-inset-bottom)); }
}
.r3.watching .ab, .r3.watching .ab-pick { display: none; }


html.hgt-touch .ab { left: auto; transform: none; right: calc(16px + 74px + 10px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); }
html.hgt-touch .ab-row { display: grid; grid-template-columns: repeat(2, 52px); gap: 6px; justify-items: center; }
html.hgt-touch .ab-s { width: 52px; height: 52px; min-height: 0; padding: 0; border-radius: 50%; justify-content: center; font-size: 11.5px; letter-spacing: -.03em; white-space: normal; text-align: center; line-height: 1.1; }
html.hgt-touch .ab-s kbd { display: none; }
html.hgt-touch .ab-s span { display: block; max-width: 48px; word-break: keep-all; }
html.hgt-touch .ab-chg { grid-column: 1 / span 2; min-height: 40px; padding: 0 10px; font-size: 11px; }
@media (pointer: coarse), (max-width: 640px) {
  .ab { left: auto; transform: none; right: calc(16px + 74px + 10px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); }
  .ab-row { display: grid; grid-template-columns: repeat(2, 52px); gap: 6px; justify-items: center; }
  .ab-s { width: 52px; height: 52px; min-height: 0; padding: 0; border-radius: 50%; justify-content: center; font-size: 11.5px; letter-spacing: -.03em; white-space: normal; text-align: center; line-height: 1.1; }
  .ab-s kbd { display: none; }
  .ab-s span { display: block; max-width: 48px; word-break: keep-all; }
  .ab-chg { grid-column: 1 / span 2; min-height: 40px; padding: 0 10px; font-size: 11px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  html.hgt-touch .ab, .ab { left: auto; transform: none; right: calc(16px + 62px + 10px + env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); }
  html.hgt-touch .ab-row, .ab-row { display: grid; grid-template-columns: repeat(2, 46px); gap: 6px; align-items: center; justify-items: center; }
  html.hgt-touch .ab-s, .ab-s { width: 46px; height: 46px; min-height: 0; padding: 0; border-radius: 50%; justify-content: center; font-size: 10.5px; letter-spacing: -.03em; white-space: normal; text-align: center; line-height: 1.1; }
  html.hgt-touch .ab-s kbd, .ab-s kbd { display: none; }
  html.hgt-touch .ab-s span, .ab-s span { display: block; max-width: 44px; word-break: keep-all; }
  html.hgt-touch .ab-chg, .ab-chg { grid-column: 1 / span 2; min-height: 40px; padding: 0 10px; font-size: 11px; }
}
@media (min-width: 1700px) and (min-height: 900px) {
  .ab-s { min-height: 52px; padding: 0 16px 0 10px; font-size: 15px; }
  .ab-chg { min-height: 42px; font-size: 14px; }
}


.ab-pick {
  position: absolute; z-index: 7; 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% - 70px); overflow-y: auto;
  border-radius: 16px; border: 1px solid var(--hn-gold, #c9a24a); color: var(--hn-ink, #f4ecd6); background: linear-gradient(180deg, rgba(26, 32, 56, .95), rgba(12, 16, 30, .96)); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); pointer-events: auto;
}
.ab-pick.hidden { display: none; }
.ab-ph { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 6px 14px; border-bottom: 1px solid rgba(201, 162, 74, .35); }
.ab-ph b { font: 700 14px/1.2 var(--hn-sans, sans-serif); color: #f6e7b8; }
.ab-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--hn-ink, #f4ecd6); font: 700 18px/1 sans-serif; cursor: pointer; }
.ab-pmine { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px 10px 4px; }
.ab-pslot { min-height: 46px; padding: 4px; border-radius: 12px; border: 1px solid rgba(201, 162, 74, .55); background: rgba(255, 255, 255, .06); color: inherit; font: 600 12.5px/1.2 var(--hn-sans, sans-serif); cursor: pointer; word-break: keep-all; }
.ab-pslot kbd { display: block; margin: 0 auto 2px; width: 18px; border-radius: 4px; background: rgba(240, 216, 144, .2); color: #f3dc9c; font: 700 10.5px/1.4 var(--hn-sans, sans-serif); }
.ab-pslot.sel { border-color: #f0d890; box-shadow: 0 0 0 2px rgba(240, 216, 144, .45); background: rgba(240, 216, 144, .14); }
.ab-ptip { margin: 4px 14px 2px; color: var(--hn-ink-soft, #c7bea6); font: 500 12px/1.4 var(--hn-sans, sans-serif); word-break: keep-all; }
.ab-pall { padding: 4px 10px 8px; display: grid; gap: 8px; }
.ab-pg small { display: block; margin: 2px 2px 4px; color: #f0d890; font: 700 11.5px/1.2 var(--hn-sans, sans-serif); }
.ab-pgl { display: flex; flex-wrap: wrap; gap: 6px; }
.ab-pa { min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(201, 162, 74, .5); background: rgba(255, 255, 255, .06); color: inherit; font: 600 13px/1 var(--hn-sans, sans-serif); cursor: pointer; white-space: nowrap; }
.ab-pa.used { background: rgba(240, 216, 144, .18); border-color: #f0d890; }
.ab-pa[disabled] { opacity: .55; cursor: default; }
.ab-pfoot { display: flex; justify-content: flex-end; gap: 8px; padding: 6px 10px 12px; }
.ab-pfoot .hn-btn { min-height: 40px; padding: 0 16px; }


.ab-join { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .45); }
.ab-join.hidden { display: none; }
.ab-jcard { width: min(340px, 100%); padding: 16px 16px 14px; border-radius: 16px; border: 1px solid var(--hn-gold, #c9a24a); background: linear-gradient(180deg, rgba(26, 32, 56, .97), rgba(12, 16, 30, .98)); color: var(--hn-ink, #f4ecd6); box-shadow: 0 16px 44px rgba(0, 0, 0, .5); text-align: center; }
.ab-jt { display: block; margin-bottom: 8px; font: 700 16px/1.35 var(--hn-sans, sans-serif); color: #f6e7b8; word-break: keep-all; }
.ab-jl { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; font: 500 13.5px/1.45 var(--hn-sans, sans-serif); word-break: keep-all; }
.ab-jl li::before { content: '♥ '; color: #f08cb0; }
.ab-jb { display: flex; gap: 8px; justify-content: center; }
.ab-jb .hn-btn { min-height: 44px; padding: 0 16px; }
.ab-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 10040; max-width: min(420px, calc(100% - 32px)); padding: 8px 16px; border-radius: 999px; background: rgba(16, 22, 36, .9); color: #fff6dc; font: 600 13px/1.4 var(--hn-sans, sans-serif); text-align: center; word-break: keep-all; pointer-events: none; transition: opacity .5s; }
.ab-toast.gone { opacity: 0; }


.lv-hask { position: absolute; left: 50%; top: calc(max(8px, env(safe-area-inset-top)) + 104px); transform: translateX(-50%); z-index: 6; pointer-events: auto; width: min(320px, calc(100% - 24px));
  padding: 12px 12px 10px; border-radius: 16px; border: 1px solid #f08cb0; background: rgba(16, 22, 36, .93); color: var(--hn-ink, #f4ecd6); text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.lv-hask.hidden { display: none; }
.lv-hask p { margin: 0 0 10px; font: 600 14px/1.4 var(--hn-sans, sans-serif); word-break: keep-all; }
.lv-hask div { display: flex; gap: 8px; justify-content: center; }
.lv-hask .hn-btn { min-width: 84px; min-height: 44px; padding: 0 18px; font-size: 15px; }
.lv-hbar { display: block; height: 4px; margin: 10px 4px 0; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.lv-hbar i { display: block; height: 100%; width: 100%; background: #f08cb0; transform-origin: left center; }
@keyframes lvShrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.lv-heart { position: absolute; z-index: 2; transform: translate(-50%, -50%); pointer-events: none; text-align: center; animation: lvHeartUp 1.6s ease-out forwards; }
.lv-heart i { display: inline-block; color: #ff6b9a; font: 900 34px/1 sans-serif; font-style: normal; text-shadow: 0 2px 8px rgba(0, 0, 0, .35); animation: lvHeartPop .45s cubic-bezier(.2, 1.8, .4, 1) both; }
.lv-heart i.s { font-size: 18px; margin: 0 2px; animation-delay: .12s; }
.lv-heart b { display: block; margin-top: 2px; color: #7ee39a; font: 800 14px/1 var(--hn-sans, sans-serif); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
@keyframes lvHeartUp { 0% { opacity: 0; margin-top: 0; } 12% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; margin-top: -70px; } }
@keyframes lvHeartPop { 0% { transform: scale(0); } 100% { transform: scale(1); } }

.lv-stop { position: fixed; inset: 0; z-index: 10060; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5, 8, 16, .72); }
.lv-stop > div { width: min(360px, 100%); padding: 18px 16px 14px; border-radius: 16px; border: 1px solid var(--hn-gold, #c9a24a); background: rgba(16, 22, 36, .97); color: var(--hn-ink, #f4ecd6); text-align: center; }
.lv-stop b { display: block; margin-bottom: 6px; font: 700 16px/1.4 var(--hn-sans, sans-serif); color: #f6e7b8; word-break: keep-all; }
.lv-stop p { margin: 0 0 12px; font: 500 13px/1.45 var(--hn-sans, sans-serif); word-break: keep-all; }
.lv-stop .hn-btn { min-height: 44px; padding: 0 18px; }

.lv-rep { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 10px; }
.lv-rep.hidden { display: none; }
.lv-rep small { flex-basis: 100%; color: var(--hn-ink-soft, #c7bea6); font: 500 12px/1.3 var(--hn-sans, sans-serif); }
.lv-rep .hn-btn { min-height: 38px; padding: 0 12px; font-size: 12.5px; }
.lv-cbtns .hn-btn.ab-dim { opacity: .45; }

.lv-who.lv-hud { display: none !important; }
.lv-who { white-space: nowrap; }
