:root {
  --bg0: #070b12;
  --bg1: #101722;
  --bg2: #16202c;
  --surface: #121a24;
  --line: rgba(110, 150, 158, .32);
  --line-soft: rgba(110, 150, 158, .16);
  --hair: .5px;
  --text: #eef3f2;
  --muted: rgba(203, 219, 222, .66);
  --accent: #c6f35a;
  --accent2: #4ad4c4;
  --ct: #6bb3d4;
  --t: #d4a05c;
  --gold: #d4bc6a;
  --silver: #b8c2c8;
  --bronze: #c08a5c;
  --warn: #ffd60a;
  --err: #ff453a;
  --ink: #10200f;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --display: "Bebas Neue", sans-serif;
  --radius: 10px;
  --r-card: 14px;
  --shadow: 0 18px 40px rgba(2, 6, 12, .45);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --med: 180ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection {
  background: rgba(198, 243, 90, .22);
  color: #f4ffe8;
}

/* Keyboard focus should be as visible as a mouse hover everywhere, not just
   the one control that had it before. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.pod:focus-visible,
.map-card:focus-visible,
.mode-tab:focus-visible,
.versus-card:focus-visible,
.vs-hist-link:focus-visible,
.trend-metric:focus-visible,
.hitmap-row:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Themed scrollbar so the chrome matches the tactical dark UI instead of a
   stock light-grey system bar. */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(110, 150, 158, .5) transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(110, 150, 158, .45);
  border-radius: 99px;
  border: 2px solid var(--bg0);
}
*::-webkit-scrollbar-thumb:hover { background: rgba(198, 243, 90, .55); }

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  color-scheme: dark;
  background-color: #070b12;
}

.stage {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(74, 212, 196, .14), transparent 58%),
    radial-gradient(720px 420px at 92% 4%, rgba(198, 243, 90, .08), transparent 52%),
    radial-gradient(640px 480px at -6% 88%, rgba(70, 110, 200, .12), transparent 55%),
    linear-gradient(165deg, #0c1420 0%, #070b12 42%, #081018 100%);
}
.stage-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 18, 0) 0%, rgba(7, 11, 18, .18) 100%);
}
.stage-hex {
  position: absolute;
  inset: 0;
  opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath fill='none' stroke='%234ad4c4' stroke-opacity='.2' d='M28 2l24 14v28L28 58 4 44V16zM28 58l24 14v28'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 12%, transparent 72%);
}
.stage-radar {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 560px;
  height: 560px;
  opacity: .42;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%234ad4c4' stroke-width='1.2'%3E%3Ccircle cx='200' cy='200' r='70' stroke-opacity='.5'/%3E%3Ccircle cx='200' cy='200' r='120' stroke-opacity='.34'/%3E%3Ccircle cx='200' cy='200' r='170' stroke-opacity='.22'/%3E%3Ccircle cx='200' cy='200' r='198' stroke-opacity='.16'/%3E%3Cpath d='M200 8v384M8 200h384' stroke-opacity='.2'/%3E%3Cpath d='M200 200L328 92' stroke-opacity='.32'/%3E%3C/g%3E%3Ccircle cx='200' cy='200' r='3.6' fill='%23c6f35a' fill-opacity='.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.stage-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 42%, transparent 48%, rgba(4, 8, 14, .55) 100%);
}

.top, .wrap, .foot { position: relative; z-index: 1; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 18, .82);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .4rem .72rem;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color var(--med) var(--ease), background var(--med) var(--ease), border-color var(--med) var(--ease);
}
.nav a:hover {
  color: var(--accent);
  background: rgba(198, 243, 90, .08);
  border-color: rgba(198, 243, 90, .18);
}
.nav a.active {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

.bars { display: flex; flex-direction: column; gap: .55rem; }
.bar-row {
  display: grid;
  grid-template-columns: 7rem 1fr 6.5rem;
  gap: .6rem;
  align-items: center;
}
.bar-label { color: var(--muted); font-size: .82rem; }
.bar-track {
  height: .5rem;
  background: var(--bg0);
  border: var(--hair) solid var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  transition: width .4s ease;
}
.bar-meta {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: .82rem;
  color: var(--muted);
}
@media (max-width: 700px) {
  .bar-row { grid-template-columns: 1fr; gap: .25rem; }
  .bar-meta { text-align: left; }
}

.brand {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.brand-xhair {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex: none;
  opacity: .9;
}
.brand-mark {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.1rem, 5vw, 3rem);
  letter-spacing: .06em;
  line-height: .9;
  color: var(--accent);
  text-shadow: 0 0 22px rgba(198, 243, 90, .35);
}
.brand-sub {
  display: block;
  margin-top: .18rem;
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
}

.top-meta {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}
.top-meta code {
  display: inline-block;
  padding: .42rem .7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg1);
  color: var(--accent2);
  font-size: .82rem;
}

