/* Observer, part 2 (ui/spectate/): the clock of the match, the panel of the watched character, the picker with its map cards and its directory of players. */
.spec-roster { top: 100px; max-height: calc(100vh - 170px); }
.spec-follow-chip { border: 1px solid #f2d27a; background: rgba(242, 210, 122, 0.18); color: #f6e4a8; border-radius: 999px; padding: 2px 10px; font-size: 12px; cursor: pointer; }
.spec-match-bar { position: absolute; width: max-content; top: 54px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px 10px; max-width: min(960px, calc(100vw - 24px)); padding: 4px 12px; background: rgba(20, 22, 30, 0.66); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; color: #eef1f6; font-size: 12.5px; pointer-events: none; }
.spec-match-bar.hidden { display: none; }
.spec-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 11.5px; white-space: nowrap; }
.spec-chip.running { background: rgba(111, 208, 140, 0.3); }
.spec-chip.warmup { background: rgba(242, 210, 122, 0.3); }
.spec-chip.ended { background: rgba(255, 122, 106, 0.3); }
.spec-chip.bot { background: rgba(106, 154, 192, 0.35); }
.spec-chip.human { background: rgba(242, 210, 122, 0.3); }
.spec-tick { font-variant-numeric: tabular-nums; white-space: nowrap; }
.spec-tick.score { font-weight: 700; }
.spec-dg { font-size: 12px; color: #f2d27a; }

.spec-target { position: absolute; right: var(--pad, 12px); top: 100px; width: 310px; max-height: calc(100vh - 170px); overflow-y: auto; display: flex; flex-direction: column; gap: 5px; padding: 9px 10px; background: rgba(20, 22, 30, 0.7); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; color: #eef1f6; font-size: 12.5px; pointer-events: auto; }
.spec-t-head { display: flex; flex-direction: column; gap: 1px; }
.spec-t-name { font-size: 15px; }
.spec-t-where { font-size: 12px; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); }
.spec-t-where.s-zone { border-left: 3px solid #6fd08c; }
.spec-t-where.s-arena { border-left: 3px solid #ff7a6a; }
.spec-t-where.s-dungeon { border-left: 3px solid #c084fc; }
.spec-t-where.s-away, .spec-t-where.s-limbo { border-left: 3px solid #f2d27a; }
.spec-t-where.s-offline, .spec-t-where.s-gone { border-left: 3px solid #888; opacity: 0.8; }
.spec-t-btns { display: flex; flex-wrap: wrap; gap: 4px; }
.spec-t-btns .gf-btn.on { border-color: #f2d27a; }
.spec-t-body { display: flex; flex-direction: column; gap: 5px; }
.spec-gauge { position: relative; height: 15px; border-radius: 4px; background: rgba(0, 0, 0, 0.45); overflow: hidden; }
.spec-gauge i { position: absolute; inset: 0 auto 0 0; width: 0; background: #5fb070; transition: width 0.25s; }
.spec-gauge.mp i { background: #5a8fd6; }
.spec-gauge span { position: relative; display: block; text-align: center; font-size: 11px; line-height: 15px; text-shadow: 0 1px 2px #000; }
.spec-t-facts, .spec-t-mind, .spec-t-trail { display: flex; flex-direction: column; gap: 2px; }
.spec-t-row { display: flex; justify-content: space-between; gap: 8px; }
.spec-t-row span { opacity: 0.72; flex: none; }
.spec-t-row b { font-weight: 600; text-align: right; }
.spec-t-line { font-size: 12px; }
.spec-t-body h6, .spec-t-mind h6, .spec-t-trail h6 { margin: 6px 0 2px; font-size: 12px; letter-spacing: 0.04em; color: #f2d27a; }
.spec-t-emos { display: flex; flex-direction: column; gap: 2px; margin-top: 3px; }
.spec-emo { position: relative; height: 13px; border-radius: 3px; background: rgba(0, 0, 0, 0.4); overflow: hidden; font-size: 10.5px; }
.spec-emo i { position: absolute; inset: 0 auto 0 0; background: rgba(242, 210, 122, 0.45); }
.spec-emo span { position: relative; padding-left: 5px; line-height: 13px; }
.spec-t-trail-row { display: flex; gap: 8px; font-size: 11.5px; padding-left: 6px; border-left: 3px solid #888; }
.spec-t-trail-row em { font-style: normal; opacity: 0.65; flex: none; font-variant-numeric: tabular-nums; }
.spec-t-trail-row.s-zone { border-color: #6fd08c; }
.spec-t-trail-row.s-arena { border-color: #ff7a6a; }
.spec-t-trail-row.s-dungeon { border-color: #c084fc; }
.spec-t-empty { font-size: 12px; line-height: 1.4; margin: 2px 0; }

.spec-pk { width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 60px); z-index: 9000; }
.spec-pk .spec-picker-head { gap: 10px; }
.spec-pk-tabs { flex: 1; }
.spec-pk-pane { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.spec-pk-group { margin: 6px 0 2px; font-size: 13px; color: #f2d27a; }
.spec-pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.spec-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 108px; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; background-size: cover; background-position: center; color: #fff; text-align: left; cursor: pointer; overflow: hidden; }
.spec-card:hover { border-color: #f2d27a; }
.spec-card.on { border-color: #f2d27a; box-shadow: 0 0 0 1px #f2d27a inset; }
.spec-card.idle { opacity: 0.62; }
.spec-card b { font-size: 14px; text-shadow: 0 1px 3px #000; }
.spec-card em { font-style: normal; font-size: 11px; opacity: 0.85; }
.spec-card-line { font-size: 11.5px; text-shadow: 0 1px 2px #000; }
.spec-pk-bar { display: flex; align-items: center; gap: 10px; }
.spec-pk-search { flex: 1; min-width: 160px; }
.spec-pk-rows { display: flex; flex-direction: column; gap: 4px; }
.spec-who { display: grid; grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 2fr); align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; background: rgba(255, 255, 255, 0.07); color: inherit; text-align: left; cursor: pointer; font-size: 12.5px; }
.spec-who:hover { background: rgba(255, 255, 255, 0.15); }
.spec-who.on { border-color: #f2d27a; }
.spec-who.off { opacity: 0.6; }
.spec-who em { font-style: normal; opacity: 0.7; font-size: 11.5px; }
.spec-who-place { font-size: 12px; opacity: 0.9; }

html.mobile .spec-match-bar { top: calc(var(--sat) + 40px); font-size: 11px; padding: 2px 8px; }
html.mobile .spec-roster { top: calc(var(--sat) + 78px); }
html.mobile .spec-target { top: calc(var(--sat) + 78px); right: calc(var(--sar) + 8px); width: 220px; max-height: calc(100% - var(--sat) - var(--mjoy) - 110px); font-size: 11px; }
html.mobile .spec-who { grid-template-columns: 1fr auto; }
html.mobile .spec-who-place { grid-column: 1 / -1; }
.spec-bar { width: max-content; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 24px); white-space: normal; z-index: 1; }

/* Debug > Observer: the directory of players. */
.spec-dbg-who { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }

/* The caster board (arenas): two compact team tables on the left, the panel of the watched player below the objective on the right. */
.spec-arena .spec-roster { display: none; }
.spec-arena .spec-bar { left: 12px; top: 8px; transform: none; max-width: max(300px, calc(50vw - 345px)); }
.spec-arena .spec-match-bar { top: calc(var(--pad) + 62px); }
.spec-arena .spec-target { top: 150px; max-height: calc(100vh - 220px); }
.spec-caster { position: absolute; left: var(--pad, 12px); top: 110px; width: 450px; max-height: calc(100vh - 170px); overflow-y: auto; display: flex; flex-direction: column; gap: 6px; pointer-events: auto; }
.spec-cb-team { border: 1px solid rgba(255, 255, 255, 0.14); border-left: 3px solid var(--tc); border-radius: 8px; background: rgba(20, 22, 30, 0.7); color: #eef1f6; font-size: 11.5px; overflow: hidden; }
.spec-cb-head { padding: 3px 8px; font-weight: 700; color: var(--tc); background: rgba(0, 0, 0, 0.3); }
.spec-cb-cols, .spec-cb-row { display: grid; grid-template-columns: minmax(120px, 1fr) 22px 22px 22px 54px 54px 26px 54px; gap: 2px 6px; align-items: center; padding: 2px 8px; }
.spec-cb-cols { font-size: 10.5px; opacity: 0.65; }
.spec-cb-cols span:not(:first-child), .spec-cb-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.spec-cb-row { position: relative; width: 100%; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.06); background: transparent; color: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.spec-cb-row:hover { background: rgba(255, 255, 255, 0.1); }
.spec-cb-row.on { background: rgba(242, 210, 122, 0.18); }
.spec-cb-row.dead { opacity: 0.45; }
.spec-cb-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spec-cb-row .spec-hp { position: absolute; left: 0; bottom: 0; height: 2px; background: #6fd08c; }
.spec-feed { position: absolute; left: var(--pad, 12px); bottom: 14px; display: flex; flex-direction: column; gap: 3px; pointer-events: none; }
html.mobile .spec-caster { width: 290px; top: calc(var(--sat) + 78px); max-height: calc(100% - var(--sat) - var(--mjoy) - 96px); font-size: 10px; }
html.mobile .spec-arena .spec-bar { max-width: calc(50vw - 150px); }
html.mobile .spec-arena .spec-match-bar { display: none; }
html.mobile .spec-arena .spec-bar { flex-wrap: nowrap; max-width: none; gap: 4px; padding: 3px 6px; top: calc(var(--sat) + 4px); left: calc(var(--sal) + 8px); }
html.mobile .spec-arena .spec-bar b, html.mobile .spec-arena .spec-bar .mute, html.mobile .spec-arena .spec-eye { display: none; }
html.mobile .spec-arena .spec-bar .gf-btn { min-height: 26px; padding: 0 7px; font-size: 10px; }
html.mobile .spec-arena .spec-caster { top: calc(var(--sat) + 40px); }
html.mobile .spec-arena .spec-target { top: calc(var(--sat) + 78px); }
html.mobile .spec-t-empty { font-size: 10px; }
.spec-dbg-who .eco-tablewrap { max-height: 240px; overflow-y: auto; }
