/* Deadlock Activity arayüzü: deadlocklabs draft aracı ve oyun içi TAB ekranı görsel dili. */
@font-face { font-family: 'Archivo Black'; src: url('/fonts/ArchivoBlack-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter%5Bopsz%2Cwght%5D.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
  --page: #0b0b0f; --panel: #101015; --slot: #131317; --line: #1e1e24; --line-soft: #18181d;
  --text: #f2f2f2; --sub: #a3a3ad; --dim: #5d5d66;
  --red: #e13a4b; --red-dark: #1a0c10; --red-line: #5a1a24;
  --green: #3ddc6e; --green-bg: #11291a; --gold: #f5c542;
  --hk: #e5a024; --hk-banner: #e5a024; --hk-num: #3a2a0e; --hk-num-hot: #7a5418; --hk-row-a: #6a4818; --hk-row-b: #4a3212;
  --am: #3b82f6; --am-banner: #2f6fe0; --am-num: #16294d; --am-num-hot: #24508f; --am-row-a: #22365f; --am-row-b: #192948;
  --weapon: #c9802b; --vitality: #5e9c3a; --spirit: #9466cc;
  --black: 'Archivo Black', Impact, 'Arial Black', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--page); color: var(--text); font-family: Inter, 'Segoe UI', Arial, sans-serif; }