.wrap { max-width: 1280px; margin: 0 auto; padding: 1rem 1.25rem 2.4rem; }

.hero {
  margin-bottom: .4rem;
  animation: fade-in .45s ease both;
}
.kicker {
  margin: 0 0 .3rem;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent2);
  opacity: .85;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: .04em;
  margin: 0 0 .4rem;
}
.hero p { margin: 0; color: var(--muted); max-width: 42rem; line-height: 1.5; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.4rem 0 1rem;
}
.toolbar input[type="search"],
.versus-form input[type="text"] {
  flex: 1 1 220px;
  min-width: 180px;
  padding: .7rem .9rem;
  border: var(--hair) solid var(--line);
  border-radius: var(--radius);
  background: var(--bg1);
  color: var(--text);
  font: inherit;
  transition: border-color var(--med) var(--ease);
}
.toolbar input:focus,
.versus-form input:focus {
  outline: none;
  border-color: var(--accent2);
}
.toolbar button, .btn-ghost {
  padding: .7rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  transition: transform var(--med) var(--ease), filter var(--med) var(--ease);
}
.toolbar button:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
}
.btn-ghost:hover { background: rgba(198, 243, 90, .1); }

.banner {
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 1rem 0;
  background: rgba(12, 18, 26, .7);
}
.banner.warn { border-color: var(--warn); color: var(--warn); }
.banner.err { border-color: var(--err); color: var(--err); }
.ban-banner { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }

.count { color: var(--muted); margin: 0 0 .8rem; }
.sorts { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.chip {
  text-decoration: none;
  color: var(--muted);
  border: var(--hair) solid var(--line);
  border-radius: 999px;
  padding: .35rem .65rem;
  font-size: .82rem;
  background: var(--bg1);
  transition: background var(--med) var(--ease), color var(--med) var(--ease), border-color var(--med) var(--ease);
}
.chip.active, .chip:hover { color: var(--ink); background: var(--accent); border-color: var(--accent); }

.table-wrap {
  overflow-x: auto;
  border: var(--hair) solid var(--line);
  border-radius: var(--r-card);
  background: rgba(16, 23, 34, .9);
  box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; min-width: 900px; }
.bans-table { min-width: 780px; }
th, td { padding: .72rem .65rem; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
th {
  position: sticky; top: 0;
  background: var(--bg2);
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .07em;
}
tr:hover td { background: rgba(198, 243, 90, .045); }
.num { font-variant-numeric: tabular-nums; }
.accent { color: var(--accent); font-weight: 700; }
.muted { color: var(--muted); }
.tiny { font-size: .75rem; margin-top: .15rem; }
.tight { margin: 0 0 .85rem; font-size: .88rem; }
.player {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  max-width: 100%;
  line-height: 1.2;
}
.player:hover { color: var(--accent); }
.name-cell {
  max-width: 12.5rem;
}
.flag-slot {
  flex: none;
  width: 14px;
  height: 10px;
  line-height: 0;
  overflow: hidden;
}
.flag-slot img {
  display: block;
  width: 14px;
  height: 10px;
  object-fit: cover;
  border-radius: 1px;
}
.player-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank { color: var(--accent2); }
.empty { text-align: center; color: var(--muted); padding: 2rem !important; }
.ban-reason { max-width: 22rem; font-weight: 500; }

.status-pill {
  display: inline-block;
  padding: .2rem .5rem;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.status-active { color: var(--err); border-color: rgba(255, 107, 90, .45); }
.status-expired { color: var(--muted); }
.status-unbanned { color: var(--accent2); border-color: rgba(61, 206, 184, .4); }

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
}
.pager a { color: var(--accent); text-decoration: none; }

.back { margin: 0 0 .35rem; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--accent); }

.profile {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin: .7rem 0 1rem;
  padding: 1.1rem 1.2rem;
  border: var(--hair) solid var(--line);
  border-radius: var(--r-card);
  background:
    linear-gradient(135deg, rgba(22, 36, 48, .94), rgba(10, 16, 24, .92)),
    radial-gradient(500px 200px at 0% 0%, rgba(198, 243, 90, .08), transparent 60%);
  box-shadow: var(--shadow);
  animation: rise .5s ease both;
}
@media (max-width: 800px) { .profile { grid-template-columns: 1fr; } }
.profile h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4.4vw, 2.6rem);
  margin: 0;
  letter-spacing: .03em;
}
.sid { color: var(--muted); margin: .25rem 0; }
.sid a { color: var(--accent2); }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: .8rem 0; }
.badge {
  border: var(--hair) solid var(--line);
  border-radius: 999px;
  padding: .3rem .55rem;
  font-size: .8rem;
  background: rgba(7, 11, 8, .55);
}
.badge.accent { border-color: var(--accent); color: var(--accent); }
.profile-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.kpi {
  border: var(--hair) solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 11, 18, .65);
  padding: .7rem .8rem;
  transition: border-color var(--med) var(--ease);
}
.kpi:hover { border-color: rgba(198, 243, 90, .35); }
.kpi span { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.kpi strong { font-size: 1.5rem; font-family: var(--display); letter-spacing: .04em; }

.profile-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 1rem;
  align-items: start;
}
.stats-mosaic {
  column-count: 3;
  column-gap: .85rem;
  margin: 0 0 1rem;
}
.stats-mosaic > .panel {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  display: inline-block;
  width: 100%;
  vertical-align: top;
  margin: 0 0 .85rem;
}
.stats-mosaic > .mosaic-wide {
  display: block;
  column-span: all;
  width: auto;
}
@media (max-width: 1100px) {
  .stats-mosaic { column-count: 2; }
}
@media (max-width: 960px) {
  .profile-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .stats-mosaic { column-count: 1; }
}

