/* VersusRED ana sayfa. Bağımsız: app.css yüklenmez.
   Yazı ölçeği (px): 12 14 16 20 26 36 48 64. Boşluk: 4 8 12 16 24 32 48.
   Yarıçap kademeleri: afiş 32, harita kartı 24, karo 24, satır 16, düğme 14, hap 999. */

:root {
  --ink: #0a090d;
  --ink-2: #131118;
  --line: rgba(255, 255, 255, 0.08);
  --fg: #f6f4f8;
  --fg-2: rgba(246, 244, 248, 0.68);
  --fg-3: rgba(246, 244, 248, 0.6);
  --red: #e5202d;
  --red-hi: #ff3b3f;
  --red-lo: #7c0a14;
  --me: #3141dc;
  --me-lo: #141a6e;
  --ct: #8db7ff;
  --t: #f2bd4a;
  --ok: #4be08a;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --text: 'Onest', system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Harita renkleri: renk tekerinde aralıklı dokuz ton, hiçbiri marka kırmızısına yakın değil. */
.m-de_dust2 { --c: #e0741c; }
.m-de_inferno { --c: #d29a14; }
.m-de_train { --c: #7c9022; }
.m-de_ancient { --c: #23935a; }
.m-de_anubis { --c: #0d97a8; }
.m-de_nuke { --c: #2a6fdc; }
.m-de_vertigo { --c: #4b4cd2; }
.m-de_mirage { --c: #8343d2; }
.m-de_overpass { --c: #bf358c; }
.m-other { --c: #4a4655; }

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--fg);
  font: 400 16px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }

:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 16px; top: -64px; z-index: 50;
  background: #fff; color: var(--ink); padding: 8px 16px; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

/* Üstten ışık sızması */
.leak {
  position: absolute; inset: 0 0 auto; height: 560px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 70% at 22% 0%, rgba(229, 32, 45, 0.55), transparent 72%),
    radial-gradient(30% 60% at 52% 0%, rgba(255, 128, 40, 0.32), transparent 72%),
    radial-gradient(36% 70% at 84% 0%, rgba(118, 58, 230, 0.42), transparent 72%);
  filter: blur(36px);
}

/* ---------- üst bar ---------- */
.bar {
  position: relative; z-index: 5;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px;
  height: 72px; padding: 0 32px;
}
/* Logo: /assets/logo.svg (VERSUS/RED, harfler şekle çevrilmiş). Yazı ekran okuyucu için aria-label'da. */
.brand {
  align-self: center; flex: none;
  width: 216px; height: 28px; /* büyük harf 20px, üst/alt kenarı tam piksele denk gelir */
  background: url(/assets/logo.svg) 0 0 / 100% 100% no-repeat;
  font-size: 0; color: transparent; text-decoration: none; overflow: hidden; white-space: nowrap;
}
@media (max-width: 520px) { .brand { width: 162px; height: 22px; background-size: 162px 21px; } /* büyük harf 15px; 22: ortalanınca tam piksel */ }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 16px; border-radius: 999px; text-decoration: none;
  color: var(--fg-2); font-weight: 500; font-size: 16px;
}
.nav a:hover { color: #fff; }
.nav a[aria-current='page'] { color: #fff; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.bar-end { display: flex; align-items: center; gap: 12px; }
.srv {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 999px; font-size: 14px; color: var(--fg-2); text-decoration: none;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.srv b { color: #fff; font-weight: 600; }
.play {
  display: inline-flex; align-items: center; height: 40px; padding: 0 24px; border-radius: 999px;
  background: linear-gradient(180deg, var(--red-hi), var(--red)); color: #fff; text-decoration: none;
  font: 800 16px/1 var(--display);
  box-shadow: 0 8px 24px -8px rgba(229, 32, 45, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.play:hover { filter: brightness(1.08); }
.who-me { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; padding: 4px 12px 4px 4px; border-radius: 999px; }
.who-me:hover { background: rgba(255, 255, 255, 0.07); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-3); flex: none; display: inline-block; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(75, 224, 138, 0.2); }
.dot.live { background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3); }
.dot.off { background: #8a8494; }

/* ---------- avatarlar ---------- */
.av { border-radius: 50%; object-fit: cover; background: #2a2631; flex: none; }
.av-ph { display: inline-grid; place-items: center; font-weight: 700; color: var(--fg-2); }
.av-22 { width: 22px; height: 22px; font-size: 12px; }
.av-28 { width: 28px; height: 28px; font-size: 12px; }
.av-32 { width: 32px; height: 32px; font-size: 14px; }
.av-36 { width: 36px; height: 36px; font-size: 14px; }
.av-44 { width: 44px; height: 44px; font-size: 16px; }

/* ---------- düğmeler ---------- */
.glass-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 14px; cursor: pointer;
  font: 600 16px/1 var(--text); color: #fff; text-decoration: none; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px) saturate(1.4);
  transition: background 0.15s, transform 0.15s;
}
.glass-btn:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.22)); }
.glass-btn:active { transform: translateY(1px); }
.glass-btn.lg { height: 52px; padding: 0 24px; }
.glass-btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.glass-btn.ghost { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.28); box-shadow: none; }
.glass-btn.ghost:hover { background: rgba(255, 255, 255, 0.14); }
.glass-btn.solid { background: #fff; color: var(--ink); border-color: #fff; }
.glass-btn:disabled { opacity: 0.6; cursor: default; }

/* ---------- kabuk ---------- */
.shell {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; gap: 32px;
  padding: 16px 32px 48px; align-items: start;
}
.mid { min-width: 0; outline: none; }
.rail { min-width: 0; padding-top: 48px; }
.rail-h {
  display: flex; align-items: baseline; gap: 8px;
  font: 800 20px/1.2 var(--display); margin-bottom: 16px;
}
.rail-h small { font: 500 14px/1 var(--text); color: var(--fg-3); }
.empty { color: var(--fg-2); font-size: 14px; margin-bottom: 12px; }
.boot-err { padding: 48px 0; color: var(--fg-2); }

/* ---------- ortak yüzey katmanları: renk alanı + gren + çapraz ışık ---------- */
.grain, .streaks { position: absolute; inset: 0; pointer-events: none; }
.grain {
  background: url('/assets/gren.svg') repeat;
  background-size: 220px;
  mix-blend-mode: overlay; opacity: 0.55;
}
.streaks {
  background: linear-gradient(112deg,
    transparent 0 46%, rgba(255, 255, 255, 0.16) 46% 51%, transparent 51% 58%,
    rgba(255, 255, 255, 0.09) 58% 60.5%, transparent 60.5%);
  filter: blur(5px);
  mix-blend-mode: soft-light;
}

/* ---------- afişler ---------- */
.banners {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 24px;
  margin-top: 48px;
}
.banner { position: relative; min-height: 420px; border-radius: 32px; isolation: isolate; display: flex; flex-direction: column; }
.b-bg { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: -1; }
.b-body { position: relative; z-index: 2; padding: 32px 40px; display: flex; flex-direction: column; flex: 1; }

.b-lobby .b-bg {
  background:
    radial-gradient(50% 80% at 92% 6%, rgba(255, 110, 80, 0.7), transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(80, 0, 12, 0.7), transparent 70%),
    linear-gradient(135deg, #d81d29 0%, #b5101c 48%, #7e0914 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.b-lobby .b-body { max-width: 58%; }
.b-lobby { box-shadow: 0 40px 80px -40px rgba(229, 32, 45, 0.7); }

.b-state {
  display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  color: #fff; margin-bottom: 12px;
}
.b-owner { margin-left: 8px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.3); font-weight: 500; color: #fff; }
.b-title {
  font: 900 64px/0.95 var(--display); letter-spacing: -0.02em;
  text-wrap: balance;
}
.b-title.sm { font-size: 26px; line-height: 1.1; }
.b-sub { margin-top: 12px; font-size: 16px; color: #fff; max-width: 44ch; }
.b-fine { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.b-act { margin-top: auto; padding-top: 24px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.b-lead { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, 0.9); }
.b-lead img { width: 28px; height: 28px; }
.b-lead b { color: #fff; }

/* kadro */
.roster { margin-top: 20px; display: grid; gap: 8px; }
.side { display: flex; align-items: center; gap: 12px; }
.side-h { display: contents; }
.side-h b {
  font: 800 12px/1 var(--display);
  display: grid; place-items: center; width: 36px; height: 28px; border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}
.side-ct .side-h b { color: var(--ct); }
.side-t .side-h b { color: var(--t); }
.slots { display: flex; gap: 6px; }
.slot { position: relative; width: 44px; height: 44px; }
.slot .av { width: 44px; height: 44px; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25); }
.slot:not(.rdy) .av { opacity: 0.55; filter: grayscale(0.6); }
.slot.rdy .av { box-shadow: 0 0 0 2px #fff; }
.tick {
  position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px #b8111e;
}
.tick svg { width: 12px; height: 12px; fill: none; stroke: #b8111e; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.slot.open {
  display: grid; place-items: center; border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.5); color: rgba(255, 255, 255, 0.85);
  font: 600 20px/1 var(--text); background: rgba(255, 255, 255, 0.06);
}

/* taşan ajanlar */
.agents {
  position: absolute; right: 0; bottom: 0; width: 50%; height: calc(100% + 56px); z-index: 1; pointer-events: none;
  clip-path: inset(0 0 0 -400px round 0 0 32px 0);
}
.agent {
  position: absolute; bottom: 0; height: 96%; width: auto; aspect-ratio: 1;
  transform: translateY(12.5%);
}
.ag-1 { right: 14%; height: 100%; z-index: 3; filter: drop-shadow(-12px 0 24px rgba(60, 0, 8, 0.55)); }
.ag-2 { right: -16%; height: 86%; z-index: 2; filter: brightness(0.66) saturate(0.85); }

/* kişisel afiş */
.b-me .b-bg {
  background:
    radial-gradient(70% 80% at 100% 0%, rgba(120, 140, 255, 0.7), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(8, 10, 60, 0.75), transparent 70%),
    linear-gradient(150deg, #3b4cf0 0%, var(--me) 45%, var(--me-lo) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.b-me .b-body { padding: 32px; }
.gun-slot { position: relative; flex: 1 1 auto; min-height: 112px; pointer-events: none; }
.gun {
  position: absolute; left: 50%; top: 50%; width: 360px; max-width: none;
  transform: translate(-42%, -50%) rotate(-14deg);
  filter: drop-shadow(0 24px 24px rgba(4, 6, 40, 0.6));
}
.gun.knife { width: 260px; transform: translate(-36%, -50%) rotate(-24deg); }
.rank { display: flex; align-items: baseline; gap: 12px; }
.rank-n { font: 900 64px/1 var(--display); letter-spacing: -0.02em; }
.rank-of { font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.stats {
  margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.22); padding-top: 12px;
}
.stats dt { font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.stats dd { font: 800 26px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.b-foot { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gun-cap { font-size: 14px; font-weight: 600; color: #fff; line-height: 1.3; }
.gun-cap span { display: block; font-weight: 400; color: rgba(255, 255, 255, 0.78); }
.guest .b-me .b-title { max-width: 12ch; }
.guest .b-me .b-act { padding-top: 16px; }

/* ---------- haritalar ---------- */
.maps { margin-top: 48px; }
.maps-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 24px; }
.h-display { font: 900 36px/1 var(--display); letter-spacing: -0.01em; }
.outline { color: transparent; -webkit-text-stroke: 2px #fff; paint-order: stroke; }
.maps-sub { grid-column: 1; color: var(--fg-2); font-size: 16px; }
.arrows { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 12px; }
.glass-arrow {
  width: 52px; height: 52px; border-radius: 16px; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.06) 60%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 24px -12px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(14px);
}
.glass-arrow svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.glass-arrow:hover:not(:disabled) { background: linear-gradient(160deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.1) 60%); }
.glass-arrow:disabled { opacity: 0.35; cursor: default; }

.strip {
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-left: 2px;
  padding: 44px 2px 12px; margin-top: -16px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent);
}
.strip::-webkit-scrollbar { display: none; }
.strip:focus-visible { outline-offset: -2px; border-radius: 24px; }

.mcard {
  position: relative; flex: 0 0 236px; height: 300px; border-radius: 24px; isolation: isolate;
  text-decoration: none; color: #fff; scroll-snap-align: start;
  transition: transform 0.25s var(--ease);
}
.mcard.is-lead { flex-basis: 296px; }
.mc-bg {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: -1;
  background-color: var(--c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.mc-bg .photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.15);
  mix-blend-mode: multiply; opacity: 0.85;
}
.mc-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.6) 100%);
}
.mc-badge {
  position: absolute; z-index: 2; top: -34px; right: 12px; width: 96px; height: 96px;
  transform: rotate(6deg);
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s var(--ease);
}
.mcard:hover .mc-badge { transform: rotate(0deg) translateY(-4px); }
.mcard:hover { transform: translateY(-2px); }
.mc-body { position: absolute; inset: auto 0 0 0; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.flags { display: flex; gap: 6px; flex-wrap: wrap; min-height: 0; }
.flags:empty { display: none; }
.flag {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(10px);
}
.flag.lead { background: #fff; color: var(--ink); border-color: #fff; }
.mc-name { font: 900 26px/1 var(--display); letter-spacing: -0.01em; }
.mcard.is-lead .mc-name { font-size: 36px; }
.mc-votes { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.stack { display: flex; }
.stack .av { box-shadow: 0 0 0 2px var(--c); }
.stack .av + .av { margin-left: -6px; }
.mc-last { font-size: 14px; color: rgba(255, 255, 255, 0.88); }
.mc-last.quiet { color: rgba(255, 255, 255, 0.7); }

/* ---------- alt karolar ---------- */
.tiles { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 24px; margin-top: 32px; }
.tiles:empty { display: none; }
.tile { position: relative; border-radius: 24px; }
.t-board {
  padding: 24px;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(229, 32, 45, 0.14), transparent 60%),
    linear-gradient(170deg, #1a1720, #111016);
  border: 1px solid var(--line);
}
.tile-h { display: flex; align-items: baseline; justify-content: space-between; }
.more { font-size: 14px; color: var(--fg-2); }
.more:hover { color: #fff; }
.board { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.board th { font-size: 12px; font-weight: 500; color: var(--fg-3); text-align: left; padding: 0 8px 8px; }
.board td { padding: 6px 8px; border-top: 1px solid var(--line); font-size: 16px; }
.board .n { text-align: right; width: 72px; }
.board td.n { color: var(--fg-2); }
.board td.rt { color: #fff; font-weight: 700; }
.board .rk { width: 28px; color: var(--fg-3); font-weight: 600; }
.board td a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; }
.board td a:hover span { text-decoration: underline; }
.board tr.is-me td { background: rgba(229, 32, 45, 0.16); }
.board tr.is-me td:first-child { border-radius: 12px 0 0 12px; color: #fff; }
.board tr.is-me td:last-child { border-radius: 0 12px 12px 0; }

.srv-card { position: relative; border-radius: 24px; min-height: 100%; isolation: isolate; color: #fff; }
.t-srv .srv-card { min-height: 268px; }
.srv-card .mc-badge { top: -24px; right: 16px; width: 88px; height: 88px; }
.srv-body { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; padding-top: 72px; height: 100%; justify-content: flex-end; }
.t-srv .srv-body { min-height: 268px; }
.srv-state { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.addr {
  margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 6px 6px 12px; border-radius: 14px; background: rgba(0, 0, 0, 0.32);
}
.addr code { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-card.in-rail { margin-top: 32px; }
.srv-card.in-rail .srv-body { min-height: 240px; }

/* ---------- sol sütun: son maçlar ---------- */
.feed { display: grid; gap: 8px; }
.fi {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 12px; border-radius: 16px;
  background: linear-gradient(90deg, color-mix(in oklab, var(--c) 30%, transparent), color-mix(in oklab, var(--c) 6%, transparent) 70%);
  border: 1px solid color-mix(in oklab, var(--c) 30%, transparent);
  color: inherit; text-decoration: none; transition: border-color 0.15s, transform 0.15s;
}
a.fi:hover { border-color: color-mix(in oklab, var(--c) 70%, transparent); transform: translateX(2px); }
a.fi:active { transform: scale(0.99); }
a.fi:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { a.fi, a.fi:hover, a.fi:active { transform: none; } }
.fi-map {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.fi-map img { width: 38px; height: 38px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)); }
/* Sütun kart genişliğini aşmasın: uzun oyuncu adı etiketi büyütmek yerine "…" ile kısalsın. */
.fi-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.fi-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fi-top b { font: 800 16px/1.2 var(--display); }
.fi-top time { font-size: 12px; color: var(--fg-3); white-space: nowrap; }
.fi-score { display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--fg-3); min-width: 0; }
.fi-score > span:first-child, .fi-score > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-score .win { color: #fff; font-weight: 600; }
.sc { font-variant-numeric: tabular-nums; font-weight: 600; flex: none; }
.fi-hl { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 2px 8px 2px 2px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--fg-2);
}
.chip { max-width: 100%; min-width: 0; }
.chip b { flex: none; }
.chip .chip-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip b { white-space: nowrap; flex: none; font-size: 12px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: #fff; }
.chip.k-ace b { background: var(--t); color: #1d1300; }
.chip.k-4k b { background: #fff; color: var(--ink); }

.steps { counter-reset: s; display: grid; gap: 8px; }
.steps li {
  counter-increment: s; position: relative; display: grid; gap: 2px; padding: 14px 16px 14px 56px; border-radius: 16px;
  background: linear-gradient(90deg, rgba(229, 32, 45, 0.18), rgba(229, 32, 45, 0.03) 75%);
  border: 1px solid rgba(229, 32, 45, 0.22);
}
.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); font: 800 14px/1 var(--display);
}
.steps b { font-weight: 600; }
.steps span { font-size: 14px; color: var(--fg-2); }

/* ---------- sağ sütun: arkadaşlar ---------- */
.reqs { display: grid; gap: 8px; margin-bottom: 16px; }
.req {
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 12px;
  border-radius: 16px; background: linear-gradient(135deg, rgba(49, 65, 220, 0.4), rgba(49, 65, 220, 0.12));
  border: 1px solid rgba(120, 140, 255, 0.35);
}
.req-t { min-width: 0; display: grid; }
.req-t a { font-weight: 600; text-decoration: none; }
.req-t a:hover { text-decoration: underline; }
.req-t small { font-size: 12px; color: var(--fg-2); }
.friends { display: grid; gap: 2px; }
.fr a { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; text-decoration: none; }
.fr a:hover { background: rgba(255, 255, 255, 0.06); }
.fr-av { position: relative; }
.pres { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: #6b6574; }
.fr.online .pres { background: var(--ok); }
.fr.in-lobby .pres { background: var(--red-hi); }
.fr-t { display: grid; min-width: 0; }
.fr-t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-t small { font-size: 12px; color: var(--fg-2); }
.fr.tm-ct small { color: var(--ct); }
.fr.tm-t small { color: var(--t); }
.fr.offline { opacity: 0.6; }
.rail-note {
  margin-top: 24px; padding: 20px; border-radius: 20px; display: grid; gap: 8px; justify-items: start;
  background: linear-gradient(160deg, rgba(118, 58, 230, 0.22), rgba(118, 58, 230, 0.05));
  border: 1px solid rgba(160, 120, 255, 0.25);
}
.rail-note h3 { font: 800 16px/1.2 var(--display); }
.rail-note p { font-size: 14px; color: var(--fg-2); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 40; transform: translate(-50%, 16px); opacity: 0;
  padding: 12px 20px; border-radius: 14px; font-weight: 600; pointer-events: none;
  background: rgba(30, 27, 38, 0.82); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(16px);
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- tek yükleniş anı: ajanlar ve rozetler yükselir ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(calc(12.5% + 48px)); } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) rotate(0deg); } }
@keyframes fade { from { opacity: 0; } }
.ready .agent { animation: rise 0.55s var(--ease) both; }
.ready .ag-2 { animation-delay: 0.04s; }
.ready .banner .b-body, .ready .gun { animation: fade 0.4s ease-out both; }
.ready .strip .mc-badge { animation: pop 0.5s var(--ease) both 0.1s; }

/* Azaltılmış hareket: yükselme ve dönme yok, yalnız solarak belirir. */
@media (prefers-reduced-motion: reduce) {
  .ready .agent, .ready .strip .mc-badge { animation-name: fade; }
}

/* ---------- 1440 ve altı ---------- */
@media (max-width: 1680px) {
  .shell { grid-template-columns: 248px minmax(0, 1fr) 268px; gap: 24px; padding-inline: 24px; }
  .banners, .tiles { grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); }
  .b-lobby .b-body { max-width: 76%; padding: 28px 32px; }
  .b-title { font-size: 48px; }
  .b-title.sm { font-size: 26px; }
  .agents { width: 46%; }
  .ag-1 { right: -12%; }
  .ag-2 { display: none; }
  .slot, .slot .av { width: 36px; height: 36px; }
  .slot.open { font-size: 16px; }
  .gun { width: 280px; }
  .gun.knife { width: 200px; }
  .gun-slot { min-height: 88px; }
  .rank-n { font-size: 48px; }
  .stats dd { font-size: 20px; }
  .b-me .b-body { padding: 28px 24px; }
  .b-foot { flex-direction: column; align-items: flex-start; }
}
/* Üst bar öbür sayfalardaki (app.css .top) ile aynı ölçüde: sayfa geçişinde logo ve menü kıpırdamasın. */
@media (max-width: 1180px) {
  .bar { gap: 20px; padding-inline: 20px; }
}
