/* Kylted Congo Games: map, story, tributes (admin page + stream view) */
#map { width: 100%; height: auto; display: block; user-select: none; }
.dz { stroke: none; transition: filter .3s; }
.dz-line { stroke: rgba(6,26,12,0.8); stroke-width: 3; stroke-linejoin: round; }
.deco.closed { filter: grayscale(0.9) brightness(0.5); }
.dz.closed { filter: grayscale(0.85) brightness(0.45); }
.dz-closed { pointer-events: none; }
.dz.hit { animation: hit 1.2s ease-in-out infinite; }
@keyframes hit { 50% { filter: brightness(1.5) saturate(1.4); } }
.dz.center { stroke: #8a5a00; stroke-width: 3; }
.dlabel, .dname, .demoji { pointer-events: none; }
.demoji { font-size: 30px; text-anchor: middle; dominant-baseline: middle; opacity: 0.9; }
.dname { font-family: 'Bangers', Impact, sans-serif; font-size: 20px; letter-spacing: 1.2px; text-anchor: middle; fill: #fff7e8; paint-order: stroke; stroke: rgba(0,0,0,0.75); stroke-width: 4px; opacity: 0.85; }
.dname.cname { font-size: 15px; fill: #ffe9a0; stroke: rgba(40,20,0,0.85); stroke-width: 4px; }
.dclosed { display: none; font: 900 13px Nunito, sans-serif; letter-spacing: 3px; text-anchor: middle; fill: #ff6a5a; paint-order: stroke; stroke: #000; stroke-width: 3px; }
.dlabel.closed .dclosed { display: block; }
.dlabel.closed .demoji { opacity: 0.35; }
.mk { cursor: pointer; transition: transform .6s ease; }
.mki { font: 900 12px Nunito, sans-serif; text-anchor: middle; fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,0.6); stroke-width: 2.5px; pointer-events: none; }
.mkk { font: 900 10px Nunito, sans-serif; fill: #ffd21f; paint-order: stroke; stroke: #000; stroke-width: 2.5px; pointer-events: none; }
.mk.dead .dx { fill: rgba(0,0,0,0.55); stroke: rgba(255,255,255,0.55); stroke-width: 1.5; }
.mk.dead .dxx { stroke: #ff6a5a; stroke-width: 2.5; stroke-linecap: round; }
.mk .ring { fill: none; stroke: #ffd21f; stroke-width: 3; animation: ring 1s ease-in-out infinite; }
@keyframes ring { 50% { stroke-opacity: 0.25; } }
.mk .crown { font-size: 20px; text-anchor: middle; }
.mk:hover circle:not(.ring) { stroke: #ffd21f; }

.hg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .hg-grid { grid-template-columns: 1fr; } }
.map-card { padding: 10px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding: 6px 8px 0; align-items: center; }
.legend label { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-weight: 700; }
.legend input { width: auto; }
.side { max-height: 820px; overflow: auto; }
.dist { margin-bottom: 10px; }
.dh { font-weight: 900; border-left: 5px solid var(--c); padding: 2px 8px; background: rgba(0,0,0,0.3); border-radius: 0 8px 8px 0; margin-bottom: 3px; }
.tr { display: flex; justify-content: space-between; gap: 8px; padding: 3px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.tr:hover, .tr.sel { background: rgba(255,210,31,0.12); }
.tr.x .tn { opacity: 0.7; }
.ts { text-align: right; font-size: 12.5px; white-space: nowrap; }
.gold { color: var(--yellow); }

#log .phase { margin-bottom: 14px; }
#log h4 { font-family: var(--font-title); font-weight: 400; font-size: 24px; letter-spacing: 1.5px; color: var(--orange2); margin: 0 0 6px; border-bottom: 2px solid var(--line); }
.ev { margin: 4px 0; padding: 4px 10px; border-left: 4px solid rgba(47,187,92,0.45); background: rgba(0,0,0,0.22); border-radius: 0 8px 8px 0; }
.ev.fatal { border-left-color: var(--red2); }
.ev.k-system { font-style: italic; color: var(--muted); border-left-color: transparent; background: none; }
.ev.k-disaster { color: #ffb36a; font-weight: 900; border-left-color: var(--orange); }
.ev.k-fallen { border-left-color: #888; background: rgba(0,0,0,0.4); font-weight: 800; }
.ev.k-winner { border-left-color: var(--yellow); background: rgba(255,210,31,0.15); font-size: 1.15em; font-weight: 900; }
.ev .loc { margin-right: 6px; }
.nm { color: var(--c); font-weight: 900; cursor: pointer; filter: brightness(1.35); }
.nm.x { opacity: .85; }
.nm.sel { background: rgba(255,210,31,0.25); border-radius: 4px; }
.filter { margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }

.hg-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.hg-head h1 { margin: 0; }
.hg-head select { width: auto; }
#controls .row { margin-top: 10px; }
label.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); }
label.inline select { width: auto; padding: 6px 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 40px); opacity: 0; transition: .25s; background: #0b2412; border: 2px solid var(--green2); padding: 10px 18px; border-radius: 12px; font-weight: 900; z-index: 50; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: var(--red2); }
tr.cur td { background: rgba(255,210,31,0.08); }
details summary { cursor: pointer; font-weight: 900; color: var(--muted); }

/* stream view (OBS browser source, 1920x1080) */
body.view { overflow: hidden; }
body.view.nobg { background: transparent; }
body.view.nobg::before, body.view.nobg::after { display: none; }
.vwrap { display: grid; grid-template-columns: minmax(0, 1fr) 620px 370px; gap: 16px; height: 100vh; padding: 18px; }
.vwrap.nostory { grid-template-columns: minmax(0, 1fr) 560px; }
.vwrap.nostory .vlog { display: none; }
.vwrap.nolog { grid-template-columns: 1fr; }
.vmap { display: flex; flex-direction: column; min-height: 0; }
.vmap svg { flex: 1; min-height: 0; width: 100%; height: 100%; }
.vhead h1 { font-size: 54px; margin: 0; }
.vhead p { margin: 0; font-size: 24px; font-weight: 900; }
.vlog { overflow: hidden; min-height: 0; background: rgba(6,26,12,0.82); border: 2px solid var(--line); border-radius: 18px; padding: 18px 16px 16px; font-size: 20px; }
.vlog h4 { font-size: 1.6em !important; margin-top: 0 !important; }
.vlog .ev { margin: .3em 0; padding: .2em .55em; }
.vlog .cannons { margin: .3em 0 .5em; }

.wpn { color: #ffb36a; font-size: 12px; }

/* map extras */
.cmp { font: 900 14px Nunito, sans-serif; fill: #e8d49a; text-anchor: middle; }
.seanote { font: italic 800 15px Nunito, sans-serif; fill: rgba(232,212,154,.55); letter-spacing: 1px; }
.mk .body { stroke: #fff; stroke-width: 2.5; }
.mk.hurt .body { stroke: #ff2d36; stroke-dasharray: 3 2; }
.tlabel { font: 900 10px Nunito, sans-serif; text-anchor: middle; paint-order: stroke; stroke: rgba(0,0,0,.8); stroke-width: 3px; letter-spacing: .5px; pointer-events: none; }
.team { pointer-events: none; }
.chip { display: inline-block; font-size: 11px; font-weight: 900; padding: 0 6px; border-radius: 999px; border: 1.5px solid var(--c, #ff2d36); color: var(--c, #ff2d36); margin-left: 4px; vertical-align: 1px; }
.chip.hurtc { --c: #ff6a6a; }
.btn.big { padding: 12px 24px; font-size: 17px; }
.nextbar { margin-top: 12px; display: flex; gap: 10px; align-items: center; }
.nextbar:empty { display: none; }
.map-card .nextbar { padding: 4px 8px 6px; }
#earlier { margin-top: 16px; }
#earlier summary { font-size: 15px; }
#earlier[open] summary { margin-bottom: 10px; }
/* cannons: header + one fallen tribute per row */
.cannons { margin: 6px 0 10px; padding: 8px 12px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); border-left: 4px solid #888; border-radius: 0 10px 10px 0; }
.cannons .ch { margin: 0 0 4px; font-weight: 900; }
.cannons ul { margin: 0; padding: 0; list-style: none; }
.cannons li { padding: 2px 0 2px 8px; position: relative; }
.cannons li::before { content: none; }
/* stream view right column */
.vside { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.vside .vlog { flex: 0 1 auto; max-height: 48%; }
.vroster { min-height: 0; overflow: hidden; background: rgba(6,26,12,0.82); border: 2px solid var(--line); border-radius: 18px; padding: 18px 16px 14px; font-size: 16px; }
.vroster h4 { font-family: var(--font-title); font-weight: 400; font-size: 1.75em; letter-spacing: 1.5px; color: var(--orange2); margin: 0 0 8px; }
.roster { columns: 2; column-gap: 14px; font-size: 1em; }
.vwrap.nostory .roster { columns: 3; }
.rd { break-inside: avoid; margin-bottom: 8px; }
.rdh { font-weight: 900; border-left: 4px solid var(--c); padding-left: 6px; font-size: 1em; }
.rp { padding-left: 10px; line-height: 1.22; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp.x { opacity: .6; }
.tdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: 1px; }
.signups { display: flex; flex-wrap: wrap; gap: 6px; }
.su { padding: .15em .6em; border-radius: 999px; background: rgba(0,0,0,.4); border: 2px solid var(--c); font-weight: 900; font-size: 1em; }

/* final standings */
.standings { margin-bottom: 18px; }
.standings h3 { font-size: 30px; }
.standings table { font-size: 15px; }
.standings tr.win td { background: rgba(255,210,31,.14); font-weight: 900; }
.standings .nmc { color: var(--c); filter: brightness(1.35); font-weight: 900; }
.vroster .standings h3 { font-size: 1.8em; margin-bottom: 6px; }
.vroster .standings td:nth-child(3), .vroster .standings th:nth-child(3) { display: none; }
.vroster .standings table { font-size: 1em; }
.vroster .standings td, .vroster .standings th { padding: 4px 6px; }
.vroster .standings .fate { display: none; }

/* name tag when a marker is clicked */
#pop { pointer-events: none; }
.nametag rect { fill: rgba(6,26,12,.92); stroke: #ffd21f; stroke-width: 1.5; }
.nametag text { text-anchor: middle; }
.nametag .tn1 { font: 900 14px Nunito, sans-serif; fill: #fff7e8; }
.nametag .tn2 { font: italic 700 11px Nunito, sans-serif; fill: #ffd98a; }
/* stream view: the tag the streamer clicked on their dashboard, readable on stream */
.nametag.big rect { stroke-width: 2.5; }
.nametag.big .tn1 { font-size: 22px; }
.nametag.big .tn2 { font-size: 17.5px; }
.nametag .tpr { fill: #ffd21f; }   /* profile picture ring (owner 2026-11-14) */
.nametag .tpi { font: 900 15px Nunito, sans-serif; fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.45); stroke-width: 2px; }
.nametag.big .tpi { font-size: 24px; }

/* manual signups */
textarea { width: 100%; padding: 9px 11px; border-radius: 10px; border: 2px solid var(--line); background: rgba(0,0,0,0.5); color: var(--text); font: 700 15px var(--font); resize: vertical; }
textarea:focus { outline: none; border-color: var(--yellow); }
.ib { background: none; border: 0; cursor: pointer; padding: 0 3px; font-size: 13px; color: var(--muted); opacity: .75; }
.ib:hover { opacity: 1; color: var(--yellow); }

/* stream view end screen: the standings need the room, the actions column only has the last cannons + winner */
.vwrap.final { grid-template-columns: minmax(0, 1fr) 1180px; }
.vwrap.final .vlog { display: none; }
.vwrap.final .vroster .standings td:nth-child(3), .vwrap.final .vroster .standings th:nth-child(3), .vwrap.final .vroster .standings .fate { display: table-cell; }
.vwrap.final .vroster .standings td, .vwrap.final .vroster .standings th { padding: .22em .55em; }
.standings td, .standings th { white-space: nowrap; }

.st2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.vwrap.final .standings h3 { font-size: 1.6em; }

.tf-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.tf-row input { flex: 1; min-width: 0; }
.tf-row .btn { white-space: nowrap; }
#aliveonly.on { background: rgba(80,200,120,0.22); border-color: #50c878; color: #fff; }

/* career: leaderboard page, rank emoji + grudge chip on tributes */
.board { max-width: 1380px; }
.bhead { margin: 8px 0 14px; }
.bhead h1 { margin-bottom: 2px; }
.btab td { vertical-align: middle; }
/* official board + house players (Kylted + girlfriend, owner 2026-11-16) on the right */
.bgrid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; margin-bottom: 16px; }
.bgrid > .card { margin: 0; }
.bhouse h3 { margin: 0 0 4px; }
.bhouse p { margin: 0 0 8px; }
.bhtab .pts { font-size: 16px; }
.bhouse { padding: 16px 14px; }
.bhtab { width: 100%; }
.bhtab td, .bhtab th { padding: 6px 5px; }
@media (max-width: 900px) { .bgrid { grid-template-columns: minmax(0, 1fr); } .bhouse { order: -1; } }
.btab .pos { font-weight: 900; font-size: 18px; width: 42px; }
.btab .pts { font-weight: 900; font-size: 18px; color: var(--yellow); }
.btab .who b { font-size: 16px; }
.btab .rt { display: block; font-size: 11px; color: var(--muted); letter-spacing: .5px; margin-left: 26px; }
.btab .re { font-size: 18px; }
.btab tr.top1 td { background: rgba(255,210,31,.14); }
.btab tr.top2 td { background: rgba(220,220,235,.08); }
.btab tr.top3 td { background: rgba(205,127,50,.10); }
.mv { font-size: 12px; font-weight: 900; color: var(--muted); }
.mv.up { color: var(--green2); } .mv.dn { color: var(--red2); } .mv.new { color: var(--yellow); }
.ranks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.rk { padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.4); border: 1px solid var(--line); font-weight: 900; }
@media (max-width: 720px) { .btab .opt, .btab .mvc, .btab .rt { display: none; } .btab td, .btab th { padding: 6px 5px; } }
.rke { margin-right: 3px; cursor: help; }
.chip.grc { --c: #ff8a3d; }
.badblood { margin-top: .8em; font-size: .9em; }
.badblood h5 { margin: 0 0 .3em; font-size: 1.05em; color: #ff8a3d; }
.badblood div { line-height: 1.3; }
.hg-head .btn { text-decoration: none; }
.btab .who { white-space: nowrap; }

/* cannons page: the fallen on the left, trash talk about one of them on the right (owner 2026-11-12) */
.cannons.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; align-items: start; }
.smack { background: rgba(255,138,61,.1); border: 1px solid rgba(255,138,61,.35); border-radius: 10px; padding: 8px 12px; }
.smack .sh { margin: 0 0 6px; font-weight: 900; font-size: 1.3em; line-height: 1.15; }
.smack blockquote { margin: 0; font-style: italic; line-height: 1.35; position: relative; padding-left: 1.1em; }
.smack blockquote::before { content: '\201C'; position: absolute; left: -.05em; top: -.25em; font-size: 2em; color: #ff8a3d; font-style: normal; }
.smack .sg { margin: 6px 0 0; font-size: .85em; color: var(--muted); }
.smack .sg.sworn { color: #ff8a3d; font-weight: 900; }
@media (max-width: 720px) { .cannons.two { grid-template-columns: 1fr; } }

/* leaderboard: highlighted (verified) players - gold glow + small check badge (owner 2026-11-12) */
.vipn { color: #ffe27a; text-shadow: 0 0 6px rgba(255, 210, 31, .55), 0 0 1px rgba(255, 210, 31, .9); }
.vipb { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-left: 5px; border-radius: 50%;
  background: linear-gradient(135deg, #ffe27a, #e0a800); color: #1a1200; font-size: 10px; font-weight: 900; line-height: 1; vertical-align: 2px;
  box-shadow: 0 0 6px rgba(255, 210, 31, .6); cursor: help; }

/* leaderboard: sortable headers */
.btab th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.btab th.sortable:hover, .btab th.sortable:focus-visible { color: var(--yellow); outline: none; }
.btab th.on { color: var(--yellow); }
.btab .sarr { font-size: .8em; margin-left: 4px; }

/* game page while a game runs: everything above the story is tucked away (⚙️ Menu brings it back) */
body.ingame header.top, body.ingame .hg-head, body.ingame #botcard, body.ingame #controls, body.ingame #manualbox { display: none !important; }
body.ingame main.wrap { padding-top: 14px; }
#toptoggle { float: right; margin: 0 0 6px 12px; position: relative; z-index: 1; }
/* game page: wider (owner 2026-11-12) - longer story lines, the map takes the extra width (tribute list stays 340px) */
body[data-mode="admin"] .wrap { width: min(1800px, 100% - 32px); }

/* Twitch profile pictures (2026-11-13): small round avatar in front of names (em-sized so the stream view's text fitting
   scales them), .big on the trash-talk speaker + winner line, .gone = the roasted fallen tribute (greyed out) */
.av { display: inline-block; width: 1.3em; height: 1.3em; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: .35em;
  background: rgba(0,0,0,.35); box-shadow: 0 0 0 1.5px rgba(255,255,255,.28); flex: none; }
.av.none { display: inline-flex; align-items: center; justify-content: center; background: var(--c, #555); color: #111; font-weight: 900; }
.av.none i { font-style: normal; font-size: .7em; line-height: 1; }
.av.big { width: 3.4em; height: 3.4em; vertical-align: middle; box-shadow: 0 0 0 3px #ff8a3d, 0 4px 14px rgba(0,0,0,.5); margin-right: .55em; }
.av.big.none i { font-size: 1.6em; }
.av.gone { filter: grayscale(1) brightness(.75); }
.ev.k-winner .av.big { box-shadow: 0 0 0 3px var(--yellow), 0 0 18px rgba(255,210,31,.55); }
.smack .sh { display: flex; align-items: center; }
.smack .shn { font-size: 1.15em; }
.smack .sht { font-size: .62em; font-weight: 700; color: var(--muted); margin-top: 2px; }
.cannons li .av { margin-right: .45em; }

/* Kylted + moneemonee1 side by side during signups (owner 2026-11-13, display only) */
.tr.couple { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 0; background: rgba(255,90,140,.1); border: 1px solid rgba(255,90,140,.35); border-radius: 10px; padding: 6px 8px; margin-bottom: 10px; cursor: default; }
.tr.couple .cp { cursor: pointer; font-weight: 900; white-space: nowrap; }
.tr.couple > .heart { margin: 1px 0 1px 3px; font-size: 15px; line-height: 1.1; }
.heart { display: inline-block; animation: hgbeat 1.4s ease-in-out infinite; }
@keyframes hgbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } }
.su.couple { border: 2px solid #ff5a8c; background: linear-gradient(90deg, rgba(255,90,140,.28), rgba(0,0,0,.4) 50%, rgba(255,90,140,.28)); box-shadow: 0 0 10px rgba(255,90,140,.45); }
.su .av { width: 1.2em; height: 1.2em; }

/* final standings header: title + "Go to leaderboard" */
.sthead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.sthead h3 { margin: 0; }
.sthead .btn { text-decoration: none; }
#linkrow .btn { white-space: nowrap; }
.smack .sh > div { min-width: 0; }
.smack .shn { overflow-wrap: anywhere; line-height: 1.1; }
.vlog .av.big { width: 2.8em; height: 2.8em; }
/* trash-talk speaker avatar 25px bigger (owner 2026-11-17); the "on <name>" line under the speaker was removed */
.smack .av.big, .vlog .smack .av.big { width: calc(3.4em + 25px); height: calc(3.4em + 25px); }
.vlog .smack .av.big { width: calc(2.8em + 25px); height: calc(2.8em + 25px); }

/* Pre-game interviews on The Gong page (owner 2026-11-18): up to 5 tributes talk smack before the first round */
.ivs { margin: 8px 0 12px; }
.ivh { margin: 0 0 8px; font-weight: 900; font-size: 1.15em; color: #ff8a3d; letter-spacing: .02em; }
.ivgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.iv { background: rgba(255,138,61,.1); border: 1px solid rgba(255,138,61,.35); border-radius: 10px; padding: 8px 12px; min-width: 0; }
.iv .ivsh { display: flex; align-items: center; margin: 0 0 6px; font-weight: 900; font-size: 1.15em; line-height: 1.1; }
.iv .ivsh .shn { min-width: 0; overflow-wrap: anywhere; }
.iv .av.big { width: calc(2.6em + 10px); height: calc(2.6em + 10px); }
.iv blockquote { margin: 0; font-style: italic; line-height: 1.35; position: relative; padding-left: 1.1em; }
.iv blockquote::before { content: '\201C'; position: absolute; left: -.05em; top: -.25em; font-size: 2em; color: #ff8a3d; font-style: normal; }
.vlog .ivgrid { grid-template-columns: 1fr; gap: .45em; }
.vlog .iv { padding: .35em .6em; }
.vlog .iv .ivsh { margin-bottom: .25em; }
.vlog .iv .av.big { width: 2.2em; height: 2.2em; }