.player-dash {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .9fr);
  gap: .85rem;
  align-items: stretch;
  margin: 0 0 1rem;
}
.player-dash > .panel { margin: 0; }
.player-dash-solo { grid-template-columns: 1fr; }
@media (max-width: 980px) {
  .player-dash { grid-template-columns: 1fr; }
}

.panel {
  margin: 0 0 1rem;
  border: var(--hair) solid var(--line);
  border-radius: var(--r-card);
  background: rgba(16, 23, 34, .86);
  padding: .9rem 1rem;
  animation: fade-in .5s ease both;
}
.panel h2 {
  margin: 0 0 .65rem;
  font-family: var(--display);
  letter-spacing: .05em;
  font-size: 1.4rem;
  color: var(--accent);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .65rem;
  margin: 0;
}
.grid div {
  border: var(--hair) solid var(--line);
  border-radius: 10px;
  background: rgba(7, 11, 18, .55);
  padding: .55rem .65rem;
}
.grid dt { margin: 0; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.grid dd { margin: .2rem 0 0; font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}

.live-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .55rem 1.2rem;
  margin: 0 0 1.4rem;
  padding: .75rem 1rem;
  border: var(--hair) solid var(--line);
  border-radius: var(--r-card);
  background: linear-gradient(90deg, rgba(61, 206, 184, .1), transparent 55%), var(--bg1);
  animation: fade-in .5s ease both;
}
.live-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .85rem;
  margin: 0;
  padding: .1rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.live-toggle:hover .live-map { color: var(--text); }
.live-toggle:focus-visible {
  outline: 1px solid var(--accent2);
  outline-offset: 3px;
  border-radius: 8px;
}
.live-status { display: flex; align-items: center; gap: .5rem; letter-spacing: .06em; font-size: .85rem; }
.dot {
  width: .62rem; height: .62rem; border-radius: 50%;
  background: var(--err);
}
.dot.on {
  background: var(--accent2);
  animation: pulse 2s ease-in-out infinite;
}
.dot.off { background: var(--err); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 206, 184, .4); }
  50% { box-shadow: 0 0 0 7px rgba(61, 206, 184, 0); }
}
.live-map { flex: 1 1 180px; color: var(--muted); font-size: .92rem; }
.live-chevron {
  width: .45rem;
  height: .45rem;
  border-right: 1.6px solid var(--muted);
  border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg);
  margin: 0 .15rem .2rem auto;
  transition: transform .18s ease;
}
.live-toggle[aria-expanded="true"] .live-chevron {
  transform: rotate(225deg);
  margin-bottom: 0;
}
.live-roster {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: .7rem;
}
.live-roster[hidden] { display: none; }
.live-roster-head {
  margin: 0 0 .45rem;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.live-roster ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .15rem;
}
.live-roster li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .35rem .85rem;
  padding: .42rem .15rem;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.live-roster li:last-child { border-bottom: 0; }