body { overflow-x: hidden; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
button:disabled { cursor: not-allowed; opacity: .45; }
input, select { font: inherit; color: var(--text); background: var(--slot); border: 1px solid var(--line); padding: 8px 10px; outline: none; }
input:focus, select:focus { border-color: #3a3a44; }
.black { font-family: var(--black); letter-spacing: .5px; }
.hk-c { color: var(--hk); } .am-c { color: var(--am); } .sub { color: var(--sub); } .dim { color: var(--dim); }

/* ---------- üst menü ---------- */
.topnav { display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #09090c; position: sticky; top: 0; z-index: 20; }
.topnav .brand { font-family: var(--black); font-size: 15px; margin-right: 14px; letter-spacing: 1px; }
.topnav .tab { padding: 8px 14px; font-family: var(--black); font-size: 12px; letter-spacing: 1px; color: var(--sub); border-bottom: 2px solid transparent; }
.topnav .tab.on { color: #fff; border-bottom-color: var(--hk); }
.topnav .tab .dot { display: inline-block; width: 7px; height: 7px; background: var(--red); margin-left: 6px; vertical-align: 1px; }
.topnav .snd { margin-left: auto; font-size: 16px; padding: 4px 10px; }
.topnav .me { margin-left: 8px; font-size: 13px; color: var(--sub); }
.topnav .me b { color: #fff; }
.btn { padding: 10px 16px; font-family: var(--black); font-size: 13px; letter-spacing: .5px; background: #1c1d23; border: 1px solid #2a2b33; }
.btn:hover:not(:disabled) { background: #24252d; }
.btn.primary { background: var(--hk); color: #120c02; border-color: var(--hk); }
.btn.blue { background: var(--am-banner); border-color: var(--am-banner); }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.white { background: #f2f2f2; color: #0b0b0f; border-color: #f2f2f2; }
.btn.small { padding: 6px 10px; font-size: 11px; }
.page { padding: 18px 20px 40px; max-width: 1500px; margin: 0 auto; }
.card { background: var(--panel); border: 1px solid var(--line-soft); padding: 18px; }
.h1 { font-family: var(--black); font-size: 30px; margin: 0 0 6px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1c1d23; border: 1px solid #33343c; padding: 12px 18px; z-index: 50; font-weight: 600; max-width: 90vw; }
.toast.err { border-color: var(--red); color: #ffb3bb; }
.center-msg { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 20px; }

/* ---------- lobi / takımlar ---------- */
.captains { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.capbox { padding: 16px; border: 1px solid var(--line); background: var(--slot); position: relative; overflow: hidden; }
.capbox.hk { background: linear-gradient(90deg, rgba(229,160,36,.22), rgba(229,160,36,0) 70%), var(--slot); border-color: rgba(229,160,36,.4); }
.capbox.am { background: linear-gradient(270deg, rgba(59,130,246,.22), rgba(59,130,246,0) 70%), var(--slot); border-color: rgba(59,130,246,.4); text-align: right; }
.capbox .label { font-family: var(--black); font-size: 12px; letter-spacing: 1px; }
.capbox .who { font-family: var(--black); font-size: 26px; margin-top: 6px; }
.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.player { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--slot); border: 1px solid var(--line-soft); }
.player .nm { font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player.lobby { flex-wrap: wrap; }
.player.lobby .nm { flex-basis: 100%; font-size: 16px; margin-bottom: 2px; }
.badge { font-size: 10px; font-weight: 800; padding: 3px 6px; letter-spacing: .5px; background: #24252d; color: var(--sub); white-space: nowrap; }
.badge.warn { background: #2a1d0a; color: #f0b443; }
.badge.cap { background: var(--gold); color: #1c1302; }
.teams2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.teamcol { background: var(--panel); border: 1px solid var(--line-soft); }
.teamcol .head { padding: 14px 16px; font-family: var(--black); font-size: 22px; display: flex; justify-content: space-between; align-items: baseline; }
.teamcol.hk .head { background: linear-gradient(90deg, rgba(229,160,36,.25), transparent); color: var(--hk); border-top: 3px solid var(--hk); }
.teamcol.am .head { background: linear-gradient(90deg, rgba(59,130,246,.25), transparent); color: var(--am); border-top: 3px solid var(--am); }
.teamcol .member { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line-soft); }
.teamcol .member .nm { flex: 1; font-weight: 700; }
.teamcol .member .hero { width: 34px; height: 44px; background: #18171c center/cover; }
.party { text-align: center; padding: 26px; background: linear-gradient(180deg, #15161b, #0f1014); border: 1px solid var(--line); margin-bottom: 14px; }
.party .code { font-family: var(--black); font-size: 54px; letter-spacing: 8px; margin: 8px 0; }

/* ---------- draft ---------- */
.draft { --side: 236px; padding: 0 0 14px; min-width: 1100px; }
.dh { position: relative; height: 96px; display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; background:
  linear-gradient(90deg, rgba(229,160,36,.28), rgba(229,160,36,0) 42%), linear-gradient(270deg, rgba(59,130,246,.28), rgba(59,130,246,0) 42%), var(--page); }
.dh .team { padding: 0 18px; min-width: 0; }
.dh .team.right { text-align: right; }
.dh .tname { font-family: var(--black); font-size: 30px; line-height: 1; }
.dh .pill { display: inline-block; margin-top: 8px; padding: 4px 8px; background: var(--green-bg); color: var(--green); font-size: 12px; font-weight: 800; }
.dh .members { font-size: 13px; color: var(--sub); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dh .bans { display: flex; gap: 8px; padding: 0 22px; height: 60px; align-items: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.banbox { width: 42px; height: 42px; background: var(--red-dark); border: 1px solid var(--red-line); display: grid; place-items: center; color: rgba(225,58,75,.55); font-size: 20px; position: relative; overflow: hidden; }
.banbox.hot { border: 2px solid var(--red); color: var(--red); }
.banbox.filled { background: #111 center/cover; filter: grayscale(1) brightness(.6); }
.slash::after { content: ''; position: absolute; left: -10%; top: 50%; width: 120%; height: 3px; background: var(--red); transform: rotate(-45deg); border-radius: 3px; }
.dh .clock { width: 190px; text-align: center; background: rgba(8,8,11,.65); height: 96px; display: flex; flex-direction: column; justify-content: center; }
.dh .phase { font-size: 12px; font-weight: 800; letter-spacing: 2px; }
.dh .time { font-family: var(--black); font-size: 44px; line-height: 1.05; }
.dh .turn { font-size: 13px; color: var(--sub); }
.progress { position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--line-soft); }
.progress i { position: absolute; top: 0; bottom: 0; transition: width .25s linear; }
.draft { width: 1500px; }
body.fit { overflow: hidden; }
.dbody { display: grid; grid-template-columns: var(--side) 1fr var(--side); gap: 12px; padding: 14px 12px 0; }
.slots .shead { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.slots .shead b { font-family: var(--black); font-weight: 400; }
.slot { position: relative; height: 96px; margin-bottom: 8px; background: var(--slot); border: 1px solid var(--line-soft); overflow: hidden; }
.slot .num { position: absolute; bottom: -6px; font-family: var(--black); font-size: 64px; line-height: 1; }
.slots.left .slot .num { right: 14px; } .slots.right .slot .num { left: 14px; }
.slots.left .num { color: var(--hk-num); } .slots.right .num { color: var(--am-num); }
.slot.choosing { border: 2px solid currentColor; }
.slots.left .slot.choosing { color: var(--hk); background: repeating-linear-gradient(45deg, rgba(229,160,36,.16) 0 8px, transparent 8px 22px), var(--slot); }
.slots.right .slot.choosing { color: var(--am); background: repeating-linear-gradient(45deg, rgba(59,130,246,.16) 0 8px, transparent 8px 22px), var(--slot); }
.slots.left .slot.choosing .num { color: var(--hk-num-hot); } .slots.right .slot.choosing .num { color: var(--am-num-hot); }
.slot .choosing-tag { position: absolute; top: 10px; padding: 5px 10px; font-family: var(--black); font-size: 15px; color: var(--page); }
.slots.left .choosing-tag { left: 10px; background: var(--hk); } .slots.right .choosing-tag { right: 10px; background: var(--am); }
.slot.picked { background: #18171c center 40%/cover; }
.slot.picked::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(11,11,15,.92)); }
.slots.left .slot.picked::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(229,160,36,.28), transparent 60%); }
.slots.right .slot.picked::after { content: ''; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(59,130,246,.28), transparent 60%); }
.slot.picked .hname { position: absolute; left: 12px; bottom: 10px; z-index: 1; font-family: var(--black); font-size: 22px; text-transform: uppercase; }
.slot.picked .pnum { position: absolute; top: 8px; z-index: 1; font-family: var(--black); font-size: 16px; }
.slots.left .pnum { right: 14px; color: var(--hk); } .slots.right .pnum { left: 14px; color: var(--am); }
.banner { position: relative; height: 78px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.banner .t { display: flex; align-items: center; gap: 14px; }
.banner .title { font-family: var(--black); font-size: 36px; line-height: 1; }
.banner .act { background: var(--page); color: #fff; font-family: var(--black); font-size: 17px; padding: 6px 11px; }
.banner .sub2 { font-size: 14px; font-weight: 600; margin-top: 6px; opacity: .9; }
.banner .chev { font-family: var(--black); font-size: 28px; }
.banner.ban { background: var(--red); color: #fff; }
.banner.pick-hk { background: var(--hk-banner); color: var(--page); }
.banner.pick-am { background: var(--am-banner); color: #fff; }
.banner.done { background: #15161b; border: 1px solid #26272e; }
.timeline { margin-top: 10px; background: var(--panel); border: 1px solid var(--line-soft); padding: 10px 14px 12px; display: flex; justify-content: center; gap: 30px; }
.tgroup .tl { font-family: var(--black); font-size: 11px; letter-spacing: 1px; color: var(--sub); margin-bottom: 6px; }
.tgroup.cur .tl { color: #fff; }
.tgroup .boxes { display: flex; gap: 7px; }
.cluster { display: flex; gap: 3px; padding: 3px; border: 2px solid; background: var(--page); }
.tbox { width: 26px; height: 26px; background: #121216 center 20%/cover; position: relative; overflow: hidden; }
.tbox.now { background: #f2f2f2; }
.tbox.ban.filled { filter: grayscale(1) brightness(.6); }
.pool-wrap { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr); gap: 12px; margin-top: 10px; }
.pool { background: var(--panel); border: 1px solid var(--line-soft); padding: 12px; }
.pool .bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.pool .bar input { width: 190px; }
.role { padding: 6px 10px; font-family: var(--black); font-size: 11px; background: #1a1b21; color: var(--sub); }
.role.on { background: #f2f2f2; color: var(--page); }
.pool .free { margin-left: auto; font-size: 13px; color: var(--sub); } .pool .free b { color: #fff; }
.pool .hint { font-size: 13px; color: var(--sub); margin: -2px 0 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.hcard { position: relative; aspect-ratio: 3 / 4; background: #16171c center 12%/cover; border: 1px solid rgba(255,255,255,.06); overflow: hidden; }
.hcard:hover { outline: 2px solid rgba(255,255,255,.5); }
.hcard.sel { outline: 2px solid #fff; }
.hcard .n { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 2px 4px; background: linear-gradient(180deg, transparent, rgba(11,11,15,.92)); font-size: 9.5px; font-weight: 800; text-align: center; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard.banned { filter: grayscale(1) brightness(.35); cursor: not-allowed; }
.hcard.banned::after { content: ''; position: absolute; left: -10%; top: 50%; width: 120%; height: 3px; background: var(--red); transform: rotate(-52deg); filter: brightness(2.8); }
.hcard.picked { filter: brightness(.45) saturate(.6); cursor: not-allowed; }
.hcard .tri { position: absolute; top: 0; right: 0; width: 0; height: 0; border-top: 16px solid; border-left: 16px solid transparent; }
.hcard.hidden { display: none; }
.spot { position: relative; min-height: 340px; overflow: hidden; border: 1px solid var(--line-soft); container-type: inline-size;
  background: radial-gradient(ellipse at 55% 45%, #172440, #0c0e16 75%); }
.spot .bgart { position: absolute; inset: 0; background: center/cover no-repeat; opacity: .55; }
.spot .bgart::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0c0e16 10%, rgba(12,14,22,.35) 60%, rgba(12,14,22,.1)); }
.spot .art { position: absolute; right: 4%; bottom: 0; height: 92%; aspect-ratio: 280 / 380; max-width: 70%; background: center bottom/contain no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent);
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
.spot .art.ban, .spot .bgart.ban { filter: grayscale(1) brightness(.6); }
.spot .logo { position: relative; margin: 6px 0 12px; }
.spot .logo img { display: block; height: 76px; max-width: 70%; object-fit: contain; object-position: left center; }
.spot .logo img + span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.spot .logo span { font-family: var(--black); font-size: 38px; text-transform: uppercase; }
.spot .info { position: absolute; left: 22px; top: 22px; right: 22px; }
.spot .info .k { font-size: 14px; color: var(--sub); }
.spot .info .hn { font-family: var(--black); font-size: 38px; text-transform: uppercase; margin: 4px 0 10px; }
.spot .tags { display: flex; gap: 6px; }
.spot .tags span { font-family: var(--black); font-size: 12px; padding: 5px 8px; }
.spot .bottom { position: absolute; left: 22px; right: 22px; bottom: 20px; }
.spot .who { font-family: var(--black); font-size: min(52px, 11cqw); line-height: 1; }
.spot .doing { font-weight: 600; font-size: 17px; margin-top: 8px; }
.spot .lock { margin-top: 12px; font-size: 18px; padding: 14px 22px; }
.controls { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }

/* ---------- maç sonu (TAB ekranı) ---------- */
.tabsb { background: radial-gradient(ellipse at 50% 30%, #17171c, var(--page) 70%); padding: 24px 26px 18px; min-width: 1180px; }
.tabsb .meta { text-align: right; }
.tabsb .meta .t { font-family: var(--black); font-size: 18px; letter-spacing: 3px; color: #8e8e96; }
.tabsb .meta .s { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--dim); }
.tteam { margin-top: 14px; }
.thead { display: grid; align-items: end; padding: 0 0 6px; }
.thead .tn { font-family: var(--black); font-size: 28px; display: flex; align-items: center; gap: 12px; }
.thead .tn .res { font-family: Inter, sans-serif; font-size: 13px; font-weight: 800; padding: 3px 8px; }
.res.win { background: #e7b531; color: #2b1a02; } .res.loss { background: #3a3a42; color: var(--sub); }
.cols, .prow { display: grid; grid-template-columns: 290px 30px 70px 46px 46px 46px 84px 84px 84px minmax(300px, 1fr) 160px; align-items: center; gap: 0; }
.cols span { font-size: 10px; font-weight: 800; letter-spacing: 1px; color: #8e8e96; text-align: center; }
.cols span.l { text-align: left; }
.prow { height: 46px; margin-bottom: 4px; cursor: pointer; }
.prow.hk { background: linear-gradient(90deg, var(--hk-row-a), var(--hk-row-b)); }
.prow.am { background: linear-gradient(90deg, var(--am-row-a), var(--am-row-b)); }
.prow.mvp { outline: 2px solid rgba(245,197,66,.8); outline-offset: -2px; background-blend-mode: screen; }
.prow.focus { outline: 2px solid #fff; outline-offset: -2px; }
.prow .who { display: flex; align-items: center; gap: 10px; padding-left: 10px; min-width: 0; }
.prow .av { width: 34px; height: 34px; border-radius: 50%; background: #25232a center/cover; border: 1.5px solid rgba(255,255,255,.35); flex: none; }
.prow .nm { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .hn { font-size: 12px; color: rgba(242,242,242,.6); }
.prow .v { text-align: center; font-weight: 800; font-size: 14px; position: relative; }
.prow .v.d { color: rgba(242,242,242,.55); }
.star { display: inline-grid; place-items: center; width: 36px; height: 36px; font-family: var(--black); font-size: 12px;
  clip-path: polygon(50% 0%, 61% 13%, 77% 6%, 79% 22%, 95% 25%, 88% 40%, 100% 50%, 88% 60%, 95% 75%, 79% 78%, 77% 94%, 61% 87%, 50% 100%, 39% 87%, 23% 94%, 21% 78%, 5% 75%, 12% 60%, 0% 50%, 12% 40%, 5% 25%, 21% 22%, 23% 6%, 39% 13%); }
.prow.hk .star { background: #f0a830; color: #3a1505; } .prow.am .star { background: #3d6fd6; color: #fff; }
.items { display: flex; gap: 3px; padding-left: 8px; }
.item { width: 28px; height: 28px; background: #4a4a52 center/80% no-repeat; border: 1px solid rgba(0,0,0,.45); }
.item.weapon { background-color: var(--weapon); } .item.vitality { background-color: var(--vitality); } .item.spirit { background-color: var(--spirit); }
.abils { display: flex; gap: 8px; justify-content: center; }
.abil { position: relative; width: 28px; height: 28px; border-radius: 50%; background: #ececf0; display: grid; place-items: center; }
.abil i { width: 20px; height: 20px; background: center/contain no-repeat; filter: brightness(0); }
.abil .pips { position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; }
.abil .pips b { width: 5px; height: 3px; background: rgba(255,255,255,.2); } .abil .pips b.on { background: var(--gold); }
.total { margin: 2px 0 0 360px; width: 70px; text-align: center; font-weight: 800; font-size: 13px; color: var(--sub); background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.12); padding: 4px 0; }
.extras { display: grid; grid-template-columns: 420px 1fr; gap: 14px; margin-top: 18px; }
.mapbox { position: relative; background: #0f1014; border: 1px solid var(--line-soft); padding: 10px; }
.mapbox canvas { width: 100%; height: auto; display: block; }
.chartbox { background: #0f1014; border: 1px solid var(--line-soft); padding: 14px; }
.chartbox svg { width: 100%; height: 260px; display: block; }
.legend { font-size: 12px; color: var(--sub); margin-top: 6px; }

/* ---------- sıralama ---------- */
.lb { width: 100%; border-collapse: collapse; }
.lb th { text-align: left; font-size: 11px; letter-spacing: 1px; color: var(--sub); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.lb td { padding: 10px; border-bottom: 1px solid var(--line-soft); font-weight: 600; }
.lb td.p { font-family: var(--black); color: var(--hk); }
.lb tr:first-child td { background: rgba(229,160,36,.08); }

@media (max-width: 1100px) { .extras, .teams2, .captains { grid-template-columns: 1fr; } }
