/* FIVE PK - HUD giocatori + note (hud-missions-20261018). Same palette as the table redesign (gold #e2b14a, dark #121316). */
.hud-toggle span[aria-hidden] { font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.hud-toggle.is-on { background: linear-gradient(180deg, #f7d985, #e2b14a) !important; color: #1a1408 !important; border-color: #a8781f !important; }
.hud-badge { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); z-index: 7; padding: 2px 8px; border-radius: 8px; white-space: nowrap; cursor: pointer;
  font: 700 11px/1.35 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #f3efe4; background: rgba(12,13,16,.86); border: 1px solid rgba(226,177,74,.55);
  box-shadow: 0 2px 8px rgba(0,0,0,.45); pointer-events: auto; }
.seat.is-lower-half .hud-badge { top: auto; bottom: -20px; }
.seat.is-lower-half .pko-bounty ~ .hud-badge { bottom: -38px; }
.hud-badge:hover, .hud-badge:focus-visible { border-color: #e2b14a; outline: none; }
html[data-hud-theme="contrast"] .hud-badge { background: #000; color: #fff; border: 2px solid #fff; font-size: 12px; }
.hud-color { position: absolute; top: 2px; left: 2px; z-index: 8; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #121316; box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
#table-seats .seat[data-player-id]:not(.is-hero) { cursor: pointer; }
@media (max-width: 700px) { .hud-badge { font-size: 9px; padding: 1px 5px; top: -16px; } .seat.is-lower-half .hud-badge { bottom: -16px; } .hud-color { width: 11px; height: 11px; } }

.hud-dialog { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; background: rgba(4,6,8,.66); padding: 16px; }
.hud-dialog[hidden] { display: none; }
.hud-sheet { width: min(460px, 100%); max-height: min(88vh, 760px); display: grid; grid-template-rows: auto auto 1fr; border-radius: 20px; overflow: hidden;
  background: #121316; color: #efeadd; border: 1px solid rgba(226,177,74,.4); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.hud-head { display: flex; gap: 12px; align-items: center; padding: 16px 18px 10px; background: linear-gradient(110deg, #17181c, #3a0f15); }
.hud-head > div { flex: 1; min-width: 0; } .hud-head h2 { margin: 0; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-eyebrow { margin: 0; color: #e2b14a; font-weight: 800; letter-spacing: .12em; font-size: 11px; text-transform: uppercase; }
.hud-ava { width: 52px; height: 52px; flex: none; position: relative; border-radius: 50%; overflow: hidden; border: 2px solid #e2b14a; background: #1b1c20; }
.hud-ava .seat-avatar { position: static !important; width: 100% !important; height: 100% !important; margin: 0 !important; transform: none !important; }
.hud-ava img { width: 100%; height: 100%; object-fit: cover; }
.hud-close { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; font-size: 22px; cursor: pointer; }
.hud-tabs { display: flex; gap: 4px; padding: 6px 18px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.hud-tabs button { border: 0; background: none; color: #b9b2a1; padding: 9px 12px; font-weight: 700; border-bottom: 3px solid transparent; cursor: pointer; }
.hud-tabs button.is-active { color: #fff; border-color: #e2b14a; }
.hud-body { overflow: auto; padding: 14px 18px 20px; display: grid; gap: 12px; align-content: start; }
.hud-muted { margin: 0; font-size: 12px; color: #9a9383; }
.hud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hud-tile { display: grid; gap: 2px; padding: 10px 8px; border-radius: 12px; background: #1b1c20; border: 1px solid rgba(255,255,255,.07); text-align: center; }
.hud-tile span { font-size: 11px; color: #b9b2a1; font-weight: 700; letter-spacing: .04em; } .hud-tile strong { font-size: 18px; color: #f7d985; }
.hud-style { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13px; color: #e9e3d4; text-align: center; }
.hud-note h3, .hud-settings h3 { margin: 0 0 8px; font-size: 13px; color: #e2b14a; text-transform: uppercase; letter-spacing: .06em; }
.hud-note textarea { width: 100%; box-sizing: border-box; resize: vertical; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: #0d0e10; color: #efeadd; padding: 10px; font: inherit; font-size: 14px; }
.hud-colors { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; align-items: center; }
.hud-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); cursor: pointer; padding: 0; }
.hud-swatch.is-none { width: auto; padding: 0 10px; border-radius: 999px; background: #1b1c20; color: #c9c2b0; font-size: 12px; }
.hud-swatch.is-selected { border-color: #fff; box-shadow: 0 0 0 3px rgba(226,177,74,.55); }
.hud-note-foot { display: flex; justify-content: space-between; align-items: center; } .hud-note-foot small { color: #8f8879; }
.hud-save { border: 0; border-radius: 999px; padding: 9px 18px; background: #c8242f; color: #fff; font-weight: 800; cursor: pointer; } .hud-save:disabled { opacity: .6; }
.hud-check { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; }
.hud-check input[type=checkbox] { width: 20px; height: 20px; accent-color: #e2b14a; order: 2; }
.hud-check select { background: #0d0e10; color: #efeadd; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 6px 8px; }
html[data-hud-theme="contrast"] .hud-sheet { background: #000; border-color: #fff; } html[data-hud-theme="contrast"] .hud-tile { background: #000; border-color: #fff; }
html[data-hud-theme="contrast"] .hud-tile strong { color: #fff; }
@media (max-width: 420px) { .hud-grid { grid-template-columns: repeat(3, 1fr); } }