.live-roster a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.live-roster a:hover { color: var(--accent2); }
.live-name { font-weight: 600; }
.live-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .55rem;
  color: var(--muted);
  font-size: .78rem;
}
.live-tag {
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .08rem .4rem;
}
.live-roster li.is-bot .live-name,
.live-roster li.is-bot a { color: var(--muted); font-weight: 500; }
.live-empty { color: var(--muted) !important; font-weight: 400 !important; }
@media (max-width: 640px) {
  .live-bar { grid-template-columns: 1fr; }
  .join { justify-self: stretch; text-align: center; }
}
.join {
  display: inline-block;
  padding: .45rem .95rem;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .82rem;
  border-radius: 999px;
  transition: transform var(--med) var(--ease), filter var(--med) var(--ease);
  justify-self: end;
}
.join:hover { transform: translateY(-1px); filter: brightness(1.05); }

.podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: .75rem;
  align-items: end;
  margin: 0 0 1.6rem;
}
@media (max-width: 800px) {
  .podium { grid-template-columns: 1fr; }
}
.pod {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1rem 1.15rem;
  border: var(--hair) solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg1);
  text-decoration: none;
  color: inherit;
  min-height: 8.5rem;
  animation: rise .55s ease both;
  animation-delay: calc(var(--d, 0) * .08s);
  transition: border-color var(--med) var(--ease), transform var(--med) var(--ease);
}
.pod:hover { border-color: var(--accent); transform: translateY(-3px); }
.pod-1 {
  min-height: 10.5rem;
  background: linear-gradient(180deg, rgba(212, 188, 106, .14), var(--bg1) 62%);
  border-color: rgba(212, 188, 106, .4);
  box-shadow: var(--shadow), 0 0 0 1px rgba(212, 188, 106, .18), 0 0 34px rgba(212, 188, 106, .14);
  order: 2;
}
.pod-1:hover { border-color: var(--gold); }
.pod-2 {
  order: 1;
  border-color: rgba(184, 194, 200, .28);
}
.pod-3 {
  order: 3;
  border-color: rgba(192, 138, 92, .32);
}
@media (max-width: 800px) {
  .pod-1, .pod-2, .pod-3 { order: 0; }
}
.pod-place {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}
.pod-1 .pod-place { color: var(--gold); }
.pod-2 .pod-place { color: var(--silver); }
.pod-3 .pod-place { color: var(--bronze); }
.pod-name {
  display: flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  font-weight: 700;
  font-size: 1.05rem;
}
.pod-rank { color: var(--accent2); font-size: .82rem; }
.pod-pts { font-family: var(--display); font-size: 2.2rem; letter-spacing: .03em; }
.pod-meta { color: var(--muted); font-size: .8rem; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.layout-dash {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.2rem;
  align-items: start;
}
@media (max-width: 980px) {
  .layout-dash { grid-template-columns: 1fr; }
}
.side-panel {
  border: var(--hair) solid var(--line);
  border-radius: var(--r-card);
  background: rgba(16, 23, 34, .9);
  padding: .85rem 1rem;
  margin: 0 0 .75rem;
}
.side-panel h2 {
  margin: 0 0 .65rem;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: .05em;
  color: var(--accent);
}
.side-panel ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.side-panel li {
  counter-increment: s;
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding: .4rem 0;
  border-bottom: 1px solid rgba(42, 58, 46, .55);
  font-size: .88rem;
}
.side-panel li::before {
  content: counter(s);
  color: var(--muted);
  min-width: 1.1rem;
  margin-right: .35rem;
}
.side-panel a { color: var(--text); text-decoration: none; font-weight: 600; }
.side-panel a:hover { color: var(--accent); }
.side-panel span { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.side-panel .trend-up { color: var(--accent2) !important; font-weight: 700; }

.versus-form { align-items: center; }
.vs-sep, .vs-mid {
  font-family: var(--display);
  color: var(--accent);
  letter-spacing: .08em;
  font-size: 1.4rem;
}
.versus-heads {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0 1.2rem;
}
@media (max-width: 700px) {
  .versus-heads { grid-template-columns: 1fr; }
  .vs-mid { text-align: center; }
}
.versus-card {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem;
  border: var(--hair) solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg1);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--med) var(--ease);
}
.versus-card:hover { border-color: var(--accent); }
.versus-card:first-child { border-left: 3px solid color-mix(in srgb, var(--t) 70%, transparent); }
.versus-card:last-child { border-left: 3px solid color-mix(in srgb, var(--ct) 70%, transparent); }
.versus-card strong { font-size: 1.25rem; }
.versus-table td.win { color: var(--accent); font-weight: 700; }

