/* Likwid Beats · info tips. See assets/info-tips.js for usage.
   Halo Hour tokens: Night #0C0A12 · Halo #FFB23E · Afterglow #FF6F8E · Dusk #2E2A5C · Linen #F7F0E4.
   --lbi-accent is set per player by its tips file (defaults to Halo). */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600&family=Outfit:wght@400;600&display=swap');
:root { --lbi-accent: #FFB23E; }

/* the ⓘ: 18px visible circle, 32px hit area, ~18px of layout footprint */
.lbi-btn {
  -webkit-appearance: none; appearance: none; box-sizing: border-box;
  display: inline-grid; place-items: center; flex: none; align-self: center;
  width: 32px; height: 32px; min-width: 32px; margin: -7px -7px -7px -4px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; box-shadow: none;
  color: rgba(247, 240, 228, .62); cursor: help; vertical-align: middle;
  position: relative; z-index: 2; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  font: 600 11px/1 'Fraunces', Georgia, serif; letter-spacing: 0; text-transform: none; text-shadow: none;
  transition: color .15s ease;
}
.lbi-btn .lbi-ico {
  display: grid; place-items: center; width: 18px; height: 18px; box-sizing: border-box;
  border: 1.5px solid currentColor; border-radius: 50%; font-style: italic; font-size: 11.5px; line-height: 1;
  background: rgba(12, 10, 18, .35); pointer-events: none;
}
.lbi-btn .lbi-ico svg { display: block !important; width: 9px !important; height: 9px !important; margin: 0 !important; overflow: visible; }
.lbi-btn .lbi-ico circle { fill: currentColor; stroke: none; }
.lbi-btn .lbi-ico path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lbi-btn.lbi-badge .lbi-ico svg { width: 8px !important; height: 8px !important; }
.lbi-btn:hover, .lbi-btn[aria-expanded="true"] { color: var(--lbi-accent); }
.lbi-btn:focus { outline: none; }
.lbi-btn:focus-visible .lbi-ico { outline: 2px solid var(--lbi-accent); outline-offset: 2px; }
/* rides on a crowded control's top-right corner and takes no room */
.lbi-btn.lbi-badge { margin: -16px -6px 0 -26px; align-self: flex-start; vertical-align: top; width: 32px; height: 32px; min-width: 32px; position: relative; z-index: 3; }
.lbi-btn.lbi-corner { position: absolute; margin: 0; left: 0; top: 0; z-index: 12; }
.lbi-btn.lbi-badge .lbi-ico { width: 16px; height: 16px; font-size: 10px; background: #0C0A12; color: rgba(247, 240, 228, .8); border-color: rgba(247, 240, 228, .45); }
.lbi-btn.lbi-badge:hover .lbi-ico, .lbi-btn.lbi-badge[aria-expanded="true"] .lbi-ico { color: var(--lbi-accent); border-color: var(--lbi-accent); }

/* standalone ⓘ with a short visible label */
.lbi-btn.lbi-labeled { width: auto; min-width: 0; height: 32px; margin: 2px 0; padding: 0 8px 0 7px; gap: 6px; grid-auto-flow: column; border-radius: 999px; font: 500 13px/1 'Outfit', system-ui, sans-serif; }
.lbi-btn.lbi-labeled .lbi-txt { font-style: normal; }

/* the tip */
.lbi-layer { position: fixed; inset: 0; z-index: 2147483000; }
.lbi-layer[hidden] { display: none; }
.lbi-backdrop { position: absolute; inset: 0; background: transparent; }
.lbi-panel {
  position: fixed; box-sizing: border-box; width: min(340px, calc(100vw - 24px)); max-height: calc(100vh - 24px);
  overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: #15121F; color: #F7F0E4; border: 1px solid rgba(247, 240, 228, .14);
  border-top: 2px solid var(--lbi-accent); border-radius: 16px; padding: 14px 16px 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(46, 42, 92, .5);
  font: 400 15px/1.45 'Outfit', system-ui, -apple-system, sans-serif; text-align: left; letter-spacing: 0; text-transform: none;
  animation: lbi-in .14s ease-out;
}
.lbi-panel:focus { outline: none; }
.lbi-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.lbi-title { flex: 1; margin: 2px 0 0; font: 600 19px/1.2 'Fraunces', Georgia, serif; color: #F7F0E4; letter-spacing: 0; text-transform: none; }
.lbi-close {
  -webkit-appearance: none; appearance: none; flex: none; width: 36px; height: 36px; margin: -8px -10px 0 0; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: rgba(247, 240, 228, .7); font: 400 24px/1 system-ui, sans-serif; cursor: pointer;
}
.lbi-close:hover, .lbi-close:focus-visible { color: var(--lbi-accent); background: rgba(247, 240, 228, .06); outline: none; }
.lbi-sec { margin: 10px 0 0; }
.lbi-sec h3 { margin: 0 0 2px; font: 600 11px/1.3 'Outfit', system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--lbi-accent); }
.lbi-sec p { margin: 0; color: #E8DFD0; }
/* phones and touch: bottom sheet */
.lbi-sheet .lbi-backdrop { background: rgba(6, 5, 12, .45); }
.lbi-sheet .lbi-panel {
  left: 0 !important; right: 0; bottom: 0; top: auto !important; margin: 0 auto; width: 100%; max-width: 560px; max-height: 72vh !important;
  border-radius: 20px 20px 0 0; border-bottom: 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  animation: lbi-up .18s ease-out;
}
.lbi-sheet .lbi-panel::before { content: ''; display: block; width: 36px; height: 4px; border-radius: 2px; background: rgba(247, 240, 228, .25); margin: 0 auto 10px; }
@keyframes lbi-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes lbi-up { from { transform: translateY(24px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .lbi-panel, .lbi-sheet .lbi-panel { animation: none; } }
