/* Veto Tool · charcoal and MW4 yellow. Industry headings, DM Sans text, map art. */
[hidden] { display: none !important; }
@font-face { font-family: "Ind"; font-weight: 100 900; src: local("Industry Ultra"), local("Industry-Ultra"), local("Industry Black"), local("Industry-Black"), url(/fonts/saira-900.woff2) format("woff2"); }
@font-face { font-family: "IndB"; font-weight: 100 900; src: local("Industry Bold"), local("Industry-Bold"), local("Industry Demi"), local("Industry-Demi"), url(/fonts/saira-800.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; src: url(/fonts/dm-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; src: url(/fonts/dm-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; src: url(/fonts/dm-sans-latin-700-normal.woff2) format("woff2"); }
:root {
  --bg: #0a0a0a; --p1: #131313; --p2: #1b1b1b; --p3: #272727; --line: #2b2b2b; --line2: #474747;
  --tx: #f1f1ec; --mut: #9c9c94; --dim: #686862;
  --blue: #2d6bff; --blueT: #7aa2ff; --red: #ff3b3b; --redT: #ff7676;
  --ok: #2fd27a; --warn: #ff7a1a; --cy: #ffcc00; --cyD: #241d00; --ink: #141000;   /* --cy is the accent (MW4 yellow); --ink is text on it */
  --head: "Ind", "industry", "Industry", system-ui, sans-serif; --lab: "IndB", "industry", "Industry", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--tx); font: 14px/1.45 var(--body); font-variant-numeric: tabular-nums; }
body { min-height: 100vh; display: flex; flex-direction: column;
  border-top: 3px solid var(--cy); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blueT); text-decoration: none; }
.home { color: var(--blueT); } .away { color: var(--redT); }

/* labels: small Industry caps */
.k, .top .meta, .top .link em, .foot, th { font-family: var(--lab); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--mut); }
.k b { color: var(--cy); font-weight: inherit; margin-right: 8px; }
.panel > .k:first-child { color: var(--tx); font-size: 12px; }

.top { display: flex; align-items: center; gap: 18px; padding: 0 20px; height: 52px; border-bottom: 1px solid var(--line); background: #0d0d0d; position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--tx); }
.brand i { width: 22px; height: 22px; background: var(--cy); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.brand b { font-family: var(--head); font-size: 18px; letter-spacing: .08em; text-transform: uppercase; }
.brand span { font-family: var(--lab); font-size: 10.5px; letter-spacing: .22em; color: var(--mut); }
.top .meta { border-left: 1px solid var(--line); padding-left: 18px; }
.top .meta b { color: var(--tx); font-weight: inherit; }
.sp { flex: 1; }
.top .link { display: flex; align-items: center; gap: 7px; }
.top .link i { width: 7px; height: 7px; background: var(--dim); }
.top .link.ok i { background: var(--ok); box-shadow: 0 0 8px var(--ok); } .top .link.ok em { color: var(--ok); }
.top .link.bad i { background: var(--warn); } .top .link.bad em { color: var(--warn); }
main { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 20px 16px 40px; }
main.narrow { max-width: 900px; }
.foot { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 9.5px; color: var(--dim); }
.foot b { color: var(--cy); font-weight: inherit; }
.foot #notice { font-family: var(--body); letter-spacing: 0; text-transform: none; font-size: 11.5px; margin-left: auto; }
.foot a { color: var(--dim); } .foot a:hover { color: var(--tx); }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--p3); border: 1px solid var(--cy); padding: 9px 16px; font-size: 13px; z-index: 9; }