.versus-history { margin: 0 0 1.2rem; }
.versus-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}
.versus-history-head h2 { margin-bottom: 0; }
.vs-hist-clear { padding: .35rem .7rem; font-size: .82rem; }
.versus-history-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .5rem;
}
.vs-hist-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem .45rem;
  padding: .55rem .7rem;
  border: var(--hair) solid var(--line);
  border-radius: 10px;
  background: rgba(7, 11, 18, .55);
  color: inherit;
  text-decoration: none;
  min-height: 2.6rem;
  transition: border-color var(--med) var(--ease), background var(--med) var(--ease);
}
.vs-hist-link:hover { border-color: var(--accent); background: rgba(198, 243, 90, .06); }
.vs-hist-link strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 7.5rem;
}
.vs-hist-vs {
  font-family: var(--display);
  color: var(--accent);
  letter-spacing: .06em;
  font-size: .95rem;
}
.vs-hist-open {
  margin-left: auto;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.profile-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }

.profile-head {
  display: flex;
  align-items: center;
  gap: .9rem;
}
.avatar {
  width: 72px;
  height: 72px;
  border: var(--hair) solid var(--line);
  border-radius: 16px;
  object-fit: cover;
  background: var(--bg0);
}
.avatar-lg { width: 96px; height: 96px; }
.avatar-fallback {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--accent);
  background: linear-gradient(160deg, var(--bg2), var(--bg0));
}
.badge.ok { border-color: var(--accent2); color: var(--accent2); }
.badge.muted-badge { color: var(--muted); }
.badge.tier-elite { border-color: var(--accent); color: var(--accent); }
.badge.tier-high { border-color: var(--accent2); color: var(--accent2); }
.badge.tier-mid { border-color: var(--t); color: var(--t); }
.steam-block { border-color: rgba(61, 206, 184, .32); }

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .85rem;
}
.map-card {
  border: var(--hair) solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--med) var(--ease), transform var(--med) var(--ease);
}
.map-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.map-thumb {
  height: 120px;
  background:
    linear-gradient(180deg, transparent 40%, rgba(7,10,8,.85)),
    var(--bg0) center/cover no-repeat;
}
.map-body { padding: .75rem .85rem 1rem; }
.map-body h3 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: .04em;
  font-size: 1.35rem;
}
.map-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .75rem;
  margin-top: .55rem;
  font-size: .82rem;
  color: var(--muted);
}
.map-stats strong { color: var(--text); }
.map-stats .accent { color: var(--accent); }

.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
}
.mode-card {
  border: var(--hair) solid var(--line);
  border-radius: var(--radius);
  background: var(--bg0);
  padding: .85rem 1rem;
  transition: border-color var(--med) var(--ease), transform var(--med) var(--ease);
}
.mode-card:hover { border-color: var(--accent); }
.link-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.link-card:hover { transform: translateY(-2px); }
.mode-card h3 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: .04em;
  font-size: 1.25rem;
  color: var(--accent);
}
.mode-pts {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: .03em;
  margin-top: .35rem;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .65rem;
  margin: 1.2rem 0 1.4rem;
}
@media (max-width: 900px) {
  .mode-tabs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .mode-tabs { grid-template-columns: 1fr; }
}
.mode-tab {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .9rem 1rem;
  border: var(--hair) solid var(--line);
  border-radius: var(--r-card);
  background: rgba(16, 23, 34, .88);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--med) var(--ease), background var(--med) var(--ease), transform var(--med) var(--ease);
}
.mode-tab strong {
  font-family: var(--display);
  letter-spacing: .04em;
  font-size: 1.35rem;
  color: var(--text);
}
.mode-tab span { color: var(--muted); font-size: .82rem; }
.mode-tab em {
  font-style: normal;
  color: var(--accent2);
  font-size: .78rem;
  margin-top: .25rem;
}
.mode-tab:hover { border-color: rgba(198, 243, 90, .45); transform: translateY(-2px); }
.mode-tab.active {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(198, 243, 90, .12), rgba(16, 23, 34, .92));
}
.mode-tab.active strong { color: var(--accent); }