/* panels with corner ticks */
.panel { position: relative; background: var(--p1); border: 1px solid var(--line); padding: 16px; }
.panel > .k:first-child { margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
h1 { font-family: var(--head); font-size: 30px; letter-spacing: .03em; margin: 0; text-transform: uppercase; line-height: 1.05; }
.sub { color: var(--mut); margin: 6px 0 0; }
.btn { background: var(--p2); border: 1px solid var(--line2); padding: 9px 14px; font-family: var(--lab); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--tx); display: inline-block; }
.btn:hover { border-color: var(--cy); color: var(--cy); }
.btn.go { background: var(--cy); border-color: var(--cy); color: var(--ink); font-family: var(--head); font-size: 15px; padding: 13px 18px; }
.btn.go:hover { color: var(--ink); filter: brightness(1.1); } .btn.go:disabled { opacity: .35; cursor: not-allowed; }
.btn.warn { border-color: var(--warn); color: var(--warn); }
.btn.role { text-align: left; } .btn.role span { display: block; font: 12px var(--body); letter-spacing: 0; text-transform: none; color: var(--mut); margin-top: 3px; }
input[type=text], input[type=password], textarea { width: 100%; background: #0e0e0e; border: 1px solid var(--line2); padding: 10px 12px; }
input:focus, textarea:focus { outline: 0; border-color: var(--cy); }
textarea { resize: vertical; line-height: 1.6; }
.err { color: var(--warn); min-height: 20px; margin-top: 10px; }
.chip { display: inline-block; font-family: var(--lab); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 1px 6px; border: 1px solid currentColor; white-space: nowrap; background: rgba(9, 11, 14, .7); }
.chip { color: #d9d9d2; } .chip.n { color: var(--mut); }

/* small map tiles (start page pool, bans, admin) */
.thumb { position: relative; display: inline-block; width: 124px; aspect-ratio: 16 / 9; background: #0e0e0e center / cover no-repeat; border: 1px solid var(--line2); overflow: hidden; vertical-align: middle; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(6, 8, 11, .92)); }
.thumb b { position: absolute; left: 7px; bottom: 5px; z-index: 1; font-family: var(--lab); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.thumb .chip { position: absolute; right: 5px; top: 5px; z-index: 1; font-size: 8.5px; }
.thumb.ban { filter: saturate(.25); } .thumb.ban b { text-decoration: line-through; text-decoration-color: var(--redT); }
.thumb.sm { width: 54px; margin-right: 8px; } .thumb.sm::after { display: none; }
.thumbs, .banrow { display: flex; flex-wrap: wrap; gap: 8px; }

/* start page */
.hero { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-bottom: 16px; }
.hero > div:first-child { flex: 1; min-width: 260px; }
.joinbox { display: flex; gap: 8px; align-items: center; }
.joinbox input { width: 150px; font-family: var(--head); font-size: 18px; letter-spacing: .28em; text-transform: uppercase; text-align: center; }
.cfg { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; padding: 7px 0; }
.row + .row { border-top: 1px solid var(--line); }
.opt { display: flex; flex-wrap: wrap; gap: 6px; }
.opt button { background: transparent; border: 1px solid var(--line2); padding: 6px 11px; font-family: var(--lab); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.opt button:hover { color: var(--tx); }
.opt button.on { border-color: var(--cy); color: var(--ink); background: var(--cy); }
.poolrow { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: start; padding: 8px 0; }
.poolrow > .chip { justify-self: start; }
.poolrow + .poolrow { border-top: 1px solid var(--line); }

/* lobby */
.vs { font-family: var(--head); font-size: 28px; text-transform: uppercase; letter-spacing: .02em; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; line-height: 1.1; }
.vs em { font-family: var(--lab); font-size: 11px; letter-spacing: .2em; color: var(--dim); font-style: normal; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.term { border: 1px solid var(--line); border-left: 3px solid var(--dim); padding: 10px 12px; background: var(--p2); }
.term.home.on { border-left-color: var(--blue); } .term.away.on { border-left-color: var(--red); }
.term b { display: block; font-family: var(--head); text-transform: uppercase; font-size: 16px; }
.keybox { display: flex; align-items: center; gap: 14px; border: 1px dashed var(--line2); padding: 12px 14px; margin-top: 8px; }
.keybox .code { font-family: var(--head); font-size: 34px; letter-spacing: .3em; color: var(--cy); flex: 1; }
.keybox .url { flex: 1; color: var(--mut); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wait { color: var(--mut); margin: 16px 0 10px; }
.you { font-size: 12.5px; color: var(--mut); margin: 0 0 10px; }

/* veto: matchup bar */
.match { display: grid; grid-template-columns: 1fr 250px 1fr; border: 1px solid var(--line); background: var(--p1); }
.side { padding: 14px 18px; border-top: 3px solid var(--dim); opacity: .5; min-width: 0; transition: opacity .25s; }
.side.away { text-align: right; }
.side.home.on { border-top-color: var(--blue); background: var(--p2); opacity: 1; }
.side.away.on { border-top-color: var(--red); background: var(--p2); opacity: 1; }
.side b { display: block; font-family: var(--head); font-size: 28px; text-transform: uppercase; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .k { margin-top: 4px; }
.side.on .k { color: var(--tx); }
.mid { border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 12px 16px; text-align: center; background: #0e0e0e; }
.mid .clock { font-family: var(--head); font-size: 30px; letter-spacing: .06em; line-height: 1.15; }
.seq { display: flex; gap: 3px; margin-top: 8px; }
.seq i { flex: 1; height: 5px; background: var(--p3); }
.seq i.d { background: var(--mut); } .seq i.c { background: var(--cy); box-shadow: 0 0 8px var(--cy); }
.cmd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 11px 16px; border: 1px solid var(--line); border-top: 0; background: var(--p2); font-family: var(--lab); letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.cmd.mine { background: var(--cy); border-color: var(--cy); color: var(--ink); font-family: var(--head); }
.cmd.mine .lastact, .cmd.mine .lastact b, .cmd.mine .lastact span { color: var(--ink); }
.cmd.mine .btn.warn { background: var(--ink); border-color: var(--ink); color: var(--cy); }
.cmd .lastact { margin-left: auto; font-family: var(--body); letter-spacing: 0; text-transform: none; font-size: 12.5px; color: var(--mut); }
.cmd .lastact b { color: var(--tx); }

/* stage (left) and the series + feed column (right) */
.deck { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; margin-top: 14px; align-items: start; }
.stage { min-width: 0; }
.shead { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.shead b { font-family: var(--head); font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }
.track { margin-left: auto; display: flex; gap: 4px; }
.track i { font-family: var(--lab); font-style: normal; font-size: 9.5px; letter-spacing: .14em; padding: 2px 8px; border: 1px solid var(--line); color: var(--dim); }
.track i.d { color: var(--mut); border-color: var(--line2); } .track i.c { color: var(--ink); background: var(--cy); border-color: var(--cy); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cards.n3 { grid-template-columns: repeat(3, 1fr); } .cards.n4 { grid-template-columns: repeat(2, 1fr); }
.mcard { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--line2); background: #0e0e0e center / cover no-repeat; overflow: hidden; color: var(--tx); text-align: left; transition: transform .16s, border-color .16s, box-shadow .16s; }
.mcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(6,8,11,.25), transparent 35%, rgba(6, 8, 11, .92)); transition: opacity .16s; }
.mcard > * { position: absolute; z-index: 1; }
.mcard .n { left: 10px; top: 8px; font-family: var(--lab); font-size: 10.5px; letter-spacing: .16em; color: rgba(255,255,255,.7); }
.mcard b { left: 12px; bottom: 9px; font-family: var(--head); font-size: 21px; letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 2px 10px #000; }
.mcard .go { right: 10px; bottom: 12px; font-family: var(--lab); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--cy); padding: 3px 9px; opacity: 0; transform: translateY(4px); transition: .16s; }
.mcard .tagx { right: 0; top: 0; font-family: var(--lab); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; background: rgba(6,8,11,.85); }
button.mcard.open:hover { border-color: var(--cy); box-shadow: 0 0 0 2px var(--cy); transform: translateY(-2px); }
button.mcard.open:hover .go { opacity: 1; transform: none; }
.mcard.ban { filter: grayscale(1) brightness(.55); }
.mcard.ban::before { content: ""; position: absolute; inset: 0; z-index: 1; background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.05) 14px 16px); }
.mcard.ban b { text-decoration: line-through; color: var(--mut); }
.mcard.ban.home .tagx { color: var(--blueT); } .mcard.ban.away .tagx { color: var(--redT); }
.mcard.pick { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.mcard.pick .tagx { color: #04180d; background: var(--ok); }

/* a picked map: its flythrough, with the side choice on top */
.fly { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--cy); background: #000; overflow: hidden; }
.flyslot { position: absolute; inset: 0; background: center / cover no-repeat; animation: drift 24s ease-in-out infinite alternate; }
.flyslot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.flyslot:has(video) { animation: none; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08); } }
.fly::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(6,8,11,.65), transparent 28%, transparent 48%, rgba(6, 8, 11, .92)); pointer-events: none; }
.flyinfo { position: absolute; left: 18px; top: 14px; z-index: 2; }
.flyinfo b { display: block; font-family: var(--head); font-size: 44px; line-height: 1; letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 3px 18px #000; margin-top: 4px; }
.flyinfo .k { color: var(--tx); }
.flysides { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; }
.flysides > .k { color: var(--tx); margin-bottom: 8px; }
.sidecard { position: relative; display: block; width: 100%; height: clamp(96px, 15vw, 190px); border: 1px solid var(--line2); background: rgba(12, 15, 19, .82) center / cover no-repeat; overflow: hidden; padding: 0; color: var(--tx); text-align: left; backdrop-filter: blur(4px); }
.sidecard.nopic { height: 72px; } .sidecard.nopic::after { display: none; }
.sidecard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(6, 8, 11, .9)); }
.sidecard b, .sidecard span { z-index: 1; }
.sidecard b { position: absolute; left: 14px; bottom: 10px; font-family: var(--head); font-size: 22px; text-transform: uppercase; letter-spacing: .04em; text-shadow: 0 2px 10px #000; }
.sidecard span { position: absolute; right: 12px; bottom: 12px; font-family: var(--lab); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--cy); padding: 3px 9px; }
button.sidecard:hover { border-color: var(--cy); box-shadow: inset 0 0 0 2px var(--cy); }
@media (prefers-reduced-motion: reduce) { .flyslot { animation: none; } .mcard, .mcard .go { transition: none; } }

/* series: the five maps */
.series { display: flex; flex-direction: column; gap: 6px; }
.slot { position: relative; border: 1px solid var(--line); background: var(--p1) center / cover no-repeat; padding: 9px 12px; min-height: 64px; overflow: hidden; }
.slot::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,11,14,.95) 35%, rgba(9,11,14,.45)); }
.slot > * { position: relative; }
.slot.cur { border-color: var(--cy); box-shadow: inset 0 0 0 1px var(--cy); }
.slot .k { display: flex; justify-content: space-between; gap: 6px; }
.slot b { display: block; font-family: var(--head); font-size: 17px; text-transform: uppercase; margin: 2px 0 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot b.tbd { color: var(--dim); }
.slot > span { font-size: 11.5px; color: var(--mut); display: block; }
.feed { border: 1px solid var(--line); background: #0e0e0e; max-height: 340px; overflow: auto; margin-top: 10px; }
.feed .hd { padding: 9px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #0e0e0e; }
.feed p { margin: 0; padding: 7px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; }
.feed p i { font-family: var(--lab); font-style: normal; color: var(--dim); font-size: 10.5px; padding-top: 2px; }
.feed p em { font-style: normal; color: var(--dim); font-size: 11.5px; }
.feed p.none { display: block; color: var(--dim); }

/* final */
.fin { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 4px 0 14px; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.fin .acts { margin-left: auto; }
.series.big { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.series.big .slot { min-height: 0; aspect-ratio: 3 / 4; padding: 12px; display: flex; flex-direction: column; border-color: var(--line2); }
.series.big .slot::before { background: linear-gradient(rgba(9,11,14,.5), rgba(9,11,14,.1) 35%, rgba(9,11,14,.96) 72%); }
.series.big .slot b { font-size: 24px; margin-top: auto; white-space: normal; line-height: 1.05; padding-bottom: 4px; }
.series.big .slot > span { font-size: 12.5px; line-height: 1.6; }
.bans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
main > .feed { max-height: none; margin-top: 12px; }

/* caster page + admin tables */
.tend { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 5px 8px; font-size: 9.5px; }
td { padding: 6px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
td.num, th.num { text-align: right; }
tr.gone td { opacity: .38; }
.miss { color: var(--warn); font-size: 12px; } .na { color: var(--dim); }
.pooled { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pooled textarea { margin-top: 8px; }

@media (max-width: 980px) {
  .deck { grid-template-columns: 1fr; } .series { display: grid; grid-template-columns: repeat(2, 1fr); } .series.big { grid-template-columns: repeat(2, 1fr); }
  .cfg, .two, .bans, .tend, .pooled { grid-template-columns: 1fr; } .flysides .two { grid-template-columns: 1fr 1fr; }
  .cards, .cards.n3 { grid-template-columns: repeat(2, 1fr); } .poolrow { grid-template-columns: 1fr; }
  .match { grid-template-columns: 1fr 1fr; } .mid { grid-column: 1 / -1; grid-row: 1; border: 0; border-bottom: 1px solid var(--line); }
  .side b { font-size: 18px; } .top .meta { display: none; } .keybox .code { font-size: 24px; } .cmd .lastact { margin-left: 0; width: 100%; }
  .flyinfo b { font-size: 26px; } .sidecard { height: 64px; } .mcard b { font-size: 15px; } .thumb { width: 96px; }
}