.bm-panel { padding: 1.1rem 1.2rem 1.25rem; }
.bm-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .35rem;
}
.bm-head h2 { margin-bottom: .35rem; }
.bm-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .55rem;
}
.bm-metrics {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 99px;
  background: var(--bg0);
  border: var(--hair) solid var(--line);
}
.bm-metric {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .82rem;
  padding: .35rem .75rem;
  border-radius: 99px;
  cursor: pointer;
  transition: background var(--med) var(--ease), color var(--med) var(--ease);
}
.bm-metric.active {
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.hm-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}
.hm-c {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--text) 11%, var(--surface));
  flex: none;
  display: inline-block;
}
.hm-c.l1 { background: color-mix(in srgb, var(--accent) 32%, var(--surface)); }
.hm-c.l2 { background: color-mix(in srgb, var(--accent) 56%, var(--surface)); }
.hm-c.l3 { background: color-mix(in srgb, var(--accent) 78%, var(--surface)); }
.hm-c.l4 { background: var(--accent); }

.bm-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr);
  gap: 1.1rem 1.4rem;
  align-items: start;
}
@media (max-width: 860px) {
  .bm-shell { grid-template-columns: 1fr; }
  .bm-controls { align-items: flex-start; }
}

.bodymap {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: flex-start;
  --bm-base: color-mix(in srgb, var(--text) 11%, var(--surface));
}
.bm-view {
  flex: 1;
  min-width: 0;
  margin: 0;
  text-align: center;
}
.bm-view figcaption {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .35rem;
}
.bm-v {
  width: 100%;
  height: auto;
  max-height: min(56vh, 420px);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .4));
}
.bm-sil {
  fill: color-mix(in srgb, var(--text) 18%, var(--surface));
}
.bm-m {
  fill: var(--bm-base);
  transition: fill var(--med) var(--ease);
}
.bm-m.l1 { fill: color-mix(in srgb, var(--accent) 32%, var(--bm-base)); }
.bm-m.l2 { fill: color-mix(in srgb, var(--accent) 56%, var(--bm-base)); }
.bm-m.l3 { fill: color-mix(in srgb, var(--accent) 78%, var(--bm-base)); }
.bm-m.l4 { fill: var(--accent); }
.bm-m.sel { stroke: var(--text); stroke-width: 7; }
.bodymap.tappable .bm-m { cursor: pointer; }
.bm-sil { pointer-events: none; }
.bm-v path {
  stroke: var(--surface);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.bm-side { min-width: 0; }
.bm-detail {
  border: var(--hair) solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 11, 8, .55);
  padding: .85rem 1rem;
  margin-bottom: .75rem;
  min-height: 5.4rem;
}
.bm-detail-hint {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}
.bm-detail-name {
  margin: 0 0 .55rem;
  font-family: var(--display);
  letter-spacing: .04em;
  font-size: 1.55rem;
  color: var(--accent);
}
.bm-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem .75rem;
  margin: 0;
}
.bm-detail-grid dt {
  margin: 0;
  color: var(--muted);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.bm-detail-grid dd {
  margin: .1rem 0 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hitmap-legend { width: 100%; display: flex; flex-direction: column; gap: 0; }
.hitmap-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 4px;
  border: 0;
  border-bottom: var(--hair) solid var(--line-soft);
  background: transparent;
  color: inherit;
  font: inherit;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
}
.hitmap-row:hover, .hitmap-row.sel { background: rgba(198, 243, 90, .06); }
.hitmap-row .nm { flex: 1; min-width: 0; font-size: .9rem; }
.hitmap-row .bar {
  width: 74px;
  height: 5px;
  border-radius: 3px;
  background: var(--bg0);
  flex: none;
  overflow: hidden;
}
.hitmap-row .bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.hitmap-row .v {
  font-size: .78rem;
  color: var(--muted);
  min-width: 3.4rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  border: 0;
  flex: none;
}

.trend-panel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.trend-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.trend-head h2 { margin-bottom: .2rem; }
.trend-delta {
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: .03em;
  line-height: 1;
}
.trend-up { color: var(--accent2); }
.trend-down { color: var(--err); }
.trend-flat { color: var(--muted); }
.trend-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .45rem;
  margin: .75rem 0 .7rem;
}
.trend-metric {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  text-align: left;
  padding: .5rem .65rem .55rem;
  border: var(--hair) solid var(--line);
  border-radius: 10px;
  background: rgba(7, 11, 18, .55);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color var(--med) var(--ease), background var(--med) var(--ease);
}
.trend-metric span {
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.trend-metric strong {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: .03em;
  font-weight: 400;
}
.trend-metric:hover { border-color: rgba(198, 243, 90, .4); }
.trend-metric.active {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(198, 243, 90, .12), rgba(7, 11, 18, .65));
}
.trend-chart {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  min-height: 210px;
  border: var(--hair) solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(74, 212, 196, .07), transparent 42%),
    rgba(6, 10, 16, .85);
  overflow: hidden;
}
.trend-svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  color: var(--accent);
  cursor: crosshair;
}
.tc-bg { fill: transparent; }
.tc-grid {
  stroke: rgba(110, 150, 158, .22);
  stroke-width: 1;
}
.tc-ylab, .tc-xlab {
  fill: rgba(196, 214, 218, .62);
  font-size: 13px;
  font-family: var(--font);
}
.tc-area { fill: url(#tc-fill); }
.tc-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.tc-end { fill: var(--accent2); }
.tc-cross {
  stroke: rgba(238, 243, 242, .35);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  visibility: hidden;
}
.tc-dot {
  fill: var(--text);
  stroke: var(--bg0);
  stroke-width: 2;
  visibility: hidden;
}
.trend-tip {
  position: absolute;
  top: .55rem;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
  display: flex;
  gap: .45rem;
  align-items: baseline;
  padding: .28rem .55rem;
  border-radius: 8px;
  border: var(--hair) solid var(--line);
  background: rgba(8, 12, 18, .92);
  font-size: .82rem;
  white-space: nowrap;
}
.trend-tip[hidden] { display: none; }
.trend-tip strong { color: var(--muted); font-weight: 500; }
.trend-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .65rem 1.1rem;
  margin: .75rem 0 0;
}
.trend-summary div { margin: 0; }
.trend-summary dt {
  margin: 0;
  color: var(--muted);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.trend-summary dd {
  margin: .12rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.trend-summary-arrow {
  color: var(--muted);
  font-size: 1.1rem;
  padding-bottom: .15rem;
}
.trend-sum-delta {
  font-family: var(--display);
  font-size: 1.45rem !important;
  letter-spacing: .03em;
  font-weight: 400 !important;
}
@media (max-width: 800px) {
  .trend-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .trend-metrics { grid-template-columns: 1fr 1fr; }
  .trend-svg { min-height: 180px; }
}

.player-dash .bm-panel { display: flex; flex-direction: column; }
.player-dash .bm-shell {
  grid-template-columns: 1fr;
  gap: .7rem;
  flex: 1;
}
.player-dash .bm-v { max-height: min(34vh, 260px); }
.player-dash .bm-head { margin-bottom: .2rem; }
.player-dash .bm-controls { align-items: flex-start; }
.player-dash .bm-detail { min-height: 0; margin-bottom: .5rem; padding: .65rem .75rem; }
.player-dash .hitmap-row { padding: 4px 2px; }
.player-dash .hitmap-legend { max-height: 200px; overflow: auto; }

.fun-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.fun-badge {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .45rem .7rem;
  border-radius: 12px;
  border: var(--hair) solid var(--line);
  background: rgba(7, 11, 8, .55);
  max-width: 14rem;
}
.fun-badge strong { font-size: .92rem; color: var(--accent); }
.fun-badge em {
  font-style: normal;
  font-size: .75rem;
  color: var(--muted);
}
.fun-badge--bronze { border-color: #a9764a; background: rgba(169, 118, 74, .12); }
.fun-badge--bronze strong { color: #cd8b5c; }
.fun-badge--silver { border-color: #b9c2c9; background: rgba(185, 194, 201, .12); }
.fun-badge--silver strong { color: #d7dee3; }
.fun-badge--gold { border-color: #d9b23c; background: rgba(217, 178, 60, .14); }
.fun-badge--gold strong { color: #eecd63; }
.overview-line {
  margin: .55rem 0 0;
  color: var(--muted);
  font-size: .92rem;
}
.overview-line strong { color: var(--text); font-variant-numeric: tabular-nums; }

.award-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .75rem;
}
.award-card {
  border: var(--hair) solid var(--line);
  border-radius: var(--r-card);
  background: rgba(16, 23, 34, .86);
  padding: .9rem 1rem;
}
.award-card h2 {
  margin: 0 0 .25rem;
  font-family: var(--display);
  letter-spacing: .04em;
  font-size: 1.35rem;
  color: var(--accent);
}
.award-holder {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  margin-top: .45rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.award-holder:hover { color: var(--accent); }
.award-holder span {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--accent2);
  font-variant-numeric: tabular-nums;
}
.rival-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.rival-h {
  margin: 0 0 .35rem;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
@media (max-width: 600px) {
  .rival-cols { grid-template-columns: 1fr; }
}
.arcade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .85rem;
}
.arcade-list { margin: 0; padding: 0; list-style: none; counter-reset: a; }
.arcade-list li {
  counter-increment: a;
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding: .4rem 0;
  border-bottom: var(--hair) solid var(--line-soft);
  font-size: .9rem;
}
.arcade-list li::before {
  content: counter(a);
  color: var(--muted);
  min-width: 1.2rem;
}
.arcade-list a { color: var(--text); font-weight: 600; text-decoration: none; }
.arcade-list a:hover { color: var(--accent); }
.arcade-list strong { font-variant-numeric: tabular-nums; color: var(--accent); }

.flag {
  display: inline-block;
  vertical-align: -2px;
  border-radius: 2px;
  margin-right: .15rem;
}
.flag-lg { vertical-align: .1em; margin-right: .35rem; }
.aliases { font-size: .85rem; }
.badge.faceit { border-color: #ff5500; color: #ff8a50; }
.faceit-recent { display: flex; flex-wrap: wrap; gap: .28rem; margin: .7rem 0 0; }
.wl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
}
.wl.w { background: rgba(61, 206, 184, .22); color: var(--accent2); }
.wl.l { background: rgba(255, 69, 58, .18); color: #ff8a82; }
.side-panel.hof h2 { color: var(--gold); }

/* Идеи — suggestions board */
.idea-score { font-weight: 700; }
.idea-score-pos { color: var(--accent2); }
.idea-score-neg { color: var(--err); }
.idea-status-open { color: var(--muted); }
.idea-status-in_review { color: var(--warn); border-color: rgba(255, 214, 10, .4); }
.idea-status-accepted { color: var(--accent2); border-color: rgba(61, 206, 184, .4); }
.idea-status-rejected { color: var(--err); border-color: rgba(255, 69, 58, .4); }

.idea-panel { display: flex; flex-direction: column; gap: 1rem; }
.idea-head { display: flex; gap: 1.1rem; align-items: flex-start; }
.idea-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  flex: none;
}
.vote-btn {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 10px;
  border: var(--hair) solid var(--line);
  background: var(--bg1);
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color var(--med) var(--ease), color var(--med) var(--ease), background var(--med) var(--ease);
}
.vote-btn:hover { border-color: var(--accent); color: var(--accent); }
.vote-btn.active { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.idea-score-big {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: .03em;
  color: var(--text);
}
.idea-body { flex: 1; min-width: 0; }
.idea-body h1 {
  margin: 0 0 .35rem;
  font-family: var(--display);
  letter-spacing: .03em;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}
.idea-meta { margin: 0 0 .8rem; font-size: .85rem; }
.idea-text { white-space: pre-wrap; line-height: 1.55; margin: 0; }
.idea-admin-note { border-color: var(--accent2); margin-top: .8rem; }
.idea-admin-panel { border-top: 1px solid var(--line); padding-top: .9rem; }
.idea-admin-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.idea-admin-form select,
.idea-admin-form input[type="text"] {
  padding: .5rem .7rem;
  border: var(--hair) solid var(--line);
  border-radius: var(--radius);
  background: var(--bg1);
  color: var(--text);
  font: inherit;
}
.idea-admin-form input[type="text"] { flex: 1 1 220px; }

.idea-form, .idea-comment-form {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  max-width: 640px;
  margin: 0 0 1.2rem;
}
.idea-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; color: var(--muted); }
.idea-form input[type="text"],
.idea-form textarea,
.idea-comment-form input[type="text"],
.idea-comment-form textarea {
  padding: .7rem .9rem;
  border: var(--hair) solid var(--line);
  border-radius: var(--radius);
  background: var(--bg1);
  color: var(--text);
  font: inherit;
  resize: vertical;
}
.idea-form input:focus, .idea-form textarea:focus,
.idea-comment-form input:focus, .idea-comment-form textarea:focus {
  outline: none;
  border-color: var(--accent2);
}
.idea-form button, .idea-comment-form button {
  align-self: flex-start;
  padding: .65rem 1.3rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  font: inherit;
}

.idea-comments { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.idea-comments li { padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
.idea-comments li:last-child { border-bottom: 0; }
.idea-comment-head { display: flex; gap: .5rem; align-items: baseline; margin-bottom: .25rem; }
.idea-comment-body { white-space: pre-wrap; line-height: 1.5; }

@media (max-width: 640px) {
  .idea-head { flex-direction: column; }
  .idea-vote { flex-direction: row; }
}
